:root {
  --ink: #202532;
  --ink-soft: #626a7a;
  --ink-faint: #9aa1af;
  --line: #e7e9ee;
  --line-strong: #d8dce5;
  --paper: #ffffff;
  --canvas: #f7f8fb;
  --sidebar: #fbfbfc;
  --primary: #6559d6;
  --primary-dark: #5146c2;
  --primary-soft: #efedff;
  --coral: #ee8d74;
  --coral-soft: #fff0eb;
  --teal: #2d9f9b;
  --teal-soft: #e7f6f4;
  --amber: #c88726;
  --amber-soft: #fff5e4;
  --green: #38a274;
  --green-soft: #e9f7f0;
  --shadow-sm: 0 2px 10px rgba(29, 36, 53, .04);
  --shadow-md: 0 12px 35px rgba(29, 36, 53, .10);
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, input, select, textarea { outline-color: rgba(101, 89, 214, .35); }
a { color: inherit; text-decoration: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; display: inline-block; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon.tiny { width: 14px; height: 14px; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 252px; flex: 0 0 252px; min-height: 100vh; display: flex; flex-direction: column;
  color: #697080; background: var(--sidebar); border-right: 1px solid var(--line); padding: 22px 14px 16px;
}
.brand-block { display: flex; align-items: center; gap: 10px; padding: 0 10px 23px; }
.brand-mark { width: 31px; height: 31px; border-radius: 10px; position: relative; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7c72e7, #584cc9); box-shadow: 0 5px 12px rgba(101, 89, 214, .2); }
.brand-mark span { font-size: 14px; font-weight: 700; position: relative; z-index: 1; }
.brand-mark i { position: absolute; width: 9px; height: 9px; right: -3px; top: -3px; background: var(--coral); border: 2px solid var(--sidebar); border-radius: 50%; }
.brand-name { font-size: 15px; line-height: 1.2; color: #2b3040; font-weight: 750; letter-spacing: -.02em; }
.brand-caption { color: #abb0bd; font-size: 8px; letter-spacing: .13em; font-weight: 700; margin-top: 3px; }
.workspace-switcher { display: flex; align-items: center; gap: 9px; border: 1px solid #ececf1; background: #fff; border-radius: 10px; padding: 9px 10px; margin: 0 4px 22px; box-shadow: var(--shadow-sm); }
.workspace-avatar { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; color: #fff; font-weight: 800; background: linear-gradient(135deg, #f1a483, #e97968); }
.workspace-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; line-height: 1.25; }
.workspace-copy strong { font-size: 12px; font-weight: 700; color: #3f4654; }
.workspace-copy span { color: #a2a7b3; font-size: 10px; margin-top: 2px; }
.workspace-switcher > .icon { color: #a5a9b4; }
.nav-label { padding: 0 11px 8px; color: #b0b4c0; font-size: 10px; letter-spacing: .08em; font-weight: 750; }
.nav-label-spaced { margin-top: 24px; }
.side-nav { flex: 1; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; min-height: 39px; padding: 0 11px; border: 0; border-radius: 9px; color: #707786; background: transparent; text-align: left; transition: background .18s, color .18s, transform .18s; }
.nav-item + .nav-item { margin-top: 3px; }
.nav-item .icon { width: 17px; height: 17px; color: #9399a8; }
.nav-item span:not(.nav-beta) { flex: 1; }
.nav-item:hover { background: #f0f0f5; color: #373d4d; }
.nav-item:hover .icon { color: var(--primary); }
.nav-item.is-active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.nav-item.is-active .icon { color: var(--primary); }
.nav-shortcut { color: #aaaeb8; font-size: 9px; font-weight: 500; }
.nav-count { min-width: 19px; padding: 1px 5px; border-radius: 12px; color: #89909d; background: #f0f1f4; font-size: 10px; font-weight: 700; text-align: center; }
.nav-count-accent { color: #7b6dd2; background: #e5e1ff; }
.nav-beta { flex: 0 0 auto; padding: 2px 5px; color: #8277d3; background: #efedff; border-radius: 4px; font-size: 8px; letter-spacing: .05em; font-weight: 800; }
.sidebar-bottom { margin-top: 18px; }
.privacy-note { display: flex; align-items: center; gap: 9px; margin: 0 9px 13px; padding: 10px 9px; border-radius: 9px; background: #f5f8f6; border: 1px solid #e8f0eb; }
.privacy-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #59b88b; box-shadow: 0 0 0 3px #dcf2e6; }
.privacy-note div { display: flex; flex-direction: column; line-height: 1.25; }
.privacy-note strong { color: #537260; font-size: 10px; }
.privacy-note small { color: #93a89a; font-size: 9px; margin-top: 2px; }
.profile-card { display: flex; align-items: center; gap: 9px; margin: 12px 4px 0; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.profile-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #8c4e4a; background: #ffe1d6; font-weight: 750; }
.profile-copy { display: flex; flex: 1; flex-direction: column; line-height: 1.2; }
.profile-copy strong { color: #414753; font-size: 12px; }
.profile-copy span { color: #9da3b0; font-size: 10px; margin-top: 3px; }
.profile-card > .icon { color: #a6aab5; }
.sidebar-close, .sidebar-overlay, .mobile-brand, .menu-toggle { display: none; }

.main-column { flex: 1; min-width: 0; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; background: rgba(255,255,255,.82); border-bottom: 1px solid var(--line); }
.topbar-left, .topbar-actions { display: flex; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: #a2a8b4; font-size: 12px; }
.breadcrumb .icon { color: #c3c6ce; }
.breadcrumb strong { color: #3a4050; font-size: 13px; }
.topbar-actions { gap: 15px; }
.top-search { width: 210px; display: flex; align-items: center; gap: 8px; border: 1px solid transparent; background: #f4f5f8; color: #a1a6b2; border-radius: 8px; padding: 8px 9px; text-align: left; font-size: 11px; }
.top-search:hover { border-color: #dedff0; background: #fff; }
.top-search .icon { width: 15px; height: 15px; color: #8e95a4; }
.top-search kbd { margin-left: auto; padding: 1px 4px; color: #adb2bd; background: #fff; border: 1px solid #e3e5ea; border-radius: 4px; font-size: 9px; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; color: #777e8d; background: transparent; }
.icon-button:hover { color: var(--primary); background: var(--primary-soft); }
.notification-button { position: relative; }
.notification-button i { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; background: var(--coral); border: 1.5px solid #fff; border-radius: 50%; }
.topbar-divider { height: 25px; width: 1px; background: var(--line); }
.topbar-date { display: flex; flex-direction: column; align-items: flex-end; color: #9ba1ae; font-size: 10px; line-height: 1.35; }
.topbar-date strong { color: #5e6573; font-size: 11px; font-weight: 650; }

.content { max-width: 1450px; margin: 0 auto; padding: 35px 40px 60px; }
.page-view { animation: page-in .26s ease-out; }
@keyframes page-in { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { color: var(--primary); font-size: 10px; letter-spacing: .11em; font-weight: 800; text-transform: uppercase; }
.page-title { margin: 5px 0 5px; color: #222735; font-size: 25px; letter-spacing: -.04em; line-height: 1.25; font-weight: 760; }
.page-subtitle { max-width: 640px; margin: 0; color: #8e95a3; font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 700; transition: all .18s; white-space: nowrap; }
.button .icon { width: 15px; height: 15px; }
.button-primary { color: #fff; background: var(--primary); box-shadow: 0 5px 13px rgba(101,89,214,.19); }
.button-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 7px 16px rgba(101,89,214,.25); }
.button-quiet { color: #687080; background: #fff; border-color: var(--line-strong); }
.button-quiet:hover { color: var(--primary); border-color: #cfcaf5; background: #fbfaff; }
.button-ghost { color: #777f8e; background: transparent; border-color: transparent; }
.button-ghost:hover { color: var(--primary); background: var(--primary-soft); }
.button-danger { color: #d46663; background: #fff; border-color: #f0d1d0; }
.button-danger:hover { background: #fff3f2; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.panel-header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 20px; border-bottom: 1px solid #f0f1f4; }
.panel-title { color: #343a49; font-size: 13px; font-weight: 750; }
.panel-title-wrap { display: flex; align-items: center; gap: 9px; }
.panel-note { color: #a4aab5; font-size: 10px; }
.link-button { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; border: 0; color: var(--primary); background: transparent; font-size: 11px; font-weight: 700; }
.link-button:hover { color: var(--primary-dark); }
.link-button .icon { width: 13px; height: 13px; }
.muted { color: #a3a8b3; }
.text-coral { color: var(--coral); }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }

/* Dashboard */
.welcome-card { position: relative; min-height: 148px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; padding: 25px 31px; margin-bottom: 21px; border-radius: var(--radius); color: #fff; background: linear-gradient(110deg, #6257cf 0%, #766bde 65%, #8a80e9 100%); box-shadow: 0 12px 28px rgba(91,81,192,.2); }
.welcome-card::after { content: ""; position: absolute; width: 330px; height: 330px; top: -130px; right: -18px; opacity: .28; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.07), 0 0 0 49px rgba(255,255,255,.05); }
.welcome-card::before { content: ""; position: absolute; width: 8px; height: 8px; top: 27px; right: 180px; border-radius: 50%; background: rgba(255,255,255,.62); box-shadow: 25px 23px 0 rgba(255,255,255,.22), 47px -16px 0 rgba(255,255,255,.28); }
.welcome-copy { position: relative; z-index: 1; }
.welcome-copy .eyebrow { color: #d9d5ff; }
.welcome-copy h1 { margin: 7px 0 6px; font-size: 23px; letter-spacing: -.04em; }
.welcome-copy p { margin: 0; color: #e1dfff; font-size: 12px; }
.welcome-metric { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding-right: 18px; }
.welcome-metric .mini-ring { width: 61px; height: 61px; display: grid; place-items: center; border: 5px solid rgba(255,255,255,.24); border-top-color: #fff; border-right-color: #fff; border-radius: 50%; transform: rotate(28deg); }
.welcome-metric .mini-ring span { transform: rotate(-28deg); font-size: 14px; font-weight: 750; }
.welcome-metric p { margin: 0; color: #e1dfff; font-size: 10px; line-height: 1.4; }
.welcome-metric strong { display: block; color: #fff; font-size: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 21px; }
.stat-card { min-height: 125px; padding: 17px 18px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.stat-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.stat-label { color: #8b92a0; font-size: 11px; }
.stat-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; }
.stat-icon .icon { width: 16px; height: 16px; }
.stat-icon.violet { color: var(--primary); background: var(--primary-soft); }
.stat-icon.coral { color: var(--coral); background: var(--coral-soft); }
.stat-icon.teal { color: var(--teal); background: var(--teal-soft); }
.stat-icon.amber { color: var(--amber); background: var(--amber-soft); }
.stat-number { margin-top: 10px; color: #2b3040; font-size: 25px; line-height: 1; font-weight: 760; letter-spacing: -.04em; }
.stat-foot { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: #a0a5b0; font-size: 10px; }
.stat-trend { display: inline-flex; align-items: center; gap: 2px; color: var(--green); font-weight: 750; }
.stat-trend.down { color: var(--coral); }
.stat-trend .icon { width: 11px; height: 11px; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .85fr); gap: 21px; }
.dashboard-stack { display: grid; gap: 21px; align-content: start; }
.session-list, .task-list, .client-mini-list { padding: 4px 20px 10px; }
.session-row { width: 100%; display: flex; align-items: center; gap: 13px; min-height: 68px; padding: 0; border: 0; border-bottom: 1px solid #f0f1f4; color: inherit; background: transparent; text-align: left; }
.session-row:last-child { border-bottom: 0; }
.date-tile { width: 40px; height: 43px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 9px; color: var(--primary); background: #f2f0ff; line-height: 1.05; }
.date-tile strong { font-size: 16px; font-weight: 780; }
.date-tile span { margin-top: 2px; color: #8b82dc; font-size: 8px; font-weight: 700; }
.session-main { min-width: 0; flex: 1; }
.session-main strong { display: block; overflow: hidden; color: #424856; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.session-main span { display: block; overflow: hidden; margin-top: 3px; color: #9ca2ae; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.session-time { display: flex; align-items: center; gap: 4px; color: #89909e; font-size: 10px; white-space: nowrap; }
.session-time .icon { width: 12px; height: 12px; color: #b2b6c0; }
.session-status { padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.session-status.purple { color: #7268cb; background: #f0eeff; }
.session-status.coral { color: #cf7a62; background: #fff0eb; }
.session-status.green { color: #318966; background: #eaf7f0; }
.task-row { display: flex; align-items: center; gap: 10px; min-height: 55px; border-bottom: 1px solid #f0f1f4; }
.task-row:last-child { border-bottom: 0; }
.task-check { width: 17px; height: 17px; flex: 0 0 auto; display: grid; place-items: center; border: 1.5px solid #d2d5dc; border-radius: 5px; color: transparent; background: #fff; }
.task-check:hover { border-color: var(--primary); }
.task-check.done { border-color: var(--green); color: #fff; background: var(--green); }
.task-check .icon { width: 12px; height: 12px; stroke-width: 2.5; }
.task-copy { min-width: 0; flex: 1; }
.task-copy strong { display: block; overflow: hidden; color: #4a505e; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.task-copy span { display: block; margin-top: 2px; color: #a4a9b3; font-size: 9px; }
.due-date { display: flex; align-items: center; gap: 4px; color: #9c6f39; font-size: 10px; white-space: nowrap; }
.due-date.overdue { color: #d2736c; }
.due-date .icon { width: 12px; height: 12px; }
.empty-mini { padding: 22px 0; color: #a7acb6; font-size: 11px; text-align: center; }
.progress-panel { padding-bottom: 8px; }
.progress-item { padding: 14px 20px 7px; }
.progress-item + .progress-item { padding-top: 9px; }
.progress-head { display: flex; align-items: center; gap: 9px; }
.avatar { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 750; }
.avatar-coral { color: #98584e; background: #ffe2d9; }
.avatar-violet { color: #5c55a6; background: #e3e0ff; }
.avatar-teal { color: #317b78; background: #d9f1ee; }
.avatar-amber { color: #9c6d2e; background: #ffedc9; }
.progress-person { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.progress-person strong { overflow: hidden; color: #464d5b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.progress-person span { overflow: hidden; margin-top: 3px; color: #a1a6b1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.progress-percent { color: #858b99; font-size: 10px; font-weight: 700; }
.progress-track { height: 5px; overflow: hidden; margin: 8px 0 5px 38px; border-radius: 8px; background: #f0f1f4; }
.progress-bar { height: 100%; border-radius: inherit; background: var(--primary); }
.progress-bar.coral { background: var(--coral); }
.progress-bar.teal { background: var(--teal); }
.progress-meta { display: flex; justify-content: space-between; margin-left: 38px; color: #b0b4bd; font-size: 9px; }
.insight-card { position: relative; overflow: hidden; padding: 20px; color: #5b4e9d; background: linear-gradient(135deg, #f3f0ff, #fbfaff); border: 1px solid #e2defc; }
.insight-card::after { content: "✦"; position: absolute; right: 18px; bottom: 5px; color: #ded8ff; font-size: 50px; line-height: 1; }
.insight-card .insight-top { display: flex; align-items: center; gap: 8px; color: #796ed0; font-size: 11px; font-weight: 750; }
.insight-card .insight-top .icon { width: 15px; height: 15px; }
.insight-card p { position: relative; z-index: 1; max-width: 275px; margin: 10px 0 0; color: #6f68a8; font-size: 11px; line-height: 1.7; }

/* Shared controls */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; }
.search-input { width: 218px; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: #9ba1ae; background: #fafbfc; }
.search-input:focus-within { border-color: #c9c3f6; background: #fff; box-shadow: 0 0 0 3px rgba(101,89,214,.07); }
.search-input input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #4c5361; background: transparent; font-size: 11px; }
.search-input .icon { width: 14px; height: 14px; }
.select-control { height: 34px; padding: 0 27px 0 10px; border: 1px solid var(--line); border-radius: 7px; color: #69717f; background: #fafbfc; font-size: 11px; }
.select-control:focus { border-color: #c9c3f6; }
.view-switcher { display: flex; gap: 3px; padding: 3px; border-radius: 7px; background: #f2f3f6; }
.view-switcher button { width: 28px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 5px; color: #a1a6b1; background: transparent; }
.view-switcher button.is-active { color: var(--primary); background: #fff; box-shadow: 0 1px 4px rgba(24,30,45,.08); }
.view-switcher .icon { width: 14px; height: 14px; }
.results-note { color: #a1a6b2; font-size: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 21px; padding: 0 7px; border-radius: 5px; color: #7d8491; background: #f1f2f5; font-size: 9px; font-weight: 650; white-space: nowrap; }
.chip.violet { color: #6c64bd; background: #efedff; }
.chip.coral { color: #be705d; background: #fff0eb; }
.chip.teal { color: #317d79; background: #e7f6f4; }
.chip.green { color: #368667; background: #e9f7f0; }
.chip.amber { color: #9b6d2d; background: #fff5e4; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }

/* Clients */
.client-table { overflow: hidden; }
.client-table-head, .client-table-row { display: grid; grid-template-columns: minmax(190px, 1.55fr) minmax(105px, .8fr) minmax(120px, .9fr) minmax(190px, 1.5fr) 80px 34px; align-items: center; column-gap: 15px; padding: 0 20px; }
.client-table-head { min-height: 38px; color: #abb0ba; background: #fafbfc; border-bottom: 1px solid #f0f1f4; font-size: 10px; }
.client-table-row { min-height: 76px; border-bottom: 1px solid #f0f1f4; transition: background .15s; }
.client-table-row:last-child { border-bottom: 0; }
.client-table-row:hover { background: #fcfcff; }
.client-cell-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.client-cell-person, .client-card-person { width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.client-person-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.25; }
.client-person-copy strong { overflow: hidden; color: #424855; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.client-person-copy span { overflow: hidden; margin-top: 4px; color: #a1a6b2; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.client-cell { min-width: 0; color: #757d8a; font-size: 10px; }
.client-cell.goal { overflow: hidden; color: #7b828f; text-overflow: ellipsis; white-space: nowrap; }
.mini-progress { display: flex; align-items: center; gap: 7px; }
.mini-progress .track { width: 46px; height: 5px; overflow: hidden; border-radius: 8px; background: #eef0f4; }
.mini-progress .fill { height: 100%; border-radius: inherit; background: var(--primary); }
.mini-progress span { color: #8d94a0; font-size: 9px; }
.row-more { color: #a7acb5; }
.row-more:hover { color: var(--primary); }
.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.client-card { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
.client-card:hover { border-color: #d8d2fb; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.client-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.client-card-person { display: flex; align-items: center; gap: 9px; }
.client-card-person strong { display: block; color: #3f4653; font-size: 13px; }
.client-card-person small { display: block; margin-top: 3px; color: #a0a6b1; font-size: 9px; }
.card-menu { border: 0; color: #b0b4bd; background: transparent; }
.client-card-goal { min-height: 38px; margin: 17px 0 13px; color: #777f8d; font-size: 11px; line-height: 1.65; }
.client-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid #f0f1f4; }
.last-contact { color: #a1a7b1; font-size: 9px; }
.last-contact strong { display: block; color: #697180; font-size: 10px; font-weight: 650; }
.detail-drawer { margin-bottom: 13px; padding: 17px 20px; border: 1px solid #dfdbfc; border-radius: 12px; background: linear-gradient(120deg, #fbfaff, #f6f5ff); }
.detail-drawer-head { display: flex; align-items: center; gap: 12px; }
.detail-drawer-head > div:nth-child(2) { flex: 1; }
.detail-drawer h3 { margin: 0; color: #46428b; font-size: 14px; }
.detail-drawer p { margin: 3px 0 0; color: #8984b8; font-size: 10px; }
.detail-close { color: #958fd0; }
.detail-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #ebe8ff; }
.detail-meta div { color: #9893bd; font-size: 9px; }
.detail-meta strong { display: block; margin-top: 3px; color: #57527f; font-size: 11px; }

/* Personality */
.analysis-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 20px; }
.analysis-profile { padding: 20px; }
.analysis-profile-top { display: flex; align-items: center; gap: 13px; }
.analysis-profile-copy { flex: 1; }
.analysis-profile-copy h2 { margin: 0; color: #343a49; font-size: 15px; }
.analysis-profile-copy p { margin: 4px 0 0; color: #9ca2ae; font-size: 10px; }
.analysis-select { min-width: 138px; height: 32px; padding: 0 26px 0 9px; border: 1px solid #dedcf1; border-radius: 7px; color: #6059a7; background: #faf9ff; font-size: 10px; font-weight: 650; }
.analysis-summary { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 24px; padding-top: 19px; border-top: 1px solid #f0f1f4; }
.type-badge { width: 126px; height: 126px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #746ae0, #5147ba); box-shadow: 0 11px 23px rgba(101,89,214,.23); }
.type-badge strong { font-size: 31px; line-height: 1; letter-spacing: .05em; }
.type-badge span { margin-top: 7px; color: #dcd9ff; font-size: 10px; }
.analysis-summary-copy h3 { margin: 0; color: #4b467e; font-size: 17px; }
.analysis-summary-copy > p { margin: 7px 0 0; color: #7e8493; font-size: 11px; line-height: 1.75; }
.analysis-summary-copy .chips { margin-top: 12px; }
.dimension-list { margin-top: 23px; padding-top: 17px; border-top: 1px solid #f0f1f4; }
.dimension-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) 31px; align-items: center; gap: 10px; min-height: 29px; }
.dimension-row label { color: #838a98; font-size: 10px; }
.dimension-row .dimension-track { height: 6px; overflow: hidden; border-radius: 9px; background: #f0f1f4; }
.dimension-row .dimension-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #bbb4f7, var(--primary)); }
.dimension-row strong { color: #737b8a; font-size: 10px; text-align: right; }
.analysis-side { display: grid; align-content: start; gap: 14px; }
.analysis-side .panel { overflow: hidden; }
.analysis-list { padding: 6px 20px 10px; }
.analysis-list-row { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 0; border: 0; border-bottom: 1px solid #f0f1f4; color: inherit; background: transparent; text-align: left; }
.analysis-list-row:last-child { border-bottom: 0; }
.analysis-list-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #6d63c4; background: #efedff; }
.analysis-list-icon .icon { width: 15px; height: 15px; }
.analysis-list-copy { min-width: 0; flex: 1; }
.analysis-list-copy strong { display: block; color: #4a515f; font-size: 11px; }
.analysis-list-copy span { display: block; margin-top: 3px; color: #a4a9b3; font-size: 9px; }
.analysis-list-row > .icon { color: #c0c3cb; width: 13px; }
.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 14px 20px 19px; }
.highlight-box { min-height: 86px; padding: 11px; border-radius: 8px; background: #fafbfc; }
.highlight-box .label { color: #a1a7b3; font-size: 9px; }
.highlight-box p { margin: 5px 0 0; color: #646c7b; font-size: 10px; line-height: 1.55; }
.privacy-banner { display: flex; gap: 9px; align-items: flex-start; padding: 12px 13px; color: #6c7c70; background: #f2faf5; border: 1px solid #dfeee3; border-radius: 10px; font-size: 10px; line-height: 1.5; }
.privacy-banner .icon { width: 15px; height: 15px; color: #56a273; }

/* Coaching */
.coaching-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 18px; align-items: start; }
.coaching-client-list { padding: 8px; }
.coaching-client-list .panel-header { padding: 0 9px; min-height: 45px; border: 0; }
.coaching-client-list .panel-title { font-size: 12px; }
.coaching-client-option { width: 100%; display: flex; align-items: center; gap: 9px; padding: 10px 9px; border: 0; border-radius: 9px; background: transparent; text-align: left; }
.coaching-client-option:hover { background: #f8f8fb; }
.coaching-client-option.is-selected { background: var(--primary-soft); }
.coaching-client-option .option-copy { min-width: 0; flex: 1; }
.coaching-client-option strong { display: block; overflow: hidden; color: #555c6a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.coaching-client-option span { display: block; margin-top: 3px; color: #a3a8b3; font-size: 9px; }
.coaching-client-option.is-selected strong { color: var(--primary-dark); }
.coaching-client-option .option-progress { color: #959ba8; font-size: 9px; font-weight: 700; }
.coaching-main { min-width: 0; }
.coaching-overview { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 22px; margin-bottom: 15px; }
.coaching-client-header { display: flex; align-items: center; gap: 12px; }
.coaching-client-header h2 { margin: 0; color: #363c4a; font-size: 17px; }
.coaching-client-header p { margin: 4px 0 0; color: #9ca2ae; font-size: 10px; }
.coaching-overview-meta { display: flex; align-items: center; gap: 22px; }
.coaching-score { display: flex; flex-direction: column; align-items: flex-end; }
.coaching-score strong { color: #5951ba; font-size: 22px; line-height: 1; }
.coaching-score span { color: #a2a7b3; font-size: 9px; }
.overall-progress { width: 108px; }
.overall-progress .track { height: 6px; overflow: hidden; border-radius: 8px; background: #efeff4; }
.overall-progress .fill { height: 100%; border-radius: inherit; background: var(--primary); }
.overall-progress p { margin: 5px 0 0; color: #9ea4b0; font-size: 9px; }
.timeline-panel { padding: 20px 22px 21px; }
.timeline-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.timeline-head h3 { margin: 0; color: #414856; font-size: 13px; }
.timeline-head span { color: #a2a7b2; font-size: 10px; }
.coaching-timeline { position: relative; padding: 5px 0 0; }
.coaching-timeline::before { content: ""; position: absolute; top: 14px; bottom: 15px; left: 16px; width: 1px; background: #e6e5ee; }
.timeline-item { position: relative; display: grid; grid-template-columns: 33px minmax(0, 1fr) 90px; gap: 12px; align-items: start; min-height: 89px; }
.timeline-marker { position: relative; z-index: 1; width: 33px; height: 33px; display: grid; place-items: center; border: 5px solid #fff; border-radius: 50%; color: #fff; background: #b6b2cc; box-shadow: 0 0 0 1px #e5e4eb; }
.timeline-marker .icon { width: 13px; height: 13px; stroke-width: 2; }
.timeline-item.done .timeline-marker { background: var(--primary); box-shadow: 0 0 0 1px #cfc9fb; }
.timeline-item.current .timeline-marker { background: var(--coral); box-shadow: 0 0 0 4px #fff0eb, 0 0 0 5px #f6c9bc; }
.timeline-copy { padding-bottom: 16px; }
.timeline-copy-head { display: flex; align-items: center; gap: 7px; }
.timeline-copy h4 { margin: 1px 0 0; color: #4a515f; font-size: 12px; font-weight: 750; }
.timeline-copy p { max-width: 610px; margin: 6px 0 0; color: #89909d; font-size: 10px; line-height: 1.65; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.timeline-date { padding-top: 4px; color: #a2a7b2; font-size: 9px; text-align: right; }
.timeline-date strong { display: block; color: #7b8390; font-size: 10px; font-weight: 650; }
.timeline-date span { display: block; margin-top: 3px; }
.coaching-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.compact-list { padding: 5px 20px 11px; }
.compact-list-row { display: flex; align-items: center; gap: 9px; min-height: 52px; border-bottom: 1px solid #f0f1f4; }
.compact-list-row:last-child { border-bottom: 0; }
.compact-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: #6d63c1; background: #f0eeff; }
.compact-icon .icon { width: 14px; height: 14px; }
.compact-copy { min-width: 0; flex: 1; }
.compact-copy strong { display: block; overflow: hidden; color: #59606d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.compact-copy span { display: block; margin-top: 3px; color: #a4a9b3; font-size: 9px; }

/* Actions */
.action-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 18px; }
.action-summary-card { display: flex; align-items: center; gap: 11px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.action-summary-card .summary-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.action-summary-card:nth-child(2) .summary-icon { color: var(--amber); background: var(--amber-soft); }
.action-summary-card:nth-child(3) .summary-icon { color: var(--green); background: var(--green-soft); }
.action-summary-card .icon { width: 16px; height: 16px; }
.action-summary-card span { display: block; color: #a0a6b1; font-size: 9px; }
.action-summary-card strong { display: block; margin-top: 2px; color: #4a505d; font-size: 17px; line-height: 1; }
.action-table { overflow: hidden; }
.action-table-head, .action-table-row { display: grid; grid-template-columns: minmax(230px, 1.8fr) minmax(120px, .9fr) 112px 88px 35px; align-items: center; gap: 14px; padding: 0 20px; }
.action-table-head { min-height: 38px; color: #a6abb5; background: #fafbfc; border-bottom: 1px solid #f0f1f4; font-size: 10px; }
.action-table-row { min-height: 66px; border-bottom: 1px solid #f0f1f4; }
.action-table-row:last-child { border-bottom: 0; }
.action-table-row:hover { background: #fcfcff; }
.action-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.action-main .task-check { width: 17px; height: 17px; }
.action-main-copy { min-width: 0; }
.action-main-copy strong { display: block; overflow: hidden; color: #565d6b; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.action-main-copy span { display: block; margin-top: 3px; color: #a2a7b2; font-size: 9px; }
.action-cell { color: #828997; font-size: 10px; }
.action-priority { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; }
.priority-dot { width: 6px; height: 6px; border-radius: 50%; background: #b5b9c2; }
.priority-dot.high { background: var(--coral); }
.priority-dot.medium { background: #e0a94c; }
.priority-dot.low { background: #6ab596; }
.status-pill { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 5px; font-size: 9px; font-weight: 700; }
.status-pill.todo { color: #747c89; background: #f0f1f4; }
.status-pill.progress { color: #a3732f; background: #fff4df; }
.status-pill.done { color: #368966; background: #e8f7ef; }

/* AI workspace */
.ai-intro { position: relative; overflow: hidden; padding: 21px 23px; margin-bottom: 17px; color: #fff; border-radius: var(--radius); background: linear-gradient(112deg, #292d48, #454775); }
.ai-intro::after { content: "✦"; position: absolute; right: 34px; top: -20px; color: rgba(255,255,255,.1); font-size: 108px; line-height: 1; }
.ai-intro .eyebrow { color: #bbb9ef; }
.ai-intro h2 { position: relative; z-index: 1; margin: 6px 0 5px; font-size: 17px; letter-spacing: -.02em; }
.ai-intro p { position: relative; z-index: 1; max-width: 620px; margin: 0; color: #c0c3da; font-size: 10px; }
.ai-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 18px; }
.ai-tools { display: grid; align-content: start; gap: 10px; }
.ai-tool-card { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: left; box-shadow: var(--shadow-sm); transition: all .18s; }
.ai-tool-card:hover, .ai-tool-card.is-selected { border-color: #d2cdfa; background: #fcfbff; box-shadow: 0 7px 18px rgba(72,63,170,.08); }
.ai-tool-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #6c62c4; background: #efedff; }
.ai-tool-card:nth-child(2) .ai-tool-icon { color: #bc755c; background: #fff0eb; }
.ai-tool-card:nth-child(3) .ai-tool-icon { color: #378a83; background: #e7f6f4; }
.ai-tool-card:nth-child(4) .ai-tool-icon { color: #a5742d; background: #fff5e4; }
.ai-tool-icon .icon { width: 17px; height: 17px; }
.ai-tool-copy { min-width: 0; flex: 1; }
.ai-tool-copy strong { display: block; color: #464d5b; font-size: 12px; }
.ai-tool-copy p { margin: 4px 0 0; color: #9ca2ae; font-size: 10px; line-height: 1.5; }
.ai-tool-card > .icon { width: 14px; height: 14px; margin-top: 3px; color: #c0c3cb; }
.ai-result-panel { min-height: 420px; display: flex; flex-direction: column; }
.ai-result-panel .panel-header { flex: 0 0 auto; }
.ai-selected-label { padding: 13px 20px 0; color: #8c94a2; font-size: 10px; }
.ai-editor { flex: 1; min-height: 220px; margin: 11px 20px 15px; padding: 15px; border: 1px solid #ebecf1; border-radius: 9px; color: #656d7b; background: #fbfcfd; font-size: 11px; line-height: 1.8; }
.ai-editor strong { color: #4d5260; }
.ai-result-placeholder { display: flex; align-items: center; justify-content: center; min-height: 220px; color: #b0b4bf; font-size: 11px; text-align: center; }
.ai-result-content h4 { margin: 0 0 9px; color: #4d5361; font-size: 12px; }
.ai-result-content ul { margin: 0; padding-left: 17px; }
.ai-result-content li { margin: 6px 0; color: #737b89; }
.ai-result-content .result-callout { margin-top: 12px; padding: 9px 11px; border-left: 3px solid var(--primary); color: #6b63a8; background: #f2f0ff; border-radius: 4px; }
.ai-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px 17px; }
.ai-footer span { color: #b1b5bf; font-size: 9px; }

/* Library */
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.library-card { min-height: 155px; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.library-card .library-icon { width: 33px; height: 33px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 9px; color: #6a60c0; background: #efedff; }
.library-card:nth-child(2) .library-icon { color: #bf765c; background: #fff0eb; }
.library-card:nth-child(3) .library-icon { color: #338c85; background: #e7f6f4; }
.library-card:nth-child(4) .library-icon { color: #9c712f; background: #fff4df; }
.library-card:nth-child(5) .library-icon { color: #6e7a91; background: #edf0f6; }
.library-card .icon { width: 16px; height: 16px; }
.library-card h3 { margin: 0; color: #4b525f; font-size: 12px; }
.library-card p { margin: 6px 0 12px; color: #9aa1ad; font-size: 10px; line-height: 1.5; }
.library-card small { color: #a7adb7; font-size: 9px; }

/* Modal, toast, search overlay */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(30,34,49,.42); backdrop-filter: blur(4px); animation: fade-in .18s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(540px, 100%); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid rgba(255,255,255,.45); border-radius: 15px; background: #fff; box-shadow: 0 25px 80px rgba(18,22,38,.25); animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 21px 23px 15px; border-bottom: 1px solid #f0f1f4; }
.modal-head h2 { margin: 0; color: #373d4b; font-size: 16px; }
.modal-head p { margin: 4px 0 0; color: #a0a6b1; font-size: 10px; }
.modal-body { padding: 19px 23px 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #757d8b; font-size: 10px; font-weight: 650; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 9px 10px; border: 1px solid #e1e3e9; border-radius: 7px; color: #555d6a; background: #fbfcfd; font-size: 11px; transition: border .18s, box-shadow .18s; }
.form-field input, .form-field select { height: 35px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #c8c2f5; background: #fff; box-shadow: 0 0 0 3px rgba(101,89,214,.07); outline: 0; }
.form-field textarea { min-height: 74px; resize: vertical; line-height: 1.6; }
.form-hint { color: #a4aab5; font-size: 9px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.quick-add-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-add-item { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid #ececf2; border-radius: 9px; color: #5b6270; background: #fff; text-align: left; }
.quick-add-item:hover { color: var(--primary); border-color: #d9d4fb; background: #fcfbff; }
.quick-add-item .icon-box { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #6a60c1; background: #efedff; }
.quick-add-item:nth-child(2) .icon-box { color: #bc745e; background: #fff0eb; }
.quick-add-item:nth-child(3) .icon-box { color: #388a83; background: #e7f6f4; }
.quick-add-item:nth-child(4) .icon-box { color: #a57730; background: #fff5e4; }
.quick-add-item .icon { width: 15px; height: 15px; }
.quick-add-item strong { display: block; font-size: 11px; }
.quick-add-item span { display: block; margin-top: 3px; color: #a3a9b3; font-size: 9px; }
.search-modal { width: min(630px, 100%); }
.global-search { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #d9d5fb; border-radius: 9px; background: #fbfaff; }
.global-search .icon { color: var(--primary); }
.global-search input { flex: 1; border: 0; outline: 0; color: #4f5564; background: transparent; font-size: 13px; }
.search-results { max-height: 310px; overflow: auto; margin-top: 11px; }
.search-result { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 7px; background: transparent; text-align: left; }
.search-result:hover { background: #f7f7fb; }
.search-result-copy { flex: 1; }
.search-result-copy strong { display: block; color: #555c69; font-size: 11px; }
.search-result-copy span { display: block; color: #a1a7b1; font-size: 9px; }
.search-empty { padding: 25px 0; color: #a4aab5; text-align: center; font-size: 11px; }
#toast-root { position: fixed; right: 23px; bottom: 23px; z-index: 80; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 9px; min-width: 210px; padding: 11px 13px; border: 1px solid #d8efdf; border-radius: 9px; color: #3e7f5f; background: #f4fcf7; box-shadow: var(--shadow-md); font-size: 11px; animation: toast-in .25s ease-out; }
.toast .icon { width: 15px; height: 15px; color: #55a578; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 1180px) {
  .content { padding-right: 28px; padding-left: 28px; }
  .topbar { padding-right: 28px; padding-left: 28px; }
  .client-table-head, .client-table-row { grid-template-columns: minmax(170px, 1.4fr) 95px 110px minmax(150px, 1.2fr) 70px 30px; gap: 10px; }
  .dashboard-columns { grid-template-columns: minmax(0, 1.25fr) minmax(285px, .75fr); }
}
@media (max-width: 980px) {
  .sidebar { width: 220px; flex-basis: 220px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-columns, .analysis-layout, .ai-layout { grid-template-columns: 1fr; }
  .analysis-side { grid-template-columns: 1fr 1fr; }
  .analysis-side .privacy-banner { grid-column: 1 / -1; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coaching-layout { grid-template-columns: 190px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: 252px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 15px 0 45px rgba(31,35,52,.13); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-close { display: grid; margin-left: auto; width: 27px; height: 27px; }
  .sidebar-overlay { position: fixed; z-index: 35; inset: 0; display: block; visibility: hidden; opacity: 0; background: rgba(30,34,49,.28); transition: opacity .2s, visibility .2s; }
  .sidebar-overlay.is-open { visibility: visible; opacity: 1; }
  .menu-toggle { display: grid; }
  .mobile-brand { display: block; margin-left: 7px; color: #343a49; font-size: 13px; font-weight: 750; }
  .breadcrumb { display: none; }
  .topbar { height: 61px; padding: 0 17px; }
  .topbar-actions { gap: 7px; }
  .top-search { width: 34px; height: 32px; justify-content: center; padding: 0; }
  .top-search span, .top-search kbd, .topbar-divider, .topbar-date { display: none; }
  .content { padding: 24px 17px 45px; }
  .page-header { display: block; margin-bottom: 20px; }
  .header-actions { margin-top: 15px; }
  .page-title { font-size: 23px; }
  .welcome-card { display: block; padding: 22px; }
  .welcome-metric { margin-top: 18px; padding: 0; }
  .welcome-card::after { right: -120px; }
  .stat-grid { gap: 9px; }
  .stat-card { min-height: 112px; padding: 13px; }
  .stat-number { font-size: 22px; }
  .dashboard-columns { gap: 15px; }
  .toolbar { display: block; }
  .toolbar-right { margin-top: 9px; }
  .search-input { width: 100%; }
  .client-table { overflow-x: auto; }
  .client-table-head, .client-table-row { min-width: 740px; }
  .client-grid { grid-template-columns: 1fr; }
  .analysis-side { grid-template-columns: 1fr; }
  .analysis-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .analysis-summary-copy .chips { justify-content: center; }
  .analysis-summary-copy { width: 100%; }
  .dimension-row { text-align: left; }
  .coaching-layout { grid-template-columns: 1fr; }
  .coaching-client-list { display: flex; overflow-x: auto; padding: 7px; }
  .coaching-client-list .panel-header { display: none; }
  .coaching-client-option { width: 150px; flex: 0 0 150px; }
  .coaching-overview { display: block; }
  .coaching-overview-meta { justify-content: space-between; margin-top: 16px; }
  .coaching-bottom { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 33px minmax(0, 1fr); }
  .timeline-date { grid-column: 2; grid-row: 1; padding-top: 22px; text-align: left; }
  .timeline-copy { grid-column: 2; grid-row: 1; padding-top: 18px; }
  .timeline-date strong, .timeline-date span { display: inline; margin-right: 5px; }
  .action-summary { gap: 8px; }
  .action-summary-card { padding: 11px; gap: 7px; }
  .action-summary-card strong { font-size: 15px; }
  .action-summary-card span { font-size: 8px; }
  .action-table { overflow-x: auto; }
  .action-table-head, .action-table-row { min-width: 700px; }
  .library-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .header-actions .button-quiet { display: none; }
  .action-summary { grid-template-columns: 1fr; }
  .action-summary-card { min-height: 54px; }
  .quick-add-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .library-grid { grid-template-columns: 1fr; }
  .analysis-select { min-width: 105px; }
  .analysis-profile-top { align-items: flex-start; flex-wrap: wrap; }
  .analysis-select { margin-left: 42px; }
}
