/* ═══════════════════════════════════════════════════════════════════════
   paper — a private PDF workbench.
   Identity: the redaction bar is the brand. Warm document paper on an ink
   desk. Space Grotesk (precision), mono for document truth (counts, sizes).
   ═══════════════════════════════════════════════════════════════════════ */
@font-face{ font-family:"Grotesk"; src:url(/fonts/grotesk-500.woff2) format("woff2"); font-weight:500; font-display:swap; }
@font-face{ font-family:"Grotesk"; src:url(/fonts/grotesk-700.woff2) format("woff2"); font-weight:700; font-display:swap; }
@font-face{ font-family:"Mono"; src:url(/fonts/mono-400.woff2) format("woff2"); font-weight:400; font-display:swap; }

:root{
  --ink:#16130F;         /* warm near-black, archival ink */
  --ink-2:#3B352C;
  --paper:#EDE7DA;       /* warm document paper (manila-leaning, not cream) */
  --paper-2:#E3DBCB;
  --paper-hi:#F5F1E8;
  --redact:#0B0A08;      /* true redaction black — the brand device */
  --seal:#B23A2E;        /* wax-seal oxblood — used only for the stamp + one accent */
  --seal-deep:#8E2A21;
  --brass:#A6823F;       /* muted brass, sparingly */
  --line:rgba(22,19,15,.14);
  --line-2:rgba(22,19,15,.28);
  --mute:rgba(22,19,15,.52);
  --desk:#211D17;        /* the dark desk the pages sit on (workbench) */
  --desk-2:#2B261E;
  --desk-line:rgba(237,231,218,.12);
  --paper-on-desk:#F3EEE2;
  --r:10px; --r-lg:16px; --r-xl:24px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --sans:"Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:"Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
*{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html,body{ margin:0; height:100%; }
body{ font-family:var(--sans); background:var(--paper); color:var(--ink); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; overflow-x:hidden; }
body[data-view="app"]{ background:var(--desk); overflow:hidden; }
.mono{ font-family:var(--mono); }
button{ font-family:inherit; }
:focus-visible{ outline:2px solid var(--seal); outline-offset:2px; border-radius:4px; }

/* ── brand lockup: the mark is a redaction bar over ledger lines ── */
.brand{ display:inline-flex; align-items:center; gap:11px; text-decoration:none; color:inherit; }
.brand-mark{ position:relative; width:34px; height:34px; border-radius:8px; background:var(--paper-hi); border:1px solid var(--line-2);
  display:flex; flex-direction:column; justify-content:center; gap:4px; padding:0 7px; overflow:hidden; box-shadow:0 1px 0 rgba(255,255,255,.4) inset; }
.brand-mark i{ height:2px; border-radius:2px; background:var(--ink-2); opacity:.55; }
.brand-mark i:first-of-type{ width:80%; } .brand-mark i:last-of-type{ width:55%; }
.brand-mark .bar{ position:absolute; left:6px; right:6px; top:50%; transform:translateY(-1px); height:6px; border-radius:2px; background:var(--redact); }
.brand-word{ font-weight:700; font-size:20px; letter-spacing:-.02em; }
body[data-view="app"] .brand-word, body[data-view="app"] .brand-mark{ }
.brand-sm .brand-mark{ width:30px; height:30px; } .brand-sm .brand-word{ font-size:17px; }

/* ═══════════════ LANDING ═══════════════ */
.hero{ min-height:100dvh; display:flex; flex-direction:column;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,.5), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(22,19,15,.035) 33px 34px),  /* faint ledger rule */
    var(--paper); }
.mast{ display:flex; align-items:center; justify-content:space-between; padding:22px clamp(20px,5vw,64px); }
.mast-xw{ font-size:12.5px; color:var(--mute); text-decoration:none; } .mast-xw b{ color:var(--ink); } .mast-xw:hover{ color:var(--ink); }

.hero-stage{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  padding:20px clamp(20px,5vw,64px) 40px; max-width:920px; margin:0 auto; width:100%; }
.eyebrow{ display:inline-flex; align-items:center; gap:8px; font-family:var(--mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--mute); margin:0 0 26px; }
.eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:var(--seal); box-shadow:0 0 0 4px rgba(178,58,46,.15); }
.hero-head{ font-size:clamp(40px,8vw,82px); line-height:.98; letter-spacing:-.035em; font-weight:700; margin:0 0 22px; }
.hero-head .amp{ color:var(--mute); font-weight:500; }
/* the signature: a redaction bar wipes over the word "redact" on load, reveals on hover */
.redacted{ position:relative; display:inline-block; color:var(--redact); }
.redacted .rw{ position:relative; z-index:0; }
.redacted .rbar{ position:absolute; left:-.06em; right:-.06em; top:8%; bottom:8%; background:var(--redact); border-radius:3px; z-index:1;
  transform-origin:left center; animation:redact-in 1s var(--ease) .35s both; }
@keyframes redact-in{ 0%{ transform:scaleX(0); } 100%{ transform:scaleX(1); } }
.redacted:hover .rbar, .redacted:focus-within .rbar{ transform:scaleX(1) translateX(102%); transition:transform .5s var(--ease); }
.hero-sub{ font-size:clamp(15px,2.1vw,18.5px); line-height:1.55; color:var(--ink-2); max-width:34ch; margin:0 auto 34px; }
.hero-sub em{ font-style:normal; color:var(--ink); border-bottom:2px solid var(--brass); }

.drop{ display:flex; flex-direction:column; align-items:center; gap:9px; width:min(460px,100%); padding:34px 24px; cursor:pointer;
  background:var(--paper-hi); border:1.5px dashed var(--line-2); border-radius:var(--r-xl);
  box-shadow:0 24px 60px -34px rgba(22,19,15,.5), 0 1px 0 rgba(255,255,255,.6) inset; transition:.2s var(--ease); }
.drop:hover, .drop:focus-visible, .drop.over{ border-color:var(--seal); background:#fff; transform:translateY(-2px); box-shadow:0 32px 70px -34px rgba(22,19,15,.55); }
.drop-ic{ width:52px; height:52px; border-radius:14px; background:var(--paper); border:1px solid var(--line); display:grid; place-items:center; }
.drop-ic svg{ width:24px; height:24px; fill:none; stroke:var(--ink); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.drop-t{ font-size:18px; font-weight:700; letter-spacing:-.01em; }
.drop-s{ font-size:13px; color:var(--mute); } .drop-s .mono{ color:var(--seal); }
.hero-verbs{ list-style:none; display:flex; flex-wrap:wrap; gap:8px 8px; justify-content:center; padding:0; margin:28px 0 0; }
.hero-verbs li{ font-family:var(--mono); font-size:12px; letter-spacing:.02em; color:var(--mute); padding:5px 11px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.35); }
.hero-verbs li.hot{ color:var(--paper); background:var(--redact); border-color:var(--redact); }

.proof{ padding:0 clamp(20px,5vw,64px) 30px; max-width:1040px; margin:0 auto; width:100%; }
.proof-line{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; border-top:1px solid var(--line); }
.pf{ padding:26px 26px 30px; border-left:1px solid var(--line); }
.pf:first-child{ border-left:0; padding-left:0; }
.pf-k{ font-size:12px; color:var(--seal); letter-spacing:.1em; }
.pf h3{ font-size:16.5px; margin:12px 0 7px; letter-spacing:-.01em; }
.pf p{ font-size:13.5px; line-height:1.55; color:var(--ink-2); margin:0; } .pf p em{ font-style:normal; font-weight:700; color:var(--ink); }
.hero-foot{ display:flex; justify-content:space-between; align-items:center; gap:16px; padding:20px clamp(20px,5vw,64px) calc(20px + env(safe-area-inset-bottom,0)); border-top:1px solid var(--line); color:var(--mute); font-size:12.5px; }
@media(max-width:720px){ .proof-line{ grid-template-columns:1fr; } .pf{ border-left:0; border-top:1px solid var(--line); padding:22px 0; } .pf:first-child{ border-top:0; } .hero-foot{ flex-direction:column; gap:6px; text-align:center; } }

/* ═══════════════ WORKBENCH ═══════════════ */
.app{ height:100dvh; display:flex; flex-direction:column; color:var(--paper); animation:app-in .5s var(--ease) both; }
@keyframes app-in{ from{ opacity:0; } to{ opacity:1; } }
.bar-top{ display:flex; align-items:center; gap:14px; padding:11px clamp(14px,3vw,26px); border-bottom:1px solid var(--desk-line);
  background:linear-gradient(180deg,#2E2820,var(--desk-2)); box-shadow:0 1px 0 rgba(0,0,0,.4); }
.bar-top .brand-mark{ background:var(--paper-hi); }
.bar-top .brand-word{ color:var(--paper-on-desk); }
/* document identity chip */
.doc-chip{ display:flex; align-items:center; gap:9px; margin-left:8px; padding:6px 12px 6px 9px; min-width:0;
  background:rgba(237,231,218,.05); border:1px solid var(--desk-line); border-radius:11px; }
.doc-file svg{ width:17px; height:17px; fill:none; stroke:var(--brass); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.doc-name{ font-size:13px; font-weight:700; color:var(--paper-on-desk); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:26vw; letter-spacing:-.01em; }
.doc-count{ font-size:10.5px; color:rgba(237,231,218,.5); letter-spacing:.05em; padding-left:9px; border-left:1px solid var(--desk-line); white-space:nowrap; }
/* the promise, always in view while you work */
.trust{ display:inline-flex; align-items:center; gap:7px; margin:0 auto; padding:6px 13px; border-radius:999px;
  background:rgba(122,158,110,.12); border:1px solid rgba(122,158,110,.34); color:#B9CBA7; font-size:11.5px; }
.trust svg{ width:14px; height:14px; fill:none; stroke:#8FB27C; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.trust-t b{ color:#D6E3C9; font-weight:700; }
.bar-top-actions{ margin-left:0; display:flex; gap:10px; }

.btn{ display:inline-flex; align-items:center; gap:8px; border:1px solid var(--line-2); background:var(--paper-hi); color:var(--ink);
  font-weight:700; font-size:13.5px; letter-spacing:-.01em; padding:10px 16px; border-radius:11px; cursor:pointer; transition:.16s var(--ease); }
.btn .i{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.btn:hover{ transform:translateY(-1px); }
.btn:disabled{ opacity:.4; pointer-events:none; }
.btn.ghost{ background:transparent; color:var(--paper-on-desk); border-color:var(--desk-line); }
.btn.ghost:hover{ border-color:var(--paper-on-desk); }
.btn.seal{ background:linear-gradient(150deg,var(--seal),var(--seal-deep)); border-color:transparent; color:#fff; box-shadow:0 8px 22px -12px rgba(178,58,46,.8); }
.btn.sm{ padding:8px 13px; font-size:12.5px; border-radius:9px; }

.toolbar{ display:flex; align-items:center; gap:12px; padding:9px clamp(14px,3vw,26px); background:var(--desk); border-bottom:1px solid var(--desk-line); }
.tb-seg{ display:flex; align-items:center; gap:6px; padding:3px; background:rgba(0,0,0,.18); border:1px solid var(--desk-line); border-radius:11px; }
.tb-spacer{ flex:1; }
.tb-sel{ font-size:11.5px; color:rgba(237,231,218,.55); margin:0 8px 0 4px; white-space:nowrap; }
.tb-div{ width:1px; height:18px; background:var(--desk-line); margin:0 2px; }
.tb{ display:inline-flex; align-items:center; gap:7px; background:transparent; border:0; color:var(--paper-on-desk);
  font-size:12.5px; font-weight:600; padding:7px 12px; border-radius:8px; cursor:pointer; transition:.15s var(--ease); }
.tb .i{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.tb:hover:not(:disabled){ background:rgba(237,231,218,.08); }
.tb:disabled{ opacity:.32; cursor:default; }
.tb.danger:hover:not(:disabled){ color:#F0A79E; background:rgba(178,58,46,.14); }

.grid-wrap{ flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; position:relative;
  background:radial-gradient(130% 70% at 50% -5%, rgba(0,0,0,.35), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(0,0,0,.06) 47px 48px), var(--desk); }
.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(172px,1fr)); gap:clamp(18px,2.6vw,34px);
  padding:clamp(22px,3vw,44px); max-width:1440px; margin:0 auto; }

/* a page card is a sheet of paper on the desk */
.pcard{ position:relative; cursor:pointer; }
.pcard.deal{ animation:deal .5s var(--ease) both; }
@keyframes deal{ from{ opacity:0; transform:translateY(14px) rotate(-.6deg); } to{ opacity:1; transform:none; } }
.psheet{ position:relative; background:var(--paper-on-desk); border-radius:3px 3px 4px 4px; overflow:hidden;
  box-shadow:0 1px 1px rgba(0,0,0,.35), 0 3px 4px rgba(0,0,0,.25), 0 18px 34px -16px rgba(0,0,0,.7);
  transition:transform .2s var(--ease), box-shadow .2s var(--ease); aspect-ratio:1/1.3; display:grid; place-items:center; }
.psheet::before{ content:""; position:absolute; inset:0; z-index:3; pointer-events:none; border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06); background:linear-gradient(115deg, rgba(255,255,255,.28), transparent 30%); }
.pcard:hover .psheet{ transform:translateY(-4px) rotate(.3deg); box-shadow:0 2px 2px rgba(0,0,0,.35), 0 28px 52px -18px rgba(0,0,0,.78); }
.pthumb{ width:100%; height:100%; object-fit:contain; display:block; opacity:0; transition:opacity .35s var(--ease); }
.pthumb.in{ opacity:1; }
.pskel{ position:absolute; inset:0; background:linear-gradient(100deg, #E6DFD1 30%, #F1EBDE 50%, #E6DFD1 70%); background-size:220% 100%; animation:shimmer 1.25s linear infinite; }
@keyframes shimmer{ from{ background-position:180% 0; } to{ background-position:-40% 0; } }
.pcard.sel .psheet{ outline:2.5px solid var(--seal); outline-offset:2px; }
.pcard.marked .psheet::after{ content:""; position:absolute; right:9px; top:9px; z-index:4; width:16px; height:5px; border-radius:2px; background:var(--redact); box-shadow:0 0 0 3px rgba(243,238,226,.6); }
.pcard.dragging{ opacity:.35; }
.pcard.drop-target{ position:relative; }
.pcard.drop-target::before{ content:""; position:absolute; left:-15px; top:0; bottom:26px; width:3px; border-radius:3px; background:var(--seal); box-shadow:0 0 10px 1px rgba(178,58,46,.6); z-index:5; }
.pnum{ display:flex; align-items:center; justify-content:space-between; margin-top:10px; padding:0 3px; }
.pnum-n{ font-family:var(--mono); font-size:10.5px; color:rgba(237,231,218,.55); letter-spacing:.02em; }
.pnum-tag{ font-family:var(--mono); font-size:9px; color:var(--paper); background:var(--redact); padding:2px 6px; border-radius:4px; letter-spacing:.04em; }
/* per-card hover controls */
.pact{ position:absolute; left:0; right:0; bottom:0; z-index:4; display:flex; gap:5px; justify-content:center; padding:9px 8px; opacity:0; transform:translateY(4px); transition:.16s var(--ease);
  background:linear-gradient(transparent, rgba(11,10,8,.78)); }
.pcard:hover .pact, .pcard:focus-within .pact{ opacity:1; transform:none; }
.pmini{ width:31px; height:31px; border-radius:9px; display:grid; place-items:center; cursor:pointer; border:1px solid rgba(237,231,218,.24);
  background:rgba(20,18,14,.72); color:var(--paper); backdrop-filter:blur(5px); transition:.14s var(--ease); }
.pmini svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.pmini:hover{ background:var(--seal); border-color:var(--seal); transform:translateY(-1px); }
.psel{ position:absolute; left:9px; top:9px; width:23px; height:23px; border-radius:7px; border:1.5px solid rgba(237,231,218,.55);
  background:rgba(20,18,14,.5); display:grid; place-items:center; opacity:0; transition:.14s var(--ease); z-index:5; backdrop-filter:blur(3px); }
.pcard:hover .psel, .pcard.sel .psel{ opacity:1; }
.pcard.sel .psel{ background:var(--seal); border-color:var(--seal); }
.psel svg{ width:13px; height:13px; fill:none; stroke:#fff; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; opacity:0; }
.pcard.sel .psel svg{ opacity:1; }

/* empty desk */
.empty{ display:flex; flex-direction:column; align-items:center; gap:14px; padding:70px 20px; text-align:center; color:rgba(237,231,218,.7); }
.empty-ic{ width:60px; height:60px; border-radius:16px; display:grid; place-items:center; background:rgba(237,231,218,.05); border:1px solid var(--desk-line); }
.empty-ic svg{ width:26px; height:26px; fill:none; stroke:rgba(237,231,218,.5); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.empty p{ font-size:14px; margin:0; }

/* branded footer */
.app-foot{ display:flex; align-items:center; gap:12px; padding:11px clamp(14px,3vw,26px) calc(11px + env(safe-area-inset-bottom,0));
  border-top:1px solid var(--desk-line); background:var(--desk-2); color:rgba(237,231,218,.55); font-size:12px; }
.app-foot b{ color:rgba(237,231,218,.82); font-weight:600; }
.af-seal{ width:20px; height:20px; border-radius:50%; flex:none; background:radial-gradient(circle at 40% 35%, var(--seal), var(--seal-deep));
  box-shadow:inset 0 1px 2px rgba(255,255,255,.3), 0 1px 2px rgba(0,0,0,.4); position:relative; }
.af-seal::after{ content:"p"; position:absolute; inset:0; display:grid; place-items:center; font-weight:700; font-size:11px; color:rgba(255,255,255,.85); }
.af-mono{ margin-left:auto; font-size:10.5px; color:rgba(237,231,218,.4); letter-spacing:.03em; }
.af-mono a{ color:rgba(237,231,218,.6); text-decoration:none; } .af-mono a:hover{ color:var(--paper-on-desk); }
@media(max-width:640px){ .trust-t{ display:none; } .doc-count{ display:none; } .bar-top-actions .btn span{ display:none; } .af-mono{ display:none; } .bar-top-actions .btn{ padding:10px; } }

/* ═══════════════ PAGE EDITOR ═══════════════ */
.editor{ position:fixed; inset:0; z-index:40; background:var(--desk); display:flex; flex-direction:column; color:var(--paper); }
.ed-bar{ display:flex; align-items:center; gap:16px; padding:12px clamp(14px,3vw,26px); border-bottom:1px solid var(--desk-line); background:var(--desk-2); }
.ed-back{ display:inline-flex; align-items:center; gap:6px; background:transparent; border:0; color:var(--paper-on-desk); font-size:14px; font-weight:700; cursor:pointer; padding:6px; margin-left:-6px; }
.ed-back svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ed-tools{ display:flex; gap:6px; margin:0 auto; background:var(--desk); padding:4px; border-radius:12px; border:1px solid var(--desk-line); }
.ed-tool{ display:inline-flex; align-items:center; gap:7px; background:transparent; border:0; color:rgba(237,231,218,.62); font-size:13px; font-weight:700; padding:8px 15px; border-radius:9px; cursor:pointer; transition:.15s var(--ease); }
.ed-tool svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.ed-tool .tool-bar{ width:16px; height:8px; border-radius:2px; background:currentColor; }
.ed-tool.is-on{ background:var(--paper-hi); color:var(--ink); }
.ed-tool.is-on[data-tool="redact"]{ background:var(--redact); color:var(--paper); }
.ed-tool.is-on[data-tool="sign"]{ background:linear-gradient(150deg,var(--seal),var(--seal-deep)); color:#fff; }
.ed-page{ font-size:12px; color:rgba(237,231,218,.5); }
.ed-hint{ text-align:center; font-size:12.5px; color:rgba(237,231,218,.6); padding:9px 20px; background:var(--desk); border-bottom:1px solid var(--desk-line); }
.ed-stage{ flex:1; overflow:auto; display:grid; place-items:center; padding:clamp(16px,3vw,36px);
  background:radial-gradient(100% 60% at 50% 0, rgba(0,0,0,.3), transparent 60%); }
.ed-canvaswrap{ position:relative; box-shadow:0 30px 70px -30px rgba(0,0,0,.85); border-radius:2px; overflow:hidden; background:#fff; }
.ed-base{ display:block; max-width:100%; height:auto; }
.ed-overlay{ position:absolute; inset:0; width:100%; height:100%; cursor:crosshair; touch-action:none; }
.editor[data-tool="sign"] .ed-overlay{ cursor:copy; }
.editor[data-tool="rotate"] .ed-overlay{ cursor:default; pointer-events:none; }
.ed-foot{ display:flex; justify-content:center; gap:12px; padding:14px 20px calc(14px + env(safe-area-inset-bottom,0)); border-top:1px solid var(--desk-line); background:var(--desk-2); }

/* ═══════════════ MODAL (signature) ═══════════════ */
.modal{ position:fixed; inset:0; z-index:60; display:grid; place-items:center; padding:20px; background:rgba(11,10,8,.62); backdrop-filter:blur(6px); }
.modal-card{ width:min(440px,100%); background:var(--paper-hi); color:var(--ink); border-radius:var(--r-xl); border:1px solid var(--line-2); overflow:hidden; box-shadow:0 40px 90px -40px rgba(0,0,0,.8); }
.modal-head{ display:flex; align-items:center; justify-content:space-between; padding:18px 20px 10px; }
.modal-head h3{ margin:0; font-size:18px; letter-spacing:-.01em; }
.modal-x{ background:transparent; border:0; font-size:16px; color:var(--mute); cursor:pointer; }
.sig-seg{ display:flex; gap:6px; margin:0 20px; padding:4px; background:var(--paper-2); border-radius:11px; }
.sseg{ flex:1; background:transparent; border:0; padding:8px; border-radius:8px; font-weight:700; font-size:13px; color:var(--mute); cursor:pointer; }
.sseg.is-on{ background:#fff; color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.1); }
.sig-body{ padding:16px 20px; }
.sig-canvas{ width:100%; height:170px; background:#fff; border:1px solid var(--line); border-radius:12px; touch-action:none; display:block; cursor:crosshair; }
.sig-note{ text-align:center; font-size:11.5px; color:var(--mute); margin-top:8px; }
.sig-input{ width:100%; padding:12px 14px; border:1px solid var(--line-2); border-radius:11px; background:#fff; font-size:15px; font-family:inherit; }
.sig-preview{ height:110px; display:grid; place-items:center; margin-top:12px; font-size:38px; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:12px;
  font-family:"Segoe Script","Bradley Hand","Snell Roundhand",cursive; }
.modal-foot{ display:flex; justify-content:space-between; gap:12px; padding:12px 20px 18px; }

/* ═══════════════ toast + busy ═══════════════ */
.toast{ position:fixed; left:50%; bottom:26px; transform:translateX(-50%) translateY(8px); z-index:80; opacity:0; transition:.25s var(--ease);
  background:var(--ink); color:var(--paper); font-size:13px; font-weight:500; padding:11px 18px; border-radius:999px; box-shadow:0 20px 40px -18px rgba(0,0,0,.6); pointer-events:none; }
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
.busy{ position:fixed; inset:0; z-index:90; display:grid; place-items:center; gap:0; background:rgba(11,10,8,.5); backdrop-filter:blur(3px); }
.busy .busy-bar{ width:150px; height:4px; border-radius:4px; background:rgba(237,231,218,.25); overflow:hidden; position:relative; }
.busy .busy-bar::after{ content:""; position:absolute; inset:0; width:40%; background:var(--seal); border-radius:4px; animation:slide 1s var(--ease) infinite; }
@keyframes slide{ 0%{ transform:translateX(-120%);} 100%{ transform:translateX(320%);} }
.busy-txt{ position:absolute; margin-top:44px; color:var(--paper-on-desk); font-size:12px; letter-spacing:.06em; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.05ms !important; }
  .redacted .rbar{ transform:scaleX(1); }
}
