:root {
    color-scheme: light;
    --ink: #172d28;
    --muted: #536861;
    --subtle: #657971;
    --primary: #087c62;
    --primary-hover: #06674f;
    --paper: #fff;
    --background: #f3f6f5;
    --sidebar: #102a2a;
    --line: #e2eae6;
    --shadow: 0 2px 6px #183e2f05, 0 10px 24px #183e2f04;
    font: 16px/1.5 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 290px; color: var(--ink); background: var(--background); }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button, a, input, select, textarea, summary, [tabindex] { outline-offset: 3px; }
:focus-visible { outline: 2px solid #198d74; }
button { color: inherit; }
a { color: var(--primary-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { flex: 0 0 auto; display: block; }
p, h1, h2, h3, h4 { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 10px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }

.color-teal { --tint: #e3f5ef; --tone: #096f59; --dot: #219e81; }
.color-green { --tint: #e7f4e9; --tone: #287044; --dot: #50a567; }
.color-blue { --tint: #eaf1fc; --tone: #2f5c99; --dot: #6390d0; }
.color-violet { --tint: #f0edfc; --tone: #5e4d9e; --dot: #8e78ce; }
.color-amber { --tint: #fbf0d9; --tone: #845615; --dot: #d3a043; }
.color-rose { --tint: #fcecec; --tone: #963f4b; --dot: #d16b79; }
.color-slate { --tint: #ebefef; --tone: #4b6260; --dot: #81958e; }

.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; inset-block-start: 0; align-self: start; height: 100dvh; display: flex; flex-direction: column; padding: 28px 16px 21px; background: linear-gradient(165deg, #112e2d, var(--sidebar) 70%); color: #d9e8e2; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 42px; color: white; width: fit-content; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: #99e7ce; color: #123d36; border-radius: 12px; }
.brand-mark svg { width: 23px; height: 23px; }
.brand strong { display: block; font-size: 1.27rem; letter-spacing: -.035em; line-height: 1.12; }
.brand small { display: block; margin-top: 5px; font-size: .68rem; font-weight: 650; letter-spacing: .16em; color: #a4c6ba; line-height: 1; }
.nav { display: grid; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 11px 12px; width: 100%; min-height: 44px; background: transparent; color: #c1d5cd; border: 1px solid transparent; border-radius: 9px; font-size: .92rem; font-weight: 620; text-align: left; }
.nav-link:hover { background: #24413e; color: white; }
.nav-link[aria-current="page"] { color: #e5fff5; background: #214841; border-color: #315a51; }
.nav-link[aria-current="page"] svg { color: #87e2c6; }
.sidebar .nav-link:focus-visible { outline-color: #99e7ce; }
.sidebar-bottom { margin-top: auto; }
.local-status { display: flex; align-items: center; gap: 9px; margin: 16px 12px 0; padding-top: 16px; border-top: 1px solid #36514b; color: #adcac0; font-size: .81rem; white-space: nowrap; }
.local-status > span { width: 7px; height: 7px; border-radius: 50%; background: #8fe1b8; }

.workspace { min-width: 0; }
.topbar { min-height: 75px; padding: 12px clamp(20px, 3.2vw, 46px); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumb { color: var(--muted); font-size: .88rem; }
.breadcrumb span { margin: 0 .45rem; color: #7d9089; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.top-tools { display: flex; gap: 12px; align-items: center; }
.search { display: flex; gap: 10px; align-items: center; padding: 0 9px 0 12px; width: clamp(185px, 20vw, 295px); min-height: 42px; background: #f7faf8; border: 1px solid #dfe8e3; border-radius: 9px; color: var(--subtle); }
.search:focus-within { outline: 2px solid #198d74; outline-offset: 1px; }
.search input { width: 100%; min-width: 0; height: 40px; outline: 0; border: 0; color: var(--ink); background: transparent; font-size: .9rem; }
.search input::placeholder { color: #5c7069; }
kbd { display: grid; place-items: center; min-width: 21px; height: 23px; padding-inline: 5px; border: 1px solid #dce5e0; border-radius: 4px; background: white; color: #5f756b; font: .78rem "Segoe UI", sans-serif; }
.button, .icon-button { min-height: 42px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 8px 13px; border-radius: 8px; border: 1px solid transparent; background: var(--paper); font-size: .89rem; font-weight: 650; text-align: center; }
.button:hover { text-decoration: none; }
.button-primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 3px #105a3520; }
.button-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button-outline { border-color: #d4e1da; background: white; color: #235348; }
.button-outline:hover { background: #f0f8f4; border-color: #98c6b6; }
.button-small { min-height: 34px; padding: 5px 10px; font-size: .82rem; }
.icon-button { width: 40px; min-height: 40px; padding: 0; color: #47665b; background: transparent; }
.icon-button:hover { background: #edf6f1; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--primary-hover); font-size: inherit; font-weight: 650; text-align: left; }
.text-button:hover { text-decoration: underline; }

.page { padding: 32px clamp(20px, 3.2vw, 46px) 48px; margin-inline: auto; max-width: 1720px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.eyebrow { margin-bottom: 6px; color: var(--primary-hover); font-size: .78rem; font-weight: 720; letter-spacing: .1em; text-transform: uppercase; }
h1 { color: #15362d; font-size: clamp(2rem, 3.2vw, 2.85rem); font-weight: 730; letter-spacing: -.05em; line-height: 1.15; }
.heading-copy { margin-top: 8px; color: var(--muted); font-size: .96rem; }
.heading-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 23px; }
.stat { min-height: 145px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 36px; grid-template-areas: "label icon" "value icon" "copy copy"; align-items: start; justify-items: start; gap: 4px 8px; padding: 17px 15px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow); text-align: left; }
.stat:hover { border-color: #a9cbbd; background: #fbfefc; }
.stat-label { grid-area: label; color: #405b52; font-size: .88rem; font-weight: 650; line-height: 1.3; min-height: 1.2em; }
.stat-icon, .panel-icon, .task-symbol, .event-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--tint); color: var(--tone); flex: 0 0 auto; }
.stat-icon { grid-area: icon; }
.stat > strong { grid-area: value; font-size: 2.15rem; line-height: 1.12; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.stat-copy { grid-area: copy; margin-top: 4px; color: var(--subtle); font-size: .83rem; line-height: 1.35; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; margin-bottom: 20px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.panel-head { min-height: 79px; padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e8eee9; }
.panel-identity { display: flex; gap: 11px; align-items: center; min-width: 0; }
.panel-head h2 { font-size: 1.06rem; font-weight: 710; line-height: 1.25; letter-spacing: -.025em; }
.panel-head p { margin-top: 3px; color: var(--muted); font-size: .86rem; }
.panel-link { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; font-size: .85rem; }
.blank { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 212px; padding: 20px; text-align: center; color: var(--ink); }
.page > .blank { margin-top: 12px; border: 1px dashed #cbdcd2; border-radius: 12px; background: white; }
.priorities .blank { min-height: 247px; }
.blank-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 12px; border-radius: 14px; background: #e6f4ee; color: #207d65; }
.blank > strong { font-size: 1.02rem; }
.blank > p { margin: 4px 0 0; color: var(--muted); font-size: .89rem; max-width: 34ch; }
.blank > button { margin-top: 15px; }
.panel-list { padding: 4px 17px; }
.review-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 0; min-height: 60px; border: 0; border-bottom: 1px solid #eaf0eb; background: none; text-align: left; }
.review-row:last-child { border-bottom-color: transparent; }
.review-row:hover strong { color: var(--primary-hover); text-decoration: underline; }
.review-row > svg { color: #789087; }
.avatar { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #e7f2eb; color: #2d6555; font-size: .79rem; font-weight: 750; }
.review-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.review-text strong, .review-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-text strong { font-size: .89rem; font-weight: 650; }
.review-text small { font-size: .82rem; color: var(--subtle); }
.stage-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(119px, 1fr)); gap: 10px; padding: 15px 18px 18px; }
.stage-tile { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px; border: 1px solid transparent; border-radius: 8px; background: var(--tint); color: var(--tone); text-align: left; }
.stage-tile:hover { border-color: var(--dot); }
.stage-tile > span { display: flex; align-items: center; gap: 6px; font-size: .83rem; font-weight: 640; }
.stage-tile > strong { font-size: 1.34rem; line-height: 1.25; }
.stage-tile i, .tag i, .kanban-column h2 i { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }

.view-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.result-count { color: var(--muted); font-size: .9rem; }
.inline-field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .89rem; font-weight: 650; }
input, select, textarea { min-width: 0; }
select { appearance: none; padding-right: 27px !important; background-image: linear-gradient(45deg, transparent 50%, #607a71 50%), linear-gradient(135deg, #607a71 50%, transparent 50%); background-position: calc(100% - 13px) 50%, calc(100% - 9px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }
.inline-field select, .stage-picker select { min-height: 38px; border: 1px solid #d5e0da; border-radius: 8px; background-color: white; color: var(--ink); padding: 6px 9px; }
.inline-field select { max-width: 210px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.prospect-table { width: 100%; border-collapse: collapse; text-align: left; }
.prospect-table th, .prospect-table td { padding: 12px 13px; }
.prospect-table th { background: #f8faf8; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .83rem; font-weight: 670; }
.prospect-table td { font-size: .87rem; border-bottom: 1px solid #eaf0ec; }
.prospect-table tr:last-child td { border-bottom: 0; }
.prospect-table tr:hover td { background: #fbfdfb; }
.prospect-table .open-cell { width: 44px; padding-inline: 0 6px; }
.name-cell > div { display: flex; align-items: center; gap: 10px; }
.name-cell small, .next-cell small { display: block; margin-top: 2px; color: var(--muted); font-size: .81rem; }
.prospect-name { border: 0; padding: 0; background: transparent; text-align: left; font-size: .9rem; font-weight: 670; overflow-wrap: anywhere; }
.prospect-name:hover { color: var(--primary-hover); text-decoration: underline; }
.tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 8px; border-radius: 6px; background: var(--tint); color: var(--tone); font-size: .8rem; font-weight: 650; line-height: 1.35; }
.review-badge { display: inline-block; margin: 4px 0 0 5px; color: #7f5418; font-size: .78rem; font-weight: 650; }
.contact-links { display: flex; flex-wrap: wrap; gap: 7px 15px; }
.contact-links.compact { flex-direction: column; gap: 3px; }
.contact-links > a, .contact-links > span { display: inline-flex; align-items: start; gap: 6px; min-width: 0; font-size: .88rem; overflow-wrap: anywhere; }
.contact-links svg { margin-top: 3px; }
.compact > a, .compact > span { font-size: .82rem; }
.muted { color: var(--muted); }

.kanban-scroll { overflow-x: auto; padding-bottom: 12px; }
.kanban { display: flex; align-items: start; gap: 13px; width: max-content; min-width: 100%; }
.kanban-column { flex: 1 0 220px; width: 220px; min-height: 380px; padding: 0 9px 9px; border: 1px solid #dfe8e1; border-radius: 12px; background: #eaf0ec; }
.kanban-column.drag-over { border: 1px dashed #27886e; background: #ddf1e7; }
.kanban-column h2 { display: flex; align-items: center; gap: 7px; min-height: 47px; padding: 4px 4px 3px; font-size: .94rem; }
.kanban-column h2 > span { flex: 1; overflow-wrap: anywhere; }
.kanban-column h2 > small, .count { color: #49675c; border-radius: 6px; background: #eaf3ed; padding: 3px 8px; font-size: .79rem; font-weight: 700; }
.kanban-column h2 > small { background: white; }
.kanban-cards { display: grid; gap: 8px; }
.kanban-card { padding: 11px; background: white; border: 1px solid #e0e9e3; border-radius: 8px; box-shadow: 0 1px 3px #1c3e2e08; cursor: grab; }
.kanban-card:hover { border-color: #9fc5b6; }
.kanban-card.interested { border-left: 4px solid #38a886; background: #f3fcf7; }
.kanban-card.dragged { opacity: .45; }
.kanban-card-top { display: flex; align-items: start; justify-content: space-between; gap: 5px; }
.kanban-card-top svg { color: #087c62; }
.kanban-card p { margin: 2px 0 8px; color: var(--muted); font-size: .81rem; }
.kanban-card small { display: flex; align-items: center; gap: 5px; color: var(--muted); margin-top: 7px; }
.stage-picker select { width: 100%; min-height: 33px; font-size: .81rem; }
.kanban-empty { padding: 8px 5px; font-size: .85rem; color: var(--subtle); }

.tabs { display: flex; gap: 7px; margin-bottom: 18px; padding-bottom: 2px; overflow: auto; }
.tab { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; min-height: 42px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--muted); font-size: .87rem; font-weight: 650; }
.tab:hover { border-color: #95c7b5; }
.tab[aria-pressed="true"] { border-color: #9acdbb; background: #e4f5ee; color: #0c614b; }
.tab span { padding: 0 6px; background: #edf2ef; border-radius: 5px; font-size: .8rem; }
.tab[aria-pressed="true"] span { background: #d1eadf; }
.task-sections { display: grid; gap: 13px; }
.task-panel .panel-head { min-height: 58px; }
.task-panel .blank { min-height: 135px; }
.task-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; min-height: 62px; border-bottom: 1px solid #eaf0eb; }
.task-row:last-child { border-bottom-color: transparent; }
.task-text { flex: 1; min-width: 0; }
.task-text > strong { display: block; overflow-wrap: anywhere; font-size: .9rem; font-weight: 680; }
.task-text > small { display: block; color: var(--muted); font-size: .8rem; }
.task-timing { color: var(--muted); font-size: .8rem; font-weight: 650; text-align: right; }
.late, .next-cell .late { color: #98434c; }
.row-tools { display: flex; flex: 0 0 auto; gap: 2px; }
.row-tools .icon-button { width: 33px; min-height: 36px; border-color: #e7eee8; }

dialog { padding: 0; background: white; color: var(--ink); border: 1px solid #dbe8df; box-shadow: 0 22px 65px #0e292655; }
dialog::backdrop { background: #122a29a0; }
.drawer { inset: 0 0 0 auto; width: min(620px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw; margin: 0; overscroll-behavior: contain; border-radius: 15px 0 0 15px; }
.drawer-header { position: sticky; top: 0; z-index: 1; padding: 16px 24px; background: white; border-bottom: 1px solid var(--line); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.drawer-header h2 { color: #173a30; margin: 5px 0 3px; font-size: clamp(1.43rem, 4vw, 2rem); line-height: 1.14; letter-spacing: -.035em; overflow-wrap: anywhere; }
.drawer-place, .contact-person { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .87rem; }
.drawer-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.drawer-body { padding: 17px 24px 24px; }
.detail-section { padding: 15px 0; border-bottom: 1px solid var(--line); }
.detail-section h3 { margin-bottom: 7px; font-size: 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.section-head h3 { margin: 0; }
.contact-person { margin-bottom: 6px; }
.drawer-list { margin-top: 6px; }
.notice { padding: 10px 12px; margin-bottom: 8px; border: 1px solid #dceae3; background: #f1f8f4; color: #254c3e; border-radius: 8px; }
.notice-amber { background: #fff8e9; color: #694715; border-color: #f0e2c2; }
.notice-title { display: flex; align-items: center; gap: 7px; }
.notice p, .notice ul { margin: 4px 0 0; font-size: .88rem; overflow-wrap: anywhere; }
.notice ul { padding-left: 20px; }
.notice .button { margin-top: 8px; }
.timeline { list-style: none; padding: 5px 0 0; margin: 0; }
.event { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; padding-bottom: 14px; }
.event:not(:last-child)::before { content: ""; z-index: 0; position: absolute; top: 24px; left: 16px; bottom: 0; width: 2px; background: #e0ede5; }
.event-icon { width: 34px; height: 34px; z-index: 1; }
.event-date { color: var(--muted); font-size: .8rem; }
.event h4 { margin: 1px 0; font-size: .92rem; }
.event-comment { overflow-wrap: anywhere; white-space: pre-wrap; color: #3b574e; font-size: .88rem; }
.source-details summary { color: var(--primary-hover); font-weight: 650; cursor: pointer; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.source-grid > div { border: 1px solid var(--line); border-radius: 7px; padding: 7px; }
.source-grid dt { color: var(--muted); font-size: .8rem; }
.source-grid dd { color: var(--ink); margin: 3px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: .87rem; }
.archive-tools { margin-top: 16px; }
.archive-tools .button { color: #85464b; }

.modal { width: min(530px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 18px 22px; border-radius: 14px; overscroll-behavior: contain; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.modal h2 { font-size: 1.36rem; letter-spacing: -.025em; line-height: 1.2; }
.modal-copy { color: var(--muted); margin-bottom: 12px; font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.wide { grid-column: 1 / -1; }
.field { display: grid; gap: 5px; align-content: start; margin-bottom: 2px; }
.field > span { font-weight: 650; color: #39594f; font-size: .87rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 41px; padding: 7px 9px; border: 1px solid #d5e0da; border-radius: 8px; background-color: white; color: var(--ink); }
.field input[type="file"] { padding: 8px; }
.field textarea { resize: vertical; }
.check-field { display: flex; align-items: start; gap: 7px; margin: 13px 0 10px; color: #39594f; font-size: .88rem; font-weight: 650; }
.check-field input { margin-top: 4px; accent-color: var(--primary); }
fieldset { margin: 0; padding: 10px; min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: #f8fbf8; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 15px; }
.form-error { margin-top: 8px; padding: 8px; border-radius: 6px; background: #fbecec; color: #8b3c44; font-size: .88rem; }
.stage-edit-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.stage-edit-list > div > span:first-child { width: fit-content; }
.stage-edit-list > div > span:nth-child(2) { color: var(--muted); font-size: .83rem; }
.data-actions { display: grid; gap: 10px; margin-bottom: 10px; }
.data-actions > div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.data-actions h3 { font-size: 1rem; }
.data-actions p { margin: 4px 0 8px; color: var(--muted); font-size: .87rem; }
.toast { position: fixed; z-index: 10; bottom: 17px; right: 17px; max-width: min(400px, calc(100% - 34px)); border-radius: 9px; background: #173f34; color: white; padding: 12px 14px; box-shadow: 0 4px 20px #173f3444; font-weight: 650; font-size: .89rem; }
.toast-error { background: #743741; }

@media (max-width: 1180px) {
    .shell { grid-template-columns: 192px minmax(0, 1fr); }
    .page, .topbar { padding-inline: 22px; }
    .stat { grid-template-columns: minmax(0, 1fr); grid-template-areas: "icon" "label" "value" "copy"; gap: 4px; min-height: 155px; padding: 12px; }
    .stat-label { margin-top: 3px; }
    .stat-copy { margin-top: 0; }
    .dashboard-grid { gap: 13px; }
    .panel-head { padding-inline: 13px; }
    .panel-list { padding-inline: 12px; }
    .prospect-table th, .prospect-table td { padding-inline: 9px; }
    .prospect-table .contact-cell { max-width: 180px; }
}

@media (max-width: 940px) {
    .shell { grid-template-columns: 168px minmax(0, 1fr); }
    .sidebar { padding-inline: 10px; }
    .nav-link { gap: 7px; padding-inline: 8px; font-size: .85rem; }
    .local-status { margin-inline: 6px; font-size: .75rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .priorities .blank { min-height: 193px; }
    .stats { gap: 8px; }
    .stat-label, .stat-copy { font-size: .8rem; }
    .prospect-table .region-cell, .prospect-table .contact-cell { display: none; }
}

@media (max-width: 740px) {
    .shell { display: block; }
    .sidebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; position: static; height: auto; padding: 12px 13px 7px; }
    .brand { margin: 0; gap: 8px; }
    .brand-mark { width: 34px; height: 34px; border-radius: 8px; }
    .brand-mark svg { width: 19px; height: 19px; }
    .brand strong { font-size: 1.1rem; }
    .brand small { margin-top: 3px; font-size: .63rem; }
    .nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
    .nav-link { width: auto; flex: 0 0 auto; min-height: 40px; padding: 6px 8px; }
    .nav .nav-link { width: 100%; flex-direction: column; justify-content: center; gap: 3px; min-height: 47px; padding-inline: 3px; text-align: center; font-size: .76rem; line-height: 1.15; }
    .nav-link svg { width: 16px; height: 16px; }
    .sidebar-bottom { margin: 0; }
    .local-status, .breadcrumb, .search kbd { display: none; }
    .topbar { min-height: auto; padding: 9px 13px; }
    .top-tools { width: 100%; gap: 7px; }
    .search { flex: 1; min-width: 0; padding-left: 8px; gap: 5px; }
    .top-tools .button { flex: 0 0 auto; padding-inline: 8px; gap: 5px; font-size: .83rem; }
    .page { padding: 20px 13px 30px; }
    .page-heading { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 15px; }
    .heading-copy { font-size: .88rem; }
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }
    .stat { min-height: 112px; grid-template-columns: minmax(0, 1fr) 28px; grid-template-areas: "label icon" "value icon" "copy copy"; gap: 4px; }
    .stat > strong { font-size: 1.69rem; }
    .stat-icon { width: 28px; height: 28px; border-radius: 6px; }
    .stat-icon svg { width: 16px; height: 16px; }
    .dashboard-grid { margin-bottom: 14px; }
    .drawer { border-radius: 0; }
    .drawer-header, .drawer-body { padding-inline: 14px; }
}

@media (max-width: 455px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat { min-height: 99px; padding: 9px; }
    .stat:last-child { grid-column: 1 / -1; }
    .panel-head { min-height: 68px; gap: 6px; }
    .panel-link { font-size: .78rem; }
    .panel-head h2 { font-size: .98rem; }
    .panel-head p { font-size: .8rem; }
    .panel-identity { gap: 6px; }
    .panel-icon { width: 29px; height: 29px; }
    .panel-icon svg { width: 17px; height: 17px; }
    .priorities .blank { min-height: 159px; }
    .prospect-table .next-cell, .name-cell .avatar { display: none; }
    .prospect-table td, .prospect-table th { padding-inline: 7px; }
    .prospect-table .status-cell { max-width: 116px; }
    .form-grid { grid-template-columns: 1fr; gap: 7px; }
    .source-grid { grid-template-columns: 1fr; }
    .modal { padding: 12px 14px; }
    .task-row { gap: 6px; }
    .task-row .task-symbol { width: 28px; height: 28px; }
    .task-timing { max-width: 72px; }
    .row-tools .icon-button { width: 30px; }
}
