/* InteriorOS studio palette: warm limestone, ink, and botanical green. */
:root {
  --paper: #f3f1eb;
  --white: #fffefa;
  --ink: #292b25;
  --muted: #88877e;
  --line: #e8e4da;
  --green: #344a3e;
  --green2: #e9ede5;
  --orange: #c58562;
  --shadow: 0 14px 38px rgb(50 45 34 / 6%);
  --radius: 18px;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}
* { -webkit-tap-highlight-color: transparent; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); letter-spacing: -.012em; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 83% 3%, rgb(219 207 186 / 17%), transparent 35%), radial-gradient(ellipse at 0 90%, rgb(210 215 201 / 16%), transparent 38%); }
.shell { max-width: 1740px; grid-template-columns: 258px minmax(0, 1fr); }
.sidebar { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ffffff25 transparent; padding: 29px 17px 20px; background: #293a32; border: 0; color: #f3efe5; }
.brand { padding: 0 13px 36px; color: #f8f5ed; font-size: 18px; letter-spacing: -.04em; }
.brand small { color: #abb8aa; font-size: 11px; letter-spacing: .035em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #e3c6a5; background: #ffffff12; font-size: 22px; }
.brand-mark svg { width: 22px; height: 22px; }
.nav-label { margin: 0 13px 10px; color: #91a197; font-size: 9px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.nav { gap: 4px; }
.nav button { min-height: 42px; padding: 0 13px; border-radius: 11px; color: #cad2ca; font-size: 12px; font-weight: 500; transition: background .2s, color .2s, transform .2s; }
.nav button:hover { transform: translateX(2px); background: #ffffff0c; color: #fff; }
.nav button.active { color: #fffaf0; background: #ffffff16; box-shadow: inset 2px 0 #d5a57c; }
.nav button .ico { width: 19px; height: 19px; margin-right: 12px; color: #aab9ad; }
.nav button.active .ico { color: #e1b98f; }
.ico svg { display: block; width: 18px; height: 18px; }
.side-bottom { border-top: 1px solid #ffffff19; }
.profile { padding: 17px 8px 0; color: #f4f1e9; }
.profile small { color: #aab6ac; }
.avatar { color: #f7f2e7; background: #657b68; }
.studio-actions { border-bottom-color: #ffffff19; }
.studio-actions .text-button { color: #c7d1c7; }
.main { min-width: 0; padding: 0 48px 60px; }
.top { height: 72px; margin-bottom: 0; border-bottom: 1px solid #dedbd2; }
.crumb { color: #a09e94; font-size: 11px; font-weight: 500; letter-spacing: .03em; }
.crumb span:last-child { color: #464a40 !important; }
.today { color: #88877e; font-size: 11px; }
.round { width: 34px; height: 34px; border: 1px solid #e0ddd3; border-radius: 50%; background: #fffdf8; color: #566255; font-size: 15px; }
.round:hover { background: #e9ede5; }
.round svg { width: 17px; height: 17px; display: block; }
.welcome { align-items: end; padding: 33px 0 23px; }
.welcome h1, .view-head h1 { margin: 7px 0 8px; font: 400 clamp(30px, 3vw, 42px)/1.1 var(--display); letter-spacing: -.04em; }
.welcome p, .view-head p { color: #89877d; font-size: 12px; }
.studio-kicker { color: #8a8a7b; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.btn { min-height: 42px; border: 1px solid var(--green); border-radius: 7px; padding: 0 17px; background: var(--green); color: #fffaf2; box-shadow: 0 4px 10px #283d3217; font-size: 11px; font-weight: 600; letter-spacing: .015em; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); background: #405c4c; box-shadow: 0 7px 16px #283d3224; }
.btn-plus { margin-right: 5px; color: #e1ba95; font-size: 17px; vertical-align: -1px; }
.secondary { color: var(--green); background: transparent; box-shadow: none; }
.secondary:hover { color: #fffaf2; }
.studio-feature { position: relative; display: grid; grid-template-columns: minmax(280px, .83fr) minmax(340px, 1.17fr); min-height: 285px; margin: 2px 0 23px; overflow: hidden; border: 1px solid #e2ddd1; border-radius: 15px; background: #e6e1d5; box-shadow: 0 12px 30px rgb(59 52 40 / 7%); }
.feature-copy { z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 29px 32px; background: linear-gradient(115deg, #f9f6ee 0%, #f4f0e7 75%, #ece8dc 100%); }
.feature-label { display: flex; align-items: center; gap: 8px; color: #77796d; font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.feature-label i { width: 6px; height: 6px; border-radius: 50%; background: #b67c58; box-shadow: 0 0 0 4px #b67c581c; }
.feature-copy h2 { margin: 17px 0 5px; font: 400 clamp(27px, 2.5vw, 35px)/1.05 var(--display); letter-spacing: -.04em; }
.feature-copy > p { margin: 0; color: #85847a; font-size: 11px; }
.feature-copy > p span { padding: 0 4px; color: #bd9b7b; }
.feature-progress { max-width: 320px; margin-top: 24px; }
.feature-progress > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; color: #85847a; font-size: 9px; }
.feature-progress b { color: #4d5d4e; font-size: 10px; }
.feature-track { height: 3px; overflow: hidden; background: #ddd9cd; }
.feature-track i { display: block; height: 100%; background: #637760; }
.feature-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.feature-rooms { display: flex; flex-wrap: wrap; gap: 5px; }
.feature-rooms span { padding: 5px 8px; border: 1px solid #ded9cc; border-radius: 4px; color: #6f7166; font-size: 8px; }
.feature-bottom button { flex: none; border: 0; padding: 7px 0 7px 7px; background: transparent; color: #344a3e; font-size: 10px; font-weight: 600; }
.feature-bottom button b { margin-left: 5px; color: #b17655; }
.feature-art { position: relative; min-height: 285px; overflow: hidden; isolation: isolate; background: linear-gradient(127deg, #c5b8a1 0%, #e5d8c3 40%, #cfbea5 100%); }
.feature-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #786e5d22, transparent 45%), linear-gradient(0deg, #665d4a1c, transparent 55%); }
.art-sun { position: absolute; width: 240px; height: 240px; top: -65px; right: 12%; border-radius: 50%; background: #f6e7c775; filter: blur(2px); }
.art-window { position: absolute; top: 11%; right: 21%; width: 29%; height: 63%; border: 9px solid #827868; background: linear-gradient(125deg, #e9dfc4 10%, #d1d4c5 49%, #9bafa0 100%); box-shadow: 5px 9px 18px #544e4130, inset 0 0 0 2px #eee6d4; }
.art-window::before, .art-window::after { content: ""; position: absolute; background: #847c6b; }
.art-window::before { top: 50%; left: 0; right: 0; height: 5px; }
.art-window::after { top: 0; bottom: 0; left: 50%; width: 5px; }
.art-window i { position: absolute; z-index: 1; bottom: -1px; left: 13%; width: 15%; height: 30%; background: #84917a; clip-path: polygon(50% 0,100% 100%,0 100%); }
.art-wall-shelf { position: absolute; top: 22%; left: 8%; width: 26%; height: 5px; background: #756b57; box-shadow: 0 5px 9px #49423435; }
.art-wall-shelf::before { content: ""; position: absolute; bottom: 5px; left: 12%; width: 14px; height: 37px; background: #a87653; box-shadow: 32px 9px #d5c8ad, 63px 4px #72806a; }
.art-console { position: absolute; top: 44%; left: 7%; width: 30%; height: 13%; border-top: 9px solid #795f49; background: linear-gradient(90deg, #927558, #b08a66 45%, #8a6b50); box-shadow: 0 12px 18px #51433125; }
.art-console::before { content: ""; position: absolute; top: 100%; left: 8%; width: 5px; height: 50px; background: #705740; box-shadow: 178px 0 #705740; }
.art-seat { position: absolute; right: 14%; bottom: 15%; width: 37%; height: 27%; border-radius: 20px 20px 4px 4px; background: linear-gradient(160deg, #aaa78f, #777966); box-shadow: 0 15px 25px #514a3a35; }
.art-seat i { position: absolute; left: -5%; right: -5%; top: 37%; height: 60%; border-radius: 12px 12px 3px 3px; background: linear-gradient(145deg, #b8b39d, #888974); }
.art-seat b { position: absolute; top: 44%; left: 49%; width: 2px; height: 13px; background: #d6ceb9; }
.art-rug { position: absolute; right: 1%; bottom: 3%; width: 72%; height: 14%; border-radius: 50%; background: #b7a98e80; transform: rotate(-5deg); filter: blur(2px); }
.art-plant { position: absolute; bottom: 15%; left: 10%; width: 50px; height: 72px; }
.art-plant b { position: absolute; bottom: 0; left: 11px; width: 29px; height: 24px; border-radius: 3px 3px 9px 9px; background: #a36f50; }
.art-plant i { position: absolute; bottom: 19px; left: 22px; width: 18px; height: 42px; border-radius: 100% 0 100% 0; background: #657760; transform: rotate(-23deg); transform-origin: bottom; }
.art-plant i:nth-child(2) { left: 7px; height: 34px; transform: rotate(-53deg); background: #7e8a70; }
.art-plant i:nth-child(3) { left: 27px; height: 31px; transform: rotate(23deg); background: #879276; }
.art-caption { position: absolute; right: 15px; bottom: 12px; color: #fff9e8cf; font-size: 7px; font-weight: 600; letter-spacing: .17em; text-shadow: 0 1px 6px #312b22; }
.stats { gap: 12px; margin-bottom: 22px; }
.stat { position: relative; min-width: 0; padding: 17px 18px 16px; border: 1px solid #e7e2d8; border-radius: 11px; background: #fffefa; box-shadow: 0 4px 12px rgb(50 45 34 / 3%); transition: transform .2s, box-shadow .2s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-top { color: #77796f; font-size: 10px; font-weight: 500; }
.stat-icon { color: #9f8264; background: #f2ece2; }
.stat-value { margin: 13px 0 5px; font: 400 clamp(21px, 2vw, 28px)/1.1 var(--display); letter-spacing: -.03em; }
.stat-note { color: #a09d92; font-size: 9px; }
.grid { gap: 18px; }
.card { margin-bottom: 17px; border: 1px solid #e8e4da; border-radius: 12px; background: #fffefa; box-shadow: 0 5px 18px rgb(50 45 34 / 3%); }
.panel { padding: 19px 20px; }
.panel-head { margin-bottom: 15px; }
.panel-head h2 { font: 400 17px/1.2 var(--display); letter-spacing: -.025em; }
.panel-head p { color: #99968b; font-size: 9px; }
.text-button { color: #53694f; font-size: 10px; font-weight: 600; }
.text-button:hover { color: #b17655; }
.project-list { gap: 0; }
.project-row { margin: 0; padding: 14px 0; border: 0; border-top: 1px solid #efede6; border-radius: 0; background: transparent; }
.project-name { font-size: 12px; font-weight: 600; }
.project-name small { color: #969388; font-size: 9px; }
.client { color: #74776c; font-size: 9px; }
.pill { border-color: #ece9e0; border-radius: 4px; background: #f8f6ef; color: #77776d; font-size: 8px; }
.pill.green { border-color: #e0e7dc; background: #eef1e9; color: #5e7158; }
.progress { height: 3px; border-radius: 0; background: #ece9e0; }
.progress i { border-radius: 0; background: #76866b; }
.pct { color: #969388; font-size: 9px; }
.task { padding: 10px 0; border-top-color: #efede6; }
.task-copy b { font-size: 10px; font-weight: 600; }
.task-copy small, .task-date { color: #959287; font-size: 8px; }
.activity-icon { color: #a67b5d; background: #f3ede4; }
.check { accent-color: #50694f; }
.empty { border: 1px dashed #dcd8cc; border-radius: 7px; background: #faf8f2; color: #8c8a7e; }
.view-head { padding: 31px 0 21px; }
.view-head h1 { font-size: clamp(29px, 3vw, 38px); }
.toolbar { gap: 9px; }
.search, .toolbar input, .toolbar select { border-color: #e4e0d6; border-radius: 6px; background: #fffefa; }
.table-wrap { border: 1px solid #e8e4da; border-radius: 10px; background: #fffefa; box-shadow: 0 5px 18px rgb(50 45 34 / 3%); }
.table th { color: #89877d; background: #f8f6f0; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.table td { border-top-color: #efede6; font-size: 10px; }
.table tr:hover td { background: #faf8f2; }
.person-card { border: 1px solid #e8e4da; border-radius: 10px; background: #fffefa; }
.person-top b { font: 400 18px var(--display); }
.person-meta { color: #89877d; }
.modal-backdrop { background: rgb(30 36 31 / 48%); backdrop-filter: blur(4px); }
.modal { border: 1px solid #e7e2d8; border-radius: 14px; background: #fffefa; box-shadow: 0 24px 80px #20251f33; }
.modal-head { border-bottom-color: #ece8de; }
.modal-head h2 { font: 400 23px var(--display); }
.field label { color: #77786e; font-size: 10px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 42px; border: 1px solid #e3dfd5; border-radius: 6px; background: #fffefa; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #809077; box-shadow: 0 0 0 3px #53694f14; outline: none; }
.toast { border: 1px solid #53694f; border-radius: 8px; background: #344a3e; box-shadow: 0 12px 28px #20251f2b; }
.quote-sheet { background: #fffefa; }
.quote-brand { color: #344a3e; }
.mobile-nav { background: rgb(255 254 250 / 94%); border-top: 1px solid #e3dfd5; box-shadow: 0 -8px 26px #292b250c; backdrop-filter: blur(16px); }
.mobile-nav button { color: #89877d; }
.mobile-nav button.active { color: #344a3e; }
.mobile-nav .ico { display: block; width: 21px; height: 21px; margin: 0 auto 4px; }
.mobile-nav .ico svg { width: 19px; height: 19px; }
@media (min-width: 1400px) { .main { padding-right: 62px; padding-left: 62px; } }
@media (max-width: 1080px) {
  .shell { grid-template-columns: 218px minmax(0, 1fr); }
  .main { padding-right: 30px; padding-left: 30px; }
  .studio-feature { grid-template-columns: minmax(250px, .9fr) minmax(270px, 1.1fr); }
  .feature-copy { padding: 24px; }
}
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  body::before { position: absolute; height: 100vh; }
  .shell { display: block; min-height: 100vh; }
  .sidebar { display: none; }
  .main { padding: 0 17px 90px; }
  .top { height: 55px; }
  .crumb { font-size: 10px; }
  .top-right { gap: 9px; }
  .top-right > .avatar { display: none; }
  .today { font-size: 9px; }
  .round { width: 31px; height: 31px; }
  .top { margin-bottom: 0; }
  .welcome { flex-direction: row; align-items: flex-end; gap: 10px; margin-bottom: 16px; padding: 24px 0 16px; }
  .welcome h1 { max-width: 260px; margin-top: 7px; font-size: 31px; }
  .welcome p { max-width: 250px; line-height: 1.5; }
  .welcome .btn { width: auto; min-height: 37px; align-self: flex-end; padding: 0 11px; font-size: 10px; }
  .studio-feature { grid-template-columns: 1fr; margin-bottom: 15px; }
  .feature-copy { grid-row: 2; padding: 18px 19px 19px; }
  .feature-copy h2 { margin-top: 12px; font-size: 27px; }
  .feature-progress { margin-top: 17px; }
  .feature-bottom { margin-top: 14px; }
  .feature-art { grid-row: 1; min-height: 185px; }
  .art-window { width: 27%; height: 76%; top: 8%; right: 24%; }
  .art-console { top: 42%; width: 28%; }
  .art-seat { width: 34%; height: 33%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 15px; }
  .stat { padding: 13px 13px 12px; border-radius: 9px; }
  .stat-value { margin-top: 9px; font-size: 23px; }
  .stat-note { font-size: 8px; }
  .grid { grid-template-columns: 1fr; gap: 0; }
  .panel { padding: 16px; }
  .panel-head h2 { font-size: 16px; }
  .view-head { align-items: flex-start; padding: 25px 0 16px; }
  .view-head h1 { font-size: 30px; }
  .view-head p { max-width: 245px; line-height: 1.5; }
  .view-head .btn { min-height: 37px; padding: 0 11px; font-size: 10px; }
  .toolbar { flex-wrap: wrap; }
  .table-wrap { overflow-x: auto; }
  .table { min-width: 620px; }
  .mobile-nav { position: fixed; z-index: 4; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; padding: 7px 5px max(7px, env(safe-area-inset-bottom)); }
  .mobile-nav button { display: grid; justify-items: center; gap: 3px; padding: 3px 5px; }
  .mobile-nav button { min-height: 57px; font-size: 9px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-width: none; max-height: 92vh; border-radius: 17px 17px 0 0; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}
@media (max-width: 390px) {
  .main { padding-right: 13px; padding-left: 13px; }
  .welcome { flex-wrap: wrap; }
  .welcome > div { flex: 1 1 100%; }
  .welcome .btn { margin-left: auto; }
  .welcome h1 { font-size: 28px; }
  .welcome p { font-size: 10px; }
  .welcome .btn { padding: 0 8px; }
  .feature-copy { padding-right: 15px; padding-left: 15px; }
  .feature-rooms span { padding: 4px 6px; }
  .feature-bottom button { font-size: 9px; }
}

/* Cubix Interio: compact two-row masthead and paired day/night palettes. */
html[data-theme="light"] {
  color-scheme: light;
  --canvas: #fbf1e5;
  --surface: #fffaf3;
  --surface-soft: #f6eadb;
  --surface-alt: #f2e6d8;
  --text: #1a100e;
  --muted: #776b5f;
  --line: #e5d7c4;
  --accent: #b21c19;
  --accent-hover: #941714;
  --champagne: #c9b793;
  --shadow-cubix: 0 12px 32px rgb(57 34 20 / 7%);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #1a100e;
  --surface: #241916;
  --surface-soft: #2b1e1a;
  --surface-alt: #34251f;
  --text: #fbf1e5;
  --muted: #b7a797;
  --line: #49372e;
  --accent: #b21c19;
  --accent-hover: #cf332d;
  --champagne: #c9b793;
  --shadow-cubix: 0 14px 36px rgb(0 0 0 / 24%);
}
html, body { min-height: 100%; background: var(--canvas); color: var(--text); }
body { font-family: var(--sans); transition: background-color .22s, color .22s; }
body::before { display: none; }
.shell { display: block; width: 100%; max-width: none; min-height: 100vh; margin: 0; }
.sidebar { display: none !important; }
.app-header { position: relative; z-index: 3; width: 100%; padding: 0 clamp(18px, 4.5vw, 72px); background: var(--canvas); }
.top { display: flex; height: 58px; align-items: center; justify-content: space-between; gap: 20px; margin: 0; border-bottom: 1px solid var(--line); }
.wordmark { flex: none; color: var(--text); font: 600 19px/1 var(--display); letter-spacing: -.045em; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.header-tools, .top-right { display: flex; align-items: center; gap: 13px; }
.top-right { gap: 10px; }
.today { color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.round { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.round:hover { background: var(--surface-soft); }
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.theme-switch button { min-width: 49px; height: 23px; border: 0; border-radius: 4px; padding: 0 8px; background: transparent; color: var(--muted); font: 700 8px/1 var(--sans); letter-spacing: .12em; transition: background .18s, color .18s; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button.active { background: var(--accent); color: #fff7ed; box-shadow: 0 2px 5px #5b17132b; }
.studio-actions { display: flex; gap: 11px; padding: 0; border: 0; }
.studio-actions .text-button { border: 0; padding: 4px 0; background: transparent; color: var(--muted); font-size: 9px; font-weight: 600; white-space: nowrap; }
.studio-actions .text-button:hover { color: var(--accent); }
.header-nav { display: flex; width: 100%; min-height: 43px; align-items: stretch; gap: 4px; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.header-nav::-webkit-scrollbar { display: none; }
.nav.header-nav button { position: relative; flex: none; min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font: 500 10px/1 var(--sans); white-space: nowrap; transition: color .18s; }
.nav.header-nav button:hover { transform: none; background: transparent; color: var(--text); }
.nav.header-nav button.active { background: transparent; color: var(--accent); box-shadow: none; font-weight: 700; }
.nav.header-nav button.active::after { position: absolute; right: 11px; bottom: -1px; left: 11px; height: 2px; background: var(--accent); content: ""; }
.nav.header-nav .ico { width: 15px; height: 15px; margin: 0; color: currentColor; }
.nav.header-nav .ico svg { width: 15px; height: 15px; }
.main { width: min(100%, 1550px); margin: 0 auto; padding: 26px clamp(18px, 4.5vw, 72px) 60px; }
.mobile-nav { display: none !important; }
.welcome { margin: 0 0 18px; padding: 0 0 5px; }
.welcome h1, .view-head h1 { color: var(--text); font-family: var(--display); font-weight: 400; }
.welcome p, .view-head p { color: var(--muted); }
.studio-kicker { color: var(--accent); }
.btn { min-height: 37px; border: 1px solid var(--accent); border-radius: 6px; padding: 0 14px; background: var(--accent); color: #fff7ed; box-shadow: none; font: 600 10px/1 var(--sans); letter-spacing: .04em; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent-hover); background: var(--accent-hover); box-shadow: 0 5px 13px rgb(112 26 21 / 18%); }
.btn-plus { color: #f3d7ba; }
.btn.secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn.secondary:hover { border-color: var(--accent); background: var(--surface-soft); color: var(--accent); }
.studio-feature { min-height: 260px; margin: 0 0 18px; border-color: var(--line); border-radius: 9px; background: var(--surface-alt); box-shadow: var(--shadow-cubix); }
.feature-copy { padding: 24px 28px; background: var(--surface); }
.feature-label { color: var(--muted); }
.feature-label i { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent); }
.feature-copy h2 { color: var(--text); }
.feature-copy > p, .feature-progress > div:first-child { color: var(--muted); }
.feature-progress b { color: var(--text); }
.feature-track { background: var(--line); }
.feature-track i { background: var(--accent); }
.feature-rooms span { border-color: var(--line); color: var(--muted); }
.feature-bottom button { color: var(--accent); }
.feature-bottom button b { color: var(--champagne); }
.feature-art { background: linear-gradient(127deg, #c9b793 0%, #e7d6bd 45%, #b9a784 100%); }
.stats { gap: 10px; margin-bottom: 18px; }
.stat, .card, .table-wrap, .person-card { border-color: var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-cubix); }
.stat { padding: 15px 17px; }
.stat:hover { box-shadow: var(--shadow-cubix); }
.stat-top, .stat-note { color: var(--muted); }
.stat-icon { background: var(--surface-soft); color: var(--accent); }
.stat-value { color: var(--text); }
.grid { gap: 14px; }
.panel { padding: 17px 18px; }
.panel-head h2 { color: var(--text); }
.panel-head p { color: var(--muted); }
.text-button { color: var(--accent); }
.project-row { border-top-color: var(--line); }
.project-name, .task-copy b { color: var(--text); }
.project-name small, .client, .pct, .task-copy small, .task-date { color: var(--muted); }
.pill { border-color: var(--line); background: var(--surface-soft); color: var(--muted); }
.pill.green { border-color: #68775250; background: #68775218; color: #687752; }
.progress { background: var(--surface-alt); }
.progress i { background: var(--accent); }
.task { border-top-color: var(--line); }
.activity-icon { background: var(--surface-soft); color: var(--accent); }
.check { border-color: var(--champagne); }
.check:checked { border-color: var(--accent); background: var(--accent); }
.empty { border-color: var(--line); background: var(--surface-soft); color: var(--muted); }
.view-head { padding: 2px 0 19px; }
.view-head h1 { margin-top: 0; }
.toolbar input, .toolbar select, .search input, .filter { border-color: var(--line); background: var(--surface); color: var(--text); }
.table th { border-bottom-color: var(--line); background: var(--surface-soft); color: var(--muted); }
.table td { border-bottom-color: var(--line); color: var(--text); }
.table tr:hover td { background: var(--surface-soft); }
.table small { color: var(--muted); }
.icon-btn { background: var(--surface-soft); color: var(--muted); }
.icon-btn:hover { background: var(--accent); color: #fff7ed; }
.person-meta { border-top-color: var(--line); color: var(--muted); }
.person-top h3, .project-modal .modal-head h2, .project-modal-stats b { color: var(--text); }
.person-top .avatar { background: var(--surface-alt); color: var(--accent); }
.project-modal-stats { background: var(--surface-soft); }
.project-modal-stats small, .project-modal .modal-head p, .detail-list small { color: var(--muted); }
.detail-list > div { border-top-color: var(--line); color: var(--text); }
.detail-list b, .eyebrow, .quote-total b { color: var(--accent); }
.quote-brand, .quote-meta h1, .quote-meta h2, .quote-sheet > h3 { color: var(--text); }
.quote-foot { border-top-color: var(--line); color: var(--muted); }
.modal .nav button { border: 0; background: transparent; color: var(--text); }
.modal .nav button:hover, .modal .nav button.active { background: var(--surface-soft); color: var(--accent); }
.modal .nav .ico { color: currentColor; }
.modal .text-button { color: var(--accent); }
.modal-backdrop { background: rgb(26 16 14 / 62%); backdrop-filter: blur(5px); }
.modal { border-color: var(--line); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgb(0 0 0 / 28%); }
.modal-head { border-bottom-color: var(--line); }
.modal-head h2 { color: var(--text); }
.field label { color: var(--muted); }
.field input, .field select, .field textarea { border-color: var(--line); background: var(--canvas); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.x { background: var(--surface-soft); color: var(--text); }
.quote-sheet { background: var(--surface); color: var(--text); }
.quote-brand { color: var(--accent); }
.toast { border: 1px solid var(--accent); border-radius: 6px; background: var(--text); color: var(--canvas); box-shadow: var(--shadow-cubix); }
.startup-error { color: var(--text); }
html[data-theme="dark"] .feature-art { filter: brightness(.78) saturate(.82); }
html[data-theme="dark"] .pill.green { color: #b3c49a; }
.icon-btn { width: 22px; min-width: 22px; height: 22px; padding: 0; border-radius: 4px; font-size: 11px; line-height: 1; }
.x { width: 22px; min-width: 22px; height: 22px; padding: 0; font-size: 15px; line-height: 1; }
@media (max-width: 760px) {
  body { padding-bottom: 0; }
  .app-header { padding: 0 14px; }
  .top { height: 53px; gap: 8px; }
  .wordmark { font-size: 17px; }
  .header-tools { gap: 7px; }
  .top-right { gap: 6px; }
  .today { max-width: 76px; font-size: 9px; white-space: nowrap; }
  .studio-actions { display: none; }
  .header-nav { min-height: 39px; gap: 0; margin: 0 -2px; }
  .nav.header-nav button { min-height: 38px; padding: 0 9px; font-size: 9px; }
  .nav.header-nav button.active::after { right: 9px; left: 9px; }
  .main { padding: 21px 14px 40px; }
  .welcome { flex-direction: row; align-items: flex-end; gap: 10px; margin-bottom: 14px; padding: 0 0 2px; }
  .welcome h1 { font-size: 29px; }
  .welcome p { font-size: 11px; }
  .welcome .btn { width: auto; min-height: 34px; align-self: flex-end; padding: 0 10px; font-size: 9px; white-space: nowrap; }
  .studio-feature { margin-bottom: 14px; border-radius: 7px; }
  .feature-copy { padding: 17px; }
  .feature-art { min-height: 175px; }
  .stats { gap: 8px; margin-bottom: 13px; }
  .stat { padding: 12px; }
  .stat-value { font-size: 21px; }
  .grid { gap: 0; }
  .panel { padding: 15px; }
  .view-head { padding: 0 0 16px; }
  .view-head h1 { font-size: 28px; }
}
@media (max-width: 390px) {
  .app-header { padding: 0 10px; }
  .today { display: none; }
  .header-tools { gap: 5px; }
  .theme-switch button { min-width: 42px; padding: 0 6px; }
  .welcome { flex-wrap: wrap; }
  .welcome > div { flex: 1 1 100%; }
  .welcome .btn { margin-left: auto; }
  .main { padding-right: 10px; padding-left: 10px; }
}
