:root {
  --navy-950: #0a1033; --navy-900: #111a4d; --navy-800: #1b2566;
  --indigo-600: #4338ca; --indigo-500: #5b54e8; --indigo-50: #eceafd;
  --teal-500: #14b8a6; --teal-400: #2dd4bf; --teal-50: #e6faf7;
  --amber-600: #d97706; --amber-50: #fff7e6; --red-600: #dc2626; --red-50: #fdecec;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #f6f8fc;
  --radius: 12px; --shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 18px rgba(15,23,42,.05);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--indigo-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 1.1rem; margin: 0 0 14px; letter-spacing: -.01em; }
h3 { font-size: .95rem; margin: 0 0 8px; }
p { margin: 0 0 10px; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Layout */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy-950); color: #c7cdea; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.25rem; padding: 4px 10px 20px; letter-spacing: -.03em; }
.brand svg { width: 30px; height: 30px; }
.brand:hover { text-decoration: none; }
.nav a { display: flex; align-items: center; gap: 10px; color: #c7cdea; padding: 9px 12px; border-radius: 9px; font-weight: 600; }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav a.active { background: rgba(45,212,191,.14); color: #fff; }
.nav a .count { margin-left: auto; background: var(--red-600); color: #fff; font-size: .72rem; padding: 1px 7px; border-radius: 999px; }
.sidebar .spacer { flex: 1; }
.me { border-top: 1px solid rgba(255,255,255,.1); padding: 14px 10px 0; font-size: .85rem; }
.me strong { color: #fff; display: block; }
.me form { margin-top: 8px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal-400); font: inherit; cursor: pointer; }
.main { padding: 28px 36px 60px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.mobile-top { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; position: fixed; inset: 0; z-index: 40; height: auto; }
  .shell.nav-open .sidebar { display: flex; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; background: var(--navy-950); padding: 12px 16px; position: sticky; top: 0; z-index: 30; }
  .mobile-top .brand { padding: 0; }
  .mobile-top button { background: none; border: 0; color: #fff; cursor: pointer; }
  .main { padding: 20px 16px 48px; }
}

/* Cards & grid */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.grid > .card + .card { margin-top: 0; }
.grid { display: grid; gap: 18px; }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-main { grid-template-columns: 1.6fr 1fr; align-items: start; }
@media (max-width: 1100px) { .g-4 { grid-template-columns: repeat(2, 1fr); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .g-4, .g-2 { grid-template-columns: 1fr; } }
.kpi .k { color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.kpi .v { font-size: 1.7rem; font-weight: 800; margin-top: 4px; }
.kpi .v.red { color: var(--red-600); } .kpi .v.amber { color: var(--amber-600); } .kpi .v.teal { color: #0f766e; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-head h2 { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 9px; border: 1.5px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn-primary { background: var(--teal-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--teal-400); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-800); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-danger { background: #fff; border-color: #f5c2c2; color: var(--red-600); }
.btn-sm { padding: 5px 10px; font-size: .82rem; border-radius: 7px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t td.strong { font-weight: 700; }
.t tr.clickable:hover td { background: #fafbff; }
.num { text-align: right; white-space: nowrap; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); }

/* Badges */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.badge-red { background: var(--red-50); color: #b91c1c; }
.badge-amber { background: var(--amber-50); color: #b45309; }
.badge-green { background: var(--teal-50); color: #0f766e; }
.badge-blue { background: var(--indigo-50); color: var(--indigo-600); }
.badge-gray { background: #f1f5f9; color: var(--muted); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.input, select, textarea { width: 100%; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 9px; font: inherit; background: #fff; color: var(--ink); }
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo-500); box-shadow: 0 0 0 3px rgba(91,84,232,.12); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--teal-500); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters .input { max-width: 300px; }
.filters select { width: auto; }
.section-title { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 8px 0 -4px; grid-column: 1 / -1; }

/* Flash */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.flash-success { background: var(--teal-50); color: #0f766e; border: 1px solid #a7eadf; }
.flash-error { background: var(--red-50); color: #991b1b; border: 1px solid #f5c2c2; }
.flash-warning { background: var(--amber-50); color: #92400e; border: 1px solid #fbd99a; }

/* Bits */
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 110px; }
.bar { background: linear-gradient(180deg, var(--indigo-500), var(--navy-800)); border-radius: 6px 6px 2px 2px; min-height: 4px; position: relative; }
.bar.hot { background: linear-gradient(180deg, #f59e0b, var(--amber-600)); }
.bar span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: .75rem; font-weight: 700; color: var(--ink-2); }
.bar-labels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 6px; text-align: center; color: var(--muted); font-size: .78rem; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; }
.deadline { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 12px; margin-bottom: 18px; }
.deadline .big { font-size: 2rem; font-weight: 800; line-height: 1; }
.deadline.red { background: var(--red-50); color: #991b1b; }
.deadline.amber { background: var(--amber-50); color: #92400e; }
.deadline.green { background: var(--teal-50); color: #0f766e; }
.deadline.gray { background: #f1f5f9; color: var(--muted); }
.deadline p { margin: 0; color: inherit; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed li { display: grid; gap: 2px; font-size: .88rem; border-left: 2px solid var(--line); padding-left: 10px; }
.feed time { color: var(--muted); font-size: .78rem; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.file + .file { margin-top: 8px; }
.file a { font-weight: 600; }
.issue { color: #991b1b; font-size: .85rem; }
.pre { white-space: pre-wrap; font-family: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 0; }

/* Auth & public pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(800px 400px at 80% -10%, rgba(20,184,166,.18), transparent 60%), radial-gradient(700px 400px at -10% 10%, rgba(91,84,232,.12), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth .brand { color: var(--navy-900); justify-content: center; padding-bottom: 18px; }
.auth form > div { margin-bottom: 14px; }
.public { max-width: 760px; margin: 0 auto; padding: 32px 16px 60px; }
.public .brand { color: var(--navy-900); padding: 0 0 20px; }
.decision { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 600px) { .decision { grid-template-columns: 1fr; } .dl { grid-template-columns: 1fr; gap: 2px 0; } .dl dd { margin-bottom: 8px; } }

/* Reading terms from files */
.dropzone { border: 2px dashed #c7cdea; border-radius: 12px; padding: 18px; margin-bottom: 18px; background: #fafbff; display: grid; gap: 12px; }
.dropzone label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--ink-2); }
.dropzone svg { color: var(--indigo-500); flex: none; }
.input.filled, select.filled { border-color: var(--teal-500); background: #f3fdfb; }
.ai-hint { margin-top: 6px; font-size: .8rem; color: #0f766e; }
.ai-hint.warn { color: #92400e; }
.ai-hint.ok { color: var(--muted); }
.ai-hint .btn { margin-left: 6px; padding: 2px 8px; font-size: .75rem; }
.ai-hint details { display: inline; margin-left: 6px; }
.ai-hint summary { display: inline; cursor: pointer; color: var(--indigo-600); text-decoration: underline; }
.ai-hint q { display: block; margin-top: 6px; padding: 8px 10px; background: var(--bg); border-left: 3px solid var(--teal-400); color: var(--ink-2); font-style: italic; border-radius: 4px; }

/* Spend & budgets */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cat-grid > .card + .card { margin-top: 0; }
.cat-card { color: var(--ink); display: block; transition: border-color .15s ease, box-shadow .15s ease; }
.cat-card:hover { text-decoration: none; border-color: #c7cdea; }
.cat-card.selected { border: 2px solid var(--teal-500); }
.cat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cat-head h3 { margin: 0; font-size: 1rem; }
.cat-big { font-size: 1.4rem; font-weight: 800; margin: 10px 0 8px; }
.meter { height: 10px; background: #eef1f7; border-radius: 99px; overflow: hidden; display: flex; margin-bottom: 12px; }
.meter-spent { background: linear-gradient(90deg, var(--indigo-500), var(--navy-800)); }
.meter-pending { background: repeating-linear-gradient(45deg, #f59e0b, #f59e0b 4px, #fbbf24 4px, #fbbf24 8px); }
.mini-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .85rem; }
.mini-dl dt { color: var(--muted); }
.mini-dl dd { margin: 0; text-align: right; }

/* Quotes, approvals, comparison */
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.chain li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.chain li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.chain .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: #f1f5f9; color: var(--muted); border: 2px solid var(--line); }
.chain .approved .dot { background: var(--teal-50); color: #0f766e; border-color: var(--teal-500); }
.chain .pending .dot { background: var(--amber-50); color: #b45309; border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.15); }
.chain .rejected .dot { background: var(--red-50); color: #b91c1c; border-color: var(--red-600); }
.chain .who { font-weight: 700; }
.chain .meta { font-size: .82rem; color: var(--muted); }
.chain .note { font-size: .85rem; margin-top: 4px; font-style: italic; color: var(--ink-2); }
.cmp th, .cmp td { vertical-align: top; }
.cmp td.cur, .cmp td.new { width: 26%; }
.cmp tr.worse td.new { background: #fff5f5; }
.cmp tr.better td.new { background: #f3fdfb; }
.chg { display: inline-block; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.chg-worse { background: var(--red-50); color: #b91c1c; }
.chg-better { background: var(--teal-50); color: #0f766e; }
.chg-same { background: #f1f5f9; color: var(--muted); }
.chg-differs, .chg-unclear, .chg-neutral { background: var(--indigo-50); color: var(--indigo-600); }
.why { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.area-tag { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.area-tag.security, .area-tag.data_protection { color: #b91c1c; }
.verdict { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; margin-bottom: 16px; }
.verdict.worse { background: var(--red-50); color: #991b1b; }
.verdict.mixed { background: var(--amber-50); color: #92400e; }
.verdict.good { background: var(--teal-50); color: #0f766e; }
.verdict p { margin: 0; color: inherit; }
.verdict .big { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.ai-box { border: 1.5px solid #c7cdea; background: linear-gradient(180deg, #fafbff, #fff); }
.ai-badge { display: inline-flex; gap: 6px; align-items: center; font-size: .75rem; font-weight: 800; color: var(--indigo-600); background: var(--indigo-50); padding: 3px 10px; border-radius: 99px; }
.rec { font-size: 1.05rem; font-weight: 800; text-transform: capitalize; }
.rec-approve { color: #0f766e; } .rec-negotiate { color: #b45309; } .rec-reject { color: #b91c1c; } .rec-needs_review { color: var(--indigo-600); }
.ev summary { cursor: pointer; font-size: .78rem; color: var(--indigo-600); }
.ev q { display: block; margin-top: 4px; font-size: .78rem; font-style: italic; color: var(--ink-2); background: var(--bg); padding: 6px 8px; border-radius: 6px; }
.budget-impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.budget-impact div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.budget-impact .k { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.budget-impact .v { font-weight: 800; font-size: 1.05rem; }
@media (max-width: 600px) { .budget-impact { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .aside-first { order: -1; } }

/* ===================== Avatars & approval hierarchy ===================== */
.av { --s: 36px; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s);
      border-radius: 50%; background: var(--av-bg, var(--indigo-500)); color: #fff; font-weight: 800; font-size: calc(var(--s) * .38);
      box-shadow: 0 0 0 2px #fff; letter-spacing: -.02em; }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av-xs { --s: 22px; } .av-sm { --s: 32px; } .av-md { --s: 40px; } .av-lg { --s: 58px; } .av-xl { --s: 84px; }
.av.st-approved { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--teal-500); }
.av.st-rejected { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--red-600); }
.av.st-pending  { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px #f59e0b; animation: av-pulse 1.8s ease-out infinite; }
.av.st-waiting  { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #cbd5e1; filter: saturate(.55); opacity: .85; }
.av.st-skipped  { filter: grayscale(1); opacity: .45; }
@keyframes av-pulse { 0% { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px #f59e0b, 0 0 0 4.5px rgba(245,158,11,.45); }
                      70% { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px #f59e0b, 0 0 0 14px rgba(245,158,11,0); }
                      100% { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px #f59e0b, 0 0 0 14px rgba(245,158,11,0); } }
.av-badge { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
            font-size: 10px; font-style: normal; font-weight: 900; border: 2px solid #fff; }
.av-lg .av-badge { width: 22px; height: 22px; font-size: 12px; }
.av-badge.ok { background: var(--teal-500); color: #fff; } .av-badge.no { background: var(--red-600); color: #fff; } .av-badge.wait { background: #fff7e6; }
.av-stack { display: inline-flex; align-items: center; }
.av-stack .av + .av { margin-left: -8px; }
.av-more { background: #e2e8f0; color: var(--ink-2); font-size: 11px; }

.chainv { margin: 4px 0 6px; }
.chainv-progress { height: 6px; border-radius: 99px; background: #eef1f7; overflow: hidden; margin-bottom: 18px; }
.chainv-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-500), var(--indigo-500)); border-radius: 99px; transition: width .6s ease; }
.chainv-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.chainv-step { position: relative; flex: 1 1 120px; min-width: 110px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 6px 10px; }
.chainv-step:not(:last-child)::after { content: ""; position: absolute; top: 33px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 3px;
       background: repeating-linear-gradient(90deg, #cbd5e1 0 6px, transparent 6px 11px); border-radius: 2px; }
.chainv-step.s-approved:not(:last-child)::after { background: var(--teal-500); }
.chainv.compact .chainv-step:not(:last-child)::after { top: 18px; left: calc(50% + 24px); right: calc(-50% + 24px); }
.chainv-who { font-weight: 800; margin-top: 10px; font-size: .92rem; }
.chainv-who .you { font-size: .7rem; font-weight: 700; color: #b45309; background: var(--amber-50); padding: 1px 6px; border-radius: 99px; }
.chainv-role { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.chainv-state { font-size: .8rem; color: var(--ink-2); margin-top: 4px; }
.s-pending .chainv-state { color: #b45309; font-weight: 700; }
.s-approved .chainv-state { color: #0f766e; }
.s-rejected .chainv-state { color: #b91c1c; font-weight: 700; }
.chainv-note { font-size: .78rem; font-style: italic; color: var(--ink-2); background: var(--bg); border-radius: 8px; padding: 6px 8px; margin-top: 6px; max-width: 200px; }
.chainv.compact .chainv-who { margin-top: 6px; font-size: .82rem; }
.btn-nudge { background: #fff7e6; border-color: #fbd99a; color: #92400e; margin-top: 8px; list-style: none; }
.btn-nudge::-webkit-details-marker { display: none; }
.btn-nudge:hover { background: #ffefcc; }
.nudge { position: relative; }
.nudge[open] .btn-nudge { background: #ffefcc; }
.nudge-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: 240px; background: #fff;
             border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15,23,42,.16); padding: 10px; display: grid; gap: 8px; text-align: left; }
.nudge-pop textarea { min-height: 64px; font-size: .85rem; }

/* Approvals hub */
.hub-kpis .kpi .v { display: flex; align-items: center; gap: 8px; }
.tier { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.tier:last-child { border-bottom: 0; }
.tier-amt { font-weight: 800; }
.tier-amt small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.tier-chain { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tier-chain .arrow { color: #94a3b8; font-weight: 900; }
.tier-person { display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px 4px 4px; }
.tier-person b { display: block; font-size: .85rem; line-height: 1.1; }
.tier-person small { color: var(--muted); font-size: .72rem; }
.who-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.who-card + .who-card { margin-top: 10px; }
.who-card .meta { font-size: .8rem; color: var(--muted); }
.qcard { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.qcard + .qcard { margin-top: 14px; }
.qcard-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.qcard-head a { font-weight: 800; font-size: 1.02rem; }
.waiting-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--amber-50); color: #92400e; font-weight: 700; font-size: .78rem; padding: 3px 10px 3px 3px; border-radius: 99px; }
.empty-fun { text-align: center; padding: 26px 10px; }
.empty-fun .big { font-size: 2.4rem; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.history li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.history .h-text { font-size: .9rem; }
.history .h-meta { font-size: .78rem; color: var(--muted); }
.history .h-note { font-size: .82rem; font-style: italic; color: var(--ink-2); margin-top: 2px; }
.last-appr { display: flex; align-items: center; gap: 12px; background: var(--teal-50); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.last-appr p { margin: 0; color: #0f766e; }

/* Notifications */
.bell { position: relative; }
.bell .count { position: static; }
.notif { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: #fafbff; }
.notif.unread .n-text { font-weight: 700; }
.notif .n-time { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.notif-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; background: var(--bg); }

/* Profile */
.profile-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }

/* Confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: confetti-fall linear forwards; }
@keyframes confetti-fall { to { transform: translateY(105vh) rotate(720deg); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .av.st-pending { animation: none; } .confetti { display: none; } }
@media (max-width: 700px) { .tier { grid-template-columns: 1fr; gap: 8px; } .chainv-step { flex-basis: 45%; } .chainv-step:not(:last-child)::after { display: none; } }

/* ===================== Vendor ratings ===================== */
.stars { position: relative; display: inline-block; line-height: 1; letter-spacing: 2px; font-size: 1.1rem; white-space: nowrap; }
.stars-sm { font-size: .9rem; letter-spacing: 1px; } .stars-lg { font-size: 1.6rem; }
.stars-bg { color: #e2e8f0; }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; color: #f59e0b; }
.star-input { border: 0; padding: 0; margin: 0; }
.star-input legend { font-weight: 600; font-size: .9rem; margin-bottom: 4px; padding: 0; }
.star-row { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: #e2e8f0; font-size: 2rem; line-height: 1; margin: 0; transition: transform .12s ease, color .12s ease; }
.star-input-sm label { font-size: 1.35rem; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f59e0b; }
.star-input label:hover { transform: scale(1.18) rotate(-6deg); }
.star-input input:focus-visible + label { outline: 3px solid var(--teal-400); outline-offset: 2px; border-radius: 4px; }
.rbadge { border-radius: 16px; padding: 18px; text-align: center; border: 1px solid var(--line); background: #fff; }
.rbadge-int { background: linear-gradient(180deg, #f5f3ff, #fff); border-color: #ddd6fe; }
.rbadge-pub { background: linear-gradient(180deg, #ecfdf5, #fff); border-color: #a7f3d0; }
.rbadge-label { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rbadge-num { font-size: 2.6rem; font-weight: 800; line-height: 1.1; margin: 4px 0 2px; }
.rbadge-count { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.hist { display: grid; gap: 6px; }
.hist-row { display: grid; grid-template-columns: 34px 1fr 28px; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); }
.hist-bar { height: 8px; background: #eef1f7; border-radius: 99px; overflow: hidden; }
.hist-bar span { display: block; height: 100%; background: #f59e0b; border-radius: 99px; }
.aspect { display: grid; grid-template-columns: 120px 1fr 32px; gap: 10px; align-items: center; font-size: .85rem; }
.aspect + .aspect { margin-top: 8px; }
.aspect .hist-bar span { background: linear-gradient(90deg, var(--teal-500), var(--indigo-500)); }
.review { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.review + .review { margin-top: 12px; }
.review-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.review-who { display: flex; gap: 10px; align-items: center; }
.review-who small { display: block; color: var(--muted); font-size: .78rem; }
.review h4 { margin: 10px 0 4px; font-size: 1rem; }
.review p { margin: 6px 0 0; white-space: pre-wrap; }
.review-aspects { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: .78rem; color: var(--muted); }
.vis-pill { font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 99px; }
.vis-private { background: var(--indigo-50); color: var(--indigo-600); }
.vis-public { background: var(--teal-50); color: #0f766e; }
.verified { font-size: .72rem; font-weight: 800; color: #0f766e; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--teal-500); text-decoration: none; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.vis-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vis-choice label { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 400; margin: 0; }
.vis-choice input { margin-right: 6px; accent-color: var(--teal-500); }
.vis-choice label:has(input:checked) { border-color: var(--teal-500); background: #f3fdfb; }
.vis-choice b { display: block; }
.vrow { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 14px; align-items: center; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.vrow:last-child { border-bottom: 0; }
.vrow .vname { font-weight: 800; font-size: 1rem; }
.vrow .vmeta { font-size: .8rem; color: var(--muted); }
.vrow .vscore { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.vrow .vscore b { font-size: 1.05rem; }
.vrow .vscore small { color: var(--muted); }
@media (max-width: 760px) { .vrow { grid-template-columns: 1fr 1fr; } .vrow .vname-cell { grid-column: 1 / -1; } }
.renew-callout { display: flex; gap: 12px; align-items: center; background: var(--amber-50); border: 1px solid #fbd99a; color: #92400e; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.renew-callout p { margin: 0; color: inherit; }
/* public pages */
.pub-wrap { max-width: 980px; margin: 0 auto; padding: 0 18px 60px; }
.pub-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.pub-top .brand { color: var(--navy-900); padding: 0; }
.pub-hero { text-align: center; padding: 30px 0 26px; }
.pub-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pub-search { display: flex; gap: 8px; max-width: 520px; margin: 18px auto 0; }
.pub-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: inherit; }
.pub-card + .pub-card { margin-top: 10px; }
.pub-card:hover { border-color: #c7cdea; text-decoration: none; box-shadow: var(--shadow); }
.vlogo { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: #fff; }
.pub-quote { font-size: .85rem; color: var(--ink-2); font-style: italic; margin-top: 4px; }

/* ===================== GBTech.ai expert review ===================== */
.expert-card { border: 1.5px solid #c7f0e8; background: linear-gradient(160deg, #f0fdfa 0%, #fff 55%); }
.expert-card.urgent { border-color: #fbd99a; background: linear-gradient(160deg, #fff7e6 0%, #fff 55%); box-shadow: 0 10px 30px rgba(245,158,11,.12); }
.expert-head { display: flex; gap: 12px; align-items: center; }
.expert-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: #fff; flex: none;
               background: linear-gradient(135deg, #14532d, #16a34a); letter-spacing: -.04em; }
.ex-pill { display: inline-block; font-size: .74rem; font-weight: 800; color: #92400e; background: #fff; border: 1px solid #fbd99a; border-radius: 99px; padding: 2px 10px; }
.ex-form summary { list-style: none; }
.ex-form summary::-webkit-details-marker { display: none; }
.ex-form[open] summary { display: none; }
.ex-goals { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.ex-goals legend { font-weight: 600; font-size: .9rem; margin-bottom: 4px; padding: 0; }
.ex-goals label { display: flex; gap: 8px; align-items: center; font-weight: 400; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 10px; margin: 0; cursor: pointer; background: #fff; }
.ex-goals label:has(input:checked) { border-color: var(--teal-500); background: #f3fdfb; }
.ex-goals input { accent-color: var(--teal-500); }
.ex-track { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; }
.ex-track li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; position: relative; padding-bottom: 12px; font-size: .9rem; color: var(--muted); }
.ex-track li:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.ex-track li.done::before { background: var(--teal-500); }
.ex-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; border: 2px solid var(--line); font-size: .8rem; font-weight: 800; }
.ex-track li.done { color: #0f766e; } .ex-track li.done .ex-dot { background: var(--teal-50); border-color: var(--teal-500); }
.ex-track li.now { color: var(--ink); font-weight: 800; } .ex-track li.now .ex-dot { background: #fff7e6; border-color: #f59e0b; animation: av-pulse 1.8s ease-out infinite; }
.ex-note { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .88rem; }
.ex-savings { margin-top: 10px; background: var(--teal-50); color: #0f766e; border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.better-deal-link { font-size: .78rem; font-weight: 700; color: #15803d; white-space: nowrap; }
