/* Olimp CRM. Independent visual implementation using the supplied Gectaro
   reference: neutral surfaces, blue navigation, yellow dialog saves. */
:root {
  font-family: Roboto, Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px; color: #333; background: #f8f9fb;
  --accent: #0076ff; --border: #e5e8ee; --muted: #77818d;
  --rail: 64px; --sidebar: 64px; --yellow: #ffe600;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .5; cursor: default; }
a { text-decoration: none; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #0076ff70; outline-offset: 3px;
}
button svg, a svg { flex-shrink: 0; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: 28px; font-weight: 500; letter-spacing: -.45px; line-height: 1.3; }
h2 { font-size: 16px; font-weight: 500; }
h3 { font-size: 15px; font-weight: 500; }
small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 80px; z-index: 40; background: white; padding: 12px; border: 1px solid var(--accent); }
.skip-link:focus { top: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--rail); background: white; border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; z-index: 5; padding: 20px 0 0; }
.brand { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.brand>span:last-child, .workspace-label, .brand-sub { display: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: white; background: var(--accent); font-size: 31px; font-weight: 500; line-height: 1; }
#navigation { width: 100%; margin-top: 39px; }
.nav-item { position: relative; display: flex; justify-content: center; align-items: center; width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 8px; color: #8c949f; }
.nav-item:hover { background: #f1f5fb; color: var(--accent); }
.nav-item.active { background: #edf4ff; color: var(--accent); }
.nav-item>span:not(.nav-count) { position: absolute; left: 51px; top: 8px; opacity: 0; pointer-events: none; background: #343d4b; color: white; border-radius: 5px; padding: 8px 12px; font-size: 12px; white-space: nowrap; transform: translateX(-3px); }
.nav-item:hover>span:not(.nav-count), .nav-item:focus-visible>span:not(.nav-count) { opacity: 1; transform: none; }
.nav-count { position: absolute; right: 0; top: 0; background: #0076ff; color: white; font-size: 9px; border-radius: 8px; padding: 1px 4px; min-width: 13px; text-align: center; }
.sidebar-bottom { margin-top: auto; width: 100%; }
.demo-note { display: none; }
.reset-button { display: block; margin: 10px auto; width: 42px; height: 38px; padding: 0; border: 0; background: transparent; overflow: hidden; font-size: 0; color: #8c949f; border-radius: 7px; }
.reset-button::before { content: '↺'; font-size: 24px; }
.reset-button:hover { background: #f1f5fb; color: var(--accent); }
.organization { border-top: 1px solid var(--border); padding: 19px 0; display: flex; justify-content: center; }
.organization>div { display: none; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 11px; font-weight: 500; background: #eaf0f8; color: #617b9c; flex-shrink: 0; }
.avatar.tiny { width: 26px; height: 26px; font-size: 10px; }
.shell { margin-left: var(--rail); min-height: 100vh; }
.topbar { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 42px 16px 58px; background: white; border-bottom: 1px solid #f0f1f4; }
.company-brand { font-size: 20px; font-weight: 600; letter-spacing: .8px; }
.company-brand>span { display: block; font-size: 10px; color: #8a929d; font-weight: 400; letter-spacing: 0; margin-top: 5px; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.mailbox-button { display: flex; gap: 10px; align-items: center; border: 0; background: transparent; text-align: left; font-size: 12px; color: #505d6d; padding: 4px; }
.mailbox-button small { display: block; font-size: 10px; color: #87919d; margin-top: 4px; }
.mailbox-symbol { color: #8193aa; font-size: 24px; }
.demo-pill { display: inline-block; color: #5b8dcb; background: #f0f5fe; padding: 5px 8px; border-radius: 5px; font-size: 9px; letter-spacing: .6px; }
.actor-control select { border: 1px solid #e8ebef; border-radius: 7px; padding: 9px 26px 9px 10px; font-size: 12px; color: #536172; background: white; max-width: 205px; }
.context-header { padding: 21px 42px 0 58px; }
#breadcrumb { font-size: 11px; color: #8d96a2; display: block; margin-bottom: 13px; }
#section-navigation { display: flex; gap: 28px; border-bottom: 1px solid #e2e6eb; }
.context-tab { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 10px 0 16px; color: #5f6874; font-size: 18px; font-weight: 400; line-height: 20px; white-space: nowrap; }
.context-tab.active { color: var(--accent); border-color: var(--accent); }
.context-tab:hover { color: var(--accent); }
main { padding: 28px 42px 24px 58px; max-width: 1760px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.eyebrow { display: none; }
.page-heading p { color: #818b98; font-size: 12px; line-height: 1.65; margin-top: 9px; }
.heading-stat { font-size: 12px; color: #84909f; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 37px; padding: 9px 14px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 400; white-space: nowrap; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: #0066dc; }
.secondary { border-color: #dce1e8; background: white; color: #677283; }
.secondary:hover { border-color: #a6c4e7; background: #f8faff; }
.page-heading>.primary { color: var(--accent); background: transparent; border: 0; font-size: 14px; padding-right: 0; }
.page-heading>.primary svg { width: 22px; height: 22px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 0; background: transparent; color: var(--accent); text-align: left; font-size: 12px; }
.text-button:hover, .text-link:hover { color: #0059be; }
.text-link { color: var(--accent); font-size: 12px; }
.icon-button { display: inline-grid; place-items: center; min-width: 32px; min-height: 34px; border: 0; border-radius: 6px; background: transparent; color: #8995a5; }
.icon-button:hover { color: var(--accent); background: #eff5fe; }
.overview-line { display: flex; justify-content: space-between; font-size: 11px; color: #7f8996; margin-bottom: 14px; gap: 15px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #82afec; margin-right: 6px; }
.green-dot { background: #68b28d; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.metric { border: 1px solid var(--border); background: white; border-radius: 10px; padding: 16px 18px 13px; text-align: left; box-shadow: 0 2px 3px #17202d03; }
.metric:hover { border-color: #a8c9f4; }
.metric.selected { outline: 2px solid #0076ff; outline-offset: 1px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: #667180; min-height: 32px; line-height: 1.5; }
.metric-icon { padding: 5px; display: flex; align-items: center; border-radius: 6px; background: #eef5ff; color: #73a0d8; }
.red .metric-icon { background: #fff1f1; color: #d98686; }
.purple .metric-icon { background: #f2f0fb; color: #a293c9; }
.metric strong { display: block; font-size: 30px; font-weight: 500; line-height: 1.25; margin: 6px 0; color: #333; }
.metric-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; line-height: 1.5; color: #8993a1; }
.hint { display: flex; align-items: center; gap: 7px; color: #86909e; font-size: 10px; line-height: 1.6; margin: 13px 0 18px; }
.hint svg { color: #a7b0bd; flex-shrink: 0; }
.review-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 17px; border: 1px solid #dbe6f6; background: #f0f5fc; border-radius: 8px; margin-bottom: 22px; }
.review-banner strong { font-size: 12px; color: #5c7da6; font-weight: 500; }
.review-banner span { display: inline; font-size: 11px; color: #8696ab; margin-left: 15px; line-height: 1.6; }
.review-banner .text-button { white-space: nowrap; }
.panel { background: white; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 2px 4px #23314b02; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 20px; border-bottom: 1px solid #edf0f4; }
.panel-heading h2 { display: flex; align-items: center; gap: 9px; }
.panel-heading p { font-size: 11px; color: #8792a1; line-height: 1.6; margin-top: 5px; }
.count { display: inline-grid; place-items: center; min-width: 18px; border-radius: 5px; font-size: 10px; font-weight: 400; background: #edf1f6; color: #8391a5; padding: 2px 5px; }
.table-wrap { overflow-x: auto; position: relative; }
.requests-table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; }
.requests-table th { font-size: 11px; font-weight: 400; color: #8a94a1; padding: 12px 15px; border-bottom: 1px solid #edf0f4; background: #fcfdfe; }
.requests-table th:first-child { width: 32%; }
.requests-table th:nth-child(2) { width: 24%; }
.requests-table th:nth-child(3) { width: 18%; }
.requests-table th:nth-child(4) { width: 23%; }
.requests-table th:last-child { width: 3%; }
.requests-table td { vertical-align: middle; padding: 12px 15px; border-bottom: 1px solid #edf0f4; font-size: 12px; overflow-wrap: anywhere; }
.requests-table th:first-child,.requests-table td:first-child { padding-left: 20px; }
.requests-table td:last-child { padding-left: 0; padding-right: 7px; }
.requests-table tr:last-child td { border-bottom: 0; }
.requests-table tbody tr:hover { background: #fafcff; }
.row-id { display: inline; font-size: 10px; color: #8995a6; margin-right: 6px; }
.request-title { display: block; font-size: 12px; font-weight: 400; line-height: 1.55; color: #3c4858; margin: 3px 0; }
.request-title:hover { color: var(--accent); }
.muted { font-size: 11px; color: #8290a2; }
.source-note { display: block; font-size: 9px; color: #8a97a9; line-height: 1.5; margin-top: 3px; }
.response-note, .duplicate-note { display: block; font-size: 9px; color: #8392a5; line-height: 1.5; margin-top: 5px; }
.duplicate-note { color: #b49659; }
.badge { display: inline-flex; align-items: center; padding: 4px 7px; font-size: 10px; font-weight: 400; line-height: 1.35; border-radius: 5px; background: #f1f4f8; color: #8995a6; }
.badge.us { background: #edf5ff; color: #6893c8; }
.badge.client,.badge.supplier { background: #eef3fb; color: #718bb3; }
.badge.promise { background: #f2effa; color: #9983bb; }
.badge.done { background: #edf7f0; color: #639f7c; }
.badge.risk { background: #fcf0ef; color: #c9827c; }
.badge.neutral { background: #f2f4f7; color: #8994a5; }
.owner { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.5; color: #7c899c; }
.owner.unassigned { color: #c58a6b; }
.next-step { display: block; font-size: 11px; line-height: 1.55; color: #7c8798; margin-bottom: 4px; }
.due { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 10px; color: #8090a4; }
.late { color: #cf7c78; }
.due small,.task-date small { display: block; width: 100%; font-size: 9px; margin-top: 1px; }
.dashboard-bottom { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.dashboard-bottom .panel { margin-bottom: 0; }
.task-row { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #edf0f4; }
.task-row:last-child { border-bottom: 0; }
.task-check { display: flex; align-items: center; padding: 4px 0; }
.task-check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.task-content { flex: 1; min-width: 0; }
.task-content strong { display: block; font-size: 12px; font-weight: 400; line-height: 1.55; }
.task-content span { display: block; font-size: 10px; color: #8593a6; margin-top: 3px; }
.task-content .text-button { font-size: 10px; }
.task-content.completed strong { color: #9da7b5; text-decoration: line-through; }
.task-date { text-align: right; font-size: 10px; white-space: nowrap; }
.workload { padding: 16px 20px; }
.workload>div { display: grid; grid-template-columns: 1fr auto; gap: 5px; margin-bottom: 12px; font-size: 11px; color: #8793a5; }
.workload>div:last-child { margin-bottom: 0; }
.workload strong { font-size: 11px; font-weight: 400; }
.bar { grid-column: 1/-1; height: 3px; background: #f1f4f8; overflow: hidden; border-radius: 4px; }
.bar-fill { display: block; height: 100%; background: #9dbfeb; border-radius: 4px; }
.bar-0 { width:0; }.bar-1 { width:20%; }.bar-2 { width:40%; }.bar-3 { width:60%; }.bar-4 { width:80%; }.bar-5,.bar-6,.bar-7,.bar-8,.bar-9,.bar-10 { width:100%; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 0 42px 22px 58px; font-size: 9px; line-height: 1.5; color: #98a2b0; }
.mobile-reset { display: none; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 17px 20px; }
.toolbar.standalone { padding: 0; margin-bottom: 20px; }
.search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 215px; border: 1px solid #dfe5ed; border-radius: 7px; color: #97a4b6; background: white; padding: 0 10px; }
.search input { padding: 10px 0; width: 100%; border: 0; background: transparent; color: #66758a; font-size: 11px; outline: none; }
.search input::placeholder { color: #9aa5b5; }
.search:focus-within { outline: 2px solid #0076ff55; }
.filter-select select { min-height: 35px; max-width: 205px; padding: 8px 25px 8px 10px; border: 1px solid #dfe5ed; border-radius: 7px; background: white; font-size: 11px; color: #778499; }
.results-line { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: #8896a8; padding: 0 20px 14px; }
.results-line span { color: #a0a9b6; }
.reset-filters { font-size: 11px; }
.card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.entity-card { border: 1px solid var(--border); background: white; border-radius: 10px; padding: 22px; box-shadow: 0 2px 4px #25385803; min-width: 0; }
.entity-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.entity-avatar { display: inline-flex; justify-content: center; align-items: center; width: 38px; height: 38px; border-radius: 8px; background: #ecf3fd; color: #82a6d2; font-size: 12px; font-weight: 500; flex-shrink: 0; }
.entity-avatar.green { background: #ecf5ef; color: #82b395; }
.entity-avatar.purple { background: #f1eef8; color: #ac9ac7; }
.entity-avatar.orange { background: #fff4e7; color: #ccb188; }
.entity-card h2 { font-size: 18px; margin-bottom: 7px; font-weight: 400; line-height: 1.5; }
.object-block { display: flex; gap: 11px; padding: 15px; background: #f8f9fb; border-radius: 7px; margin: 19px 0; color: #8e9eb3; }
.object-block small,.offer-block small { display: block; font-size: 9px; color: #98a4b6; letter-spacing: .3px; margin-bottom: 7px; line-height: 1.6; }
.object-block strong { display: block; font-size: 12px; color: #6d7f97; font-weight: 400; }
.object-block span { display: block; font-size: 10px; margin-top: 5px; }
.entity-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 11px; color: #8b99ad; }
.offer-block { border-radius: 7px; padding: 16px; margin: 18px 0; background: #f8f9fb; }
.offer-block>strong { display: block; font-size: 12px; font-weight: 400; color: #71839e; }
.offer-block>div { display: flex; justify-content: space-between; gap: 14px; margin-top: 13px; color: #677b96; font-size: 12px; }
.offer-block p { font-size: 12px; line-height: 1.7; margin-top: 12px; color: #8393aa; }
.tabs { display: flex; gap: 25px; border-bottom: 1px solid #e1e6ed; margin-bottom: 22px; }
.tabs button { display: flex; align-items: center; gap: 8px; padding: 10px 0 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 14px; font-weight: 400; color: #7c899b; line-height: 1.5; text-align: left; }
.tabs button[aria-selected=true] { color: var(--accent); border-color: var(--accent); }
.info-banner { display: flex; align-items: center; gap: 11px; padding: 13px 17px; border: 1px solid #e0eaf8; background: #f0f5fc; border-radius: 7px; color: #7a9fcf; margin-bottom: 21px; }
.info-banner svg { flex-shrink: 0; }
.info-banner strong { display: block; font-size: 11px; font-weight: 400; line-height: 1.6; color: #7390b6; }
.info-banner span { display: block; font-size: 10px; color: #899fb9; line-height: 1.7; margin-top: 3px; }
.calls-list { background: white; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.call-card { display: flex; align-items: center; gap: 18px; padding: 20px; border-bottom: 1px solid #edf0f5; }
.call-card:last-child { border: 0; }
.call-content { flex: 1; min-width: 0; }
.call-meta { display: flex; align-items: center; gap: 12px; font-size: 10px; color: #8f9bad; margin-bottom: 7px; }
.call-content h2 { margin-bottom: 7px; }
.call-content p { font-size: 12px; color: #8091a9; line-height: 1.7; }
.call-content small { display: block; font-size: 10px; color: #97a3b5; margin-top: 9px; }
.empty { text-align: center; color: #9daabb; padding: 48px 22px; grid-column: 1/-1; width: 100%; }
.empty svg { margin-bottom: 15px; }
.empty h3 { color: #687b95; margin-bottom: 10px; }
.empty p { font-size: 12px; margin-bottom: 19px; }
.empty-small { font-size: 12px; color: #8c9bae; padding: 24px 20px; }
.review-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: white; }
.review-grid .entity-card { display: grid; grid-template-columns: minmax(220px,1fr) minmax(210px,1fr) auto; column-gap: 28px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 18px 20px; box-shadow: none; }
.review-grid .entity-card:last-child { border-bottom: 0; }
.review-grid .badge { grid-column: 1; justify-self: start; font-size: 9px; }
.review-grid .candidate-title { grid-column: 1; font-size: 14px; margin: 8px 0 5px; }
.review-grid .muted,.review-grid .source-note { grid-column: 1; }
.review-grid .context-note { grid-column: 2; grid-row: 1/5; align-self: center; background: transparent; padding: 0; margin: 0; font-size: 11px; line-height: 1.8; }
.candidate-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.review-grid .candidate-actions { grid-column: 3; grid-row: 1/5; flex-direction: column; align-items: flex-start; justify-content: center; gap: 11px; }
.review-grid .duplicate-link { grid-column: 2; margin-top: 10px; }
/* Dialogs retain native focus management. The journal is beside the form. */
dialog { width: min(600px,calc(100% - 36px)); max-height: 90dvh; border: 0; border-radius: 10px; padding: 0; color: #333; background: white; box-shadow: 0 20px 90px #15243e35; }
dialog.wide-dialog { width: min(920px,calc(100% - 36px)); }
dialog::backdrop { background: #26334b70; }
.dialog-heading { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 26px; background: white; border-bottom: 1px solid #e9edf3; }
.dialog-heading h2 { font-size: 22px; font-weight: 500; }
.dialog-body { padding: 24px 26px; }
.request-layout { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 25px; }
.request-editor { min-width: 0; }
.request-aside { border-left: 1px solid #e8edf4; padding-left: 20px; min-width: 0; }
.request-dialog-title { font-size: 18px; line-height: 1.5; font-weight: 500; margin-bottom: 11px; }
.detail-summary { display: flex; justify-content: space-between; gap: 18px; font-size: 11px; color: #8090a7; line-height: 1.7; }
.detail-summary strong { color: #526985; white-space: nowrap; font-weight: 500; }
.detail-badges { display: flex; gap: 7px; flex-wrap: wrap; margin: 15px 0 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; font-size: 11px; color: #8091a9; }
.form-grid .full { grid-column: 1/-1; }
.form-grid input,.form-grid select { min-width: 0; width: 100%; min-height: 39px; padding: 10px 11px; border: 1px solid #e6ebf2; background: #f8f9fb; border-radius: 6px; color: #62758f; font-size: 12px; }
.form-note { font-size: 11px; color: #91a0b4; line-height: 1.7; margin: 16px 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.form-error { color: #c57570; font-size: 12px; line-height: 1.7; }
.form-actions .primary { background: var(--yellow); color: #333; border-color: var(--yellow); }
.form-actions .primary:hover { background: #f4dc00; border-color: #f4dc00; }
.form-actions .secondary { background: #f4f6f9; border-color: #e7ecf2; color: #8191a8; }
.history { border-top: 1px solid #e8edf4; margin-top: 25px; padding-top: 22px; }
.request-aside .history { border: 0; margin: 0; padding: 0; }
.history h3 { font-size: 14px; margin-bottom: 21px; }
.history-item { display: flex; gap: 9px; padding-bottom: 20px; }
.history-dot { width: 6px; height: 6px; flex-shrink: 0; margin-top: 6px; background: #a4bddd; border-radius: 50%; }
.history-item p { font-size: 11px; color: #8192aa; line-height: 1.75; }
.history-item small { display: block; font-size: 9px; color: #a2afc0; line-height: 1.6; margin-top: 5px; }
.history-item .history-mailbox { font-size: 8px; margin-top: 2px; overflow-wrap: anywhere; }
.call-review { padding: 11px 13px; background: #f0f5fc; border: 1px solid #e3ecf9; border-radius: 6px; font-size: 10px; line-height: 1.75; color: #829bbd; margin: 15px 0; }
.call-review .text-button { font-size: 10px; }
.details { display: grid; grid-template-columns: 145px 1fr; gap: 16px; margin: 24px 0; font-size: 12px; line-height: 1.7; }
.details dt { color: #97a5b8; }
.details dd { margin: 0; color: #6f829e; overflow-wrap: anywhere; }
.details small { display: block; color: #9cacc0; font-size: 10px; }
.context-note { padding: 14px 16px; font-size: 12px; color: #8396b0; line-height: 1.8; border-radius: 7px; background: #f8f9fb; margin: 20px 0; }
.related-request { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid #e9eef6; background: transparent; text-align: left; font-size: 12px; color: #7b90ae; line-height: 1.7; }
.related-request:hover { color: var(--accent); }
.transcript { background: #f8f9fb; padding: 18px; border-radius: 7px; margin: 22px 0; }
.speech { margin-bottom: 18px; }
.speech:last-child { margin-bottom: 0; }
.speech strong { font-size: 11px; font-weight: 500; color: #7892b4; }
.speech p { font-size: 12px; line-height: 1.8; color: #8398b5; margin-top: 5px; }
.agreement { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #e5ebf4; border-radius: 7px; padding: 16px; margin: 20px 0; }
.agreement strong { display: block; font-size: 12px; font-weight: 400; line-height: 1.7; }
.agreement small { display: block; font-size: 10px; color: #90a3bd; margin-top: 6px; line-height: 1.7; }
.team-mailbox { display: flex; align-items: center; gap: 14px; background: #f8f9fb; border-radius: 8px; padding: 18px; }
.team-mailbox strong { font-weight: 400; color: #5c769b; }
.team-mailbox p { font-size: 11px; color: #91a3bc; margin-top: 6px; }
.team-mailbox .badge { margin-left: auto; }
.role-matrix { border-collapse: collapse; width: 100%; min-width: 510px; font-size: 12px; text-align: left; }
.role-matrix th { color: #95a6bf; font-size: 11px; font-weight: 400; padding: 11px; border-bottom: 1px solid #e7edf7; }
.role-matrix td { color: #7188a9; padding: 14px 11px; border-bottom: 1px solid #ecf0f7; }
.employee-code { color: #a4b2c6; margin-right: 10px; font-size: 10px; }
.toast { position: fixed; left: calc(50% + 32px); bottom: 24px; transform: translate(-50%,15px); max-width: calc(100% - 45px); background: #33445e; color: white; padding: 13px 20px; font-size: 12px; line-height: 1.7; border-radius: 8px; opacity: 0; z-index: 30; pointer-events: none; transition: opacity .15s,transform .15s; box-shadow: 0 4px 20px #29364d20; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
@media(max-width:1200px) {
  .topbar { padding-left: 36px; padding-right: 28px; }
  .context-header { padding-left: 36px; padding-right: 28px; }
  main { padding-left: 36px; padding-right: 28px; }
  footer { padding-left: 36px; padding-right: 28px; }
  #section-navigation { gap: 23px; }.context-tab { font-size: 16px; }
  .metric { padding: 14px; }.metric-top { font-size: 11px; }.metrics { gap: 12px; }
  .requests-table th,.requests-table td { padding-left: 11px; padding-right: 11px; }
  .avatar.tiny { display: none; }.owner { font-size: 10px; }
  .request-title { font-size: 11px; }.next-step { font-size: 10px; }
  .review-grid .entity-card { column-gap: 20px; grid-template-columns: minmax(180px,1fr) minmax(170px,1fr) auto; }
}
@media(max-width:960px) {
  .topbar { padding: 14px 24px; }.context-header { padding: 19px 24px 0; }
  main { padding: 24px; }footer { padding: 0 24px 22px; }
  #section-navigation { gap: 17px; }.context-tab { font-size: 14px; }
  .topbar-right { gap: 12px; }.actor-control select { max-width: 165px; font-size: 11px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.metric-top { min-height: 26px; }
  .metric strong { margin-top: 4px; }.metric-bottom { font-size: 11px; }
  .review-banner span { display: block; margin: 5px 0 0; }
  .requests-table { min-width: 720px; table-layout: auto; }
  .dashboard-bottom { grid-template-columns: 1fr; gap: 20px; }
  .card-grid { gap: 16px; }.entity-card { padding: 19px; }.entity-card h2 { font-size: 16px; }
  .entity-top { flex-wrap: wrap; }.offer-block>div { flex-direction: column; gap: 8px; }
  .review-grid { gap: 0; }.review-grid .entity-card { grid-template-columns: 1fr 1fr; }
  .review-grid .candidate-actions { grid-row: auto; grid-column: 1/-1; flex-direction: row; align-items: center; margin-top: 16px; }
  .review-grid .context-note { grid-column: 2; }.review-grid .duplicate-link { grid-column: 1/-1; }
  .call-card { gap: 15px; flex-wrap: wrap; }.call-card>.button { margin-left: 53px; }
  .request-layout { grid-template-columns: minmax(0,1fr) 205px; gap: 20px; }
  .request-aside { padding-left: 15px; }
}
@media(max-width:700px) {
  :root { --rail: 0px; --sidebar: 0px; }
  body { padding-bottom: 76px; }
  .sidebar { inset: auto 0 0; width: 100%; height: 66px; padding: 0; box-shadow: 0 -2px 12px #35445906; }
  .sidebar .brand,.sidebar-bottom { display: none; }
  #navigation { display: flex; align-items: center; justify-content: space-around; margin: 0; height: 100%; }
  .nav-item { flex: 1; height: 62px; min-width: 0; margin: 0; border-radius: 0; flex-direction: column; gap: 6px; }
  .nav-item svg { width: 19px; height: 19px; }
  .nav-item>span:not(.nav-count) { position: static; opacity: 1; padding: 0; color: inherit; background: transparent; transform: none; font-size: 8px; }
  .nav-item.active { background: transparent; }
  .nav-item.active::after { content: ''; position: absolute; bottom: 0; width: 30px; height: 2px; background: var(--accent); }
  .nav-count { display: none; }
  .shell { margin: 0; }
  .topbar { min-height: 69px; padding: 13px 17px; gap: 12px; }
  .company-brand { font-size: 17px; }.company-brand>span { font-size: 8px; }
  .topbar-right { gap: 9px; }.mailbox-button { gap: 0; }.mailbox-button>span:last-child { display: none; }
  .mailbox-symbol { font-size: 24px; }.demo-pill { display: none; }
  .actor-control select { max-width: 137px; font-size: 10px; padding-left: 7px; padding-right: 19px; }
  .context-header { padding: 15px 17px 0; }#breadcrumb { margin: 0; font-size: 10px; }
  #section-navigation { display: none; }
  main { padding: 21px 17px; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; gap: 14px; margin-bottom: 23px; }
  h1 { font-size: 26px; }.page-heading p { font-size: 12px; line-height: 1.7; }
  .page-heading>.primary { padding: 0; min-height: 28px; font-size: 13px; }.page-heading>.primary svg { width: 19px; }
  .heading-stat { font-size: 11px; }
  .overview-line { font-size: 9px; gap: 10px; }.overview-line .muted { font-size: 9px; }
  .metrics { gap: 10px; }.metric { padding: 13px 12px; }.metric-top { font-size: 11px; min-height: 38px; gap: 5px; }
  .metric-icon { padding: 4px; }.metric-icon svg { width: 16px; height: 16px; }.metric strong { font-size: 28px; }
  .metric-bottom { font-size: 10px; align-items: flex-start; min-height: 30px; }.metric-bottom svg { width: 12px; height: 12px; margin-top: 2px; flex-shrink: 0; }
  .hint { font-size: 9px; align-items: flex-start; margin-bottom: 17px; }
  .review-banner { padding: 12px 13px; gap: 10px; }.review-banner strong { font-size: 11px; }.review-banner span { font-size: 10px; }.review-banner .text-button { font-size: 10px; }
  .panel-heading { padding: 16px; gap: 10px; }.panel-heading h2 { font-size: 14px; }.panel-heading p { font-size: 10px; }
  .panel-heading>.text-link,.panel-heading>.text-button { font-size: 10px; white-space: nowrap; }
  .requests-table { display: block; min-width: 0; }.requests-table thead { display: none; }.requests-table tbody { display: block; }
  .requests-table tr { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px; border-bottom: 1px solid #edf0f5; position: relative; }
  .requests-table tr:last-child { border-bottom: 0; }
  .requests-table td,.requests-table td:first-child,.requests-table td:last-child { display: block; width: auto; padding: 0; border: 0; }
  .requests-table td:first-child { grid-column: 1/-1; padding-right: 29px; }
  .requests-table td:nth-child(2) { grid-column: 1; }.requests-table td:nth-child(3) { grid-column: 2; max-width: 122px; align-self: center; }
  .requests-table td:nth-child(4) { grid-column: 1/-1; display: flex; justify-content: space-between; gap: 14px; margin-top: 3px; }
  .requests-table td:last-child { position: absolute; top: 27px; right: 12px; }
  .request-title { font-size: 13px; margin: 4px 0; }.source-note { font-size: 9px; }.owner { justify-content: flex-end; font-size: 10px; }
  .badge { font-size: 9px; padding: 4px 6px; }.next-step { font-size: 11px; max-width: 62%; margin: 0; }
  .due { font-size: 9px; display: block; text-align: right; }.due svg { display: none; }
  .task-row { padding: 15px 16px; }.task-content strong { font-size: 12px; }.task-content span { font-size: 9px; }
  .task-date { font-size: 9px; max-width: 78px; white-space: normal; }.workload { padding: 17px 16px; }
  .toolbar { padding: 16px; gap: 8px; }.toolbar .search { flex-basis: 100%; min-width: 0; }.search input { font-size: 12px; }
  .filter-select { flex: 1; min-width: 0; }.filter-select select { width: 100%; max-width: 100%; font-size: 10px; padding-right: 18px; }
  .results-line { padding: 0 16px 13px; font-size: 9px; }.toolbar.standalone { gap: 9px; }
  .card-grid { grid-template-columns: 1fr; }.entity-card { padding: 20px; }.entity-card h2 { font-size: 18px; }.entity-top { flex-wrap: nowrap; }
  .entity-bottom { font-size: 10px; }.entity-bottom .text-button { font-size: 11px; }.offer-block>div { flex-direction: row; font-size: 11px; }
  .tabs { gap: 18px; }.tabs button { font-size: 12px; flex: 1; justify-content: space-between; }.tabs .count { flex-shrink: 0; }
  .info-banner { padding: 12px 13px; align-items: flex-start; }.info-banner strong { font-size: 10px; }.info-banner span { font-size: 9px; }
  .review-grid .entity-card { display: block; padding: 18px; }.review-grid .candidate-title { margin-top: 12px; font-size: 15px; }
  .review-grid .context-note { margin-top: 13px; font-size: 11px; }.review-grid .candidate-actions { display: flex; flex-direction: row; gap: 12px; margin-top: 17px; }
  .candidate-actions .button { font-size: 11px; }.candidate-actions .text-button { font-size: 11px; }.duplicate-link { margin-top: 15px; }
  .call-card { padding: 17px; gap: 12px; }.call-card>.entity-avatar { width: 34px; height: 34px; }.call-card>.button { margin-left: 46px; font-size: 10px; }
  .call-meta { font-size: 9px; flex-wrap: wrap; gap: 7px; }.call-content p { font-size: 11px; }.call-content h2 { font-size: 15px; }
  dialog,dialog.wide-dialog { width: calc(100% - 24px); max-height: 93dvh; }.dialog-heading { padding: 18px; }.dialog-heading h2 { font-size: 20px; }.dialog-body { padding: 20px 18px; }
  .request-layout { display: block; }.request-aside { border: 0; border-top: 1px solid #e7edf6; margin-top: 25px; padding: 22px 0 0; }
  .request-dialog-title { font-size: 17px; }.detail-summary { flex-direction: column; gap: 5px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }.form-grid .full { grid-column: auto; }.form-grid input,.form-grid select { font-size: 16px; }
  .form-grid label { font-size: 12px; }.form-actions { justify-content: stretch; }.form-actions .button { flex: 1; white-space: normal; font-size: 11px; }
  .details { grid-template-columns: 100px 1fr; gap: 14px; font-size: 11px; }.agreement { flex-direction: column; align-items: stretch; gap: 13px; }
  .team-mailbox { flex-wrap: wrap; padding: 14px; }.team-mailbox .badge { margin-left: 0; }.team-mailbox strong { font-size: 12px; }.team-mailbox p { font-size: 10px; }
  .toast { left: 50%; bottom: 81px; width: calc(100% - 34px); font-size: 11px; }
  footer { padding: 0 17px 20px; flex-direction: column; gap: 5px; font-size: 8px; }.mobile-reset { display: inline-flex; align-self: flex-start; padding: 9px 0; margin-top: 5px; font-size: 11px; }
  .skip-link { left: 10px; }
}
@media(prefers-reduced-motion:reduce) { * { transition: none!important; scroll-behavior: auto!important; } }
/* Secondary copy remains readable on the light reference palette. */
.muted,.source-note,.response-note,.next-step,.owner,.due,.task-content span,
.panel-heading p,.metric-bottom,.page-heading p,.form-grid label,.form-note,
.history-item p,.details dt,.details dd,.context-note,.speech p,.call-content p,
.call-content small,.review-grid .context-note { color: #6c7a8f; }
.history-item small,.row-id,.requests-table th,.info-banner span,.source-note,
.results-line,.review-banner span,.call-review,.team-mailbox p { color: #74839a; }
.late,.due.late { color: #b85f5c; }
.badge.us { color: #4276b6; }.badge.promise { color: #80679e; }
.badge.client,.badge.supplier { color: #58749e; }.badge.risk { color: #ae625c; }
.badge.done { color: #4e8662; }.badge.neutral { color: #6f7d91; }
.review-grid .candidate-author { grid-column: 1; }
