/* Ink 13.11 — engineering desk. Presentation only; the application's data,
   actions and architectural drawings are deliberately unchanged. */
@media screen {
  :root {
    --bg:#f4f6f3; --panel:#ffffff; --panel2:#edf2ef;
    --border:#c9d3d0; --text:#24343a; --muted:#52656a;
    --accent:#245e83; --green:#2c684c; --amber:#80501d; --red:#943e40;
    --ink-line:#dce3e0; --ink-strong:#a8b9b6; --ink-focus:#245e83;
    --ink-selected:#e0edf2; --ink-control:#f5f8f6;
    --ink-radius:8px; --ink-card:12px;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    color:var(--text); background:var(--bg); line-height:1.5;
  }
  body { color:var(--text); }
  ::selection { background:#cfe3e9; color:#183d52; }
  input,textarea { caret-color:var(--accent); }
  input[type=checkbox],input[type=radio] { accent-color:var(--accent); }
  :focus-visible { outline:2px solid var(--ink-focus); outline-offset:3px; }
  .app-shell,.auth-screen { background-color:var(--bg); background-image:linear-gradient(#f4f6f399,#f4f6f399),url('/circuit.svg?v=13.2'); }
  .sidebar .brand strong,.auth-panel .brand strong { font-size:15px; font-weight:720; letter-spacing:-.025em; }
  .sidebar .brand small,.auth-panel .brand small { font-size:11px; }
  .nav-link { border-radius:var(--ink-radius); font-size:13px; font-weight:620; color:var(--muted); }
  .nav-link.active { background:var(--ink-selected); color:#214e68; border-color:#b9cdd5; }
  .sidebar-bottom { border-color:var(--ink-line); }
  .sidebar-bottom p,.crumb,.footer,.auth-footnote,.auth-welcome p { color:var(--muted); }
  .crumb strong,.brand strong { color:var(--text); }
  .topbar { min-height:58px; }
  .role-pill,.role-pill.viewer { border:1px solid #c5d5da; border-radius:6px; color:#24516a; background:#e8f1f4; font-weight:650; }
  .page-heading h1,.detail-hero h2,.auth-welcome h1 { font-family:inherit; font-weight:680; letter-spacing:-.035em; line-height:1.17; color:var(--text); }
  .page-heading h1 { font-size:30px; margin:0 0 7px; }
  .section-heading h2,.detail-section-head h2,.insight-facade h3 { font-family:inherit; font-size:19px; font-weight:680; letter-spacing:-.025em; color:var(--text); }
  .page-heading > div:first-child > .eyebrow,.auth-welcome > .eyebrow { display:none; }
  .eyebrow { font-size:11px; font-weight:620; letter-spacing:.055em; }
  .eyebrow:before { display:none; }
  .page-heading p,.section-heading p,.detail-section-head p,.overview-hint,.floor-note { font-size:13px; line-height:1.5; color:var(--muted); }
  .page-heading { gap:18px; align-items:center; }
  .heading-actions { gap:6px; }
  .heading-actions .btn { font-size:12px; white-space:nowrap; }
  .btn,.icon-button { border-radius:var(--ink-radius); font-weight:620; box-shadow:none; transition:background-color .15s,border-color .15s,color .15s; }
  .btn { min-height:40px; padding:9px 13px; }
  .btn:hover:not(:disabled) { transform:none; }
  .btn-light,.btn-plain,.icon-button { color:#334d56; background:var(--ink-control); border:1px solid var(--border); }
  .btn-light:hover:not(:disabled),.btn-plain:hover:not(:disabled),.icon-button:hover { color:#204d65; background:var(--ink-selected); border-color:#9cb6c3; }
  .btn-primary,.auth-form .btn-primary { background:var(--accent); color:#fff; border:1px solid var(--accent); }
  .btn-primary:hover:not(:disabled),.auth-form .btn-primary:hover:not(:disabled) { background:#1b4a68; border-color:#1b4a68; }
  .btn-primary:disabled { background:#e0e7e7; color:#52666b; border-color:#ccd7d7; opacity:1; }
  .btn-danger,.delete-item-action { background:#f8e7e5; color:#8b3838; border:1px solid #dfbdbc; }
  .btn-danger:hover:not(:disabled),.delete-item-action:hover { background:#f0d3d1; color:#742e2f; }
  .insight-strip.metrics { border-radius:var(--ink-radius); border-color:var(--ink-strong); margin-top:22px; margin-bottom:18px; }
  .insight-mini { padding:10px 14px; background:#fcfdfb; border-color:var(--ink-line); }
  .insight-mini strong { font-size:23px; font-weight:680; letter-spacing:-.035em; }
  .insight-mini>span,.insight-mini small,.insight-card-line small { font-size:12px; color:var(--muted); }
  .section-heading { margin-top:24px; margin-bottom:14px; }
  .counter,.building-deadline { color:#465e63; background:#edf2ef; border-radius:5px; font-weight:600; }
  .priority-tag { background:#f5e9d8; color:#79501e; }
  .buildings-grid { gap:14px; }
  .building-card { --card-pad:16px; gap:8px; padding:var(--card-pad); border-radius:var(--ink-card); border-color:var(--border); background:#fff; }
  .building-illustration { height:132px; margin:calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 4px; border-bottom:1px solid var(--ink-line); }
  .building-top,.building-bottom { gap:8px; }
  .building-project { color:var(--muted); font-size:11px; letter-spacing:.025em; font-weight:650; }
  .building-number { font-family:inherit; font-size:23px; line-height:1.25; font-weight:680; letter-spacing:-.035em; }
  .building-chevron { color:var(--accent); font-size:12px; font-weight:630; white-space:nowrap; }
  .building-count,.building-bottom { font-size:12px; color:var(--muted); }
  .insight-card-line { border-color:var(--ink-line); color:var(--accent); padding-top:9px; margin-top:3px; font-weight:610; }
  .detail-back { color:var(--accent); font-size:13px; font-weight:650; min-height:36px; margin-bottom:12px; }
  .detail-hero { border-radius:var(--ink-card); background:#fff; }
  .detail-hero h2 { font-size:28px; }
  .detail-statistics { border-color:var(--ink-line); margin-top:16px; padding-top:14px; }
  .detail-stat strong { font-variant-numeric:tabular-nums; }
  .detail-tabs { padding:4px; background:#edf2ef; border-radius:var(--ink-radius); gap:4px; }
  .detail-tab { min-height:40px; font-weight:620; color:#465e63; border:1px solid transparent; }
  .detail-tab.active,.insight-mode .btn[aria-pressed=true] { color:#214e68; background:#fff; border:1px solid #a9c2ce; }
  .detail-work-card { background:#fff; border-radius:var(--ink-card); }
  .detail-work-card.draft { background:#f8faf7; }
  .detail-work-name { font-size:14px; font-weight:680; }
  .detail-group-title { font-size:14px; font-weight:670; }
  .detail-comment,.detail-comment.quiet,.detail-source,.detail-work-actions,.work-row { border-color:var(--ink-line); color:var(--muted); }
  .task-due-date { background:#e2efed; color:#285c57; }
  .readiness-track { background:#e4ebe7; }
  .readiness-fill { background:#4b8b72; }
  .data-message { background:#f0f4f2; color:#415b5d; border-color:var(--border); }
  .floor-scroll { background:#fff; border-radius:var(--ink-radius); scrollbar-color:#a7bbb8 #eef2ef; }
  .floor-table { border-spacing:3px; font-variant-numeric:tabular-nums; }
  .floor-table th,.floor-table tfoot :is(td,th),.floor-table tbody tr:last-child th { background:#edf2ef; color:#344d53; }
  .floor-table thead th { box-shadow:0 1px var(--border); }
  .floor-table tbody th { box-shadow:1px 0 var(--border); }
  .floor-cell { border-radius:5px; }
  .floor-pair { background:#f3f6f3; }
  .status.done,.fs-done { background:#dceee3; color:#285b40; }
  .status.active,.fs-active { background:#f6e9d3; color:#79501d; }
  .status.none,.fs-none { background:#f4e2df; color:#893c3b; }
  .status.unknown,.fs-unknown { background:#e8eeef; color:#4e6268; }
  .fs-na { background:#f1f3f0; color:#586461; }
  .floor-cell:is(button):hover { outline:2px solid var(--ink-focus); outline-offset:-2px; }
  .floor-cell:is(button):focus-visible { outline-offset:-2px; }
  .insight-facade { gap:14px; }
  .insight-facade-left,.insight-facade-detail { background:#fff; border-radius:var(--ink-card); }
  .cutaway-building { background:#f2f5f2; border-color:var(--border); }
  .cutaway-level[aria-pressed=true] { background:var(--ink-selected); }
  .cutaway-level[aria-pressed=true] .cutaway-module { outline-color:var(--accent); }
  .cutaway-level:focus-visible { outline:2px solid var(--ink-focus); outline-offset:-2px; }
  .auth-form input,.dialog-body :is(input:not([type=checkbox]):not([type=radio]),select,textarea),.floor-section-select,.toolbar select,.search { border:1px solid var(--ink-strong); border-radius:var(--ink-radius); background:#fff; color:var(--text); }
  .auth-form input:focus,.dialog-body :is(input,select,textarea):focus,.floor-section-select:focus,.toolbar select:focus,.search:focus-within { border-color:var(--ink-focus); box-shadow:none; }
  .search input { background:transparent; color:var(--text); }
  .auth-form input::placeholder,input::placeholder,textarea::placeholder { color:#576b70; }
  .auth-form label,.dialog-body label,.dialog-body small { color:#41565b; }
  .task-dialog { border:1px solid var(--ink-strong); border-radius:var(--ink-card); background:#fff; color:var(--text); box-shadow:0 16px 44px #253f4626; }
  .task-dialog::backdrop { background:#223b4866; }
  .dialog-head,.dialog-body,.dialog-actions { background:#fff; border-color:var(--ink-line); color:var(--text); }
  .dialog-head h2 { font-size:20px; font-weight:680; letter-spacing:-.02em; }
  .dialog-actions { background:#f8faf7; }
  .voice-scope { background:#e6eff1; color:#234f66; border:1px solid #c6d8df; font-size:14px; }
  .voice-changes,.insight-history-content { background:#f7faf7; color:var(--text); border-color:var(--border); }
  .voice-change,.voice-edit-row { border-color:var(--ink-line); }
  .voice-change span,.voice-edit-label small { color:var(--muted); }
  .voice-warning { background:#f8edd8; color:#70471c; border:1px solid #deca9c; border-radius:var(--ink-radius); }
  .form-error,.toast.error { background:#f8e4e1; color:#873939; border:1px solid #dfb8b5; border-radius:var(--ink-radius); }
  .duplicate-option { background:#f8faf7; border-color:var(--border); }
  .duplicate-option:has(input:checked) { background:var(--ink-selected); border-color:#a4c1cf; }
  .insight-report-table th { background:#edf2ef; color:var(--text); }
  .insight-history-entry { border-color:var(--ink-line); }
  .footer { border-top:1px solid var(--ink-line); padding-top:12px; }
  .boot-screen { color:var(--muted); }
  .spinner { border-color:#d5e4e2; border-top-color:var(--accent); }
}
@media screen and (hover:hover) {
  .building-card:hover { filter:none; border-color:#829fa9; background:#fdfefd; }
}
@media screen and (min-width:761px) {
  .app-shell .sidebar { border-right:1px solid #e6ebe7; }
  .app-shell .topbar { border-bottom:1px solid #e6ebe7; }
  .main { padding-top:28px; }
}
@media screen and (min-width:761px) and (max-width:1050px) {
  .page-heading { flex-wrap:wrap; }
  .heading-actions { justify-content:flex-start; }
  .buildings-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media screen and (max-width:760px) {
  .main { padding:16px 12px 20px; }
  .page-heading h1 { font-size:25px; }
  .page-heading { gap:12px; }
  .heading-actions .btn { min-height:44px; padding:8px 10px; }
  .building-card { --card-pad:13px; }
  .building-illustration { height:114px; }
  .building-number { font-size:21px; }
  .building-project,.building-deadline,.building-count { overflow-wrap:anywhere; }
  .insight-mini { padding:9px 10px; }
  .insight-mini strong { font-size:20px; }
  .detail-tab,.floor-bar .btn,.dialog-actions .btn,.voice-edit-row .btn { min-height:44px; }
  .detail-hero h2 { font-size:24px; }
  .voice-dialog .dialog-body textarea { font-size:16px; }
  .voice-edit-row select,.voice-edit-row input { font-size:16px; }
  .task-dialog .dialog-body { overscroll-behavior:contain; }
}
@media screen and (max-width:420px) {
  .building-card .building-top { flex-wrap:wrap; }
  .voice-dialog .dialog-actions { flex-wrap:wrap; }
  .voice-dialog .dialog-actions .btn { flex-basis:100%; }
  .voice-edit-add .floor-field { min-width:0; flex-basis:44%; }
}
@media (prefers-reduced-motion:reduce) {
  .btn,.building-card,.cutaway-module,.cutaway-selected-edge,.toast { transition:none; }
}
