:root{--bg:#0E0E0F;--panel:#17171A;--panel2:#111113;--line:#2A2A2E;--text:#F2F0EC;--muted:#A3A09A;--accent:#F0A030;--on-accent:#1A1206}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font:15px/1.5 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
a{color:var(--accent)}a:hover{filter:brightness(1.15)}
h1,h2,h3{font-family:"Space Grotesk",Inter,system-ui,sans-serif;font-weight:600;margin:0;line-height:1.2}
h1{font-size:30px}h2{font-size:19px}h3{font-size:16px}
p{margin:0}
.muted{color:var(--muted)}.small{font-size:13px}
img{max-width:100%}

/* shell */
.shell{display:flex;flex-wrap:wrap;min-height:100vh}
.side{flex:1 1 220px;max-width:100%;padding:22px 14px;border-right:1px solid #222226;display:flex;flex-direction:column;gap:2px}
.brand{font-family:"Space Grotesk",sans-serif;font-weight:700;font-size:19px;letter-spacing:.05em;padding:4px 12px 2px}
.studio-name{color:var(--muted);font-size:13px;padding:0 12px 16px}
.nav{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:8px;color:var(--muted);text-decoration:none;font-size:14px;min-height:40px;background:none;border:0;width:100%;text-align:left;cursor:pointer;font-family:inherit}
.nav:hover{background:#1E1E22;color:var(--text);filter:none}
.nav.on{background:#26221B;color:var(--accent)}
.main{flex:999 1 560px;min-width:0;padding:32px 40px 60px;display:flex;flex-direction:column;gap:22px}
@media (max-width:700px){.main{padding:22px 16px 48px}.side{border-right:0;border-bottom:1px solid #222226}}

.head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:14px}
.head>div:first-child{display:flex;flex-direction:column;gap:4px}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.grid.cols4{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.split{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.split>.wide{flex:999 1 520px;min-width:0}
.split>.narrow{flex:1 1 300px;min-width:0}
.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:20px 22px;display:flex;flex-direction:column;gap:14px}
.stat .num{font-family:"Space Grotesk",sans-serif;font-size:32px;font-weight:600}
.list>*{border-top:1px solid #26262A;padding:12px 0}
.list>*:first-child{border-top:0}
.item{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.item .grow{flex:1;min-width:180px;display:flex;flex-direction:column;gap:2px}
.empty{color:var(--muted);padding:18px 0}
.flash{background:#26221B;border:1px solid #4A3B22;color:#F5D9A5;padding:12px 16px;border-radius:10px}

/* controls */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:10px;border:1px solid #33333A;background:var(--panel);color:var(--text);font:600 14px Inter,system-ui,sans-serif;cursor:pointer;text-decoration:none;white-space:nowrap}
.btn:hover{background:#202024;filter:none}
.btn.pri{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.btn.pri:hover{filter:brightness(1.08)}
.btn.small{min-height:34px;padding:0 12px;font-size:13px}
.btn.danger{color:#FF9B8A;border-color:#5A2C26}
.btn:disabled{opacity:.45;cursor:not-allowed}
.linkish{background:none;border:0;color:var(--accent);cursor:pointer;font:inherit;padding:0}
label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#C9C6C0}
input,textarea,select{background:var(--bg);border:1px solid #33333A;border-radius:10px;color:var(--text);font:400 15px Inter,system-ui,sans-serif;padding:11px 13px;width:100%}
input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--accent)}
textarea{resize:vertical}
input:focus,textarea:focus,select:focus,.btn:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.check{flex-direction:row;align-items:center;gap:8px;font-size:14px;color:var(--text)}
.fields{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
form.stack{display:flex;flex-direction:column;gap:14px}
.chip{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.chip.green{background:#1F3326;color:#8FE0A8}.chip.blue{background:#1E2A3D;color:#9CC3FF}
.chip.amber{background:#3A2E14;color:#F5C46B}.chip.red{background:#3D1F1C;color:#FF9B8A}.chip.grey{background:#2A2A2E;color:#C9C6C0}
.tabs{display:flex;flex-wrap:wrap;gap:8px}
.tab{min-height:38px;padding:0 14px;border-radius:999px;border:1px solid #33333A;color:#C9C6C0;text-decoration:none;display:inline-flex;align-items:center;font-size:14px;background:none;cursor:pointer;font-family:inherit}
.tab.on{background:var(--text);color:#111;border-color:var(--text)}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th{text-align:left;color:var(--muted);font-weight:500;font-size:12px;padding:10px 8px;border-bottom:1px solid var(--line)}
td{padding:11px 8px;border-bottom:1px solid #222226;vertical-align:middle}
td.r,th.r{text-align:right}
.code{font-family:ui-monospace,Menlo,Consolas,monospace;background:#26221B;color:#F5C46B;padding:2px 7px;border-radius:6px;font-size:13px}
.pre{white-space:pre-wrap}

/* thumbnails grid (studio) */
.thumbs{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.thumb{position:relative;border-radius:8px;overflow:hidden;background:#222226;aspect-ratio:1/1}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb .tools{position:absolute;left:0;right:0;bottom:0;display:flex;gap:4px;padding:6px;background:linear-gradient(transparent,rgba(0,0,0,.75))}
.thumb .tools button{flex:1;min-height:30px;border:0;border-radius:6px;background:rgba(255,255,255,.14);color:#fff;font-size:11px;cursor:pointer}
.thumb .tools button.on{background:var(--accent);color:var(--on-accent)}
.thumb .badge{position:absolute;top:6px;left:6px}
.drop{border:2px dashed #44434A;border-radius:14px;padding:26px;text-align:center;color:var(--muted)}
.drop.over{border-color:var(--accent);color:var(--text)}
.progress{height:6px;background:#2A2A2E;border-radius:3px;overflow:hidden}
.progress>div{height:100%;background:var(--accent);width:0;transition:width .2s}

/* client-facing */
body.client{background:var(--bg)}
.client-top{padding:18px 28px;border-bottom:1px solid #222226}
.client-brand{font-family:"Space Grotesk",sans-serif;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text);text-decoration:none}
.client-main{max-width:980px;margin:0 auto;padding:36px 22px 60px;display:flex;flex-direction:column;gap:22px}
.client-main.wide{max-width:1200px}
.client-foot{text-align:center;color:#6E6B66;font-size:12px;padding:24px}
.timeline{display:flex;flex-wrap:wrap;gap:8px}
.timeline .st{flex:1 1 90px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:12px;color:#8A877F}
.timeline .dot{width:28px;height:28px;border-radius:50%;border:1px solid #44434A;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}
.timeline .st.done{color:var(--text)}.timeline .st.done .dot{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.contract-body{background:#F7F6F2;color:#17171A;border-radius:12px;padding:28px;white-space:pre-wrap;font-size:15px;line-height:1.65}
.paper{background:#F7F6F2;color:#17171A;border-radius:12px;padding:32px}
.paper table td,.paper table th{border-color:#DDD9D0;color:#17171A}
.paper .muted{color:#5E5C57}
@media print{.client-top,.client-foot,.no-print,.side{display:none}.paper{padding:0}body{background:#fff}}

/* website builder */
.builder{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.bform{flex:1 1 380px;min-width:0;max-width:560px;position:relative}
.preview{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:10px;position:sticky;top:16px}
.frame-wrap{background:#1A1A1D;border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;justify-content:center}
.frame-wrap iframe{width:100%;height:78vh;border:0;background:#fff;transition:width .25s}
fieldset.bare{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
fieldset.bare legend{margin-bottom:8px}
.presets{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.preset,.fontopt,.pick{position:relative;cursor:pointer}
.preset{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--line);border-radius:10px;font-size:13px;color:var(--text)}
.preset input,.fontopt input,.pick input{position:absolute;opacity:0;width:1px;height:1px}
.preset:has(input:checked),.fontopt:has(input:checked){border-color:var(--accent);background:#26221B}
.preset:has(input:focus-visible),.fontopt:has(input:focus-visible),.pick:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.sw{display:flex;height:22px;border-radius:6px;overflow:hidden;border:1px solid #33333A}.sw i{flex:1}
.fontlist{display:flex;flex-direction:column;gap:6px}
.fontopt{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;color:var(--text)}
.picks{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}
.pick img,.pick .none{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:8px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:11px;color:var(--muted);background:#222226;border:3px solid transparent;box-sizing:border-box;padding:0}
.pick .none{padding:6px}
.pick:has(input:checked) img,.pick:has(input:checked) .none{border-color:var(--accent)}
.pcards{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
.pcard{display:flex;flex-direction:column;gap:6px;background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:8px}
.pcard img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:6px}
.pcard select{padding:6px 8px;font-size:12px}
.check.small{font-size:12px}
.secrow{display:flex;align-items:flex-start;gap:10px}
.secrow .check{align-items:flex-start}
.secrow .check input[type=checkbox]{margin-top:4px}
.mini{padding:18px;min-height:150px;border:1px solid #33333A;overflow:hidden}
.choice{text-decoration:none;color:inherit;gap:12px}
.choice:hover{border-color:var(--accent);filter:none}
.choice .btn{align-self:flex-start}
.tag{font-size:12px;color:var(--accent);letter-spacing:.04em}
.steptile{text-decoration:none;color:inherit;gap:4px}
.steptile:hover{border-color:var(--accent);filter:none}
.hero-ico{width:64px;height:44px;border:1px solid #44434A;border-radius:6px;position:relative;flex:none;overflow:hidden;background:#222226}
.hero-ico i,.hero-ico b{position:absolute;display:block}
.hero-ico.full i{inset:0;background:#4A3B2E}.hero-ico.full b{left:6px;bottom:6px;width:30px;height:5px;background:#fff;border-radius:2px}
.hero-ico.split i{right:4px;top:4px;bottom:4px;width:26px;background:#4A3B2E;border-radius:3px}.hero-ico.split b{left:6px;top:18px;width:22px;height:5px;background:#fff;border-radius:2px}
.hero-ico.text b{left:8px;top:12px;width:44px;height:9px;background:#fff;border-radius:2px}.hero-ico.text i{left:8px;top:26px;width:28px;height:4px;background:#777;border-radius:2px}
.fontopt .hero-ico{order:-1}

/* tour */
.tour{position:fixed;inset:0;z-index:100}
.tour-spot{position:fixed;border-radius:10px;box-shadow:0 0 0 9999px rgba(0,0,0,.66);border:2px solid var(--accent);transition:all .25s;pointer-events:none}
.tour-card{position:fixed;width:min(360px,calc(100vw - 24px));background:#F7F6F2;color:#17171A;border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:10px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.tour-card.center{left:50%!important;top:50%!important;transform:translate(-50%,-50%);box-shadow:0 0 0 9999px rgba(0,0,0,.66),0 20px 60px rgba(0,0,0,.5)}
.tour-card h2{font-size:20px;color:#17171A}
.tour-card .tour-text{font-size:15px;line-height:1.55;color:#33302C}
.tour-count{font-size:12px;color:#6B6862;font-weight:600}
.tour-btns{display:flex;gap:8px;align-items:center;margin-top:6px}
.tour-card .btn:not(.pri){background:#fff;color:#17171A;border-color:#D6D3CB}
.nav-sep{height:1px;background:#222226;margin:10px 12px}
.checklist .item{padding:10px 0}
.checklist .tick{width:24px;height:24px;border-radius:50%;border:2px solid #44434A;display:inline-flex;align-items:center;justify-content:center;font-size:13px;flex:none}
.checklist .done .tick{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.checklist .done b{text-decoration:line-through;color:var(--muted)}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* finances */
.mbars{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px;align-items:end;height:170px}
.mbar{display:flex;flex-direction:column;align-items:center;gap:6px;height:100%}
.mbar .bars{flex:1;width:100%;display:flex;gap:3px;align-items:flex-end;justify-content:center}
.mbar .bars span{width:42%;max-width:18px;border-radius:4px 4px 0 0;min-height:2px}
.mbar .in,.key.in{background:var(--accent)}.mbar .out,.key.out{background:#5B8DEF}
.key{display:inline-block;width:10px;height:10px;border-radius:2px;margin:0 4px 0 10px;vertical-align:middle}
tfoot td{border-top:1px solid var(--line);border-bottom:0}

/* plans */
.plan{position:relative;gap:12px}
.plan.best{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.plan .price{font-family:"Space Grotesk",sans-serif;font-size:40px;font-weight:700;margin-right:4px}
.plan .perks{margin:0;padding-left:18px;color:#C9C6C0;font-size:14px;display:flex;flex-direction:column;gap:4px}
.plan .btn{margin-top:auto}
.plan-dialog{border:0;border-radius:16px;padding:24px;max-width:460px;width:calc(100% - 32px);background:#F7F6F2;color:#17171A}
.plan-dialog::backdrop{background:rgba(0,0,0,.6)}
.plan-dialog h2{color:#17171A}
.plan-dialog .card{gap:4px;color:#17171A}
.plan-dialog .btn:not(.pri){background:#fff;color:#17171A;border-color:#D6D3CB}
.planbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}
.upl{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.autosave-note{margin:0}
.client-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}
.client-back{font-size:14px;font-weight:600;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.site .client-main{padding-top:20px}
.site .card{background:var(--panel);border-color:var(--line);color:var(--text)}
.site .flash{background:color-mix(in srgb,var(--accent) 14%,var(--panel));border-color:color-mix(in srgb,var(--accent) 40%,var(--panel));color:var(--text)}
.reqcard{border-color:#4A3B22}
.reqactions{align-items:flex-start}
.reqactions details{flex:1 1 260px}
.reqactions details summary{list-style:none;cursor:pointer;display:inline-flex}
.reqactions details summary::-webkit-details-marker{display:none}
.reqactions details[open] summary{border-color:var(--accent);color:var(--accent)}

.legal{max-width:760px;display:flex;flex-direction:column;gap:12px;line-height:1.7}
.legal h2{margin-top:18px;font-size:20px}
.legal ul{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.client-foot a{color:inherit}
