/* burnbox. Tokens mirror .design/system/tokens.css: dark by default, light follows the OS. */

:root {
  --bg: #0c0b0a;
  --surface: #151312;
  --raised: #1e1b19;
  --soft: #242120;
  --ink: #ede9e5;
  --ink-2: #c8c1ba;
  --muted: #8f8780;
  --rule: #2a2623;
  --rule-strong: #403a36;
  --accent: #f07a3e;
  --accent-ink: #1a0c05;
  --accent-soft: #2f1a10;
  --ok: #6cc592;
  --ok-soft: #142a1d;
  --warn: #e4b158;
  --warn-soft: #2c2210;
  --danger: #f08378;
  --danger-soft: #331715;
  --shadow-card: 0 0 0 1px rgb(255 255 255 / 0.07), inset 0 1px 0 rgb(255 255 255 / 0.04), 0 30px 80px -30px rgb(0 0 0 / 0.8);
  --shadow-pop: 0 0 0 1px rgb(255 255 255 / 0.08), 0 20px 50px -12px rgb(0 0 0 / 0.75);
  --glow: rgb(240 122 62 / 0.1);
  --shadow-card-hover: 0 0 0 1px rgb(255 255 255 / 0.13), inset 0 1px 0 rgb(255 255 255 / 0.05), 0 30px 80px -30px rgb(0 0 0 / 0.85);
  --shadow-card-focus: 0 0 0 1px color-mix(in oklab, var(--accent) 65%, transparent), 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent), 0 30px 80px -30px rgb(0 0 0 / 0.85);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f4f1;
    --surface: #ffffff;
    --raised: #ffffff;
    --soft: #f1eee9;
    --ink: #1c1917;
    --ink-2: #44403c;
    --muted: #6b645e;
    --rule: #e3ded8;
    --rule-strong: #c9c2ba;
    --accent: #b9481a;
    --accent-ink: #ffffff;
    --accent-soft: #f8e6dc;
    --ok: #2f7a4f;
    --ok-soft: #e2f1e7;
    --warn: #8a5a00;
    --warn-soft: #f7ecd6;
    --danger: #b4322a;
    --danger-soft: #f9e4e1;
    --shadow-card: 0 0 0 1px rgb(28 25 23 / 0.06), 0 1px 2px rgb(28 25 23 / 0.04), 0 24px 64px -24px rgb(28 25 23 / 0.18);
    --shadow-pop: 0 0 0 1px rgb(28 25 23 / 0.08), 0 16px 40px -12px rgb(28 25 23 / 0.22);
    --glow: rgb(185 72 26 / 0.07);
    --shadow-card-hover: 0 0 0 1px rgb(28 25 23 / 0.12), 0 1px 2px rgb(28 25 23 / 0.05), 0 28px 70px -24px rgb(28 25 23 / 0.24);
    --shadow-card-focus: 0 0 0 1px color-mix(in oklab, var(--accent) 70%, transparent), 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent), 0 28px 70px -24px rgb(28 25 23 / 0.24);
    color-scheme: light;
  }
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, p { margin: 0; }

.i { width: 18px; height: 18px; flex-shrink: 0; display: block; }

.glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  pointer-events: none;
  background: radial-gradient(640px 320px at 50% 0%, var(--glow), transparent 70%);
}

/* ---- frame ---- */

.top {
  position: relative;
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.brand-mark .i { width: 17px; height: 17px; stroke-width: 2.25; }

.main {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 64px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 8px;
  text-align: center;
}
.hero h1 {
  font-size: 44px;
  line-height: 50px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero p {
  max-width: 520px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero-inner { gap: 14px; }
.hero-inner h1 { font-size: 36px; line-height: 42px; }

.stack { display: flex; flex-direction: column; gap: 32px; }
.stack-tight { display: flex; flex-direction: column; gap: 12px; }
#compose-view.stack { gap: 0; }

/* ---- composer ---- */

.composer {
  position: relative;
  margin-top: 40px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow 200ms var(--ease);
}
.composer:hover { box-shadow: var(--shadow-card-hover); }
.composer:focus-within { box-shadow: var(--shadow-card-focus); }
.composer .toolbar { transition: border-color 200ms var(--ease); }
.composer:focus-within .toolbar { border-top-color: var(--rule-strong); }
.composer textarea {
  display: block;
  width: 100%;
  min-height: 132px;
  max-height: 320px;
  field-sizing: content;
  resize: none;
  border: 0;
  background: transparent;
  padding: 20px 24px 12px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  outline: none;
  overflow: auto;
  border-radius: 28px 28px 0 0;
}
.composer textarea::placeholder { color: var(--muted); }

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 16px 12px;
}
.size {
  order: 99;
  margin-left: auto;
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.size.over { color: var(--danger); }

.chip, .file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 12px;
  background: var(--soft);
}
.chip { height: 48px; max-width: 280px; padding: 0 6px 0 8px; }
.chip.error { box-shadow: inset 0 0 0 1px var(--danger); }
.chip-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--raised);
  color: var(--muted);
}
.chip-icon .i { width: 16px; height: 16px; }
.chip.error .chip-icon, .chip.error .chip-size { color: var(--danger); }
.chip-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--ink); }
.chip-size { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.chip-x {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--muted);
}
.chip-x:hover { background: var(--raised); color: var(--ink); }
.chip-x .i { width: 15px; height: 15px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--rule);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--ink-2);
}
.icon-btn:hover { background: var(--soft); color: var(--ink); }

.pill-wrap { position: relative; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background-color 120ms var(--ease), color 120ms var(--ease), border-color 120ms var(--ease);
}
.pill .i { width: 16px; height: 16px; }
.pill .chev { width: 14px; height: 14px; color: var(--muted); transition: transform 120ms var(--ease); }
.pill:hover { background: var(--soft); color: var(--ink); }
.pill[aria-expanded="true"] { border-color: var(--rule-strong); background: var(--soft); color: var(--ink); }
.pill[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pill.active {
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
}
.pill-short { display: none; }

.send { margin-left: auto; }

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  transition: filter 120ms var(--ease), background-color 120ms var(--ease), color 120ms var(--ease);
}
.btn-toolbar { height: 40px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.1); }
.btn.primary:disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; }
.btn.secondary { border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink); }
.btn.secondary:hover { background: var(--soft); }
.btn.ghost { color: var(--ink-2); }
.btn.ghost:hover { background: var(--soft); color: var(--ink); }
.btn.danger { background: var(--danger); color: var(--bg); }
.btn.danger:hover { filter: brightness(1.1); }
.btn .i { width: 18px; height: 18px; }
.btn .arrow { width: 17px; height: 17px; }
.btn .spin { display: none; animation: spin 0.9s linear infinite; }
.btn.loading .spin { display: block; }
.btn.loading .arrow { display: none; }
.btn.loading:disabled { background: var(--accent); color: var(--accent-ink); opacity: 0.85; cursor: progress; }
.copy .done-i { display: none; }
.copy.copied .copy-i { display: none; }
.copy.copied .done-i { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- popovers ---- */

.scrim { position: fixed; inset: 0; z-index: 20; opacity: 0; transition: opacity 220ms var(--ease); }
.scrim.open { opacity: 1; }
.popover {
  position: absolute;
  bottom: 100%;
  left: 0;
  z-index: 30;
  width: 288px;
  margin-bottom: 8px;
  padding: 6px;
  border-radius: 18px;
  background: var(--raised);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transform-origin: bottom left;
  transition: opacity 160ms var(--ease), transform 200ms var(--ease);
}
.popover.open { opacity: 1; transform: none; }
.popover-wide { width: 320px; }
.link-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: -4px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
}
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn .i { width: 14px; height: 14px; }
.grab { display: none; }
.pop-title { padding: 8px 12px 6px; font-size: 13px; line-height: 18px; color: var(--muted); }
.menu { display: flex; flex-direction: column; }
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  text-align: left;
}
.menu-item:hover { background: var(--soft); }
.mi-label { font-size: 14px; color: var(--ink); }
.mi-hint { margin-left: 8px; font-size: 13px; color: var(--muted); }
.mi-check { width: 16px; height: 16px; color: var(--accent); visibility: hidden; }
.menu-item[aria-checked="true"] .mi-check { visibility: visible; }
.pop-body { display: flex; flex-direction: column; gap: 12px; padding: 0 6px 6px; }
.pop-actions { display: flex; gap: 8px; }
.pop-actions .btn { flex: 1; }

.input-wrap {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 120ms var(--ease);
}
.input-wrap:focus-within { border-color: var(--accent); }
.input-wrap.invalid { border-color: var(--danger); }
.input-wrap input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 15px;
  outline: none;
}
.input-wrap input::placeholder { color: var(--muted); }
.eye {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--muted);
}
.eye:hover { background: var(--soft); color: var(--ink); }
.eye .i { width: 16px; height: 16px; }
.eye .eye-off, .eye.shown .eye-on { display: none; }
.eye.shown .eye-off { display: block; }

.hint { font-size: 13px; line-height: 18px; color: var(--muted); }
.hint.center { text-align: center; }

/* ---- progress, drop, errors ---- */

.progress {
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
}
.progress > div { width: 0; height: 100%; background: var(--accent); transition: width 200ms var(--ease); }
.card .progress { left: 28px; right: 28px; }

.drop {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--accent);
  border-radius: 28px;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  pointer-events: none;
  text-align: center;
}
.drop-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.drop-icon .i { width: 22px; height: 22px; }
.drop-title { font-size: 16px; font-weight: 500; }
.drop-hint { font-size: 13px; color: var(--muted); }

.form-error { margin-top: 12px; padding: 0 8px; text-align: center; font-size: 13px; line-height: 18px; color: var(--danger); }
.stack > .form-error { margin-top: -20px; }

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.trust li { display: flex; align-items: center; gap: 6px; }
.trust .i { width: 15px; height: 15px; }

/* ---- cards and content ---- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.note {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  color: var(--ink-2);
}
.note > .i { margin-top: 2px; }
.note-title { font-weight: 500; }
.note.warn { background: var(--warn-soft); }
.note.warn > .i, .note.warn .note-title { color: var(--warn); }
.note.danger { background: var(--danger-soft); }
.note.danger > .i, .note.danger .note-title { color: var(--danger); }
.note.info { background: var(--soft); }
.note.info > .i { color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 15px; font-weight: 500; color: var(--ink); }
.value {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 20px;
  word-break: break-all;
  user-select: all;
}
.value-accent { border-color: var(--accent); }
.card hr { width: 100%; height: 1px; margin: 0; border: 0; background: var(--rule); }
.row { display: flex; flex-wrap: wrap; gap: 8px; }

.secret-text {
  max-height: 50vh;
  margin: 0;
  padding: 12px 14px;
  overflow: auto;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 21px;
  white-space: pre-wrap;
  word-break: break-all;
}
.files { display: flex; flex-direction: column; gap: 8px; }
.file-row { padding: 8px; }
.file-row .chip-text { flex: 1; }
.file-row .btn { flex-shrink: 0; }

.center-actions { display: flex; justify-content: center; margin-top: 32px; }

/* ---- phone ---- */

@media (max-width: 639px) {
  .top { padding: 20px; }
  .main { padding: 32px 16px 48px; }
  .hero { gap: 16px; }
  .hero h1 { font-size: 30px; line-height: 36px; }
  .hero p { font-size: 15px; line-height: 22px; }
  .hero-inner h1 { font-size: 28px; line-height: 34px; }
  .composer { margin-top: 32px; }
  .composer textarea { padding: 20px 20px 12px; }
  .chips { padding: 0 12px 12px; }
  .icon-btn, .pill, .btn-toolbar { height: 44px; }
  .icon-btn { width: 44px; }
  .pill .pill-label { display: none; }
  .pill .pill-short { display: inline; }
  .pill-icon-phone { width: 44px; justify-content: center; padding: 0; }
  .pill-icon-phone .pill-label { display: none; }
  .send { width: 100%; margin-left: 0; padding-top: 4px; }
  .send .btn { width: 100%; }
  .scrim { background: rgb(0 0 0 / 0.55); }
  .popover, .popover-wide {
    position: fixed;
    inset: auto 0 0 0;
    width: auto;
    margin: 0;
    padding: 8px 12px calc(24px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    opacity: 1;
    transform: translateY(100%);
    transition: transform 280ms var(--ease);
  }
  .popover.open, .popover-wide.open { transform: none; }
  .grab { display: block; width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 2px; background: var(--rule-strong); }
  .pop-title { font-size: 15px; font-weight: 500; color: var(--ink); }
  .menu-item { min-height: 48px; }
  .mi-label { font-size: 15px; }
  .pop-body { padding: 0; }
  .card { padding: 20px; }
  .file-row { flex-wrap: wrap; }
}


/* ---- shared blocks of the inner pages ---- */

.narrow { width: 100%; max-width: 520px; margin: 0 auto; }
.mid { width: 100%; max-width: 680px; margin: 0 auto; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.chips-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
}
.tag .i { width: 14px; height: 14px; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.tile { display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; border-radius: 18px; }
.tile .i { width: 26px; height: 26px; }
.tile.small { width: 40px; height: 40px; border-radius: 12px; }
.tile.small .i { width: 18px; height: 18px; }
.tile-accent { background: var(--accent-soft); color: var(--accent); }
.tile-ok { background: var(--ok-soft); color: var(--ok); }
.tile-muted { background: var(--soft); color: var(--muted); }
.tile-danger { background: var(--danger-soft); color: var(--danger); }

.center-card { align-items: center; gap: 24px; padding: 32px; text-align: center; overflow: hidden; }
.cc-text { display: flex; flex-direction: column; gap: 8px; }
.cc-text h1 { font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; }
.cc-text p { color: var(--ink-2); }
.wide { width: 100%; text-align: left; }
.btn.big { height: 48px; }
.input-wrap.tall { height: 48px; background: var(--bg); padding-left: 16px; }
.input-wrap.tall input { font-size: 15px; }

.wrong { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrong-text { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--danger); }
.wrong-text .i { width: 14px; height: 14px; }
.dots { display: flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule-strong); }
.dots i.used { background: var(--danger); }

/* ---- after creating ---- */

.done-hero { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.done-check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  box-shadow: 0 0 0 8px color-mix(in oklab, var(--ok-soft) 60%, transparent);
  animation: pop 320ms var(--ease);
}
.done-check .i { width: 26px; height: 26px; stroke-width: 2.5; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
.done-hero h1 { font-size: 36px; line-height: 42px; font-weight: 600; letter-spacing: -0.02em; }

.share { margin-top: 40px; overflow: hidden; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-card); }
.share-row { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.share-row + .share-row { border-top: 1px solid var(--rule); }
.line { display: flex; align-items: center; gap: 12px; }
.field-code {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink);
}
code.field-code { display: block; line-height: 46px; }
.field-code.small { height: 40px; line-height: 40px; border: 0; background: var(--soft); font-size: 13px; color: var(--ink-2); }
.pw-box { padding-right: 6px; }
.pw-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.key-warn { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 0 16px; text-align: center; font-size: 13px; line-height: 18px; color: var(--warn); }
.key-warn .i { width: 15px; height: 15px; margin-top: 1px; }

.receipt-box { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; padding: 20px; border: 1px solid var(--rule); border-radius: 22px; }
.rb-head { display: flex; align-items: flex-start; gap: 12px; }
.rb-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--soft); color: var(--ink-2); }
.rb-title { font-weight: 500; }
.receipt-box .row { flex-wrap: nowrap; }

/* ---- opened secret ---- */

.result { overflow: hidden; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-card); }
.banner { display: flex; align-items: center; gap: 10px; padding: 12px 24px; background: var(--soft); font-size: 14px; color: var(--ink-2); }
.banner .i { width: 16px; height: 16px; color: var(--muted); }
.banner-warn { background: var(--warn-soft); color: var(--warn); }
.banner-warn .i { color: var(--warn); }
.result-body { display: flex; flex-direction: column; gap: 20px; padding: 24px; }
.result-head { display: flex; align-items: center; gap: 12px; }
.result-head h1 { font-size: 20px; line-height: 28px; font-weight: 600; }
.file-icon { display: grid; place-items: center; width: 32px; color: var(--muted); }
.file-icon .i { width: 18px; height: 18px; }

/* ---- status ---- */

.r-head { display: flex; align-items: flex-end; gap: 16px; }
.r-head-text { display: flex; flex-direction: column; gap: 6px; }
.r-head-text h1 { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.02em; }
.r-head-text p { color: var(--ink-2); }

.stats { display: grid; overflow: hidden; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-card); }
.stats-2 { grid-template-columns: 1fr 1fr; }
.stats-3 { grid-template-columns: 1fr 1fr 1fr; }
.stat { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat-value { display: flex; align-items: baseline; gap: 8px; }
.stat-value > span { font-size: 26px; line-height: 30px; font-weight: 600; letter-spacing: -0.02em; }
.segs { display: flex; gap: 4px; }
.segs i { flex: 1; height: 6px; border-radius: 3px; background: var(--soft); }
.segs-accent i.on { background: var(--accent); }
.segs-warn i.on { background: var(--warn); }
.segs-danger i.on { background: var(--danger); }
.segs-ok i.on { background: var(--ok); }

.timeline h2 { font-size: 15px; font-weight: 500; }
.timeline ol { position: relative; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.timeline ol::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 13px; width: 1px; background: var(--rule); }
.timeline li { position: relative; display: flex; align-items: center; gap: 12px; }
.t-dot { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; box-shadow: 0 0 0 4px var(--surface); background: var(--soft); color: var(--muted); }
.t-dot .i { width: 14px; height: 14px; }
.t-opened { background: var(--ok-soft); color: var(--ok); }
.t-failed { background: var(--warn-soft); color: var(--warn); }
.t-burned, .t-attempts { background: var(--danger-soft); color: var(--danger); }
.t-label { flex: 1; }
.t-label.warn { color: var(--warn); }
.timeline time { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.danger-zone { border: 1px solid color-mix(in oklab, var(--danger) 25%, transparent); border-radius: 28px; padding: 20px 24px; }
.danger-zone summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; }
.danger-zone summary::-webkit-details-marker { display: none; }
.dz-text { display: flex; flex-direction: column; gap: 4px; }
.dz-title { font-size: 15px; font-weight: 500; }
.danger-zone details[open] summary .btn { visibility: hidden; }
.btn.danger-outline { flex-shrink: 0; border: 1px solid color-mix(in oklab, var(--danger) 40%, transparent); color: var(--danger); }
.btn.danger-outline:hover { background: var(--danger-soft); }
.confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
  animation: unfold 200ms var(--ease);
}
.confirm form { margin: 0; }

@media (max-width: 639px) {
  .center-card { padding: 24px 20px; }
  .key-warn { justify-content: flex-start; text-align: left; padding: 0 4px; }
  .done-hero h1 { font-size: 30px; line-height: 36px; }
  .share-row { padding: 20px; }
  .line { flex-direction: column; align-items: stretch; }
  .line .btn, .line .row { width: 100%; }
  .line .row .btn { flex: 1; }
  .field-code { flex: none; }
  .result-body { padding: 20px; }
  .banner { padding: 12px 20px; }
  .stats-3, .stats-2 { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--rule); }
  .danger-zone { padding: 20px; }
  .danger-zone summary { flex-direction: column; }
  .danger-zone summary .btn { width: 100%; }
  .danger-zone details[open] summary .btn { display: none; }
  .confirm { flex-direction: column; align-items: stretch; }
  .confirm .row .btn, .confirm form, .confirm form .btn { flex: 1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; }
}
