/* Eazy-eSign. Black and gold, Inter for text, Grenze Gotisch for the wordmark only. */
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Grenze Gotisch"; src: url("/static/fonts/grenze-gotisch-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --black:#000; --gold:#C2B067; --gold-ink:#6f5f1f; --ink:#141414; --ink-2:#3a3a3a; --muted:#5f5f5f;
  --line:#e6e6e2; --line-2:#dcdcd8; --bg:#ffffff; --card:#fff; --ok:#1f6b3d; --bad:#b3261e;
  --radius:14px; --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin:0; font-family: var(--font); color:var(--ink); background:var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--gold-ink); }
p { line-height:1.55; }
h1 { font-size:26px; font-weight:700; letter-spacing:-0.01em; margin:0 0 12px; }
h2 { font-size:17px; font-weight:650; margin:24px 0 10px; }
.muted { color:var(--muted); font-size:14px; }
.center { text-align:center; }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size:12px; word-break:break-all; color:var(--ink-2); }

/* ---------- header ---------- */
header.top { background:var(--black); min-height:64px; padding:0 24px; display:flex; align-items:center; gap:20px; position:sticky; top:0; z-index:20; }
header.top .brand { display:flex; align-items:center; gap:10px; text-decoration:none; flex-shrink:0; }
header.top .brand img { width:36px; height:36px; display:block; }
.wordmark { font-family:"Grenze Gotisch", serif; font-weight:600; font-size:30px; line-height:1; color:var(--gold); letter-spacing:.01em; }
header.top .brand.team { color:var(--gold); font-weight:700; font-size:16px; letter-spacing:.2px; padding:20px 0; }
.main-nav { display:flex; gap:4px; flex-grow:1; }
.main-nav a { color:#c4c4c4; text-decoration:none; font-size:15px; font-weight:500; padding:9px 14px; border-radius:9px; display:inline-flex; align-items:center; gap:8px; }
.main-nav a svg { opacity:.85; }
.main-nav a.active svg { color:var(--gold); opacity:1; }
.menu-pop a.mobile-only svg { vertical-align:-3px; margin-right:6px; color:var(--gold-ink); }
.main-nav a:hover { color:#fff; }
.main-nav a.active { color:#fff; background:#1d1d1d; font-weight:600; }
.new-pack { gap:8px; }
details.menu { position:relative; }
details.menu summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:10px; color:#c4c4c4; min-height:44px; padding:0 4px; }
details.menu summary::-webkit-details-marker { display:none; }
details.menu summary:hover { color:#fff; }
.avatar { width:36px; height:36px; border-radius:999px; background:#2a2a2a; color:var(--gold); font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.menu-pop { position:absolute; right:0; top:54px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,.18); min-width:250px; padding:8px; display:flex; flex-direction:column; }
.menu-pop a { color:var(--ink); text-decoration:none; padding:11px 12px; border-radius:8px; font-size:15px; }
.menu-pop a:hover { background:#f3f3f0; }
.menu-label { margin:6px 12px 2px; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.menu-pop form { margin:4px 0 0; border-top:1px solid var(--line); padding-top:4px; }
.menu-pop .menu-signout { width:100%; justify-content:flex-start; background:none; color:var(--bad); padding:11px 12px; font-weight:500; border-radius:8px; }
.menu-pop .menu-signout:hover { background:#fdf1f0; }
.mobile-only { display:none; }
.bell { position:relative; color:#c4c4c4; width:44px; height:44px; display:flex; align-items:center; justify-content:center; border-radius:10px; flex-shrink:0; }
.bell:hover, .bell.active { color:#fff; background:#1d1d1d; }
.bell-count { position:absolute; top:4px; right:2px; min-width:19px; height:19px; padding:0 5px; border-radius:999px; background:var(--gold); color:#000; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; border:2px solid #000; }

/* ---------- page frame ---------- */
main { padding:28px 32px 48px; max-width:1200px; margin:0 auto; }
body.wide main { max-width:none; padding:0; }
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.page-head h1 { margin:0 0 4px; }
.page-head p { margin:0; }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:24px; margin:0 0 18px; }
.narrow { max-width:520px; margin-left:auto; margin-right:auto; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.stack { display:flex; flex-direction:column; gap:12px; }

/* ---------- controls ---------- */
label { display:block; font-weight:600; margin:14px 0 6px; font-size:14px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=file], input[type=date], textarea, select {
  width:100%; padding:11px 12px; border:1px solid var(--line-2); border-radius:10px; font-size:15px; font-family:inherit; background:#fff; color:var(--ink);
}
input:focus, textarea:focus, select:focus { outline:2px solid var(--gold); outline-offset:0; border-color:var(--gold); }
textarea { min-height:90px; }
button, .btn { background:var(--black); color:#fff; border:0; border-radius:10px; padding:10px 18px; min-height:44px; font-size:15px; font-weight:600; font-family:inherit; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
button.secondary, .btn.secondary { background:#fff; color:var(--ink); border:1px solid var(--line-2); }
button.secondary:hover, .btn.secondary:hover { border-color:#bdbdb8; }
button.danger, .btn.danger { background:var(--bad); }
button.gold, .btn.gold { background:var(--gold); color:#000; }
button:disabled { opacity:.5; cursor:not-allowed; }
label.check { display:flex; align-items:center; gap:10px; font-weight:500; }
label.check input { width:18px; height:18px; margin:0; accent-color:#000; }
.error { background:#fdecea; color:var(--bad); padding:11px 14px; border-radius:10px; margin:10px 0; font-size:14px; }
.notice { background:#eaf5ee; color:var(--ok); padding:11px 14px; border-radius:10px; margin:10px 0; font-size:14px; }

/* ---------- tables and badges ---------- */
table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { text-align:left; padding:12px 10px; border-bottom:1px solid #efefec; vertical-align:top; }
th { color:var(--muted); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
.pill, .badge { display:inline-block; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:600; background:#efefed; color:#4a4a4a; white-space:nowrap; }
.pill.completed, .pill.signed, .badge.done { background:#e3f3e8; color:var(--ok); }
.pill.declined, .pill.voided, .pill.expired, .badge.ended { background:#fdecea; color:var(--bad); }
.pill.sent, .pill.in_progress, .pill.notified, .pill.viewed, .pill.verified, .pill.consented, .badge.out { background:#fff4d6; color:#7a5600; }
.badge.approval { background:#efe9fb; color:#5b3aa8; }

/* ---------- packs list ---------- */
.toolbar { display:flex; gap:12px; flex-wrap:wrap; align-items:center; justify-content:space-between; margin-bottom:16px; }
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.chips a { text-decoration:none; font-size:14px; font-weight:500; padding:8px 14px; border-radius:999px; border:1px solid var(--line-2); background:#fff; color:#333; white-space:nowrap; }
.chips a.on { background:var(--ink); border-color:var(--ink); color:#fff; font-weight:600; }
.search { display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line-2); border-radius:10px; padding:0 12px; min-height:44px; width:320px; max-width:100%; margin:0; }
.search input { border:0; padding:10px 0; outline:0; }
.search input:focus { outline:0; }
.pack-list { background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.pack-row { display:grid; grid-template-columns:minmax(0,2.3fr) minmax(0,1.5fr) minmax(0,1.3fr) minmax(0,1.4fr) minmax(0,.9fr); gap:16px; padding:16px 20px; align-items:center; border-bottom:1px solid #f0f0ee; color:inherit; text-decoration:none; }
a.pack-row:hover { background:#fafaf8; }
.pack-row:last-child { border-bottom:0; }
.pack-head { padding:12px 20px; font-size:12px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.pack-title { display:flex; align-items:center; gap:12px; min-width:0; }
.doc-ico { width:40px; height:48px; border-radius:6px; background:#f3f1ea; border:1px solid #e3dfd0; display:flex; align-items:center; justify-content:center; flex-shrink:0; color:#8a7a3a; }
.pack-title strong { display:block; font-size:15px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pack-title span { font-size:13px; color:var(--muted); }
.signer-line { display:flex; align-items:center; gap:8px; font-size:14px; margin:3px 0; }
.dot { width:10px; height:10px; border-radius:999px; flex-shrink:0; display:inline-block; }
.state-signed { color:var(--ok); } .state-waiting { color:#8a6200; } .state-idle { color:var(--muted); } .state-bad { color:var(--bad); }
.status-cell { display:flex; flex-direction:column; gap:7px; align-items:flex-start; }
.progress { height:4px; width:120px; background:#ececea; border-radius:999px; overflow:hidden; }
.progress > i { display:block; height:4px; background:var(--gold); border-radius:999px; }
.updated { font-size:14px; color:var(--muted); }
.empty { padding:48px 20px; text-align:center; color:var(--muted); }

/* ---------- packs: tools, tags, views ---------- */
.pack-tools { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; margin:0 0 14px; }
.tool-field { margin:0; font-weight:500; display:flex; flex-direction:column; gap:4px; min-width:150px; }
.tool-field > span { font-size:12px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.tool-field select, .tool-field input { padding:9px 10px; font-size:14px; }
.tool-field.grow { flex:1 1 240px; }
.view-switch { margin-left:auto; display:flex; background:#fff; border:1px solid var(--line-2); border-radius:10px; padding:3px; gap:2px; }
.view-switch a { width:40px; height:36px; display:flex; align-items:center; justify-content:center; color:var(--muted); border-radius:8px; }
.view-switch a:hover { color:var(--ink); background:#f3f3f0; }
.view-switch a.on { background:var(--ink); color:#fff; }
.tags { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.tag { display:inline-block; font-size:12px; font-weight:600; padding:3px 9px; border-radius:6px; background:#f3f1ea; color:#5a4d1a; border:1px solid #e6e0cb; white-space:nowrap; }
.tag.deal { background:#eef3fe; color:#24448f; border-color:#d9e3fb; }
.tag.archived { background:#efefed; color:#555; border-color:#e0e0dc; }
.money strong { display:block; font-size:15px; }
.money span, .sig-sub { font-size:13px; color:var(--muted); }
.sig-sub { display:flex; align-items:center; gap:6px; }
.pc-dots { display:inline-flex; gap:3px; }
.pack-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(270px, 1fr)); gap:14px; }
.pack-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:16px; display:flex; flex-direction:column; gap:12px; color:inherit; text-decoration:none; transition:box-shadow .15s, border-color .15s; }
.pack-card:hover { border-color:#cfc6a0; box-shadow:0 6px 18px rgba(0,0,0,.07); }
.pc-top { display:flex; gap:12px; align-items:flex-start; }
.pc-ico { width:42px; height:42px; border-radius:10px; background:#111; color:var(--gold); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.pc-name { min-width:0; }
.pc-name strong { display:block; font-size:16px; line-height:1.3; }
.pc-name span { font-size:13px; color:var(--muted); }
.pc-facts { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0; padding:10px 0; border-top:1px solid #f0f0ee; border-bottom:1px solid #f0f0ee; }
.pc-facts dt, .facts dt { font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.pc-facts dd, .facts dd { margin:2px 0 0; font-weight:600; font-size:15px; }
.pc-sign { display:flex; justify-content:space-between; align-items:center; }
.progress.wide { width:100%; }
.pack-compact { background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.cp-row { display:grid; grid-template-columns:minmax(0,2.4fr) minmax(0,1fr) minmax(0,1.1fr) minmax(0,.9fr) minmax(0,.9fr) minmax(0,1.1fr) minmax(0,.8fr); gap:12px; padding:9px 16px; align-items:center; font-size:14px; border-bottom:1px solid #f0f0ee; color:inherit; text-decoration:none; }
.cp-row:last-child { border-bottom:0; }
a.cp-row:hover { background:#fafaf8; }
.cp-row > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cp-head { font-size:12px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.cp-addr strong { font-weight:600; }
.updated { white-space:nowrap; }
.pack-card .updated { white-space:normal; }

/* ---------- activity and notifications ---------- */
.act-day { font-size:13px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; margin:22px 0 8px; }
.activity > .act-day:first-child { margin-top:0; }
.act-list { background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.act-row { display:flex; align-items:center; gap:14px; padding:13px 18px; border-bottom:1px solid #f0f0ee; color:inherit; text-decoration:none; }
.act-row:last-child { border-bottom:0; }
.act-row:hover { background:#fafaf8; }
.act-row.unread { background:#fffbea; }
.act-dot { width:10px; height:10px; border-radius:999px; background:#c9c9c4; flex-shrink:0; }
.act-dot.good { background:var(--ok); } .act-dot.bad { background:var(--bad); } .act-dot.ask { background:#7c3aed; }
.act-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.act-main strong { font-size:15px; font-weight:600; }
.act-main span { font-size:13px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.act-time { font-size:13px; color:var(--muted); white-space:nowrap; display:flex; align-items:center; gap:8px; }
.new-tag { font-size:11px; font-weight:700; background:var(--gold); color:#000; border-radius:999px; padding:2px 8px; }

/* ---------- pack page ---------- */
.facts { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:14px 20px; margin:14px 0 16px; }
.edit-details > summary { list-style:none; display:inline-flex; }
.edit-details > summary::-webkit-details-marker { display:none; }
.edit-details[open] > summary { margin-bottom:6px; }
.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
.detail-grid .span-2 { grid-column:span 2; }
.detail-grid .two { display:grid; grid-template-columns:1fr 1.3fr; gap:0 10px; }
.pack-hero { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; }
.actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:14px; }
.actions form { margin:0; }
.void-box { position:relative; }
.void-box > summary { list-style:none; }
.void-box > summary::-webkit-details-marker { display:none; }
.btn.danger-outline, button.danger-outline { background:#fff; color:var(--bad); border:1px solid #e9b4ae; }
.btn.danger-outline:hover { background:#fdf1f0; }
.void-box form { position:absolute; z-index:5; top:calc(100% + 8px); left:0; width:320px; max-width:calc(100vw - 32px); background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,.14); padding:14px; }
.void-box label { margin-top:0; }
.void-row { display:flex; gap:8px; }
.void-row input { flex:1; min-width:0; }
.signer-cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:12px; }
.signer-card { border:1px solid var(--line); border-radius:12px; padding:14px 16px; display:flex; flex-direction:column; gap:6px; }
.signer-card .name { font-weight:600; display:flex; align-items:center; gap:8px; }
.table-wrap { overflow-x:auto; }
.signer-rows .signer-row { display:grid; grid-template-columns:170px 1fr 1fr 1fr 90px; gap:10px; align-items:end; margin-bottom:10px; }
.signer-rows label { margin-top:0; }

/* ---------- signing view (clients) ---------- */
.doc-wrap { position:relative; margin:0 auto 16px; background:#fff; box-shadow:0 2px 10px rgba(0,0,0,.12); max-width:100%; }
.doc-wrap canvas { display:block; width:100%; height:auto; }
.field { position:absolute; border:2px dashed var(--gold); background:rgba(194,176,103,.18); border-radius:4px; display:flex; align-items:center; justify-content:center; font-size:11px; color:#5a4b10; cursor:pointer; overflow:hidden; }
/* Red: still needed. Yellow: optional. Green: filled in. */
.field.need { border-color:#c0392b; background:rgba(192,57,43,.13); color:#9b2c1f; }
.field.opt { border-color:#d4a20a; background:rgba(230,190,40,.16); color:#7a5d00; }
.field.done { border-style:solid; background:rgba(31,107,61,.10); border-color:var(--ok); color:var(--ok); }
.field.other { border-color:#bbb; background:rgba(0,0,0,.04); cursor:default; color:#888; }
.field input[type=text] { width:100%; height:100%; border:0; background:transparent; font-size:12px; padding:0 2px; border-radius:0; }
.field input[type=checkbox] { width:80%; height:80%; margin:0; }
.field img { max-width:100%; max-height:100%; }
.field.tiny { border-width:1px; border-style:solid; border-radius:2px; font-size:8px; }
.field.tiny input[type=checkbox] { width:100%; height:100%; margin:0; accent-color:#1f6b3d; }
.field.tiny.other { font-size:0; }
.field input[type=text] { font-size:11px; }
.sigbar { position:sticky; bottom:0; background:#fff; border-top:1px solid var(--line); padding:12px 16px; display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; z-index:5; }
.modal-bg { position:fixed; inset:0; background:rgba(0,0,0,.5); display:none; align-items:center; justify-content:center; z-index:30; padding:12px; }
.modal-bg.open { display:flex; }
.modal { background:#fff; border-radius:14px; padding:20px; width:100%; max-width:520px; max-height:92vh; overflow:auto; }
.pad { border:1px solid var(--line-2); border-radius:10px; width:100%; height:160px; touch-action:none; background:#fff; }
.tabs { display:flex; gap:6px; }
.typed-preview { font-family: "Times New Roman", Times, serif; font-style:italic; font-size:34px; color:#0d1a59; padding:10px; border:1px solid var(--line); border-radius:10px; min-height:64px; overflow:hidden; }
.consent { white-space:pre-wrap; background:#fafaf8; border:1px solid var(--line); padding:14px; border-radius:10px; max-height:50vh; overflow:auto; font-size:14px; line-height:1.55; }

/* ---------- field editor ---------- */
.ed-bar { background:#111; color:#fff; padding:10px 20px; display:flex; align-items:center; gap:14px; flex-wrap:wrap; border-top:1px solid #222; }
.ed-bar .back { color:#c4c4c4; display:flex; align-items:center; justify-content:center; width:40px; height:40px; text-decoration:none; }
.ed-bar .title { flex-grow:1; min-width:0; }
.ed-bar .title strong { display:block; font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ed-bar .title span { font-size:12px; color:#9a9a9a; }
.ed-bar .btn.secondary { background:transparent; color:#fff; border-color:#444; }
.steps { list-style:none; margin:0; padding:0; display:flex; gap:6px; align-items:center; font-size:13px; color:#9a9a9a; }
.steps li { display:flex; align-items:center; gap:6px; }
.steps .n { width:22px; height:22px; border-radius:999px; background:#2a2a2a; color:var(--gold); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }
.steps .on { color:#fff; font-weight:600; } .steps .on .n { background:var(--gold); color:#000; }
.steps .sep { color:#555; }
.ed { display:grid; grid-template-columns:280px minmax(0,1fr) 150px; height:calc(100vh - 64px - 61px); min-height:520px; background:#ecebe7; }
.ed-side { background:#fff; border-right:1px solid #e2e1dc; padding:18px; overflow:auto; display:flex; flex-direction:column; gap:18px; }
.ed-side h3 { margin:0 0 8px; font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.signer-pick { display:flex; flex-direction:column; gap:8px; }
.signer-pick button { justify-content:flex-start; background:#fff; color:var(--ink); border:1px solid #e2e1dc; font-weight:500; text-align:left; width:100%; }
.signer-pick button .order { margin-left:auto; font-size:12px; color:var(--muted); font-weight:500; }
.signer-pick button[aria-pressed=true] { border:2px solid var(--c); background:color-mix(in srgb, var(--c) 9%, #fff); font-weight:600; }
.tools { display:flex; flex-direction:column; gap:8px; }
.tool { justify-content:flex-start; background:#fafaf8; color:var(--ink); border:1px solid #e2e1dc; font-weight:500; width:100%; cursor:grab; touch-action:none; user-select:none; }
.tool[aria-pressed=true] { border-color:var(--c, #000); background:color-mix(in srgb, var(--c, #000) 8%, #fff); }
.tool .mk { width:28px; height:28px; border-radius:7px; background:color-mix(in srgb, var(--c, #2563eb) 12%, #fff); color:var(--c, #2563eb); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex-shrink:0; }
.drag-ghost { position:fixed; z-index:50; pointer-events:none; border:2px dashed var(--c); background:color-mix(in srgb, var(--c) 14%, #fff); color:var(--c); border-radius:6px; font-size:12px; font-weight:700; display:flex; align-items:center; padding:0 8px; }
.ed-pages { overflow:auto; padding:24px; display:flex; flex-direction:column; align-items:center; gap:10px; }
.ed-pages .page-label { font-size:12px; color:var(--muted); align-self:center; }
.ed-pages .doc-wrap { width:min(100%, 820px); flex-shrink:0; }
.ed .field { --c:#2563eb; border:2px dashed var(--c); background:color-mix(in srgb, var(--c) 10%, transparent); color:color-mix(in srgb, var(--c) 75%, #000); cursor:move; font-weight:600; touch-action:none; user-select:none; justify-content:flex-start; padding:0 6px; white-space:nowrap; overflow:visible; }
.ed .field .lbl { overflow:hidden; text-overflow:ellipsis; }
.ed .field.checkbox { justify-content:center; padding:0; }
.ed .field.selected { border-style:solid; box-shadow:0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); z-index:3; }
.ed .field .who { margin-left:auto; font-size:9px; letter-spacing:.04em; opacity:.85; padding-left:4px; }
.ed .field .grip { position:absolute; right:-8px; bottom:-8px; width:16px; height:16px; background:#fff; border:2px solid var(--c); border-radius:3px; cursor:nwse-resize; display:none; touch-action:none; }
.ed .field.selected .grip { display:block; }
.ed-props { border:1px solid #e2e1dc; border-radius:12px; padding:14px; display:flex; flex-direction:column; gap:10px; }
.ed-props label { margin:0; }
.ed-props .row button { flex:1; }
.ed-thumbs { background:#f7f6f2; border-left:1px solid #e2e1dc; padding:16px 14px; overflow:auto; display:flex; flex-direction:column; gap:6px; align-items:center; }
.ed-thumbs h3 { margin:0 0 6px; font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; align-self:flex-start; }
.thumb { position:relative; width:96px; background:#fff; border:1px solid var(--line-2); border-radius:4px; padding:0; min-height:0; cursor:pointer; overflow:hidden; display:block; flex-shrink:0; }
.thumb canvas { display:block; width:100%; height:auto; }
.thumb.on { border:2px solid var(--gold); }
.thumb .count { position:absolute; bottom:4px; right:4px; font-size:10px; background:#111; color:#fff; border-radius:999px; padding:1px 6px; }
.thumb-label { font-size:12px; color:#444; margin-bottom:8px; }
.ed-msg { font-size:13px; color:var(--muted); min-height:18px; margin:0; }
.ed-msg.bad { color:var(--bad); }

/* ---------- black sign-in pages ---------- */
body.dark { background:#000; color:#f2f2f2; }
body.dark header.top { position:static; }
body.dark .card { background:#000; border:0; }
.logo-hero { text-align:center; margin:0 0 8px; }
.logo-hero img { width:360px; max-width:100%; height:auto; }
body.dark h1 { color:var(--gold); text-align:center; }
body.dark .muted { color:#aaa; }
body.dark input[type=text], body.dark input[type=email], body.dark input[type=password], body.dark input[type=tel] { background:#141414; color:#fff; border-color:#333; }
body.dark button[type=submit] { background:var(--gold); color:#000; width:100%; }
body.dark .error { background:#3a1210; color:#ffb4ab; }
body.dark .notice { background:#10261a; color:#9fe0b4; }
body.dark button.secondary { background:#000; color:#fff; border:1px solid #555; }
body.dark button.gold-outline { background:#000; color:var(--gold); border:1px solid var(--gold); width:100%; }
body.dark hr { border:0; border-top:1px solid #333; margin:18px 0; }
body.dark a { color:var(--gold); }
.or { text-align:center; color:var(--muted); font-size:13px; margin:14px 0 6px; }
body.dark .or { color:#888; }
.code-choices { display:flex; gap:10px; flex-wrap:wrap; }
.code-choices button { flex:1; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .ed { grid-template-columns:240px minmax(0,1fr); }
  .ed-thumbs { display:none; }
  .steps { display:none; }
}
@media (max-width: 760px) {
  header.top { padding:0 12px; gap:10px; min-height:58px; }
  .wordmark { font-size:25px; }
  header.top .brand img { width:32px; height:32px; }
  .main-nav { display:none; }
  .mobile-only { display:block; }
  .menu-pop a.mobile-only { display:flex; align-items:center; gap:4px; }
  header.top .new-pack { margin-left:auto; padding:8px 12px; min-height:40px; font-size:14px; }
  details.menu summary .avatar { display:none; }
  .menu-pop { top:50px; right:-4px; min-width:240px; }
  main { padding:18px 14px 40px; }
  h1 { font-size:23px; }
  .card { padding:18px; }
  .search { width:100%; }
  .chips { flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; margin:0 -14px; padding-left:14px; padding-right:14px; }
  .pack-list { background:transparent; border:0; border-radius:0; display:flex; flex-direction:column; gap:10px; overflow:visible; }
  .pack-head { display:none; }
  .pack-row { grid-template-columns:1fr; gap:10px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:14px; }
  .pack-row:last-child { border-bottom:1px solid var(--line); }
  .doc-ico { display:none; }
  .pack-title strong { white-space:normal; }
  .status-cell { flex-direction:row; align-items:center; justify-content:space-between; width:100%; }
  .progress { width:100px; }
  .pack-row .tags, .pack-row .money { order:0; }
  .money { display:flex; justify-content:space-between; align-items:baseline; }
  .pack-tools { gap:8px; }
  .tool-field { min-width:0; flex:1 1 calc(50% - 8px); }
  .view-switch { margin-left:0; flex:1 1 100%; justify-content:center; }
  .view-switch a { flex:1; }
  .pack-grid { grid-template-columns:1fr; }
  .cp-head { display:none; }
  .cp-row { grid-template-columns:minmax(0,1fr) auto; gap:4px 10px; padding:10px 12px; }
  .cp-row > span:nth-child(2), .cp-row > span:nth-child(3), .cp-row > span:nth-child(5) { display:none; }
  .cp-row > span:nth-child(4) { grid-column:1; grid-row:2; color:var(--muted); font-size:13px; }
  .cp-row > span:nth-child(6) { grid-column:2; grid-row:1; }
  .cp-row > span:nth-child(7) { grid-column:2; grid-row:2; text-align:right; font-size:13px; }
  .act-row { padding:12px 14px; gap:10px; }
  .detail-grid { grid-template-columns:1fr; }
  .detail-grid .span-2 { grid-column:auto; }
  .bell { width:40px; height:40px; }
  .card table, .table-wrap table { display:block; overflow-x:auto; }
  .signer-rows .signer-row { grid-template-columns:1fr 1fr; padding-bottom:10px; border-bottom:1px solid var(--line); }
  .ed-bar { padding:8px 12px; }
  .ed-bar .title strong { font-size:15px; }
  .ed { grid-template-columns:1fr; height:auto; min-height:0; }
  .ed-side { border-right:0; border-bottom:1px solid #e2e1dc; padding:14px; gap:14px; }
  .tools { flex-direction:row; flex-wrap:wrap; }
  .tool { width:auto; flex:1 1 140px; }
  .ed-pages { padding:12px 8px; overflow:visible; }
  .sigbar { padding:10px 12px; }
  .sigbar button, .sigbar .btn { flex:1; }
  input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], textarea, select { font-size:16px; }
}
.role-tag { margin:8px 0 4px; font-size:12px; font-weight:700; color:var(--gold-ink); text-transform:uppercase; letter-spacing:.05em; }

.legend { display:flex; gap:14px; flex-wrap:wrap; font-size:13px; color:var(--muted, #666); margin:6px 0 0; }
.legend span { display:inline-flex; align-items:center; gap:6px; }
.legend .lg { width:14px; height:14px; border-radius:3px; border:2px dashed; display:inline-block; }
.legend .lg.need { border-color:#c0392b; background:rgba(192,57,43,.13); }
.legend .lg.opt { border-color:#d4a20a; background:rgba(230,190,40,.16); }
.legend .lg.done { border-style:solid; border-color:var(--ok); background:rgba(31,107,61,.10); }

/* Signer pages: the team's brand, matching its emails */
body.signer { background:#f4f4f4; }
.signer-head { background:#fff; padding:18px 16px 0; }
.signer-logos { display:flex; align-items:center; justify-content:center; gap:22px; }
.signer-logos img { display:block; height:auto; }
.signer-logos img[src$="culture-logo.png"] { width:64px; }
.signer-logos img[src$="exp-realty.svg"] { width:108px; }
.signer-divider { width:2px; height:56px; background:var(--gold); }
.signer-rule { max-width:900px; margin:16px auto 0; border-top:2px solid var(--gold); }
.signer-foot { background:#000; color:#fff; text-align:center; font-weight:700; font-size:13px; padding:16px; }
body.signer main { max-width:960px; }
@media (max-width:600px) { .signer-logos img[src$="culture-logo.png"] { width:48px; } .signer-logos img[src$="exp-realty.svg"] { width:84px; } .signer-divider { height:42px; } }
body.signer button:not(.secondary):not(.danger), body.signer .btn:not(.secondary) { color:var(--gold); border:2px solid var(--gold); border-radius:6px; }
body.signer .sigbar { bottom:0; }
/* People */
table.people { width:100%; border-collapse:collapse; }
table.people th, table.people td { text-align:left; padding:10px 8px; border-bottom:1px solid var(--line); vertical-align:middle; }
table.people td:last-child { text-align:right; }
.add-person summary { list-style:none; }
.add-person summary::-webkit-details-marker { display:none; }
.add-person[open] { flex-basis:100%; }
.pick { position:absolute; z-index:50; background:#fff; border:1px solid var(--line-2); border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.12); max-height:320px; overflow:auto; padding:4px; }
.pick-item { display:flex; flex-direction:column; align-items:flex-start; gap:2px; width:100%; background:#fff; color:var(--ink); border:0; border-radius:8px; padding:8px 10px; min-height:0; text-align:left; font-weight:500; }
.pick-item:hover, .pick-item.on { background:#f4f1e4; }
.pick-name { display:flex; gap:8px; align-items:center; font-weight:600; }
.pick-sub { color:var(--muted); font-size:13px; }
@media (max-width:700px) { table.people thead { display:none; } table.people td { display:block; border:0; padding:4px 0; } table.people tr { display:block; border-bottom:1px solid var(--line); padding:8px 0; } table.people td:last-child { text-align:left; } }
/* Tasks */
.task-add { display:grid; grid-template-columns:1fr 150px 170px 200px auto; gap:8px; align-items:center; margin-top:12px; }
.task-add input, .task-add select { margin:0; }
.task-list { list-style:none; margin:0; padding:0; }
.task-list li { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.task-list li:last-child { border-bottom:0; }
.task-list form { margin:0; }
.task-list .tick { width:26px; height:26px; min-height:0; padding:0; border-radius:7px; background:#fff; border:2px solid var(--line-2); color:#fff; font-size:15px; line-height:1; }
.task-list li.done .tick { background:var(--ok); border-color:var(--ok); }
.task-main { display:flex; flex-direction:column; gap:2px; text-decoration:none; color:var(--ink); flex:1; min-width:0; }
.task-title { font-weight:600; }
.task-list li.done .task-title { text-decoration:line-through; color:var(--muted); }
.task-meta { color:var(--muted); font-size:13px; }
.task-meta .late { color:var(--bad); font-weight:600; }
@media (max-width:800px) { .task-add { grid-template-columns:1fr 1fr; } .task-add input[name=title] { grid-column:1 / -1; } }
/* Packs: one per transaction */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.eyebrow { margin:0 0 4px; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--gold-ink); }
.link-btn { background:none; border:0; padding:0; min-height:0; color:var(--gold-ink); font-weight:700; font-size:13px; letter-spacing:.04em; text-transform:uppercase; cursor:pointer; list-style:none; }
summary.link-btn::-webkit-details-marker { display:none; }
.tx-head { display:flex; gap:18px; align-items:flex-start; }
.tx-ico { flex:none; width:64px; height:64px; border-radius:999px; background:var(--black); color:var(--gold); display:flex; align-items:center; justify-content:center; }
.tx-ico svg { width:28px; height:28px; }
.tx-main { flex:1; min-width:0; }
.tx-main h1 { margin:0; font-size:30px; line-height:1.15; }
.tx-sub { margin:4px 0 0; color:var(--ink-2); font-weight:500; }
.tx-quick { display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; margin:12px 0 4px; }
.tx-quick select { width:auto; padding:6px 30px 6px 10px; min-height:0; font-size:13px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:var(--gold-ink); background-color:#faf8f0; border-color:#e6e0cb; }
.tx-fact { font-size:14px; font-weight:700; color:var(--ink); }
.tx-head .edit-details { margin-top:6px; }
.sec-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:8px; }
.sec-head h2 { margin:0; font-size:24px; }
.sec-head p { margin:4px 0 0; }
.sec-tools { display:flex; gap:18px; align-items:center; }
.sec-tools > a { color:var(--gold-ink); font-weight:700; font-size:13px; letter-spacing:.04em; text-transform:uppercase; text-decoration:none; }
.folder { margin-top:22px; }
.folder-head { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:2px solid var(--ink); }
.folder-ico { color:var(--gold); display:flex; }
.folder-name { font-weight:700; font-size:13px; letter-spacing:.06em; text-transform:uppercase; flex:1; }
.add-doc { color:var(--gold-ink); font-weight:700; font-size:13px; letter-spacing:.04em; text-transform:uppercase; text-decoration:none; }
.folder-empty { padding:14px 0 4px; margin:0; }
.doc-row { display:flex; align-items:center; gap:14px; padding:12px 0 12px 4px; border-bottom:1px solid var(--line); }
.doc-row input[type=checkbox], .folder-head input[type=checkbox] { width:18px; height:18px; margin:0; flex:none; accent-color:var(--black); }
.doc-name { flex:1; min-width:0; color:var(--ink); text-decoration:none; font-weight:500; font-size:15px; overflow:hidden; text-overflow:ellipsis; }
.doc-name:hover { color:var(--gold-ink); }
.doc-with { display:block; font-size:12px; color:var(--muted); font-weight:400; }
.doc-row.is-archived .doc-name { color:var(--muted); }
.doc-status { font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; }
.doc-status.st-idle { color:#7a7a76; }
.doc-status.st-wait { color:#b8740f; }
.doc-status.st-you { color:var(--bad); }
.doc-status.st-signed { color:var(--ok); }
.doc-status.st-bad { color:var(--bad); }
.doc-people { display:flex; align-items:flex-start; color:var(--ink-2); }
.doc-people sup { font-size:11px; font-weight:700; margin-left:1px; }
details.kebab { position:relative; }
details.kebab > summary { list-style:none; cursor:pointer; color:var(--ink-2); display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:8px; }
details.kebab.inline > summary { width:auto; height:auto; }
details.kebab > summary::-webkit-details-marker { display:none; }
details.kebab > summary:hover { background:#f2f1ec; }
details.kebab.inline > summary:hover { background:none; }
.kebab-menu { position:absolute; right:0; top:36px; z-index:30; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,.16); min-width:240px; padding:6px; display:flex; flex-direction:column; }
.kebab-menu > a, .menu-btn { color:var(--ink); text-decoration:none; padding:10px 12px; border-radius:8px; font-size:14px; font-weight:500; background:none; border:0; min-height:0; width:100%; justify-content:flex-start; text-align:left; }
.kebab-menu > a:hover, .menu-btn:hover { background:#f4f1e4; }
.kebab-menu form { margin:0; }
.menu-form { padding:8px 12px; border-top:1px solid var(--line); }
.menu-form label { margin:0 0 6px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
.menu-form .row { flex-wrap:nowrap; }
.menu-form select, .menu-form input { margin:0; padding:8px 10px; font-size:14px; }
.menu-form button { min-height:38px; padding:8px 12px; }
.danger-text { color:var(--bad); }
.bulk-bar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:18px; padding-top:14px; border-top:1px solid var(--line); }
.bulk-bar select { width:auto; margin:0; padding:8px 10px; }
.bulk-bar button { min-height:38px; padding:8px 14px; }
.tx-people { margin-top:6px; }
.tx-person { display:flex; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid var(--line); }
.tx-av { flex:none; width:40px; height:40px; border-radius:999px; background:#1c1c1c; color:var(--gold); font-weight:700; font-size:14px; display:flex; align-items:center; justify-content:center; }
.tx-pname { flex:1; min-width:0; display:flex; flex-direction:column; }
.tx-pname span { color:var(--muted); font-size:14px; overflow:hidden; text-overflow:ellipsis; }
.tx-role { margin:0; }
.tx-role select { width:auto; margin:0; padding:6px 30px 6px 10px; font-size:13px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:var(--gold-ink); background-color:#faf8f0; border-color:#e6e0cb; }
.who-list { display:flex; flex-direction:column; gap:4px; margin:4px 0 8px; }
@media (max-width:700px) {
  .tx-head { flex-direction:column; gap:12px; }
  .tx-main h1 { font-size:24px; }
  .doc-row { flex-wrap:wrap; gap:8px 12px; }
  .doc-name { flex-basis:calc(100% - 40px); white-space:normal; }
  .doc-row .doc-status { margin-left:30px; }
  .tx-person { flex-wrap:wrap; }
  .tx-role { margin-left:54px; }
}
/* Templates and the form library */
.tpl-tabs { margin:-4px 0 18px; }
.tp-docs { margin:0; padding:0 0 0 18px; color:var(--ink-2); font-size:14px; line-height:1.6; }
.tp-items .doc-row form { margin:0; }
.tp-n { width:24px; height:24px; border-radius:999px; background:#111; color:var(--gold); font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; flex:none; }
.tp-mini { min-height:32px; width:34px; padding:0; font-size:15px; }
.tp-make { min-height:36px; padding:6px 12px; font-size:14px; }
.lib-group { padding-top:12px; }
.lib-group .doc-row form { margin:0; }
.kebab-menu.right { right:0; }
.role-line { display:flex; align-items:stretch; gap:4px; }
.role-line > button { flex:1; }
.role-line form { margin:0; display:flex; }
.signer-pick .role-x, .signer-pick .role-x[aria-pressed=true] { min-height:0; width:32px !important; border:1px solid var(--line-2) !important; justify-content:center; padding:0; background:#fff; color:var(--muted); border:1px solid var(--line-2); font-size:18px; }
.role-x:hover { color:var(--bad); }
/* ---------- compact sizes for the team's screens (close to Dotloop's): 14px text, smaller headings and controls ---------- */
body.admin { font-size:13px; }
body.admin p { line-height:1.5; }
body.admin h1 { font-size:20px; margin-bottom:8px; }
body.admin h2 { font-size:15px; margin:18px 0 8px; }
body.admin .muted { font-size:12px; }
body.admin header.top { min-height:56px; }
body.admin .wordmark { font-size:26px; }
body.admin .main-nav a { font-size:13px; padding:7px 12px; }
body.admin .menu-pop a { font-size:13px; padding:9px 12px; }
body.admin main { padding:22px 28px 40px; }
body.admin .card { padding:18px 20px; margin-bottom:14px; border-radius:10px; }
body.admin label { font-size:12px; margin:12px 0 5px; }
body.admin input[type=text], body.admin input[type=email], body.admin input[type=password], body.admin input[type=tel], body.admin input[type=number],
body.admin input[type=search], body.admin input[type=file], body.admin input[type=date], body.admin textarea, body.admin select { font-size:13px; padding:7px 10px; border-radius:6px; }
body.admin button, body.admin .btn { font-size:12px; min-height:34px; padding:7px 13px; border-radius:6px; }
body.admin .error, body.admin .notice { font-size:12px; padding:9px 12px; border-radius:6px; }
body.admin table { font-size:12px; }
body.admin th, body.admin td { padding:9px 8px; }
body.admin .tag { font-size:11px; padding:2px 7px; }
body.admin .pill, body.admin .badge { font-size:11px; padding:2px 8px; }
body.admin .chips a { font-size:12px; padding:6px 12px; }
body.admin .search { min-height:36px; border-radius:6px; }
body.admin .tool-field select, body.admin .tool-field input { font-size:13px; padding:7px 9px; }
body.admin .tool-field > span { font-size:11px; }
body.admin .pack-row { padding:12px 16px; }
body.admin .pack-title strong { font-size:13px; }
body.admin .pack-title span, body.admin .updated { font-size:11px; }
body.admin .pack-card { border-radius:10px; padding:14px; }
body.admin .tx-main h1 { font-size:24px; }
body.admin .tx-ico { width:52px; height:52px; }
body.admin .tx-ico svg { width:24px; height:24px; }
body.admin .tx-fact { font-size:12px; }
body.admin .tx-quick select, body.admin .tx-role select { font-size:12px; padding:5px 26px 5px 8px; }
body.admin .sec-head h2 { font-size:18px; }
body.admin .doc-row { padding:9px 0 9px 4px; }
body.admin .doc-name { font-size:13px; }
body.admin .doc-status { font-size:11px; }
body.admin .folder-name, body.admin .add-doc, body.admin .sec-tools > a, body.admin .link-btn { font-size:12px; }
body.admin .tx-person { padding:9px 0; }
body.admin .tx-av { width:34px; height:34px; font-size:12px; }
body.admin .tx-pname span { font-size:12px; }
body.admin .task-title { font-weight:500; }
body.admin .task-meta { font-size:11px; }
body.admin .kebab-menu > a, body.admin .menu-btn { font-size:12px; padding:8px 10px; }
body.admin .menu-form button, body.admin .bulk-bar button { min-height:32px; padding:6px 10px; }
/* Templates: folders on the left, the open folder's documents on the right. */
.tpl-shell { display:grid; grid-template-columns:250px minmax(0,1fr); border:1px solid var(--line); border-radius:10px; background:#fff; min-height:480px; }
.tpl-side { border-right:1px solid var(--line); padding:6px 0; }
.tpl-side ul { list-style:none; margin:0 0 14px; padding:0; }
.tpl-folder { display:flex; align-items:center; gap:4px; padding:0 6px 0 0; border-left:3px solid transparent; }
.tpl-folder > a { flex:1; min-width:0; padding:8px 8px 8px 13px; color:var(--ink); text-decoration:none; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tpl-folder:hover { background:#f7f6f1; }
.tpl-folder.on { background:#f4f1e4; border-left-color:var(--gold); }
.tpl-folder.on > a { font-weight:600; }
.tpl-folder details.kebab > summary { width:26px; height:26px; opacity:0; }
.tpl-folder:hover details.kebab > summary, .tpl-folder.on details.kebab > summary, .tpl-folder details.kebab[open] > summary, .tpl-folder details.kebab > summary:focus-visible { opacity:1; }
.tpl-group > summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:8px; padding:8px 16px; font-size:13px; font-weight:600; color:var(--ink); }
.tpl-group > summary::-webkit-details-marker { display:none; }
.tpl-group > summary::before { content:""; width:6px; height:6px; border-right:1.6px solid var(--ink-2); border-bottom:1.6px solid var(--ink-2); transform:rotate(-45deg); transition:transform .15s; flex:none; }
.tpl-group[open] > summary::before { transform:rotate(45deg); }
.tpl-group > summary:hover { background:#f7f6f1; }
.tpl-count { margin-left:auto; font-size:11px; font-weight:500; color:var(--muted); }
.tpl-group ul { margin:0 0 6px; }
.tpl-group .tpl-folder > a { padding-left:31px; }
.tpl-none { padding:6px 16px 6px 31px; font-size:12px; color:var(--muted); }
.tpl-lib-group { border-bottom:1px solid var(--line); padding:4px 0 8px; }
.tpl-lib-group:last-child { border-bottom:0; }
.tpl-lib-group > summary { list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; padding:10px 16px 8px; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.tpl-lib-group > summary::-webkit-details-marker { display:none; }
.tpl-lib-group > summary::after { content:""; width:6px; height:6px; border-right:1.6px solid var(--muted); border-bottom:1.6px solid var(--muted); transform:rotate(45deg); transition:transform .15s; }
.tpl-lib-group:not([open]) > summary::after { transform:rotate(-45deg); }
.tpl-lib-group > ul { margin:0; }
.tpl-main { padding:14px 20px 20px; min-width:0; }
.tpl-top { display:flex; align-items:center; gap:14px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.tpl-search { flex:1; width:auto; }
.tpl-top .link-btn, .tpl-head .link-btn { font-size:12px; font-weight:600; color:var(--gold-ink); white-space:nowrap; cursor:pointer; text-decoration:none; }
.tpl-new > summary, .tpl-add > summary { list-style:none; }
.tpl-new > summary::-webkit-details-marker, .tpl-add > summary::-webkit-details-marker { display:none; }
.tpl-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:16px 0 4px; }
.tpl-head h2 { margin:0; font-size:17px; font-weight:600; }
.tpl-head-tools { display:flex; align-items:center; gap:10px; }
.tpl-use { margin:4px 0 8px; }
.tpl-rows { list-style:none; margin:0; padding:0; }
.tpl-row { display:flex; align-items:center; gap:12px; padding:9px 4px; border-bottom:1px solid var(--line); }
.tpl-row:last-child { border-bottom:0; }
.tpl-row input[type=checkbox] { width:16px; height:16px; margin:0; accent-color:var(--black); flex:none; }
.tpl-name { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.tpl-name a { color:var(--ink); text-decoration:none; font-size:13px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tpl-name a:hover { color:var(--gold-ink); text-decoration:underline; }
.tpl-name span { font-size:11px; color:var(--muted); }
.tpl-bulk { display:none; margin:8px 0; }
.tpl-bulk.on { display:flex; }
.tpl-bulk select { width:auto; max-width:260px; margin:0; }
.tpl-empty { color:var(--muted); font-size:13px; padding:24px 4px; }
.menu-form .check { display:flex; align-items:center; gap:8px; margin-top:10px; }
@media (max-width:760px) {
  .tpl-shell { grid-template-columns:1fr; }
  .tpl-side { border-right:0; border-bottom:1px solid var(--line); padding:10px 0; }
  .tpl-main { padding:12px 14px 16px; }
  .tpl-top { flex-wrap:wrap; }
  .tpl-search { flex-basis:100%; }
  .tpl-folder details.kebab > summary, .tpl-row details.kebab > summary { opacity:1; }
}
.tpl-newfolder > summary { list-style:none; cursor:pointer; padding:6px 16px 6px 31px; font-size:12px; font-weight:600; color:var(--gold-ink); }
.tpl-newfolder > summary::-webkit-details-marker { display:none; }
.tpl-newfolder-form { padding:4px 16px 8px 31px; display:flex; flex-direction:column; gap:6px; }
.tpl-newfolder-form input[type=text] { margin:0; }
.tpl-newfolder-form .check { margin:0; font-size:12px; }
.tpl-group > summary details.kebab { margin-left:4px; }
.tpl-group > summary details.kebab > summary { width:24px; height:24px; }
/* License info by state on Account */
details.lic-state { border:1px solid var(--line); border-radius:8px; padding:10px 14px; margin:8px 0; }
details.lic-state > summary { cursor:pointer; font-weight:600; font-size:13px; }
details.lic-state > summary .muted { font-weight:400; margin-left:8px; }
details.lic-state form { margin-top:8px; }
/* Fill In Details */
.fill-row { padding:8px 0; border-bottom:1px solid var(--line); }
.fill-row:last-child { border-bottom:0; }
.fill-row label { margin:0 0 5px; }
.fill-where { display:block; margin-top:4px; font-size:11px; color:var(--muted); }
.fill-save { position:sticky; bottom:0; background:#fff; padding:12px 0; border-top:1px solid var(--line); }
/* Phones zoom into fields under 16px, so fields stay 16px there. */
@media (max-width:700px) {
  body.admin input[type=text], body.admin input[type=email], body.admin input[type=password], body.admin input[type=tel], body.admin input[type=number],
  body.admin input[type=search], body.admin input[type=date], body.admin textarea, body.admin select { font-size:16px; }
}
.person-edit { display: grid; gap: 4px; padding: 8px 10px; min-width: 240px; }
.person-edit label { font-size: 12px; margin: 4px 0 0; }
.person-edit button { margin-top: 6px; }
button.help-fab.help-fab { position:fixed; right:20px; bottom:20px; z-index:50; width:56px; height:56px; min-height:0; padding:0; display:flex; align-items:center; justify-content:center; background:var(--gold); color:var(--black); border:2px solid var(--black); border-radius:999px; box-shadow:0 6px 18px rgba(0,0,0,.22); transition:transform .15s, box-shadow .15s; }
button.help-fab.help-fab:hover { background:var(--gold); transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.26); }
button.help-fab.help-fab[aria-expanded="true"] { background:var(--black); color:var(--gold); }
.help-fab:focus-visible { outline:3px solid var(--gold-ink); outline-offset:3px; }
.help-panel { position:fixed; right:20px; bottom:88px; z-index:51; width:min(380px, calc(100vw - 32px)); max-height:min(560px, calc(100vh - 110px)); display:flex; flex-direction:column; background:#fff; border:1px solid #ddd; border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,.2); overflow:hidden; }
.help-panel[hidden] { display:none; }
.help-panel header { display:flex; justify-content:space-between; align-items:center; padding:10px 14px; background:var(--black); color:var(--gold); }
.help-panel header button { background:none; border:0; color:var(--gold); font-size:22px; line-height:1; padding:0 4px; }
.help-log { flex:1; overflow-y:auto; padding:12px 14px; display:flex; flex-direction:column; gap:8px; }
.help-msg { margin:0; padding:8px 11px; border-radius:10px; white-space:pre-wrap; font-size:13px; line-height:1.45; max-width:90%; }
.help-msg.bot { background:#f3f1ea; align-self:flex-start; }
.help-msg.me { background:var(--black); color:#fff; align-self:flex-end; }
.help-msg.wait { color:var(--muted); font-style:italic; }
#help-form { display:flex; gap:8px; padding:10px; border-top:1px solid #eee; }
#help-form textarea { flex:1; resize:none; margin:0; }

/* ---------- packs list: each row is a link plus its menu ---------- */
.pack-item { position:relative; }
.pack-list, .pack-compact { overflow:visible; }
.pack-list > .pack-item, .pack-compact > .pack-item { border-bottom:1px solid #f0f0ee; }
.pack-list > .pack-item:last-child, .pack-compact > .pack-item:last-child { border-bottom:0; }
.pack-list > .pack-item:last-child > a, .pack-compact > .pack-item:last-child > a { border-radius:0 0 var(--radius) var(--radius); }
.pack-item > .pack-row, .pack-item > .cp-row { border-bottom:0; }
.pack-item > .pack-row { padding-right:56px; }
.pack-item > .cp-row { padding-right:48px; }
.pack-item > .pack-card { height:100%; }
.pack-item > .pack-card .pc-top { padding-right:30px; }
details.pack-kebab { position:absolute; right:12px; top:50%; transform:translateY(-50%); z-index:2; }
.pack-grid details.pack-kebab { top:10px; right:10px; transform:none; }
details.pack-kebab[open] { z-index:40; }
.pack-menu { width:320px; max-width:calc(100vw - 32px); }
.kebab-menu .pack-edit { display:flex; flex-direction:column; padding:4px 10px 12px; margin:4px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.pack-edit label { font-size:11px; font-weight:600; color:var(--muted); margin:8px 0 3px; }
.pack-edit input, .pack-edit select { font-size:13px; padding:6px 8px; width:100%; }
.pm-two { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.pm-sz { display:grid; grid-template-columns:56px 1fr; gap:6px; }
.pack-edit button { margin-top:12px; }
@media (max-width: 760px) {
  .pack-list > .pack-item { border-bottom:0; }
  .pack-item > .pack-row { padding-right:52px; }
  details.pack-kebab { top:10px; transform:none; }
}

/* ---------- anything still needed shows in red ---------- */
.tag.needed { background:#fdecea; color:var(--bad); border-color:#f5c6c2; }
.notice.needed { background:#fdecea; color:var(--bad); }
.needed-text { color:var(--bad); font-weight:600; font-size:12px; }
.fill-row.owed label { color:var(--bad); }
.fill-row.owed input { border-color:var(--bad); background:#fffafa; }

.help-who { display:flex; align-items:center; gap:10px; }
.help-who img { width:38px; height:38px; border-radius:999px; border:2px solid var(--gold); background:#000; }
.help-who strong { font-size:16px; letter-spacing:.01em; }

/* ---------- signing page: one row of actions, a More menu, documents, collapsible activity ---------- */
.env-actions { gap:10px; }
.env-actions > .btn, .env-actions > form > button { white-space:nowrap; }
details.more-menu > summary.btn { width:auto; height:auto; min-height:44px; padding:10px 16px; gap:6px; color:var(--ink); }
body.admin details.more-menu > summary.btn { min-height:inherit; }
details.more-menu > summary.btn:hover { background:#fff; border-color:#bdbdb8; }
details.more-menu[open] > summary.btn svg { transform:rotate(180deg); }
details.more-menu .kebab-menu { top:calc(100% + 6px); min-width:300px; }
details.more-menu .kebab-menu > form:first-child.menu-form { border-top:0; }
.menu-form label.danger-text { color:var(--bad); }
.env-docs { display:flex; flex-direction:column; }
.env-doc { display:flex; align-items:center; gap:12px; padding:12px 8px; border-bottom:1px solid var(--line); text-decoration:none; color:var(--ink); border-radius:8px; }
.env-doc:hover { background:#faf8f0; }
.env-doc-ico { width:34px; height:34px; border-radius:8px; background:#111; color:var(--gold); display:flex; align-items:center; justify-content:center; flex:none; }
.env-doc-name { display:flex; flex-direction:column; min-width:0; flex:1; }
.env-doc-name strong { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.env-doc-name .muted { font-size:13px; }
.env-doc-open { font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--gold-ink); }
details.activity-box > summary { list-style:none; display:flex; align-items:center; gap:12px; cursor:pointer; }
details.activity-box > summary::-webkit-details-marker { display:none; }
details.activity-box > summary h2 { margin:0; }
details.activity-box > summary .chev { margin-left:auto; transition:transform .15s; }
details.activity-box[open] > summary { margin-bottom:12px; }
details.activity-box[open] > summary .chev { transform:rotate(180deg); }

/* ---------- the document viewer ---------- */
.viewer-bar { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:12px 16px; background:#000; color:#fff; border-radius:12px; position:sticky; top:8px; z-index:20; }
.viewer-bar .back { color:var(--gold); text-decoration:none; font-weight:600; white-space:nowrap; }
.vb-title { display:flex; flex-direction:column; min-width:0; flex:1; }
.vb-title strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vb-title span { font-size:13px; color:#bdbdbd; }
.vb-tools { display:flex; gap:8px; flex-wrap:wrap; }
.viewer-bar .vb-tools .btn, .viewer-bar .vb-tools button { min-height:38px; padding:8px 14px; }
.viewer-jump { display:flex; gap:8px; flex-wrap:wrap; margin:14px 0 0; }
.viewer-jump a { font-size:13px; padding:6px 12px; border:1px solid var(--line-2); border-radius:999px; text-decoration:none; color:var(--ink); background:#fff; }
.viewer-jump a:hover { border-color:var(--gold); }
.viewer { max-width:920px; margin:18px auto 40px; }
.viewer-doc { scroll-margin-top:90px; margin-bottom:28px; }
.viewer-doc h2 { font-size:16px; margin:0 0 10px; }
.viewer-pages { display:flex; flex-direction:column; align-items:center; gap:14px; }
.viewer-page { max-width:100%; height:auto !important; background:#fff; box-shadow:0 2px 14px rgba(0,0,0,.14); border-radius:4px; }
.viewer-loading { text-align:center; padding:40px 0; }
.shared-head { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; max-width:920px; margin:0 auto; }
.shared-head h1 { margin:0 0 4px; }
body.signer .shared-head .btn.secondary, body.signer .shared-head button.secondary { border:1px solid var(--line-2); color:var(--ink); }

/* ---------- pack page: the document action bar ---------- */
.doc-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 12px; margin:6px 0 4px; background:#faf9f5; border:1px solid var(--line); border-radius:12px; }
.da-all { display:flex; align-items:center; gap:10px; margin:0; font-size:13px; font-weight:700; color:var(--ink-2); white-space:nowrap; cursor:pointer; }
.da-all input { width:18px; height:18px; margin:0; accent-color:var(--black); }
.da-btns { display:flex; align-items:center; gap:2px; flex-wrap:wrap; margin-left:auto; }
button.da, summary.da { background:none; border:0; color:var(--ink); font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:8px 10px; min-height:0; border-radius:8px; cursor:pointer; display:inline-flex; align-items:center; gap:5px; }
details.kebab.inline > summary.da { width:auto; height:auto; padding:8px 10px; }
button.da:hover:not(:disabled), summary.da:hover { background:#efece0; }
button.da:disabled { opacity:.35; }
details.off > summary.da { opacity:.35; pointer-events:none; }
summary.da.da-share { background:var(--gold); color:#000; margin-left:6px; padding:8px 14px; }
details.kebab.inline > summary.da.da-share:hover { background:#b5a35a; }
.da-menu .kebab-menu { top:calc(100% + 6px); min-width:280px; }
.share-menu { padding:12px 14px; gap:0; min-width:320px !important; }
.share-menu label { margin:8px 0 4px; font-size:12px; }
.share-menu input, .share-menu textarea { margin:0; padding:8px 10px; font-size:14px; min-height:0; }
.share-menu button { margin-top:10px; min-height:38px; width:100%; }
.share-h { margin:0; font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--gold-ink); }
.share-h + label { margin-top:6px; }
.share-menu .share-h:not(:first-child) { margin-top:16px; padding-top:12px; border-top:1px solid var(--line); }
.share-menu #share-url { margin-top:8px; }
.share-note { font-size:12px; margin:8px 0 0; }
@media (max-width:760px) {
  .da-btns { margin-left:0; width:100%; }
  .viewer-bar { position:static; }
}
.folder-head { padding-left:4px; }
details.kebab.inline > summary.da { color:var(--ink); }
body.dark .btn.google-btn { width:100%; background:#fff; color:#1f1f1f; border:1px solid #dadce0; gap:10px; text-decoration:none; }
body.dark .btn.google-btn:hover { background:#f6f6f6; }

/* ---------- viewer: sidebar outline and fields on the page ---------- */
.viewer-wrap { display:grid; grid-template-columns:240px minmax(0,1fr); gap:24px; align-items:start; margin-top:16px; }
.viewer-wrap .viewer { margin:0 0 40px; max-width:none; }
.viewer-side { position:sticky; top:96px; max-height:calc(100vh - 116px); overflow:auto; background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px; }
.vs-h { margin:0 0 8px; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--gold-ink); }
.viewer-side nav { display:flex; flex-direction:column; gap:2px; }
.viewer-side nav a { display:flex; gap:10px; align-items:flex-start; padding:8px; border-radius:8px; text-decoration:none; color:var(--ink); font-size:13px; line-height:1.3; }
.viewer-side nav a:hover { background:#f6f4ec; }
.viewer-side nav a.on { background:#000; color:#fff; }
.viewer-side nav a.on .vs-n { background:var(--gold); color:#000; }
.viewer-side nav a.on small { color:#cfcfcf; }
.vs-n { flex:none; width:22px; height:22px; border-radius:999px; background:#efece0; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.vs-name { display:flex; flex-direction:column; min-width:0; }
.vs-name small { color:var(--muted); font-size:11px; margin-top:2px; }
.vs-key { margin-top:12px; padding-top:10px; border-top:1px solid var(--line); font-size:12px; }
.vs-key p { margin:0 0 6px; display:flex; gap:8px; align-items:center; }
.vs-sw { width:14px; height:10px; border-radius:2px; flex:none; }
.vs-sw.mine { background:rgba(194,176,103,.35); border:1px solid #8a7a3a; }
.vs-sw.them { background:rgba(37,99,235,.15); border:1px solid #2563eb; }
.viewer-page-wrap { position:relative; max-width:100%; }
.viewer-page-wrap .viewer-page { display:block; }
.viewer-fields { position:absolute; inset:0; }
.vf { position:absolute; box-sizing:border-box; margin:0; border-radius:2px; min-height:0; }
body input.vf.vf-text.vf-text, input.vf.vf-text { padding:0 2px; min-height:0; border:1px solid rgba(138,122,58,.7); background:rgba(194,176,103,.16); color:#0b1f5c; font-family:Helvetica, Arial, sans-serif; line-height:1; border-radius:2px; width:auto; }
body input.vf.vf-text.vf-text:focus { background:#fffbe9; outline:2px solid var(--gold); }
body input.vf.vf-text.vf-text.owed { border-color:var(--bad); background:rgba(196,48,43,.10); }
button.vf.vf-check { padding:0; min-height:0; border-radius:2px; font-size:12px; border:1px solid rgba(138,122,58,.8); background:rgba(194,176,103,.18); color:#0b1f5c; font-weight:700; line-height:1; display:flex; align-items:center; justify-content:center; }
button.vf.vf-check:hover { background:rgba(194,176,103,.4); }
.vf.vf-them { border:1px solid var(--c); background:color-mix(in srgb, var(--c) 14%, transparent); overflow:hidden; display:flex; align-items:center; pointer-events:auto; }
.vf.vf-them span { font-size:9px; line-height:1; color:var(--c); padding:0 2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:600; }
.vf.vf-them.vf-suggested { justify-content:center; }
.vf.vf-them.vf-suggested span { font-size:11px; padding:0; color:#111; }
@media (max-width:900px) {
  .viewer-wrap { grid-template-columns:1fr; }
  .viewer-side { position:static; max-height:none; }
}
.share-people { display:flex; flex-direction:column; gap:2px; margin:6px 0 4px; max-height:200px; overflow:auto; border:1px solid var(--line); border-radius:8px; padding:4px; }
.share-people label.check { margin:0; padding:6px 8px; border-radius:6px; font-size:13px; align-items:flex-start; cursor:pointer; }
.share-people label.check:hover { background:#f6f4ec; }
.share-people label.check input { margin-top:2px; }
.share-people label.check span { display:flex; flex-direction:column; }
.share-people label.check small { color:var(--muted); font-size:11px; }

/* ---------- slim document editor: one bar with File, Add, Autofill, More, Save and Share ---------- */
.ez-wrap { max-width:1080px; margin:0 auto; padding:14px 16px 40px; }
.ez-bar { position:sticky; top:72px; z-index:15; display:flex; align-items:stretch; background:#111; color:#fff; border-radius:8px; min-height:58px; box-shadow:0 2px 10px rgba(0,0,0,.12); }
.ez-back { display:flex; align-items:center; justify-content:center; width:52px; color:var(--gold); text-decoration:none; flex-shrink:0; }
.ez-back:hover { background:#1c1c1c; border-radius:8px 0 0 8px; }
.ez-title { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; justify-content:center; padding-right:12px; }
.ez-title strong { font-size:15px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ez-title > span { font-size:10.5px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--gold); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.ez-menus { display:flex; align-items:stretch; flex-shrink:0; }
.ez-menu { position:relative; display:flex; }
.ez-menu > summary, .ez-top { list-style:none; display:flex; align-items:center; gap:5px; padding:0 16px; font-size:12.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#e8e8e8; background:transparent; border:0; border-radius:0; min-height:0; cursor:pointer; white-space:nowrap; }
.ez-menu > summary::-webkit-details-marker { display:none; }
.ez-menu > summary:hover, .ez-top:hover:not(:disabled) { background:#1f1f1f; color:#fff; }
.ez-menu[open] > summary { background:#000; color:var(--gold); }
.ez-top:disabled { color:#6d6d6d; cursor:default; }
.ez-drop { position:absolute; top:100%; left:0; min-width:200px; background:var(--gold); color:#000; padding:6px 0; z-index:30; box-shadow:0 8px 24px rgba(0,0,0,.18); display:flex; flex-direction:column; }
.ez-drop.right { left:auto; right:0; }
.ez-item { display:block; width:100%; text-align:left; background:transparent; border:0; border-radius:0; min-height:0; padding:8px 14px; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#111; text-decoration:none; cursor:pointer; justify-content:flex-start; }
.ez-item:hover:not(:disabled):not(.off) { background:rgba(0,0,0,.1); }
.ez-item.off, .ez-item:disabled { color:rgba(0,0,0,.38); cursor:default; }
.ez-item.tool { cursor:grab; touch-action:none; user-select:none; }
.ez-item.tool[aria-pressed=true] { background:#000; color:var(--gold); }
.ez-for { display:flex; align-items:center; gap:8px; margin:0; padding:6px 14px 8px; border-bottom:1px solid rgba(0,0,0,.15); font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.ez-for select { flex:1; margin:0; padding:5px 8px; font-size:13px; font-weight:600; text-transform:none; letter-spacing:0; border:2px solid var(--c, #000); border-radius:6px; background:#fff; min-width:180px; }
.ez-share { margin-left:2px; }
.ez-share > summary { background:var(--gold); color:#000; padding:0 34px; border-radius:0 8px 8px 0; }
.ez-share > summary:hover, .ez-share[open] > summary { background:#d6c47a; color:#000; }
.ez-note { margin:0; padding:4px 14px; font-size:12px; color:#2a2a2a; max-width:240px; }
.ez-note:empty { display:none; }
.ez-hint { margin:10px 2px 12px; font-size:13px; color:var(--muted); min-height:18px; }
.ez-hint.bad { color:#b42318; }
.ed.ez { display:block; height:auto; min-height:0; background:transparent; }
.ed.ez .ed-pages { overflow:visible; padding:0; gap:14px; }
.ed.ez .ed-pages .doc-wrap { width:100%; max-width:1080px; border:1px solid #e3dcc2; border-radius:6px; box-shadow:0 1px 6px rgba(0,0,0,.05); background:#fff; overflow:visible; }
.ed.ez .ed-pages .page-label { align-self:flex-start; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#8a8a8a; margin:4px 0 -6px; }
.ed-props.pop { position:absolute; z-index:6; width:250px; background:#fff; border:1px solid #e2e1dc; border-radius:10px; padding:12px; gap:8px; box-shadow:0 10px 30px rgba(0,0,0,.16); font-size:13px; }
.ed-props.pop label { font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }
.ed-props.pop label.check { text-transform:none; letter-spacing:0; font-size:13px; color:var(--ink); font-weight:500; }
.ed-props.pop select, .ed-props.pop input[type=text] { margin:0; padding:7px 9px; font-size:13px; }
.ed-props.pop .row button { min-height:34px; padding:6px 10px; font-size:13px; }
.ez-prow { justify-content:space-between; align-items:center; }
.ed .field.radio { border-radius:999px; }
@media (max-width: 760px) {
  .ez-bar { flex-wrap:wrap; top:64px; }
  .ez-title { flex-basis:calc(100% - 52px); padding:8px 0; }
  .ez-menus { order:3; width:100%; overflow-x:auto; border-top:1px solid #222; }
  .ez-menu > summary, .ez-top { padding:12px 12px; }
  .ez-share { position:absolute; right:0; top:0; height:58px; }
  .ez-share > summary { padding:0 18px; border-radius:0 8px 0 0; }
}

/* ---------- pack header: the address large, then type, status, price, date and View Details as one small line ---------- */
body.admin .tx-head { align-items:center; padding:18px 22px; }
body.admin .tx-main { display:flex; flex-wrap:wrap; align-items:center; column-gap:18px; row-gap:4px; }
body.admin .tx-main h1 { flex-basis:100%; font-size:30px; font-weight:600; letter-spacing:-.01em; line-height:1.15; }
.tx-h-sub { font-weight:600; }
body.admin .tx-quick { margin:0; gap:4px 18px; }
body.admin .tx-quick select { border:0; background-color:transparent; padding:2px 16px 2px 0; font-size:12px; font-weight:700; letter-spacing:.06em; color:var(--gold-ink); background-position:right 0 center; background-size:10px; cursor:pointer; }
body.admin .tx-quick select:hover { color:#000; }
body.admin .tx-fact { font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--gold-ink); }
body.admin .tx-fact .muted { color:#a39b7c; }
body.admin .tx-head .edit-details { margin:0; }
body.admin .tx-head .edit-details > summary { font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--gold-ink); }
body.admin .tx-head .edit-details[open] { flex-basis:100%; }
@media (max-width: 760px) { body.admin .tx-main h1 { font-size:22px; } }
.ed-props[hidden], .ed-props.pop[hidden] { display:none; }
body.admin .tx-quick select { width:auto; min-width:0; field-sizing:content; }

/* Document tools: strikethroughs, dialogs, review notes, in-person signing */
.ed .field.strike { background:transparent; border:1px dashed transparent; padding:0; min-height:6px; }
.ed .field.strike:hover, .ed .field.strike.selected { border-color:color-mix(in srgb, var(--c) 60%, transparent); }
.ed-props label[hidden] { display:none; }
.ed .field.strike::after { content:""; position:absolute; left:0; right:0; top:50%; height:2px; margin-top:-1px; background:#111; pointer-events:none; }
.ed .field.strike .grip { width:8px; height:8px; }
.vf-strike { position:absolute; height:2px; background:#111; pointer-events:none; }
.ez-item[disabled] { opacity:.45; cursor:not-allowed; }
.ez-count { display:inline-block; min-width:18px; padding:0 5px; margin-left:4px; border-radius:9px; background:var(--gold, #c9a227); color:#111; font-size:11px; font-weight:700; line-height:18px; text-align:center; }
.ez-dlg { border:none; border-radius:12px; padding:0; width:min(440px, calc(100vw - 32px)); box-shadow:0 18px 50px rgba(0,0,0,.35); }
.ez-dlg::backdrop { background:rgba(0,0,0,.45); }
.ez-dlg form { padding:20px 22px 18px; display:flex; flex-direction:column; gap:10px; }
.ez-dlg h2 { margin:0; font-size:18px; }
.ez-dlg label:not(.check) { font-weight:600; font-size:13px; }
.ez-dlg select, .ez-dlg input[type=text] { width:100%; }
.ez-dlg .row { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; margin-top:4px; }
.ez-dlg .ez-note.bad:empty { display:none; }
.ez-dlg .ez-note.bad { color:#b42318; margin:0; }
.ez-pick { display:flex; flex-direction:column; gap:6px; max-height:300px; overflow:auto; }
.ez-pick label.check { display:flex; gap:8px; align-items:flex-start; padding:8px 10px; border:1px solid #e3e3e3; border-radius:8px; cursor:pointer; }
.ez-pick label.check:has(input:checked) { border-color:var(--gold, #c9a227); background:#fffbea; }
.ez-warn { color:#b42318; font-size:13px; margin:0; }
.ez-panel { position:fixed; top:130px; right:16px; bottom:16px; width:min(340px, calc(100vw - 32px)); background:#fff; border-radius:12px; box-shadow:0 12px 40px rgba(0,0,0,.25); padding:14px 16px; display:flex; flex-direction:column; gap:10px; z-index:40; overflow:auto; }
.ez-panel[hidden] { display:none; }
.ez-panel-h { display:flex; justify-content:space-between; align-items:center; font-size:16px; }
.ez-panel .muted { margin:0; font-size:13px; }
.ez-x { background:none; border:none; font-size:24px; line-height:1; color:#555; padding:0 4px; cursor:pointer; }
#note-form { display:flex; flex-direction:column; gap:6px; }
#note-form textarea { width:100%; resize:vertical; }
#note-form button { align-self:flex-end; }
.ez-notes { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.ez-notes li { border:1px solid #e6e6e6; border-radius:8px; padding:8px 10px; }
.ez-notes li.done { opacity:.6; }
.ez-notes li p { margin:0 0 4px; white-space:pre-wrap; }
.ez-notes .row { display:flex; gap:6px; margin-top:6px; }
.ez-notes .row button { padding:3px 10px; font-size:12px; }
.host-list { list-style:none; margin:12px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }
.host-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 12px; border:1px solid #e6e6e6; border-radius:10px; flex-wrap:wrap; }
.host-act { display:flex; align-items:center; gap:10px; }
.host-act form { margin:0; }
