
:root { color-scheme: light; font-family: ui-sans-serif, system-ui, "Noto Sans SC", sans-serif; background: #f5f3f0; color: #24242c; --accent: #6757d9; --accent-soft: #eeeafd; --line: #ddd9e5; --muted: #6e6b78; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 18rem; background: radial-gradient(circle at 12% 0%, #ece7ff 0, transparent 26rem), #f5f3f0; }
.shell { width: min(100% - 2rem, 58rem); margin: 0 auto; padding: 2rem 0 4rem; }
.topbar, .section-heading, .copy-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.topbar { margin-bottom: 1.5rem; }
.eyebrow { margin: 0 0 .25rem; color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .14em; }
h1, h2 { margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: 1.15rem; }
.card { margin: 1rem 0; padding: 1.35rem; border: 1px solid var(--line); border-radius: 1rem; background: #fffffff2; box-shadow: 0 .65rem 2rem #342c5c0b; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.field, .dropzone { display: grid; gap: .4rem; }
.field-wide { grid-column: 1 / -1; }
label { font-weight: 650; }
label span, .hint { color: var(--muted); font-size: .85rem; font-weight: 400; }
input, textarea, select { width: 100%; border: 1px solid #aeb8c7; border-radius: .45rem; padding: .6rem .7rem; font: inherit; background: #fff; color: inherit; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: .18rem solid var(--accent); outline-offset: .12rem; }
textarea { resize: vertical; }
.dropzone { padding: 1.15rem; border: 1px dashed #988cd8; border-radius: .75rem; background: linear-gradient(135deg, #faf9ff, var(--accent-soft)); }
.dropzone input { border: 0; padding: .3rem 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.4rem; border: 1px solid #273246; border-radius: .45rem; padding: .55rem .8rem; background: #fff; color: #1d2430; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.button.primary { border-color: #5748c8; background: var(--accent); color: #fff; box-shadow: 0 .35rem .85rem #6757d92b; }
.button.secondary { border-color: #aeb8c7; }
.button:hover { filter: brightness(.97); }
progress { display: block; width: 100%; height: .72rem; margin-top: 1rem; accent-color: var(--accent); }
.status { min-height: 1.3rem; margin: .6rem 0 0; color: var(--muted); }
.status.error { color: #a52626; }
.result { margin-top: 1rem; }
.history { display: grid; gap: .55rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.history li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-width: 0; padding: .65rem .75rem; border: 1px solid #e0e5ec; border-radius: .45rem; }
.history a, .history span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { color: var(--muted); }
.history li.is-revoked { color: var(--muted); background: #f8f7fa; }
.state { flex: none; border-radius: 999px; padding: .25rem .55rem; background: #ebe8ef; color: #686472; font-size: .78rem; font-weight: 700; }
.token-form { display: flex; align-items: end; gap: .65rem; margin-top: 1rem; }
.token-form label { flex: none; }
.token-form input { flex: 1; min-width: 10rem; }
[hidden] { display: none !important; }
@media (max-width: 40rem) {
  .shell { width: min(100% - 1rem, 58rem); padding-top: 1rem; }
  .topbar, .section-heading, .copy-row, .token-form { align-items: stretch; flex-direction: column; }
  .field-grid { grid-template-columns: 1fr; gap: .75rem; }
  .field-wide { grid-column: auto; }
  .button, .copy-row .button, .token-form .button { width: 100%; }
}
