:root { --ink:#161616; --muted:#716c65; --line:#e5ded5; --paper:#fbf9f5; --white:#fff; --gold:#b9853f; --gold-dark:#8d622e; --green:#27734d; --red:#a3483f; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { background:var(--paper); color:var(--ink); font-family:Arial,Helvetica,sans-serif; margin:0; }
body.auth-loading .topbar,body.auth-loading .shell { visibility:hidden; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
a { color:inherit; }
.topbar { align-items:center; background:var(--white); border-bottom:1px solid var(--line); display:flex; gap:28px; height:76px; justify-content:space-between; padding:0 clamp(20px,5vw,72px); position:sticky; top:0; z-index:5; }
.topbar-actions { display:flex; gap:8px; }
.auth-user { align-items:flex-end; display:flex; flex-direction:column; justify-content:center; margin-right:8px; }
.auth-user strong { font-size:11px; font-weight:600; max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.auth-user small { color:var(--muted); font-size:9px; letter-spacing:.1em; margin-top:3px; text-transform:uppercase; }
.brand { align-items:center; display:flex; gap:10px; text-decoration:none; }
.brand-mark { align-items:center; background:var(--ink); border-radius:50%; color:#e4ba79; display:flex; font-size:15px; height:34px; justify-content:center; width:34px; }
.brand strong { display:block; font-family:Georgia,"Times New Roman",serif; font-size:25px; font-style:italic; font-weight:400; line-height:18px; }
.brand small { color:var(--gold-dark); display:block; font-size:8px; letter-spacing:.2em; margin-top:4px; }
nav { display:flex; gap:26px; margin-left:auto; }
nav a { font-size:11px; letter-spacing:.12em; text-decoration:none; text-transform:uppercase; }
nav a:hover,nav a[aria-current="page"] { color:var(--gold-dark); }
.shell { margin:0 auto; max-width:1440px; padding:58px clamp(20px,5vw,72px) 90px; }
.page-section { display:none; margin-bottom:88px; scroll-margin-top:100px; }
.page-section.active { display:block; }
.section-intro { align-items:flex-end; display:flex; justify-content:space-between; margin-bottom:30px; }
.section-intro.compact { align-items:center; }
.dashboard-actions { align-items:center; display:flex; gap:10px; }
.button-large { font-size:11px; padding:16px 20px; }
.text-link { color:var(--gold-dark); font-size:11px; text-decoration:none; }
.text-link:hover { text-decoration:underline; }
.eyebrow { color:var(--gold-dark); font-size:10px; font-weight:700; letter-spacing:.2em; margin:0 0 10px; text-transform:uppercase; }
h1,h2,h3,p { margin-top:0; }
h1,h2 { font-family:Georgia,"Times New Roman",serif; font-weight:400; letter-spacing:-.04em; }
h1 { font-size:clamp(42px,5vw,72px); line-height:.95; margin-bottom:14px; }
h2 { font-size:38px; line-height:1; margin-bottom:0; }
h3 { font-family:Georgia,"Times New Roman",serif; font-size:20px; font-weight:400; margin:0; }
.muted { color:var(--muted); font-size:13px; line-height:1.5; }
.period-badge { border:1px solid var(--line); color:var(--muted); font-size:10px; letter-spacing:.1em; padding:10px 12px; text-transform:uppercase; }
.dashboard-order-card { align-items:center; background:#f3eadc; border:1px solid #e5d3b9; display:flex; gap:24px; justify-content:space-between; margin-bottom:24px; padding:24px 28px; }
.dashboard-order-card h2 { font-size:30px; margin-bottom:10px; }
.dashboard-order-card .muted { margin-bottom:0; }
.stats-grid { display:grid; gap:14px; grid-template-columns:repeat(4,1fr); margin-bottom:24px; }
.stat-card { background:var(--white); border:1px solid var(--line); min-height:138px; padding:22px; }
.stat-card span,.stat-card small { color:var(--muted); display:block; font-size:11px; letter-spacing:.06em; text-transform:uppercase; }
.stat-card strong { display:block; font-family:Georgia,"Times New Roman",serif; font-size:31px; font-weight:400; margin-top:22px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stat-card small { color:var(--gold-dark); font-size:10px; margin-top:5px; }
.stat-card.accent { background:var(--ink); border-color:var(--ink); color:var(--white); }
.stat-card.accent span { color:#c7bfb4; }
.content-grid { display:grid; gap:24px; grid-template-columns:minmax(0,1.5fr) minmax(260px,.7fr); }
.panel { background:var(--white); border:1px solid var(--line); }
.chart-panel,.summary-panel { min-height:350px; padding:28px; }
.panel-heading { align-items:flex-start; display:flex; justify-content:space-between; margin-bottom:28px; }
.panel-heading .eyebrow { margin-bottom:8px; }
.chart-list { display:grid; gap:17px; }
.chart-row { align-items:center; display:grid; gap:14px; grid-template-columns:minmax(120px,1fr) 2.4fr 45px; }
.chart-name { font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chart-track { background:#f0ebe4; height:10px; overflow:hidden; }
.chart-bar { background:var(--gold); height:100%; }
.chart-units { color:var(--muted); font-size:11px; text-align:right; }
.profit-panel { margin-bottom:24px; padding:28px; }
.profit-week-label { align-items:flex-end; display:flex; flex-direction:column; font-size:11px; gap:5px; }
.profit-week-picker { position:relative; }
.profit-week-trigger { background:var(--white); border:1px solid var(--line); color:var(--ink); font-size:11px; min-width:190px; padding:8px 10px; text-align:left; }
.profit-week-trigger:hover { border-color:var(--gold); }
.profit-week-calendar { background:var(--white); border:1px solid var(--line); box-shadow:0 12px 30px rgba(22,22,22,.12); padding:12px; position:absolute; right:0; top:calc(100% + 8px); width:278px; z-index:4; }
.profit-week-calendar-nav { align-items:center; display:flex; justify-content:space-between; margin-bottom:10px; }
.profit-week-calendar-nav strong { font-size:12px; text-transform:capitalize; }
.profit-week-weekdays,.profit-week-days { display:grid; grid-template-columns:repeat(7,1fr); }
.profit-week-weekdays { color:var(--muted); font-size:9px; margin-bottom:3px; text-align:center; }
.profit-week-day { background:transparent; border:0; color:var(--ink); font-size:11px; padding:8px 0; position:relative; width:100%; }
.profit-week-day:hover,.profit-week-day.selected-week { background:#f3eadc; }
.profit-week-day.selected-day { background:var(--gold-dark); border-radius:50%; color:var(--white); z-index:1; }
.profit-week-day.outside-month { color:#bdb5aa; }
.profit-legend { color:var(--muted); display:flex; font-size:11px; gap:14px; }
.profit-legend span { align-items:center; display:flex; gap:5px; }
.legend-dot { background:var(--gold); border-radius:50%; display:inline-block; height:8px; width:8px; }
.legend-dot.pending { background:var(--line); }
.profit-chart { display:grid; gap:16px; }
.profit-line-chart { height:auto; min-width:620px; overflow:visible; width:100%; }
.profit-gridline { stroke:#f0ebe4; stroke-width:1; }
.profit-y-gridline { stroke:#e8e0d6; stroke-width:1; }
.profit-axis { stroke:var(--muted); stroke-width:1; }
.profit-y-label { fill:var(--muted); font-size:10px; }
.profit-line { fill:none; stroke-width:3; }
.profit-line.realized { stroke:var(--gold); }
.profit-line.pending { stroke:var(--line); stroke-dasharray:5 4; }
.profit-point { cursor:crosshair; stroke:var(--paper); stroke-width:2; }
.profit-point.realized { fill:var(--gold); }
.profit-point.pending { fill:var(--line); }
.profit-day-label { fill:var(--muted); font-size:11px; }
.profit-tooltip { display:none; pointer-events:none; }
.profit-tooltip.visible { display:block; }
.profit-tooltip rect { fill:var(--ink); }
.profit-tooltip-label { fill:#c7bfb4; font-size:9px; }
.profit-tooltip-value { fill:var(--white); font-size:11px; font-weight:700; }
.summary-row { align-items:center; border-top:1px solid var(--line); display:flex; justify-content:space-between; padding:22px 0; }
.summary-row span { color:var(--muted); font-size:13px; }
.summary-row strong { font-family:Georgia,"Times New Roman",serif; font-size:24px; font-weight:400; }
.recent-orders-panel { margin-top:24px; padding:28px; }
.recent-orders-list { display:grid; gap:0; }
.recent-order-row { align-items:center; border-top:1px solid var(--line); display:flex; gap:16px; justify-content:space-between; padding:15px 0; }
.recent-order-row strong { display:block; font-family:Georgia,"Times New Roman",serif; font-size:15px; font-weight:400; }
.recent-order-row small { color:var(--muted); display:block; font-size:10px; margin-top:4px; }
.recent-order-row .status + .status { margin-left:6px; }
.button { border:0; font-size:10px; letter-spacing:.1em; padding:13px 16px; text-transform:uppercase; }
.button-dark { background:var(--ink); color:var(--white); }
.button-dark:hover { background:var(--gold-dark); }
.button-gold { background:var(--gold-dark); color:var(--white); }
.button-light { background:transparent; border:1px solid var(--line); color:var(--ink); }
.button-light:hover { border-color:var(--ink); }
.button:disabled { cursor:wait; opacity:.6; }
.button.is-busy { position:relative; }
.icon-button { background:transparent; border:0; color:var(--muted); font-size:27px; line-height:1; }
.toolbar { align-items:center; display:flex; gap:10px; margin-bottom:14px; padding:12px; }
.toolbar input { flex:1; min-width:180px; }
input,select,textarea { background:var(--white); border:1px solid var(--line); border-radius:0; color:var(--ink); outline:0; padding:11px 12px; width:100%; }
input:focus,select:focus,textarea:focus { border-color:var(--gold); }
label { color:var(--muted); display:block; font-size:11px; }
label input,label select,label textarea { display:block; margin-top:7px; }
.form-panel { margin-bottom:14px; padding:28px; }
.form-grid { display:grid; gap:16px; grid-template-columns:repeat(4,1fr); margin-bottom:24px; }
.form-grid.two { grid-template-columns:repeat(2,1fr); }
.category-field { display:flex; flex-direction:column; gap:8px; }
.category-field > .button { align-self:flex-start; }
.inline-form { align-items:center; display:flex; gap:8px; }
.inline-form input { flex:1; min-width:0; }
.items-heading { align-items:center; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; margin-bottom:12px; padding-bottom:12px; }
.items-heading h3 { font-size:18px; }
.order-items { display:grid; gap:8px; margin-bottom:22px; }
.item-row { align-items:start; display:grid; gap:8px; grid-template-columns:minmax(0,1fr) 110px 120px 40px; }
.item-product-hint { color:var(--gold-dark); display:block; font-size:10px; margin-top:5px; min-height:12px; }
.item-row button { background:transparent; border:0; color:var(--muted); font-size:22px; height:40px; margin-top:24px; }
.form-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:22px; }
.checkbox-label { align-items:center; display:flex; gap:8px; padding-top:22px; }
.checkbox-label input { margin:0; width:auto; }
.product-upload-field { margin-bottom:18px; }
.featured-banners-list { display:grid; gap:16px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.featured-banner-card { background:var(--white); border:1px solid var(--line); display:grid; grid-template-columns:minmax(220px,.9fr) minmax(220px,1fr); }
.featured-banner-media { min-height:190px; position:relative; }
.featured-banner-media picture,.featured-banner-media img { display:block; height:100%; width:100%; }
.featured-banner-media img { object-fit:cover; }
.featured-banner-position { background:var(--ink); color:var(--white); font-size:10px; left:10px; padding:6px 8px; position:absolute; top:10px; }
.featured-banner-content { display:flex; flex-direction:column; justify-content:space-between; padding:20px; }
.featured-banner-content .eyebrow { margin-bottom:6px; }
.featured-banner-content h3 { margin-bottom:6px; }
.featured-banner-content small { color:var(--muted); font-size:11px; }
.featured-banner-meta { display:flex; flex-wrap:wrap; gap:6px; margin-top:16px; }
.featured-banner-preview { border:1px solid var(--line); display:block; margin-top:10px; max-width:280px; overflow:hidden; }
.featured-banner-preview img { display:block; max-height:140px; object-fit:cover; width:100%; }
.table-wrap { overflow-x:auto; padding:0 18px 18px; }
table { border-collapse:collapse; min-width:760px; width:100%; }
th { color:var(--muted); font-size:10px; font-weight:400; letter-spacing:.12em; padding:17px 8px 12px; text-align:left; text-transform:uppercase; }
td { border-top:1px solid var(--line); font-size:12px; padding:15px 8px; vertical-align:middle; }
td strong { display:block; font-family:Georgia,"Times New Roman",serif; font-size:15px; font-weight:400; }
td small { color:var(--muted); display:block; font-size:10px; margin-top:4px; }
.status { display:inline-block; font-size:10px; padding:6px 8px; white-space:nowrap; }
.status.pending,.status.received { background:#f3ede4; color:#87602e; }
.status.paid,.status.shipped { background:#e7f1eb; color:var(--green); }
.status.cancelled { background:#f5e8e6; color:var(--red); }
.status.inProgress { background:#e8edf4; color:#526b88; }
.status.available { background:#e7f1eb; color:var(--green); }
.status.unavailable { background:#f5e8e6; color:var(--red); }
.table-actions { display:flex; gap:7px; justify-content:flex-end; }
.table-actions button { background:transparent; border:0; color:var(--gold-dark); font-size:11px; padding:5px; }
.table-actions button.delete { color:var(--red); }
.pagination { align-items:center; display:flex; gap:14px; justify-content:flex-end; margin:12px 0 0; }
.pagination span { color:var(--muted); font-size:11px; }
.pagination button:disabled { cursor:not-allowed; opacity:.45; }
.empty { color:var(--muted); font-size:13px; padding:22px 0; text-align:center; }
.section-status { align-items:center; display:flex; font-size:12px; justify-content:space-between; margin-bottom:14px; padding:14px 16px; }
.loading-state { background:#f3ede4; color:var(--muted); }
.error-state { background:#f5e8e6; color:var(--red); gap:16px; }
.error-state .button { color:var(--red); }
.hidden { display:none !important; }
.flash { background:var(--ink); color:var(--white); font-size:12px; left:50%; max-width:90vw; opacity:0; padding:12px 18px; pointer-events:none; position:fixed; top:92px; transform:translate(-50%,-10px); transition:opacity .2s,transform .2s; z-index:10; }
.flash.show { opacity:1; transform:translate(-50%,0); }
.login-screen { align-items:center; display:flex; justify-content:center; min-height:100vh; padding:24px; }
.login-card { background:var(--white); border:1px solid var(--line); max-width:440px; padding:42px; width:100%; }
.login-card h1 { font-size:48px; margin-bottom:12px; }
.login-card .muted { margin-bottom:30px; }
.login-card form { display:grid; gap:18px; }
.login-submit { margin-top:6px; width:100%; }
.login-error { background:#f5e8e6; color:var(--red); font-size:12px; margin:0; padding:12px; }
@media (max-width:900px) { .stats-grid { grid-template-columns:repeat(2,1fr); } .content-grid { grid-template-columns:1fr; } .form-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px) { .topbar { flex-wrap:wrap; height:auto; min-height:76px; padding:14px 20px; } nav { display:flex; gap:16px; margin-left:0; order:3; overflow-x:auto; padding-top:4px; width:100%; } nav a { flex:0 0 auto; } .topbar-actions { margin-left:auto; } .auth-user { display:none; } .shell { padding-top:40px; } .section-intro { align-items:flex-start; flex-direction:column; gap:18px; } .section-intro.compact { align-items:flex-start; flex-direction:row; } .dashboard-actions { align-items:stretch; flex-direction:column; width:100%; } .dashboard-order-card { align-items:flex-start; flex-direction:column; padding:20px; } .dashboard-order-card .button { width:100%; } .stats-grid { grid-template-columns:1fr 1fr; } .stat-card { min-height:120px; padding:16px; } .stat-card strong { font-size:24px; margin-top:16px; } .chart-panel,.summary-panel,.form-panel,.recent-orders-panel,.profit-panel { padding:20px; } .recent-order-row { align-items:flex-start; flex-direction:column; } .form-grid,.form-grid.two { grid-template-columns:1fr; } .toolbar { align-items:stretch; flex-direction:column; } .item-row { grid-template-columns:minmax(0,1fr) 86px 100px 32px; } .profit-legend { flex-wrap:wrap; } .featured-banners-list { grid-template-columns:1fr; } .featured-banner-card { grid-template-columns:1fr; } .featured-banner-media { min-height:220px; } h2 { font-size:32px; } .login-card { padding:30px 22px; } }
