:root {
  color-scheme: light;
  --ink:#202e26; --muted:#546257; --green:#224e3b; --line:#d9ded4; --canvas:#f6f7f2;
  font:100%/1.5 "DM Sans","Segoe UI",Arial,sans-serif; color:var(--ink); background:var(--canvas);
}
.account { display:flex; align-items:center; gap:12px; flex-wrap:wrap; overflow-wrap:anywhere; font-size:.9rem; }
.account a { color:var(--green); }
.account-nav { width:fit-content; margin-top:24px; }
.account-nav + section .page-head { margin-top:22px; }
.access { max-width:560px; margin:clamp(28px,6vw,80px) auto; background:#fff; border:1px solid var(--line); border-radius:16px; padding:clamp(18px,4vw,36px); display:grid; gap:16px; }
.access form { display:grid; gap:12px; }
.access a.button { text-decoration:none; justify-self:start; }
.access input { display:block; margin-top:4px; }
.legacy { margin:12px 0; padding:12px; border:1px solid var(--line); border-radius:10px; }
.legacy summary { cursor:pointer; font-weight:600; }
.legacy .row,.member-row { padding:10px 0; flex-wrap:wrap; }
.member-row { display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--line); }
.member-row > div:first-child { display:grid; overflow-wrap:anywhere; min-width:0; }
.member-row small { color:var(--muted); }
.member-actions { display:flex; flex-wrap:wrap; gap:8px; }
#members h2 { font-size:1.15rem; margin-bottom:9px; }
#members section + section { margin-top:22px; }
.workspace { padding-bottom:32px; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; }
button,input,select,textarea { font:inherit; color:inherit; }
button,select { cursor:pointer; }
button { border:0; background:none; }
button:disabled { opacity:.55; cursor:default; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #b66b22; outline-offset:3px; }
h1,h2,h3,p { margin:0; }
.topbar { background:#fff; border-bottom:1px solid var(--line); }
.top-inner,.workspace { max-width:1240px; margin:auto; padding-inline:clamp(16px,4.3vw,64px); }
.top-inner { min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:15px; }
.brand { font-size:1.16rem; font-weight:680; letter-spacing:-.04em; display:flex; align-items:center; gap:10px; }
.brand-mark { width:34px; height:34px; background:var(--green); border-radius:9px; display:flex; align-items:flex-end; justify-content:center; padding:8px; gap:2px; }
.brand-mark i { width:4px; height:12px; background:#e1ead2; border-radius:1px; }
.brand-mark i:nth-child(2) { height:19px; }
.brand-mark i:last-child { height:15px; }
.switcher { display:flex; padding:3px; background:#eef1e9; border:1px solid var(--line); border-radius:9px; }
.switcher button { font-size:.875rem; color:var(--muted); border-radius:6px; padding:7px 14px; }
.switcher button[aria-pressed=true] { background:#fff; color:var(--green); font-weight:650; box-shadow:0 1px 3px #26322524; }
.page-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin:clamp(26px,4.4vw,60px) 0 25px; }
h1,.hero h2,.dialog-head h2,.empty h2 { font-family:"Source Serif 4",Georgia,serif; font-weight:500; line-height:1.1; letter-spacing:-.045em; }
h1 { font-size:clamp(2.25rem,4.5vw,3.65rem); }
.page-head p { margin-top:8px; color:var(--muted); }
.button { display:inline-flex; align-items:center; justify-content:center; gap:6px; font-weight:600; border-radius:8px; padding:10px 16px; line-height:1.45; border:1px solid var(--line); background:white; }
.primary { color:#fff; border-color:var(--green); background:var(--green); }
.primary:hover:enabled { background:#173d2c; }
.quiet:hover:enabled,.list-item:hover { background:#f3f6ed; }
.desk { display:grid; grid-template-columns:minmax(245px,.85fr) minmax(0,1.85fr); align-items:start; gap:22px; }
.list-panel,.detail { min-width:0; background:white; border:1px solid var(--line); border-radius:14px; }
.list-panel { overflow:hidden; }
.list-head,.row,.section-head,.crew-bottom,.form-foot,.dialog-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.list-head { padding:19px 18px 10px; }
.list-head h2,.section-head h3,.plain-title { font-size:1.06rem; font-weight:650; letter-spacing:-.025em; }
.count { color:var(--muted); background:#eff2ea; border-radius:14px; padding:1px 9px; font-size:.875rem; }
.filters { display:flex; flex-wrap:wrap; gap:3px; padding:0 11px 12px; }
.filters button { padding:6px 8px; font-size:.875rem; border-radius:6px; color:var(--muted); }
.filters button[aria-pressed=true] { background:#e3ecd9; color:#234630; font-weight:650; }
.list-item { width:100%; display:flex; gap:12px; align-items:flex-start; border-top:1px solid var(--line); padding:18px 15px; text-align:left; }
.list-item[aria-current=true] { background:#eef3e9; box-shadow:inset 3px 0 var(--green); }
.date-tile { min-width:48px; min-height:54px; border:1px solid #d4dccc; border-radius:8px; background:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1.05; gap:3px; }
.date-tile strong { font:500 1.45rem/1 Georgia,serif; }
.date-tile small { font-size:.75rem; color:var(--muted); }
.list-text { display:grid; min-width:0; gap:2px; overflow-wrap:anywhere; }
.list-text b { font-size:1rem; font-weight:650; line-height:1.35; }
.list-text small,.person small,.identity label,.metric dt,.detail-label { color:var(--muted); font-size:.875rem; }
.list-text em { font-size:.81rem; color:var(--green); font-style:normal; margin-top:5px; }
.detail { overflow:hidden; }
.hero { background:#204835; color:#f7faef; padding:clamp(20px,3vw,34px); }
.hero-top { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.hero-top .category { font-size:.875rem; color:#d7e8d4; }
.stamp { display:inline-flex; align-items:center; gap:7px; color:#fff5de; background:#426047; font-size:.85rem; padding:4px 10px; border-radius:30px; }
.stamp::before { content:""; background:#eac27a; width:7px; height:7px; border-radius:50%; }
.stamp.full::before { background:#b9e2a6; }
.hero h2 { font-size:clamp(1.95rem,3.4vw,3.2rem); overflow-wrap:anywhere; }
.hero-place { margin-top:7px; color:#e3ede0; overflow-wrap:anywhere; }
.metric-strip { display:grid; grid-template-columns:1.15fr 1fr 1fr; gap:12px; background:#f1f4eb; margin:0; padding:16px clamp(16px,2.5vw,30px); border-bottom:1px solid var(--line); }
.metric { min-width:0; }
.metric dd { margin:3px 0 0; font-weight:650; font-variant-numeric:tabular-nums; }
.metric dd small { display:block; font-size:.82rem; font-weight:400; color:var(--muted); }
.section { padding:18px clamp(16px,2.5vw,30px); }
.section + .section { border-top:1px solid var(--line); }
.section > p,.section > .detail-label { margin-top:7px; }
.notes { white-space:pre-wrap; overflow-wrap:anywhere; }
.info-tool { color:#415741; font-size:.9rem; display:flex; align-items:center; gap:7px; }
.section-head { flex-wrap:wrap; }
.section-head span { font-size:.9rem; color:var(--muted); }
.crew-list { display:grid; margin-top:8px; }
.person { display:flex; align-items:center; gap:11px; padding:11px 0; border-bottom:1px solid #e8ebe4; min-width:0; }
.person input,.check input { accent-color:var(--green); width:18px; height:18px; flex:none; }
.avatar { width:36px; height:36px; display:grid; place-items:center; flex:none; border-radius:50%; background:#e4eadb; color:#385039; font-weight:650; font-size:.82rem; }
.person:nth-child(2n) .avatar { background:#eae5dc; color:#64543e; }
.person-name { display:grid; min-width:0; overflow-wrap:anywhere; }
.person-name b { font-size:.95rem; }
.person-state { margin-left:auto; color:var(--muted); text-align:right; font-size:.85rem; }
.person-state.ok { color:#245535; }
.crew-bottom { flex-wrap:wrap; margin-top:15px; }
.crew-bottom span,.hint { color:var(--muted); font-size:.9rem; }
.empty,.no-list { padding:24px; color:var(--muted); }
.empty h2 { font-size:1.85rem; color:var(--ink); }
.empty p { margin-top:7px; }
.hint { margin-top:12px; }
.worker-action { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.worker-action p { color:var(--muted); }
footer { display:flex; align-items:baseline; gap:9px; color:var(--muted); padding:22px 0 32px; font-size:.855rem; }
.local-indicator { display:inline-block; width:7px; height:7px; border-radius:50%; background:#72916d; flex:none; }
.identity { display:grid; gap:3px; min-width:200px; }
input:not([type=checkbox]),select,textarea { padding:9px 11px; width:100%; min-width:0; border:1px solid #aeb8ac; border-radius:7px; background:#fff; font-size:1rem; }
select { appearance:none; padding-right:32px; background-image:linear-gradient(45deg,transparent 50%,#566451 50%),linear-gradient(135deg,#566451 50%,transparent 50%); background-position:calc(100% - 16px) center,calc(100% - 11px) center; background-size:5px 5px; background-repeat:no-repeat; }
textarea { resize:vertical; }
dialog { color:var(--ink); width:min(560px,calc(100% - 24px)); max-height:90dvh; overflow:auto; border:1px solid var(--line); border-radius:14px; padding:0; box-shadow:0 18px 80px #172c232e; }
dialog::backdrop { background:#15281da8; }
.dialog-head { padding:20px 24px; border-bottom:1px solid var(--line); }
.dialog-head h2 { font-size:2.1rem; }
.close { font-size:1.55rem; width:40px; min-height:40px; border-radius:7px; }
.close:hover { background:var(--canvas); }
.fields { padding:20px 24px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 15px; }
.fields label { font-size:.89rem; font-weight:600; }
.fields input:not([type=checkbox]),.fields textarea { display:block; margin-top:5px; }
.fields small { font-weight:400; color:var(--muted); }
.span-two { grid-column:1 / -1; }
.check { display:flex; align-items:center; gap:8px; }
.check input { margin:0; }
.form-foot { padding:16px 24px; flex-wrap:wrap; background:#f2f5ee; border-top:1px solid var(--line); }
.form-foot span { font-size:.89rem; color:var(--muted); }
.form-foot strong { display:block; color:var(--ink); font-size:1.1rem; }
.error { padding:12px; color:#7b2819; background:#f6e7df; margin-bottom:12px; }
#notice:not(:empty) { position:fixed; bottom:18px; left:50%; transform:translateX(-50%); z-index:3; width:max-content; max-width:calc(100% - 24px); padding:10px 18px; border-radius:9px; color:white; background:#203d2d; box-shadow:0 3px 14px #16251b3b; }
@media(max-width:760px) {
 .desk { grid-template-columns:1fr; gap:16px; }
 .list-panel { align-self:start; }
 .list-head { padding-top:12px; }
 .job-list { max-height:230px; overflow-y:auto; }
 .list-item { padding:11px 16px; }
 .page-head { margin-top:26px; }
}
@media(max-width:470px) {
 .top-inner { flex-wrap:wrap; padding-block:12px; gap:8px; }
 .switcher button { padding:6px 10px; }
 .metric-strip { gap:9px; grid-template-columns:1fr 1fr; }
 .metric:first-child { grid-column:1/-1; }
 .metric:first-child dd small { display:inline; margin-left:6px; }
 .fields,.form-foot,.dialog-head { padding:16px; }
 .person-state { font-size:.8rem; }
}
@media(pointer:coarse) { button,select { min-height:44px; } }
.account-nav { flex-wrap:wrap; }
.room-form { display:grid; justify-items:start; gap:10px; margin-top:15px; }
.room-form label { display:grid; gap:5px; width:100%; }
.room-form small,.room-file small,.room-message small,.file-link small { color:var(--muted); font-weight:400; }
.file-link { display:block; color:var(--ink); overflow-wrap:anywhere; padding:6px 0; }
.room-file { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:8px 0; border-bottom:1px solid var(--line); }
.room-message { border-left:3px solid var(--line); padding:2px 12px; margin:14px 0; }
.room-message header { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; }
.room-message p,.notes { white-space:pre-wrap; overflow-wrap:anywhere; }
#offer-files { min-width:0; border:1px solid var(--line); border-radius:8px; }
#offer-file-options label { padding:5px 0; overflow-wrap:anywhere; }
#brief-offer { margin-top:12px; }
#worker-preview { width:min(398px,calc(100% - 20px)); }
#worker-preview .dialog-head { padding:12px 16px; }
#worker-preview .dialog-head h2 { font:600 1rem/1.3 "DM Sans","Segoe UI",sans-serif; letter-spacing:normal; }
#preview-detail { border:0; border-radius:0; }
#preview-detail .hero { padding:20px; }
#preview-detail .hero h2 { font-size:1.95rem; }
#preview-detail .section { padding:18px 16px; }
#preview-detail .metric-strip { padding:16px; grid-template-columns:1fr 1fr; gap:9px; }
#preview-detail .metric:first-child { grid-column:1/-1; }
#preview-detail .metric:first-child dd small { display:inline; margin-left:6px; }
.drawing { max-width:460px; padding:8px 0; }
.drawing img { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:6px; }
#kitchen-pricing { min-width:0; margin:0; padding:12px; border:1px solid var(--line); border-radius:8px; }
.pricing-inputs { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; }
.price-lines { display:grid; gap:5px; margin:12px 0; }
.price-lines div { display:flex; justify-content:space-between; gap:12px; }
.price-lines dd { margin:0; font-weight:650; white-space:nowrap; }
