:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #202124;
  background: #f6f7f8;
}

body {
  margin: 0;
}

.shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 24px auto 48px;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

p {
  margin: 0;
  color: #5f6368;
}

.badge,
button,
.button-link {
  border: 1px solid #c8d1dc;
  border-radius: 6px;
  background: #fff;
}

.badge {
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.panel,
.banner {
  background: #fff;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.banner {
  font-weight: 700;
}

.banner.error {
  border-color: #f1b6b6;
  background: #fff5f5;
  color: #8a1f1f;
}

.banner.ok {
  border-color: #b6dec2;
  background: #f2fbf5;
  color: #1d6b37;
}

.token-row,
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

input {
  min-width: min(420px, 100%);
  flex: 1;
  border: 1px solid #c8d1dc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
}

button {
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #202124;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

button:hover,
.button-link:hover {
  background: #f1f4f8;
}

.hint {
  margin-top: 8px;
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

dl {
  display: grid;
  grid-template-columns: minmax(130px, auto) 1fr;
  gap: 8px 12px;
  margin: 0;
  font-size: 13px;
}

dt {
  color: #5f6368;
}

dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.small-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  border-bottom: 1px solid #e5e8ee;
  padding: 8px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

th {
  background: #f8f9fb;
  position: sticky;
  top: 0;
}
