
:root { color-scheme: light; font-family: ui-sans-serif, system-ui, sans-serif; background: #f4f5f7; color: #1d2430; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 18rem; }
.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: #526174; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
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.25rem; border: 1px solid #d8dee8; border-radius: .8rem; background: #fff; box-shadow: 0 .2rem .8rem #1d24300d; }
.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: #526174; 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 #6b5cff; outline-offset: .12rem; }
textarea { resize: vertical; }
.dropzone { padding: 1rem; border: 1px dashed #8593a6; border-radius: .55rem; background: #f8fafc; }
.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: #4f45d7; background: #564bdf; color: #fff; }
.button.secondary { border-color: #aeb8c7; }
.button:hover { filter: brightness(.97); }
progress { display: block; width: 100%; height: .65rem; margin-top: 1rem; }
.status { min-height: 1.3rem; margin: .6rem 0 0; color: #526174; }
.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: #526174; }
.token-form { display: flex; align-items: end; gap: .65rem; margin-top: 1rem; }
.token-form label { display: grid; gap: .35rem; flex: 1; }
[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%; }
}
