/* Jacked Sign. Brand tokens match jacked.bio: ink, warm paper, one red. */
:root {
  --ink: #0A0A0A; --paper: #FAFAF7; --desk: #ECEAE2; --rule: #E5E3DA; --mute: #6B6B66; --red: #E83A1A; --red-d: #C42C10;
  --tag: #FFF1B8; --tag-b: #E0A800; --ok: #1F7A4D; --ok-bg: #E3F3EA; --warn-bg: #FFF1D6; --warn: #8A5A00;
  --shadow: 0 1px 2px rgba(10,10,10,.06), 0 8px 28px rgba(10,10,10,.08);
  --display: 'Archivo Black', 'Archivo', system-ui, sans-serif; --body: 'Archivo', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--body); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; margin: 0; line-height: 1.15; }
h1 { font-size: 30px; } h2 { font-size: 20px; }
h3 { font: 700 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 0 0 12px; }
a { color: inherit; } p { margin: 0 0 10px; }
.muted { color: var(--mute); } .sm { font-size: 13px; } .num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 11px; word-break: break-all; }

.mark { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.mark b { font: 400 15px/1 var(--display); letter-spacing: .14em; white-space: nowrap; }
.mark span { font: 700 10px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; background: var(--red); color: #fff; padding: 4px 6px 3px; border-radius: 3px; }
.mark.big b { font-size: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1.5px solid var(--ink);
  border-radius: 8px; background: transparent; color: var(--ink); font: 700 14px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--ink); color: #fff; } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(232,58,26,.28); }
.btn.primary:hover { background: var(--red-d); border-color: var(--red-d); }
.btn.danger { border-color: var(--red); color: var(--red); } .btn.danger:hover { background: var(--red); color: #fff; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; } .btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.link { background: none; border: 0; padding: 0; color: var(--mute); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.link.danger { color: var(--red); }
:focus-visible { outline: 3px solid rgba(232,58,26,.45); outline-offset: 2px; }

input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); font: 400 16px/1.3 var(--body); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
label { display: block; font: 600 13px/1.3 var(--body); color: var(--ink); }
label input, label textarea { margin-top: 6px; }

.top { display: flex; align-items: center; gap: 28px; padding: 0 24px; height: 60px; background: var(--ink); color: #fff; }
.top nav { display: flex; gap: 20px; flex: 1; } .top nav a { color: #cfcfca; text-decoration: none; font-weight: 600; font-size: 14px; } .top nav a:hover { color: #fff; }
.top .who { display: flex; gap: 12px; align-items: center; font-size: 13px; color: #cfcfca; } .top .link { color: #9a9a94; }
.flash { margin: 14px auto 0; max-width: 1180px; padding: 12px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.flash.err { background: #FDE7E2; color: #8C1D08; } .flash.ok { background: var(--ok-bg); color: var(--ok); }
.wrap > .flash, .form .flash, .panel .flash, .sheet .flash { margin: 0 0 14px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 34px 24px 80px; } .wrap.narrow { max-width: 640px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; } .actions { display: flex; gap: 10px; }
.back { display: inline-block; margin-bottom: 10px; color: var(--mute); font-size: 13px; text-decoration: none; } .back::before { content: '← '; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; margin-bottom: 26px; background: #fff; }
.stats div { padding: 18px 20px; border-right: 1px solid var(--rule); } .stats div:last-child { border: 0; }
.stats span { display: block; font: 700 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.stats b { display: block; margin-top: 10px; font: 400 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.stats div:first-child { background: var(--ink); color: #fff; } .stats div:first-child span { color: #9a9a94; }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--rule); border-radius: 12px; }
table.list { width: 100%; border-collapse: collapse; min-width: 760px; }
.list th { text-align: left; font: 700 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.list th.num { text-align: right; } .list td { padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.list tr:last-child td { border-bottom: 0; } .list tbody tr { cursor: pointer; } .list tbody tr:hover { background: var(--paper); } .list a { text-decoration: none; }
.chip { display: inline-block; padding: 5px 9px 4px; border-radius: 99px; font: 700 11px/1 var(--body); letter-spacing: .04em; white-space: nowrap; }
.chip.draft { background: var(--desk); color: var(--mute); } .chip.sent { background: var(--warn-bg); color: var(--warn); }
.chip.viewed { background: #E4ECFF; color: #1E3A8A; } .chip.done { background: var(--ok-bg); color: var(--ok); } .chip.void { background: #FDE7E2; color: #8C1D08; }
.empty { text-align: center; padding: 70px 20px; border: 1.5px dashed var(--rule); border-radius: 12px; }

.card { background: #fff; border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); padding: 28px; }
.form { display: grid; gap: 16px; margin-top: 18px; } .form h3 { margin: 12px 0 0; } .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--desk); }
.login { width: 100%; max-width: 400px; display: grid; gap: 14px; } .login form { display: grid; gap: 14px; }
.sigbox { min-height: 96px; display: grid; place-items: center; border: 1.5px dashed var(--rule); border-radius: 10px; background: var(--paper); padding: 10px; }
.sigbox img { max-height: 76px; max-width: 100%; }

/* document view */
body.doc { background: var(--desk); }
.docwrap { max-width: 1440px; margin: 0 auto; padding: 22px 24px 80px; }
.dochead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; } .dochead .back { margin: 0; flex-basis: 100%; } .dochead h1 { font-size: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.side { display: grid; gap: 14px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding-bottom: 4px; }
.panel { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 18px; } .panel.send { border: 1.5px solid var(--ink); }
.panel dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; } .panel dt { color: var(--mute); font-size: 13px; } .panel dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.signers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } .signers li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.addsigner { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 8px; } .addsigner input, .addsigner select { min-height: 38px; font-size: 14px; padding: 6px 10px; }
.fundsform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .fundsform .btn { grid-column: 1 / -1; } .fundsform input { min-height: 38px; font-size: 14px; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; } .btnrow.end { justify-content: flex-end; margin-top: 18px; }
.mailprev { width: 100%; height: 420px; border: 1px solid var(--rule); border-radius: 8px; background: #F1EFE8; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; } .events span { display: block; color: var(--mute); font-size: 12px; }
.toolbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 14px; background: var(--ink); color: #fff; border-radius: 10px; }
.toolbar .muted { color: #b5b5ae; } .toolbar select { width: auto; min-height: 34px; padding: 4px 8px; font-size: 14px; } .toolbar #saveFields { margin-left: auto; }
.tools { display: flex; gap: 4px; } .tools button { min-height: 34px; padding: 0 12px; border: 1px solid #444; border-radius: 6px; background: #1b1b1b; color: #fff; font: 600 13px var(--body); cursor: pointer; }
.tools button.on { background: var(--tag); color: var(--ink); border-color: var(--tag-b); }
body.placing .pg { cursor: crosshair; }

/* pages and fields (admin + signer) */
.pages { display: grid; gap: 18px; justify-items: center; }
.pg { position: relative; width: 100%; max-width: 900px; background: #fff; box-shadow: var(--shadow); container-type: inline-size; }
.pg img { display: block; width: 100%; height: auto; aspect-ratio: 612 / 792; user-select: none; }
.layer { position: absolute; inset: 0; }
.fld { position: absolute; display: flex; align-items: center; padding: 0 .6cqw; margin: 0; border: .25cqw solid var(--tag-b); border-radius: .5cqw; background: rgba(255,241,184,.86);
  color: #5c4500; font: 700 1.5cqw/1 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; text-align: left; }
.fld.sig { justify-content: center; font-size: 1.9cqw; letter-spacing: .04em; text-transform: uppercase; }
.fld.sig::before { content: ''; width: 1.9cqw; height: 1.9cqw; margin-right: .7cqw; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21l3.5-1 11-11-2.5-2.5-11 11L3 21zm13-15.5L18.5 8l2-2L18 3.5l-2 2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21l3.5-1 11-11-2.5-2.5-11 11L3 21zm13-15.5L18.5 8l2-2L18 3.5l-2 2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.fld.filled { background: rgba(255,255,255,.2); border-color: transparent; border-bottom-color: transparent; color: var(--ink); font: 400 1.75cqw/1 'Times New Roman', Times, serif; }
.fld.filled:hover { border-color: var(--rule); }
.fld.sig.filled { padding: 0; justify-content: flex-start; } .fld.sig.filled::before { display: none; } .fld.sig.filled img { height: 100%; max-width: 100%; object-fit: contain; object-position: left bottom; }
.fld.pulse { animation: pulse 1.1s ease-out 2; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,58,26,.55); } 100% { box-shadow: 0 0 0 2.4cqw rgba(232,58,26,0); } }
.fld.admin { cursor: default; font-size: 1.3cqw; } .fld.admin.movable { cursor: grab; touch-action: none; padding-right: 2.6cqw; }
.fld.admin.c1 { background: rgba(207,226,255,.88); border-color: #2F6FED; color: #123a8a; } .fld.admin.c2 { background: rgba(214,243,224,.88); border-color: #1F7A4D; color: #14532d; } .fld.admin.c3 { background: rgba(246,220,255,.88); border-color: #9333EA; color: #581c87; }
.fld.admin.filled { background: rgba(227,243,234,.5); border: .2cqw dashed var(--ok); color: transparent; }
.fld .del { position: absolute; right: 0; top: 0; bottom: 0; width: 2.4cqw; border: 0; background: rgba(10,10,10,.75); color: #fff; font: 700 1.6cqw/1 var(--body); cursor: pointer; }

/* signer experience */
body.signing { background: var(--desk); padding-bottom: 60px; }
.signbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 20px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--ink); color: #fff; box-shadow: 0 6px 24px rgba(10,10,10,.25); }
.prog { flex: 1; display: flex; align-items: center; gap: 12px; justify-content: flex-end; font: 600 13px var(--body); color: #cfcfca; white-space: nowrap; }
.progtrack { flex: 1; max-width: 260px; height: 6px; border-radius: 99px; background: #2c2c2a; overflow: hidden; } .progtrack i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 99px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.signbar .btn { min-width: 96px; } .signbar .btn.ready { animation: ready 1.6s ease-in-out infinite; }
@keyframes ready { 50% { box-shadow: 0 0 0 7px rgba(232,58,26,.3); } }
.hero { max-width: 900px; margin: 0 auto; padding: 44px 24px 30px; animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.eyebrow { font: 700 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.hero h1 { font-size: clamp(26px, 4.6vw, 40px); max-width: 18em; }
.doctitle { display: inline-block; margin: 18px 0 12px; padding: 9px 14px; background: #fff; border: 1.5px solid var(--ink); border-radius: 8px; font-weight: 700; }
.signpages { padding: 0 16px; animation: rise .7s .08s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.signfoot { text-align: center; padding: 34px 16px 10px; color: var(--mute); font-size: 12px; letter-spacing: .04em; }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(10,10,10,.55); backdrop-filter: blur(3px); animation: fade .18s both; }
.modal[hidden] { display: none; } body.modal-open { overflow: hidden; }
.sheet { width: 100%; max-width: 480px; background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 30px 80px rgba(10,10,10,.35); animation: pop .22s cubic-bezier(.2,.9,.3,1.2) both; }
.sheet h2 { margin-bottom: 14px; } .sigsheet { max-width: 560px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.shake { animation: shake .3s; } @keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.tabs { display: inline-flex; padding: 3px; background: var(--desk); border-radius: 9px; margin-bottom: 14px; } .tabs button { min-height: 34px; padding: 0 18px; border: 0; border-radius: 7px; background: none; font: 700 13px var(--body); color: var(--mute); cursor: pointer; } .tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10,10,10,.15); }
.sigpane { position: relative; } .sigpane canvas { display: block; width: 100%; height: 190px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--paper); touch-action: none; }
.sigline { position: absolute; left: 22px; right: 22px; top: 142px; border-bottom: 1.5px solid #c9c7bd; pointer-events: none; } .sigline::before { content: '×'; position: absolute; left: 0; bottom: 4px; color: #b0aea4; font-size: 18px; }
#sigClear { position: absolute; right: 12px; top: 10px; }
.sigpreview { min-height: 120px; margin-top: 12px; display: grid; place-items: center; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--paper); font: 400 58px/1 'Mrs Saint Delafield', 'Snell Roundhand', cursive; color: #0b1f5c; padding: 10px; overflow: hidden; white-space: nowrap; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin: 14px 0; border: 1.5px solid var(--rule); border-radius: 10px; font: 500 14px/1.45 var(--body); cursor: pointer; }
.consent input { width: 22px; min-height: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--red); }
.donecard { max-width: 460px; text-align: center; display: grid; gap: 12px; justify-items: center; padding: 44px 32px; }
.tick { width: 84px; height: 84px; } .tick circle { fill: var(--red); transform-origin: center; animation: pop .45s cubic-bezier(.2,.9,.3,1.4) both; }
.tick path { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s .35s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.donecard .mark { margin-top: 14px; opacity: .5; }

@media (max-width: 980px) { .split { grid-template-columns: 1fr; } .side { position: static; max-height: none; order: -1; } }
@media (max-width: 640px) {
  .top { gap: 12px; padding: 0 12px; } .top .who span { display: none; } .top .mark b { font-size: 12px; white-space: nowrap; } .top nav { gap: 12px; } .top .link { white-space: nowrap; } .wrap { padding: 22px 14px 60px; } .docwrap { padding: 14px 10px 60px; }
  .stats { grid-template-columns: 1fr 1fr; } .stats div { border-bottom: 1px solid var(--rule); } .stats b { font-size: 22px; }
  .head { flex-direction: column; align-items: stretch; } .actions .btn { flex: 1; } .row2 { grid-template-columns: 1fr; } h1 { font-size: 24px; }
  .signbar { gap: 10px; padding-left: 12px; padding-right: 12px; } .signbar .mark { display: none; } .prog { justify-content: flex-start; } .signpages { padding: 0 6px; } .hero { padding: 28px 16px 22px; }
  .modal { place-items: end center; padding: 0; } .sheet { border-radius: 18px 18px 0 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); } .sigpreview { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .tick path { stroke-dashoffset: 0; } }

/* confirmation page with wire details */
body.donepage { background: var(--desk); }
.donewrap { max-width: 560px; margin: 0 auto; padding: 40px 16px 60px; display: grid; gap: 18px; justify-items: center; }
.donewrap .card { width: 100%; max-width: none; } .donewrap > .mark { opacity: .45; margin-top: 8px; }
.wirecard { display: grid; gap: 10px; animation: rise .6s .5s cubic-bezier(.2,.8,.2,1) both; border: 1.5px solid var(--ink); }
.wirecard .eyebrow { margin: 0; } .wirecard h2 { font-size: 22px; }
.wire { border: 1px solid var(--rule); border-radius: 10px; padding: 4px 14px 10px; background: var(--paper); margin: 4px 0; }
.wire h3 { margin: 14px 0 4px; }
.wrow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--rule); } .wrow:last-child { border: 0; }
.wrow span { color: var(--mute); font-size: 13px; } .wrow b { font-variant-numeric: tabular-nums; text-align: right; word-break: break-word; }
.copy { min-height: 28px; padding: 0 9px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; font: 700 11px var(--body); color: var(--mute); cursor: pointer; } .copy:hover { border-color: var(--ink); color: var(--ink); }
.caution { margin: 4px 0 0; }
.wiredoc { display: grid; gap: 10px; margin: 6px 0; } .wiredoc img { display: block; width: 100%; height: auto; aspect-ratio: 612 / 792; background: #fff; border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow); }
.wiretext summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 8px 0; } .wiretext[open] summary { margin-bottom: 4px; }
.donewrap { max-width: 640px; }
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; } .choice legend { font: 600 13px/1.3 var(--body); margin-bottom: 8px; padding: 0; }
.choice label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 10px; cursor: pointer; font-weight: 400; }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.choice input { width: 18px; min-height: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--red); } .choice small { display: block; color: var(--mute); font-size: 13px; }
@media (max-width: 640px) { .actions { flex-wrap: wrap; } }

/* ---------- data rooms: admin ---------- */
.wrap.wide { max-width: 1280px; }
.roomgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.roomcard { display: grid; gap: 14px; padding: 22px; background: #fff; border: 1.5px solid var(--ink); border-radius: 14px; text-decoration: none; transition: transform .12s, box-shadow .12s; }
a.roomcard:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--ink); }
.roomcard.new { border-style: dashed; border-color: var(--rule); background: transparent; }
.roomcard dl { display: flex; gap: 22px; margin: 0; } .roomcard dt { font: 700 10px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); } .roomcard dd { margin: 6px 0 0; font: 400 24px/1 var(--display); }
.tabsbar { display: flex; gap: 4px; border-bottom: 1.5px solid var(--ink); margin-bottom: 22px; overflow-x: auto; }
.tabsbar a { padding: 11px 18px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--mute); border-radius: 8px 8px 0 0; white-space: nowrap; }
.tabsbar a.on { background: var(--ink); color: #fff; } .tabsbar a span { font-weight: 500; opacity: .7; margin-left: 4px; }
.split2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; } .side.static { position: static; max-height: none; }
.stack { display: grid; gap: 10px; } .stack input, .stack select, .stack textarea { font-size: 14px; min-height: 38px; padding: 7px 10px; }
.drop { border: 2px dashed #c9c7bd; border-radius: 14px; padding: 26px 20px; text-align: center; background: #fff; margin-bottom: 16px; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--red); background: #FFF4F1; } .drop.busy { opacity: .7; pointer-events: none; } .drop p { margin: 0 0 6px; }
.drop select { width: auto; min-height: 30px; padding: 2px 8px; font-size: 13px; } .drop .link { font-size: inherit; color: var(--red); font-weight: 700; }
.files { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--rule); border-radius: 12px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 calc(14px + var(--d, 0) * 26px); min-height: 52px; border-bottom: 1px solid var(--rule); }
.files li:last-child { border-bottom: 0; } .files li.folder { background: var(--paper); font-weight: 700; min-height: 44px; }
.files li.folder:first-child { border-radius: 12px 12px 0 0; }
.fold { width: 18px; height: 14px; border-radius: 2px 4px 3px 3px; background: var(--ink); position: relative; flex: none; } .fold::before { content: ''; position: absolute; left: 0; top: -3px; width: 8px; height: 4px; border-radius: 2px 2px 0 0; background: var(--ink); }
.fic { flex: none; display: inline-grid; place-items: center; width: 38px; height: 26px; margin-right: 12px; border-radius: 5px; background: var(--ink); color: #fff; font: 700 9px/1 var(--body); letter-spacing: .06em; }
.fic.pdf { background: var(--red); } .fic.xlsx, .fic.xls, .fic.csv { background: #1F7A4D; } .fic.docx, .fic.doc { background: #1E3A8A; } .fic.pptx, .fic.ppt { background: #B45309; }
.files a { display: flex; align-items: center; text-decoration: none; min-width: 0; } .files .fname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmeta { color: var(--mute); font-size: 13px; white-space: nowrap; } .grow { flex: 1; }
.mv { display: flex; gap: 2px; } .mv button { width: 28px; height: 28px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; cursor: pointer; color: var(--mute); } .mv button:hover { border-color: var(--ink); color: var(--ink); }
.rowmenu { position: relative; } .rowmenu summary { list-style: none; width: 32px; height: 28px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 6px; cursor: pointer; font-weight: 700; } .rowmenu summary::-webkit-details-marker { display: none; }
.menu { position: absolute; right: 0; top: 34px; z-index: 10; width: 300px; display: grid; gap: 12px; padding: 14px; background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 rgba(10,10,10,.12); font-weight: 400; }
.inline { display: grid; grid-template-columns: 1fr auto; gap: 8px; } .inline input { min-height: 34px; padding: 4px 8px; font-size: 13px; min-width: 0; }
.newlink { margin-bottom: 20px; border: 1.5px solid var(--ink); } .linkform { display: grid; gap: 14px; margin-top: 6px; } .linkcard .linkform { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: 10px; cursor: pointer; font-weight: 400; }
.opt:has(input:checked) { border-color: var(--ink); background: var(--paper); } .opt.off { opacity: .55; cursor: not-allowed; }
.opt input { width: 18px; min-height: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--red); } .opt small { display: block; color: var(--mute); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.linkcard { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; }
.linkhead { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.urlrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 12px 0 10px; } .urlrow input { font: 500 13px ui-monospace, Menlo, monospace; min-height: 36px; background: var(--paper); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; } .tag { padding: 4px 8px; border: 1px solid var(--rule); border-radius: 6px; font-size: 12px; color: var(--mute); }
.sech { margin: 26px 0 10px; } .list.plain tbody tr { cursor: default; } .list.plain tbody tr:hover { background: none; }
.barcell { display: flex; align-items: center; gap: 10px; min-width: 220px; font-variant-numeric: tabular-nums; font-size: 13px; } .hbar { height: 10px; min-width: 2px; border-radius: 99px; background: var(--red); flex: none; max-width: 70%; }
.smallb { font-size: 18px !important; padding-top: 4px; }
.docstat { margin-bottom: 14px; } .bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; margin-top: 16px; padding-bottom: 18px; overflow-x: auto; }
.bar { position: relative; flex: 1 0 14px; max-width: 40px; height: 100%; display: flex; align-items: flex-end; background: linear-gradient(to top, var(--desk) 0, var(--desk) 100%) bottom/100% 2px no-repeat; }
.bar i { display: block; width: 100%; background: var(--ink); border-radius: 3px 3px 0 0; } .bar:hover i { background: var(--red); }
.bar span { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--mute); }

/* ---------- data rooms: visitor ---------- */
body.gatepage { min-height: 100vh; background: var(--ink); color: #fff; background-image: radial-gradient(1200px 500px at 50% -10%, #2a120c 0, transparent 70%); }
.gatewrap { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 26px; padding: 30px 16px; animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.gatewrap > .mark b { color: #fff; } .gatefoot { color: #8a8a84; font-size: 12px; letter-spacing: .04em; margin: 0; }
.gatecard { width: 100%; max-width: 440px; color: var(--ink); display: grid; gap: 12px; padding: 32px; } .gatecard h1 { font-size: 26px; } .gatecard .flash { margin: 0; }
.gateform { display: grid; gap: 14px; margin-top: 6px; } .gatelinks { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
input.code { font: 400 30px/1 var(--display); letter-spacing: .32em; text-align: center; padding: 14px 8px; }
.steps { display: flex; gap: 6px; } .steps i { height: 4px; flex: 1; border-radius: 99px; background: var(--rule); } .steps i.on { background: var(--red); }
body.roompage { background: var(--desk); }
.roombar { display: flex; justify-content: space-between; align-items: center; padding: 0 22px; height: 56px; background: var(--ink); color: #fff; } .roombar .who { font-size: 13px; color: #b5b5ae; overflow: hidden; text-overflow: ellipsis; }
.roomhero { max-width: 860px; margin: 0 auto; padding: 46px 20px 26px; animation: rise .6s cubic-bezier(.2,.8,.2,1) both; } .roomhero h1 { font-size: clamp(30px, 6vw, 46px); margin-bottom: 14px; }
.welcome { font-size: 17px; line-height: 1.55; max-width: 44em; } .roomlist { max-width: 860px; margin: 0 auto; padding: 0 20px; animation: rise .7s .08s cubic-bezier(.2,.8,.2,1) both; }
.roomlist .files li:not(.folder) { padding-right: 0; padding-left: 0; } .roomlist .files a { flex: 1; padding: 0 16px 0 calc(16px + var(--d, 0) * 26px); min-height: 60px; gap: 0; }
.roomlist .files a:hover { background: var(--paper); } .roomlist .files a:hover .fname { color: var(--red); } .roomlist .fname { flex: 1; font-size: 16px; }
.viewbar { gap: 14px; } .backroom { color: #fff; text-decoration: none; font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; } .backroom:hover { background: #222; }
.vtitle { flex: 1; min-width: 0; display: grid; } .vtitle b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vtitle span { font-size: 12px; color: #b5b5ae; font-variant-numeric: tabular-nums; }
.viewpages { padding-top: 22px; } .viewpages .pg img { aspect-ratio: auto; min-height: 120px; -webkit-user-drag: none; -webkit-touch-callout: none; }
body.viewing .pages { transition: filter .15s; } body.viewing.away .pages { filter: blur(18px); }
@media (max-width: 900px) { .split2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .gatecard { padding: 24px 20px; } .files .fmeta { display: none; } .roomlist { padding: 0 10px; } .menu { width: 260px; } .viewbar .mark { display: block; } }
@media print { body.viewing .pages, body.roompage main { display: none !important; } }
