:root {
  --ink: #ece9df;
  --muted: #a7aaa3;
  --muted-2: #777c76;
  --line: #343a36;
  --canvas: #171a19;
  --paper: #202422;
  --forest: #101312;
  --forest-2: #1a201d;
  --mint: #cad1c8;
  --mint-strong: #91c6a0;
  --orange: #8fc9a0;
  --orange-soft: #26352d;
  --yellow: #aab792;
  --yellow-soft: #2a3029;
  --blue: #a3aaa4;
  --blue-soft: #292f2c;
  --shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--canvas); color: var(--ink); font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; font-size: 13px; }
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(74, 126, 165, .26); outline-offset: 2px; }

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #111513; }
.auth-card { width: min(100%, 390px); padding: 30px; border: 1px solid #34433a; border-radius: 8px; background: #1c231f; box-shadow: 0 18px 55px rgba(0, 0, 0, .32); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; color: #f0f5f1; font-size: 16px; font-weight: 800; letter-spacing: .03em; }
.auth-brand .brand-mark { width: 36px; height: 36px; }
.auth-brand strong span { color: #f18a70; }
.auth-card h1 { margin: 0; font-size: 26px; }
.auth-subtitle { margin-top: 8px; color: #9ba69e; font-size: 11px; }
.auth-form { display: grid; gap: 8px; margin-top: 24px; }
.auth-form label { color: #b5c0b8; font-size: 10px; font-weight: 700; }
.auth-form input { min-height: 40px; padding: 0 11px; color: #edf3ed; border: 1px solid #46544b; border-radius: 5px; outline: 0; background: #141a16; }
.auth-form input:focus { border-color: #8fc9a0; box-shadow: 0 0 0 2px rgba(143, 201, 160, .14); }
.password-field { position: relative; }
.password-field input { width: 100%; padding-right: 74px; }
.password-field button { position: absolute; top: 50%; right: 8px; padding: 5px 4px; color: #9fc4aa; border: 0; background: transparent; font-size: 9px; font-weight: 800; transform: translateY(-50%); }
.auth-submit { width: 100%; min-height: 41px; margin-top: 8px; }
.auth-submit:disabled { opacity: .6; cursor: wait; }
.auth-status { min-height: 18px; margin: 3px 0 0; color: #e2a08b; font-size: 10px; line-height: 1.45; }
.auth-status:empty { display: none; }

.app-shell { min-height: 100vh; display: flex; align-items: flex-start; }
.sidebar { width: 242px; flex: 0 0 242px; background: var(--forest); color: #ecf4f0; display: flex; flex-direction: column; padding: 25px 16px 17px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 28px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--orange); display: grid; place-items: center; color: white; }
.brand-mark svg { width: 19px; height: 19px; stroke-width: 2.2; }
.brand strong { display: block; letter-spacing: .03em; font-size: 14px; line-height: 1.1; }
.brand strong span, .mobile-brand span { color: #f18a70; }
.brand small { display: block; color: #96aaa2; font-size: 9px; margin-top: 4px; }
.sidebar-label { color: #718981; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; font-size: 9px; padding: 0 9px 8px; }
.project-switcher { width: 100%; color: #f0f6f3; background: var(--forest-2); border: 1px solid #2d4840; border-radius: 8px; display: flex; align-items: center; gap: 9px; padding: 9px 8px; text-align: left; }
.project-switcher > svg { margin-left: auto; width: 14px; color: #8ba198; }
.project-avatar { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: #14332b; background: #b9decc; font-weight: 800; font-size: 12px; }
.project-copy { min-width: 0; }
.project-copy strong, .project-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-copy strong { font-size: 10px; font-weight: 700; }
.project-copy small { color: #87a097; font-size: 9px; margin-top: 3px; }
.main-nav { display: grid; gap: 5px; margin-top: 26px; }
.nav-item { height: 40px; border-radius: 7px; padding: 0 11px; display: flex; align-items: center; gap: 11px; color: #a3b5ae; background: transparent; text-align: left; }
.nav-item svg { width: 17px; height: 17px; stroke-width: 1.8; }
.nav-item span { font-weight: 600; font-size: 12px; }
.nav-item.active { color: #fff; background: #29433b; }
.nav-item.active svg { color: #8ad4b2; }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 20px; display: grid; place-items: center; font-size: 10px; color: #17332c; background: #9ad9bb; }
.nav-count-muted { color: #9aaea5; background: #344e45; }
.sidebar-bottom { margin-top: auto; }
.shift-card { border-top: 1px solid #2a443c; padding: 18px 9px 16px; }
.shift-card-top { display: flex; align-items: center; gap: 7px; color: #bbd0c7; font-size: 10px; }
.shift-card-top strong { margin-left: auto; color: #e7f1ed; font-size: 10px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #7bdaa8; box-shadow: 0 0 0 4px rgba(123, 218, 168, .11); }
.shift-progress { height: 4px; background: #345047; margin: 12px 0 7px; border-radius: 4px; overflow: hidden; }
.shift-progress span { display: block; height: 100%; background: #8acfab; border-radius: inherit; }
.shift-card small { color: #718d83; font-size: 9px; }
.user-card { width: 100%; display: flex; align-items: center; gap: 9px; color: #eef5f2; background: transparent; padding: 10px 8px 0; border-top: 1px solid #2a443c; text-align: left; }
.user-avatar { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e3b77f; color: #5f3f23; font-size: 9px; font-weight: 800; }
.user-card span:not(.user-avatar) { min-width: 0; }
.user-card strong, .user-card small { display: block; }
.user-card strong { font-size: 10px; }
.user-card small { color: #7c978d; font-size: 9px; margin-top: 3px; }
.user-card > svg { margin-left: auto; width: 15px; color: #789288; }

.main-content { flex: 1; min-width: 0; padding: 0 36px 48px; }
.topbar { height: 73px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.top-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.top-nav-item { color: #929a94; background: transparent; border-radius: 5px; padding: 8px 10px; font-size: 10px; font-weight: 800; }
.top-nav-item:hover { color: #e5e3db; background: #252b27; }
.top-nav-item.active { color: #d4b39e; background: #2c2927; }
.mobile-brand { display: none; align-items: center; gap: 8px; font-size: 13px; }
.mobile-brand .brand-mark { width: 28px; height: 28px; border-radius: 7px; }
.mobile-brand .brand-mark svg { width: 16px; }
.topbar-date { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 600; margin-right: 22px; }
.topbar-date svg { width: 15px; color: var(--muted-2); }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.icon-button { position: relative; width: 33px; height: 33px; display: grid; place-items: center; color: var(--muted); background: transparent; border-radius: 7px; }
.icon-button:hover { color: var(--ink); background: #e9efec; }
.icon-button svg { width: 17px; }
.icon-button.small { width: 28px; height: 28px; border: 1px solid var(--line); background: var(--paper); }
.icon-button.small svg { width: 14px; }
.notification-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); top: 6px; right: 6px; border: 1px solid var(--canvas); }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; color: #668178; font-size: 10px; font-weight: 700; }
.demo-badge span { width: 6px; height: 6px; border-radius: 50%; background: #7cc5a3; }

.view { display: none; padding-top: 35px; animation: appear .25s ease-out; }
.view.active { display: block; }
@keyframes appear { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.heading-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.report-cta { min-height: 38px; }
.eyebrow, .section-kicker { color: #8a9691; text-transform: uppercase; letter-spacing: .12em; font-size: 9px; font-weight: 800; margin: 0 0 8px; }
h1, h2, p { margin: 0; }
h1 { font-size: 27px; line-height: 1.22; letter-spacing: -.03em; }
h2 { font-size: 15px; line-height: 1.3; letter-spacing: -.01em; }
.subheading { color: var(--muted); font-size: 12px; margin-top: 8px; }
.button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 6px; padding: 0 13px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.button svg { width: 15px; height: 15px; }
.button-primary { color: #fff; background: var(--forest); }
.button-primary:hover { background: #26433a; }
.button-secondary { color: #46675d; border: 1px solid #d7e2dd; background: #fff; }
.button-secondary:hover { border-color: #aec7bc; background: #fbfdfc; }
.button-ghost { color: var(--muted); background: transparent; }
.button-ghost:hover { color: var(--ink); }
.upload-button { cursor: pointer; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.metric-card { min-height: 128px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 16px 17px 13px; box-shadow: var(--shadow); }
.metric-primary { background: var(--forest); border-color: var(--forest); color: #fff; }
.metric-warning { background: #fffdf8; border-color: #f4e5bd; }
.metric-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 700; }
.metric-primary .metric-label { color: #a4c0b5; }
.metric-warning .metric-label { color: #9c8151; }
.metric-label svg { width: 16px; height: 16px; color: #98aaa4; }
.metric-primary .metric-label svg { color: #83caa8; }
.metric-warning .metric-label svg { color: var(--yellow); }
.metric-value { margin-top: 14px; font-size: 29px; letter-spacing: -.05em; font-weight: 800; }
.metric-value em { color: var(--muted-2); font-size: 13px; font-style: normal; letter-spacing: 0; font-weight: 700; }
.metric-primary .metric-value { color: #fff; }
.metric-warning .metric-value { color: #a16d20; }
.metric-foot { display: flex; justify-content: space-between; gap: 8px; color: var(--muted-2); font-size: 9px; margin-top: 9px; }
.metric-primary .metric-foot { color: #84a89b; }
.metric-warning .metric-foot { color: #b69b68; }
.positive { color: #55a984; font-weight: 800; display: inline-flex; gap: 3px; align-items: center; }
.metric-primary .positive { color: #86d4aa; }
.positive svg { width: 12px; height: 12px; }
.neutral { color: #70a28c; }
.warning-text { color: #ce812e; font-weight: 800; }

.main-grid, .lower-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(310px, .78fr); gap: 17px; }
.lower-grid { margin-top: 17px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.tasks-panel, .report-panel, .progress-panel, .alerts-panel { padding: 19px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
.section-kicker { display: block; margin-bottom: 6px; color: #9aa39f; }
.task-counter { min-width: 45px; height: 25px; padding: 0 8px; border-radius: 5px; background: #edf5f1; color: #568572; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.task-list { display: grid; gap: 9px; }
.task-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 67px; border: 1px solid #e9eeec; border-radius: 7px; padding: 9px 11px; transition: .2s ease; }
.task-item:hover { border-color: #cddbd5; }
.task-item.is-done { background: #f6fbf8; }
.task-check { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: transparent; border: 1.5px solid #cedbd5; background: #fff; }
.task-check svg { width: 13px; }
.task-item.is-done .task-check { color: #fff; border-color: #65b48e; background: #65b48e; }
.task-main { min-width: 0; }
.task-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.task-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.task-item.is-done .task-title strong { color: #789088; text-decoration: line-through; }
.task-tag { flex: 0 0 auto; border-radius: 3px; padding: 3px 5px; font-size: 8px; line-height: 1; font-weight: 800; }
.tag-heat { color: #c76148; background: #fff0eb; }
.tag-sewer { color: #4f8272; background: #e9f5ef; }
.tag-vent { color: #4a7ea5; background: #edf5fa; }
.tag-water { color: #4e8e85; background: #ebf6f2; }
.tag-elec { color: #a3752b; background: #fff7e5; }
.task-meta { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 9px; margin-top: 6px; }
.task-meta svg { width: 11px; height: 11px; }
.task-progress { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.task-progress-bar { height: 4px; width: 96px; border-radius: 4px; background: #edf1ef; overflow: hidden; }
.task-progress-bar span { display: block; height: 100%; border-radius: inherit; background: #77b898; transition: width .4s ease; }
.task-progress small { color: var(--muted-2); font-size: 9px; }
.task-priority { align-self: start; border-radius: 3px; padding: 4px 6px; color: #b8724d; background: #fff2eb; font-size: 8px; font-weight: 800; }
.task-priority.low { color: #5c9080; background: #edf7f1; }
.text-button { display: inline-flex; align-items: center; gap: 7px; color: #5c8474; background: transparent; padding: 15px 0 0; font-size: 10px; font-weight: 800; }
.text-button:hover { color: var(--ink); }
.text-button svg { width: 14px; }
.text-button.compact { padding: 0; font-size: 9px; }

.report-panel { background: #fdfefe; }
.mic-status { display: inline-flex; align-items: center; gap: 5px; color: #84a399; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mic-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #8ac9a9; }
.mic-status.recording { color: var(--orange); }
.mic-status.recording::before { background: var(--orange); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.recorder-area { min-height: 167px; border: 1px dashed #cddcd4; border-radius: 7px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: #fbfdfc; }
.mic-button { position: relative; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--orange); margin-bottom: 10px; box-shadow: 0 8px 20px rgba(239, 105, 75, .22); }
.mic-button:hover { background: #df5e41; transform: translateY(-1px); }
.mic-button svg { position: relative; z-index: 2; width: 25px; height: 25px; }
.mic-ripple { position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(239, 105, 75, .24); }
.mic-button.recording .mic-ripple { animation: ripple 1.7s infinite; }
@keyframes ripple { 0% { transform: scale(.85); opacity: 1; } 80%, 100% { transform: scale(1.25); opacity: 0; } }
.recorder-area strong { font-size: 11px; }
.recorder-area p { max-width: 260px; margin-top: 6px; color: var(--muted-2); font-size: 9px; line-height: 1.5; }
.transcript-wrap { margin-top: 16px; }
.transcript-label { display: flex; align-items: center; justify-content: space-between; color: #77867f; font-size: 9px; font-weight: 800; margin-bottom: 7px; }
.voice-chip { display: inline-flex; align-items: center; gap: 4px; color: #7a9b8d; font-weight: 700; }
.voice-chip svg { width: 12px; }
textarea { resize: vertical; width: 100%; min-height: 72px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; padding: 10px; line-height: 1.5; font-size: 10px; }
textarea::placeholder { color: #b4bdb8; }
.transcript-actions { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.transcript-actions .button { min-height: 31px; font-size: 10px; }
.quick-reports { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 14px; color: #a1aaa6; font-size: 9px; }
.quick-reports button { color: #608477; background: #eef6f1; border-radius: 4px; padding: 5px 7px; font-size: 9px; font-weight: 700; }
.quick-reports button:hover { background: #e2f0e9; }

.progress-panel { min-height: 294px; }
.chart-legend { display: flex; align-items: center; gap: 15px; color: #97a39e; font-size: 9px; margin-top: -3px; }
.chart-legend strong { margin-left: auto; color: #5c9a7c; font-size: 9px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }
.legend-dot.plan { background: #b8cac2; }
.legend-dot.fact { background: #69b18d; }
.chart { height: 183px; display: flex; margin-top: 16px; }
.y-labels { width: 34px; display: flex; flex-direction: column; justify-content: space-between; padding: 0 0 19px; color: #a8b1ad; font-size: 8px; }
.chart-body { position: relative; flex: 1; padding-bottom: 21px; }
.grid-line { position: absolute; left: 0; right: 0; border-top: 1px dashed #e7edeb; }
.line-100 { top: 0; }.line-75 { top: 25%; }.line-50 { top: 50%; }.line-25 { top: 75%; }
.chart-bars { position: absolute; inset: 0 0 21px; display: flex; align-items: end; justify-content: space-between; gap: 8%; padding: 0 3%; }
.chart-bars span { width: 8%; border-radius: 3px 3px 0 0; background: #d9e4df; position: relative; z-index: 1; }
.chart-bars span.today-bar { background: #77bb98; }
.chart-line { position: absolute; inset: 0 0 21px; color: #ef9e7f; z-index: 2; pointer-events: none; }
.chart-line svg { width: 100%; height: 100%; overflow: visible; }
.x-labels { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 0 1%; color: #a8b1ad; font-size: 8px; }
.alerts-panel { min-height: 294px; }
.alert-list { display: grid; gap: 10px; }
.alert-item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; gap: 9px; padding: 11px 9px; border-radius: 6px; }
.alert-danger { background: #fff4f0; border: 1px solid #f8ddd4; }
.alert-info { background: #f1f7fb; border: 1px solid #dcebf3; }
.alert-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 6px; }
.alert-danger .alert-icon { color: #df795f; background: #ffe2da; }.alert-info .alert-icon { color: #5e91b3; background: #deedf6; }
.alert-icon svg { width: 15px; }
.alert-item strong { display: block; font-size: 10px; line-height: 1.4; }
.alert-item p { color: #89948f; font-size: 9px; line-height: 1.5; margin-top: 4px; }
.alert-item time { color: #a5afaa; font-size: 8px; white-space: nowrap; }
.alert-action { display: inline-flex; align-items: center; gap: 4px; color: #668b7d; background: transparent; padding: 7px 0 0; font-size: 9px; font-weight: 800; }
.alert-action svg { width: 12px; }

.drawing-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; padding: 10px 13px; border: 1px solid var(--line); background: var(--paper); border-radius: 7px; }
.format-capability-panel { margin-bottom: 15px; padding: 15px 19px; }
.format-capability-panel .panel-heading { margin-bottom: 12px; }
.format-capability-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.format-capability { min-width: 0; padding: 9px; border: 1px solid #343a36; border-radius: 5px; background: #1b201d; }
.format-capability strong { display: block; color: #e3e4dc; font-size: 9px; line-height: 1.35; }
.format-capability span, .format-capability small { display: block; margin-top: 5px; font-size: 8px; line-height: 1.35; }
.format-capability .format-accepted { color: #8fc9a0; font-weight: 800; }
.format-capability small { color: #8d968e; }
.format-capability-note { margin-top: 10px; color: #9a9f98; font-size: 9px; line-height: 1.45; }
.filter-title { display: flex; align-items: center; gap: 7px; color: #63746d; white-space: nowrap; font-size: 10px; }
.filter-title svg { width: 14px; color: #8ca098; }
.filter-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.filter-chip { color: #7d8b85; background: #f1f5f3; border-radius: 4px; padding: 7px 8px; font-size: 9px; font-weight: 700; }
.filter-chip span { color: #a1ada7; margin-left: 3px; }.filter-chip.active { color: #fff; background: var(--forest); }.filter-chip.active span { color: #9bcab5; }
.drawing-search { margin-left: auto; width: 160px; position: relative; }.drawing-search svg { position: absolute; left: 9px; top: 8px; width: 13px; color: #9aa6a1; }.drawing-search input { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 7px 8px 7px 27px; color: var(--ink); background: #fff; font-size: 9px; }
.drawings-layout { display: grid; grid-template-columns: minmax(260px, .76fr) minmax(0, 1.24fr); gap: 17px; }.drawing-list-panel, .drawing-preview-panel { padding: 19px; }.file-rule { display: inline-flex; align-items: center; gap: 5px; color: #6d9885; background: #eff8f2; border-radius: 4px; padding: 6px 7px; font-size: 9px; font-weight: 800; }.file-rule svg { width: 12px; }
.drawing-list { display: grid; gap: 6px; }.drawing-row { display: flex; align-items: center; gap: 9px; padding: 10px 9px; border: 1px solid transparent; border-radius: 6px; }.drawing-row:hover, .drawing-row.active { border-color: #d5e4dc; background: #f5faf7; }.drawing-row.active { box-shadow: inset 3px 0 0 #6ab28b; }.file-icon { width: 27px; height: 29px; display: grid; place-items: center; border-radius: 5px; color: #6d8d83; background: #edf5f1; }.file-icon svg { width: 15px; }.drawing-row > div:nth-child(2) { min-width: 0; }.drawing-row strong, .drawing-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.drawing-row strong { font-size: 10px; }.drawing-row small { color: #9aa6a0; font-size: 8px; margin-top: 4px; }.drawing-system { margin-left: auto; color: #86958f; font-size: 8px; white-space: nowrap; }.dropzone { margin-top: 14px; min-height: 106px; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 5px; color: #9aa7a1; border: 1px dashed #cadad2; border-radius: 6px; background: #fbfdfc; }.dropzone svg { width: 20px; color: #76af95; }.dropzone strong { color: #6d847a; font-size: 10px; }.dropzone span { font-size: 8px; }
.preview-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 15px; }.cad-preview { border: 1px solid #cfdbd6; border-radius: 6px; overflow: hidden; background: #f5f7f5; }.cad-toolbar { display: flex; gap: 15px; padding: 8px 11px; color: #9ba9a3; background: #edf1ef; font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; }.cad-toolbar .cad-active { color: #5d9a7d; font-weight: 800; }.cad-canvas { position: relative; height: 268px; overflow: hidden; background-color: #f7f9f7; background-image: none; }.floor-label { position: absolute; top: 12px; left: 13px; color: #87958e; font: 9px ui-monospace, monospace; }.cad-room { position: absolute; border: 1px solid #9eb4aa; color: #83948c; font-size: 8px; display: flex; align-items: center; justify-content: center; }.room-a { left: 11%; top: 24%; width: 33%; height: 37%; }.room-b { left: 52%; top: 24%; width: 30%; height: 37%; }.room-c { left: 11%; top: 73%; width: 71%; height: 13%; }.cad-room i { position: absolute; width: 7px; height: 7px; border: 1px solid #91aa9e; border-radius: 50%; }.room-a i:first-of-type { top: 23%; left: 38%; }.room-a i:last-of-type { bottom: 19%; right: 25%; }.room-b i { top: 43%; left: 26%; }.pipe { position: absolute; height: 3px; background: #e5a58f; border-radius: 5px; transform-origin: left center; }.pipe-1 { width: 260px; left: 18%; top: 46%; transform: rotate(0); }.pipe-2 { width: 125px; left: 46%; top: 46%; transform: rotate(90deg); }.pipe-3 { width: 235px; left: 45%; top: 82%; transform: rotate(-28deg); background: #82afa1; }.collision-marker { position: absolute; left: 49%; top: 39%; display: flex; align-items: center; gap: 3px; color: #d9614a; font-size: 8px; font-weight: 800; }.collision-marker svg { width: 17px; height: 17px; fill: #fff0eb; }.scale-bar { position: absolute; right: 15px; bottom: 13px; color: #8e9a94; font: 8px ui-monospace, monospace; }.scale-bar span { display: block; width: 45px; border-top: 2px solid #86968e; margin-bottom: 3px; }.cad-footer { display: flex; align-items: center; gap: 15px; padding: 8px 11px; color: #9aa7a1; background: #edf1ef; font-size: 8px; }.cad-footer span:first-child { display: inline-flex; align-items: center; gap: 5px; color: #699580; }.status-dot { width: 5px; height: 5px; border-radius: 50%; }.status-dot.green { background: #72bd94; }.finding-card { display: grid; grid-template-columns: 31px 1fr; gap: 10px; margin-top: 13px; padding: 12px; border: 1px solid #f0ddca; border-radius: 6px; background: #fffaf3; }.finding-icon { width: 29px; height: 29px; display: grid; place-items: center; color: #c88646; border-radius: 6px; background: #ffedd9; }.finding-icon svg { width: 16px; }.finding-card strong { display: block; margin-bottom: 5px; font-size: 10px; }.finding-card p { color: #8e8d7b; font-size: 9px; line-height: 1.5; }.finding-card .alert-action { color: #b4753d; }
.placeholder-view { min-height: calc(100vh - 120px); display: none; place-items: center; }.placeholder-view.active { display: grid; }.empty-state { text-align: center; max-width: 360px; margin: auto; }.empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 17px; color: #6baa8b; border-radius: 11px; background: #e8f4ec; }.empty-icon svg { width: 25px; }.empty-state h1 { font-size: 23px; }.empty-state > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; font-size: 11px; margin: 10px 0 18px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; max-width: 320px; padding: 11px 14px; color: #fff; border-radius: 6px; background: var(--forest); box-shadow: 0 10px 28px rgba(20, 37, 34, .2); font-size: 10px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .25s ease; }.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) { .main-content { padding: 0 22px 36px; }.metrics-grid { grid-template-columns: repeat(2, 1fr); }.main-grid, .lower-grid { grid-template-columns: 1fr; }.drawings-layout { grid-template-columns: 1fr; }.drawing-preview-panel { min-height: 0; } }
@media (max-width: 720px) { .sidebar { display: none; }.main-content { padding: 0 14px 28px; }.topbar { height: auto; min-height: 60px; flex-wrap: wrap; gap: 7px; padding: 10px 0; }.mobile-brand { display: flex; }.top-nav { order: 3; width: 100%; overflow-x: auto; margin: 0; }.top-nav-item { flex: 0 0 auto; }.topbar-date { display: none; }.topbar-actions { margin-left: auto; gap: 4px; }.demo-badge { display: none; }.view { padding-top: 24px; }.page-heading { margin-bottom: 20px; flex-direction: column; gap: 14px; }.page-heading .button { align-self: flex-start; }.page-heading h1 { font-size: 24px; }.metrics-grid { gap: 8px; }.metric-card { min-height: 118px; padding: 13px; }.metric-value { font-size: 25px; }.main-grid, .lower-grid { gap: 10px; }.tasks-panel, .report-panel, .progress-panel, .alerts-panel, .drawing-list-panel, .drawing-preview-panel { padding: 14px; }.task-item { grid-template-columns: 23px minmax(0, 1fr); }.task-priority { grid-column: 2; grid-row: 1; justify-self: start; margin-top: 5px; }.task-progress-bar { width: 80px; }.drawing-toolbar { align-items: flex-start; flex-wrap: wrap; gap: 10px; }.drawing-search { order: 3; width: 100%; margin-left: 0; }.filter-chips { width: 100%; }.cad-canvas { height: 220px; }.cad-footer { gap: 8px; flex-wrap: wrap; }.finding-card { grid-template-columns: 27px 1fr; }.toast { left: 14px; right: 14px; bottom: 14px; max-width: none; } }

/* Dark Premium surface: graphite base, restrained milk text, one green accent. */
body { background: #171a19; color: #ece9df; }
.sidebar { background: #101312; color: #ece9df; }
.brand small, .project-copy small, .shift-card small, .user-card small { color: #747c76; }
.project-switcher { color: #ece9df; background: #1a201d; border-color: #303732; }
.project-avatar { color: #142019; background: #9fc7a9; }
.nav-item { color: #969d97; }.nav-item.active { color: #f0eee7; background: #28332d; }.nav-item.active svg { color: #8fc9a0; }.nav-count { color: #142019; background: #8fc9a0; }.nav-count-muted { color: #a2a9a2; background: #303832; }
.shift-card, .user-card { border-color: #2b332e; }.shift-progress { background: #2b332e; }.shift-progress span { background: #8fc9a0; }.live-dot { background: #8fc9a0; box-shadow: 0 0 0 4px rgba(143, 201, 160, .12); }
.topbar { border-color: #303632; }.topbar-date, .demo-badge { color: #9a9f98; }.icon-button { color: #a0a59f; }.icon-button:hover { color: #ece9df; background: #252b27; }.notification-dot { background: #8fc9a0; border-color: #171a19; }
.eyebrow, .section-kicker { color: #777e78; }.subheading { color: #9a9f98; }
h1, h2 { color: #ece9df; }
.button-secondary { color: #b8beb6; border-color: #39423c; background: #202422; }.button-secondary:hover { border-color: #718a79; background: #252b27; }.button-primary { color: #122018; background: #8fc9a0; }.button-primary:hover { background: #a3d5b0; }.button-ghost { color: #9ba29a; }
.metric-card, .panel { background: #202422; border-color: #343a36; box-shadow: var(--shadow); }.metric-primary { background: #101312; border-color: #101312; }.metric-warning { background: #242923; border-color: #41473b; }.metric-label { color: #a4aaa3; }.metric-primary .metric-label { color: #9da89f; }.metric-warning .metric-label { color: #aab39b; }.metric-label svg, .metric-warning .metric-label svg { color: #8fc9a0; }.metric-value, .metric-primary .metric-value { color: #ece9df; }.metric-warning .metric-value { color: #c4d09f; }.metric-value em { color: #858c85; }.metric-foot, .metric-primary .metric-foot, .metric-warning .metric-foot { color: #7d847d; }.positive, .metric-primary .positive, .neutral { color: #8fc9a0; }.warning-text { color: #b9c495; }
.task-counter { color: #a5d2b0; background: #26352d; }.task-item { border-color: #343a36; background: #202422; }.task-item:hover { border-color: #536258; }.task-item.is-done { background: #222a25; }.task-check { color: transparent; border-color: #59645c; background: #1b201d; }.task-item.is-done .task-check { color: #122018; border-color: #8fc9a0; background: #8fc9a0; }.task-item.is-done .task-title strong { color: #8c978e; }.task-meta, .task-progress small { color: #7e867f; }.task-progress-bar { background: #343c36; }.task-progress-bar span { background: #8fc9a0; }.task-priority { color: #a7be99; background: #2b342a; }.task-priority.low { color: #8fc9a0; background: #26352d; }.text-button { color: #8fc9a0; }
.recorder-area { border-color: #4e5b51; background: #1c211e; }.mic-button { color: #122018; background: #8fc9a0; box-shadow: 0 8px 20px rgba(0, 0, 0, .24); }.mic-button:hover { background: #a3d5b0; }.mic-ripple { border-color: rgba(143, 201, 160, .32); }.recorder-area p, .mic-status { color: #89928a; }.mic-status.recording { color: #a6c39b; }.transcript-label { color: #9da49c; }.voice-chip { color: #8fc9a0; }textarea { color: #ece9df; border-color: #3d463f; background: #191d1b; }textarea::placeholder { color: #6f776f; }.quick-reports { color: #7f877f; }.quick-reports button { color: #9fd0ac; background: #26352d; }.quick-reports button:hover { background: #304237; }
.chart-legend { color: #858d85; }.chart-legend strong { color: #8fc9a0; }.legend-dot.plan { background: #626b63; }.legend-dot.fact { background: #8fc9a0; }.grid-line { border-color: #303732; }.chart-bars span { background: #3b443d; }.chart-bars span.today-bar { background: #8fc9a0; }.chart-line { color: #a6c49c; }.y-labels, .x-labels { color: #727a72; }
.alert-danger { background: #352522; border-color: #684138; }.alert-info { background: #252b28; border-color: #3d4740; }.alert-danger .alert-icon { color: #f0a28d; background: #4b2e28; }.alert-info .alert-icon { color: #9fc8a7; background: #344438; }.alert-item strong { color: #e5e3da; }.alert-item p, .alert-item time { color: #a58b83; }.alert-action { color: #e0a08b; }
.drawing-toolbar, .drawing-list-panel, .drawing-preview-panel { background: #202422; border-color: #343a36; }.filter-title { color: #b4bab2; }.filter-chip { color: #9da49d; background: #2a302c; }.filter-chip span { color: #777f78; }.filter-chip.active { color: #122018; background: #8fc9a0; }.filter-chip.active span { color: #355341; }.drawing-search input { color: #ece9df; background: #191d1b; border-color: #3d463f; }.drawing-search svg { color: #808980; }.file-rule { color: #a1d0aa; background: #26352d; }.drawing-row:hover, .drawing-row.active { border-color: #526155; background: #252d28; }.file-icon { color: #9fc5a7; background: #2b382f; }.drawing-row strong { color: #e6e4dc; }.drawing-row small, .drawing-system { color: #7d857d; }.dropzone { color: #7d857d; border-color: #4d594f; background: #1b201d; }.dropzone svg { color: #8fc9a0; }.dropzone strong { color: #b5c0b4; }
.cad-preview { border-color: #434d45; background: #1a1f1c; }.cad-toolbar, .cad-footer { color: #798179; background: #242a26; }.cad-toolbar .cad-active { color: #9fd0aa; }.cad-canvas { background-color: #202622; background-image: none; }.floor-label, .cad-room, .scale-bar { color: #89958c; }.cad-room { border-color: #65756a; }.cad-room i { border-color: #73857a; }.pipe { background: #9fc4a6; }.pipe-3 { background: #7f9e86; }.collision-marker { color: #b4cc9b; }.collision-marker svg { fill: #26352d; }.cad-footer span:first-child { color: #9bcaa5; }.finding-card { border-color: #4a5547; background: #252c26; }.finding-icon { color: #a5c59c; background: #344434; }.finding-card p { color: #98a095; }.finding-card .alert-action { color: #a5cfae; }
.placeholder-view .empty-icon { color: #8fc9a0; background: #26352d; }.empty-state > p:not(.eyebrow) { color: #9aa199; }.toast { color: #122018; background: #8fc9a0; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }

/* The workspace uses a single top navigation; the old side rail is removed from layout. */
.sidebar { display: none; }
.mobile-brand { display: flex; }
.topbar { gap: 22px; }
.main-content { width: 100%; padding-left: clamp(18px, 5vw, 72px); padding-right: clamp(18px, 5vw, 72px); }

/* Restrained accent system: warm terracotta for actions, green only for status/progress. */
.button-primary, .mic-button { color: #171a19; background: #b77c63; }
.button-primary:hover, .mic-button:hover { background: #c89178; }
.brand-mark { color: #171a19; background: #b77c63; }
.top-nav-item.active { color: #d4b39e; background: #2c2927; }
.task-counter { color: #d4b39e; background: #332c29; }
.task-progress-bar span { background: #aab1a8; }
.task-item.is-done .task-check { color: #171a19; border-color: #aab1a8; background: #aab1a8; }
.filter-chip.active { color: #171a19; background: #d4b39e; }
.filter-chip.active span { color: #685249; }
.file-rule { color: #d4b39e; background: #332c29; }
.drawing-row { color: #ece9df; background: #202422; }
.finding-icon { color: #d4b39e; background: #3a302b; }
.finding-card .alert-action, .alert-action { color: #d4b39e; }
.toast { color: #171a19; background: #b77c63; }

.drawing-row { display: grid; grid-template-columns: minmax(0, 1fr) 30px; align-items: center; gap: 5px; padding: 0; }
.drawing-open { min-width: 0; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 9px; color: inherit; background: transparent; text-align: left; }
.drawing-copy { min-width: 0; }
.drawing-copy strong, .drawing-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawing-copy strong { font-size: 10px; }
.drawing-copy small { margin-top: 4px; color: #7d857d; font-size: 8px; }
.drawing-delete { width: 28px; height: 28px; display: grid; place-items: center; color: #7d857d; border-radius: 5px; background: transparent; }
.drawing-delete:hover { color: #efb0a0; background: #392924; }
.drawing-delete svg { width: 14px; }

.plan-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 17px; border-block: 1px solid #343a36; background: #1b1f1d; }
.plan-status > div { min-width: 0; padding: 11px 16px; border-right: 1px solid #343a36; }
.plan-status > div:last-child { border-right: 0; }
.plan-status span, .plan-status small { display: block; color: #7f877f; font-size: 9px; }
.plan-status strong { display: block; margin: 4px 0 3px; color: #ece9df; font-size: 17px; }
.plan-rationale { display: flex; align-items: flex-start; gap: 8px; margin: -6px 0 14px; padding: 9px 10px; color: #a7aea6; border-left: 2px solid #8fae96; background: #252a27; font-size: 9px; line-height: 1.5; }
.plan-rationale svg { width: 14px; height: 14px; flex: 0 0 auto; color: #9fc5a7; }
.task-check { color: #93a099; }
.button:disabled { cursor: wait; opacity: .62; }

/* Keep the side rail visible and anchored for the full page scroll. */
.sidebar { display: flex !important; position: sticky; top: 0; align-self: flex-start; height: 100vh; }
.mobile-brand { display: none; }
.top-nav { display: none; }
.main-content { width: auto; padding-left: 36px; padding-right: 36px; }
@media (max-width: 720px) {
  .sidebar { display: none !important; }
  .mobile-brand { display: flex; }
  .top-nav { display: flex; }
  .main-content { width: 100%; padding-left: 14px; padding-right: 14px; }
}

[hidden] { display: none !important; }

.report-confirmation { margin-top: 12px; padding: 12px 0 0; border-top: 1px solid #3d463f; }
.confirmation-heading { display: flex; align-items: center; gap: 7px; color: #d8d9d2; font-size: 10px; }
.confirmation-heading svg { width: 16px; color: #aab1a8; }
.report-confirmation dl { display: grid; gap: 7px; margin-top: 10px; }
.report-confirmation dl > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 9px; }
.report-confirmation dt { color: #7f877f; font-size: 9px; }
.report-confirmation dd { color: #ece9df; font-size: 10px; font-weight: 700; }
.confirmation-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.confirmation-actions .button { min-height: 32px; font-size: 9px; }

.alerts-page, .reports-history-panel { max-width: 920px; padding: 19px; }
.alerts-page .alert-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.alert-item.resolved { opacity: .5; }
.report-history { display: grid; gap: 1px; }
.report-history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 13px 0; border-bottom: 1px solid #343a36; }
.report-history-item:last-child { border-bottom: 0; }
.report-history-item strong, .report-history-item p, .report-history-item time { display: block; }
.report-history-item strong { color: #ece9df; font-size: 11px; }
.report-history-item p { margin-top: 4px; color: #9aa199; font-size: 10px; }
.report-history-item time { margin-top: 5px; color: #707871; font-size: 8px; }
.report-history-item b { align-self: center; color: #aab1a8; font-size: 12px; }

.calculator-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.calculator-tab { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; color: #969e97; border: 1px solid #39423c; border-radius: 6px; background: #202422; font-size: 10px; font-weight: 800; }
.calculator-tab svg { width: 15px; height: 15px; }
.calculator-tab.active { color: #171a19; border-color: #d4b39e; background: #d4b39e; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: start; gap: 17px; }
.calculator-panel, .calculator-result-panel, .calculation-history-panel { padding: 19px; }
.calculator-result-panel { position: sticky; top: 18px; }
.calculator-form { display: none; }
.calculator-form.active { display: block; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.form-grid label { display: grid; gap: 6px; color: #979f98; font-size: 9px; font-weight: 700; }
.form-grid label.wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .route-input-row input:not([type=checkbox]) { width: 100%; min-width: 0; min-height: 37px; padding: 0 10px; color: #ece9df; border: 1px solid #3d463f; border-radius: 5px; outline: 0; background: #191d1b; font-size: 10px; }
.form-grid input:focus, .form-grid select:focus, .route-input-row input:focus { border-color: #9c725f; box-shadow: 0 0 0 2px rgba(183, 124, 99, .14); }
.calculate-button { margin-top: 14px; }
.price-fieldset { margin: 15px 0 0; padding: 12px; border: 1px solid #363e39; border-radius: 6px; }
.price-fieldset legend { padding: 0 6px; color: #8e968f; font-size: 9px; font-weight: 800; }
.route-base-grid { margin-bottom: 15px; }
.route-inputs { display: grid; gap: 6px; overflow-x: auto; }
.route-input-row { min-width: 860px; display: grid; grid-template-columns: minmax(145px, 1.25fr) repeat(4, minmax(72px, .55fr)) minmax(145px, 1fr) 64px; align-items: center; gap: 7px; }
.route-input-head { color: #767e77; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.route-input-row input[type=checkbox] { width: 17px; height: 17px; accent-color: #b77c63; justify-self: center; }
.calculator-hint { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; color: #8d958e; font-size: 9px; line-height: 1.5; }
.calculator-hint svg { flex: 0 0 auto; width: 14px; color: #d4b39e; }
.calculator-empty { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 8px; color: #777f78; text-align: center; }
.calculator-empty svg { width: 28px; color: #947362; }
.calculator-empty strong { color: #c8cbc4; font-size: 12px; }
.calculator-empty p { max-width: 230px; font-size: 9px; line-height: 1.5; }
.calculation-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.calculation-metric { min-height: 66px; padding: 11px; border: 1px solid #363e39; border-radius: 6px; background: #1b201d; }
.calculation-metric.featured { border-color: #725346; background: #2d2724; }
.calculation-metric span, .calculation-metric strong { display: block; }
.calculation-metric span { color: #7e867f; font-size: 8px; }
.calculation-metric strong { margin-top: 6px; color: #ece9df; font-size: 15px; }
.calculation-metric.featured strong { color: #dcb9a8; }
.calculation-formula { margin-top: 11px; padding: 11px; border-left: 2px solid #92705f; background: #252522; }
.calculation-formula span, .calculation-formula strong { display: block; }
.calculation-formula span { color: #827f78; font-size: 8px; text-transform: uppercase; }
.calculation-formula strong { margin-top: 5px; color: #d8d7cf; font-size: 10px; line-height: 1.5; }
.calculation-formula p { margin-top: 5px; color: #929890; font-size: 9px; line-height: 1.5; }
.calculation-warning { display: flex; align-items: flex-start; gap: 7px; margin-top: 11px; padding: 9px; color: #d8ad99; border: 1px solid #584137; border-radius: 5px; background: #302622; font-size: 9px; line-height: 1.5; }
.calculation-warning svg { flex: 0 0 auto; width: 14px; }
.material-table { margin-top: 12px; border-top: 1px solid #343a36; }
.material-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) 90px minmax(120px, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #343a36; }
.material-row strong { color: #dcded7; font-size: 9px; }
.material-row b { color: #d4b39e; font-size: 9px; }
.material-row small { color: #808880; font-size: 8px; line-height: 1.4; }
.material-head { color: #757d76; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.route-result-list { display: grid; gap: 8px; }
.route-context { margin-bottom: 10px; padding: 10px; border: 1px solid #3b433e; border-radius: 6px; background: #1b201d; }
.route-context strong, .route-context span { display: block; }
.route-context strong { color: #e3e3dc; font-size: 11px; }
.route-context span { margin-top: 4px; color: #a9b0a9; font-size: 8px; }
.route-context p { margin-top: 6px; color: #858d86; font-size: 8px; line-height: 1.45; }
.route-result { padding: 11px; border: 1px solid #3b433e; border-radius: 6px; background: #1b201d; }
.route-result.recommended { border-color: #6f8d75; box-shadow: inset 3px 0 0 #8fc9a0; }
.route-result.invalid { opacity: .55; }
.route-result > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.route-result > div strong { color: #e4e4dd; font-size: 10px; }
.route-result > div span { color: #b7d5bd; font-size: 8px; font-weight: 800; }
.route-result.invalid > div span { color: #d59b88; }
.route-result dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 10px 0 0; }
.route-result dl div { min-width: 0; }
.route-result dt, .route-result dd { margin: 0; }
.route-result dt { color: #747c75; font-size: 7px; text-transform: uppercase; }
.route-result dd { margin-top: 4px; color: #bec3bc; font-size: 9px; font-weight: 700; }
.route-reasons { margin-top: 9px; padding-top: 8px; color: #d49c89; border-top: 1px solid #4a3730; font-size: 8px; line-height: 1.45; }
.route-result:not(.invalid) .route-reasons { color: #9aa79e; border-top-color: #35403a; }
.route-result.recommended .route-reasons { color: #a9c8b0; }
.calculation-history-panel { margin-top: 17px; }
.calculation-history { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.calculation-history-item { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; border: 1px solid #363e39; border-radius: 6px; background: #1b201d; }
.calculation-history-item div { min-width: 0; }
.calculation-history-item strong, .calculation-history-item p, .calculation-history-item time { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calculation-history-item strong { color: #dedfd8; font-size: 9px; }
.calculation-history-item p { margin-top: 4px; color: #d4b39e; font-size: 9px; }
.calculation-history-item time { margin-top: 5px; color: #747c75; font-size: 7px; }
.calculation-history-item .button { flex: 0 0 auto; min-height: 28px; padding: 0 8px; font-size: 8px; }

.norm-status-band { display: grid; grid-template-columns: repeat(3, minmax(120px, 170px)) minmax(220px, 1fr); gap: 1px; margin-bottom: 16px; border: 1px solid #343a36; border-radius: 7px; overflow: hidden; background: #343a36; }
.norm-status-band > div, .norm-status-band > p { min-height: 72px; padding: 13px; background: #202422; }
.norm-status-band span { display: block; color: #7f877f; font-size: 8px; text-transform: uppercase; }
.norm-status-band strong { display: block; margin-top: 5px; color: #ece9df; font-size: 20px; }
.norm-status-band > p { display: flex; align-items: center; color: #d4b39e; font-size: 10px; font-weight: 700; }
.norm-status-band > p.ready { color: #aab1a8; }
.norms-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 17px; }
.norm-search-panel, .norm-results-panel { padding: 19px; }
.norm-search-form label { display: block; margin-bottom: 7px; color: #8f978f; font-size: 9px; font-weight: 700; }
.norm-search-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.norm-search-form input { min-width: 0; min-height: 37px; padding: 0 11px; color: #ece9df; border: 1px solid #3d463f; border-radius: 5px; background: #191d1b; font-size: 10px; }
.norm-search-form input:focus { outline: 2px solid #745445; outline-offset: 1px; }
.norm-guard { display: flex; align-items: flex-start; gap: 7px; margin-top: 11px; color: #9c978f; font-size: 9px; line-height: 1.5; }
.norm-guard svg { flex: 0 0 auto; width: 14px; color: #d4b39e; }
#normResults { display: grid; gap: 8px; color: #999f99; font-size: 10px; }
.norm-empty { padding: 16px 0; color: #848b84; line-height: 1.5; }
.norm-result { padding: 11px 0; border-bottom: 1px solid #343a36; }
.norm-result:last-child { border-bottom: 0; }
.norm-result > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.norm-result strong { color: #e5e3da; font-size: 10px; }
.norm-result a { color: #d4b39e; font-size: 8px; font-weight: 700; }
.norm-result-title { margin-top: 5px; color: #a7ada6; font-size: 9px; }
.norm-excerpt { margin-top: 7px; color: #c2c4bd; font-size: 9px; line-height: 1.55; }
.norm-sources { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 13px; color: #777f78; font-size: 8px; }
.norm-sources a { color: #d4b39e; font-weight: 700; }

@media (max-width: 1080px) {
  .calculator-layout { grid-template-columns: 1fr; }
  .calculator-result-panel { position: static; }
  .calculation-history { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .norm-status-band { grid-template-columns: repeat(3, 1fr); }
  .norm-status-band > p { grid-column: 1 / -1; min-height: 48px; }
  .norms-layout { grid-template-columns: 1fr; }
  .format-capability-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .heading-actions { width: 100%; justify-content: stretch; }
  .heading-actions .button { flex: 1 1 auto; }
  .report-cta { min-height: 42px; }
  .format-capability-panel { padding: 14px; }
  .format-capability-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: auto; }
  .calculation-metrics, .calculation-history { grid-template-columns: 1fr; }
  .material-row { grid-template-columns: minmax(0, 1fr) auto; }
  .material-row small, .material-head span:last-child { grid-column: 1 / -1; }
  .route-result dl { grid-template-columns: repeat(2, 1fr); }
  .alerts-page .alert-list { grid-template-columns: 1fr; }
  .norm-status-band { grid-template-columns: 1fr; }
  .norm-status-band > p { grid-column: auto; }
  .norm-search-form > div { grid-template-columns: 1fr; }
  .norm-search-form .button { width: 100%; }
  .report-confirmation dl > div { grid-template-columns: 65px minmax(0, 1fr); }
  .confirmation-actions .button { min-height: 42px; font-size: 10px; }
  .recorder-area { min-height: 180px; }
  .mic-button { width: 72px; height: 72px; }
  .transcript-actions .button { min-height: 42px; }
  .filter-chip { min-height: 40px; padding: 8px 12px; font-size: 10px; }
  .task-item { align-items: start; }
  .task-main { grid-column: 2; grid-row: 2; width: 100%; }
  .task-title { align-items: flex-start; flex-direction: column; gap: 6px; }
  .task-title strong { width: 100%; overflow: visible; white-space: normal; font-size: 12px; line-height: 1.45; }
  .task-meta { flex-wrap: wrap; gap: 5px; font-size: 10px; }
  .task-progress-bar { flex: 1; width: auto; min-width: 80px; }
  .drawing-open { grid-template-columns: 27px minmax(0, 1fr); }
  .drawing-system { grid-column: 2; margin-left: 0; }
  .plan-status { grid-template-columns: 1fr; }
  .plan-status > div { border-right: 0; border-bottom: 1px solid #343a36; }
  .plan-status > div:last-child { border-bottom: 0; }
}

.drawing-system { display: flex; align-items: flex-end; flex-direction: column; gap: 3px; }
.file-status { font-size: 7px; font-weight: 700; }
.file-status.accepted { color: #77a88e; }
.file-status.rejected { color: #c77664; }
.file-status.analysis { color: #9a9f98; font-weight: 600; }
.file-status.storage { color: #b59a82; }
.preview-media { margin-top: 12px; overflow: hidden; border: 1px solid #434d45; border-radius: 6px; background: #1a1f1c; }
.preview-media-image { display: block; width: 100%; max-height: 470px; object-fit: contain; background: #101412; }
.pdf-preview-toolbar { display: flex; align-items: center; gap: 7px; min-height: 39px; padding: 5px 8px; color: #aeb9b0; border-bottom: 1px solid #3c4840; background: #252c27; }
.pdf-preview-toolbar .icon-button { flex: 0 0 auto; width: 28px; height: 28px; }
.pdf-preview-toolbar .icon-button:disabled { opacity: .35; cursor: not-allowed; }
.pdf-preview-page-input { width: 38px; height: 27px; padding: 0 4px; color: #ecede8; border: 1px solid #566259; border-radius: 4px; outline: 0; background: #171c19; text-align: center; font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.pdf-preview-page-input:focus { border-color: #82b58e; }
.pdf-preview-page-total { color: #c3ccc4; font-size: 10px; font-weight: 700; }
.pdf-preview-hint { margin-left: auto; color: #77827a; font-size: 8px; }
.preview-pdf-page { display: block; width: 100%; max-height: 560px; min-height: 320px; object-fit: contain; background: #101412; }
.preview-media-error { min-height: 120px; margin: 0; padding: 30px 18px; color: #dfb0a1; font-size: 10px; line-height: 1.5; text-align: center; }
.preview-media-frame { display: block; width: 100%; height: 470px; border: 0; background: #fff; }
.preview-media-text { max-height: 470px; overflow: auto; margin: 0; padding: 14px; color: #c5cec5; background: #151a17; font: 10px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.preview-actions { display: flex; align-items: center; gap: 8px; }
.ai-analyze-button { min-height: 30px; padding: 0 10px; font-size: 9px; }
.ai-analyze-button.is-loading { opacity: .65; cursor: wait; }
.ai-analysis-card { margin-top: 13px; padding: 13px; border: 1px solid #3e5144; border-radius: 6px; background: #202a23; }
.ai-analysis-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ai-analysis-head .section-kicker { margin-bottom: 0; color: #9fd0aa; }
.ai-analysis-head > span:last-child { color: #8d9b91; font-size: 8px; }
.ai-analysis-summary { color: #dbe4da; font-size: 11px; line-height: 1.5; }
.ai-analysis-coverage { margin-bottom: 8px; padding: 7px 8px; border-left: 2px solid #79b98c; color: #bfe0c6; background: #19251d; font-size: 9px; font-weight: 700; line-height: 1.45; }
.ai-analysis-section { margin-top: 10px; }
.ai-analysis-section > strong { color: #a7c3ac; font-size: 9px; }
.ai-analysis-section ul { margin: 5px 0 0; padding-left: 17px; color: #b8c4b9; font-size: 9px; line-height: 1.55; }
.ai-analysis-confidence { margin-top: 10px; color: #9fc8a6; font-size: 9px; font-weight: 700; }
.ai-analysis-warning { margin-top: 9px; padding: 8px; border-left: 2px solid #d8a372; color: #dfbd98; background: #332b22; font-size: 9px; line-height: 1.45; }
.pdf-chat { margin-top: 16px; padding-top: 15px; border-top: 1px solid #3d4640; }
.pdf-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pdf-chat-head .section-kicker { margin-bottom: 3px; color: #9fd0aa; }
.pdf-chat-head h3 { margin: 0; color: #ece9df; font-size: 14px; letter-spacing: 0; }
.pdf-chat-head > svg { width: 17px; height: 17px; color: #83b590; }
.pdf-chat-messages { display: grid; gap: 9px; max-height: 420px; margin-top: 12px; overflow-y: auto; }
.pdf-chat-empty { padding: 12px 0; color: #89928b; font-size: 9px; }
.pdf-chat-message { max-width: 91%; padding: 10px 11px; border-radius: 6px; font-size: 10px; line-height: 1.55; }
.pdf-chat-message.user { justify-self: end; color: #f0e6dd; background: #654b3d; }
.pdf-chat-message.assistant { justify-self: start; color: #dce5dc; border-left: 2px solid #7fb18b; background: #202a23; }
.pdf-chat-message.pending { color: #9eaaa0; }
.pdf-chat-message.error { color: #e3b1a4; border-left-color: #c77664; background: #302321; }
.pdf-chat-answer { margin: 0; white-space: pre-wrap; }
.pdf-chat-sources { display: grid; gap: 6px; margin-top: 9px; }
.pdf-chat-source { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 7px; padding-top: 7px; border-top: 1px solid #39443c; }
.pdf-chat-page { min-height: 23px; padding: 0 7px; color: #b9ddc1; border: 1px solid #526c59; border-radius: 4px; background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.pdf-chat-page:hover { border-color: #83b590; background: #26362b; }
.pdf-chat-evidence { color: #99a69c; font-size: 8px; line-height: 1.45; }
.pdf-chat-meta { margin-top: 8px; color: #829087; font-size: 8px; font-weight: 700; }
.pdf-question-form { display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: end; gap: 8px; margin-top: 12px; }
.pdf-question-form textarea { width: 100%; min-height: 42px; max-height: 120px; resize: vertical; padding: 9px 10px; color: #ece9df; border: 1px solid #465149; border-radius: 5px; outline: 0; background: #191e1b; font: inherit; font-size: 10px; line-height: 1.45; }
.pdf-question-form textarea:focus { border-color: #77a88e; box-shadow: 0 0 0 2px rgba(119, 168, 142, .15); }
.pdf-question-form textarea:disabled { opacity: .6; cursor: wait; }
.pdf-question-send { width: 34px; height: 34px; color: #172019; background: #8fc09a; }
.pdf-question-send:hover { background: #a1cfaa; }
.pdf-question-send:disabled { opacity: .55; cursor: wait; }
.alert-danger .alert-action { color: #e0a08b; }
.dropzone:focus-visible { outline: 3px solid rgba(74, 126, 165, .26); outline-offset: 2px; }
@media (max-width: 720px) {
  .preview-actions { gap: 5px; }
  .ai-analyze-button span { display: none; }
  .ai-analyze-button { width: 30px; padding: 0; }
  .preview-media-frame { height: 320px; }
  .preview-media-text { max-height: 320px; }
  .preview-pdf-page { min-height: 240px; max-height: 360px; }
  .pdf-preview-hint { display: none; }
  .pdf-chat-message { max-width: 96%; }
}
