:root {
  --background: #edf0f8;
  --paper: #fcfdff;
  --soft: #f2f4fb;
  --ink: #182342;
  --muted: #596584;
  --navy: #202d52;
  --blue: #4054c4;
  --line: #dce2f1;
  --green: #1e6659;
  --mint: #dff2e9;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

.bar { background: #f8f9fe; color: var(--ink); border-bottom: 1px solid var(--line); }
.bar .shell { width: min(1456px, calc(100% - 52px)); }
.bar-content { min-height: 72px; }
.bar :focus-visible { outline-color: var(--blue); }
.brand { gap: 10px; letter-spacing: -.035em; font-size: 1.13rem; }
.brand strong { font-weight: inherit; color: #495cc0; }
.brand-mark { border: 0; width: 35px; height: 35px; background: #dfe5ff; border-radius: 11px; align-content: center; justify-content: center; transform: rotate(-5deg); }
.brand-mark i { background: #485ec1; width: 13px; height: 3px; border-radius: 3px; }
.brand-mark i:nth-child(2) { width: 10px; }
.brand-mark i:last-child { width: 7px; }
.company-identity small, .company-switch { color: var(--muted); }
.login-page { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 420px); padding: clamp(24px, 6vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 40px #202d5210; }
.login-card h1 { margin: 26px 0 22px; font-size: clamp(1.65rem, 6vw, 2.05rem); }
.login-card form { display: grid; gap: 10px; }
.login-card input, .login-card .button { min-height: 44px; }
.login-card button[type="submit"] { margin-top: 10px; }
.login-card .feedback:empty { display: none; }
.amendment-list blockquote { margin: 8px 0; }
.workspace-layout { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 24px; width: min(1456px, calc(100% - 52px)); margin: 22px auto 0; align-items: start; }
.workspace-layout > main.shell { width: 100%; min-width: 0; margin: 0; }
.workspace-nav { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 6px; width: 100%; margin: 1px 0 0; padding: 9px; border-radius: 18px; background: #f8f9fe; }
.workspace-nav button { display: flex; align-items: center; gap: 8px; text-align: left; min-height: 46px; padding-inline: 7px; border-radius: 10px; justify-content: flex-start; }
.workspace-nav button > span { width: 26px; line-height: 1; text-align: center; font-size: 1.15rem; }
.workspace-nav button[aria-pressed=true] { background: #e3e8ff; color: #3446a7; box-shadow: inset 3px 0 #6d7cdd; }
.intro { margin: 0 0 19px; gap: 15px; grid-template-columns: minmax(0, 1fr) minmax(258px, 400px); }
.intro h1 { margin-top: 0; font-weight: 740; font-size: clamp(1.8rem, 3.2vw, 2.55rem); letter-spacing: -.05em; }
.intro .method { margin-top: 5px; }
.documents, .summary, .inbox, .discovery { border-radius: 17px; box-shadow: 0 4px 14px #23335308; }
.button { border-radius: 10px; }
.dashboard-lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, 1fr); gap: 16px; align-items: stretch; }
.central-hero { isolation: isolate; overflow: hidden; position: relative; min-height: 236px; border: 1px solid #36477a; background: linear-gradient(123deg, #202d56 13%, #344786 77%, #5668c2); color: #fff; border-radius: 18px; display: grid; align-items: center; padding: clamp(19px, 3vw, 36px); }
.central-hero-copy { position: relative; z-index: 1; }
.central-hero h2 { font-size: clamp(1.64rem, 3vw, 2.6rem); letter-spacing: -.047em; line-height: 1.03; max-width: 15ch; }
.central-hero p { margin-top: 12px; max-width: 34ch; color: #e4e9ff; font-size: .9rem; }
.central-hero .hero-action { gap: 8px; margin-top: 16px; background: #edf0ff; color: #263874; box-shadow: 0 5px 16px #1722474d; }
.central-hero .hero-action:hover { background: white; }
.hero-radar { pointer-events: none; position: absolute; z-index: 0; inset: 0 0 0 43%; overflow: hidden; }
.hero-radar i, .hero-radar span { display: block; position: absolute; }
.hero-radar i { width: 185px; aspect-ratio: 1; right: -37px; top: 28px; border: 1px solid #dce3ff5e; border-radius: 34%; transform: rotate(-33deg); background: linear-gradient(155deg, #a3b2fe42, #522fff0b 60%); box-shadow: inset 0 0 30px #d6e2ff28; }
.hero-radar i:nth-child(2) { right: -15px; top: 50px; transform: rotate(-18deg); opacity: .7; }
.hero-radar i:nth-child(3) { right: 10px; top: 72px; transform: rotate(1deg); opacity: .45; }
.hero-radar span { width: 11px; aspect-ratio: 1; border-radius: 50%; background: #8ee4cd; top: 42px; right: 108px; box-shadow: 0 0 0 7px #a4fff133, 0 0 30px #b0fdf6; }
.segment-board { margin: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 19px; }
.segment-chart { display: grid; gap: 10px; padding: 0; margin: 12px 0; list-style: none; }
.segment-chart li { display: grid; grid-template-columns: minmax(105px, 1fr) minmax(28px, .7fr) 22px; gap: 8px; align-items: center; font-size: .79rem; }
.segment-chart strong { font-size: .84rem; text-align: right; }
.segment-jump { border: 0; color: var(--ink); background: transparent; border-radius: 5px; padding: 3px 0; min-height: 44px; text-align: left; }
.segment-jump:hover { color: var(--blue); text-decoration: underline; }
#capture-segment { margin-bottom: 12px; font-size: .86rem; }
.segment-track { height: 7px; background: #e9edf8; border-radius: 8px; overflow: hidden; }
.segment-track span { height: 100%; display: block; background: #6676d8; border-radius: inherit; }
.segment-chart li:nth-child(2) .segment-track span { background: #579f96; }
.segment-chart li:nth-child(3) .segment-track span { background: #9886d4; }
.segment-chart li:nth-child(4) .segment-track span { background: #648bce; }
.segment-board > .method { font-size: .76rem; margin: 0; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 12px; margin: 16px 0 0; }
.dashboard-metrics > div { background: var(--paper); padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.dashboard-metrics dd { font-size: 1.55rem; letter-spacing: -.06em; line-height: 1.2; }
.dashboard-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dashboard-recent, .dashboard-shadow { min-width: 0; padding: 18px; }
.dashboard-recent h2, .dashboard-shadow h2 { margin-bottom: 12px; }
.dashboard-recent .file-list li { min-width: 0; }
.deadline-filters { margin-top: 12px; }
.deadline-filters select { min-width: 0; }
.deadline-list { padding: 0; margin: 0; list-style: none; }
.deadline-row {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr) auto;
  align-items: start;
  gap: 12px 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.deadline-row .file-label, .deadline-agenda, .deadline-filters label { min-width: 0; overflow-wrap: anywhere; }
.deadline-agenda { display: grid; gap: 8px; }
.deadline-event-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.deadline-event p, .deadline-periods p { margin: 3px 0; }
.deadline-periods span { display: block; }
.deadline-tag {
  width: fit-content;
  border-radius: 7px;
  background: var(--soft);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 650;
  padding: 2px 8px;
}
.deadline-today { background: #fce6e3; color: #8f201a; }
.deadline-soon { background: #fff0ce; color: #733e00; }
.deadline-conflict { margin-top: 5px; background: #eee6fc; color: #522484; }
.team-agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 12px; }
.agent-card { margin: 0; padding: 16px; min-height: 115px; }
.agent-card h2 { font-size: 1rem; }
.agent-card p { margin-top: 7px; }
.team-list li { min-width: 0; }
.team-list .file-label { overflow-wrap: anywhere; }
.team-list .team-result { color: var(--muted); margin-top: 4px; }
.team-list .team-review { margin: 4px 0; }
.team-evidence .team-evidence-label { font-weight: 650; margin: 12px 0 0; }
.team-evidence blockquote { margin: 4px 0; }
.analysis-dates { margin-top: 14px; }
.analysis-dates h3, .other-checks-title { margin: 0 0 8px; font-size: 1rem; }
.other-checks-title { margin-top: 20px; }
.proposal-panel { display: grid; gap: 14px; }
.proposal-panel h3 { font-size: 1rem; margin: 0; }
.proposal-panel label { display: grid; gap: 4px; min-width: 0; font-weight: 650; }
.proposal-select { max-width: 28rem; }
.proposal-catalogs, .proposal-cells { display: grid; gap: 12px; }
.proposal-catalogs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proposal-work, .proposal-matrix { display: grid; gap: 12px; }
.proposal-catalog, .proposal-result, .proposal-requirement {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.proposal-catalog form, .proposal-offer { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 10px; }
.proposal-catalog input { max-width: 100%; }
.proposal-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 0; }
.proposal-cells > div { padding: 8px 10px; background: var(--soft); border-radius: 8px; }
.proposal-cells dt { font-weight: 650; font-size: .82rem; }
.proposal-cells dd { margin: 3px 0 0; }
.proposal-sources blockquote { margin: 8px 0; }
.proposal-sources .proposal-catalogs { padding-top: 8px; }
.proposal-requirement h3, .proposal-requirement pre, .proposal-requirement textarea { grid-column: 1 / -1; }
.proposal-requirement label:has(textarea) { grid-column: 1 / -1; }
.proposal-requirement textarea { font: inherit; max-width: 100%; padding: 8px; }
.proposal-page-text { max-height: 12rem; overflow: auto; white-space: pre-wrap; padding: 8px; background: var(--soft); }
.proposal-commercial, .commercial-phase { border: 1px solid var(--line); padding: 14px; border-radius: 12px; }
.commercial-phase + .commercial-phase { margin-top: 10px; }
.commercial-phase summary { font-weight: 650; cursor: pointer; }
.commercial-template, .commercial-form { margin-top: 12px; }
.commercial-template > * { margin-bottom: 7px; }
.commercial-form label:has(textarea) { grid-column: 1 / -1; }
.commercial-form textarea { font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.dispatch-panel { grid-column: 1 / -1; min-width: 0; margin: 5px 0 9px; }
.dispatch-panel > summary { color: var(--blue); }
.dispatch-form { margin: 12px 0; }
.dispatch-docs { grid-column: 1 / -1; }
.dispatch-doc { padding: 8px; margin-bottom: 8px; background: var(--soft); border-radius: 8px; }
.dispatch-form input[type="checkbox"] { width: auto; justify-self: start; }
#capture-tools { align-self: end; }
#capture-tools > summary, .office-member > summary { cursor: pointer; font-weight: 650; color: var(--blue); }
#capture-tools form { margin-top: 10px; }
.operational-panel label { display: grid; gap: 5px; min-width: 0; }
.office-edit, .office-grants, .product-suggestions { grid-column: 1 / -1; }
.office-edit { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.office-member, .product-suggestion { padding: 9px; margin-block: 6px; border: 1px solid var(--line); border-radius: 8px; }
.office-member form { margin-top: 10px; }
.office-grants { border: 1px solid var(--line); padding: 10px; min-width: 0; }
.office-grants label, .product-suggestion label { display: flex; align-items: center; gap: 8px; }
.office-grants input, .product-suggestion input { width: auto; }
.product-suggestion blockquote { margin: 6px 0; }
.library-suggestions { margin-top: 14px; }
.library-row { margin: 8px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.library-row[open] { background: var(--soft); }
.library-row .actions { margin: 8px 0; }
.radar-portals { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: .875rem; }
.operational-panel input[type="checkbox"] { width: auto; justify-self: start; }
@media (max-width: 760px) {
  .proposal-catalogs, .proposal-cells { grid-template-columns: minmax(0, 1fr); }
}
.team-list .actions { justify-content: flex-end; }

@media (max-width: 1040px) {
  .workspace-layout { grid-template-columns: 154px minmax(0, 1fr); gap: 17px; width: calc(100% - 38px); }
  .workspace-nav { padding-inline: 6px; }
  .workspace-nav button { font-size: .83rem; }
}
@media (max-width: 760px) {
  .workspace-layout { display: block; width: calc(100% - 26px); margin-top: 10px; }
  .bar .shell { width: calc(100% - 26px); }
  .bar-content { min-height: 62px; }
  .workspace-nav { position: static; flex-direction: row; align-items: stretch; flex-wrap: wrap; gap: 3px 5px; margin-bottom: 16px; }
  .workspace-nav button { flex: 1 1 auto; min-height: 44px; }
  .intro { grid-template-columns: minmax(0, 1fr); }
  .dashboard-lead, .dashboard-secondary { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .deadline-row { grid-template-columns: minmax(0, 1fr); }
  .deadline-row > .button { justify-self: start; }
  .central-hero { min-height: 200px; }
  .dashboard-metrics { gap: 7px; }
  .team-list .actions { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .dashboard-lead .hero-radar { opacity: .62; }
  .team-list li { grid-template-columns: 1fr; }
}
