:root {
  --bg: #10141c;
  --bg-2: #161c27;
  --panel: #1b2330;
  --line: #2c3648;
  --text: #e8edf5;
  --muted: #93a0b5;
  --accent: #0d9cde;
  --accent-2: #0ea5e9;
  --good: #3ecf8e;
  --warn: #e3b341;
  --bad: #f07178;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(76, 141, 255, 0.14), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 15px/1.45 "Segoe UI", system-ui, sans-serif;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.shell.wide { max-width: 1400px; }

.app-version {
  position: fixed;
  top: 6px;
  right: 10px;
  z-index: 40;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.app-version::before {
  content: "v";
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

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

h2 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.label-row h2 {
  margin: 0;
}

.run-flag {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.run-flag[data-state="running"] {
  color: #102016;
  background: var(--good);
  border-color: var(--good);
}

.run-flag[data-state="busy"] {
  color: #201a08;
  background: var(--warn);
  border-color: var(--warn);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }

label, .label-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.log-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.log-tools .check {
  display: flex;
  margin: 0;
  color: var(--text);
  font-size: 13px;
}

.hint { color: var(--muted); font-size: 12px; }

input[type="text"],
input[type="url"],
input[type="number"],
input[type="time"],
textarea,
select {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

textarea { resize: vertical; font-family: Consolas, "Cascadia Mono", monospace; }

input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(13, 156, 222, 0.45);
  border-color: var(--accent);
}

.drop {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px dashed #3d4b63;
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
}

.drop.over { border-color: var(--accent); background: rgba(76, 141, 255, 0.08); }

.drop-copy { flex: 1; min-width: 0; }
.drop-copy strong { display: block; }
.drop-copy span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; word-break: break-all; }

.csv-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

a.button-link {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.limits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.limits input[type="number"] {
  width: 110px;
}

.mini {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
}

.mini input { width: 84px; }

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
}

.mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 12px;
}

.mode-label {
  color: var(--muted);
  font-size: 13px;
  min-width: 72px;
}

.actions, .inline-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions {
  justify-content: space-between;
  align-items: center;
}
.actions-run,
.actions-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.test-issue {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.test-issue label { white-space: nowrap; margin: 0; }
.test-issue input { flex: 1; min-width: 160px; }

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font: inherit;
}

.primary { background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-2); }
.smart {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: 0.03em;
  padding: 9px 18px;
}
.smart:hover {
  background: var(--accent);
  color: #fff;
}
.danger { background: var(--bad); color: #fff; }
.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.ghost:hover { border-color: var(--accent); }
button:disabled, input:disabled, textarea:disabled, select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.tiny { padding: 4px 10px; font-size: 12px; }

.bar {
  height: 10px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3b6fd4, #4c8dff);
  transition: width 0.2s ease;
}

.batch-bar {
  height: 7px;
  margin-top: 8px;
  background: #0c1017;
  border: 1px dashed var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.batch-bar-fill {
  height: 100%;
  width: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    #2dd4bf 0 6px,
    #0f766e 6px 12px
  );
  background-size: 16px 16px;
  animation: batch-stripe 0.7s linear infinite;
  transition: width 0.15s linear;
}

.batch-bar[data-phase="checking"] .batch-bar-fill {
  background-image: repeating-linear-gradient(
    -55deg,
    #38bdf8 0 6px,
    #0369a1 6px 12px
  );
}

.batch-bar[data-phase="preprocessing"] .batch-bar-fill {
  background-image: repeating-linear-gradient(
    -55deg,
    #fbbf24 0 6px,
    #b45309 6px 12px
  );
}

.batch-bar[data-phase="issuing"] .batch-bar-fill {
  background-image: repeating-linear-gradient(
    -55deg,
    #34d399 0 6px,
    #047857 6px 12px
  );
}

.batch-progress-text {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

@keyframes batch-stripe {
  to { background-position: 16px 0; }
}

.overlay-bar { margin-top: 14px; min-width: 220px; }
.csv-progress { margin-top: 14px; }
.status {
  color: var(--muted);
  white-space: pre-line;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.log-panel { min-height: 280px; }
.account-job { margin: 12px 0 16px; }
.account-log-wrap { height: 220px; margin-top: 10px; }
.log-wrap {
  height: 360px;
  overflow: auto;
  background: #0c1017;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.log-table {
  width: 100%;
  border-collapse: collapse;
  color: #d5deea;
  font: 12.5px/1.45 Consolas, "Cascadia Mono", monospace;
}
.log-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #151b26;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.log-table td {
  padding: 7px 10px;
  vertical-align: top;
  border-bottom: 1px solid #1b2230;
}
.log-table .log-link {
  width: 46%;
  word-break: break-all;
}
.log-table .log-status {
  width: 88px;
  white-space: nowrap;
  font-weight: 700;
}
.log-table .log-reason {
  word-break: break-word;
}
.log-table a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.log-row.log-issued { color: #3ecf8e; }
.log-row.log-issuable { color: #79b8ff; }
.log-row.log-skipped { color: #e3b341; }
.log-row.log-error { color: #f07178; }
.log-row.log-restricted { color: #ff5cad; }
.log-row.log-info { color: #d5deea; }

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.session-user {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
a#logout {
  text-decoration: none;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tab-btn {
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 8px;
}
.tab-btn.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
}

.tab-page[hidden] { display: none; }
.filter-field textarea { font-family: inherit; }
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
}
.filter-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.filter-field { position: relative; }
.filter-field textarea,
.filter-field input,
.filter-field select {
  width: 220px;
  text-align: left;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.filter-field textarea { min-height: 40px; max-height: 160px; resize: none; overflow: hidden; }
.filter-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex: none;
}
.search-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.search-rules input { width: 88px; padding: 6px 8px; }
.search-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.search-meta { color: var(--muted); margin: 0; }
.search-select { display: flex; gap: 8px; flex-wrap: wrap; }
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 14px 0 8px;
  color: var(--muted);
}
.user-grid { user-select: none; }
.select-box {
  position: fixed;
  border: 2px dashed #0d9cde;
  background: rgba(13, 156, 222, 0.14);
  pointer-events: none;
  z-index: 10000;
}
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  position: relative;
  overflow: hidden;
}
.login-aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(540px 280px at 12% 18%, rgba(13, 156, 222, 0.28), transparent 62%),
    radial-gradient(480px 320px at 88% 78%, rgba(244, 114, 182, 0.16), transparent 60%),
    radial-gradient(380px 220px at 70% 12%, rgba(34, 211, 238, 0.12), transparent 58%);
  pointer-events: none;
}
.login-frame {
  position: relative;
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}
.login-copy {
  padding: 28px 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-copy h1 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.login-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  max-width: 36ch;
}
.login-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text);
}
.login-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c9d4e4;
  font-size: 14px;
}
.login-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(13, 156, 222, 0.7);
  flex: none;
}
.login-card {
  width: 100%;
  background: rgba(27, 35, 48, 0.88);
  border: 1px solid rgba(76, 141, 255, 0.18);
  border-radius: 22px;
  padding: 28px 26px 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(16px);
}
.login-card label {
  font-size: 13px;
  color: var(--muted);
}
.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
}
.login-card-head h2 {
  margin: 8px 0 6px;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
.login-card-head p,
.login-card p { margin: 0; color: var(--muted); }
.login-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  background: rgba(13, 156, 222, 0.12);
  color: #8ecfff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.login-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}
.login-input-wrap input { flex: 1; }
.login-submit { margin-top: 6px; width: 100%; padding: 12px 16px; }
.login-error { color: var(--bad) !important; }
#gate-status[data-kind="ok"] { color: var(--good); }
#gate-status[data-kind="bad"] { color: var(--bad); }
@media (max-width: 820px) {
  .login-frame { grid-template-columns: 1fr; gap: 18px; }
  .login-copy { padding: 8px 4px 0; }
  .login-copy h1 { font-size: 32px; }
}
.csv-btn {
  min-width: auto;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.csv-btn:hover {
  border-color: var(--accent);
  color: #fff;
}
.csv-modal { z-index: 50; }
.csv-card {
  width: min(640px, 94vw);
  max-height: 88vh;
  padding: 0;
}
.csv-card .modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.csv-card .modal-head h3 { margin: 0; }
.csv-card .modal-body { padding: 18px 20px 22px; }
.settings-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
}
.settings-btn:hover {
  border-color: var(--accent);
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.settings-modal { z-index: 50; }
.settings-card {
  width: min(1100px, 94vw);
  max-height: 88vh;
  padding: 0;
}
.settings-card .modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.settings-card .modal-head h3 { margin: 0; }
.settings-card .modal-body { padding: 18px 20px 22px; }
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: start;
}
.settings-grid h2 { margin-top: 18px; }
.settings-grid h2:first-child { margin-top: 0; }
.settings-limits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.settings-limits label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  color: var(--text);
}
@media (max-width: 980px) {
  .settings-grid { grid-template-columns: 1fr; }
}
.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(32px, 32px));
  gap: 4px;
  justify-content: start;
}
.user-card {
  position: relative;
  width: 32px;
  height: 32px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  border: 1px solid transparent;
}
.user-card img { width: 32px; height: 32px; object-fit: cover; display: block; }
.user-card .user-initials {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cfd5de;
  background: #2a2f37;
  user-select: none;
}
.user-card.owned { opacity: 0.5; cursor: not-allowed; }
.user-card.selected { border-color: var(--accent); }
.user-card.selected::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.user-card .owned-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 6px;
  font-weight: 700;
}
.add-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f472b6, #22d3ee);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(13, 156, 222, 0.35);
  z-index: 20;
}
.add-fab[hidden] { display: none; }
.add-fab span { font-size: 22px; font-weight: 800; line-height: 1; }
.add-fab small { font-size: 11px; font-weight: 700; }

.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.list-toolbar .pager { margin: 0; }
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-btn {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
  min-width: 110px;
}
.cat-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cat-btn span {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 12px;
}
.list-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
  max-height: calc(100vh - 180px);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}
.list-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.list-wrap::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 999px;
  margin: 6px 0;
}
.list-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  border: 2px solid var(--bg);
}
.list-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}
.list-wrap::-webkit-scrollbar-corner {
  background: transparent;
}
.users-table {
  width: 100%;
  border-collapse: collapse;
}
.account-actions { margin-bottom: 12px; }
.account-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.sort-btn {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding: 0;
}
.token-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}
.users-table th, .users-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.users-table th {
  position: sticky;
  top: 0;
  background: #151b26;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}
.users-table a { color: var(--accent-2); }
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge-new { background: rgba(13,156,222,0.18); color: #7dd3fc; }
.badge-issued { background: rgba(62,207,142,0.18); color: var(--good); }
.badge-skipped { background: rgba(227,179,65,0.18); color: var(--warn); }

.process-filter { margin-top: 16px; margin-bottom: 12px; }
.issue-delay { margin-bottom: 8px; }
.check { margin-top: 12px; }
.mode-row .check { margin-top: 0; }
.issue-delay .hint { display: block; margin-top: 8px; }
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-row input { flex: 1; min-width: 180px; }
.filter-row .hint { white-space: nowrap; }

body.is-syncing .shell,
body.is-syncing .app-version {
  pointer-events: none;
  user-select: none;
}

.overlay, .modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
}
.overlay[hidden], .modal[hidden] { display: none; }
.overlay-card, .modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  min-width: 280px;
}
.overlay-card { text-align: center; }
.modal-card { width: min(640px, 92vw); max-height: 80vh; display: flex; flex-direction: column; }
.modal-card.settings-card {
  width: min(1100px, 94vw);
  max-height: 90vh;
}
.modal-body { overflow: auto; flex: 1; }
.modal-head, .modal-foot { display: flex; justify-content: space-between; gap: 10px; }
.modal-foot { justify-content: flex-end; padding-top: 12px; }
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}
.overlay-detail {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.overlay-card .overlay-bar { min-width: 240px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .top { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 24px; }
}

.account-action { white-space: nowrap; }
.account-action button + button { margin-left: 6px; }
.status-noscope { color: var(--bad); font-weight: 600; }
.status-restricted { color: var(--warn); }
.status-ready { color: var(--good); }
