/* Strippi's desktop-first interface, inspired by the approved design preview. */
:root{--accent:#6260d9;--accent-deep:#4d4ab8;--accent-soft:#efeffc;--forest:#6260d9;--ink:#242735;--muted:#737784;--cream:#fff;--light:#f4f4f8;--line:#e8e9ef;--green:#efeffc}
body[data-mercury-theme=green]{--accent:#36745f;--accent-deep:#285b49;--accent-soft:#edf5f0;--forest:#36745f;--green:#edf5f0}
body{background:#fff;color:var(--ink);font:14px/1.55 Inter,'Segoe UI',Arial,sans-serif;isolation:isolate}
body::before,body::after,.ambient-landscape{display:none!important}
body>aside{position:fixed;inset:0 auto 0 0;width:232px;padding:25px 16px 18px;background:#fafafb;border-right:1px solid var(--line);box-shadow:none;z-index:20;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;transform:none}
body.vault-locked>aside,body.vault-locked>.shell{display:none}
.brand{display:flex;justify-content:flex-start;align-items:center;gap:10px;padding:0 8px;transform:none!important;filter:none!important}
.mercury-mark{display:grid;place-items:center;width:31px;height:34px;border-radius:10px;background:var(--ink);color:white;font:italic 30px/1 Georgia,serif;padding-bottom:5px;flex-shrink:0}
.mercury-wordmark{font-size:27px;font-weight:650;letter-spacing:-1.2px}.mercury-wordmark>span{color:var(--accent)}.brand>small{font-size:10px;background:#eeeef2;padding:3px 6px;border-radius:4px;letter-spacing:0;margin-left:auto}
body>aside nav{display:flex;flex-direction:column;gap:4px;margin:43px 0 0;padding:10px 7px;overflow:visible;border:1px solid color-mix(in srgb,var(--accent) 20%,var(--line));border-radius:18px;background:linear-gradient(155deg,var(--accent-soft),#ffffffd9 85%);box-shadow:0 5px 24px color-mix(in srgb,var(--accent) 8%,transparent);perspective:700px;flex-shrink:0}
body>aside nav button{width:100%;min-height:43px;padding:11px 10px;display:flex;align-items:center;gap:10px;text-align:left;color:#525565;background:transparent;border:0;border-radius:10px;box-shadow:none;font-size:16px;transform:translateZ(0);transform-origin:left center;transition:transform .24s cubic-bezier(.2,.8,.2,1),box-shadow .24s,background .24s}
body>aside nav button span{font-size:13px;font-weight:500}body>aside nav button.active{background:#fffffff2;color:var(--accent-deep);box-shadow:0 2px 10px #2924450c}body>aside nav button.active span{font-weight:600}
.mercury-tools{margin-top:auto;padding:32px 9px 0;display:grid;gap:8px}.mercury-tools>button{font-size:12px;min-height:37px;padding:7px 0;text-align:left;border:0;background:transparent}.mercury-tools>button[aria-pressed=true]{color:var(--accent-deep)}
.mercury-palette{display:flex;gap:9px;align-items:center;font-size:12px;padding:12px 0;color:var(--muted)}.mercury-palette>span{margin-right:auto}.mercury-palette>button{padding:0;min-height:0;width:16px;height:16px;border-radius:50%;border:3px solid #fafafb;background:#6260d9}.mercury-palette>button[data-mercury-theme=green]{background:#36745f}.mercury-palette>button[aria-pressed=true]{outline:1px solid #8b8b98}
.aside-note{display:block;margin-top:16px;padding:16px 9px 0;border-top:1px solid var(--line);font-size:10px}.aside-note hr{margin:10px 0;border-color:var(--line)}
.shell{margin-left:232px;min-width:0}.shell>header{position:relative;height:auto;min-height:69px;padding:12px 32px;background:#fff;border-bottom:1px solid var(--line);gap:10px;display:flex;flex-wrap:wrap;box-shadow:none;z-index:2}.shell>header>span:first-of-type:not(.pill){display:none}.shell>header button{padding:6px 10px;font-size:11px;min-height:32px;max-width:230px;white-space:normal}.shell>header .pill{font-size:10px;font-weight:500;letter-spacing:0;margin-left:auto;background:#f3f3f7;color:#6b6e7b;padding:6px 9px}
#mercury-search{margin-right:auto;color:#858895;border:0;background:transparent;font-size:12px}#mercury-menu{display:none}#private-toggle{font-size:11px}
main{max-width:1450px;padding:35px 42px 80px;margin:auto;min-width:0}.heading{display:flex;flex-direction:row;align-items:center;gap:12px}.heading>div{flex:1;min-width:0}h1,h2,h3{color:var(--ink);font-family:Inter,'Segoe UI',Arial,sans-serif}h1{font-size:28px;font-weight:550;line-height:1.25;letter-spacing:-1px;margin:0 0 8px}h2{font-size:15px;line-height:1.4;font-weight:600;letter-spacing:-.2px;margin:0 0 16px}h3{font-size:14px;font-weight:600}.heading p:not(.eyebrow){font-size:12px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:600;color:#888b97;margin:0 0 7px}.month-label{font-size:0;flex-shrink:0}.month-label select{font-size:12px;padding:8px 10px;margin:0;min-height:35px}#mercury-new{font-size:12px;white-space:nowrap;min-height:35px}
button{border:1px solid #e2e3eb;border-radius:7px;background:white;color:#565a68;padding:8px 12px;font-size:12px;min-height:34px;box-shadow:none}button:hover{background:#f4f4f9}button.primary,.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.primary:hover{background:var(--accent-deep);border-color:var(--accent-deep)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}input,select{background:#fff;color:var(--ink);border-color:#dfe1e9;border-radius:7px;font-size:13px;padding:9px;min-height:35px}
.toolbar{margin:26px 0 23px;display:flex;align-items:center;justify-content:space-between;gap:12px}.toolbar>.muted{font-size:11px;color:#9395a0}.segmented{background:#f6f6f8;border:1px solid var(--line);border-radius:8px;padding:3px;gap:3px}.segmented button{font-size:12px;color:#797c88;padding:5px 16px;border-radius:5px;min-height:29px}.segmented [aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 1px 4px #25253312}
.card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:none;padding:22px;min-width:0;transform:none!important}.card p{font-size:13px;color:var(--muted)}.card-head{gap:12px;margin-bottom:18px;flex-wrap:wrap}.card-head h2{margin:0}.kpis,.mercury-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.kpi,.featured{background:#fff;border:1px solid var(--line);color:var(--ink);border-radius:12px;padding:21px 22px;box-shadow:0 2px 14px #38306503}.kpi label,.featured label{font-size:13px;color:#686c79}.kpi .number{font-size:30px;font-weight:550;letter-spacing:-1px;margin:14px 0 12px}.kpi small,.featured small{font-size:11px;color:#9295a0}.number{color:var(--ink);font-variant-numeric:tabular-nums}.muted,small{color:var(--muted);font-size:12px}
.mercury-analysis{display:grid;grid-template-columns:1fr 1.3fr;gap:20px;margin-bottom:24px}.mercury-analysis>.card{margin:0}.mercury-analysis>.card>p{font-size:11px}.donut-layout{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;margin:25px 0}.donut,.interactive-donut{width:150px;height:150px;margin:auto}.donut>div{width:106px;height:106px;background:#fff}.donut strong{font-size:17px;letter-spacing:-.5px}.donut small{font-size:10px}.category-link{padding:8px 0;min-height:34px;gap:8px;font-size:11px;border:0}.category-link strong{font-size:11px;font-weight:500}.category-dot{width:6px;height:6px;margin-right:7px}.category-link:hover{background:var(--accent-soft)}.donut-layout .row{gap:8px}.mercury-analysis .footnote{font-size:10px}
.mercury-chart{height:220px;display:flex;align-items:stretch;gap:12px;margin:25px 0 18px;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#f1f1f6 calc(25% - 1px),#f1f1f6 25%)}.mercury-month{flex:1;min-width:0;text-align:center;padding:0 5px}.mercury-month.current{background:linear-gradient(to top,var(--accent-soft),transparent);border-radius:7px}.mercury-bars{display:flex;align-items:flex-end;justify-content:center;gap:5px;height:185px}.mercury-bars>span{width:18px;max-width:40%;background:var(--accent);border-radius:3px 3px 0 0}.mercury-bars>span+span{background:#cdcfde}.mercury-month>small{display:block;font-size:10px;padding-top:10px;white-space:nowrap}.legend{font-size:10px;gap:14px}.legend i,.bar,.track span{background:var(--accent)}.legend i.dark,.bar.spent{background:#cdcfde}.track{background:#f0f0f6}
.mercury-recent{margin-bottom:22px}.table-wrap{max-width:100%;overflow:auto}table{font-size:13px}th{background:#fdfdfe;font-size:11px;font-weight:500;color:#9699a4}th,td{padding:13px 12px;border-color:#eeeef3}td small{font-size:10px}td.amount{font-weight:500}.income{color:#287c64}tbody tr:hover{background:#fafafd}.transaction-actions{gap:5px}.transaction-actions button{padding:5px 8px;min-height:29px;font-size:10px}.quiet{color:var(--accent-deep);font-size:12px;text-decoration:none}.row{border-color:var(--line);font-size:13px}.row strong{font-size:13px}.cost-row .check-label{font-size:13px}.cost-row input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px}.cost-row small{font-size:11px}.status-chip{font-size:10px}.cost-row .is-open{background:#fcf5e8;color:#956b2e}.cost-row .is-paid{background:#edf6f1;color:#287c64}
.auto-bank-summary{margin:22px 0;padding:14px 18px;background:#fafafb;border-color:var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px}.auto-bank-summary>div{margin:0}.auto-bank-summary button{min-height:30px}.mercury-secondary{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:22px}.available-card{background:#fafafb;color:var(--ink);border-color:var(--line)}.available-card .number{color:var(--ink)}.comfort-report{margin:22px 0;font-size:12px}.help-details{font-size:11px}.help-details summary{font-size:11px;color:#868995}.help-details p{font-size:12px}.settings-grid{gap:20px}.settings-grid>.card,.auto-bank-card{margin-bottom:0}#content>section.card,#content>.settings-grid{margin-bottom:22px}.bank-tile{border-color:var(--line);background:#fafafb}.note{background:#fcf7ec;border:1px solid #eee2ca;color:#795e2e;font-size:12px}.badge{background:#fcf7ec;color:#795e2e;border-color:#eee2ca}.footnote{font-size:11px}.actions{gap:8px}.actions button{font-size:12px}
.coach-card{background:linear-gradient(145deg,var(--accent-soft),#fff 45%);border-color:color-mix(in srgb,var(--accent) 22%,var(--line));box-shadow:0 0 24px color-mix(in srgb,var(--accent) 8%,transparent)}.coach-card h2{font-size:22px}.coach-kpis>div,.coach-pot{background:#fff;border-color:var(--line);border-radius:12px}.coach-meter>span{background:var(--accent)}.coach-notice{background:#fcf7ec;border-color:#eee2ca}.coach-help,.coach-scope{font-size:12px}.coach-intro{border:0}.coach-kpis strong{color:var(--ink)}.coach-pot h3{font-size:15px}.coach-pot .row{font-size:12px}
dialog,.gate-card{background:#fff;border-color:var(--line);border-radius:15px;color:var(--ink);box-shadow:0 24px 90px #1e173a26}dialog::backdrop{background:#24213944;backdrop-filter:blur(3px)}dialog h2{font-size:20px}dialog label{font-size:13px}#vault-gate{background:linear-gradient(140deg,#f3f2fc,#fff 65%)}.gate-card>img{width:65px;height:65px;border-radius:15px}.gate-card h1{font-size:28px}.form-error{color:#a43e48}
#strippi-companion{width:62px;right:22px;bottom:20px}#strippi-companion>span{background:var(--accent);font-size:10px}.coach-dialog.companion-panel{background:#fff;border-color:#e1dfef;border-radius:17px}.companion-header{background:var(--accent-soft);border-color:var(--line)}.companion-header h2{font-size:18px}.companion-welcome h3{font:550 22px/1.3 'Segoe UI',sans-serif}.companion-answer{background:var(--accent-soft)}.companion-question{background:var(--accent)}.companion-suggestions button,.companion-panel .companion-composer{background:#fff;border-color:var(--line)}
footer{border-top:1px solid var(--line);padding:20px 0;margin-top:30px;font-size:10px;color:#9699a4}#toast{background:var(--ink);font-size:13px;z-index:80}.mercury-cursor{position:fixed;left:0;top:0;width:400px;height:400px;margin:-200px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--accent) 18%,transparent),#9acbe51a 40%,transparent 70%);pointer-events:none;z-index:25;opacity:0;transition:opacity .3s,transform .16s ease-out}.motion-enabled.mercury-pointer .mercury-cursor{opacity:1}.vault-locked .mercury-cursor,.simple-mode .mercury-cursor{display:none}
@media(hover:hover) and (pointer:fine){body.motion-enabled:not(.simple-mode)>aside nav button:hover{position:relative;z-index:2;transform:translateX(7px) translateY(-2px) rotateY(-7deg) scale(1.045);background:#fff;box-shadow:-3px 4px 0 #e2e0ef,0 12px 22px #30255222}body.motion-enabled:not(.simple-mode)>aside nav button:has(+button:hover),body.motion-enabled:not(.simple-mode)>aside nav button:hover+button{transform:translateX(2px) scale(1.012)}}
@media(max-width:1200px){main{padding:28px 26px 80px}.shell>header{padding:12px 26px}.mercury-analysis{grid-template-columns:1fr 1fr}.donut-layout{grid-template-columns:1fr;gap:14px}.kpi{padding:18px}.kpi .number{font-size:25px}.heading{flex-wrap:wrap}.heading>div{flex-basis:100%}.heading .month-label{margin-right:auto}}
@media(max-width:900px){.mercury-analysis{grid-template-columns:1fr}.donut-layout{grid-template-columns:150px minmax(0,1fr)}.mercury-secondary{grid-template-columns:1fr}.kpis{gap:10px}.kpi .number{font-size:22px}.shell>header .pill{margin-left:0}.auto-bank-summary{flex-wrap:wrap}}
@media(max-width:760px){body>aside{position:fixed;inset:0 auto 0 0;width:232px;padding:22px 16px;transform:translateX(-105%);transition:transform .22s;box-shadow:10px 0 40px #2427351a;height:100dvh;z-index:60}body.mercury-menu-open>aside{transform:none}body>aside nav{flex-direction:column;margin-top:28px;padding:10px 7px;overflow:visible}body>aside nav button{min-height:44px}body>aside .brand>small{display:none}.aside-note{display:block}.shell{margin-left:0}.shell>header{padding:10px 16px;min-height:58px;gap:7px}.shell>header button{font-size:10px;min-height:34px;max-width:100%}#mercury-menu{display:block}#mercury-search{font-size:11px;margin-right:auto}.shell>header .pill{font-size:9px;padding:5px 7px}.shell>header #cloud-status{max-width:170px}main{padding:24px 18px 90px}h1{font-size:26px}.heading{gap:14px}.heading>div{flex-basis:100%}.heading p:not(.eyebrow){font-size:12px}.heading .month-label{display:block;font-size:0}.month-label select{font-size:14px;min-height:42px}#mercury-new{min-height:42px;padding:8px 10px}.toolbar{margin:22px 0 19px;gap:10px}.toolbar>.muted{display:none}.segmented{max-width:100%}.segmented button{font-size:12px;padding:6px 13px;min-height:36px}.kpis{grid-template-columns:1fr;gap:10px}.kpi{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:16px 18px}.kpi label{font-size:12px}.kpi .number{font-size:24px;grid-column:2;grid-row:1/3;align-self:center;margin:0}.kpi small{font-size:10px;grid-column:1}.card{padding:18px;border-radius:12px}h2{font-size:14px}.mercury-analysis{gap:18px;margin-bottom:18px}.donut-layout{grid-template-columns:125px minmax(0,1fr);gap:12px}.donut,.interactive-donut{width:125px;height:125px}.donut>div{width:89px;height:89px}.donut strong{font-size:14px}.category-link{font-size:10px;flex-wrap:wrap;gap:3px}.category-link strong{font-size:10px;margin-left:13px}.mercury-chart{gap:4px;height:190px}.mercury-bars{height:155px;gap:4px}.mercury-month{padding:0 2px}.mercury-month>small{font-size:8px}.mercury-secondary{gap:18px}.auto-bank-summary{display:block;padding:14px}.auto-bank-summary>div{margin-top:10px;gap:6px}.auto-bank-summary button{min-height:40px}.card-head{align-items:center}.card-head button{min-height:40px}.row{flex-wrap:wrap;overflow-wrap:anywhere}.row strong{white-space:normal}.cost-row .check-label{min-width:60%}.cost-row button{min-height:40px}.cost-row .check-label small{font-size:10px}.coach-kpis{grid-template-columns:1fr}.coach-pots{grid-template-columns:1fr}.coach-card h2{font-size:20px}.filters{gap:8px}.filters input{min-width:0;width:100%;flex-basis:100%}.table-wrap{max-width:100%}input,select,dialog input,dialog select{font-size:16px}dialog{padding:22px;max-width:calc(100vw - 24px)}.mercury-cursor{display:none}#strippi-companion{right:13px;width:58px}.settings-grid{grid-template-columns:1fr}.bank-tile{min-width:0;overflow-wrap:anywhere}.mercury-tools{padding-top:24px}footer{font-size:9px}}
@media(prefers-reduced-motion:reduce){.mercury-cursor{display:none}body>aside nav button{transform:none!important;transition:none!important}body>aside{transition:none}}
.brand{color:var(--ink)}.mercury-tools #motion-toggle{background:transparent}.mercury-tools #motion-toggle[aria-pressed=true]{background:var(--accent-soft);padding-left:8px;border-radius:7px}
@media(max-width:760px){body>aside{visibility:hidden}body.mercury-menu-open>aside{visibility:visible}}
.mercury-account:empty{display:none}.mercury-account{display:grid;gap:8px;margin-top:18px}.mercury-account>button{width:100%;font-size:11px;text-align:left;background:#fff;min-height:40px}
@media(max-width:760px){.shell>header{flex-wrap:nowrap}.shell>header .pill{max-width:112px;line-height:1.4}.heading .month-label{width:auto;flex:1;min-width:0;margin:0}.month-label select{max-width:100%;width:auto}.mercury-tools{margin-top:15px}.mercury-analysis .row strong{white-space:normal}}
