/* Three bright gold palettes, shared by all portal views. */
:root{--bg:#fbfaf5;--ink:#101a30;--muted:#586073;--line:#e5dcc4;--teal:#80601c;--navy:#080f21;--gold:#cfaa4e;--gold-light:#f0dca0;--wash:#f6f0df;--glow:#eee0b6;--secondary:#243149;--chart-line:#857039;--shadow:#080f2112;--side-top:#0d172c;--side-bottom:#050a16;--side-angle:155deg;--surface:#ffffff;--surface-end:#fffdf6;--gold-angle:120deg}
body{color:var(--ink);background:radial-gradient(ellipse at 90% 0%,var(--glow),transparent 48%),var(--bg);background-attachment:fixed}
aside{background:linear-gradient(155deg,#fff 10%,var(--wash));color:var(--ink);border-right:1px solid var(--line)}
.brand{color:var(--teal)}.brand small,.company small,.sidefoot{color:var(--muted)}.company{background:#ffffffb8;border-color:var(--line)}
#company-select{background:#fff;color:var(--ink);border-color:var(--line)}#company-select option{color:var(--ink)}
nav button{color:var(--ink)}nav button:hover{background:var(--wash)}nav button.active{background:linear-gradient(120deg,var(--gold-light),var(--gold));color:#372a12;box-shadow:0 5px 18px #b8903524;font-weight:700}
main>header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;background:#ffffffdb;backdrop-filter:blur(14px)}header .user{justify-self:end}.crumb{min-width:0}
.theme-switch{display:flex;justify-content:center;align-items:center;gap:9px;padding:5px 9px;border:1px solid var(--line);border-radius:40px;background:#ffffffd9;box-shadow:0 3px 16px var(--shadow)}
.theme-switch button{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid #d5c39a;background:#fff;color:#725622;font-size:15px;font-weight:700;padding:0;transition:background .15s,box-shadow .15s}
.theme-switch button:nth-child(2){background:#edf6ff}.theme-switch button:nth-child(3){background:#f3edff}.theme-switch button[aria-pressed="true"]{background:linear-gradient(140deg,#f7e5b7,#c59a42);border-color:#ad822d;color:#36280f;box-shadow:0 0 0 3px #cfaa4d24}
.theme-switch button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}.theme-switch button:hover{box-shadow:0 0 0 3px #cfaa4d24}
.card,.panel{background:linear-gradient(130deg,#fff,#ffffffeb);border-color:var(--line);box-shadow:0 7px 28px var(--shadow)}.card{border-top:3px solid var(--gold-light)}.card.accent{border-top-color:var(--gold);background:linear-gradient(125deg,#fff,var(--wash))}.selected-metric{border-color:var(--gold);background:linear-gradient(120deg,#fff8e6,var(--wash));box-shadow:0 0 0 1px var(--gold)}
.label,.mini,.note,.chartnote,.legend,.row small,footer,.schedule-line>span{color:var(--muted)}.amount,h1,h2,.num{color:var(--ink)}.accent .amount,.eyebrow,.textbtn{color:var(--teal)}
.secondary,select,input{color:var(--ink)}.primary{background:linear-gradient(110deg,#a67a26,#8b641e);color:white}.pill,.total{background:#f7ecd2;color:#765719}.tax-schedule{border-top-color:var(--gold)}
.tax-comment,.comment-draft,.paytotals>div,.detail-note{background:var(--wash);color:var(--ink)}.tax-comment{border-left-color:var(--gold)}.tax-comment p,.comment-draft p,.tax-comment strong{color:var(--ink)}
th{background:var(--wash);color:var(--muted)}.row{border-bottom-color:var(--line)}.rule{stroke:var(--line)}.axis{fill:var(--muted)}
.chart-scroll svg rect[fill="#b6955f"]{fill:var(--gold)}.chart-scroll svg rect[fill="#ded0b6"],.chart-scroll svg rect[fill="#c6b38c"]{fill:var(--secondary)}
.chart-scroll svg [stroke="#5d6483"]{stroke:var(--chart-line)}.chart-scroll svg [fill="#5d6483"]{fill:var(--chart-line)}
.legend .dot{background:var(--gold)!important}.legend span+span .dot{background:var(--secondary)!important}.monthcard:hover,.payroll-calendar .monthcard:hover{background:var(--wash)}
@media(max-width:700px){main>header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);padding:10px 12px;gap:6px;min-height:68px}.theme-switch{gap:5px;padding:4px 5px}.theme-switch button{width:36px;height:36px}.crumb{font-size:10px;overflow-wrap:anywhere}.user{font-size:11px;overflow-wrap:anywhere;text-align:right}.brand{color:var(--teal)}}

/* Business-card navy and gold, with bright reading surfaces. */
aside{background:radial-gradient(ellipse at 15% 0%,#bda26816,transparent 50%),linear-gradient(155deg,var(--side-top),var(--side-bottom));color:#f6f4ef;border-right:1px solid #bd9b4c66;box-shadow:5px 0 28px #17213c0b}
aside .brand{color:#f1d78f;letter-spacing:-.6px}aside .brand small{color:#cbbd98;letter-spacing:2px}aside .company{background:#ffffff08;border:1px solid #c8ad6a38}aside .company small,aside .sidefoot{color:#b9bfd0}
aside #company-select{background:#ffffff0b;color:#fff7e6;border-color:#c6ae714d}aside #company-select option{background:#252d46;color:#fff7e6}
nav button{color:#d8deeb}nav button:hover{background:#ffffff0c;color:#f4dfab}nav button.active{background:linear-gradient(115deg,#f0dfa9,var(--gold));color:#272b3f;box-shadow:0 4px 16px #0002}nav button.active:hover{color:#272b3f}
h1{font-weight:750}.eyebrow{color:var(--teal)}main>header{border-bottom:1px solid #d0ad6240}.card.accent{background:linear-gradient(130deg,#fff,#fcf4dd);border-top-color:var(--gold)}
.primary{background:linear-gradient(120deg,var(--side-top),var(--side-bottom));color:#f5dfa2;border:1px solid #caa75270}.primary:hover{filter:brightness(1.15)}.tax-comment{background:linear-gradient(115deg,#faf5e8,#ffffff);border:1px solid #dec99288;border-left:3px solid var(--gold)}.comment-head strong span{color:var(--teal)}
.theme-switch button:nth-child(1){background:#fbf5e6}.theme-switch button:nth-child(2){background:#e9eff7}.theme-switch button:nth-child(3){background:#efedf5}.theme-switch button[aria-pressed="true"]{background:linear-gradient(140deg,#f5e6b9,var(--gold));color:#272b3f}
#chart-tooltip{background:var(--navy);color:#fff8e9;border:1px solid #cfad6066}
.pay-category .chosen,.yearnav .chosen{background:var(--navy);border-color:var(--gold);color:#f2d891}.tabs button.on{background:var(--navy);color:#f2d891}

/* Five navy/gold-only studies; pale surfaces are gold tints. */
body{background:radial-gradient(ellipse at 90% 0%,var(--glow),transparent 52%),var(--bg)}
aside{background:linear-gradient(var(--side-angle),var(--side-top),var(--side-bottom));border-color:#c6a45555}
aside .brand{color:var(--gold-light)}aside .brand small{color:#d2be89}aside .company small,aside .sidefoot{color:#c3c5c9}nav button{color:#e1e2e5}nav button:hover{color:var(--gold-light)}
nav button.active,.theme-switch button[aria-pressed="true"]{background:linear-gradient(var(--gold-angle),var(--gold-light),var(--gold));color:#0a1225}
.card,.panel{background:linear-gradient(130deg,var(--surface),var(--surface-end))}.card.accent{background:linear-gradient(var(--gold-angle),var(--surface),var(--wash))}
.theme-switch button:nth-child(n){background:#fffdf6;color:#101a30;border-color:#c4aa6c}.theme-switch button[aria-pressed="true"]{background:linear-gradient(var(--gold-angle),var(--gold-light),var(--gold));color:#080f21}
.theme-switch button{width:34px;height:34px}.theme-switch{gap:7px}
.tax-comment,.comment-draft,.paytotals>div,.detail-note,.total,.pill,th{background:var(--wash)}.tax-comment{border-color:#cfb777;border-left-color:var(--gold)}
.primary,.tabs button.on,.pay-category .chosen,.yearnav .chosen{background:linear-gradient(var(--side-angle),var(--side-top),var(--side-bottom));color:var(--gold-light)}
.schedule-dday.due-soon,.amount[style*="color"],td[style*="color"],.fileicon{color:var(--navy)!important}.schedule-dday.due-soon{text-decoration:underline;text-underline-offset:3px}.fileicon{background:var(--wash)}
.schedule-line time,.schedule-dday,.schedule-note a,.comment-head strong span{color:var(--teal)}.tax-comment p{color:var(--ink)}
.chart-scroll svg [fill="#8b8176"]{fill:var(--muted)}.chart-hover-point{fill:var(--gold)!important;stroke:var(--navy)!important}
@media(max-width:700px){main>header{grid-template-columns:minmax(0,1fr) auto;row-gap:9px}.theme-switch{grid-column:1/-1;grid-row:2;justify-self:center;gap:9px}.theme-switch button{width:38px;height:38px}header .user{grid-column:2;grid-row:1}.crumb{grid-column:1;grid-row:1}}

/* Final selected palette: deep navy and gold. */
main>header{display:flex;justify-content:space-between;align-items:center}.comment-head strong .comment-bulb{margin:0 4px 0 0;font-size:17px;vertical-align:middle}@media(max-width:700px){main>header{display:flex;min-height:58px;gap:10px}}
/* Prominent idea icon with navy/gold contrast. */
.comment-head strong{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px}
.comment-head strong .comment-bulb{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;margin:0 6px 0 0;border-radius:50%;background:#080f21;border:1px solid #cfaa4e;font-size:25px;line-height:1;box-shadow:0 2px 7px #080f2120;font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif}

/* Deadline emphasis only on the title and countdown columns. */
.tax-schedule .schedule-warning>strong{color:#ce512f;font-weight:400}
.tax-schedule .schedule-critical>strong{color:#ce2828;font-weight:700}
