:root { color-scheme: light; --red: #df001b; --red-dark: #b90016; --ink: #24292c; --muted: #656c71; --line: #dfe3e5; --paper: #fff; --canvas: #f6f7f8; --green: #18775d; --amber: #8a5706; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; font-family: 'Segoe UI', sans-serif; color: var(--ink); background: var(--canvas); font-size: 14px; line-height: 1.5; letter-spacing: 0; }
button, input, textarea, select { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-weight: 600; text-decoration: none; line-height: 1.35; }
button:disabled { opacity: .48; cursor: not-allowed; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #227b9b; outline-offset: 3px; }
.primary { background: var(--red); color: white; }
.primary:hover:not(:disabled) { background: var(--red-dark); }
.secondary { background: white; border-color: #cbd1d4; color: var(--ink); }
.secondary:hover:not(:disabled), .quiet:hover { background: #eef0f1; }
.quiet { background: transparent; color: var(--ink); }
.icon-button { width: 36px; min-height: 36px; padding: 8px; flex: 0 0 36px; }
svg.lucide { width: 18px; height: 18px; stroke-width: 1.7; flex-shrink: 0; }
.topbar { height: 78px; padding-right: 28px; display: flex; justify-content: space-between; align-items: center; background: white; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 22px; text-decoration: none; }
.brand-mark { display: grid; place-content: center; width: 188px; height: 78px; color: white; background: var(--red); font-size: 29px; font-weight: 700; font-style: italic; }
.brand-name { font-size: 17px; font-weight: 650; }
.brand-name > span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.account { display: flex; align-items: center; gap: 18px; font-size: 12px; min-width: 0; }
#accountName { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.workspace { display: grid; grid-template-columns: 188px minmax(0, 1fr); min-height: calc(100vh - 78px); }
.sidebar { background: white; border-right: 1px solid var(--line); padding: 32px 12px 20px; display: flex; flex-direction: column; }
.section-kicker { text-transform: uppercase; font-size: 10px; font-weight: 700; color: var(--muted); }
.sidebar > .section-kicker { margin: 0 14px 14px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.sidebar nav a[aria-current] { color: var(--red); background: #fff0f1; box-shadow: inset 3px 0 var(--red); }
.sidebar nav a:hover { background: #f6f7f8; }
.sidebar-footer { margin-top: auto; padding: 40px 12px 0; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.connection-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
main { padding: 36px 40px 60px; max-width: 1640px; width: 100%; margin: 0 auto; min-width: 0; }
main:focus { outline: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 30px; line-height: 1.2; font-weight: 650; margin-bottom: 0; overflow-wrap: anywhere; }
h2 { font-size: 18px; line-height: 1.35; font-weight: 650; margin-bottom: 14px; }
h3 { font-size: 15px; font-weight: 650; margin-bottom: 8px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.page-heading .section-kicker { margin-bottom: 7px; }
.muted { color: var(--muted); font-size: 12px; }
.storage-note { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12px; }
.storage-note svg { width: 14px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 28px 0; }
.metric { padding: 0 24px; border-right: 1px solid var(--line); }
.metric:first-child { padding-left: 0; }
.metric:last-child { border: 0; }
.metric strong { display: block; font-size: 30px; line-height: 1.3; font-weight: 600; }
.metric span { font-size: 12px; color: var(--muted); }
.metric.active strong { color: var(--green); }
.list-toolbar { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 440px; }
.search svg { position: absolute; left: 12px; top: 12px; color: var(--muted); }
.search input { padding-left: 39px; }
input, textarea, select { border: 1px solid #cbd1d4; border-radius: 4px; background: white; color: var(--ink); padding: 10px 12px; min-width: 0; width: 100%; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #777e82; }
.filter-label { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.filter-label select { width: 165px; }
#resultCount { margin-left: auto; }
.table-scroll { overflow: auto; border: 1px solid var(--line); background: white; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th { font-weight: 600; color: var(--muted); font-size: 11px; background: #f0f2f3; white-space: nowrap; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td { overflow-wrap: anywhere; }
.tender-table { min-width: 750px; }
.tender-table th:first-child { width: 35%; }
.tender-table td { vertical-align: middle; }
.tender-link { display: block; font-weight: 650; text-decoration: none; margin-bottom: 4px; }
.tender-link:hover { color: var(--red); text-decoration: underline; }
.table-action { color: var(--red); font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 3px; background: #edf0f2; color: #505a60; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge.good { background: #e9f4ef; color: #146747; }
.badge.warn { background: #fff4dc; color: #805100; }
.badge.bad { background: #fdecef; color: #b01732; }
.badge.info { background: #e9f3f8; color: #226481; }
.empty-state { padding: 64px 24px; text-align: center; border: 1px dashed #cbd1d4; }
.empty-state > svg { width: 40px; height: 40px; color: #879398; margin-bottom: 16px; }
.empty-state p { color: var(--muted); margin: 10px 0 20px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; text-decoration: none; margin-bottom: 22px; }
.submission-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; }
.form-section { padding: 24px 0 30px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.section-heading h2 { margin: 0; }
.section-heading > .button { margin-left: auto; }
.step-number { color: var(--red); font-size: 11px; font-weight: 700; border: 1px solid #ecc4c8; border-radius: 50%; display: grid; place-content: center; width: 25px; height: 25px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 600; position: relative; }
.full-width { grid-column: 1 / -1; }
.required { position: absolute; left: 78px; color: var(--red); }
.dropzone { padding: 30px 18px; display: flex; flex-direction: column; align-items: center; border: 1px dashed #aeb8bf; border-radius: 4px; background: white; text-align: center; }
.dropzone.drag-over { border: 2px solid var(--red); background: #fff4f5; }
.dropzone > svg { width: 30px; height: 30px; color: #596e78; margin-bottom: 12px; }
.dropzone p { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.dropzone .muted { margin-top: 12px; }
.file-picker { position: relative; overflow: hidden; }
.file-picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-picker:focus-within { outline: 3px solid #227b9b; outline-offset: 3px; }
.file-list { list-style: none; padding: 0; margin: 16px 0 0; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.file-list li > svg { color: #59717b; }
.file-info { flex: 1; min-width: 0; }
.file-info strong { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.intake-summary { border-left: 1px solid var(--line); padding: 26px 0 20px 26px; align-self: start; }
.intake-summary h2 { margin: 8px 0 20px; overflow-wrap: anywhere; }
dl { margin: 0; }
.intake-summary dl { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.intake-summary dl > div { display: flex; justify-content: space-between; margin: 10px 0; font-size: 12px; }
dt { color: var(--muted); }
dd { margin: 0; }
.scope-line { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 12px; }
.scope-line svg { color: var(--green); }
.form-actions { display: flex; justify-content: space-between; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.form-actions > div { display: flex; gap: 10px; }
.notice { padding: 12px 16px; border-left: 3px solid #377f98; background: #eaf3f7; margin: 0 0 22px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice.warning { border-left-color: var(--amber); background: #fff4dc; color: #5c3a00; }
.field-error { color: #b01732; font-size: 12px; margin: 12px 0; }
.heading-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.record-heading { align-items: start; }
.record-heading h1 { font-size: 27px; }
#recordCustomer { margin: 8px 0 0; }
.record-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; color: var(--muted); margin-bottom: 25px; }
.record-tabs { display: flex; border-bottom: 1px solid #cbd1d4; gap: 25px; overflow-x: auto; margin-bottom: 30px; }
.record-tabs a { text-decoration: none; padding: 10px 0 13px; white-space: nowrap; font-size: 12px; font-weight: 600; }
.record-tabs a:first-child { color: var(--red); border-bottom: 2px solid var(--red); }
.record-tabs a:hover { color: var(--red); }
.record-section { padding-bottom: 30px; margin-bottom: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 10px; }
.record-section > summary { list-style: none; cursor: pointer; margin-bottom: 0; }
.record-section > summary::-webkit-details-marker { display: none; }
.record-section[open] > summary { margin-bottom: 22px; }
.section-toggle { display: inline-flex; color: var(--muted); }
.section-toggle svg { width: 18px; height: 18px; transition: transform 0.15s; }
.record-section:not([open]) .section-toggle svg { transform: rotate(-90deg); }
.record-section > summary:hover .section-toggle { color: var(--red); }
.overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.overview-grid dt { font-size: 11px; margin-bottom: 7px; }
.overview-grid dd { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.requirement-text { white-space: pre-wrap; line-height: 1.8; margin: 0 0 16px; overflow-wrap: anywhere; }
.evidence { font-size: 12px; color: var(--muted); margin-top: 12px; }
.field-table td > .evidence:first-child { margin-top: 0; }
.evidence summary { cursor: pointer; color: #2b697e; }
.evidence dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 14px; padding: 14px 0; }
.evidence dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.field-table { min-width: 650px; }
.field-table th:first-child { width: 24%; }
.field-table th:nth-child(2) { width: 34%; }
.field-table th:nth-child(3) { width: 17%; }
.field-table td:nth-child(2) { white-space: pre-wrap; }
.findings-table th:first-child, .findings-table th:nth-child(2), .findings-table th:nth-child(3) { width: auto; }
.record-section > h3 { margin-top: 22px; }
.record-section > summary + h3 { margin-top: 0; }
.source-text { font-size: 11px; color: var(--muted); white-space: pre-line; }
.equipment-table { min-width: 850px; }
.equipment-details { border: 1px solid var(--line); background: white; margin-top: 12px; }
.equipment-details > summary { cursor: pointer; padding: 16px; font-size: 13px; font-weight: 600; }
.equipment-details .table-scroll { border: 0; border-top: 1px solid var(--line); }
.attention-line { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--amber); font-size: 12px; }
.conversation-panel { border: 1px solid var(--line); background: white; }
.conversation-panel > summary { padding: 18px; cursor: pointer; font-weight: 600; }
.conversation-panel > summary svg { vertical-align: middle; margin-right: 8px; }
#conversationState { margin-left: 12px; font-weight: 400; }
#webchat { height: 560px; min-height: 200px; border-top: 1px solid var(--line); }
#webchat:empty { display: none; }
.followup-form { padding: 18px; border-top: 1px solid var(--line); }
.followup-form label { display: block; font-size: 12px; margin-bottom: 8px; }
.followup-form > div { display: flex; gap: 10px; align-items: center; }
#savedMessages { max-height: 320px; overflow: auto; }
.saved-message { margin: 0; padding: 16px 22px; border-top: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.saved-message strong { display: block; margin-bottom: 8px; }
.auth-state { margin: 100px auto; max-width: 500px; padding: 30px; border-top: 3px solid var(--red); }
.auth-state h1 { margin: 10px 0 22px; }
.skip-link { position: fixed; top: -60px; left: 12px; background: white; padding: 10px; z-index: 99; }
.skip-link:focus { top: 12px; }
@media (min-width: 1000px) { section:not([hidden]) > .page-heading { animation: enter .2s ease-out; } }
@keyframes enter { from { opacity: .5; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; } }
@media (max-width: 1100px) { main { padding: 30px 24px; } .submission-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 22px; } .intake-summary { padding-left: 20px; } #accountName { max-width: 180px; } }
@media (max-width: 800px) { .workspace { grid-template-columns: 1fr; } .sidebar { padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); } .sidebar > .section-kicker, .sidebar-footer { display: none; } .sidebar nav { display: flex; } .sidebar nav a { padding: 9px 14px; } .brand-mark { width: 130px; } .brand { gap: 16px; } #accountName { display: none; } .submission-layout { grid-template-columns: 1fr; } .intake-summary { display: none; } .overview-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .topbar { height: 66px; padding-right: 10px; } .brand-mark { width: 98px; height: 66px; font-size: 22px; } .brand-name { font-size: 14px; } .brand { gap: 10px; } .account button { font-size: 12px; padding: 8px; gap: 5px; } main { padding: 25px 16px 40px; } h1 { font-size: 26px; } .page-heading { gap: 12px; } .page-heading .button { padding: 9px 10px; font-size: 12px; flex-shrink: 0; } .metrics { gap: 22px 0; grid-template-columns: 1fr 1fr; } .metric { padding: 0 16px; } .metric:nth-child(3) { padding-left: 0; } .metric:nth-child(2) { border: 0; } .metric strong { font-size: 26px; } .search { max-width: none; flex-basis: 100%; } .list-toolbar { gap: 12px; } .form-grid { grid-template-columns: 1fr; } .form-actions { flex-wrap: wrap; } .form-actions > div { flex: 1; justify-content: flex-end; flex-wrap: wrap; } .record-heading { flex-direction: column; } .record-heading h1 { font-size: 24px; } .record-tabs { gap: 22px; } .storage-note { align-items: start; } .storage-note svg { margin-top: 3px; flex-shrink: 0; } .evidence dl { grid-template-columns: 1fr; gap: 4px; } .evidence dd { margin-bottom: 8px; } .overview-grid { gap: 20px 12px; } .heading-actions { justify-content: start; } }