/* Total Post N Print — Super Admin (owner) UI.
   Dark: Graphite / Milano Red / Marina Bay Blue. Light: Pearl / Marina Bay Blue / Gold.
   Same structure as the LendPrep master frame: glass panels, glossy pill buttons, lit sidebar edge. */
:root, [data-theme="dark"] {
  --canvas:#141518; --light1:rgba(195,18,31,.16); --light2:rgba(29,95,180,.14);
  --text:#F5F5F7; --muted:#BDC0C7; --border:rgba(98,99,107,.85);
  --glass:linear-gradient(160deg,rgba(52,53,58,.92),rgba(30,31,34,.94));
  --shadow:0 12px 28px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(0,0,0,.6);
  --btn:linear-gradient(180deg,#45464B,#26272B 70%,#1B1C1F); --btn-text:#F5F5F7;
  --primary:linear-gradient(180deg,#E8343F,#C3121F 62%,#8E0B16); --primary-text:#FFFFFF; --primary-glow:0 0 18px rgba(232,52,63,.45);
  --edge:#FF3B47; --edge-glow:rgba(255,59,71,.75); --link:#6BB0FF;
  --side:linear-gradient(180deg,#1C1D21 0%,#111215 60%,#0B0C0E 100%); --side-text:#E6E7EB; --side-muted:#9EA1AA;
  --deep:linear-gradient(135deg,#3A0E14 0%,#1A0E11 55%,#0F1626 100%);
  --done:#2F7BE0; --sheen:rgba(255,255,255,.07); --row:rgba(255,255,255,.06); --input:rgba(255,255,255,.05);
  --ok-bg:rgba(155,224,106,.16); --ok:#B8F08A; --bad-bg:rgba(232,52,63,.2); --bad:#FFB2BA;
  --warn-bg:rgba(255,200,80,.16); --warn:#FFD27A; --info-bg:rgba(107,176,255,.16); --info:#A9CCFF;
  color-scheme: dark;
}
[data-theme="light"] {
  --canvas:#EAF2FB; --light1:rgba(29,95,180,.16); --light2:rgba(224,168,46,.16);
  --text:#0E1D3A; --muted:#40577C; --border:#B5CAE0;
  --glass:linear-gradient(160deg,rgba(255,255,255,.92),rgba(238,245,252,.88));
  --shadow:0 12px 28px rgba(27,70,113,.16),inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(117,160,198,.24);
  --btn:linear-gradient(180deg,#FFFFFF,#DAEAF8); --btn-text:#0E3F86;
  --primary:linear-gradient(180deg,#FBE08A,#E8B53A 60%,#B9831A); --primary-text:#2A1B00; --primary-glow:0 0 18px rgba(232,181,58,.5);
  --edge:#F2C14E; --edge-glow:rgba(242,193,78,.85); --link:#1D5FB4;
  --side:linear-gradient(180deg,#1D5FB4 0%,#0F3F82 50%,#082A57 100%); --side-text:#FFFFFF; --side-muted:#C3D7F2;
  --deep:linear-gradient(135deg,#1D5FB4 0%,#0F3F82 55%,#082A57 100%);
  --done:#1D5FB4; --sheen:rgba(255,255,255,.6); --row:#E3ECF6; --input:#F4F8FD;
  --ok-bg:#E6F6D9; --ok:#2F6B14; --bad-bg:#FCE4E6; --bad:#A10F1A;
  --warn-bg:#FDF0D5; --warn:#8A5300; --info-bg:#E2EDFB; --info:#164A8C;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, system-ui, sans-serif; color: var(--text); background: var(--canvas);
  background-image: radial-gradient(900px 500px at 85% -10%, var(--light1), transparent 60%), radial-gradient(800px 500px at 30% 110%, var(--light2), transparent 60%);
  background-attachment: fixed; font-size: 15px;
}
a { color: var(--link); }
button { font: inherit; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

/* Shell */
.app { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; flex: 0 0 240px; background: var(--side); color: var(--side-text); padding: 22px 0 22px 16px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; overflow-x: hidden; z-index: 20; }
.side .edge { position: absolute; top: 0; right: -2px; width: 26px; height: 100%; pointer-events: none; filter: drop-shadow(0 0 6px var(--edge-glow)) drop-shadow(0 0 14px var(--edge-glow)); }
.brand { display: flex; flex-direction: column; gap: 4px; padding: 0 16px 0 6px; text-decoration: none; color: inherit; }
.brand .mark { font-weight: 900; font-style: italic; font-size: 36px; line-height: 1; letter-spacing: -.06em; color: #fff; }
.brand .mark span { background: var(--primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand b { font-size: 17px; font-weight: 700; color: #fff; }
.brand small { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; color: var(--side-muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px 0 14px; margin-right: 16px; border-radius: 14px; color: var(--side-text); text-decoration: none; font-size: 14.5px; font-weight: 550; }
.nav a:hover { background: rgba(255,255,255,.07); }
.nav a svg { width: 22px; height: 22px; flex: none; }
.nav a.on { background: var(--primary); color: var(--primary-text); font-weight: 700; margin-right: 0; border-radius: 16px 0 0 16px; box-shadow: var(--primary-glow), inset 0 1px 0 rgba(255,255,255,.45); }
.nav a.on::before, .nav a.on::after { content: ""; position: absolute; right: 0; width: 18px; height: 18px; pointer-events: none; }
.nav a.on::before { top: -18px; background: radial-gradient(circle at 0 0, transparent 17.5px, var(--edge) 18px); }
.nav a.on::after { bottom: -18px; background: radial-gradient(circle at 0 100%, transparent 17.5px, var(--edge) 18px); }
.nav .group { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--side-muted); padding: 14px 14px 4px; }
.main { flex: 1 1 0; min-width: 0; padding: 18px 28px 24px 32px; display: flex; flex-direction: column; gap: 20px; }
.topbar { display: flex; align-items: center; gap: 12px; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 46px; border-radius: 999px; padding: 0 18px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: 500 15px Inter, sans-serif; color: var(--text); }
.ibtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--btn-text); cursor: pointer; padding: 0; }
.acct { display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 999px; padding: 0 14px 0 5px; color: var(--text); font-weight: 650; text-decoration: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--primary-text); display: grid; place-items: center; font-size: 13px; font-weight: 750; box-shadow: var(--primary-glow); flex: none; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Page header */
.phead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.phead h1 { margin: 4px 0 0; font-size: 38px; line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.phead p { margin: 6px 0 0; font-size: 17px; font-weight: 550; color: var(--link); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--link); font-weight: 650; text-decoration: none; min-height: 32px; }

/* Surfaces */
.glass { background: var(--glass); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(18px) saturate(115%); -webkit-backdrop-filter: blur(18px) saturate(115%); position: relative; }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, var(--sheen), transparent 38%); }
.card { border-radius: 24px; padding: 22px; }
.card > * { position: relative; z-index: 1; }
.deep { border-radius: 24px; padding: 26px; background: var(--deep); color: #fff; position: relative; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.2); }
.deep::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 40%); pointer-events: none; }
.deep > * { position: relative; }
.h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.sub { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 22px; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.stat { border-radius: 16px; padding: 12px 14px; background: var(--row); }
.stat span { font-size: 12px; font-weight: 600; color: var(--muted); }
.stat b { display: block; font-size: 22px; font-weight: 750; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi { border-radius: 22px; padding: 18px; }
.kpi span { font-size: 13px; font-weight: 600; color: var(--muted); position: relative; z-index: 1; }
.kpi b { display: block; font-size: 28px; font-weight: 750; margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.flow { border-radius: 16px; padding: 12px 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.flow span { font-size: 12px; color: rgba(255,255,255,.75); font-weight: 600; }
.flow b { display: block; font-size: 20px; font-weight: 750; margin-top: 4px; font-variant-numeric: tabular-nums; }
.flow small { font-size: 11.5px; color: rgba(255,255,255,.6); }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 650 14.5px Inter, sans-serif; cursor: pointer; text-decoration: none; border: 1px solid var(--border); background: var(--btn); color: var(--btn-text); box-shadow: var(--shadow); transition: filter .16s ease-out; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.p { background: var(--primary); color: var(--primary-text); border-color: transparent; box-shadow: var(--primary-glow), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.18); }
.btn.x { background: var(--bad-bg); color: var(--bad); border-color: transparent; box-shadow: none; }
.btn.o { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); box-shadow: none; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn[disabled] { opacity: .48; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.c-ok { background: var(--ok-bg); color: var(--ok); } .c-bad { background: var(--bad-bg); color: var(--bad); }
.c-warn { background: var(--warn-bg); color: var(--warn); } .c-info { background: var(--info-bg); color: var(--info); }
.c-mute { background: var(--row); color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--btn); color: var(--btn-text); font: 650 13.5px Inter, sans-serif; cursor: pointer; box-shadow: var(--shadow); text-decoration: none; display: inline-flex; align-items: center; }
.tab.on { background: var(--primary); color: var(--primary-text); border-color: transparent; box-shadow: var(--primary-glow); }
[hidden] { display: none !important; }
label.f { display: block; font-size: 13px; font-weight: 650; }
label.f > .in, label.f > select, label.f > textarea { display: block; margin-top: 6px; }
label.f .req { color: var(--bad); margin-left: 2px; }
.in, select.in, textarea.in { width: 100%; min-height: 46px; border-radius: 14px; padding: 0 14px; border: 1px solid var(--border); background: var(--input); color: var(--text); font: 500 14.5px Inter, sans-serif; }
textarea.in { padding: 12px 14px; min-height: 110px; resize: vertical; }
.in.money { font-variant-numeric: tabular-nums; font-weight: 650; }
.in.empty { border-style: dashed; }
.drop { border: 2px dashed var(--border); border-radius: 22px; padding: 34px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; }
.drop.on { border-color: var(--link); background: var(--info-bg); }

/* Tables */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--row); white-space: nowrap; }
table.t td { padding: 12px; border-bottom: 1px solid var(--row); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--row); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state b { color: var(--text); font-size: 16px; }

/* Mail Trail */
.trail { display: flex; align-items: flex-start; overflow-x: auto; }
.trail .st { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 76px; text-align: center; }
.trail .st b { font-size: 12.5px; font-weight: 650; }
.trail .st span { font-size: 11.5px; color: var(--muted); }
.dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.dot.d { background: var(--done); color: #fff; }
.dot.n { background: var(--primary); color: var(--primary-text); box-shadow: var(--primary-glow); }
.dot.t { border: 2px dashed var(--border); color: var(--muted); }
.trail .ln { flex: 1; height: 2px; margin-top: 17px; min-width: 16px; background: var(--done); }
.trail .ln.t { background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px); }
.stages { display: flex; gap: 6px; overflow-x: auto; }
.stages a { flex: 1; min-width: 80px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; color: var(--text); }
.stages i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 17px; font-weight: 750; background: var(--done); color: #fff; box-shadow: 0 0 0 4px rgba(107,176,255,.15); }
.stages i.hot { background: var(--primary); color: var(--primary-text); box-shadow: var(--primary-glow); }
.stages span { font-size: 12.5px; font-weight: 600; color: var(--muted); }

.motto { border-radius: 999px; padding: 12px 24px; text-align: center; font-size: 15px; font-weight: 550; color: var(--muted); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 120; border-radius: 16px; padding: 14px 18px; font-weight: 650; max-width: 420px; }
.note { font-size: 13px; color: var(--muted); }
.line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--row); }
.line span { color: var(--muted); }
.feed { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--row); }
.tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.loading { color: var(--muted); padding: 30px; text-align: center; }

@media (max-width: 760px) { .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .split, .grid2 { grid-template-columns: 1fr; } .grid4, .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .side { position: fixed; transform: translateX(-100%); } .side.open { transform: none; } .main { padding: 16px; } .menu-btn { display: grid !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .btn:active { transform: none; } }

/* Team Tracker grid (spreadsheet look) */
.xl-wrap { overflow: auto; max-height: 70vh; }
table.xl { border-collapse: separate; border-spacing: 0; font-size: 12.5px; width: max-content; min-width: 100%; }
table.xl th, table.xl td { border-bottom: 1px solid var(--row); border-right: 1px solid var(--row); padding: 0; white-space: nowrap; }
table.xl thead th { position: sticky; top: 0; z-index: 3; background: var(--canvas); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 10px 8px; text-align: left; }
table.xl tfoot td { position: sticky; bottom: 0; background: var(--canvas); font-weight: 750; padding: 8px; font-variant-numeric: tabular-nums; }
table.xl .xl-n { position: sticky; left: 0; z-index: 2; background: var(--canvas); color: var(--muted); text-align: right; padding: 0 8px; min-width: 38px; }
table.xl thead .xl-n { z-index: 4; }
table.xl .xl-sticky { position: sticky; left: 38px; z-index: 2; background: var(--canvas); }
table.xl thead .xl-sticky { z-index: 4; }
table.xl tbody tr:hover td { background: var(--row); }
.xl-in { width: 100%; min-width: 110px; height: 34px; border: 0; background: transparent; color: var(--text); padding: 0 8px; font: 500 12.5px Inter, sans-serif; }
.xl-in.int, .xl-in.money { min-width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.k-text .xl-in { min-width: 150px; }
.xl-in:focus, .xl-pill:focus { outline: 2px solid var(--link); outline-offset: -2px; background: var(--input); }
.xl-in.saved, .xl-pill.saved { box-shadow: inset 0 0 0 2px var(--ok); }
.xl-pill { appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; margin: 4px 6px; padding: 4px 12px; font: 700 11.5px Inter, sans-serif; cursor: pointer; }
.xl-pill.v-yes { background: var(--ok-bg); color: var(--ok); } .xl-pill.v-no { background: var(--warn-bg); color: var(--warn); }
.xl-pill.v-other { background: var(--info-bg); color: var(--info); } .xl-pill.v-blank { background: transparent; color: var(--muted); border: 1px dashed var(--border); }

/* Goal bars: they fill when the page opens */
.gbar{height:14px;border-radius:99px;background:var(--border);overflow:hidden;box-shadow:inset 0 1px 3px rgba(0,0,0,.18)}
.gbar i{position:relative;display:block;height:100%;min-width:6px;border-radius:99px;overflow:hidden;box-shadow:0 0 10px rgba(0,0,0,.12);animation:gfill 1.1s cubic-bezier(.2,.8,.2,1) both}
.gbar i::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.45) 50%,transparent 70%);transform:translateX(-100%);animation:gshine 3.2s ease-in-out 1.2s infinite}
@keyframes gfill{from{width:0}}
@keyframes gshine{to{transform:translateX(100%)}}
.goal-card{transition:transform .18s ease,box-shadow .18s ease;box-shadow:0 10px 26px rgba(15,28,61,.12),inset 0 1px 0 rgba(255,255,255,.5)}
.goal-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(15,28,61,.18),inset 0 1px 0 rgba(255,255,255,.5)}
.goal-card .num{font-size:24px}
.live-dot{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:var(--ok);animation:lpulse 1.8s ease-out infinite}
@keyframes lpulse{0%{box-shadow:0 0 0 0 rgba(60,160,80,.6)}100%{box-shadow:0 0 0 8px rgba(60,160,80,0)}}
@media (prefers-reduced-motion:reduce){.gbar i,.gbar i::after,.live-dot{animation:none}.goal-card{transition:none}}

/* Bring it to life: colored stat boxes, packages, steps and the drop zone */
.grid4 > .kpi, .grid3 > .kpi { position: relative; overflow: hidden; border-top: 5px solid var(--kc, #2f80ed); }
.grid4 > .kpi:nth-child(1), .grid3 > .kpi:nth-child(1) { --kc: #27ae60; --kt: rgba(39,174,96,.14); }
.grid4 > .kpi:nth-child(2), .grid3 > .kpi:nth-child(2) { --kc: #2f80ed; --kt: rgba(47,128,237,.14); }
.grid4 > .kpi:nth-child(3), .grid3 > .kpi:nth-child(3) { --kc: #8e5cf0; --kt: rgba(142,92,240,.14); }
.grid4 > .kpi:nth-child(4) { --kc: #f2802e; --kt: rgba(242,128,46,.14); }
.grid4 > .kpi, .grid3 > .kpi { background-image: linear-gradient(160deg, var(--kt, transparent), transparent 70%); }
.fnum { background: linear-gradient(135deg, #2f80ed, #8e5cf0) !important; color: #fff !important; }
.fsec:nth-of-type(2) .fnum { background: linear-gradient(135deg, #8e5cf0, #e0529c) !important; }
.fsec:nth-of-type(3) .fnum { background: linear-gradient(135deg, #f2802e, #e0529c) !important; }
.drop { border-color: #2f80ed; background: linear-gradient(135deg, rgba(47,128,237,.1), rgba(142,92,240,.1)); }
.drop .i { color: #2f80ed; }
button.pkg { border: 2px solid var(--pc); border-top-width: 7px; background-image: linear-gradient(170deg, var(--pt), transparent 65%); opacity: 1 !important; outline: none !important; transition: transform .14s ease, box-shadow .14s ease; }
button.pkg:hover { transform: translateY(-2px); }
button.pkg[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--pc), 0 14px 30px var(--pt); }
button.pkg > b { color: var(--pc); }
button.pkg[data-pkg="tracked"] { --pc: #1f9d55; --pt: rgba(31,157,85,.18); }
button.pkg[data-pkg="standard"] { --pc: #e8710a; --pt: rgba(232,113,10,.18); }
button.pkg[data-pkg="ai"] { --pc: #d92d3a; --pt: rgba(217,45,58,.16); }
.whopays { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(47,128,237,.1), rgba(39,174,96,.1)); }
.whopays label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.breakdown { margin: 12px 0; padding: 14px; border-radius: 16px; border: 2px solid #2f80ed; background: rgba(47,128,237,.06); }
.breakdown tr.tot td { border-top: 2px solid var(--text); }
.pop-stats .stat:nth-child(1) b { color: #1f9d55; } .pop-stats .stat:nth-child(2) b { color: #2f80ed; } .pop-stats .stat:nth-child(3) b { color: #8e5cf0; } .pop-stats .stat:nth-child(4) b { color: #e8710a; }
.review-note { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.review-note.human { background: rgba(31,157,85,.14); }
.review-note.ai { background: rgba(217,45,58,.14); }
.gate-std { border-left: 6px solid #e8710a; } .gate-ai { border-left: 6px solid #d92d3a; }

/* Removing some letters is not the same as starting over */
.btn.fix { background: #e8710a; color: #fff; border-color: transparent; }
.btn.fix:hover { background: #cf6407; }
/* Save as PDF: just the page */
@media print { .side, .topbar, .no-print, .back { display: none !important; } .main { margin: 0 !important; padding: 0 !important; } .glass { box-shadow: none !important; background: #fff !important; backdrop-filter: none !important; break-inside: avoid; } body, .h2, .line, td, th { color: #000 !important; } }

.btn.clock-in { background: #1f9d55; color: #fff; border-color: transparent; }
.btn.clock-in:hover { background: #198247; }

/* Folding sidebar groups */
.group-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.group-btn i { font-style: normal; font-size: 15px; opacity: .8; padding-right: 8px; }
.group-btn:hover { opacity: .85; }
.nav-grp { display: flex; flex-direction: column; gap: 2px; }
.nav-grp[hidden] { display: none; }
/* Long lists */
.easy-bar { padding: 8px 8px 4px; max-width: 420px; }
.easy-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; }
table tr.click { cursor: pointer; }
table tr.click:hover td { background: var(--row); }
table tr[hidden] { display: none; }

/* Upgrade spotlight: the one card on the page the eye goes to first (membership, best value, savings).
   Bright gold in both themes so it never blends into the blue or the black. */
.promo, .glass.promo { position: relative; overflow: hidden; border-radius: 24px; color: #2A1300;
  background: linear-gradient(135deg,#FFF4BF 0%,#FFD84F 34%,#FFAF22 68%,#FF8A1F 100%);
  border: 0; outline: 0 !important;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.75), 0 0 0 3px #FFB21E, 0 18px 40px -12px rgba(255,138,0,.7), 0 0 34px rgba(255,190,40,.55);
  animation: promoGlow 2.8s ease-in-out infinite;
  --text:#2A1300; --muted:#5C3300; --row:rgba(255,255,255,.5); --border:rgba(122,58,0,.28); --input:rgba(255,255,255,.7);
  --ok:#0D6A1D; --ok-bg:rgba(255,255,255,.75); --link:#7A2E00; }
.promo::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: promoShine 4.5s ease-in-out infinite; }
.promo > * { position: relative; }
.promo .eyebrow { color: #8A3400; font-weight: 800; }
.promo .h2, .promo h2, .promo b { color: #2A1300; }
.promo .sub, .promo .note, .promo .up-p, .promo p, .promo .line span { color: #4A2900; }
.promo .up-big { color: #0D6A1D; }
.promo.promo .btn.gold, .promo.promo .btn.p { background: linear-gradient(180deg,#34343A,#121214 70%,#060607); color: #FFE27A; border-color: transparent;
  box-shadow: 0 8px 18px rgba(60,25,0,.45), inset 0 1px 0 rgba(255,255,255,.28); font-weight: 800; }
.promo.promo .btn.gold:hover, .promo.promo .btn.p:hover { filter: brightness(1.25); }
.promo .btn:not(.gold):not(.p) { background: rgba(255,255,255,.78); color: #2A1300; border-color: rgba(122,58,0,.25); box-shadow: none; }
.promo .badge-gold, .promo .promo-tag { background: #121214; color: #FFE27A; }
.promo-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.promo .chip.c-ok { background: rgba(255,255,255,.8); color: #0D6A1D; }
.promo .c-mute, .promo .c-info { background: rgba(255,255,255,.7); color: #4A2900; }
.promo .strike, .promo s { color: #7A4A12; }
@keyframes promoGlow { 0%, 100% { box-shadow: inset 0 0 0 2px rgba(255,255,255,.75), 0 0 0 3px #FFB21E, 0 18px 40px -12px rgba(255,138,0,.7), 0 0 26px rgba(255,190,40,.45); }
  50% { box-shadow: inset 0 0 0 2px rgba(255,255,255,.75), 0 0 0 3px #FFC23D, 0 18px 40px -12px rgba(255,138,0,.8), 0 0 52px rgba(255,190,40,.8); } }
@keyframes promoShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .promo, .promo::before { animation: none; } }

/* Team Tracker at a glance: green is money, red is not paid or missing docs, orange is draft, grey is cancelled. */
.xl-pill.v-yes { background: #1E9E46; color: #fff; }
.xl-pill.v-no { background: #E0313A; color: #fff; }
.xl-pill.v-draft { background: #FF8A1F; color: #fff; }
.xl-pill.v-cancel { background: #6B6F7A; color: #fff; text-decoration: line-through; }
.xl-pill.v-fix { background: #FFD23F; color: #3A2500; }
.xl-tone.v-yes { color: #1E9E46; font-weight: 800; } .xl-tone.v-no { color: #E0313A; font-weight: 800; }
.xl-tone.v-cancel { color: #8A8E99; text-decoration: line-through; } .xl-tone.v-draft { color: #E07000; font-weight: 800; }
.xl-st { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px; padding: 4px 11px; margin: 0 6px; font: 800 11.5px Inter, sans-serif; color: #fff; }
.xl-st.st-paid { background: #1E9E46; } .xl-st.st-no { background: #E0313A; } .xl-st.st-due { background: #9B0F18; }
.xl-st.st-draft { background: #FF8A1F; } .xl-st.st-cancel { background: #6B6F7A; } .xl-st.st-open { background: #2F7BE0; }
table.xl tr.st-paid > td.xl-n { box-shadow: inset 4px 0 0 #1E9E46; } table.xl tr.st-no > td.xl-n { box-shadow: inset 4px 0 0 #E0313A; }
table.xl tr.st-due > td.xl-n { box-shadow: inset 4px 0 0 #9B0F18; } table.xl tr.st-draft > td.xl-n { box-shadow: inset 4px 0 0 #FF8A1F; }
table.xl tr.st-cancel > td.xl-n { box-shadow: inset 4px 0 0 #6B6F7A; } table.xl tr.st-open > td.xl-n { box-shadow: inset 4px 0 0 #2F7BE0; }
table.xl tr.st-no > td { background-image: linear-gradient(rgba(224,49,58,.07), rgba(224,49,58,.07)); }
table.xl tr.st-draft > td { background-image: linear-gradient(rgba(255,138,31,.07), rgba(255,138,31,.07)); }
table.xl tr.st-cancel > td .xl-in { color: #8A8E99; }
.xl-in.xl-sw { font-weight: 800; color: var(--link); }
.xl-in.guess { font-style: italic; text-decoration: underline dotted; text-underline-offset: 3px; }
.xl-in.amt-paid { color: #1E9E46; font-weight: 800; } .xl-in.amt-unpaid { color: #E0313A; font-weight: 800; }
.xl-in.xl-person, .xl-name { border-radius: 999px; font-weight: 750; }
.xl-in.xl-person[style] { background: hsl(var(--h) 80% 90%); color: hsl(var(--h) 75% 26%); height: 28px; margin: 3px 4px; width: calc(100% - 8px); }
.xl-name { display: inline-flex; padding: 3px 10px; font-size: 12.5px; text-decoration: none; background: hsl(var(--h) 80% 90%); color: hsl(var(--h) 75% 26%); }
[data-theme="dark"] .xl-in.xl-person[style], [data-theme="dark"] .xl-name { background: hsl(var(--h) 55% 30% / .7); color: hsl(var(--h) 90% 84%); }
.xl-legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.xl-legend .xl-st { margin: 0; }
.stat.s-ok, .stat.s-bad, .stat.s-draft, .stat.s-cancel { border-top: 4px solid; }
.stat.s-ok { border-top-color: #1E9E46; } .stat.s-ok b { color: #1E9E46; }
.stat.s-bad { border-top-color: #E0313A; } .stat.s-bad b { color: #E0313A; }
.stat.s-draft { border-top-color: #FF8A1F; } .stat.s-draft b { color: #FF8A1F; }
.stat.s-cancel { border-top-color: #6B6F7A; } .stat.s-cancel b { color: #8A8E99; }
.xl-in.xl-sw::placeholder { color: #E0313A; font-style: italic; font-weight: 600; opacity: .8; }

.xl-up { display: inline-flex; margin: 4px 8px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg,#FFE27A,#FFAF22); color: #2A1300; font: 800 11.5px Inter, sans-serif; white-space: nowrap; }
a.xl-app { font: 800 11px Inter, sans-serif; color: var(--link); text-decoration: none; white-space: nowrap; }
table.xl .xl-n:has(a.xl-app) { min-width: 74px; }

/* Running clock beside Clock out: this shift to the second, and today's total. */
.clock-timer { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(31,157,85,.14); color: #157a40; font: 700 13px Inter, sans-serif; white-space: nowrap; font-variant-numeric: tabular-nums; }
.clock-timer b { font-size: 15px; font-weight: 800; }
.clock-timer span { font-size: 11.5px; font-weight: 600; opacity: .8; }
.clock-timer i { width: 9px; height: 9px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 0 rgba(31,157,85,.6); animation: clockPulse 1.6s infinite; }
[data-theme="dark"] .clock-timer { background: rgba(31,157,85,.22); color: #9BE7B4; }
@keyframes clockPulse { 0% { box-shadow: 0 0 0 0 rgba(31,157,85,.6); } 70% { box-shadow: 0 0 0 8px rgba(31,157,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); } }
@media (max-width: 640px) { .clock-timer span { display: none; } }
@media (prefers-reduced-motion: reduce) { .clock-timer i { animation: none; } }

/* Live pop-ups: new orders to accept and forms just signed. */
.live-box { position: fixed; right: 20px; bottom: 96px; z-index: 125; padding: 6px; display: flex; flex-direction: column; gap: 12px; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; }
.live-card { border-radius: 18px; padding: 14px 16px; background: #ffffff; color: var(--text); box-shadow: 0 18px 40px -10px rgba(0,0,0,.45), 0 0 0 2px #1f9d55; display: flex; flex-direction: column; gap: 8px; }
.live-card.live-form { box-shadow: 0 18px 40px -10px rgba(0,0,0,.45), 0 0 0 2px #7C4DFF; }
.live-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.live-top b { flex: 1; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #1f9d55; animation: clockPulse 1.4s infinite; }
.live-dot.form { background: #7C4DFF; }
.live-x { border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; min-width: 32px; min-height: 32px; border-radius: 8px; }
.live-x:hover { background: var(--row); }
.live-body { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.live-body span { color: var(--muted); }
.live-who { font-size: 12px; font-weight: 650; color: #1f9d55 !important; }
.live-act { display: flex; gap: 8px; flex-wrap: wrap; }
.live-act .btn { min-height: 40px; }
.live-msg { margin: 0; font-size: 12.5px; font-weight: 650; color: var(--bad); }
.live-msg:empty { display: none; }
@keyframes liveIn { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .live-card, .live-dot { animation: none; } }
[data-theme="dark"] .live-card { background: #26272B; }

/* Account menu: Settings and Sign out under your name. */
.acct-wrap { position: relative; }
.acct { cursor: pointer; }
.acct-caret { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 130; min-width: 190px; border-radius: 16px; padding: 6px; display: flex; flex-direction: column; background: var(--glass); box-shadow: var(--shadow); }
.acct-menu a, .acct-menu button { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: transparent; color: var(--text); font: 650 14.5px Inter, sans-serif; text-decoration: none; text-align: left; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--row); }
.acct-menu .acct-out { color: var(--bad); }

/* Customer-facing brand: Mail My Disputes (navy #0A2D7A, royal blue #1565D8, gold #D4A017), powered by Total Post N Print. Set by /js/brand.js. */
[data-brand="mmd"][data-theme="light"] {
  --canvas:#EEF3FB; --light1:rgba(21,101,216,.14); --light2:rgba(212,160,23,.14);
  --text:#0A1E4A; --muted:#45577A; --btn-text:#0A2D7A; --link:#1565D8; --done:#1565D8;
  --primary:linear-gradient(180deg,#F4D774,#D4A017 60%,#A87C0C); --primary-text:#1F1600; --primary-glow:0 0 18px rgba(212,160,23,.5);
  --edge:#D4A017; --edge-glow:rgba(212,160,23,.85);
  --side:linear-gradient(180deg,#1565D8 0%,#0A2D7A 55%,#061C4E 100%); --deep:linear-gradient(135deg,#1565D8 0%,#0A2D7A 55%,#061C4E 100%);
}
[data-brand="mmd"][data-theme="dark"] {
  --light1:rgba(21,101,216,.18); --light2:rgba(212,160,23,.12); --link:#7DB3FF;
  --primary:linear-gradient(180deg,#F4D774,#D4A017 60%,#A87C0C); --primary-text:#1F1600; --primary-glow:0 0 18px rgba(212,160,23,.45);
  --edge:#D4A017; --edge-glow:rgba(212,160,23,.7);
  --side:linear-gradient(180deg,#0E2A66 0%,#0A1A40 60%,#070F24 100%); --deep:linear-gradient(135deg,#0A2D7A 0%,#0B1530 55%,#0F1626 100%);
}
.brand-chip { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: 7px 10px; box-shadow: 0 4px 14px rgba(0,0,0,.18); max-width: 100%; }
.brand-chip img { display: block; height: 42px; width: auto; max-width: 100%; }
.brand-chip.big { padding: 10px 16px; border-radius: 16px; }
.brand-chip.big img { height: 66px; }
a.logo .brand-chip img { height: 34px; }
.side .powered { margin-top: auto; padding: 6px 16px 0 6px; font-size: 11px; line-height: 1.4; color: var(--side-muted); }
.side .powered b { color: var(--side-text); font-weight: 700; }
.powered { font-size: 12px; color: var(--muted); }
.powered b { font-weight: 700; }
.foot .powered { display: block; margin-bottom: 4px; }
[data-brand="mmd"] .si-brand small { font-size: 14px; font-weight: 700; font-style: italic; letter-spacing: .01em; color: var(--btn-text); }
