/* Ink theme. Artwork is decorative and lives behind the functional UI. */
:root{color-scheme:light;--bg:#f7f8f4;--panel:#fff;--panel2:#f0f3f0;--border:#c7d0cc;--text:#222d31;--muted:#506160;--accent:#245e83;--green:#316348;--amber:#895022;--red:#913e40}
body,.workspace,.auth-screen{background:var(--bg) url('/circuit.svg?v=13.2') repeat}
.auth-panel,.main{background:transparent}
.auth-panel .brand strong,.brand strong,.auth-welcome h1{color:var(--text)}
.auth-welcome h1,.page-heading h1,.section-heading h2,.detail-hero h2,.building-number,.insight-facade h3{font-family:Georgia,'Times New Roman',serif;font-weight:normal;letter-spacing:-.045em}
.brand-mark{background:#263c43;color:#fff;border:0;border-bottom:3px solid #c07c4a;border-radius:3px;box-shadow:none}
.sidebar,.topbar,.detail-hero,.insight-mini,.insight-facade-left,.insight-facade-detail,.floor-scroll,.detail-work-card.draft,.task-dialog,.dialog-head,.dialog-body,.dialog-actions{background:#fcfcf9;color:var(--text);border-color:var(--border)}
.brand small,.brand-dark small,.sidebar-info,.detail-stat span,.detail-hero p,.detail-hero .eyebrow,.detail-hero .handover-date,.building-project,.detail-source,.building-count,.building-bottom,.floor-note,.eyebrow,.detail-comment,.detail-comment.quiet,.detail-statistics,.cutaway-level,.user-email{color:var(--muted)}
.eyebrow:before{content:'';display:inline-block;width:18px;height:3px;background:#b76b3c;margin-right:8px;vertical-align:middle}
.nav-link.active,.detail-tab.active,.insight-mode .btn[aria-pressed=true],.role-pill,.role-pill.viewer,.voice-scope{background:#dceaf0;color:#214f6a;border-color:#afc5cd}
.nav-link:hover,.detail-tab:hover{background:#e4ecee;color:#254959}
.nav-icon,.text-button,.insight-floor-pct,.insight-card-line,.detail-edit,.building-chevron,.handover-edit{color:var(--accent)}
.detail-tabs,.auth-form input,.dialog-body :is(input,select,textarea),.floor-section-select,.toolbar select,.search,.voice-edit-row select,.voice-edit-row input{background:#fff;color:var(--text);border-color:#a9b6b6}
input::placeholder,textarea::placeholder,.auth-form input::placeholder{color:#63757b}
.detail-tab,.dialog-body label,.detail-stat strong,.detail-hero h2,.detail-statistics strong{color:var(--text)}
.btn-primary,.auth-form .btn-primary{background:#245e83;color:white;border-color:#245e83}.btn-primary:hover:not(:disabled),.auth-form .btn-primary:hover:not(:disabled){background:#174663;color:white}
.btn-light,.btn-plain,.icon-button,.counter,.building-deadline,.data-message,.task-due-date.quiet,.insight-history-content,.insight-report-table th,.voice-changes,.floor-table th,.floor-table tfoot :is(td,th),.floor-table tbody tr:last-child th,.floor-pair{background:#eaf0ef;color:#334b53;border-color:var(--border)}
.btn-light:hover:not(:disabled),.btn-plain:hover:not(:disabled){background:#dae7eb;color:#1a485e}
.status.done,.fs-done{background:#deece6;color:#29533e}.status.active,.fs-active,.voice-warning{background:#f5e6d5;color:#804519}.status.none,.fs-none,.form-error{background:#f2dfde;color:#863638}.status.unknown,.fs-unknown,.fs-na{background:#e8ece9;color:#4c5956}
.building-card{overflow:hidden;gap:9px}
.building-illustration{align-self:stretch;display:grid;place-items:center;height:124px;overflow:hidden;margin:-19px -19px 4px;background:linear-gradient(#b7cbd6,#edf0ea 74%,#d3dedb);border-bottom:1px solid var(--border)}
.building-illustration > svg{height:100%;width:100%;display:block}
.cutaway-building{background:#f2f5f1;border-color:#b6c3c3}.cutaway-level .insight-level-number,.cutaway-level .insight-level-pct{color:#43555c}
.cutaway-level[aria-pressed=true]{background:#d4e5ed}.cutaway-level[aria-pressed=true] :is(.insight-level-number,.insight-level-pct){color:#174c69}.cutaway-level[aria-pressed=true] .cutaway-module{outline-color:#376e8c}
:focus-visible{outline-color:#376e8c}.floor-cell:is(button):hover{outline-color:#376e8c}
@media(max-width:760px){.building-illustration{height:104px;margin:-13px -13px 3px}}
@media print{body,.workspace{background:white}}

/* Keep the complete routing plane at one uniform scale. */
.pcb-field{display:none}
@media(min-width:761px){
  .sidebar{background:white;align-self:flex-start;position:sticky;top:0;height:100vh;height:100dvh;min-height:560px}
  .pcb-field{display:block;flex:1;min-height:0;margin-block:-13px;pointer-events:none;background:transparent url('/sidebar-board.svg?v=13.7') center / contain no-repeat}
}
@media (hover: hover) {
  .building-card:hover { filter: brightness(.94); border-color:#879d90; }
}
.building-card:focus-visible { outline: 2px solid #427191; outline-offset: 2px; }

/* Brushed green-metal nameplate for the workspace navigation. */
.sidebar .brand,.auth-panel .brand{padding-inline:0;gap:9px}
.sidebar .brand-mark,.auth-panel .brand-mark{
  width:38px;height:36px;flex:0 0 38px;border-radius:4px;
  color:#f0f5e9;border:1px solid #425e50;
  background:repeating-linear-gradient(0deg,transparent 0 2px,#f0fae90c 2px 3px),
    linear-gradient(115deg,#29493e 0%,#56755f 39%,#3c604d 56%,#284a3f 100%);
  box-shadow:inset 0 1px #c4d2b9,inset 0 -1px #263e33;
}
.sidebar .brand small,.auth-panel .brand small{font-size:10px;line-height:1.45;color:#52665a;letter-spacing:.1px}

/* Fade the paper into the shared circuit print at both edges of the workspace. */
@media screen {
  .app-shell {
    background: var(--bg) url('/circuit.svg?v=13.2') repeat;
  }
  .app-shell .workspace {
    background: linear-gradient(to right, white, rgb(255 255 255 / 0) 58px);
  }
  .app-shell .sidebar {
    background: white;
    border-right-color: transparent;
    border-bottom-color: transparent;
  }
  .app-shell .topbar { background: white; border-bottom-color: transparent; }
  .workspace > .main {
    background: linear-gradient(to bottom, white, rgb(255 255 255 / 0) 48px);
  }
}
@media screen and (max-width:760px) {
  .app-shell .workspace { background: transparent; }
  .workspace > .main {
    background: linear-gradient(to bottom, white, rgb(255 255 255 / 0) 32px);
  }
}
