/* Brew4U studio surfaces and controls. */
:root {
  color-scheme:light;
   --canvas:#f3f3f0; --paper:#ffffff;
  --surface-raised:#f2f1f5; --surface-selected:#e8e4fa;
  --ink:#201e29; --muted:#5e596a; --line:#d8d5df;
  --orange:#c3f234; --accent-text:#534192; --latte:#f1f8cb;
  --espresso:var(--ink); --cream:var(--paper); --roast:#202414;
  --green:var(--accent-text); --mint:var(--orange); --dark:#191720; --sidebar:#191721;
}
body { background:var(--canvas); }
.main-shell { background:transparent; }
button:focus-visible,a:focus-visible { outline:3px solid #534192; outline-offset:3px; }
input:focus,textarea:focus,select:focus { outline:2px solid #534192; outline-offset:2px; }
.sidebar { background:var(--sidebar); color:var(--muted); border-right:1px solid var(--line); }
.brand { display:flex; flex-direction:row; gap:5px; margin:0 0 25px; padding:0; color:#f4f4ef; }
.brand-logo { display:block; width:53px; height:53px; flex:none; object-fit:contain; }
.brand-lockup { min-width:0; }
.brand-wordmark { display:block; font-size:28px; line-height:1.1; font-weight:800; letter-spacing:-1.2px; color:#f4f4ef; }
.brand-wordmark span { color:#0000ff; }
.brand-sub { margin-top:6px!important; font-size:7px!important; letter-spacing:1px!important; }
.brand-sub { color:var(--muted); font-size:8px; letter-spacing:1.4px; margin:0; }
.workspace-picker { background:#302d38; border-color:var(--line); color:var(--ink); }
.workspace-picker small,.profile small { color:var(--muted); }
.avatar { background:var(--orange); color:var(--roast); border:1px solid #daeeb2; }
.nav-label { color:#5e596a; }
.nav-item { color:#201e29; }
.nav-item:hover { background:var(--surface-raised); color:var(--ink); }
.nav-item.active { background:var(--orange); color:var(--roast); }
.nav-count { background:#ffffff40; color:var(--ink); }
.nav-item.active .nav-count { background:#20241418; color:var(--roast); }
.nav-divider { background:var(--line); }
.nav-label-pill { border-color:#aaa6b5; color:#201e29; }
.nav-item.active .nav-label-pill { color:var(--roast); border-color:var(--roast); }
.local-card { background:#302d38; border-color:var(--line); }
.local-card strong,.profile { color:var(--ink); }
.local-card p { color:var(--muted); }
.local-label { color:var(--accent-text); }
.status-dot { background:var(--orange); }
.topbar { background:#fcfcfa; border-color:var(--line); }
.breadcrumbs,.icon-button,.slash,.prototype-label { color:var(--muted); }
.breadcrumbs strong { color:var(--ink); }
.icon-button:hover { background:var(--surface-selected); }
.statusbar { background:#f3f3f0; border-color:var(--line); color:var(--muted); }
.page-title { position:relative; border:1px solid var(--line); background:var(--paper);
  padding:28px 30px; border-radius:14px; gap:24px; }
.page-title { overflow:hidden; }
.hero-copy { flex:1; min-width:0; position:relative; }
.page-title>.button-row { position:relative; }
.page-title h1 { font-size:32px; line-height:1.15; color:var(--ink); }
.page-title .subtitle { max-width:650px; color:var(--muted); }
.page-title .button-row { justify-content:flex-start; }
.eyebrow { color:var(--accent-text); }
.button { border-color:#aaa6b5; color:var(--ink); background:var(--surface-raised); }
.button:hover { background:var(--surface-selected); border-color:#746294; }
.button.primary,.send { background:var(--orange); border-color:var(--orange); color:var(--roast); }
.button.primary:hover,.send:hover { background:#d4ff57; border-color:#d4ff57; }
.button.lime { background:var(--latte); color:var(--roast); border-color:var(--latte); }
.segmented { background:#f2f1f5; border-color:var(--line); }
.segmented button { color:var(--muted); }
.segmented button.active { color:var(--ink); background:var(--surface-selected); }
.project-info strong,.mini-card strong,.big-number { color:var(--ink); }
.project-symbol { background:var(--surface-selected); color:var(--accent-text); border:1px solid var(--line); }
.project-info small,.project-meta { color:var(--muted); }
.tag { background:#f2f1f5; border-color:#aaa6b5; color:#201e29; }
.tag.green { background:#173e3a; border-color:#5d9a7d; color:#c4f1cf; }
.tag.amber { background:#4a301b; border-color:#bc8950; color:#f1f8cb; }
.tag.dark { background:#191720; border-color:#aaa6b5; color:#f0ebff; }
.studio { background:var(--paper); border-color:var(--line); box-shadow:0 12px 32px #080a5225; }
.assistant-panel,.card,.mini-card { background:var(--paper); border-color:var(--line); }
.panel-title,.preview-toolbar { background:var(--surface-raised); color:var(--ink); }
.assistant-avatar,.mini-icon,.card-icon { background:var(--surface-selected); color:var(--accent-text); }
.assistant-body p,.card p,.mini-card small,.mini-card>span:last-child { color:var(--muted); }
.assistant-body p strong { color:var(--ink); }
.file-chip { background:var(--surface-raised); border-color:var(--line); color:var(--muted); }
.change-card { border-color:var(--line); }
.change-card-title { background:var(--surface-raised); color:var(--ink); }
.change-card-body { color:var(--muted); }
.change-card-body span { color:var(--accent-text); }
.assistant-note { color:var(--muted)!important; }
.suggestion { border-color:var(--line); background:var(--surface-raised); color:var(--ink); }
.suggestion:hover { background:var(--surface-selected); border-color:#746294; color:var(--ink); }
.composer { background:#ffffff; border-color:#aaa6b5; box-shadow:none; }
.composer textarea { color:var(--ink); }
.composer textarea::placeholder { color:var(--muted); }
.composer-actions small,.policy-summary { color:var(--muted); }
.policy-summary { background:#eeedf2; }
.policy-summary button,.text-button { color:var(--accent-text); }
.preview-panel { background:#eeedf2; }
.tabs button { color:var(--muted); }
.tabs button.active { color:var(--ink); border-color:var(--orange); }
.preview-tools .selected { color:var(--accent-text); background:var(--surface-selected); }
.address-bar { background:var(--paper); border-color:var(--line); color:var(--muted); }
.preview-frame { border-color:var(--line); }
.preview-footer { color:var(--muted); }
.wide-banner,.policy-card,.notice,.empty { background:var(--paper); border-color:var(--line); color:var(--ink); }
.wide-banner h3 { color:var(--ink); }
.wide-banner p,.empty p,.timeline-item p,.policy-card p,.notice { color:var(--muted); }
.field input,.field select,.field textarea { background:#f2f1f5; border-color:#aaa6b5; color:var(--ink); }
.field select { background-repeat:no-repeat; background-position:right 13px center; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23345d67'/%3E%3C/svg%3E"); }
.field small,.compact-note,.check-list small { color:var(--muted)!important; }
.result { background:var(--dark); color:#f0eef8; border:1px solid var(--line); }
.result-title { color:#d6f578; }
.meter { background:#e2dfee; }
.meter>span { background:var(--orange); }
.meter-label,.big-number small,.provider-row small { color:var(--muted); }
.provider-row,.check-list li { border-color:var(--line); color:var(--ink); }
.check-list svg { color:#25654a; }
.timeline { border-color:var(--line); }
.timeline-item:before { background:var(--orange); box-shadow:0 0 0 4px var(--paper); }
.policy-card.active { background:var(--surface-selected); border-color:var(--orange); box-shadow:0 0 0 1px var(--orange); }
.policy-card svg { color:var(--accent-text); }
.info-table th,.info-table td:last-child { color:var(--muted); }
.info-table th,.info-table td,.data-row { border-color:var(--line); }
.chart>span { background:#8776be; }
.chart>span:nth-last-child(-n+3) { background:var(--orange); }
.dialog-content>p { color:var(--muted); }
dialog { background:var(--paper); border-color:var(--line); box-shadow:0 24px 100px #211c2d80; }
dialog::backdrop { background:#211c2daa; }
.toast { background:#f3f3f0; border-color:#aaa6b5; color:var(--ink); }
.dialog-title h2 { color:var(--ink); }
@media(max-width:980px) { .page-title { padding:24px; gap:22px; } .page-title h1 { font-size:29px; } }
@media(max-width:700px) {
  .page-title { padding:22px 20px; gap:14px; align-items:flex-start; }
  .page-title h1 { font-size:28px; }
  .page-title .subtitle { font-size:13px; }
  .studio { border-radius:10px; }
}

/* The dark rail frames a pearl workspace and the recolored DEVLAB illustration. */
.sidebar {
  background:linear-gradient(165deg,#22202b 0%,var(--sidebar) 45%,#1e1a29 100%);
  border-right:1px solid #36323f;
}
.sidebar .brand { align-self:flex-start; gap:5px; padding:2px 5px; background:transparent; }
.brand-logo { width:45px; height:52px; }
.brand-wordmark { font-size:29px; letter-spacing:-1.65px; }
/* "SnarkByte" is wider than the old wordmark. On the 200 px rail it would reach the edge. */
@media (min-width:701px) and (max-width:1200px) { .brand-wordmark { font-size:25px; letter-spacing:-1.3px; } }
.sidebar .nav-label { color:#aca5bb; }
.sidebar .nav-divider { background:#3d3849; }
.sidebar .nav-item,.sidebar .profile,.sidebar .workspace-picker { color:#ece9f2; }
.sidebar .profile small,.sidebar .workspace-picker small { color:#c3bdce; }
.workspace-picker { border-color:#484250; }
.sidebar .nav-count,.sidebar .nav-label-pill { background:#332e3e; border-color:#575064; color:#dad5e4; }
.sidebar .nav-item:hover { background:#35303f; color:white; }
.sidebar .nav-item.active { background:var(--orange); color:#202414; }
.sidebar .nav-item.active .nav-count,.sidebar .nav-item.active .nav-label-pill { background:#a7d32b; color:#202414; }
.sidebar .profile { border-top:1px solid #403947; }
.mobile-mark { display:none; }
.topbar { background:#fafaf8; }
.prototype-label .status-dot,.statusbar .status-dot { background:#667d21; }
button:focus-visible,a:focus-visible { outline-color:#7453bd; }
.sidebar :focus-visible { outline-color:#e0cfff; }

.page-title {
  isolation:isolate; position:relative; overflow:hidden;
  border:1px solid #cfccd4; border-radius:16px;
  background:radial-gradient(ellipse at 8% 0%,#eeffb9 0%,transparent 48%),
    radial-gradient(ellipse at 78% 100%,#d8cdf7 0%,transparent 65%),#faf9fc;
}
.page-title:after { content:""; position:absolute; pointer-events:none; z-index:-1; top:-100%; right:-6%; width:36%; height:227%; border:1px solid #ada3c6; border-radius:50%; transform:rotate(-20deg); }
.segmented button.active { background:white; box-shadow:0 1px 4px #221c3329; }
.button.primary,.send { border-color:#8faf32; }
.preview-toolbar,.panel-title { border-color:var(--line); }
.workspace-picker .avatar,.top-avatar,.profile .avatar { background:#e3dbf6; border-color:#bcb0ce; color:#332940; }
.under-studio .mini-icon,.assistant-avatar { background:#e4f4ba; color:#526724; }
@media(max-width:700px) {
  .mobile-mark { display:block; object-fit:contain; }
  .sidebar:not(.open) { box-shadow:none; }
}

/* Project cover and action shelf */
.workspace-hero {
  position:relative; isolation:isolate; display:flex; align-items:center;
  min-height:210px; overflow:hidden; border-radius:18px 18px 0 0; color:#faf8ff;
  background-color:#24202b;
  background-image:linear-gradient(105deg,#19171ee6,transparent 78%),
    linear-gradient(#dfd2fb10 1px,transparent 1px),linear-gradient(90deg,#dfd2fb10 1px,transparent 1px);
  background-size:auto,24px 24px,24px 24px;
}
.workspace-intro { position:relative; z-index:1; width:54%; padding:28px clamp(20px,3vw,48px); }
.workspace-hero .eyebrow { display:flex; align-items:center; gap:8px; color:#c7eca0; font-size:10px; letter-spacing:.14em; text-transform:uppercase; font-weight:650; }
.workspace-hero .eyebrow svg,.workspace-meta svg { width:15px; height:15px; }
.workspace-hero h1 { color:#fbf9ff; font-size:clamp(42px,5.4vw,86px); line-height:1; letter-spacing:-.065em; margin:14px 0 19px; overflow-wrap:anywhere; }
.workspace-meta,.workspace-meta span { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.workspace-meta { color:#dfd9e4; font-size:12px; gap:6px 12px; }
.workspace-meta span+span { padding-left:12px; border-left:1px solid #645e6a; }
.lab-plate { position:absolute; inset:0 0 0 53%; clip-path:polygon(13% 0,100% 0,100% 100%,0 100%); background-color:#e6e0f2;
  background-image:radial-gradient(#53419237 .85px,transparent 1px),linear-gradient(115deg,#d3ed98,#f0f1de 38%,#d1c3ec 95%); background-size:9px 9px,auto; }
.lab-plate:after { content:""; position:absolute; inset:0; background:url("assets/devlab-studio.webp") center / auto 100% no-repeat; }
.project-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid var(--line); border-top:0; border-radius:0 0 16px 16px; overflow:hidden; background:white; }
.project-action { display:flex; align-items:center; text-align:left; justify-content:flex-start; gap:12px; padding:16px clamp(12px,1.65vw,28px); background:transparent; color:var(--ink); }
.project-action+.project-action { border-left:1px solid var(--line); }
.project-action:hover { background:#f3f1f7; }
.project-action:focus-visible { outline-offset:-4px; }
.action-symbol { width:34px; height:34px; flex:none; border-radius:10px; display:grid; place-items:center; background:#ebe6f8; color:#504071; }
.project-action:nth-child(2) .action-symbol { background:#e4f4ba; color:#495d20; }
.project-action:nth-child(3) .action-symbol { background:#efede4; color:#585140; }
.project-action strong,.project-action small { display:block; }
.project-action strong { font-size:14px; font-weight:650; }
.project-action small { margin-top:3px; font-size:11px; color:var(--muted); }
.action-arrow { margin-left:auto; color:#6b6574; }
.workbench-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; margin:24px 0 14px; }
.workbench-heading h2 { margin:0; font-size:clamp(24px,2vw,32px); letter-spacing:-.055em; }
@media(max-width:700px) {
  .workspace-hero { min-height:162px; }
  .workspace-intro { padding:21px 14px; width:60%; }
  .workspace-hero h1 { font-size:42px; margin:12px 0; }
  .workspace-meta { font-size:11px; gap:5px 7px; }
  .workspace-meta span:first-child { flex-basis:100%; }
  .workspace-meta span:nth-child(2) { padding:0; border:0; }
  .workspace-meta span+span { padding-left:6px; }
  .lab-plate { left:60%; }
  .lab-plate:after { background-size:auto 90%; background-position:52% center; }
  .project-action { position:relative; flex-direction:column; align-items:flex-start; gap:7px; padding:12px 9px; }
  .project-action strong { font-size:12px; }
  .project-action small { display:none; }
  .action-arrow { position:absolute; right:9px; top:14px; }
  .action-symbol { width:27px; height:27px; border-radius:8px; }
  .workbench-heading { margin-top:21px; }
  .workbench-heading .button-row { gap:4px; }
  .workbench-heading .button,.workbench-heading .segmented button { font-size:11px; padding:7px; }
}
