:root {
  --blue-900: #0017c1;
  --blue-700: #3460fb;
  --blue-500: #7096f8;
  --blue-200: #c5d7fb;
  --blue-100: #e8f1fe;
  --red: #fe3939;
  --orange: #fb5b01;
  --green: #259d63;
  --canvas: #f8f8fb;
  --surface: #ffffff;
  --line: #e6e6e6;
  --line-dark: #d7d7db;
  --text: #000000;
  --muted: #626264;
  --muted-2: #89898e;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .04);
  --font: "Hiragino Sans", "Yu Gothic", "Meiryo", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--canvas); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(52, 96, 251, .25); outline-offset: 2px; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; width: 252px; padding: 24px 16px 18px; background: var(--surface); border-right: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 10px 25px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: #fff; background: var(--blue-900); font-size: 10px; font-weight: 800; letter-spacing: -.04em; }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: -.025em; }
.brand-caption { color: var(--muted-2); font-size: 9px; line-height: 1.2; text-transform: uppercase; letter-spacing: .09em; }
.workspace-switcher { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fcfcfd; }
.workspace-avatar, .user-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border-radius: 50%; color: #fff; background: var(--blue-700); font-size: 12px; font-weight: 800; }
.workspace-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.eyebrow { color: var(--muted-2); font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.workspace-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.primary-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 26px; }
.nav-section-label { margin: 0 10px 7px; color: var(--muted-2); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.nav-section-label:not(:first-child) { margin-top: 24px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 37px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; text-align: left; color: var(--muted); cursor: pointer; font-size: 12px; transition: background .15s ease, color .15s ease; }
.nav-item:hover { background: #f4f5fa; color: var(--text); }
.nav-item.is-active { color: var(--blue-900); background: var(--blue-100); font-weight: 700; }
.nav-label { font-weight: 600; }
.nav-item.is-active .nav-label { font-weight: 800; }
.nav-item.secondary { margin-top: 4px; }
.nav-icon { display: inline-grid; place-items: center; width: 15px; color: currentColor; font-size: 16px; line-height: 1; }
.nav-count { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 10px; color: var(--muted); background: #f1f1f3; font-size: 10px; text-align: center; }
.nav-count.is-accent { color: var(--blue-900); background: #d9e5ff; }
.nav-count.is-alert { color: #b40000; background: #ffe2e2; }
.sidebar-bottom { margin-top: auto; }
.system-status { display: flex; align-items: center; gap: 7px; margin: 0 10px 11px; color: var(--muted); font-size: 10px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(37, 157, 99, .12); }
.status-time { margin-left: auto; color: var(--muted-2); }
.sidebar-footer { display: flex; justify-content: space-between; margin: 19px 10px 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 9px; }

.main-content { width: calc(100% - 252px); margin-left: 252px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 36px; border-bottom: 1px solid var(--line); background: rgba(248,248,251,.85); }
.topbar-context { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 700; }
.context-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-700); }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.search-box { display: flex; align-items: center; gap: 8px; width: 245px; height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted-2); }
.search-box:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(52,96,251,.1); }
.search-icon { font-size: 19px; line-height: 0; transform: rotate(-15deg); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
.search-box input::placeholder { color: var(--muted-2); }
kbd { padding: 2px 4px; border: 1px solid var(--line); border-bottom-color: #c6c6ca; border-radius: 3px; background: #fafafa; color: var(--muted-2); font-family: inherit; font-size: 8px; white-space: nowrap; }
.icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 17px; }
.icon-button:hover { border-color: var(--line); background: var(--surface); color: var(--text); }
.icon-button.small { width: 26px; height: 26px; font-size: 15px; }
.notification-button { position: relative; font-size: 20px; }
.notification-button i { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border: 1px solid var(--surface); border-radius: 50%; background: var(--red); }
.mobile-menu { display: none; }

.content-wrap { max-width: 1510px; margin: 0 auto; padding: 32px 36px 64px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 8px; color: var(--muted-2); font-size: 10px; }
.breadcrumb span:last-child { color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-size: clamp(23px, 2.2vw, 30px); font-weight: 750; letter-spacing: -.045em; line-height: 1.25; }
h2 { margin-bottom: 0; font-size: 15px; font-weight: 750; letter-spacing: -.025em; line-height: 1.35; }
h3 { margin-bottom: 4px; font-size: 16px; line-height: 1.35; }
.page-header p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.page-actions { display: flex; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 35px; padding: 0 13px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 700; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; border-color: var(--blue-900); background: var(--blue-900); box-shadow: 0 3px 7px rgba(0,23,193,.13); }
.button-primary:hover { background: #0013a3; box-shadow: 0 5px 12px rgba(0,23,193,.2); }
.button-secondary { color: var(--blue-900); border-color: var(--blue-200); background: var(--surface); }
.button-secondary:hover { border-color: var(--blue-500); background: var(--blue-100); }
.sparkle { font-size: 15px; line-height: 0; }
.view-tabs { display: flex; align-items: center; gap: 5px; margin-bottom: 19px; border-bottom: 1px solid var(--line); }
.view-tab { position: relative; padding: 0 12px 11px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.view-tab:hover { color: var(--text); }
.view-tab.is-active { color: var(--blue-900); font-weight: 700; }
.view-tab.is-active::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; content: ""; background: var(--blue-900); }
.view-tab span { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 8px; color: var(--muted); background: #eeeef0; font-size: 9px; }
.view-date { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-bottom: 11px; color: var(--muted-2); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(37,157,99,.12); }

.view-panel { display: none; animation: panelIn .18s ease-out; }
.view-panel.is-visible { display: block; }
@keyframes panelIn { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.card, .kpi-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.kpi-card { min-height: 143px; padding: 15px 16px 12px; }
.kpi-label { color: var(--muted); font-size: 10px; font-weight: 700; }
.info { display: inline-grid; place-items: center; width: 13px; height: 13px; margin-left: 4px; border: 1px solid var(--muted-2); border-radius: 50%; color: var(--muted-2); font-size: 9px; font-style: normal; font-weight: 500; }
.kpi-value { margin: 6px 0 2px; font-size: 31px; font-weight: 750; letter-spacing: -.07em; line-height: 1; }
.kpi-meta { color: var(--muted-2); font-size: 9px; }
.kpi-meta span { margin-right: 5px; color: var(--blue-900); font-weight: 700; }
.kpi-meta.warning span { color: #c22f2f; }
.kpi-meta.positive span { color: var(--green); }
.kpi-bar { height: 4px; margin-top: 18px; overflow: hidden; border-radius: 3px; background: #eef0f5; }
.kpi-bar span { display: block; height: 100%; border-radius: inherit; background: var(--blue-700); }
.mini-streak, .kpi-dots { display: flex; gap: 5px; margin-top: 17px; }
.mini-streak i, .kpi-dots i { display: block; width: 16px; height: 5px; border-radius: 3px; background: var(--red); }
.kpi-dots i { width: 14px; border-radius: 50%; background: var(--blue-700); }
.mini-streak i.muted, .kpi-dots i.muted { background: #e7e7e9; }
.sparkline { display: flex; align-items: end; gap: 4px; height: 25px; margin-top: 10px; }
.sparkline span { display: block; width: 15px; border-radius: 2px 2px 0 0; background: var(--blue-200); }
.sparkline span:last-child { background: var(--blue-700); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 12px; }
.main-column, .side-column { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card { padding: 17px; }
.brief-card { border-top: 3px solid var(--blue-700); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.card-header.compact { align-items: center; margin-bottom: 13px; }
.card-kicker { color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.generated-label { margin-left: 7px; color: var(--muted-2); font-size: 9px; font-weight: 500; letter-spacing: 0; }
.brief-card h2 { margin-top: 6px; font-size: 19px; letter-spacing: -.04em; }
.brief-summary { max-width: 750px; padding: 11px 13px; border-left: 3px solid var(--blue-200); color: #39393b; background: #fafbff; font-size: 12px; line-height: 1.7; }
.brief-summary strong { color: var(--blue-900); }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: transparent; color: var(--blue-900); cursor: pointer; font-size: 10px; font-weight: 700; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.priority-list { margin-top: 13px; border-top: 1px solid var(--line); }
.priority-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto 16px; align-items: center; gap: 9px; width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.priority-row:hover { background: #fbfbfd; }
.priority-number { color: var(--blue-700); font-size: 11px; font-weight: 800; }
.priority-main { min-width: 0; }
.priority-main strong, .priority-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.priority-main strong { font-size: 12px; }
.priority-main small { margin-top: 2px; color: var(--muted-2); font-size: 10px; }
.priority-tag, .status-pill, .source-chip, .memory-type { display: inline-flex; align-items: center; width: fit-content; border-radius: 4px; font-size: 8px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.priority-tag { padding: 3px 6px; }
.tag-blue { color: var(--blue-900); background: var(--blue-100); }
.tag-orange { color: #a83d00; background: #fff0e6; }
.tag-gray { color: var(--muted); background: #f0f0f2; }
.row-arrow { color: var(--muted-2); font-size: 17px; font-weight: 300; }
.brief-footnote { display: flex; align-items: center; gap: 5px; padding-top: 13px; color: var(--muted-2); font-size: 9px; }
.source-mark { color: var(--blue-700); font-size: 14px; }
.inline-link { padding: 0; border: 0; background: transparent; color: var(--blue-900); cursor: pointer; font-size: 9px; font-weight: 700; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 4px; border-radius: 9px; color: #a80c0c; background: #ffe2e2; font-size: 9px; letter-spacing: 0; }
.review-list { display: flex; flex-direction: column; gap: 7px; }
.review-item { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fdfdfe; transition: opacity .2s, transform .2s, background .2s; }
.review-item.is-done { opacity: .45; transform: translateX(6px); }
.review-icon { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border-radius: 7px; font-size: 18px; font-weight: 700; }
.person-icon { color: var(--blue-900); background: var(--blue-100); }
.task-icon { color: #167647; background: #e5f4ea; }
.topic-icon { color: #a83d00; background: #fff0e6; }
.review-content { min-width: 0; flex: 1; }
.review-content strong, .review-content span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-content strong { font-size: 11px; }
.review-content span { margin-top: 3px; color: var(--muted-2); font-size: 9px; }
.review-actions { display: flex; gap: 5px; }
.mini-button { min-height: 27px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); cursor: pointer; font-size: 9px; font-weight: 700; }
.mini-button:hover { border-color: var(--blue-500); }
.mini-button.approve { color: var(--blue-900); border-color: var(--blue-200); background: #f5f8ff; }
.mini-button.reject { color: var(--muted); }
.review-complete { display: none; padding: 13px; border-radius: 7px; color: #166b40; background: #effaf2; font-size: 11px; font-weight: 700; text-align: center; }
.review-complete.is-visible { display: block; }
.review-complete span { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 4px; border-radius: 50%; color: white; background: var(--green); }
.task-table { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.task-row { display: grid; grid-template-columns: 28px minmax(0,1fr) 62px 64px; align-items: center; gap: 4px; min-height: 43px; padding: 0 11px; border-bottom: 1px solid var(--line); cursor: pointer; }
.task-row:last-child { border-bottom: 0; }
.task-row:not(.task-head):hover { background: #fafbff; }
.task-head { min-height: 28px; color: var(--muted-2); background: #fafafa; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.task-row input, .wide-task-row input { appearance: none; width: 15px; height: 15px; margin: 0; border: 1px solid #c9c9ce; border-radius: 4px; background: var(--surface); cursor: pointer; }
.task-row input:checked, .wide-task-row input:checked { border-color: var(--blue-900); background: var(--blue-900); }
.task-row input:checked::after, .wide-task-row input:checked::after { display: block; content: "✓"; color: white; font-size: 10px; line-height: 13px; text-align: center; }
.task-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.task-row input:checked ~ .task-title { color: var(--muted-2); text-decoration: line-through; }
.due { font-size: 9px; font-weight: 700; }
.due.today { color: #c22f2f; }
.due.tomorrow { color: var(--blue-700); }
.due.later { color: var(--muted); }
.source-chip { justify-self: start; padding: 3px 5px; color: var(--muted); background: #f0f0f2; font-size: 8px; font-weight: 600; letter-spacing: 0; }

.schedule-date { display: flex; align-items: center; gap: 9px; margin: -1px 0 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.schedule-date strong { color: var(--blue-900); font-size: 28px; letter-spacing: -.05em; line-height: 1; }
.schedule-date span { color: var(--muted); font-size: 10px; line-height: 1.3; }.schedule-date b { font-weight: 600; }
.schedule-list { display: flex; flex-direction: column; gap: 14px; }
.schedule-item { display: grid; grid-template-columns: 40px 3px minmax(0,1fr); align-items: start; gap: 9px; }
.schedule-item .time { color: var(--muted); font-size: 10px; font-weight: 700; }
.schedule-line { width: 3px; height: 37px; border-radius: 3px; background: var(--blue-700); }
.orange-line { background: var(--orange); }.gray-line { background: #9b9ba0; }
.schedule-item strong, .schedule-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.schedule-item strong { font-size: 11px; }.schedule-item small { margin-top: 2px; color: var(--muted-2); font-size: 9px; }
.full-width-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 16px; padding: 9px 0 0; border: 0; border-top: 1px solid var(--line); color: var(--blue-900); background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.person-list { display: flex; flex-direction: column; gap: 2px; }.person-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; text-align: left; }.person-row:last-child { border-bottom: 0; }.person-row:hover strong { color: var(--blue-900); }.person-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; }.avatar-blue { background: var(--blue-700); }.avatar-orange { background: var(--orange); }.avatar-green { background: var(--green); }.person-row strong, .person-row small { display: block; }.person-row strong { font-size: 11px; }.person-row small { color: var(--muted-2); font-size: 9px; }.person-arrow { margin-left: auto; color: var(--muted-2); }.memory-footer { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 9px; }.memory-spark { color: var(--blue-700); font-size: 17px; }.intake-card .card-header { margin-bottom: 3px; }.intake-item { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); }.intake-item:last-child { border-bottom: 0; }.intake-type { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; font-size: 9px; font-weight: 800; }.intake-type.meet { color: var(--blue-900); background: var(--blue-100); }.intake-type.slack { color: #5a2f72; background: #f3eaf8; }.intake-type.voice { color: #a83d00; background: #fff0e6; }.intake-item strong, .intake-item small { display: block; }.intake-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.intake-item small { margin-top: 2px; color: var(--muted-2); font-size: 8px; }

.people-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 15px; }.people-toolbar h2 { margin-top: 5px; font-size: 22px; }.people-toolbar p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }.people-summary-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }.people-stat { display: flex; flex-direction: column; gap: 3px; min-height: 76px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }.people-stat span { color: var(--muted-2); font-size: 9px; font-weight: 700; }.people-stat strong { font-size: 23px; letter-spacing: -.05em; line-height: 1; }.people-stat em { color: var(--green); font-size: 9px; font-style: normal; font-weight: 700; }.people-stat .alert-number { color: #c22f2f; }.people-stat .alert-text { color: #c22f2f; }.people-controls { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }.people-search { flex: 1; width: auto; }.people-filters { display: flex; gap: 4px; }.people-filter { min-height: 33px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface); cursor: pointer; font-size: 9px; font-weight: 700; white-space: nowrap; }.people-filter span { margin-left: 3px; color: var(--muted-2); }.people-filter.is-active { color: var(--blue-900); border-color: var(--blue-200); background: var(--blue-100); }.business-card-list { padding: 0; overflow: hidden; }.business-card-head, .business-card-row { display: grid; grid-template-columns: minmax(235px, 1.35fr) minmax(155px, 1fr) 130px 110px 18px; align-items: center; gap: 16px; }.business-card-head { min-height: 33px; padding: 0 18px; color: var(--muted-2); background: #fafafa; font-size: 8px; font-weight: 800; letter-spacing: .08em; }.business-card-row { width: 100%; min-height: 78px; padding: 0 18px; border: 0; border-top: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; }.business-card-row:hover { background: #fafbff; }.business-person, .business-company, .business-contact { display: flex; align-items: center; gap: 9px; min-width: 0; }.business-person > span:last-child, .business-company, .business-contact { overflow: hidden; }.business-person strong, .business-person small, .business-company strong, .business-company small, .business-contact strong, .business-contact small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.business-person strong, .business-company strong, .business-contact strong { font-size: 11px; }.business-person small, .business-company small, .business-contact small { margin-top: 2px; color: var(--muted-2); font-size: 9px; }.relationship-pill { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 4px 7px; border-radius: 4px; font-size: 8px; font-weight: 800; white-space: nowrap; }.relationship-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.relation-blue { color: var(--blue-900); background: var(--blue-100); }.relation-orange { color: #a83d00; background: #fff0e6; }.relation-gray { color: var(--muted); background: #f0f0f2; }.business-arrow { color: var(--muted-2); font-size: 17px; }.people-list-footer { display: flex; align-items: center; gap: 13px; margin-top: 11px; color: var(--muted-2); font-size: 9px; }.people-list-footer > span:nth-child(2) { margin-right: auto; }.pagination { display: flex; align-items: center; gap: 3px; }.pagination .icon-button { border-color: var(--line); }.page-number { min-width: 24px; height: 26px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }.page-number.is-active { color: var(--blue-900); background: var(--blue-100); font-weight: 800; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 50; display: none; background: rgba(11, 15, 35, .18); backdrop-filter: blur(2px); }.drawer-backdrop.is-visible { display: block; }.detail-drawer { position: fixed; inset: 0 0 0 auto; z-index: 60; display: flex; flex-direction: column; width: min(470px, 92vw); padding: 25px; border-left: 1px solid var(--line); background: var(--surface); box-shadow: -12px 0 35px rgba(10, 14, 30, .11); transform: translateX(102%); transition: transform .24s ease; }.detail-drawer.is-open { transform: none; }.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }.drawer-header h2 { margin-top: 6px; font-size: 20px; }.drawer-body { flex: 1; padding: 24px 0; overflow: auto; }.drawer-body .drawer-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 15px; color: var(--muted-2); font-size: 10px; }.drawer-body p { color: var(--muted); font-size: 12px; line-height: 1.8; }.drawer-body blockquote { margin: 18px 0; padding: 14px 16px; border-left: 3px solid var(--blue-200); color: #39393b; background: #fafbff; font-size: 12px; line-height: 1.8; }.drawer-body h4 { margin: 23px 0 7px; font-size: 10px; color: var(--muted-2); letter-spacing: .08em; }.drawer-body ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 2; }.drawer-footer { display: flex; gap: 8px; padding-top: 17px; border-top: 1px solid var(--line); }.drawer-footer .button { flex: 1; }.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 48px); padding: 10px 13px; border: 1px solid #c6e6d1; border-radius: 8px; color: #166b40; background: #f1fbf3; box-shadow: var(--shadow); font-size: 11px; font-weight: 700; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }.toast.is-visible { opacity: 1; transform: none; }.toast-icon { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: white; background: var(--green); font-size: 10px; }

@media (max-width: 1180px) { .sidebar { width: 218px; }.main-content { width: calc(100% - 218px); margin-left: 218px; }.content-wrap { padding-right: 24px; padding-left: 24px; }.dashboard-grid { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); }.kpi-grid { grid-template-columns: repeat(2, 1fr); }.kpi-card { min-height: 132px; } }
@media (max-width: 780px) { .sidebar { width: 76px; padding: 20px 10px; }.brand-lockup { justify-content: center; padding: 0 0 23px; }.brand-lockup > div:last-child, .workspace-copy, .workspace-switcher .icon-button, .nav-item > span:not(.nav-icon), .nav-section-label, .system-status span:not(.status-dot), .sidebar-footer { display: none; }.workspace-switcher { justify-content: center; padding: 8px; }.workspace-avatar { margin: 0; }.primary-nav { align-items: center; margin-top: 24px; }.nav-item { justify-content: center; width: 44px; padding: 0; }.nav-count { position: absolute; margin: -20px -23px 0 0; min-width: 17px; padding: 0 4px; font-size: 8px; }.sidebar-bottom .nav-item { margin: 0 auto; }.main-content { width: calc(100% - 76px); margin-left: 76px; }.topbar { padding: 0 24px; }.dashboard-grid { grid-template-columns: 1fr; }.side-column { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }.intake-card { grid-column: 1 / -1; }.people-grid { grid-template-columns: repeat(2, 1fr); }.people-grid .person-detail-card:last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .sidebar { display: none; }.sidebar.is-mobile-open { display: flex; width: 252px; box-shadow: 10px 0 30px rgba(0,0,0,.12); }.sidebar.is-mobile-open .brand-lockup > div:last-child, .sidebar.is-mobile-open .workspace-copy, .sidebar.is-mobile-open .workspace-switcher .icon-button, .sidebar.is-mobile-open .nav-item > span:not(.nav-icon), .sidebar.is-mobile-open .nav-section-label, .sidebar.is-mobile-open .system-status span:not(.status-dot), .sidebar.is-mobile-open .sidebar-footer { display: initial; }.sidebar.is-mobile-open .brand-lockup { justify-content: flex-start; padding: 0 10px 25px; }.sidebar.is-mobile-open .workspace-switcher { justify-content: initial; padding: 10px; }.sidebar.is-mobile-open .primary-nav { align-items: stretch; }.sidebar.is-mobile-open .nav-item { justify-content: flex-start; width: 100%; padding: 0 10px; }.sidebar.is-mobile-open .nav-count { position: static; margin-left: auto; }.main-content { width: 100%; margin-left: 0; }.topbar { height: 58px; padding: 0 16px; }.mobile-menu { display: inline-grid; }.topbar-context { margin-right: auto; margin-left: 9px; }.topbar-actions { gap: 7px; }.topbar-actions .search-box { display: none; }.user-avatar { width: 27px; height: 27px; }.content-wrap { padding: 22px 14px 48px; }.page-header { align-items: flex-start; flex-direction: column; margin-bottom: 19px; }.page-header h1 { font-size: 24px; }.page-actions { width: 100%; }.page-actions .button { flex: 1; }.view-date { display: none; }.view-tabs { margin-bottom: 13px; }.kpi-grid { gap: 8px; }.kpi-card { min-height: 124px; padding: 12px; }.kpi-value { font-size: 26px; }.dashboard-grid { gap: 8px; }.main-column, .side-column { gap: 8px; }.card { padding: 13px; }.brief-card h2 { font-size: 17px; }.priority-row { grid-template-columns: 26px minmax(0,1fr) 15px; gap: 6px; }.priority-tag { display: none; }.review-item { align-items: flex-start; }.review-actions { flex-direction: column; }.review-actions .mini-button { min-height: 23px; padding: 0 6px; }.side-column { display: flex; }.panel-toolbar { align-items: flex-start; flex-direction: column; }.toolbar-actions { width: 100%; overflow-x: auto; }.people-grid, .approval-grid { grid-template-columns: 1fr; }.people-grid .person-detail-card:last-child { grid-column: auto; }.wide-task-row { grid-template-columns: 28px minmax(160px,1fr) 64px; padding: 0 12px; }.wide-task-row > :nth-child(3), .wide-task-row > :nth-child(5), .wide-head > :nth-child(3), .wide-head > :nth-child(5) { display: none; }.meeting-row { grid-template-columns: 48px minmax(0,1fr) 18px; gap: 10px; padding: 12px; }.meeting-meta { display: none; }.memory-table-row { grid-template-columns: 64px minmax(130px, 1fr) 18px; padding: 0 12px; gap: 9px; }.memory-table-row > :nth-child(3), .memory-table-row > :nth-child(4), .memory-head > :nth-child(3), .memory-head > :nth-child(4) { display: none; }.drawer-footer { padding-bottom: max(0px, env(safe-area-inset-bottom)); } }

@media (max-width: 900px) {
  .people-summary-row { grid-template-columns: repeat(2, 1fr); }
  .people-controls { align-items: stretch; flex-wrap: wrap; }
  .people-search { flex-basis: 100%; }
  .people-filters { max-width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .business-card-head, .business-card-row { grid-template-columns: minmax(190px, 1.25fr) minmax(120px, 1fr) 92px 90px 16px; gap: 9px; padding-right: 12px; padding-left: 12px; }
}

@media (max-width: 640px) {
  .people-toolbar { align-items: flex-start; flex-direction: column; }
  .people-toolbar .button { width: 100%; }
  .people-summary-row { gap: 7px; }
  .people-stat { min-height: 69px; padding: 10px; }
  .people-stat strong { font-size: 19px; }
  .people-list-footer { flex-wrap: wrap; }
  .people-list-footer > span:nth-child(2) { order: 3; flex-basis: 100%; }
  .business-card-head, .business-card-row { grid-template-columns: minmax(190px, 1fr) 18px; }
  .business-card-head > :nth-child(2), .business-card-head > :nth-child(3), .business-card-head > :nth-child(4), .business-card-row > :nth-child(2), .business-card-row > :nth-child(3), .business-card-row > :nth-child(4) { display: none; }
}

/* Header navigation replaces the desktop sidebar; the sidebar remains a mobile drawer. */
@media (min-width: 641px) {
  .sidebar { display: none; }
  .main-content { width: 100%; margin-left: 0; }
}

.header-left { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
.header-brand-lockup { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-brand-lockup .brand-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 9px; }
.header-brand-lockup .brand-name { font-size: 14px; }
.header-brand-lockup .brand-caption { font-size: 7px; }
.header-workspace { display: flex; align-items: center; gap: 6px; min-width: max-content; padding-left: 15px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.header-workspace .workspace-avatar { width: 25px; height: 25px; font-size: 10px; }
.header-nav { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.header-nav::-webkit-scrollbar { display: none; }
.header-nav-item { display: flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.header-nav-item:hover { color: var(--text); background: #f4f5fa; }
.header-nav-item.is-active { color: var(--blue-900); background: var(--blue-100); }
.header-count { min-width: 17px; padding: 1px 5px; border-radius: 8px; color: var(--muted); background: #f1f1f3; font-size: 8px; line-height: 1.2; text-align: center; }
.header-count.is-accent { color: var(--blue-900); background: #d9e5ff; }
.header-count.is-alert { color: #a40000; background: #ffe2e2; }
.task-view-actions { display: flex; align-items: center; gap: 8px; }
.task-view-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.task-mode-button { min-height: 28px; padding: 0 10px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.task-mode-button.is-active { color: var(--blue-900); background: var(--blue-100); }
.task-filters-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.task-result-count { color: var(--muted-2); font-size: 9px; }
.kanban-board { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 10px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.kanban-column { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: #f4f5f8; }
.kanban-column-header { display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 2px 8px; }
.kanban-column-header strong { font-size: 11px; }
.kanban-column-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-right: auto; border-radius: 9px; color: var(--muted); background: #e7e8ec; font-size: 9px; font-weight: 800; }
.kanban-column-header .icon-button { width: 24px; height: 24px; font-size: 14px; }
.kanban-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #a5a6ac; }
.progress-dot { background: var(--blue-700); }.review-dot { background: var(--orange); }.done-dot { background: var(--green); }
.kanban-dropzone { display: flex; flex-direction: column; gap: 8px; min-height: 220px; padding: 2px; border-radius: 7px; transition: background .15s ease, outline .15s ease; }
.kanban-dropzone.is-over { outline: 2px dashed var(--blue-500); outline-offset: -2px; background: var(--blue-100); }
.kanban-card { display: flex; flex-direction: column; gap: 7px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 2px 5px rgba(16,24,40,.04); cursor: grab; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.kanban-card:hover { transform: translateY(-1px); box-shadow: 0 5px 13px rgba(16,24,40,.08); }
.kanban-card.is-dragging { opacity: .45; transform: rotate(1deg); }
.kanban-card.is-complete { opacity: .68; }
.kanban-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.kanban-card strong { font-size: 11px; line-height: 1.5; }
.kanban-card-meta, .kanban-card-source { color: var(--muted-2); font-size: 9px; }
.kanban-card-source { width: fit-content; padding: 2px 5px; border-radius: 4px; color: var(--muted); background: #f0f0f2; }
.kanban-menu { padding: 0; border: 0; color: var(--muted-2); background: transparent; cursor: pointer; font-size: 13px; line-height: 1; }
.tag-green { color: #167647; background: #e5f4ea; }
.task-item { cursor: pointer; }
.task-item:focus-visible, .kanban-card:focus-visible { outline: 3px solid rgba(52, 96, 251, .25); outline-offset: 2px; }
.kanban-card-hint { margin-top: 2px; color: var(--muted-2); font-size: 8px; }
.task-editor { display: grid; gap: 15px; }
.task-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.drawer-field { display: grid; gap: 6px; color: var(--muted-2); font-size: 10px; font-weight: 800; }
.drawer-field input, .drawer-field select, .drawer-field textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--surface); font-size: 12px; outline: 0; }
.drawer-field input, .drawer-field select { min-height: 36px; padding: 0 10px; }
.drawer-field textarea { min-height: 140px; padding: 10px; resize: vertical; line-height: 1.7; }
.drawer-field input:focus, .drawer-field select:focus, .drawer-field textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(52, 96, 251, .12); }
.task-editor-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid #dce6ff; border-radius: 7px; color: var(--blue-900); background: #f5f8ff; }
.task-editor-note > span { font-size: 16px; line-height: 1; }
.task-editor-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

@media (max-width: 1120px) {
  .header-left { gap: 10px; }
  .header-brand-lockup > div:last-child, .header-workspace { display: none; }
  .header-nav { flex: 1; }
  .kanban-board { grid-template-columns: repeat(4, minmax(180px, 1fr)); }
}

@media (max-width: 640px) {
  .header-left { gap: 0; }
  .header-brand-lockup, .header-workspace, .header-nav { display: none; }
  .task-view-actions { width: 100%; justify-content: space-between; }
  .task-view-actions .button { flex: 1; }
  .task-filters-row { align-items: flex-start; flex-direction: column; }
  .task-filters-row .toolbar-actions { width: 100%; }
  .kanban-board { grid-template-columns: repeat(4, minmax(220px, 1fr)); margin-right: -14px; }
  .kanban-dropzone { min-height: 180px; }
  .task-editor-grid { grid-template-columns: 1fr; }
}
