/* Oxford-inspired: oxblood, ink-plum, warm stone and antique gold. */
:root{--bg:#18151d;--surface:#241f2b;--surface-2:#302736;--surface-3:#3c3141;--border:#685364;--border-subtle:#4a3b4c;--text:#f4ece7;--text-secondary:#d3c3cd;--text-muted:#bfaab8;--primary:#e0adc1;--primary-hover:#f1c6d6;--primary-text:#291923;--accent:#d7b67c;--accent-hover:#e7c893;--accent-light:#352b23;--primary-light:#352433;--success:#98b59c;--success-light:#233027;--warning:#d8b778;--error:#e99d9d;--error-light:#39262e;--score-excellent:#a1c2ac;--score-good:#c3bd95;--score-fair:#ddb77f;--score-poor:#e39c9c;--score-muted:#b4a3b2;--cta:#963e5b;--cta-hover:#ad4c6e;--cta-text:#fff7f2;--r-lg:24px;--ambient-wine:#823b60;--ambient-gold:#9c753c;--ambient-plum:#584566}
[data-theme=light]{--bg:#f4eee7;--surface:#fffcf8;--surface-2:#eee5e5;--surface-3:#e5d6db;--border:#b9a1ad;--border-subtle:#d4c2c8;--text:#33232f;--text-secondary:#594450;--text-muted:#715a68;--primary:#87354f;--primary-hover:#69233c;--primary-text:#fff8f2;--accent:#89602d;--accent-hover:#704b22;--accent-light:#eee1cd;--primary-light:#efe1e7;--success:#3b684b;--success-light:#e6eee5;--warning:#865d22;--error:#ab3646;--error-light:#f6e4e5;--score-excellent:#3b684b;--score-good:#58653b;--score-fair:#8c5c20;--score-poor:#a93949;--score-muted:#715a68;--ambient-wine:#cd9aad;--ambient-gold:#d8bd90;--ambient-plum:#c4b4c8}
*,*::before,*::after{box-sizing:border-box} [hidden]{display:none!important}
body{font-size:1rem;line-height:1.6}h1,h2,h3,p{overflow-wrap:anywhere}h1,h2,h3{line-height:1.25}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.container.page-padded,.container-fluid.page-padded{padding-top:calc(var(--nav-h) + 3rem);padding-bottom:4rem}.page-header{gap:1.5rem;flex-wrap:wrap;align-items:flex-start;margin-bottom:2rem}.page-header p{margin-top:.75rem}.card--padded{padding:clamp(1.25rem,3vw,2.5rem)}
.card{border-color:var(--border-subtle)}.card h2,.card h3{margin-bottom:1rem}.card p+form,.card form+form{margin-top:1.5rem}.form-stacked,.auth-form{display:grid;gap:1.5rem}.form-stacked>section{display:grid;gap:1.1rem;padding-block:1rem}.form-stacked label{display:grid;gap:.5rem}.form-stacked p{margin:0}.form-group{min-width:0;margin:0}.form-control,.form-select,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),textarea,select{max-width:100%;min-width:0;min-height:48px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);color:var(--text);padding:.7rem .85rem;width:100%}.form-grid{gap:1.4rem}.form-section-title{margin:1rem 0 0}.form-hint{display:block;color:var(--text-muted)}.errorlist,.form-error{color:var(--accent)}.btn{min-height:44px;padding:.65rem 1.1rem;white-space:normal}.btn-primary{box-shadow:0 4px 18px #0002}.btn-ghost{border:1px solid var(--border)}
.auth-page{min-height:calc(100svh - 80px);padding:calc(var(--nav-h) + 3rem) 1rem 4rem;display:flex;align-items:flex-start;justify-content:center}.auth-container{width:100%;max-width:500px;margin:0}.auth-container--wide{max-width:760px}.auth-card{padding:clamp(1.25rem,5vw,3rem);width:100%;border-top:4px solid var(--primary);box-shadow:0 20px 70px #0002}.auth-brand{margin-bottom:2.5rem;text-align:left}.auth-brand h1{margin:.75rem 0 1rem}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:var(--accent);font-weight:700;font-size:.8rem}.budget-grid{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:1rem;font-size:.95rem}.budget-grid>strong{font-size:.9rem}.budget-section{border-block:1px solid var(--border);padding-block:1.5rem!important}.form-check{display:flex!important;align-items:center;gap:.75rem}.form-check input{width:22px;height:22px;flex:none}
.priority-question{border:0;min-width:0;padding:0;margin:0}.priority-question legend{font-family:var(--font-heading);font-size:clamp(1.3rem,3vw,1.8rem);margin-bottom:1rem}.priority-question p{margin-bottom:1.5rem}.number-choices>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.6rem}.number-choices label{position:relative;display:flex;align-items:center;justify-content:center;min-height:56px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;cursor:pointer;font-size:1.2rem;font-weight:700}.number-choices input{position:absolute;opacity:0;width:100%;height:100%;inset:0;cursor:pointer}.number-choices label:has(input:checked){background:var(--primary);border-color:var(--primary);color:var(--primary-text);transform:translateY(-2px)}.number-choices label:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:3px}.weight-scale,.question-controls{display:flex;justify-content:space-between;gap:1rem;margin-top:1rem}.question-counter{color:var(--accent);font-weight:600}.priority-form.is-guided .priority-question{animation:question-in .25s ease both}.priority-question:not(:last-of-type){margin-bottom:1rem}@keyframes question-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.dashboard-hero{padding:2.5rem;border-radius:24px;background:linear-gradient(125deg,var(--surface-2),var(--surface));border:1px solid var(--border);border-left:5px solid var(--accent);margin-bottom:2rem;gap:2rem}.dashboard-hero h1{margin-bottom:1rem}.dashboard-grid{gap:1.5rem}.stat-grid{gap:1rem;margin-bottom:2rem}.stat-value{color:var(--primary)}
.entry-toggle{margin:1.5rem 0}.tab-panel{margin-top:1rem}#panel-url{max-width:800px}#panel-url .card{padding:clamp(1.5rem,4vw,3rem)}#panel-manual{max-width:900px}.form-group>div:has(input[type=radio]){display:flex;flex-wrap:wrap;gap:.5rem}.form-group label:has(input[type=radio]){display:flex;align-items:center;gap:.5rem;padding:.6rem .8rem;background:var(--surface-2);border:1px solid var(--border);border-radius:12px}.form-group label:has(input:checked){border-color:var(--primary);color:var(--primary)}
.import-stage{position:fixed;inset:var(--nav-h) 0 0;z-index:90;background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem;gap:1.5rem;transition:opacity .45s ease}.import-stage p{max-width:460px}.import-orbit{width:72px;height:72px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:orbit 1s linear infinite}.import-symbol{display:none;font-size:3rem;color:var(--primary);line-height:1}.import-stage.is-finished .import-orbit{display:none}.import-stage.is-finished .import-symbol{display:block}.import-stage.is-failed .import-symbol{color:var(--accent)}.import-stage.is-leaving{opacity:0;pointer-events:none}@keyframes orbit{to{transform:rotate(360deg)}}
.listing-detail-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:2rem;align-items:start}.listing-detail-info{display:contents}.listing-detail-header{grid-column:1;grid-row:1;align-self:start;display:flex;gap:1.5rem;padding-top:.5rem}.listing-images{grid-column:2;grid-row:1 / span 4;min-width:0}.listing-detail-layout>.listing-detail-info>.text-secondary{grid-column:1;grid-row:4;font-size:.875rem}.listing-meta{grid-column:1;grid-row:2;display:flex;gap:.75rem;flex-wrap:wrap;margin:0}.listing-brief{grid-column:1;grid-row:3;color:var(--text-secondary);margin:0}.evaluation-section,.listing-description,.listing-actions,.notes-section{grid-column:1/-1;margin:0}.score-circle{flex:none;width:110px;height:110px}.score-number{font-size:2.8rem}.photo-main-img{max-height:320px;object-fit:cover}.photo-placeholder{min-height:180px;max-height:260px;background:linear-gradient(135deg,var(--surface-2),var(--surface-3));border:1px dashed var(--border);font-size:1rem;color:var(--text-secondary);border-radius:20px;display:grid;place-items:center}.listing-description,.notes-section{padding:2rem;background:var(--surface);border:1px solid var(--border-subtle);border-radius:24px}.evaluation-section>div+div{margin-top:2rem}.pros-cons{gap:2rem}.listing-actions{display:flex;flex-wrap:wrap;gap:1rem}.inline-form{display:flex;flex-wrap:wrap;gap:.75rem}.listing-title{margin-bottom:.75rem}.photo-thumbs{margin-top:1rem}.photo-thumb{cursor:pointer}.photo-placeholder:empty::after{content:'No photo yet'}.listing-row-img--placeholder:empty::after{content:'—';color:var(--text-muted)}
.profile-layout{max-width:900px}.profile-section,.profile-budgets,.mb-section{margin-block:2rem;padding-block:1rem}.profile-section{border-top:1px solid var(--border)}.danger-zone{margin:2rem 0;padding:1.25rem;border:1px solid var(--accent);border-radius:16px}.danger-zone summary{color:var(--accent);cursor:pointer}.danger-zone[open] summary{margin-bottom:1.5rem}.profile-section>form{margin-block:1.5rem}.avatar{object-fit:cover}.form-stacked input[type=file]{max-width:100%;padding:1rem;background:var(--surface-2);border-radius:12px}
.tracker-header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1.5rem;margin-bottom:2rem}.view-switcher{display:flex;gap:.5rem;flex-wrap:wrap;background:none;border:0}.view-btn{width:auto;display:flex;align-items:center;gap:.5rem;padding:.65rem 1rem;min-height:44px;border:1px solid var(--border);border-radius:12px}.view-btn[aria-current=page]{background:var(--primary);color:var(--primary-text)}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}.tracker-workspace{display:grid;grid-template-columns:240px minmax(0,1fr);gap:2rem;align-items:start}.tracker-filters{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:1.25rem;position:sticky;top:calc(var(--nav-h) + 1rem)}.tracker-filters summary{font-weight:700;cursor:pointer}.filter-rail{display:grid!important;gap:1.25rem;margin:1.25rem 0 0;padding:0;border:0;background:none}.filter-rail label{display:grid;gap:.5rem;font-size:.875rem}.filter-rail input,.filter-rail select{width:100%!important;max-width:100%}.filter-rail input[type=range]{accent-color:var(--primary);min-height:30px}.tracker-content{min-width:0}.tracker-table-wrapper{overflow-x:auto}.tracker-table th,.tracker-table td{padding:1rem;min-width:95px}.kanban-board{gap:1rem;padding-bottom:1rem}.tracker-map{height:65svh;min-height:360px;border-radius:18px}.footer-inner{gap:1rem;flex-wrap:wrap}.navbar-inner{gap:.75rem}
@media(max-width:900px){.tracker-workspace{grid-template-columns:1fr}.tracker-filters{position:static}.filter-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.listing-detail-layout{grid-template-columns:minmax(0,1fr) 280px}.score-circle{width:90px;height:90px}.score-number{font-size:2.2rem}}
@media(max-width:600px){.auth-page{padding:calc(var(--nav-h) + 1.5rem) .75rem 2rem}.auth-brand{margin-bottom:2rem}.auth-card{padding:1.4rem}.budget-grid{gap:.5rem;font-size:.85rem;grid-template-columns:.85fr 1fr 1fr}.budget-grid input{padding:.5rem!important}.budget-grid>strong{font-size:.8rem}.page-header{display:grid}.dashboard-hero{padding:1.5rem}.listing-detail-layout{display:flex;flex-direction:column;gap:1.5rem}.listing-detail-header{order:0;width:100%;gap:1rem}.listing-meta{order:1}.listing-brief{order:2}.listing-images{order:3;width:100%}.listing-detail-info>.text-secondary{order:4}.evaluation-section{order:5;width:100%}.listing-actions{order:6}.listing-description{order:7;width:100%}.notes-section{order:8;width:100%}.photo-main-img{max-height:230px}.listing-description,.notes-section{padding:1.25rem}.filter-rail{grid-template-columns:1fr}.nav-actions>.btn{font-size:.8rem;padding:.45rem .6rem}.brand-text{font-size:1rem}.brand-leaf{display:none}.navbar-inner{padding-inline:.75rem}.nav-actions{gap:.5rem}.theme-toggle{flex:none}.footer-inner{flex-direction:column;align-items:flex-start}.number-choices>div{gap:.4rem}.score-bar-row{grid-template-columns:minmax(90px,1fr) 1fr 32px}}
.form-stacked>*,.form-stacked section>*,.form-grid>*{min-width:0}.form-stacked{grid-template-columns:minmax(0,1fr)}.page-header:has(>p){display:block}.page-header>p{max-width:48rem}.onboarding-steps{margin-block:1.5rem}
.priority-dialog{width:min(680px,calc(100% - 1.5rem));max-height:90svh;overflow:auto;background:var(--surface);color:var(--text);border:1px solid var(--border);border-top:4px solid var(--primary);border-radius:24px;padding:clamp(1.25rem,4vw,2.5rem);margin:auto}.priority-dialog::backdrop{background:#061710c9;backdrop-filter:blur(6px)}.priority-dialog .priority-form{margin:0}
@media(prefers-reduced-motion:reduce){.import-orbit{animation:none}.import-stage,.priority-question{transition:none;animation:none}}
