/* The branded business shell ("OS") — one visual system for every module of a business's workspace.
   Brand comes from the account's configuration: --brand and --accent are set from /api/me (RER: teal and gold on black).
   Everything else is derived, so another business gets the same product in its own colours. Dark by design. */
:root {
  --brand: #1f8ea3; --accent: #d9b76a;
  --bg: #06090a; --bg-2: #0a0f11; --surface: #0f1518; --surface-2: #141c20; --raised: #1a242a;
  --line: rgba(140, 200, 210, .13); --line-2: rgba(140, 200, 210, .24); --line-3: rgba(140, 200, 210, .4);
  --ink: #eef4f5; --ink-2: #c3d2d5; --muted: #8499a0; --faint: #5d7178;
  --brand-bright: color-mix(in srgb, var(--brand) 55%, #9ff3ff); --brand-soft: color-mix(in srgb, var(--brand) 16%, transparent); --brand-deep: color-mix(in srgb, var(--brand) 62%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent); --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
  --ok: #62cf9f; --ok-soft: rgba(98, 207, 159, .13); --warn: #e8b65c; --warn-soft: rgba(232, 182, 92, .13); --bad: #f18d83; --bad-soft: rgba(241, 141, 131, .13);
  --r: 14px; --r-sm: 10px; --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px rgba(0,0,0,.34);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --side: 252px; --top: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh;
  background-image: radial-gradient(1100px 520px at -8% -12%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 62%), radial-gradient(760px 420px at 108% 108%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%); background-attachment: fixed; }
[hidden] { display: none !important; }
a { color: var(--brand-bright); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: 0; word-spacing: .08em; }
h1 { font-size: 24px; font-weight: 700; } h2 { font-size: 17px; font-weight: 700; } h3 { font-size: 14px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .num { font-variant-numeric: tabular-nums; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.gold { color: var(--accent); } .teal { color: var(--brand-bright); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- controls ---------- */
button, .btn { font: 600 14px/1 var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--ink); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
button:hover, .btn:hover { border-color: var(--line-3); background: var(--raised); text-decoration: none; } button:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 92%, #fff), var(--brand-deep)); border-color: color-mix(in srgb, var(--brand) 70%, #fff); color: #fff; }
.btn-primary:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 80%, #fff), var(--brand)); border-color: var(--brand-bright); }
.btn-gold { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #fff), color-mix(in srgb, var(--accent) 72%, #000)); border-color: color-mix(in srgb, var(--accent) 80%, #fff); color: #17130a; }
.btn-gold:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent)); border-color: #fff3d0; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); } .btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: transparent; } .btn-danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; } .btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; } .btn-block { width: 100%; }
input, select, textarea { font: 15px/1.3 var(--sans); width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #0a1012; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 84px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-bright); box-shadow: 0 0 0 3px var(--brand-soft); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238499a0' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); } label.f .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.form { display: grid; gap: 14px; } .form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.search { position: relative; } .search input { padding-left: 40px; } .search svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); stroke: var(--muted); fill: none; stroke-width: 2; pointer-events: none; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; } .check input { width: 18px; min-height: 18px; height: 18px; padding: 0; accent-color: var(--brand); }
.qty { display: inline-grid; grid-template-columns: 40px 64px 40px; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #0a1012; }
.qty button { min-height: 40px; padding: 0; border: 0; border-radius: 0; background: var(--surface-2); font-size: 18px; color: var(--ink-2); } .qty button:hover { background: var(--raised); color: var(--ink); }
.qty input { border: 0; border-radius: 0; text-align: center; padding: 0 2px; min-height: 40px; font-weight: 700; font-variant-numeric: tabular-nums; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.has { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.seg { display: inline-flex; padding: 3px; background: #0a1012; border: 1px solid var(--line-2); border-radius: 10px; gap: 2px; }
.seg button { min-height: 32px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); font-size: 13px; border-radius: 7px; } .seg button.on { background: var(--brand-soft); color: var(--brand-bright); box-shadow: 0 0 0 1px var(--line-2) inset; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px 14px; background: linear-gradient(180deg, rgba(12,18,21,.96), rgba(7,11,12,.96)); border-right: 1px solid var(--line); overflow-y: auto; z-index: 20; }
.plate { display: block; background: linear-gradient(180deg, #fbfaf5, #efece1); border-radius: 14px; padding: 12px 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 0 0 1px var(--accent-line), 0 10px 28px rgba(0,0,0,.45); }
.plate img { display: block; width: 100%; height: auto; }
.plate .mono { display: grid; place-items: center; height: 64px; font: 800 26px var(--display); color: #10343b; letter-spacing: .04em; }
.side-sub { margin: 10px 6px 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; } .side-sub::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent-line), transparent); }
.nav { display: grid; gap: 2px; } .nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; position: relative; text-decoration: none; }
.nav a svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: linear-gradient(90deg, var(--brand-soft), transparent 85%); color: #fff; font-weight: 600; } .nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav a.on svg { stroke: var(--brand-bright); opacity: 1; }
.nav .count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; text-align: center; border: 1px solid var(--accent-line); }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; }
.me-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(16,22,25,.7); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--display); color: #06262c; background: linear-gradient(135deg, var(--brand-bright), var(--brand)); flex: none; }
.me-chip b { display: block; font-size: 13.5px; line-height: 1.2; } .me-chip span { font-size: 12px; color: var(--muted); }
.me-chip button { margin-left: auto; min-height: 32px; padding: 0 9px; }
.powered { font-size: 11px; color: var(--faint); text-align: center; letter-spacing: .04em; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 15; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 28px; background: rgba(6,9,10,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .crumb { font: 700 17px var(--display); display: flex; align-items: center; gap: 10px; min-width: 0; } .top .crumb a { color: var(--muted); font-weight: 600; } .top .crumb span.sep { color: var(--faint); } .top .crumb .here { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .spacer { flex: 1; } .top .search { width: min(340px, 34vw); } .top .search input { min-height: 38px; background: rgba(15,21,24,.9); }
.top-logo { display: none; }
.testbar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 5px 16px; font-size: 12px; letter-spacing: .03em; background: repeating-linear-gradient(135deg, rgba(232,182,92,.14) 0 12px, rgba(232,182,92,.07) 12px 24px); color: var(--warn); border-bottom: 1px solid rgba(232,182,92,.3); text-align: center; }
.testbar b { letter-spacing: .12em; }
.view { padding: 26px 28px 80px; width: 100%; max-width: 1360px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { color: var(--muted); margin-top: 4px; max-width: 70ch; } .page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }

/* ---------- surfaces ---------- */
.card { background: linear-gradient(180deg, rgba(20,28,32,.92), rgba(14,20,23,.92)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; } .card-h .sub { color: var(--muted); font-size: 13px; font-weight: 400; font-family: var(--sans); }
.card-b { padding: 16px 18px 18px; } .card-b.flush { padding: 8px 0 4px; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .g-side { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.stack { display: grid; gap: 16px; align-content: start; } .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; }
.tile { position: relative; padding: 16px 18px; border-radius: var(--r); background: linear-gradient(180deg, rgba(22,31,36,.95), rgba(13,19,22,.95)); border: 1px solid var(--line); overflow: hidden; display: block; color: inherit; text-decoration: none; }
a.tile:hover { border-color: var(--line-3); text-decoration: none; }
.tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--brand), transparent 70%); opacity: .9; }
.tile.gold::before { background: linear-gradient(90deg, var(--accent), transparent 70%); } .tile.warn::before { background: linear-gradient(90deg, var(--warn), transparent 70%); } .tile.bad::before { background: linear-gradient(90deg, var(--bad), transparent 70%); }
.tile .l { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tile .v { font: 700 27px/1.15 var(--display); margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .tile .v small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; letter-spacing: 0; }
.tile .s { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(255,255,255,.03); white-space: nowrap; line-height: 1.5; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill.teal { color: var(--brand-bright); border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: var(--brand-soft); }
.pill.gold { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.pill.ok { color: var(--ok); border-color: rgba(98,207,159,.4); background: var(--ok-soft); } .pill.warn { color: var(--warn); border-color: rgba(232,182,92,.4); background: var(--warn-soft); }
.pill.bad { color: var(--bad); border-color: rgba(241,141,131,.4); background: var(--bad-soft); } .pill.plain::before { display: none; }
.note { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(31,142,163,.07); font-size: 14px; color: var(--ink-2); align-items: flex-start; }
.note.warn { border-color: rgba(232,182,92,.35); background: var(--warn-soft); color: #f3dcae; } .note.bad { border-color: rgba(241,141,131,.4); background: var(--bad-soft); color: #f9cfc9; } .note.ok { border-color: rgba(98,207,159,.35); background: var(--ok-soft); color: #c9f1de; }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 2; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); } .empty b { display: block; color: var(--ink); font: 700 16px var(--display); margin-bottom: 6px; } .empty .btn { margin-top: 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--ink); } .tabs a.on { color: #fff; border-bottom-color: var(--accent); } .tabs .count { font-size: 11.5px; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.steps { display: flex; gap: 0; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: s; overflow-x: auto; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; padding: 0 18px 0 0; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 12.5px; background: var(--surface); }
.steps li::after { content: ""; width: 34px; height: 1px; background: var(--line-2); } .steps li:last-child::after { display: none; }
.steps li.on { color: #fff; } .steps li.on::before { border-color: var(--accent); color: #17130a; background: var(--accent); box-shadow: 0 0 14px var(--accent-soft); }
.steps li.done { color: var(--ink-2); } .steps li.done::before { content: "✓"; border-color: var(--brand); background: var(--brand-soft); color: var(--brand-bright); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; } table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: rgba(10,15,17,.6); position: sticky; top: 0; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; } .tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.link { cursor: pointer; } .tbl tr.link:hover td { background: rgba(31,142,163,.07); }
.tbl td b { font-weight: 600; } .tbl .sub { display: block; font-size: 12.5px; color: var(--muted); }
.tbl tfoot td { border-top: 1px solid var(--line-2); border-bottom: 0; font-weight: 700; background: rgba(10,15,17,.5); }
.rule-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; gap: 8px; align-items: center; margin-bottom: 8px; } .money-in { position: relative; } .money-in span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; } .money-in input { padding-left: 24px; width: 100%; text-align: right; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; } .drop { border: 1px dashed var(--line-2); border-radius: 14px; padding: 28px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; background: rgba(10,15,17,.35); } .drop b { font: 700 18px var(--display); }
.tbl tfoot tr.part td { font-weight: 500; color: var(--ink-2); padding-top: 7px; padding-bottom: 7px; } .tbl tfoot tr.part + tr.part td { border-top: 0; }
.tbl td input, .tbl td select { min-height: 38px; }
.tbl .grp td { background: rgba(217,183,106,.05); font: 700 13.5px var(--display); color: var(--ink); padding: 9px 14px; border-bottom: 1px solid var(--accent-line); }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; min-width: 70px; } .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); } .bar.gold i { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #000), var(--accent)); }
.chart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; height: 170px; padding-top: 8px; }
.chart .col { display: flex; flex-direction: column; gap: 6px; align-items: center; height: 100%; min-height: 0; font-size: 11.5px; color: var(--muted); } .chart .bars { display: flex; gap: 4px; align-items: flex-end; flex: 1; min-height: 0; width: 100%; justify-content: center; border-bottom: 1px solid var(--line-2); }
.chart .bars i { width: min(22px, 38%); border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--brand-bright), var(--brand)); min-height: 2px; } .chart .bars i.g { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--brand-bright); } .legend i.g { background: var(--accent); }
.list { list-style: none; margin: 0; padding: 0; } .list li { display: flex; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); } .list li:last-child { border-bottom: 0; }
.list li.link { cursor: pointer; } .list li.link:hover { background: rgba(31,142,163,.07); } .list .grow { flex: 1; min-width: 0; } .list .grow b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .list .grow span { font-size: 13px; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; } .timeline li { position: relative; padding: 0 0 16px 22px; border-left: 1px solid var(--line-2); } .timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--bg-2); } .timeline li.gold::before { background: var(--accent); }
.timeline b { font-weight: 600; } .timeline .when { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; background: rgba(2,4,5,.66); backdrop-filter: blur(3px); z-index: 60; display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal { width: min(560px, 100%); background: linear-gradient(180deg, #151e23, #0e1518); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.modal.wide { width: min(820px, 100%); } .modal-h { padding: 20px 22px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .modal-h p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.modal-b { padding: 18px 22px; overflow-y: auto; } .modal-f { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); }
.x { min-height: 34px; width: 34px; padding: 0; border-radius: 50%; font-size: 18px; color: var(--muted); }
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(560px, calc(100% - 28px)); pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 12px; background: #17232a; border: 1px solid var(--line-3); box-shadow: 0 16px 40px rgba(0,0,0,.5); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; animation: rise .18s ease-out; }
.toast.bad { border-color: var(--bad); background: #2a1716; color: #fbd9d4; } .toast.ok::before { content: "✓"; color: var(--ok); font-weight: 800; } .toast.bad::before { content: "!"; color: var(--bad); font-weight: 800; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--brand-bright); animation: spin .7s linear infinite; margin: 40px auto; } @keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sign-in ---------- */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; }
.signin-card { width: min(430px, 100%); padding: 30px 28px 26px; border-radius: 20px; background: linear-gradient(180deg, rgba(21,30,35,.94), rgba(11,17,19,.96)); border: 1px solid var(--line-2); box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset, 0 40px 90px rgba(0,0,0,.55); }
.signin-card .plate { margin-bottom: 22px; } .signin-card h1 { font-size: 22px; } .signin-card .lede { color: var(--muted); margin: 6px 0 20px; }
.signin-card .alt { margin-top: 14px; text-align: center; font-size: 13.5px; } .signin-card .msg { min-height: 20px; font-size: 13.5px; margin-top: 4px; } .signin-card .msg.bad { color: var(--bad); } .signin-card .msg.ok { color: var(--ok); }
.si-people { display: grid; gap: 8px; margin-bottom: 18px; } .si-people .cap { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; } .si-people button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; }
.si-people button > span:last-child { min-width: 0; } .si-people button b { display: block; font-size: 14.5px; white-space: normal; line-height: 1.25; } .si-people button span.r { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; white-space: normal; line-height: 1.4; margin-top: 3px; } .si-people .or { text-align: center; font-size: 12px; color: var(--faint); margin-top: 6px; }
/* training: the top-bar control, the corner player, the library */
.tut-btn { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--accent); border: 1px solid var(--accent-line, rgba(217,183,106,.35)); border-radius: 999px; padding: 6px 12px; } .tut-btn:hover { background: rgba(217,183,106,.1); }
.tut { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(560px, calc(100vw - 24px)); border-radius: 16px; overflow: hidden; background: #0b1113; border: 1px solid var(--line-2); box-shadow: 0 24px 70px rgba(0,0,0,.65); } .tut.small { width: min(320px, calc(100vw - 24px)); }
.tut header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 14px; } .tut header b { display: block; font: 700 15px var(--display); } .tut video, .tut-big { display: block; width: 100%; aspect-ratio: 16 / 9; background: #05090a; }
.tut footer { display: flex; gap: 12px; align-items: center; padding: 9px 14px; font-size: 12px; } .tut.small footer span { display: none; } .tut-big { border-radius: 12px; border: 1px solid var(--line); } .tut-miss { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--muted); background: #05090a; font-size: 14px; }
.tut-hero { background: radial-gradient(700px 300px at 0 0, rgba(31,142,163,.28), transparent 65%), linear-gradient(180deg, rgba(22,31,36,.95), rgba(13,19,22,.95)); } .tut-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: center; padding: 22px; } .tut-hero h2 { font: 800 28px/1.15 var(--display); }
.tut-poster { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #05090a; aspect-ratio: 16 / 9; cursor: pointer; } .tut-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; } .tut-poster:hover img, .tut-card:hover img { transform: scale(1.03); }
.tut-play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(217,183,106,.95); color: #17130a; box-shadow: 0 6px 22px rgba(0,0,0,.5); } .tut-play svg { width: 22px; height: 22px; margin-left: 3px; } .tut-len { position: absolute; right: 8px; bottom: 8px; background: rgba(5,9,10,.85); color: var(--ink); font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.tut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; } .tut-card { display: grid; gap: 4px; text-align: left; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; white-space: normal; } .tut-card .tut-poster { margin-bottom: 6px; } .tut-card .tut-play { width: 42px; height: 42px; } .tut-card .tut-play svg { width: 17px; height: 17px; }
.tut-card b { font: 700 15.5px var(--display); } .tut-n { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; } .tut-sub { font-size: 13px; color: var(--muted); font-weight: 400; line-height: 1.4; }
@media (max-width: 860px) { .tut-hero-in { grid-template-columns: minmax(0, 1fr); padding: 14px; } .tut-btn .lbl { display: none; } .tut-btn { padding: 7px 9px; } .tut { right: 12px; bottom: 76px; } }
.signin-foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); text-align: center; }

/* ---------- order builder / pick list ---------- */
.sticky-sum { position: sticky; top: calc(var(--top) + 16px); }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; } .sum-line:last-of-type { border-bottom: 0; } .sum-line span:first-child { min-width: 0; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line-2); } .sum-total b { font: 800 28px var(--display); font-variant-numeric: tabular-nums; color: var(--accent); }
.prod { border: 1px solid var(--line); border-radius: 12px; background: rgba(15,21,24,.75); overflow: hidden; } .prod + .prod { margin-top: 10px; }
.prod-h { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 14px; background: rgba(217,183,106,.045); border-bottom: 1px solid var(--line); } .prod-h b { font: 700 14.5px var(--display); }
.size { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(0, 1.6fr) auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); } .size:last-child { border-bottom: 0; }
.size > div:first-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .size > div:first-child .seg { margin-top: 0 !important; } .size .sz { font-weight: 700; min-width: 58px; } .size .info { font-size: 12.5px; color: var(--muted); min-width: 0; } .size .info b { color: var(--ink-2); font-weight: 600; }
.cust-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); }
.cust-card .avatar { width: 44px; height: 44px; font-size: 15px; background: linear-gradient(135deg, #f1d99a, var(--accent)); color: #2a2109; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; } .bubble.marin { background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; } .bubble.caller { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 50%, transparent); margin-left: auto; border-bottom-right-radius: 4px; }
.chat { display: grid; gap: 10px; padding: 16px 18px; max-height: 460px; overflow-y: auto; } .chat .who { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.toolstep { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); } .toolstep code { color: var(--brand-bright); font-size: 12px; } .toolstep.no code { color: var(--bad); }
.doc { white-space: pre; overflow-x: auto; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 16px; background: #080c0e; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); }
.tabbar { display: none; }
.dock { display: none; }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  :root { --side: 78px; }
  .side { padding: 14px 10px; align-items: stretch; } .plate { padding: 6px; border-radius: 12px; } .side-sub, .nav a span, .me-chip div, .powered, .nav .count { display: none; }
  .nav a { justify-content: center; padding: 12px 0; } .nav a.on::before { left: -10px; } .nav a svg { width: 21px; height: 21px; }
  .me-chip { padding: 6px; justify-content: center; flex-direction: column; } .me-chip button { margin: 0; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main, .g-side { grid-template-columns: minmax(0, 1fr); } .sticky-sum { position: static; }
  /* the builder's total and next step stay in reach while the list scrolls */
  .dock { position: fixed; left: var(--side); right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 22px; background: rgba(10,15,17,.95); backdrop-filter: blur(14px); border-top: 1px solid var(--accent-line); }
  .dock b { font: 800 20px var(--display); color: var(--accent); font-variant-numeric: tabular-nums; } .dock span { color: var(--muted); font-size: 13px; display: block; } .has-dock { padding-bottom: 90px; }
  .view { padding: 22px 22px 80px; } .top { padding: 0 22px; }
}
/* ---------- phone ---------- */
@media (max-width: 720px) {
  :root { --top: 58px; }
  .shell { grid-template-columns: minmax(0, 1fr); } .side { display: none; }
  .top { padding: 0 14px; gap: 10px; } .top-logo { display: block; flex: none; } .top-logo .plate { padding: 4px 7px; border-radius: 9px; width: 78px; box-shadow: 0 0 0 1px var(--accent-line); }
  .top .search { display: none; } .top .crumb { font-size: 15.5px; } .top .crumb a, .top .crumb .sep { display: none; } .top .btn span.lbl { display: none; } .top .btn { padding: 0 12px; }
  .view { padding: 16px 14px 104px; } h1 { font-size: 21px; }
  .g2, .g3, .form-2 { grid-template-columns: minmax(0, 1fr); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .grid { gap: 12px; }
  .card-h { flex-wrap: wrap; } .seg { flex-wrap: wrap; } form.row label.f { flex: 1 1 130px; min-width: 0; } form.row input, form.row select { min-width: 0; max-width: 100% !important; } .tile .v { overflow-wrap: anywhere; }
  .tile { padding: 13px 14px; } .tile .v { font-size: 22px; } .card-h { padding: 14px 14px 0; } .card-b { padding: 14px; } .list li { padding: 11px 14px; }
  .page-head { margin-bottom: 14px; } .page-head .actions { width: 100%; } .page-head .actions .btn { flex: 1; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(8,12,14,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; min-height: 50px; border: 0; background: none; color: var(--muted); font: 600 10.5px var(--sans); border-radius: 10px; text-decoration: none; }
  .tabbar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } .tabbar .on { color: var(--accent); }
  .toasts { bottom: 84px; } .dock { left: 0; bottom: calc(63px + env(safe-area-inset-bottom)); padding: 10px 14px; } .has-dock { padding-bottom: 80px; }
  /* tables become stacked records */
  table.tbl.stackable thead { display: none; } table.tbl.stackable, table.tbl.stackable tbody, table.tbl.stackable tr, table.tbl.stackable td { display: block; width: 100%; }
  table.tbl.stackable tr { padding: 10px 14px; border-bottom: 1px solid var(--line); } table.tbl.stackable tr.grp { padding: 0; } table.tbl.stackable td { padding: 3px 0; border: 0; text-align: left !important; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
  table.tbl.stackable td::before { content: attr(data-l); font-size: 12px; color: var(--muted); flex: none; } table.tbl.stackable td[data-l=""]::before, table.tbl.stackable td:not([data-l])::before { display: none; }
  table.tbl.stackable td.lead { font-size: 15px; padding-bottom: 5px; } table.tbl.stackable tfoot { display: block; } table.tbl.stackable tfoot tr { background: rgba(10,15,17,.5); }
  .size { grid-template-columns: 1fr auto; gap: 8px 12px; } .size .info { grid-column: 1 / -1; order: 3; } .qty { grid-template-columns: 44px 60px 44px; } .qty button, .qty input { min-height: 44px; }
  .modal-f .btn, .modal-f button { flex: 1; } .scrim { padding: 0; place-items: end center; } .modal, .modal.wide { width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; }
  .sheet-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .sheet-nav a { display: grid; justify-items: center; gap: 8px; padding: 16px 6px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; text-align: center; background: var(--surface); text-decoration: none; }
  .sheet-nav svg { width: 24px; height: 24px; fill: none; stroke: var(--brand-bright); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; }
  .steps li span { display: none; } .steps li.on span { display: inline; } .steps li::after { width: 18px; }
}
/* ---------- Marin, on every screen ---------- */
.mp-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 4px; border-radius: 999px; border: 1px solid var(--accent-line); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, #10171a), #10171a); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; white-space: nowrap; flex: none; }
.mp-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--accent-line); background: #0c1416; } .mp-btn:hover, .mp-btn[aria-expanded=true] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mp { position: fixed; top: 0; right: 0; bottom: 0; z-index: 58; width: 408px; max-width: 100vw; display: flex; flex-direction: column; background: linear-gradient(180deg, #0d1417, #090e10); border-left: 1px solid var(--line-2); box-shadow: -24px 0 60px rgba(0,0,0,.5); } .mp[hidden] { display: none; }
.mp-h { display: flex; align-items: center; gap: 10px; padding: 14px 12px 12px 16px; border-bottom: 1px solid var(--line); } .mp-h .grow { min-width: 0; flex: 1; } .mp-h b { display: block; font: 800 17px var(--display); } .mp-engine { display: block; font-size: 11.5px; color: var(--muted); }
.mp-face img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--accent-line); background: #0c1416; display: block; } .mp-face.lg img { width: 40px; height: 40px; } .mp-face { flex: none; }
.mp-where { padding: 7px 16px; font-size: 12px; color: var(--brand-bright); background: var(--brand-soft); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-msgs { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.mp-hello { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 26px 18px 10px; color: var(--ink-2); font-size: 14px; line-height: 1.5; } .mp-hello img { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--accent-line); } .mp-hello b { font: 700 17px var(--display); color: var(--ink); }
.mp-row { display: flex; gap: 8px; align-items: flex-start; } .mp-row.me { justify-content: flex-end; } .mp-col { min-width: 0; display: grid; gap: 8px; justify-items: start; max-width: calc(100% - 38px); }
.mp-b { padding: 10px 13px; border-radius: 14px; border-top-left-radius: 4px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.mp-b.me { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 14px; border-top-right-radius: 4px; max-width: 86%; }
.mp-wait { display: inline-flex; gap: 5px; padding: 14px; } .mp-wait i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: mp-dot 1.1s infinite ease-in-out; } .mp-wait i:nth-child(2) { animation-delay: .15s; } .mp-wait i:nth-child(3) { animation-delay: .3s; }
@keyframes mp-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.mp-card { width: 100%; padding: 12px 13px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); display: grid; gap: 8px; } .mp-card p { margin: 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; } .mp-card .cap { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.mp-card.done { border-color: var(--line-2); background: transparent; opacity: .8; } .mp-card.done .cap { color: var(--muted); }
/* Books: expenses, owners, bank */
label.chk { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; cursor: pointer; } label.chk input, .tbl input[type=checkbox] { width: 18px; min-width: 18px; height: 18px; min-height: 18px; padding: 0; accent-color: var(--brand-bright); flex: none; }
.xp-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; align-items: end; } .xp-bar { margin-top: 10px; } .xp-h { font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 20px 0 8px; }
tr.xp-total td { border-top: 1px solid var(--line-3); } tr.xp-void td { opacity: .55; text-decoration: line-through; } tr.xp-void td:last-child, tr.xp-void .pill { text-decoration: none; }
.xp-owner { border-top: 1px solid var(--line); padding-top: 18px; } .xp-owner > .row { padding: 0 18px; } .xp-owner h2 { margin: 0; font: 700 19px var(--display); }
.xp-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 14px 18px 16px; } .xp-fig { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255,255,255,.02); } .xp-fig.gold { border-color: var(--accent-line); background: var(--accent-soft); }
.xp-fig .l { font-size: 12px; color: var(--muted); font-weight: 600; } .xp-fig .v { font: 700 21px var(--display); margin-top: 4px; font-variant-numeric: tabular-nums; } .xp-fig .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.xp-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; align-items: end; } .xp-fix { display: grid; gap: 6px; min-width: 190px; } .xp-fix select, .xp-fix input:not([type=checkbox]) { min-height: 34px; padding: 5px 8px; font-size: 13px; }
.bk-in { color: var(--ok); } .bk-what { display: block; max-width: 420px; font-size: 13px; line-height: 1.4; color: var(--ink-2); white-space: normal; }
.bk-choices { display: grid; gap: 8px; } .bk-choice { border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px; } .bk-choice:has(input[type=radio]:checked) { border-color: var(--accent-line); background: var(--accent-soft); } .bk-choice [data-body] { margin-top: 10px; display: grid; gap: 10px; } .bk-choice [data-body][hidden] { display: none; }
.mp-all { width: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px 12px; border-radius: 12px; border: 1px dashed var(--accent-line); } .mp-all span { flex: 1; min-width: 150px; font-size: 12.5px; color: var(--muted); }
.mp-ic.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.mp-offers { display: flex; flex-wrap: wrap; gap: 6px; } .mp-src { font-size: 11.5px; color: var(--faint); }
.mp-tips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 4px; } .mp-tips button { white-space: normal; text-align: left; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; padding: 6px 11px; height: auto; line-height: 1.25; }
.mp-f { display: flex; gap: 6px; align-items: center; padding: 8px 12px 6px; } .mp-f input { flex: 1; min-width: 0; height: 44px; border-radius: 999px; padding: 0 16px; }
.mp-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); cursor: pointer; padding: 0; } .mp-ic.send { background: var(--accent); color: #17130a; border-color: var(--accent); }
.mp-ic.on { background: var(--bad); border-color: var(--bad); color: #1b0b09; animation: mp-pulse 1.2s infinite; } @keyframes mp-pulse { 50% { box-shadow: 0 0 0 7px rgba(241,141,131,.18); } }
.mp-foot { padding: 0 16px 10px; font-size: 11px; color: var(--faint); }
@media (min-width: 1181px) { body.mp-open .shell { padding-right: 408px; } body.mp-open .tut { right: 428px; } }
@media (min-width: 1181px) and (max-width: 2000px) { body.mp-open .top .search { display: none; } }
@media (max-width: 1180px) { .mp { width: min(408px, 100vw); } body.mp-open .tut { display: none; } }
@media (max-width: 720px) { .mp { width: 100vw; border-left: 0; z-index: 70; } .mp-btn { padding: 0 3px; height: 36px; } .mp-btn .lbl { display: none; } .mp-btn img { width: 28px; height: 28px; } .mp-f { padding-bottom: max(8px, env(safe-area-inset-bottom)); } .mp-foot { display: none; } }
@media print { .mp, .mp-btn { display: none !important; } }
@media print { .side, .top, .tabbar, .testbar, .no-print { display: none !important; } body { background: #fff; color: #000; } .shell { display: block; } .card, .doc { border-color: #ccc; background: #fff; color: #000; box-shadow: none; } }

/* Marin: a list attached to the next message, and a stock update's card (Nov 17) */
.mp-att { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 2px 12px 0; padding: 8px 12px; border: 1px dashed var(--accent-line); border-radius: 12px; font-size: 13px; } .mp-att-n { font-weight: 600; overflow-wrap: anywhere; } .mp-att-h { flex-basis: 100%; }
.mp-file { display: block; font-size: 12px; opacity: .8; margin-top: 4px; }
.mp-su .su-h { display: grid; gap: 2px; } .mp-su .su-h span { font-size: 12.5px; color: var(--muted); }
.mp-su .su-cols { display: flex; justify-content: space-between; padding: 0 10px; }
.mp-su .su-ls { display: grid; gap: 6px; max-height: 48vh; overflow: auto; overscroll-behavior: contain; }
.mp-su.busy { opacity: .6; pointer-events: none; }
.su-l { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.18); }
.su-l.same, .su-l.skip { opacity: .6; } .su-l.need { grid-template-columns: minmax(0, 1fr); border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: var(--warn-soft); }
.su-n { display: grid; gap: 2px; min-width: 0; font-size: 13.5px; } .su-n b { overflow-wrap: anywhere; font-weight: 600; } .su-why { color: var(--warn); font-size: 12.5px; } .su-new { color: var(--accent); }
.su-q { white-space: nowrap; font-size: 13.5px; } .su-q .up { color: var(--ok); } .su-q .down { color: var(--bad); }
.su-fix { display: flex; flex-wrap: wrap; gap: 6px; } .su-fix select { flex: 1 1 180px; min-height: 38px; padding: 6px 10px; font-size: 14px; } .su-fix input { flex: 0 1 120px; min-height: 38px; padding: 6px 10px; }
.su-sum { font-size: 12.5px; color: var(--muted); }
