/* Inter Display: same family declared in Higgsfield's public UI stylesheet. */
@font-face{font-family:'Inter Display';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/InterDisplay-Regular.ttf') format('truetype')}
@font-face{font-family:'Inter Display';font-style:normal;font-weight:600 900;font-display:swap;src:url('fonts/InterDisplay-SemiBold.ttf') format('truetype')}
:root{--line:#dedbd3;--action:#ff922e;--action-edge:#bd5913;--radius-panel:26px;--radius-field:18px}
body{font-family:'Inter Display',sans-serif}
.production-reference{display:block;max-width:100%;max-height:240px;object-fit:contain;border:1px solid var(--line);border-radius:16px;margin-bottom:10px}.production-reference[hidden]{display:none}
body>aside>#nav{min-height:0;overflow-y:auto;overscroll-behavior:contain}body>aside>.asidefoot{flex-shrink:0}
body.dark{--paper:#171818;--surface:#212323;--wash:#292b2b;--line:#343636;--ink:#fff;--muted:#dedede}
button{border-radius:14px;min-height:42px;font-weight:400;transition:background .15s,border-color .15s,transform .15s}
button:hover{background:var(--wash)}
.primary,.calc-keys .equals{background:var(--action);border:0;color:#24190f;font-weight:600;box-shadow:0 4px 0 var(--action-edge);border-radius:16px;min-height:48px;padding:12px 22px}
.primary:hover,.calc-keys .equals:hover{background:#ffa347}
.primary:active,.calc-keys .equals:active{transform:translateY(3px);box-shadow:0 1px 0 var(--action-edge)}
.primary:disabled{opacity:.55;cursor:wait}
.hero,.card,.credit-card,.empty{border-radius:var(--radius-panel);border:1px solid var(--line)}
.card,.credit-card{padding:24px}
.empty{border:2px dashed var(--line)}
input,textarea,select{border-radius:var(--radius-field);background:var(--surface);border:1px solid var(--line);padding:14px 16px;min-height:48px}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:.8}
textarea{min-height:140px}
dialog,#calculatorDialog{border-radius:30px;border:1px solid var(--line);padding:28px;box-shadow:0 24px 80px #0003}
dialog::backdrop{background:#080a0b99}
#saveButton{width:100%;margin-top:12px;font-size:18px}
.dialoghead button{border-radius:50%;width:38px;min-height:38px}
nav a{border-radius:12px}
.notice{border-radius:16px;border:1px solid var(--line);border-left:3px solid var(--orange)}
.avatar-editor{border-radius:22px}.panel{border-radius:18px}
.card .badge,.local{border-radius:999px;padding:5px 10px}
.icon-button{border-radius:12px;width:42px;height:42px}
.apple-calculator-icon{width:25px;height:25px;display:block}
.icon-button:hover .apple-calculator-icon{filter:brightness(1.08)}
.calc-keys button{border-radius:14px}.calc-keys .equals{padding:8px}
h1{font-weight:600;letter-spacing:-1.2px}h2,h3{font-weight:600}
@media(max-width:700px){.card,.credit-card{padding:20px}.heading{flex-wrap:wrap}header{gap:10px}header>div{gap:8px}#crumb{font-size:12px}dialog,#calculatorDialog{padding:22px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
.local:empty,footer span:empty,#localCaption:empty{display:none}
.integration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}
.integration-card{min-height:184px;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel);display:flex;flex-direction:column;gap:9px}
.integration-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.app-icon{width:58px;height:58px;flex:none;display:grid;place-items:center;border-radius:18px;background:#f4f4f1;border:1px solid #00000012;overflow:hidden;box-shadow:0 5px 14px #00000012}
.app-icon img{width:72%;height:72%;object-fit:contain;display:block}
.app-icon-mark{background:#fff;color:#30312e;font-size:19px;font-weight:600;letter-spacing:-.5px;border:1px solid #e5e3df;box-shadow:none}
.brandmark{background:var(--action);color:#fff}
.status-chip{font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:5px 10px;white-space:nowrap}
.integration-card h3{font-size:19px;margin:4px 0 0}.integration-card p{font-size:14px;margin:0;color:var(--muted)}
.credit-card-head{display:flex;align-items:center;gap:12px}.credit-card-head .app-icon{width:44px;height:44px;border-radius:14px}.credit-card-head .eyebrow{margin-left:auto}
.asidefoot #theme{width:44px;min-width:44px;height:44px;margin-top:12px;padding:0;display:grid;place-items:center;border-radius:14px;color:var(--orange);background:transparent;border:1px solid var(--line);font-size:24px;line-height:1;font-family:system-ui,sans-serif}
.asidefoot #theme{font-size:0;color:transparent}
.asidefoot #theme:not(.theme-toggle)::before{content:'☀';font-size:24px;color:var(--orange)}
.asidefoot #theme.theme-toggle{font-size:24px;color:var(--orange)}
.asidefoot #theme:hover{background:var(--wash);border-color:var(--orange)}
.asidefoot #theme:focus-visible{outline-color:var(--orange)}
@media(max-width:1050px){.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.integration-grid{grid-template-columns:1fr}.integration-card{min-height:160px}.asidefoot #theme{margin-top:0}}
.app-icon-link{display:inline-flex;border-radius:18px;text-decoration:none}
.app-icon-link:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.dashboard-heading{margin-bottom:20px}
.dashboard-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.dashboard-card{min-height:190px;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel);display:flex;flex-direction:column}
.dashboard-card--wide{grid-column:span 3}
.dashboard-card--third{grid-column:span 2}
.dashboard-card h2{font-size:21px;margin:0 0 18px}
.dashboard-list{list-style:none;padding:0;margin:0;display:grid;gap:13px}
.dashboard-item{display:flex;align-items:flex-start;gap:10px;margin:0}
.dashboard-item strong{display:block;font-size:14px;font-weight:500;line-height:1.35}
.dashboard-item small{display:block;margin-top:3px;color:var(--muted);font-size:13px}
.dashboard-bullet{width:7px;height:7px;margin-top:6px;flex:none;border-radius:50%;background:var(--orange)}
.dashboard-empty{margin:0;color:var(--muted);font-size:14px;line-height:1.45}
.dashboard-link{margin-top:auto;padding-top:20px;color:var(--orange);font-size:13px;text-decoration:none}
.dashboard-link:hover{text-decoration:underline}
.dashboard-card-actions{display:grid;gap:5px;margin-top:auto}
.dashboard-card-actions .dashboard-link{margin-top:0}
.settings-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,.7fr);gap:16px;align-items:start}
.settings-card,.settings-note{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel)}
.settings-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.settings-card h2{margin:8px 0 5px;font-size:24px}
.settings-card-head p{margin:0;max-width:560px}
.settings-setup{margin-top:24px;padding:20px;background:var(--wash);border-radius:12px}
.settings-setup h3{margin:0 0 8px;font-size:18px}
.settings-setup p{margin:0 0 14px;font-size:14px}
.settings-setup ol{margin:0;padding-left:20px;color:var(--muted);font-size:14px;display:grid;gap:6px}
.settings-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.settings-action{display:inline-block;padding:10px 16px;border:1px solid var(--line);border-radius:7px;color:var(--orange);font-size:14px}
.settings-actions .primary{color:var(--paper);border-color:var(--orange)}
.settings-note{background:var(--wash)}
.settings-note p{margin-bottom:0;font-size:14px}
.subscription-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.subscription-card{padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:18px;min-width:0}
.subscription-card-main{display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:14px 10px;min-height:0}
.subscription-name{min-width:0;display:grid;gap:4px}.subscription-interval{font-size:12px;color:var(--muted);line-height:1.3}.subscription-count{font-size:13px;color:var(--muted);font-weight:400;margin-left:6px}
.subscription-card .subscription-facts{grid-column:1/-1;min-width:0;border-top:1px solid var(--line);padding-top:11px;gap:16px}
.subscription-card .subscription-fact-value{max-width:none;font-size:14px;line-height:1.4;overflow-wrap:anywhere;white-space:normal}
.subscription-card .subscription-brand .app-icon{flex-shrink:0}
.subscription-brand{display:flex;align-items:center;gap:10px;min-width:0}
.subscription-card .app-icon{width:40px;height:40px;border-radius:12px}
.subscription-card h3{font-size:16px;line-height:1.2;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.subscription-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:122px}
.subscription-fact{display:grid;gap:2px;min-width:0}
.subscription-fact-label{color:var(--muted);font-size:10px;line-height:1;text-transform:uppercase;letter-spacing:.08em}
.subscription-fact-value{display:block;max-width:84px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:12px;line-height:1.2;font-weight:500}
.subscription-card-actions{display:flex;align-items:center;gap:5px;min-width:0}
.subscription-card .expense-choice-trigger{padding:5px 6px;font-size:11px;gap:3px;border-radius:9px}
.subscription-card .expense-choice-chevron{font-size:13px}
.subscription-edit{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0!important;margin:0!important;border:1px solid transparent;background:transparent;color:var(--muted)}
.subscription-edit:hover,.subscription-edit:focus-visible{color:var(--orange);border-color:var(--line);background:var(--wash)}
.subscription-edit svg{width:17px;height:17px;display:block}
.subscription-card button{font-size:13px}
@media(max-width:1050px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-card--wide,.dashboard-card--third{grid-column:span 1}.subscription-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid{grid-template-columns:1fr}}
@media(max-width:700px){.dashboard-grid,.subscription-grid{grid-template-columns:1fr}.dashboard-card--wide,.dashboard-card--third{grid-column:auto}.dashboard-card{min-height:160px;padding:20px}.subscription-card{padding:11px 12px}.subscription-facts{min-width:116px;gap:7px}.subscription-card-actions{gap:3px}.settings-card,.settings-note{padding:20px}.settings-card-head{display:grid;gap:12px}.settings-actions{display:grid}.settings-action{text-align:center}}
.credits-heading{align-items:flex-end}.credits-heading>div{min-width:0}.credits-heading p{margin:7px 0 0;font-size:14px;line-height:1.45}.credits-refresh-all,.credit-refresh,.credit-manual{white-space:nowrap}.credits-refresh-all{color:var(--orange);border-color:var(--line);padding:10px 14px}.credit-card{align-content:start}.credit-card .credit-status{justify-self:end}.credit-status--connected{color:#2f7d43;border-color:#a9cbae;background:#e2f0e4}.credit-status--checking{color:var(--orange)}.credit-value{min-height:31px}.credit-card-note{margin:0;color:var(--muted);font-size:13px;line-height:1.4}.credit-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.credit-card-actions button{margin-top:0;font-size:13px}.credit-manual{color:var(--muted);border-color:transparent;background:transparent}.credit-manual:hover{background:var(--wash);border-color:var(--line)}.credit-refresh:disabled,.credits-refresh-all:disabled{opacity:.55;cursor:wait}@media(max-width:700px){.credits-heading{align-items:flex-start;display:grid}.credits-refresh-all{width:100%}.credit-card-actions{display:grid}.credit-card-actions button{width:100%}}
.playground-heading{margin-bottom:24px}
.playground-panel{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.6fr);gap:20px;align-items:stretch;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel)}
.playground-panel-copy{display:flex;flex-direction:column;justify-content:center;padding:8px}
.playground-panel-copy h2{font-size:25px;margin:0 0 12px}
.playground-panel-copy p{font-size:14px;margin:0;max-width:360px}
.playground-panel-copy .dashboard-link{display:inline-block;margin-top:24px;padding-top:0}
.playground-sheet{min-height:300px;gap:8px}
.playground-sheet .panel{min-height:300px}
@media(max-width:900px){.playground-panel{grid-template-columns:1fr}.playground-sheet{min-height:220px}.playground-sheet .panel{min-height:220px}}
@media(max-width:700px){.playground-panel{padding:18px}.playground-sheet{gap:5px}.playground-sheet .panel{padding:10px}.playground-sheet .panel b{font-size:30px}}
.library-capture{margin:0 0 20px;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel)}
.library-dropzone input[type=file]{display:none}
.library-capture-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.library-capture-head h2{font-size:24px;margin:8px 0 6px}
.library-capture-head p{font-size:14px;margin:0;color:var(--muted)}
.library-capture-clear{flex:none;border:1px solid var(--line);background:transparent;color:var(--muted);font-size:22px;line-height:1}
.library-capture-clear:hover{color:var(--orange);border-color:var(--orange)}
.library-capture-grid{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(0,1.5fr);gap:18px;align-items:stretch}
.library-capture-file{display:flex;flex-direction:column;gap:10px}
.library-dropzone{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:22px;text-align:center;border:2px dashed var(--line);border-radius:20px;background:var(--wash);cursor:pointer;transition:border-color .15s,background .15s,transform .15s}
.library-dropzone:hover,.library-dropzone:focus-visible,.library-dropzone.is-dragging{border-color:var(--orange);background:color-mix(in srgb,var(--orange) 9%,var(--wash));outline:none}
.library-dropzone:active{transform:translateY(1px)}
.library-drop-mark{display:grid;place-items:center;width:62px;height:62px;border-radius:18px;background:var(--orange);color:#24190f;font-size:16px;font-weight:700;letter-spacing:.04em}
.library-dropzone strong{font-size:16px;font-weight:600}
.library-dropzone small{font-size:13px;color:var(--muted);max-width:22ch;overflow-wrap:anywhere}
.library-browse{width:100%;background:transparent;border:1px solid var(--line);color:var(--ink)}
.library-browse:hover{border-color:var(--orange);color:var(--orange)}
.library-capture-fields{display:grid;gap:12px;align-content:start}
.library-capture-fields label{display:grid;gap:7px;font-size:13px;color:var(--muted)}
.library-capture-fields textarea{min-height:118px}
.library-capture-foot{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:18px}
.library-capture-foot p{margin:0 auto 0 0;color:var(--muted);font-size:13px;min-height:18px}
.library-capture-foot p.is-error{color:var(--orange)}
.library-capture-foot .primary{min-width:142px}
.library-card{overflow:hidden}
.library-preview{width:100%;aspect-ratio:16/9;display:block;object-fit:cover;margin:-24px -24px 18px;width:calc(100% + 48px);background:#111}
.library-file{display:flex;align-items:center;gap:10px;margin:-2px 0 18px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--wash)}
.library-file strong{color:var(--orange);font-size:12px;letter-spacing:.08em}
.library-file small{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-card-copy{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}
.library-dialog-asset{margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;color:var(--muted);font-size:13px}
@media(max-width:900px){.library-capture-grid{grid-template-columns:1fr}.library-dropzone{min-height:180px}}
@media(max-width:700px){.library-capture{padding:18px}.library-capture-head{margin-bottom:16px}.library-capture-foot{align-items:stretch;flex-wrap:wrap}.library-capture-foot p{width:100%;flex-basis:100%;margin:0}.library-capture-foot .primary{width:100%}.library-preview{margin:-20px -20px 18px;width:calc(100% + 40px)}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.global-search{position:relative;width:min(330px,34vw);flex:none}
.global-search input{height:42px;min-height:42px;padding:9px 14px;border-radius:14px;background:var(--surface);font-size:14px}
.global-search-results{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:20;display:grid;gap:4px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 45px #0002}
.global-search-results[hidden]{display:none}
.global-result{display:flex;align-items:flex-start;flex-direction:column;gap:2px;width:100%;min-height:52px;padding:9px 11px;text-align:left;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink)}
.global-result:hover,.global-result:focus-visible{background:var(--wash);border-color:var(--line)}
.global-result strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.global-result small{font-size:12px;color:var(--muted)}
.global-search-empty{margin:0;padding:10px 11px;color:var(--muted);font-size:13px}
@media(max-width:900px){.global-search{width:min(280px,30vw)}}
@media(max-width:700px){header{height:auto;min-height:60px;gap:10px;padding:9px 0;flex-wrap:wrap}header>span{order:1}.global-search{order:2;flex:1;width:auto;min-width:180px}header>div{order:3;width:100%;justify-content:flex-end}.global-search input{font-size:13px}}

.appearance-controls{display:flex;align-items:center;gap:6px;margin-top:20px}
.asidefoot .appearance-controls #language{flex:1;width:auto;height:44px;margin:0;color:var(--orange);font-size:14px}
.asidefoot .appearance-controls #theme,.asidefoot .appearance-controls #reorderMenu{width:40px;min-width:40px;height:44px;margin:0;padding:0;flex:none;color:var(--orange);font-size:22px;line-height:1}
.asidefoot .appearance-controls #reorderMenu{display:grid;place-items:center;border:1px solid var(--line);background:transparent;border-radius:14px;font-family:system-ui,sans-serif}
.asidefoot .appearance-controls #reorderMenu:hover,.asidefoot .appearance-controls #reorderMenu[aria-pressed="true"]{background:var(--orange);border-color:var(--orange);color:#24190f}
.asidefoot .appearance-controls #reorderMenu:focus-visible{outline-color:var(--orange)}
@media(max-width:700px){.appearance-controls{margin-top:0}.asidefoot .appearance-controls #language{min-width:48px}}

.news-section{grid-column:1/-1;min-width:0;margin-bottom:12px}
.news-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.news-heading h2{margin:0;font-size:25px}.news-heading button{font-size:24px;color:var(--orange);width:44px;padding:0}
.news-filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.news-filters label{margin:0;font-size:15px;min-width:160px}.news-filters input,.news-filters select{font-size:16px;margin-top:6px}.news-query{flex:1}
.news-status{font-size:14px;margin:12px 0;min-height:21px}.news-grid{display:grid;grid-template-columns:1fr;gap:16px}
.news-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-panel);background:var(--surface)}.news-open{display:block;width:100%;height:100%;padding:0;border:0;border-radius:inherit;text-align:left;background:transparent}.news-open:focus-visible{outline-offset:-3px}
.news-image{aspect-ratio:16/9;background:var(--wash);display:grid;place-items:center;color:var(--orange);font-size:24px;overflow:hidden}.news-image img{width:100%;height:100%;object-fit:cover}
.news-open{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr);align-items:stretch;justify-content:flex-start}.news-image{width:100%;min-height:100%;flex:none}.news-copy{padding:16px 18px;flex:1;display:flex;flex-direction:column;width:100%}.news-meta{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;font-size:13px;color:var(--muted)}.news-copy h3{font-size:18px;line-height:1.3;margin:6px 0 8px}.news-summary-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end;margin-top:auto}.news-copy p{font-size:14px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}.news-preview{color:var(--orange);font-size:14px;white-space:nowrap}.news-section #newsMore{margin-top:18px;font-size:15px}.news-section #newsMore[hidden]{display:none}
#newsDialog{width:min(700px,94vw)}#newsDialog .dialoghead{font-size:14px;margin-bottom:16px}#newsDialog h2{font-size:25px;line-height:1.3}#newsDialog p{font-size:16px;line-height:1.65}.news-detail-image{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:18px}.news-article-link{display:inline-block;color:var(--orange);font-size:16px;padding:12px 0}
@media(max-width:700px){.news-open{display:flex;flex-direction:column}.news-image{min-height:0}.news-summary-row{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:0}.news-filters label{flex:1;min-width:120px}.news-filters .news-query{flex-basis:100%}}

/* Navigation sorting stays opt-in; the handle follows the label and the insertion line shows the landing position. */
nav.menu-reorder-mode a{padding-left:12px;padding-right:8px;gap:8px;cursor:default}
nav.menu-reorder-mode a.is-dragging{opacity:.45}
nav a .menu-label{width:auto;flex:1;text-align:left;font-size:inherit;line-height:inherit}
.menu-drag-handle{display:none}
nav.menu-reorder-mode .menu-drag-handle{display:inline-flex;align-items:center;justify-content:center;width:20px;flex:none;margin-left:auto;color:var(--orange);font-size:20px;line-height:1;cursor:grab;user-select:none;touch-action:none;-webkit-user-drag:none}
nav.menu-reorder-mode .menu-drag-handle:active{cursor:grabbing}
nav.menu-reorder-mode .menu-drag-handle:focus-visible{outline:2px solid var(--orange);outline-offset:2px;border-radius:5px}
nav.menu-reorder-mode{position:relative}
nav.menu-reorder-mode a,nav.menu-reorder-mode a:hover,nav.menu-reorder-mode a:focus{outline:none;box-shadow:none;background:transparent}
nav.menu-reorder-mode.is-dragging{user-select:none}
nav.menu-reorder-mode.is-dragging .menu-drag-handle{outline:none;box-shadow:none}
.menu-drop-indicator{position:absolute;left:12px;right:12px;height:3px;margin:0!important;border-radius:999px;background:var(--orange);pointer-events:none;z-index:2;transition:top 90ms ease-out}
@media(prefers-reduced-motion:reduce){.menu-drop-indicator{transition:none}}
@media(max-width:700px){nav.menu-reorder-mode a{padding-left:8px;padding-right:6px;gap:5px}.menu-drag-handle{font-size:19px}.menu-drop-indicator{margin-left:8px;margin-right:8px}}

/* Keep modal forms readable at the same scale as the workspace. */
#editor form{font-size:16px}
#editor .eyebrow{font-size:14px;letter-spacing:1.8px}
#editor h2{font-size:28px;line-height:1.2}
#editor label{font-size:15px;line-height:1.35;margin:20px 0}
#editor label input,#editor label textarea,#editor label select{font-size:16px;line-height:1.4;min-height:52px;padding:14px 16px}
#editor label textarea{min-height:150px}
#editor input::placeholder,#editor textarea::placeholder{font-size:16px;opacity:.82}
#editor .field-hint{font-size:14px;line-height:1.45}
#editor .notice,#editor #error{font-size:14px;line-height:1.45}
#editor #saveButton{font-size:16px;min-height:50px}
#editor .avatar-actions button{font-size:15px}
#editor .zoom-label{font-size:15px}
@media(max-width:700px){#editor{width:min(94vw,560px);padding:22px}#editor h2{font-size:25px}#editor label{font-size:15px}#editor label input,#editor label textarea,#editor label select,#editor input::placeholder,#editor textarea::placeholder{font-size:16px}}

/* Playground reference intake and provider-aware draft preparation. */
.playground-ai{margin-top:20px;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel)}
.playground-dropzone input[type=file]{display:none}
.playground-ai-head h2{font-size:25px;margin:8px 0 7px}.playground-ai-head p{font-size:14px;margin:0;max-width:700px}
.playground-ai-grid{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(0,1.5fr);gap:18px;margin-top:20px}
.playground-ai-assets{display:flex;flex-direction:column;gap:10px}.playground-dropzone{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:22px;text-align:center;border:2px dashed var(--line);border-radius:20px;background:var(--wash);cursor:pointer;transition:border-color .15s,background .15s,transform .15s}.playground-dropzone:hover,.playground-dropzone:focus-visible,.playground-dropzone.is-dragging{border-color:var(--orange);background:color-mix(in srgb,var(--orange) 9%,var(--wash));outline:none}.playground-dropzone:active{transform:translateY(1px)}
.playground-drop-mark{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:var(--orange);color:#24190f;font-size:32px;font-weight:400;line-height:1}.playground-dropzone strong{font-size:16px;font-weight:600}.playground-dropzone small{font-size:13px;color:var(--muted);max-width:28ch;overflow-wrap:anywhere}.playground-ai-assets>.secondary{width:100%;background:transparent}
.playground-refs{display:grid;gap:8px;margin-top:2px}.playground-ref{display:flex;align-items:center;gap:10px;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:13px;background:var(--wash)}.playground-ref img{width:42px;height:42px;border-radius:9px;object-fit:cover;flex:none;background:var(--paper)}.playground-ref span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.playground-ref button{width:30px;height:30px;min-height:30px;padding:0;border-radius:50%;font-size:18px;line-height:1;background:transparent;color:var(--muted)}.playground-ref button:hover{color:var(--orange)}.playground-ref-empty{margin:0;padding:8px 2px;color:var(--muted);font-size:13px}
.playground-ai-fields{display:grid;gap:2px;align-content:start}.playground-ai-fields label{display:grid;gap:7px;font-size:15px;color:var(--muted);margin:0 0 16px}.playground-ai-fields input,.playground-ai-fields textarea,.playground-ai-fields select{font-size:16px;line-height:1.45;min-height:52px;padding:13px 15px}.playground-ai-fields textarea{min-height:230px;resize:vertical}.playground-ai-foot{display:flex;align-items:center;gap:16px;margin-top:2px}.playground-ai-foot p{flex:1;margin:0;color:var(--muted);font-size:14px;line-height:1.45}.playground-ai-foot p.is-error{color:var(--orange)}.playground-ai-foot .primary{min-width:190px}
@media(max-width:900px){.playground-ai-grid{grid-template-columns:1fr}.playground-dropzone{min-height:180px}.playground-ai-fields textarea{min-height:180px}}
@media(max-width:700px){.playground-ai{padding:18px}.playground-ai-head h2{font-size:22px}.playground-ai-foot{align-items:stretch;flex-wrap:wrap}.playground-ai-foot p{width:100%;flex-basis:100%}.playground-ai-foot .primary{width:100%}}

/* Customer identity and notes. */
.client-card-head{display:flex;align-items:center;gap:18px;min-width:0}
.client-card-head .client-avatar{width:72px;height:72px;flex:none;margin:0}
.client-card-head h3{font-size:25px;line-height:1.25;margin:0;min-width:0;overflow-wrap:anywhere}
.client-avatar-placeholder{display:grid;place-items:center;background:var(--wash);color:var(--orange);font-size:24px;font-weight:600}
.client-card .client-card-notes{font-size:15px;line-height:1.5;margin:18px 0 0;white-space:pre-wrap}

.client-card .client-delete{margin-left:10px;color:var(--orange);background:transparent}

/* Gym tracking and calendar views. */
.gym-heading{margin-bottom:22px}
.gym-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}
.gym-stat{padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel);display:grid;gap:5px;min-width:0}
.gym-stat>span{font-size:13px;color:var(--muted)}
.gym-stat strong{font-size:27px;line-height:1.2;color:var(--orange);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.gym-stat small{font-size:13px;color:var(--muted);min-height:18px}
.gym-top-grid{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(0,1.35fr);gap:16px;align-items:stretch}
.gym-calendar-panel,.gym-chart-panel,.gym-entries{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel);min-width:0}
.gym-calendar-head,.gym-section-head,.dashboard-calendar-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.gym-calendar-head h2,.gym-section-head h2,.dashboard-calendar-head h2{margin:6px 0 18px;font-size:22px;line-height:1.25}
.gym-calendar-nav{display:flex;gap:6px;align-items:center}
.gym-calendar-nav button{min-width:38px;height:38px;padding:5px 9px;font-size:18px}
.gym-calendar-nav button[data-gym-calendar-today]{font-size:13px;min-width:56px}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.calendar-weekday{display:grid;place-items:center;min-height:25px;color:var(--muted);font-size:12px;font-weight:600}
.calendar-day{position:relative;display:grid;place-items:center;min-height:42px;padding:5px;border-radius:12px;background:var(--wash);border:1px solid transparent;color:var(--ink);font-size:14px;font-variant-numeric:tabular-nums}
.calendar-day:hover,.calendar-day:focus-visible{border-color:var(--orange);background:color-mix(in srgb,var(--orange) 10%,var(--wash))}
.calendar-weekday.is-weekend{padding:3px;border-radius:8px;font-weight:700}
.calendar-weekday.is-saturday{color:var(--orange);background:color-mix(in srgb,var(--orange) 10%,var(--surface))}
.calendar-weekday.is-sunday{color:var(--orange);background:color-mix(in srgb,var(--orange) 10%,var(--surface))}
.calendar-day.is-saturday{background:color-mix(in srgb,var(--orange) 9%,var(--wash))}
.calendar-day.is-sunday{background:color-mix(in srgb,var(--orange) 9%,var(--wash))}
.calendar-day.is-weekend:hover,.calendar-day.is-weekend:focus-visible{background:color-mix(in srgb,var(--orange) 14%,var(--wash))}
.calendar-day.is-empty{background:transparent;border-color:transparent;pointer-events:none}
.calendar-day.is-today{border-color:var(--orange);font-weight:700}
.calendar-day.has-event{color:var(--orange);font-weight:700}
.calendar-day.is-holiday{background:#e8f5fb;color:#245b70;border-color:#c6e6f1;font-weight:600}
.calendar-day.is-holiday.has-event{color:#174b60;font-weight:800}
.calendar-day.is-selected{outline:2px solid var(--orange);outline-offset:1px}
.calendar-day i{display:none}
.gym-calendar-hint{margin:14px 0 0;font-size:13px;color:var(--muted)}
.gym-section-head{align-items:center;margin-bottom:6px}
.gym-section-head h2{margin:0}
.gym-section-head>span{font-size:13px;color:var(--muted)}
.gym-chart-wrap{position:relative;min-height:260px;padding-top:7px}
.gym-chart{display:block;width:100%;height:auto;min-height:240px;overflow:visible}
.gym-chart-guide{stroke:var(--line);stroke-width:1;stroke-dasharray:3 5}
.gym-chart-axis,.gym-chart-label{fill:var(--muted);font-size:12px;font-family:inherit}
.gym-chart-line{fill:none;stroke:var(--orange);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.gym-chart-point{fill:var(--surface);stroke:var(--orange);stroke-width:3}
.gym-chart-unit{position:absolute;left:3px;top:10px;color:var(--muted);font-size:12px}
.gym-chart-empty{display:grid;place-items:center;min-height:240px;padding:20px;text-align:center;color:var(--muted);font-size:14px}
.gym-entries{margin-top:16px}
.gym-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-top:1px solid var(--line)}
.gym-entry:first-of-type{border-top:0}
.gym-entry time{font-size:13px;color:var(--muted)}
.gym-entry h3{margin:3px 0 2px;font-size:17px}
.gym-entry p{margin:0;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.gym-entry button{flex:none;font-size:14px}
.gym-empty{padding:25px 0;text-align:center}
.gym-empty p{margin:0 auto 16px;font-size:15px}
.gym-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.gym-form-grid label{margin:14px 0}
.gym-form-grid .gym-form-wide{grid-column:1/-1}
.dashboard-calendar-card{padding-bottom:18px}
.dashboard-calendar-head{align-items:center}
.dashboard-calendar-head h2{margin:0}
.dashboard-calendar-head .dashboard-link{margin:0;padding:0;font-size:13px}
.calendar-grid--compact{gap:3px;margin-top:18px}
.calendar-grid--compact .calendar-weekday{min-height:20px;font-size:11px}
.calendar-grid--compact .calendar-day{min-height:30px;padding:3px;border-radius:9px;font-size:13px}
.calendar-grid--compact .calendar-day i{display:none}
.calendar-grid--compact .calendar-day[tabindex="-1"]{cursor:default}
.dashboard-day-details{min-height:190px}.dashboard-day-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.dashboard-day-head h2{margin-top:7px}.holiday-chip{flex:none;max-width:170px;padding:6px 9px;border:1px solid #c6e6f1;border-radius:999px;background:#e8f5fb;color:#245b70;font-size:11px;line-height:1.2;text-align:center}.dashboard-day-list{display:grid;gap:12px;list-style:none;margin:0;padding:0}.dashboard-day-entry{display:flex;align-items:flex-start;gap:10px}.dashboard-day-entry-mark{width:8px;height:8px;margin-top:6px;flex:none;border-radius:50%;background:var(--orange)}.dashboard-day-entry--holiday .dashboard-day-entry-mark{background:#72b9d1}.dashboard-day-entry--birthday .dashboard-day-entry-mark{background:#d19a54}.dashboard-day-entry--training .dashboard-day-entry-mark{background:#7f9a72}.dashboard-day-entry strong{display:block;font-size:14px;line-height:1.35}.dashboard-day-entry small{display:block;margin-top:2px;color:var(--muted);font-size:12px}.dashboard-model-tips{min-height:0}.dashboard-model-tips>h2{margin-bottom:14px}.dashboard-model-tip-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dashboard-model-tip{padding:14px;background:var(--wash);border:1px solid var(--line);border-radius:16px}.dashboard-model-tip-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.dashboard-model-tip-head strong{font-size:14px;line-height:1.25}.dashboard-model-tip-head small{color:var(--muted);font-size:11px;line-height:1.25;text-align:right}.dashboard-model-tip p{margin:10px 0 12px;font-size:13px;line-height:1.45}.dashboard-model-tip a{color:var(--orange);font-size:12px}.dashboard-model-tip-foot{margin:14px 0 0;color:var(--muted);font-size:12px}
body.dark .calendar-day.is-holiday,.dark .holiday-chip{background:#193844;color:#b9e3f0;border-color:#2e687a}.dark .dashboard-day-entry--holiday .dashboard-day-entry-mark{background:#8ed2e5}
.dashboard-calendar-card .calendar-day.is-weekend,.dashboard-calendar-card .calendar-weekday.is-weekend{background:#fffefa;color:#55564f;border-color:#e7e3db}
.dashboard-calendar-card .calendar-day.is-weekend:hover{background:#f3eff8}
.dashboard-month-controls{display:flex;align-items:center;gap:10px}
.dashboard-month-controls h2{margin:0;min-width:0}
.dashboard-month-controls button{display:grid;place-items:center;width:30px;min-width:30px;height:32px;min-height:32px;padding:0;background:transparent;font-size:25px;line-height:1;border-radius:9px}
.dashboard-calendar-card .calendar-day.is-holiday,.dashboard-calendar-card .calendar-day.is-holiday.has-event{background:#eee2fa;color:#713d96;border-color:#d8bde9}
.dashboard-day-details .holiday-chip{background:#eee2fa;color:#713d96;border-color:#d8bde9}
.dashboard-day-details .dashboard-day-entry--holiday .dashboard-day-entry-mark{background:#9c68bd}
body.dark .dashboard-calendar-card .calendar-day.is-weekend,body.dark .dashboard-calendar-card .calendar-weekday.is-weekend{background:#e9e7e2;color:#30312e;border-color:#d6d2ca}
body.dark .dashboard-calendar-card .calendar-day.is-holiday,body.dark .dashboard-calendar-card .calendar-day.is-holiday.has-event,body.dark .dashboard-day-details .holiday-chip{background:#493356;color:#efdaff;border-color:#89639f}
@media(max-width:900px){.gym-top-grid{grid-template-columns:1fr}.gym-chart-wrap{min-height:230px}.gym-chart{min-height:215px}}
@media(max-width:1050px){.dashboard-model-tip-list{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.gym-stats{grid-template-columns:1fr}.gym-calendar-panel,.gym-chart-panel,.gym-entries{padding:18px}.gym-calendar-head{align-items:center}.gym-calendar-head h2{font-size:20px}.gym-calendar-nav button{min-width:34px;height:34px}.gym-calendar-nav button[data-gym-calendar-today]{min-width:48px;padding-inline:6px}.calendar-day{min-height:38px}.gym-entry{align-items:flex-start;gap:10px}.gym-entry button{padding:8px 10px;font-size:13px}.gym-form-grid{grid-template-columns:1fr}.gym-form-grid .gym-form-wide{grid-column:auto}.dashboard-day-head{display:grid}.holiday-chip{max-width:none;justify-self:start}.dashboard-model-tip-list{grid-template-columns:1fr}.dashboard-model-tip-head{display:grid}.dashboard-model-tip-head small{text-align:left}}

/* Playground tool picker and explicit reference confirmation. */
.playground-tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,480px));gap:18px}
.playground-tool-card{display:grid;grid-template-columns:minmax(150px,.9fr) minmax(0,1.1fr);padding:0;min-height:244px;overflow:hidden;text-align:left;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel);box-shadow:0 9px 24px #171a1612;transition:transform .16s,border-color .16s,box-shadow .16s}
.playground-tool-card:hover{border-color:var(--orange);box-shadow:0 12px 28px #171a1625;transform:translateY(-2px)}
.playground-tool-card:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
.playground-tool-visual{display:flex;align-items:stretch;padding:14px;background:var(--wash);min-width:0}
.playground-mini-sheet{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:4px;width:100%;min-height:216px}
.playground-mini-sheet>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:9px 5px;border:1px solid var(--line);border-radius:15px;background:var(--surface);text-align:center}
.playground-mini-sheet>span:first-child{background:color-mix(in srgb,var(--orange) 10%,var(--surface))}
.playground-mini-sheet b{font-size:28px;line-height:1;color:var(--orange);font-weight:600}
.playground-mini-sheet small{font-size:12px;line-height:1.25;color:var(--muted)}
.playground-tool-copy{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:24px;min-width:0}
.playground-tool-copy .eyebrow{font-size:12px;color:var(--orange)}
.playground-tool-copy>strong{font-size:24px;line-height:1.2;font-weight:600}
.playground-tool-sub{font-size:14px;line-height:1.45;color:var(--muted)}
.playground-tool-meta{font-size:12px;color:var(--muted);margin-top:auto}
.playground-tool-cta{font-size:14px;color:var(--orange);font-weight:600}
.playground-ai-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.playground-ai-actions button{min-width:170px}
.playground-ai-actions .secondary:disabled,.playground-ai-actions .primary:disabled{cursor:not-allowed;opacity:.48;box-shadow:none}
.playground-ai-actions .secondary.is-confirmed{border-color:var(--orange);color:var(--orange)}
.playground-confirm-hint{font-size:13px;line-height:1.4;margin:2px 0 0;color:var(--muted)}
.playground-provider-note{font-size:13px;line-height:1.4;margin:-8px 0 12px;color:var(--muted)}
@media(max-width:900px){.playground-tool-grid{grid-template-columns:1fr}.playground-tool-card{max-width:600px}}
@media(max-width:700px){.playground-tool-card{grid-template-columns:1fr;min-height:0}.playground-tool-visual{min-height:190px}.playground-mini-sheet{min-height:175px}.playground-tool-copy{padding:20px}.playground-ai-actions{width:100%;justify-content:stretch}.playground-ai-actions button{flex:1;min-width:0}}

/* The profile circle is both the file picker and the crop surface. */
#avatarFile[hidden]{display:none}
.avatar-stage{border-radius:50%;background:var(--wash);cursor:pointer}
.avatar-stage canvas{cursor:pointer}
.avatar-stage.has-image canvas{cursor:grab}
.avatar-stage:focus-visible{outline:3px solid var(--orange);outline-offset:6px}
.avatar-stage.is-dragging{outline:3px dashed var(--orange);outline-offset:6px;background:color-mix(in srgb,var(--orange) 16%,var(--surface))}
.avatar-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:28px;text-align:center;color:var(--orange);font-size:15px}
.avatar-empty[hidden]{display:none}
.avatar-empty svg{width:42px;height:42px}
#avatarError:empty{display:none}
#avatarError{color:var(--orange);font-size:14px}

.subscription-divider{border:0;border-top:1px solid var(--line);margin:32px 0}
.subscription-group{margin-bottom:30px}.subscription-group h2{font-size:22px;margin:0}
.subscription-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.subscription-group-heading select{width:auto;max-width:100%;min-height:36px;padding:7px 30px 7px 10px;font:inherit;font-size:12px;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:10px}
.subscription-sort-hint{font-size:12px;color:var(--muted);margin:-8px 0 14px}
.subscription-price{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}
.subscription-price .subscription-interval{font-size:11px;font-weight:400}
#nav .navigation-icon{display:block;width:18px;height:18px;flex:none;pointer-events:none}
.subscription-info{display:inline-grid;place-items:center;vertical-align:middle;width:20px;height:20px;margin-left:6px;padding:0;border:1.5px solid currentColor;border-radius:50%;font:italic 700 15px/1 Georgia,serif;color:var(--ink);background:transparent;letter-spacing:0;position:relative}
.subscription-info::after{content:'';position:absolute;inset:-6px;border-radius:50%}
.heading .subscription-info{min-height:20px;min-width:20px;height:20px;width:20px}
.bitcoin-ticker{display:grid;grid-template-columns:auto auto;column-gap:7px;align-items:center;white-space:nowrap;padding:5px 8px;border-radius:10px;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink)}
.bitcoin-symbol{grid-row:1/3;display:block;width:24px;height:24px;object-fit:contain}
.bitcoin-ticker small{font-size:9px;color:var(--muted);line-height:1.2}
.bitcoin-ticker:hover{background:var(--wash)}
.bitcoin-ticker.is-stale small{color:var(--orange)}
@media(max-width:700px){header>div{gap:6px}.bitcoin-ticker{font-size:11px;padding:3px;column-gap:4px}.bitcoin-symbol{font-size:18px}}
#subscriptionTotals{width:min(560px,92vw)}
#subscriptionTotals h2{margin:0;font-size:23px}
.subscription-total-group{padding:14px 0;border-bottom:1px solid var(--line)}
.subscription-total-group h3{margin:0 0 8px;font-size:16px}
.subscription-total-row{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px 16px;margin:7px 0;font-size:14px}
.subscription-total-row small,.subscription-total-row>span{font-size:12px;font-weight:400;color:var(--muted)}
.subscription-total-missing{font-size:12px;margin:8px 0 0}
.toolbar[hidden]{display:none}
.expense-choice{position:relative;flex:none;z-index:2}
.expense-choice-trigger{display:inline-flex;align-items:center;gap:7px;margin:0!important;padding:7px 9px;background:transparent;border:1px solid transparent;color:var(--ink);font-size:14px;font-weight:600;white-space:nowrap;border-radius:12px}
.expense-choice-trigger:hover,.expense-choice-trigger[aria-expanded="true"]{background:var(--wash);border-color:var(--line)}
.expense-choice-chevron{color:var(--muted);font-size:16px;line-height:1;transition:transform .15s}
.expense-choice-trigger[aria-expanded="true"] .expense-choice-chevron{transform:rotate(180deg)}
.expense-choice-popover[hidden]{display:none}
.expense-choice-popover{position:absolute;top:calc(100% + 8px);right:0;display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:8px;min-width:174px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 32px #171a1626}
.expense-choice-options{display:grid;gap:3px}
.subscription-card .expense-choice button{margin-top:0}
.expense-choice-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:36px;padding:8px 10px;border:1px solid transparent;background:transparent;color:var(--muted);font-size:13px;text-align:left;border-radius:10px}
.expense-choice-option:hover,.expense-choice-option.is-selected{background:var(--wash);color:var(--ink)}
.expense-choice-option.is-selected{font-weight:600}
.expense-choice-option-mark{min-width:14px;color:var(--orange);font-weight:700}
.expense-choice-confirm{align-self:end;display:grid;place-items:center;width:38px;min-height:38px;padding:0;border:1px solid #a9cbae;background:#e2f0e4;color:#2f7d43;font-size:20px;font-weight:700;line-height:1;border-radius:12px}
.expense-choice-confirm:hover{background:#d5e9d8;border-color:#7fb287;color:#266b38}
.expense-choice-confirm:disabled{opacity:.55;cursor:wait}
.subscription-cycle{display:grid;gap:6px;font-size:14px;margin:14px 0;color:var(--muted)}
.subscription-cycle select{font-size:15px;padding:10px;min-height:42px}
.subscription-top{flex-wrap:wrap;gap:12px}

.news-heading{padding:8px 14px 8px 0;min-height:60px;margin-bottom:12px}
.news-heading #newsRefresh{display:grid;place-items:center;flex:none;width:42px;height:42px;min-height:42px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--orange);padding:10px}
#newsRefresh svg{width:21px;height:21px}
#newsRefresh:hover{background:var(--wash);border-color:var(--orange)}
#newsRefresh:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
#newsRefresh[aria-busy="true"] svg{animation:news-refresh-spin 1s linear infinite}
@keyframes news-refresh-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#newsRefresh[aria-busy="true"] svg{animation:none}}

.calc-history{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.calc-history-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.calc-history-head span:last-child{font-size:10px;letter-spacing:.06em;font-variant-numeric:tabular-nums}
.calc-history ol{display:grid;gap:6px;margin:9px 0 0;padding:0;list-style:none;max-height:148px;overflow:auto}
.calc-history li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--wash);font-size:13px;font-variant-numeric:tabular-nums}
.calc-history li span{min-width:0;overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}
.calc-history li strong{flex:none;font-size:15px;font-weight:650;color:var(--ink)}
.calc-history-empty{margin:9px 0 0;color:var(--muted);font-size:12px;line-height:1.4}
#calculatorDialog{max-height:calc(100dvh - 24px);overflow:auto}
.calc-voice-controls{display:grid;gap:7px;margin:10px 0 2px}.calc-voice-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;border-color:var(--line);color:var(--ink)}.calc-voice-button:hover,.calc-voice-button.is-listening{border-color:var(--orange);background:var(--wash)}.calc-voice-button.is-listening{color:var(--orange)}.calc-voice-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.calc-voice-status{margin:0;min-height:18px;text-align:center;font-size:12px;color:var(--muted)}.calc-voice-result{display:grid;gap:2px;padding:9px 11px;border:1px solid var(--line);border-radius:11px;background:var(--wash);font-size:12px}.calc-voice-result:empty{display:none}.calc-voice-result span{color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.calc-voice-result strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}

/* Personal profile image in the app header. */
header{justify-content:stretch}
header>div{flex:1;justify-content:flex-end}
.global-search{margin-right:auto}
.header-link{display:inline-grid;place-items:center;width:42px;height:42px;min-height:42px;padding:8px;border:1px solid var(--line);border-radius:14px;color:var(--ink);font-size:14px;white-space:nowrap}
.header-link:hover{border-color:var(--orange);background:var(--wash)}
.header-link:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.header-link img{display:block;width:24px;height:24px;object-fit:contain}
.notification-bell{position:relative}.notification-bell svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.notification-badge{position:absolute;top:-6px;right:-6px;min-width:19px;height:19px;padding:0 5px;display:grid;place-items:center;border:2px solid var(--paper);border-radius:999px;background:var(--orange);color:#fff;font-size:10px;font-weight:700;line-height:1}.notification-badge[hidden]{display:none}
.profile-avatar-button{width:42px;height:42px;min-width:42px;padding:0;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:50%;background:var(--wash);color:var(--orange);font-size:25px;line-height:1}
.profile-avatar-button:hover{border-color:var(--orange);background:color-mix(in srgb,var(--orange) 10%,var(--wash))}
.profile-avatar-button:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.profile-avatar-button img{width:100%;height:100%;display:block;object-fit:cover}
.profile-avatar-button.has-image{border-color:var(--orange);background:var(--surface)}
.profile-avatar-button span[hidden],.profile-avatar-button img[hidden]{display:none}
#profileDialog{width:min(500px,92vw);max-height:calc(100dvh - 24px);overflow:auto}
.profile-dialog-intro{margin:8px 0 18px;font-size:14px}
.profile-editor{display:grid;gap:12px}
.profile-stage{position:relative;width:min(100%,320px);aspect-ratio:1;margin:0 auto;border:1px dashed var(--line);border-radius:50%;background:var(--wash);overflow:hidden;cursor:pointer;touch-action:none}
.profile-stage canvas{display:block;width:100%;height:100%;border-radius:50%;cursor:pointer}
.profile-stage.has-image canvas{cursor:grab}
.profile-stage.is-dragging{outline:3px dashed var(--orange);outline-offset:6px;background:color-mix(in srgb,var(--orange) 16%,var(--surface))}
.profile-stage:focus-visible{outline:3px solid var(--orange);outline-offset:6px}
.profile-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:28px;text-align:center;color:var(--orange);pointer-events:none}
.profile-empty[hidden]{display:none}
.profile-upload-icon{font-size:44px;line-height:1;font-weight:300}
.profile-empty strong{font-size:15px}
.profile-empty span:not(.profile-upload-icon){font-size:13px;color:var(--muted)}
.profile-browse{pointer-events:auto;margin-top:6px;padding:8px 13px;font-size:13px;color:var(--orange);background:var(--surface)}
.profile-browse-control{display:block;margin:0 auto}
.profile-tools{display:grid;gap:10px}
.profile-tools .avatar-actions{justify-content:center}
#profileError:empty{display:none}
#profileError{color:var(--orange);font-size:14px;margin:0}
#profileSave{width:100%;margin-top:20px}
.profile-account{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:13px 15px;border:1px solid var(--line);border-radius:16px;background:var(--wash)}
.profile-account>div{display:grid;gap:3px;min-width:0}.profile-account strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.profile-account .eyebrow{font-size:10px}.profile-account button{flex:none;min-height:34px;padding:7px 11px;font-size:13px;color:var(--orange);background:var(--surface)}
.profile-account button[hidden]{display:none}
@media(max-width:700px){.profile-avatar-button{width:38px;height:38px;min-width:38px}.profile-avatar-button{font-size:22px}#profileDialog{padding:20px}.profile-stage{width:min(100%,280px)}}
.notification-dialog{width:min(500px,92vw)}#notificationsDialog{width:min(500px,92vw);max-height:calc(100dvh - 24px);overflow:auto}#notificationsDialog .dialoghead{align-items:flex-start}#notificationsDialog .dialoghead h2{margin:5px 0 0;font-size:25px}.notification-dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0 16px}.notification-dialog-intro{margin:0;color:var(--muted);font-size:14px;line-height:1.45}.notification-dialog-actions button{padding:7px 10px;min-height:34px;font-size:12px;color:var(--orange);white-space:nowrap}.notification-list{display:grid;gap:8px}.notification-item{width:100%;display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 14px;text-align:left;background:var(--wash);border:1px solid var(--line);border-radius:15px;color:var(--ink)}.notification-item:hover{border-color:var(--orange);background:color-mix(in srgb,var(--orange) 8%,var(--wash))}.notification-item:focus-visible{outline:3px solid var(--orange);outline-offset:2px}.notification-item-mark{width:8px;height:8px;border-radius:50%;background:var(--orange)}.notification-item.is-read .notification-item-mark{background:var(--line)}.notification-item-copy{display:grid;gap:3px;min-width:0}.notification-item-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notification-item-copy small,.notification-item-copy time{color:var(--muted);font-size:12px}.notification-item-copy time{font-variant-numeric:tabular-nums}.notification-item-arrow{color:var(--orange);font-size:18px}.notification-empty{margin:8px 0 2px;padding:22px 8px;color:var(--muted);line-height:1.55;text-align:center}@media(max-width:520px){.notification-dialog-actions{align-items:flex-start;flex-direction:column}.notification-dialog-actions button{align-self:flex-end}}

/* Google sign-in gate for the online instance. */
.production-today{display:grid;grid-template-columns:1.3fr 1fr;gap:16px;margin:20px 0 28px}.production-today>article{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:22px}.production-today .sectionline{margin:0 0 14px}.production-today h2{font-size:21px}.production-board{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:14px;overflow-x:auto;align-items:start}.production-column{background:var(--wash);border:1px solid var(--line);padding:14px;border-radius:22px;min-height:240px}.production-column>h2{font-size:16px;display:flex;justify-content:space-between;padding:0 4px}.production-column>h2 small{color:var(--muted)}.production-project{padding:16px;border:1px solid var(--line);background:var(--surface);border-radius:16px;margin:12px 0}.production-title{font-size:17px;text-align:left;background:none;border:0;padding:0;min-height:32px;font-weight:600;color:var(--ink)}.production-project>small{display:block;color:var(--muted)}.production-project p{font-size:13px;margin:10px 0}.production-project label{margin:12px 0}.production-project select{font-size:13px;min-height:38px;padding:7px}.production-project>button:last-child{font-size:12px;padding:6px 10px;min-height:34px}.production-facts{display:flex;flex-wrap:wrap;gap:14px;color:var(--muted);font-size:13px}.production-empty{font-size:14px;color:var(--muted);padding:16px 0}.production-row{display:flex;gap:14px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.production-row>div{flex:1;min-width:0}.production-row strong{display:block;font-size:15px;overflow-wrap:anywhere}.production-row small{display:block;color:var(--muted);font-size:12px}.production-row input[type=checkbox]{width:20px;height:20px;min-height:20px;accent-color:var(--orange);flex:none}.production-row>button{padding:6px 10px;min-height:34px}.production-done strong{text-decoration:line-through;color:var(--muted)}.production-overdue{color:var(--orange)!important}.production-prompt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.production-prompt-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;white-space:pre-wrap}.production-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.production-actions button,.production-actions a{font-size:13px}.production-total{font-size:14px;margin-bottom:24px}.production-total strong{color:var(--orange);font-size:20px}.production-alerts{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.production-alerts button{font-size:13px;color:var(--orange);background:var(--wash)}.production-settings{margin-top:20px}.production-brief{white-space:pre-wrap}.production-fields label{font-size:14px}.production-fields textarea{font-size:15px}.production-fields input,.production-fields select{font-size:15px}#productionEditor{width:min(640px,94vw)}#productionEditor .primary{width:100%}#projectDetails,#studioDrive{width:min(760px,94vw)}#projectDetails section{margin:24px 0;padding-top:16px;border-top:1px solid var(--line)}#studioDrive form{display:flex;gap:8px;margin:15px 0}#studioDrive form input{flex:1}#productionProject{width:auto;max-width:260px}[data-prod-error]{color:var(--orange)}@media(max-width:850px){.production-today{grid-template-columns:1fr}.production-board{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}}@media(max-width:550px){.production-board{grid-template-columns:1fr}.production-today>article{padding:18px}.production-row{gap:9px}.production-actions{align-items:stretch}.production-column{min-height:120px}.production-row>span{font-size:13px}.production-today .sectionline{gap:8px}.production-column{min-height:120px}.production-row>span{font-size:13px}.production-today .sectionline{gap:8px}.production-today .sectionline button{font-size:12px}}
body.auth-locked>aside,body.auth-locked>main>header,body.auth-locked>main>footer{display:none}
body.auth-locked>main{width:100%;margin:0;max-width:none;min-height:100dvh;padding:0}
body.auth-locked>main>#content{min-height:100dvh;display:grid;place-items:center;padding:28px}
.auth-gate{width:min(520px,100%);padding:48px;background:var(--surface);border:1px solid var(--line);border-radius:32px;box-shadow:0 24px 80px #0002;text-align:center}
.auth-gate-mark{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 24px;border-radius:20px;background:var(--orange);color:var(--paper);font-size:34px;font-weight:700;letter-spacing:-2px}
.auth-gate h1{font-size:36px;margin:12px 0 10px}.auth-gate p{margin:0 auto 26px;max-width:39ch;line-height:1.55}.auth-google-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:54px;text-decoration:none}.google-g-mark{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff;color:#4285f4;font:700 18px Arial,sans-serif}.auth-gate-note{display:block;margin-top:18px;color:var(--muted);font-size:12px;line-height:1.45}.auth-gate-error{color:var(--orange)}
#authControls{display:flex;align-items:center;gap:8px;margin-left:4px}.auth-account{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}.auth-logout{min-height:34px;padding:6px 10px;font-size:12px;background:transparent;color:var(--muted)}.auth-logout:hover{color:var(--orange)}
@media(max-width:700px){body.auth-locked>main>#content{padding:18px}.auth-gate{padding:34px 22px;border-radius:26px}.auth-gate h1{font-size:30px}.auth-account{max-width:130px}#authControls{order:4;width:100%;justify-content:flex-end;margin:0}}
