:root {
  color-scheme: light;
  font-size: 15px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: #ffffff;
  color: #171a22;
  --panel: #ffffff;
  --border: #e5e7eb;
  --muted: #667085;
  --accent: #247a55;
  --teal: #176345;
  --rail: 246px;
  --heading-font: Inter, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #ffffff; }
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); }
h1 { font-size: 1.8rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
h2 { font-size: 1.067rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
h3 { font-size: 1.06rem; }
p { color: var(--muted); line-height: 1.55; }
small { color: var(--muted); }
button { color: inherit; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 10; width: auto; height: auto; padding: .75rem; clip-path: none; background: #ffffff; }
#sidebar { position: fixed; inset: 0 auto 0 0; width: var(--rail); display: flex; flex-direction: column; padding: 24px 10px 16px; border-right: 1px solid var(--border); background: #f8f9fb; overflow-y: auto; z-index: 3; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.35rem; margin: 0 14px 24px; white-space: nowrap; }
.brand span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 5px; background: #c6ff00; color: #171a22; font-size: 23px; line-height: 1; }
.brand small { display: block; font-weight: 400; font-size: .72rem; }
#sidebar nav { display: grid; gap: 3px; }
#sidebar nav a, .support { display: flex; align-items: center; gap: 12px; padding: 7px 14px 7px 17px; min-height: 40px; border-radius: 5px; font-size: .96rem; border-left: 3px solid transparent; }
#sidebar i { display: inline-grid; place-items: center; width: 18px; font-style: normal; font-size: 1.06rem; }
#sidebar nav a:hover, .support:hover { background: #edf0f4; }
#sidebar nav a[aria-current] { background: #e7f6ef; color: #171a22; border-left-color: var(--accent); font-weight: 600; }
#sidebar nav a[aria-current] i { color: var(--accent); }
#sidebar b { margin-left: auto; background: #e9edf2; border-radius: 20px; min-width: 24px; text-align: center; padding: 2px; font-size: .86rem; }
.support { margin-top: auto; }
main { margin-left: var(--rail); padding: 38px clamp(20px, 3vw, 42px) 45px; min-height: 100vh; outline: none; }
.topbar { display: flex; align-items: center; gap: 10px; justify-content: end; margin-bottom: 15px; }
.coach-topbar { display: none; }
.icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: transparent; border: 1px solid transparent; font-size: 1.33rem; flex: none; }
.icon:hover { background: #f1f4f6; }
.header-avatar, .bell { border-radius: 50%; background: #edf0f4; }
.header-avatar { font-size: .95rem; font-weight: 700; }
.bell { position: relative; }
.bell.unread::after { content: ''; position: absolute; top: 3px; right: 5px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.menu-button { display: none; }
.page-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0 0 24px; }
.page-title p { font-size: .875rem; margin-top: 5px; }
.home-banner { position: relative; isolation: isolate; }
.home-banner::before { content: ''; position: absolute; z-index: -1; inset: -28px 0 -10px 32%; background: linear-gradient(90deg, #1d202600, #16191d55), url("assets/mountains.jpg") center 53% / cover; mask-image: linear-gradient(90deg, transparent, #000 62%); opacity: .38; border-radius: 12px; }
.columns, .two, .stack { display: grid; gap: 17px; align-items: start; }
.columns > *, .two > * { min-width: 0; }
.home-columns { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.detail-columns { grid-template-columns: minmax(0, 2.25fr) minmax(250px, 1fr); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two > .panel { height: 100%; }
.panel { padding: 16px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel); }
.panel > p, .panel > h3 { margin: 10px 0; }
.panel > h2:first-child { margin-bottom: 10px; }
.panel.stack > h2 { margin-bottom: 0; }
.next { background: #f3f8f5; }
.next h3 { font-size: 1.45rem; margin: 14px 0 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 24px 0 12px; }
.section-heading.inside { margin: 0 0 12px; }
.coach-history-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: .875rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: .42rem .76rem; border: 1px solid #d0d5dd; border-radius: 5px; background: #ffffff; color: #171a22; font-weight: 600; line-height: 1.25; text-align: center; }
.button:hover { background: #f1f4f6; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.button.primary:hover { background: #1b6243; }
.buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.text-link { color: var(--accent); font-weight: 600; }
.text-link:hover, .row-title:hover, .resource-card a:hover { text-decoration: underline; }
.badge { display: inline-flex; align-items: center; padding: .32rem .65rem; border-radius: 999px; background: #eceef1; color: #475467; font-size: .8rem; white-space: nowrap; width: fit-content; }
.badge.completed, .badge.active-client, .badge.upcoming { background: #e7f6ef; color: #176345; }
.badge.in-progress, .badge.featured, .badge.next-session { background: #fff2d9; color: #884b05; }
.rows { padding: 0; overflow: hidden; }
.action-row { display: grid; grid-template-columns: 23px minmax(130px, 1fr) minmax(105px, .3fr) 102px minmax(65px, .26fr) 32px; align-items: center; gap: 12px; padding: 16px 18px; }
.action-row + .action-row, .session-row + .session-row { border-top: 1px solid #e5e7eb; }
.action-row.compact { grid-template-columns: 22px 1fr auto; }
.action-row.compact:has(.edit-action) { grid-template-columns: 22px 1fr auto 32px; }
.action-text { display: grid; gap: 4px; overflow-wrap: anywhere; }
.action-text.done { text-decoration: line-through; color: var(--muted); }
input[type=checkbox] { accent-color: #247a55; width: 18px; height: 18px; margin: 0; cursor: pointer; vertical-align: middle; }
.progress-cell { display: flex; gap: 5px; align-items: center; font-size: .81rem; }
progress { appearance: none; width: 100%; height: 8px; min-width: 25px; border: 0; border-radius: 99px; overflow: hidden; }
progress::-webkit-progress-bar { background: #e5e7eb; }
progress::-webkit-progress-value { background: #247a55; border-radius: 99px; }
progress::-moz-progress-bar { background: #247a55; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; gap: 15px; }
.stat { display: flex; align-items: center; gap: 10px; min-height: 78px; }
.stat div { flex: 1; }
.stat strong, .stat small { display: block; }
.stat strong { font-size: 1.5rem; }
.stat-icon { display: grid; place-items: center; font-size: 22px; width: 38px; height: 43px; border-radius: 10px; background: #e7f6ef; color: var(--teal); }
.stat:nth-child(2) .stat-icon { color: var(--accent); background: #fff2d9; }
.stat:nth-child(3) .stat-icon { color: var(--muted); background: #edf0f4; }
.stat progress::-webkit-progress-value { background: var(--accent); }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 13px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: start; border-bottom: 1px solid var(--border); margin-bottom: 15px; }
.filter-bar .tabs { margin-bottom: 0; }
.tabs a, .tabs button { display: inline-flex; align-items: center; padding: 12px 14px; min-height: 43px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); }
.tabs [aria-current], .tabs [aria-pressed=true] { border-color: var(--accent); color: #176345; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-top: 1px solid var(--border); }
.pagination button { background: transparent; border: 0; border-radius: 8px; min-width: 34px; min-height: 34px; }
.pagination button[aria-current] { background: var(--accent); color: #ffffff; }
.empty { padding: 17px; }
.latest { display: grid; grid-template-columns: 110px 1fr; gap: 15px; }
.latest p { margin: 7px 0 11px; }
.thumb { border-radius: 10px; min-height: 108px; }
.mountain { background: linear-gradient(90deg, #f8fbf9 10%, #f8fbf9f5 54%, #f8fbf944), url("assets/mountains.jpg") center 51% / cover; }
.hero { min-height: 171px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; padding: 23px; }
.hero h2 { font-size: clamp(1.27rem, 2.5vw, 1.82rem); margin: 9px 0 6px; }
.session-row { display: grid; grid-template-columns: 65px 1fr 110px auto; align-items: center; gap: 15px; padding: 12px 17px; }
.session-row small { display: block; margin-top: 4px; }
.session-statuses { display: flex; flex-wrap: wrap; gap: 5px; }
.badge.present { background: #e7f6ef; color: #176345; }
.badge.absent { background: #fdebec; color: #a12638; }
.date-tile { text-align: center; background: #f0f3f6; padding: 7px; border-radius: 9px; }
.date-tile strong { display: block; font-size: 1.3rem; }
.row-title { font-weight: 700; }
dl { display: grid; grid-template-columns: minmax(70px, .85fr) minmax(0, 1.15fr); gap: 0 10px; margin: 12px 0 0; }
dt, dd { border-bottom: 1px solid #e5e7eb; margin: 0; padding: 8px 0; overflow-wrap: anywhere; }
dt { color: var(--muted); }
.note-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.topic-list { margin: 14px 0 10px; }
.topic-list a { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding: 10px 0; }
.topic-list a:hover { color: var(--accent); }
.mini-resources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 14px 0; }
.resource-art { min-height: 102px; display: flex; align-items: end; padding: 9px; background: linear-gradient(0deg, #15171be8, #27232125), url("assets/mountains.jpg") center 49% / cover; }
.mini-resources .resource-art { font-size: .74rem; font-weight: 650; overflow-wrap: anywhere; border: 1px solid #4b4544; border-radius: 8px; }
.resource-art.conversations { background-image: linear-gradient(0deg, #321912e8, #d36a3270), url("assets/landscape.jpg"); background-position: left 41%; }
.resource-art.tension { background-image: linear-gradient(0deg, #15191ee8, #586c9155), url("assets/forest.jpg"); filter: saturate(.55); }
.resource-art.team { background-image: linear-gradient(0deg, #18221be8, #37675055), url("assets/woodland.jpg"); background-position: right 52%; }
.resource-detail .resource-art { border-radius: 10px; min-height: 200px; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr)); gap: 11px; }
.resource-grid.list { grid-template-columns: 1fr; }
.resource-card { border: 1px solid var(--border); background: var(--panel); border-radius: 11px; overflow: hidden; }
.resource-card .resource-art { justify-content: end; align-items: start; }
.resource-card > div:last-child { padding: 11px; }
.resource-card h3 { margin-top: 3px; font-size: var(--portal-row-text); overflow-wrap: anywhere; }
.resource-card small { font-size: 14px; }
.list .resource-card { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; }
.list .resource-card .resource-art { min-height: 76px; align-self: stretch; }
.resource-hero { min-height: 220px; align-items: center; }
.resource-hero p { margin: 8px 0 14px; }
.search { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; background: #ffffff; }
.search span { font-size: 26px; }
.search input:not([type=checkbox]) { background: transparent; border: 0; padding-left: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 20px; }
.chips .button { border-radius: 20px; font-weight: 500; }
.profile-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 13px; }
.profile-banner h2 { font-size: 1.7rem; }
.profile-banner p { margin: 5px 0; }
.avatar { display: grid; place-items: center; width: 85px; min-height: 85px; border-radius: 16px; font-size: 1.7rem; font-weight: 700; color: #176345; background: #e7f6ef; }
.profile-stats { display: flex; gap: 10px; margin-left: auto; }
.profile-stats a { text-align: center; border-left: 1px solid var(--border); padding: 8px; color: var(--muted); }
.profile-stats strong { display: block; font-size: 1.2rem; color: var(--accent); }
.goal-list > div, .setting { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.goal-list label { overflow-wrap: anywhere; }
form { display: grid; gap: 10px; }
form > .button { justify-self: start; }
form label { display: grid; gap: 5px; }
input:not([type=checkbox]), textarea, select { min-width: 0; max-width: 100%; border: 1px solid #d0d5dd; background: #ffffff; color: #171a22; border-radius: 8px; padding: .65rem; }
textarea, input:not([type=checkbox]) { width: 100%; }
textarea { resize: vertical; }
.chat { display: grid; gap: 8px; margin: 12px 0; }
.chat p { background: #f1f3f6; padding: 12px; border-radius: 9px; max-width: 85%; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat .reply { justify-self: end; background: #e7f6ef; }
details { border-bottom: 1px solid var(--border); padding: 12px 0; }
details p { margin-top: 8px; }
dialog { width: min(480px, calc(100% - 24px)); padding: 19px; border: 1px solid var(--border); border-radius: 14px; background: #ffffff; color: inherit; }
dialog::backdrop { background: #171a2261; }
dialog header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
dialog p { margin: 0 0 12px; }
dialog.resource-preview-dialog { width: min(960px, calc(100% - 24px)); }
[data-resource-preview] { display: grid; gap: 12px; justify-items: start; }
[data-resource-preview] iframe { width: 100%; height: 68vh; border: 0; }
[data-resource-preview] img { max-width: 100%; max-height: 68vh; object-fit: contain; }
.resource-symbol { display: inline-block; margin-right: .45em; color: var(--accent); }
.coach-table td button[data-action=open-resource], .resource-card h3 button[data-action=open-resource] {
  border: 0; padding: 0; background: transparent; color: inherit; font-size: inherit; text-align: left; white-space: normal;
}
.coach-table td button[data-action=open-resource]:hover, .resource-card h3 button[data-action=open-resource]:hover {
  text-decoration: underline;
}
#notice:not(:empty) { position: fixed; bottom: 19px; right: 19px; border: 1px solid #b3dec9; background: #e7f6ef; color: #176345; padding: 12px; border-radius: 10px; max-width: min(90vw, 410px); z-index: 5; }
.print-area { display: none; }
@media (max-width: 1140px) {
  :root { --rail: 202px; }
  .brand { font-size: 1.05rem; }
  main { padding-inline: 19px; }
  .home-columns { grid-template-columns: 1.4fr 1fr; }
  .home-columns .two { grid-template-columns: 1fr; }
  .action-row { gap: 8px; padding-inline: 12px; }
}
@media (max-width: 900px) {
  .columns { grid-template-columns: 1fr; }
  .home-columns .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { align-items: start; flex-direction: column; }
  .action-row .progress-cell { display: none; }
  .action-row { grid-template-columns: 21px minmax(100px, 1fr) 100px 95px 33px; }
}
@media (max-width: 700px) {
  #sidebar { display: none; top: 57px; width: min(100vw, 280px); padding-top: 12px; overflow: auto; }
  #sidebar.expanded { display: flex; }
  .brand { margin-bottom: 16px; }
  main { margin: 0; padding: 9px 13px 25px; }
  .menu-button { display: inline-grid; }
  .coach-topbar { display: flex; justify-content: start; }
  .topbar > div { flex: 1; }
}
@media (max-width: 475px) {
  .page-title { align-items: start; flex-direction: column; }
  .home-columns .two, .profile-panels { grid-template-columns: 1fr; }
  .action-row { grid-template-columns: 20px minmax(70px, 1fr) 27px; }
  .action-row .due { grid-column: 2; grid-row: 2; }
  .action-row:not(.compact) .badge { grid-column: 2; grid-row: 3; }
  .action-row:not(.compact) .edit-action { grid-column: 3; grid-row: 1; width: 27px; }
  .action-row.compact { gap: 7px; }
  .session-row { grid-template-columns: 47px 1fr; gap: 10px; }
  .session-statuses { grid-column: 2; }
  .session-row > .button { grid-column: 2; justify-self: start; }
  .latest { grid-template-columns: 1fr; }
  .section-heading { flex-wrap: wrap; }
}
@media print {
  :root, body { background: white; color: black; }
  body > :not(.print-area) { display: none !important; }
  .print-area { display: block; }
  .print-area p { color: black; }
}

/* Shared demo sign-in */
.signed-out #sidebar { display: none; }
.signed-out main { margin: 0; padding: 0; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); }
.auth-image {
  padding: clamp(24px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  gap: clamp(55px, 12vh, 126px);
  background: linear-gradient(180deg, #f8fbf9f5, #f8fbf9e8 55%, #f8fbf966), url("assets/mountains.jpg") 61% center / cover;
}
.auth-image .brand { font-size: clamp(1.35rem, 2.2vw, 2rem); margin: 0; }
.auth-image h2 { font-size: clamp(2.25rem, 4.8vw, 4.2rem); line-height: 1.12; max-width: 12ch; }
.auth-image p { margin-top: 18px; font-size: 1.13rem; color: var(--muted); }
.auth-content { display: grid; place-items: center; padding: clamp(24px, 6vw, 88px); }
.auth-content > div { width: min(100%, 450px); }
.auth-content > div > p { margin: 8px 0 28px; }
.auth-content form { gap: 14px; }
.auth-content input:not([type=checkbox]) { padding: .82rem; }
.auth-content form > button { width: 100%; min-height: 48px; }
form .auth-toggle { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.auth-error { color: #a12638; }
.auth-error:empty { display: none; }
.auth-demo { border-top: 1px solid var(--border); margin-top: 25px; padding-top: 18px; }
.auth-demo h2 { font-size: 1rem; }
.auth-demo p { margin: 5px 0 12px; }

/* Coach workspace */
.coach-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
.coach-stats a:hover, .coach-table .person:hover { border-color: var(--accent); color: var(--accent); }
.coach-body { grid-template-columns: minmax(0, 2fr) minmax(255px, 1fr); }
.coach-sidebar-footer { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 8px 0; }
.coach-profile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.coach-profile-grid p { overflow-wrap: anywhere; }
.person { display: inline-flex; align-items: center; gap: 9px; }
.person-icon { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; color: #176345; background: #e7f6ef; font-size: .85rem; font-weight: 700; }
.coach-table tbody tr:nth-child(even) .person-icon { color: #344054; background: #edf0f4; }
.coach-table { padding: 0; overflow: hidden; }
.table-scroll { overflow: auto; }
.coach-table table { width: 100%; border-collapse: collapse; text-align: left; }
.coach-table th, .coach-table td { padding: 9px 14px; vertical-align: middle; border-bottom: 1px solid var(--border); }
.coach-table th { background: #f8f9fb; color: #475467; font-size: .87rem; font-weight: 600; }
.coach-table td { font-size: .92rem; overflow-wrap: anywhere; }
.coach-table td .person { white-space: nowrap; overflow-wrap: normal; }
.coach-table td small { display: block; margin-top: 4px; min-width: 110px; }
.coach-table td .button { white-space: nowrap; font-size: .83rem; }
.coach-table tr:last-child td { border-bottom: 0; }
.coach-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.coach-filters .search { flex: 1 1 240px; }
.coach-callout { background: #edf8f3; border: 1px solid #b3dec9; border-radius: 12px; padding: 15px; margin-bottom: 12px; }
.coach-callout p { margin-top: 4px; }
.coach-form-panel { display: grid; gap: 13px; }
.coach-granola > summary { cursor: pointer; }
.coach-granola[open] > :not(summary) { margin-top: 10px; }
.coach-meeting-platform { min-width: 0; margin: 0; padding: 0; border: 0; }
.coach-meeting-platform legend { padding: 0; margin-bottom: 7px; }
.coach-meeting-platform .two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 10px; }
form .coach-meeting-option {
  display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 11px;
  border: 1px solid #d0d5dd; border-radius: 9px; cursor: pointer;
}
.coach-meeting-option svg { width: 22px; height: 22px; flex: none; }
.coach-meeting-option input[type=radio] { width: 16px; height: 16px; margin: 0 0 0 auto; padding: 0; flex: none; accent-color: #247a55; }
.coach-session-title { display: inline-flex; align-items: center; gap: 8px; }
.coach-session-platform { width: 17px; height: 17px; flex: none; }
.coach-meeting-option:hover, .coach-meeting-option:has(input:checked) { border-color: #247a55; }
.coach-meeting-option:has(input:checked) { background: rgb(36 122 85 / 9%); }
.coach-meeting-option:has(input:focus-visible) { outline: 2px solid #247a55; outline-offset: 2px; }
.coach-meeting-details { display: none; gap: 9px; }
.coach-form-panel:has(input[name=meetingPlatform]:checked) .coach-meeting-details { display: grid; }
.coach-google-invite, .coach-zoom-invite { display: none; gap: 9px; }
.coach-form-panel:has(input[value=google-meet]:checked) .coach-google-invite,
.coach-form-panel:has(input[value=zoom]:checked) .coach-zoom-invite { display: grid; }
.coach-item { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; align-items: end; gap: 9px; padding: 11px 0; border-top: 1px solid var(--border); }
.activity-list { padding-left: 1.25em; }
.activity-list li { padding-block: 6px; }
.activity-list small { display: block; }
.badge.granted, .badge.reviewed, .badge.published, .badge.active, .badge.resolved { background: #e7f6ef; color: #176345; }
.badge.to-review, .badge.open { background: #fff2d9; color: #884b05; }
.badge.overdue, .badge.blocked { background: #fdebec; color: #a12638; }
@media (max-width: 1000px) {
  .coach-body { grid-template-columns: 1fr; }
  .coach-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coach-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-image { gap: 30px; background-position: center 48%; }
  .auth-image h2 { max-width: 20ch; }
  .auth-image p { margin-top: 8px; }
  .auth-content { place-items: start center; }
  .coach-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coach-table th, .coach-table td { padding: 10px; }
  .coach-table table { min-width: 580px; }
}

.stack { grid-template-columns: minmax(0, 1fr); }
/* Shared portal typography */
.portal-workspace { --portal-row-text: 16px; font-size: 17px; }
:root:has(.portal-workspace) { scrollbar-gutter: stable; }
.portal-workspace .page-title { margin-bottom: 34px; }
.portal-workspace h1 { font-size: clamp(26px, 2.35vw, 37px); font-weight: 700; }
.portal-workspace h2 { font-size: 24px; font-weight: 700; }
.portal-workspace .page-title .button { min-height: 48px; padding-inline: 18px; font-size: 17px; }
.portal-workspace :is(.action-row, .session-row) { font-size: var(--portal-row-text); }
.portal-workspace #resource-search { font-size: 16px; }
@media (min-width: 1250px) {
  body:has(.portal-workspace) #sidebar :is(nav a, .support) { font-size: 16px; }
}

/* Coach workspace */
.coach-workspace { --coach-row-height: 60px; }
.overview-queue { padding: 3px 20px; }
.overview-queue a { display: grid; grid-template-columns: minmax(0, 1fr) 3ch 24px; gap: 26px; align-items: center; min-height: 56px; }
.overview-queue a + a { border-top: 1px solid var(--border); }
.overview-queue a span { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.overview-queue a span:last-child { font-size: 22px; color: var(--muted); }
.overview-queue a:hover strong, .overview-client-name:hover, .overview-sessions a:hover strong { text-decoration: underline; }
.overview-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--accent); }
.coach-overview-screen > .overview-links { margin: 24px 0 42px; }
.overview-links a, .overview-clients .section-heading a { font-weight: 600; color: var(--accent); }
.overview-links > * + * { border-left: 1px solid var(--border); padding-left: 18px; }
.overview-links .button { min-height: 34px; padding-block: 4px; padding-right: 0; border-width: 0 0 0 1px; border-radius: 0; color: inherit; font: inherit; font-weight: 600; background: none; }
.overview-links .button:first-child { padding-left: 0; border: 0; }
.overview-links :is(a, button):hover, .overview-clients .section-heading a:hover { text-decoration: underline; }
.overview-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.overview-detail > .panel { min-width: 0; padding: 16px 18px 20px; }
.overview-clients .section-heading { min-height: 41px; margin-bottom: 15px; }
.overview-clients .section-heading a { font-size: 16px; white-space: nowrap; }
.overview-clients .coach-table { border: 0; border-radius: 0; }
.overview-clients .coach-table table { min-width: 550px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.overview-clients .coach-table th { background: var(--panel); }
.overview-clients .coach-table td, .overview-clients .coach-table th { padding: 12px 8px; }
.overview-client-name { font-weight: 650; }
.overview-clients .badge { background: none; color: inherit; padding: 0; gap: 7px; font-size: inherit; }
.overview-clients .badge::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #98a2b3; }
.overview-clients .badge.active::before { background: var(--accent); }
.overview-agenda h2 { margin-bottom: 17px; }
.overview-sessions { border-top: 1px solid var(--border); }
.overview-sessions a { display: grid; grid-template-columns: 105px minmax(0, 1fr); align-items: center; gap: 13px; min-height: 72px; padding-block: 9px; }
.overview-sessions a + a { border-top: 1px solid var(--border); }
.overview-sessions a > span { border-left: 1px solid var(--border); padding-left: 13px; }
.overview-sessions time { color: var(--muted); font-size: 16px; }
.overview-sessions small { display: block; margin-top: 2px; font-size: 15px; }
.overview-activity { border-block: 1px solid var(--border); margin: 22px 0 18px; padding-block: 18px; }
.overview-activity p { font-size: 15px; }
.overview-activity h3 { margin-bottom: 4px; font-weight: 650; }
@media (min-width: 1250px) {
  .coach-shell { --rail: 287px; }
  .coach-shell main { padding: 36px 26px 45px 31px; }
  .coach-shell #sidebar nav a { min-height: 49px; }
  .coach-shell #sidebar nav i { font-size: 20px; }
  .coach-shell #sidebar .brand { margin-bottom: 43px; }
  .coach-shell #sidebar .brand span { width: 34px; height: 34px; }
  .coach-shell .page-title .button { min-width: 205px; }
  .overview-detail > .panel { min-height: 480px; }
}
@media (min-width: 701px) and (max-height: 800px) {
  .coach-shell #sidebar .brand { margin-bottom: 22px; }
  .coach-shell #sidebar nav a { min-height: 39px; padding-block: 5px; }
  .coach-shell .coach-sidebar-footer { margin-bottom: 0; padding-top: 12px; }
}
.coach-sidebar-footer:has(.workspace-account) { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--border); margin-inline: 6px; margin-bottom: 14px; }
.workspace-account { display: flex; align-items: center; gap: 10px; font-size: 16px; padding: 7px 8px; }
.workspace-account:hover { text-decoration: underline; }
.coach-sidebar-footer:has(.workspace-account) > .button { justify-self: start; gap: 10px; border: 0; background: none; font-size: 16px; font-weight: 400; }
.workspace-account svg, .coach-sidebar-footer:has(.workspace-account) > .button svg, .coach-shell #sidebar nav i svg { width: 20px; height: 20px; }
@media (max-width: 1120px) {
  .overview-detail { grid-template-columns: minmax(0, 1fr); }
}
/* Client access */
.client-access-form .button { min-height: 34px; border-radius: 5px; }
.access-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.access-toolbar .search { width: min(100%, 360px); border-radius: 5px; border-color: #d0d5dd; }
.access-toolbar .search span { font-size: 18px; }
.access-toolbar select { min-width: 175px; border-radius: 5px; }
.workspace-toolbar { margin-bottom: 26px; }
.workspace-toolbar .coach-filters { margin: 0; }
.coach-workspace .coach-filters { margin-bottom: 26px; }
.coach-workspace .workspace-toolbar .coach-filters { margin-bottom: 0; }
.coach-workspace :is(.workspace-toolbar, .coach-filters) .search { flex: 0 1 420px; border-color: #d0d5dd; border-radius: 5px; }
.coach-workspace :is(.workspace-toolbar, .coach-filters) .search span { font-size: 18px; }
.coach-workspace :is(.workspace-toolbar, .coach-filters) :is(select, .button, .search) { min-height: 42px; font-size: 16px; }
.coach-workspace :is(.workspace-toolbar, .coach-filters) select { min-width: 145px; border-radius: 5px; }
:where(.coach-workspace) .coach-table { border: 0; border-radius: 0; }
:where(.coach-workspace) .coach-table table { min-width: 625px; border-bottom: 1px solid var(--border); }
.sessions-view .coach-table table { min-width: 940px; }
:where(.coach-workspace) .coach-table th { font-size: var(--portal-row-text); font-weight: 650; white-space: nowrap; }
:where(.coach-workspace) .coach-table :is(th, td) { padding: 10px 14px; }
:where(.coach-workspace) .coach-table td { height: var(--coach-row-height); font-size: var(--portal-row-text); }
:where(.coach-workspace) .coach-table select { width: 100%; min-width: 116px; padding: 6px 8px; border-radius: 5px; font-size: 15px; }
:where(.coach-workspace) .coach-table .button { min-height: 32px; border: 0; background: transparent; color: var(--accent); font: inherit; }
:where(.coach-workspace) .coach-table .button:hover, .session-client-name:hover { text-decoration: underline; }
.sessions-view .coach-session-title { font-weight: 600; }
.sessions-view .coach-table td:nth-child(3), .sessions-view .coach-table td:nth-child(4) { white-space: nowrap; }
.coach-workspace .sessions-view .workspace-toolbar .search { flex: 1 1 235px; max-width: 380px; }
.session-date-range { position: relative; border: 0; padding: 0; }
.session-date-range > summary { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 7px 10px; border: 1px solid #d0d5dd; border-radius: 5px; background: var(--panel); font-size: 16px; list-style: none; }
.session-date-range > summary::-webkit-details-marker { display: none; }
.session-date-range > summary::after { content: ''; width: 6px; height: 6px; margin: -3px 2px 0 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.session-date-range > summary svg { width: 17px; height: 17px; flex: none; }
.session-date-range form { position: absolute; top: calc(100% + 7px); left: 0; z-index: 2; width: min(280px, 84vw); padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); font-size: 15px; }
.session-date-range form .buttons { justify-content: end; }
.client-profile-crumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; font-size: 15px; }
.client-profile-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.client-profile-view .page-title { margin-bottom: 25px; }
.client-profile-title .badge { font-size: 14px; }
.client-profile-view > .tabs { margin-bottom: 24px; }
.client-profile-view > .tabs a { min-height: 42px; color: inherit; font-size: 16px; border: 0; }
.client-profile-view > .tabs a[aria-current] { border-radius: 5px; background: #E7F6EF; font-weight: 650; }
.client-profile-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 26px; }
.client-profile-details { display: grid; gap: 22px; align-content: start; border-left: 1px solid var(--border); padding-left: 19px; }
.client-profile-details dl { grid-template-columns: minmax(105px, .7fr) minmax(0, 1fr); font-size: 16px; }
.client-profile-details dd { color: inherit; }
.client-onboarding details { border: 1px solid var(--border); border-radius: 5px; padding: 10px 12px; font-size: 16px; }
.client-onboarding details + details { margin-top: 10px; }
.client-profile-layout .section-heading .text-link { font-size: 16px; }
.client-profile-layout select, .client-timeline-controls .button { font-size: 15px; }
.client-profile-layout select { border-radius: 5px; padding-block: 7px; min-height: 36px; }
.client-session-timeline { --timeline-date: 112px; list-style: none; position: relative; padding: 0; margin: 26px 0 0; }
.client-session-timeline::before { content: ''; position: absolute; inset: 0 auto 0 var(--timeline-date); border-left: 1px solid #d0d5dd; }
.client-session-timeline li { display: grid; grid-template-columns: var(--timeline-date) minmax(0, 1fr); align-items: start; }
.client-session-timeline time { padding: 4px 12px 0; color: var(--muted); font-size: 16px; }
.client-session-timeline li > div { position: relative; margin-left: 26px; padding: 4px 0 20px; }
.client-session-timeline li + li > div { border-top: 1px solid var(--border); padding-top: 17px; }
.client-session-timeline li > div::before { content: ''; position: absolute; top: 9px; left: -31px; width: 9px; height: 9px; background: var(--panel); border: 1px solid #667085; border-radius: 50%; }
.client-session-timeline li + li > div::before { top: 22px; }
.client-session-timeline h3 { font-size: 17px; font-weight: 650; }
.client-timeline-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-top: 9px; }
.client-timeline-controls .button { border: 0; color: var(--accent); background: none; font-weight: 500; }
.client-timeline-controls .button:hover { text-decoration: underline; }
@media (max-width: 1000px) {
  .client-profile-layout { grid-template-columns: minmax(0, 1fr); }
  .client-profile-details { border-left: 0; border-top: 1px solid var(--border); padding: 18px 0 0; }
}
@media (max-width: 475px) {
  .client-session-timeline { --timeline-date: 70px; }
  .client-session-timeline time { padding-left: 0; }
  .client-profile-view .page-title .buttons { flex-wrap: wrap; }
}
.workspace-status { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.workspace-status::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #98a2b3; }
.workspace-status.is-enabled::before { background: var(--accent); }
.client-access-view .access-menu > summary { font-weight: 700; }
.client-access-view .access-menu[open] > .button { border: 1px solid var(--border); background: var(--panel); color: inherit; }
@media (max-width: 700px) {
  .workspace-toolbar .search { flex-basis: 100%; }
  .portal-workspace .page-title { margin-bottom: 22px; }
}
.access-client-name { font-weight: 600; }
.access-client-name:hover { text-decoration: underline; }
.access-row-actions { display: flex; align-items: start; gap: 8px; }
.access-menu { padding: 0; border: 0; }
.access-menu > summary { display: grid; place-items: center; min-width: 34px; min-height: 34px; border-radius: 5px; list-style: none; }
.access-menu > summary::-webkit-details-marker { display: none; }
.access-menu[open] > summary, .access-menu > summary:hover { background: #f1f4f6; }
.access-menu[open] > .button { margin-top: 5px; }
.access-count { margin-top: 13px; }
dialog:has(.client-access-form) { width: min(540px, calc(100% - 24px)); border-radius: 8px; padding: 22px; box-shadow: 0 16px 44px #171a2229; }
dialog:has(.client-access-form) header { border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 13px; }
dialog:has(.client-access-form) header h2 { font-size: 1.4rem; font-weight: 650; }
.client-access-form { gap: 14px; font-size: .88rem; }
.client-access-form h3, .client-access-options legend { font-size: .95rem; font-weight: 650; }
.client-access-form input:not([type=radio]), .client-access-form textarea, .client-access-form select { border-radius: 5px; }
.client-access-options { border: 0; padding: 0; margin: 0; display: grid; gap: 7px; }
.client-access-options legend { padding: 0 0 8px; }
.client-access-options label { display: flex; align-items: center; gap: 7px; }
.client-access-options input[type=radio] { width: auto; margin: 0; accent-color: var(--accent); }
.client-access-profile { border-top: 1px solid var(--border); }
.client-access-profile > label { margin-top: 10px; }
.client-access-footer { display: flex; flex-wrap: wrap; justify-content: end; gap: 10px; border-top: 1px solid var(--border); padding-top: 13px; }
@media (max-width: 900px) {
  .columns { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Monochrome refresh — black & white, Snowball-style
   Figma: "Mita Coaching — UI Refresh". Visual layer only; content unchanged.
   ========================================================================== */
@font-face { font-family: "Inter var"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter var"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f5f5f5; --surface: #ffffff; --fill: #f3f3f3; --fill-2: #ededed; --hover: #f0f0f0;
  --line: #ebebeb; --line-2: #e2e2e2;
  --ink: #0a0a0a; --ink-2: #262626; --text-2: #6b6b6b; --text-3: #a3a3a3;
  --accent: #0a0a0a; --teal: #0a0a0a; --muted: #6b6b6b; --border: #ebebeb; --panel: #ffffff;
  --r-sm: 8px; --r: 10px; --r-lg: 14px;
  --hair: 0 1px 2px rgb(0 0 0 / 3%);
  --lift: 0 16px 40px -12px rgb(0 0 0 / 18%), 0 2px 6px rgb(0 0 0 / 4%);
  --rail: 236px;
  --font: "Inter var", Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --heading-font: var(--font);
  font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
}
body { background: var(--bg); color: var(--ink); letter-spacing: -.003em; }
::selection { background: #0a0a0a; color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
main:focus, main:focus-visible { outline: none; }
h1, h2, h3 { color: var(--ink); font-family: var(--font); }
p, small, dt { color: var(--text-2); }
strong, b { font-weight: 550; }

/* Icons */
.ui-icon { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; vertical-align: -3px; margin-right: 8px; color: inherit; }
.ui-icon svg { width: 100%; height: 100%; stroke-width: 1.6; }
.ui-icon.ui-icon-only { margin: 0; }

/* ---------- Sidebar ---------- */
#sidebar { width: var(--rail); padding: 18px 12px 12px; background: var(--bg); border-right: 0; }
#sidebar .brand { gap: 10px; margin: 2px 8px 24px; font-size: 14.5px; font-weight: 600; letter-spacing: -.015em; }
#sidebar .brand span, .auth-image .brand span { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 14px; }
#sidebar .brand small { margin-top: 1px; font-size: 11.5px; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
#sidebar nav { gap: 1px; }
#sidebar nav a, #sidebar .support { gap: 10px; min-height: 34px; padding: 6px 10px; border: 0; border-radius: var(--r-sm); color: var(--text-2); font-size: 13.5px !important; font-weight: 450; transition: background .12s, color .12s; }
#sidebar nav a:hover, #sidebar .support:hover { background: var(--fill-2); color: var(--ink); }
#sidebar nav a[aria-current] { background: var(--surface); color: var(--ink); font-weight: 550; box-shadow: 0 0 0 1px var(--line), var(--hair); }
#sidebar nav a[aria-current] i { color: var(--ink); }
#sidebar i { width: 16px; height: 16px; font-size: 16px; color: inherit; }
#sidebar i svg, .coach-shell #sidebar nav i svg { width: 16px; height: 16px; stroke-width: 1.6; }
#sidebar b { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 550; line-height: 18px; text-align: center; }
.coach-sidebar-footer:has(.workspace-account) { margin: auto 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); gap: 1px; }
.workspace-account, .coach-sidebar-footer:has(.workspace-account) > .button { min-height: 34px; padding: 6px 10px; gap: 10px; border: 0; border-radius: var(--r-sm); background: none; box-shadow: none; color: var(--text-2); font-size: 13.5px !important; font-weight: 450; }
.workspace-account:hover, .coach-sidebar-footer:has(.workspace-account) > .button:hover { background: var(--fill-2); color: var(--ink); text-decoration: none; }
.workspace-account svg, .coach-sidebar-footer:has(.workspace-account) > .button svg { width: 16px; height: 16px; }

/* ---------- Main + page header ---------- */
main { margin-left: var(--rail); padding: 14px 20px 40px 6px; position: relative; }
.portal-workspace { font-size: 14px; --portal-row-text: 14px; }
.page-title, .portal-workspace .page-title { min-height: 76px; margin: 0 0 14px; padding: 16px 20px; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--hair); }
.page-title > div:first-of-type { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
.page-title > div:first-of-type > :not(.page-icon) { grid-column: 2; }
.page-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--hair); color: var(--ink); }
.page-icon svg { width: 18px; height: 18px; stroke-width: 1.6; }
h1, .portal-workspace h1 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.page-title p, .portal-workspace .page-title p { margin-top: 1px; font-size: 12.5px; color: var(--text-2); }
h2, .portal-workspace h2 { font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
h3 { font-size: 14px; font-weight: 600; }
.portal-workspace .page-title .button, .coach-shell .page-title .button { min-height: 34px; min-width: 0; padding: 7px 14px; font-size: 13.5px; }
.home-banner::before { display: none; }
.topbar { position: absolute; z-index: 2; top: 34px; right: 40px; margin: 0; gap: 8px; }
main.portal-workspace:not(.coach-workspace) .page-title { padding-right: 230px; }
.icon { width: 34px; height: 34px; border-radius: var(--r); font-size: 16px; }
.icon .ui-icon { width: 16px; height: 16px; }
.icon:hover { background: var(--fill); }
.bell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); }
.bell.unread::after { top: 7px; right: 8px; width: 6px; height: 6px; background: var(--ink); box-shadow: 0 0 0 2px var(--surface); }
.header-avatar { border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-size: 13px; font-weight: 600; }
.coach-sidebar-footer .bell { width: 34px; height: 34px; }

/* ---------- Cards ---------- */
.panel { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--hair); }
.panel > h2:first-child, .section-heading h2 { display: flex; align-items: center; }
.panel h2 > .ui-icon, .section-heading h2 > .ui-icon { color: var(--text-2); }
.columns, .two, .stack { gap: 14px; }
.next { background: var(--surface); }
.next h3 { margin: 14px 0 2px; font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.next p { font-size: 12.5px; }
.section-heading { margin: 22px 2px 10px; }
.text-link, .overview-clients .section-heading a, .overview-links a { color: var(--ink); font-weight: 550; font-size: 13.5px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--text-3); }

/* ---------- Buttons ---------- */
.button { min-height: 34px; padding: 7px 13px; gap: 6px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 550; letter-spacing: -.005em; box-shadow: var(--hair); transition: background .12s, border-color .12s, transform .06s; }
.button:hover { background: var(--fill); border-color: #d6d6d6; }
.button:active { transform: translateY(.5px); }
.button.primary { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 14%), inset 0 1px 0 rgb(255 255 255 / 10%); }
.button.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.button .ui-icon { margin-right: 0; }
.buttons { gap: 8px; }

/* ---------- Status badges (grayscale) ---------- */
.badge { gap: 6px; padding: 2px 8px 2px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 500; line-height: 18px; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.badge:is(.completed, .active-client, .upcoming, .present, .granted, .reviewed, .published, .active, .resolved)::before { background: var(--ink); }
.badge:is(.in-progress, .featured, .next-session, .to-review, .open)::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.badge:is(.absent, .overdue, .blocked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge:is(.absent, .overdue, .blocked)::before { background: #fff; }

/* ---------- Forms ---------- */
input:not([type=checkbox]):not([type=radio]), textarea, select { border: 1px solid transparent; background-color: var(--fill); color: var(--ink); border-radius: var(--r-sm); padding: 8px 11px; font-size: 13.5px; transition: background .12s, border-color .12s, box-shadow .12s; }
input:not([type=checkbox]):not([type=radio]):hover, textarea:hover, select:hover { background-color: var(--fill-2); }
input:not([type=checkbox]):not([type=radio]):focus, textarea:focus, select:focus { outline: none; background-color: var(--surface); border-color: var(--ink); box-shadow: 0 0 0 3px rgb(0 0 0 / 6%); }
::placeholder { color: var(--text-3); }
select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
form label { gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); }
input[type=checkbox] { width: 15px; height: 15px; }
.search, .coach-workspace :is(.workspace-toolbar, .coach-filters) .search, .access-toolbar .search { gap: 8px; padding: 0 11px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--fill); }
.search:hover { background: var(--fill-2); }
.search:focus-within { background: var(--surface); border-color: var(--ink); box-shadow: 0 0 0 3px rgb(0 0 0 / 6%); }
.search span, .coach-workspace :is(.workspace-toolbar, .coach-filters) .search span { font-size: 15px; color: var(--text-3); }
.search .ui-icon { width: 15px; height: 15px; }
.search input:not([type=checkbox]), .search input:not([type=checkbox]):hover, .search input:not([type=checkbox]):focus { background: transparent; border: 0; box-shadow: none; padding-left: 0; }
.coach-workspace :is(.workspace-toolbar, .coach-filters) :is(select, .button, .search) { min-height: 36px; font-size: 13.5px; border-radius: var(--r-sm); }
.coach-workspace :is(.workspace-toolbar, .coach-filters) select, .access-toolbar select { border-radius: var(--r-sm); }
.session-date-range > summary { min-height: 36px; padding: 7px 11px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--fill); font-size: 13.5px; }
.session-date-range > summary:hover { background: var(--fill-2); }
.session-date-range form { border-radius: 12px; border-color: var(--line); box-shadow: var(--lift); padding: 14px; }
.workspace-toolbar, .coach-workspace .coach-filters { margin-bottom: 12px; }

/* ---------- Tables ---------- */
.coach-table, :where(.coach-workspace) .coach-table { padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--hair); }
:where(.coach-workspace) .coach-table table { border-bottom: 0; }
.coach-table th, :where(.coach-workspace) .coach-table th { background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 500; letter-spacing: 0; padding: 11px 16px 9px; border-bottom: 1px solid var(--line); }
.coach-table td, :where(.coach-workspace) .coach-table td { padding: 10px 16px; height: 52px; font-size: 13.5px; border-bottom: 1px solid #f2f2f2; font-variant-numeric: tabular-nums; }
.coach-table tbody tr { transition: background .1s; }
.coach-table tbody tr:hover { background: #fafafa; }
.coach-table td strong, .coach-table td .person, .overview-client-name, .row-title, .access-client-name, .sessions-view .coach-session-title { font-weight: 550; }
:where(.coach-workspace) .coach-table select { min-width: 118px; padding: 5px 28px 5px 9px; font-size: 13px; border-radius: 7px; background-color: transparent; border-color: var(--line-2); background-position: right 7px center; }
:where(.coach-workspace) .coach-table select:hover { background-color: var(--fill); }
:where(.coach-workspace) .coach-table .button { min-height: 28px; padding: 4px 10px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--hair); color: var(--ink); font-weight: 550; font-size: 12.5px; border-radius: 7px; }
:where(.coach-workspace) .coach-table .button:hover { background: var(--fill); text-decoration: none; }
.person { gap: 10px; }
.person-icon, .coach-table tbody tr:nth-child(even) .person-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--fill-2); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.pagination { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.pagination button { min-width: 28px; min-height: 28px; border-radius: 7px; font-size: 12.5px; font-weight: 550; color: var(--ink); }
.pagination button:hover { background: var(--fill); }
.pagination button[aria-current] { background: var(--ink); color: #fff; }

/* ---------- Coach overview ---------- */
.overview-queue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
.overview-queue a { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 8px 10px; min-height: 0; padding: 16px 20px 18px; }
.overview-queue a + a { border-top: 0; border-left: 1px solid var(--line); }
.overview-queue a strong { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.overview-queue a span:nth-child(2) { grid-row: 2; grid-column: 1 / -1; text-align: left; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.overview-queue a span:last-child { grid-row: 1; grid-column: 2; font-size: 14px; color: var(--text-3); transition: transform .15s, color .15s; }
.overview-queue a:hover { background: #fafafa; }
.overview-queue a:hover strong { text-decoration: none; color: var(--ink); }
.overview-queue a:hover span:last-child { color: var(--ink); transform: translateX(3px); }
.coach-overview-screen > .overview-links { margin: 12px 0 14px; gap: 8px; }
.overview-links > * + * { border: 0; padding-left: 0; }
.coach-overview-screen > .overview-links a { display: inline-flex; gap: 5px; align-items: center; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 12.5px; box-shadow: var(--hair); }
.coach-overview-screen > .overview-links a:hover { background: var(--fill); text-decoration: none; }
.overview-links .button, .overview-links .button:first-child { min-height: 30px; padding: 5px 10px; border: 0; border-radius: var(--r-sm); background: none; box-shadow: none; color: var(--ink); font-size: 13px; }
.overview-links .button:hover { background: var(--fill); text-decoration: none; }
.overview-detail { gap: 14px; }
.overview-detail > .panel { padding: 0; min-height: 0; overflow: hidden; }
.overview-clients .section-heading, .overview-agenda h2 { min-height: 0; margin: 0; padding: 16px 20px 12px; }
.overview-clients .coach-table { border: 0; border-radius: 0; box-shadow: none; }
.overview-clients .coach-table table { border: 0; border-top: 1px solid var(--line); }
.overview-clients .coach-table th { background: var(--surface); }
.overview-clients .coach-table td, .overview-clients .coach-table th { padding-inline: 20px; }
.overview-clients .coach-table tr:last-child td { border-bottom: 0; }
.overview-clients .badge { gap: 6px; padding: 2px 8px 2px 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 12px; }
.overview-clients .badge::before { width: 6px; height: 6px; background: var(--text-3); }
.overview-clients .badge.active::before { background: var(--ink); }
.overview-sessions { border-top-color: var(--line); }
.overview-sessions a { grid-template-columns: 56px minmax(0, 1fr); min-height: 0; padding: 12px 20px; gap: 14px; }
.overview-sessions a + a { border-top-color: #f2f2f2; }
.overview-sessions a:hover { background: #fafafa; }
.overview-sessions a > span { border-left: 0; padding-left: 0; }
.overview-sessions time { padding: 6px 2px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: center; font-size: 11px; line-height: 1.35; color: var(--text-2); }
.overview-sessions strong { font-weight: 550; }
.overview-sessions small { font-size: 12.5px; }
.overview-activity { margin: 0; padding: 14px 20px; border-color: var(--line); border-bottom: 0; }
.overview-activity h3 { font-size: 13.5px; font-weight: 550; }
.overview-activity p { font-size: 12.5px; }
.overview-agenda > .overview-links { padding: 2px 12px 14px; margin: 0; }

/* ---------- Stats ---------- */
.stats { gap: 14px; }
.stat { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; min-height: 0; padding: 16px 18px; }
.stat-icon, .stat:nth-child(2) .stat-icon, .stat:nth-child(3) .stat-icon { width: auto; height: auto; background: none; color: var(--text-2); font-size: 14px; grid-row: 1; }
.stat-icon .ui-icon { width: 15px; height: 15px; }
.stat > div { display: contents; }
.stat small { grid-row: 1; grid-column: 2; font-size: 12.5px; color: var(--text-2); }
.stat strong { grid-row: 2; grid-column: 1 / -1; font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat progress { grid-column: 1 / -1; }
a.stat:hover { background: #fafafa; border-color: var(--line-2); color: inherit; }

/* ---------- Client lists ---------- */
.rows { padding: 0; }
.action-row { padding: 13px 20px; }
.action-row + .action-row, .session-row + .session-row { border-top-color: #f2f2f2; }
.action-row strong, .session-row strong { font-weight: 550; }
.action-row small, .session-row small { font-size: 12.5px; }
.action-row small .ui-icon, .session-row small .ui-icon { width: 13px; height: 13px; margin-right: 5px; color: var(--text-3); }
.action-row:hover, .session-row:hover { background: #fafafa; }
.session-row { padding: 12px 20px; }
.date-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--text-2); font-size: 11.5px; padding: 6px; }
.date-tile strong { color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
progress { height: 6px; }
progress::-webkit-progress-bar { background: var(--fill-2); }
progress::-webkit-progress-value, .stat progress::-webkit-progress-value { background: var(--ink); }
progress::-moz-progress-bar { background: var(--ink); }
.progress-cell { color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---------- Tabs & chips (segmented) ---------- */
.tabs { display: inline-flex; width: fit-content; max-width: 100%; gap: 2px; padding: 3px; border: 0; border-radius: var(--r); background: var(--fill-2); margin-bottom: 14px; }
.tabs a, .tabs button { min-height: 28px; padding: 4px 12px; border: 0; border-radius: 7px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs [aria-current], .tabs [aria-pressed=true], .client-profile-view > .tabs a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 8%), 0 0 0 .5px rgb(0 0 0 / 6%); font-weight: 550; }
.client-profile-view > .tabs a { min-height: 28px; font-size: 13px; color: var(--text-2); }
.chips { gap: 6px; margin: 12px 0 16px; }
.chips .button { min-height: 30px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; box-shadow: none; }
.chips .button.primary { background: var(--ink); border-color: var(--ink); }

/* ---------- Resources & media ---------- */
.resource-card { border-radius: var(--r-lg); border-color: var(--line); box-shadow: var(--hair); transition: box-shadow .18s, transform .18s; }
.resource-card:hover { box-shadow: var(--lift); transform: translateY(-2px); }
.resource-card > div:last-child { padding: 12px 14px 14px; }
.resource-card small { font-size: 12px; }
.resource-card h3 { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.resource-card .button { min-height: 26px; padding: 3px 9px; font-size: 12px; border: 0; background: rgb(255 255 255 / 94%); color: var(--ink); backdrop-filter: blur(8px); }
.resource-art { filter: grayscale(1) contrast(1.05); }
.mini-resources .resource-art { border: 0; border-radius: var(--r); }
.resource-detail .resource-art { border-radius: 12px; }
.panel.mountain { background: linear-gradient(90deg, #fff 14%, rgb(255 255 255 / 95%) 48%, rgb(255 255 255 / 25%)), url("assets/mountains.jpg") center 51% / cover; }
.panel.mountain::after { content: none; }
.hero { position: relative; overflow: hidden; min-height: 176px; padding: 24px; border-radius: var(--r-lg); }
.hero h2 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; margin: 12px 0 4px; }
.hero p { font-size: 13px; }
.thumb { border-radius: var(--r); min-height: 80px; filter: grayscale(1); }
.latest { grid-template-columns: 100px 1fr; }
.latest h2 { font-size: 15px; }
.topic-list { margin: 10px 0 6px; }
.topic-list a { padding: 9px 8px; margin: 0 -8px; border-bottom-color: #f2f2f2; border-radius: var(--r-sm); font-size: 13.5px; }
.topic-list a:hover { background: var(--fill); color: var(--ink); }
.search span.ui-icon { color: var(--text-3); }

/* ---------- Misc ---------- */
dl { font-size: 13.5px; }
dt, dd { border-bottom-color: #f2f2f2; }
.profile-stats a { border-left-color: var(--line); color: var(--text-2); font-size: 12.5px; }
.profile-stats strong { color: var(--ink); font-size: 18px; font-weight: 600; }
.avatar { width: 64px; min-height: 64px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 20px; font-weight: 600; }
.profile-banner h2 { font-size: 17px; }
.goal-list > div, .setting { border-bottom-color: #f2f2f2; }
details { border-bottom-color: var(--line); }
summary { font-weight: 550; }
.chat p { background: var(--fill); border-radius: 12px; color: var(--ink); }
.chat .reply { background: var(--ink); color: #fff; }
.coach-callout { background: var(--fill); border: 1px solid var(--line); border-radius: 12px; }
dialog { border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--lift); }
dialog::backdrop { background: rgb(10 10 10 / 28%); backdrop-filter: blur(3px); }
dialog header h2 { font-size: 16px; }
dialog:has(.client-access-form) { border-radius: 16px; box-shadow: var(--lift); }
#notice:not(:empty) { border: 0; background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 14px; box-shadow: var(--lift); font-size: 13px; }
.access-menu > summary { border-radius: 7px; }
.access-menu[open] > summary, .access-menu > summary:hover { background: var(--fill); }
.client-onboarding details { border-color: var(--line); border-radius: var(--r); }
.client-session-timeline::before { border-left-color: var(--line-2); }
.client-session-timeline li > div::before { border-color: var(--ink); }
.workspace-status::before { background: var(--text-3); }
.workspace-status.is-enabled::before { background: var(--ink); }
.coach-meeting-option, form .coach-meeting-option { border-color: var(--line-2); border-radius: var(--r); }
.coach-meeting-option:hover, .coach-meeting-option:has(input:checked) { border-color: var(--ink); }
.coach-meeting-option:has(input:checked) { background: var(--fill); }
.client-profile-view > .tabs { margin-bottom: 18px; }

/* ---------- Sign-in ---------- */
.auth-shell { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); background: var(--surface); }
.auth-image { position: relative; isolation: isolate; margin: 10px; border-radius: 18px; overflow: hidden; color: #fff; background: #0a0a0a; }
.auth-image::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 10 10 / 55%), rgb(10 10 10 / 20%) 45%, rgb(10 10 10 / 85%)), url("assets/mountains.jpg") 61% center / cover; filter: grayscale(1) contrast(1.05); }
.auth-image .brand { color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.auth-image .brand span { background: #fff; color: var(--ink); }
.auth-image > div:last-child { margin-top: auto; }
.auth-image h2 { color: #fff; font-size: clamp(2.2rem, 3.6vw, 3.4rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.04; }
.auth-image p { margin-top: 14px; color: rgb(255 255 255 / 72%); font-size: 15px; }
.auth-content > div { width: min(100%, 380px); }
.auth-content h1 { font-size: 24px; letter-spacing: -.03em; }
.auth-content > div > p { margin: 6px 0 26px; font-size: 13.5px; }
.auth-content input:not([type=checkbox]) { padding: 10px 12px; }
.auth-content form > button { min-height: 40px; }
.auth-demo { margin-top: 26px; padding-top: 18px; border-top-color: var(--line); }
.auth-demo h2 { font-size: 13px; }
.auth-demo p { font-size: 12.5px; }
.auth-demo .button { font-size: 12.5px; min-height: 30px; }

/* ---------- Responsive ---------- */
@media (min-width: 1250px) {
  .coach-shell { --rail: 244px; }
  .coach-shell main { padding: 14px 20px 40px 6px; }
  .coach-shell #sidebar nav a { min-height: 34px; }
  .coach-shell #sidebar .brand { margin-bottom: 24px; }
  .coach-shell #sidebar .brand span { width: 26px; height: 26px; }
  .overview-detail > .panel { min-height: 0; }
}
@media (max-width: 1140px) { :root { --rail: 212px; } main { padding-inline: 6px 14px; } }
@media (max-width: 900px) {
  .overview-queue { grid-template-columns: 1fr; }
  .overview-queue a + a { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  main, .coach-shell main { margin: 0; padding: 10px 12px 28px; }
  #sidebar { background: var(--surface); border-right: 1px solid var(--line); box-shadow: var(--lift); }
  .topbar { position: static; margin-bottom: 10px; }
  main.portal-workspace:not(.coach-workspace) .page-title { padding-right: 20px; }
  .page-icon { width: 34px; height: 34px; }
}
@media (max-width: 760px) { .auth-image { margin: 8px; gap: 40px; } }

/* Monochrome: review fixes */
.badge:is(.completed, .active-client, .upcoming, .present, .granted, .reviewed, .published, .active, .resolved, .in-progress, .featured, .next-session, .to-review, .open) { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.badge:is(.absent, .overdue, .blocked), .overview-clients .badge:is(.overdue, .blocked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-title > div:first-of-type:not(:has(> p)) .page-icon { grid-row: 1; }
.overview-sessions a { grid-template-columns: 78px minmax(0, 1fr); }
.panel.mountain { filter: grayscale(1); }

/* ==========================================================================
   Original colour palette (Mita V2) on top of the refreshed layout
   ========================================================================== */
:root {
  --bg: #f8f9fb; --fill: #f1f4f6; --fill-2: #e9edf2; --hover: #edf0f4;
  --line: #e5e7eb; --line-2: #d0d5dd;
  --ink: #171a22; --ink-2: #344054; --text-2: #667085; --text-3: #98a2b3;
  --accent: #247a55; --accent-hover: #1b6243; --accent-soft: #e7f6ef; --teal: #176345;
  --muted: #667085; --border: #e5e7eb;
}
::selection { background: #e7f6ef; color: #176345; }
:focus-visible { outline-color: var(--accent); }

/* Logo */
#sidebar .brand span, .auth-image .brand span { background: #c6ff00; color: #171a22; }

/* Sidebar */
#sidebar nav a[aria-current] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); color: var(--ink); }
#sidebar nav a[aria-current] i { color: var(--accent); }
#sidebar b { background: #e9edf2; color: #344054; }

/* Buttons, links, controls */
.button.primary, .chips .button.primary { background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.text-link, .overview-clients .section-heading a, .overview-links .button, .overview-links .button:first-child { color: var(--accent); }
.overview-links .button:hover { background: var(--accent-soft); }
:where(.coach-workspace) .coach-table .button { color: var(--accent); }
.pagination button[aria-current] { background: var(--accent); }
input[type=checkbox], input[type=radio], .coach-meeting-option input[type=radio] { accent-color: var(--accent); }
input:not([type=checkbox]):not([type=radio]):focus, textarea:focus, select:focus, .search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(36 122 85 / 14%); }
.coach-meeting-option:hover, .coach-meeting-option:has(input:checked) { border-color: var(--accent); }
.coach-meeting-option:has(input:checked) { background: rgb(36 122 85 / 9%); }
progress::-webkit-progress-value, .stat progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.bell.unread::after { background: var(--accent); }
.header-avatar { background: var(--accent-soft); border-color: transparent; color: #176345; }
.person-icon { background: var(--accent-soft); color: #176345; }
.coach-table tbody tr:nth-child(even) .person-icon { background: #edf0f4; color: #344054; }
.avatar { background: var(--accent-soft); color: #176345; }
.page-icon { color: var(--accent); }
.stat-icon, .stat:nth-child(2) .stat-icon, .stat:nth-child(3) .stat-icon { color: var(--accent); }
.chat .reply { background: var(--accent-soft); color: var(--ink); }
.coach-callout { background: #edf8f3; border-color: #b3dec9; }
#notice:not(:empty) { background: #e7f6ef; color: #176345; border: 1px solid #b3dec9; }
.client-session-timeline li > div::before { border-color: #667085; }
.workspace-status.is-enabled::before { background: var(--accent); }

/* Status badges: original colours */
.badge, .overview-clients .badge { border-color: transparent; background: #eceef1; color: #475467; }
.badge::before, .overview-clients .badge::before { background: currentColor; box-shadow: none; }
.badge:is(.completed, .active-client, .upcoming, .present, .granted, .reviewed, .published, .active, .resolved),
.overview-clients .badge.active { background: #e7f6ef; border-color: transparent; color: #176345; }
.badge:is(.in-progress, .featured, .next-session, .to-review, .open) { background: #fff2d9; border-color: transparent; color: #884b05; }
.badge:is(.in-progress, .featured, .next-session, .to-review, .open)::before { background: currentColor; box-shadow: none; }
.badge:is(.absent, .overdue, .blocked), .overview-clients .badge:is(.overdue, .blocked) { background: #fdebec; border-color: transparent; color: #a12638; }
.badge:is(.absent, .overdue, .blocked)::before { background: currentColor; }

/* Photos back in full colour */
.resource-art, .thumb, .panel.mountain { filter: none; }
.resource-art.tension { filter: saturate(.55); }
.panel.mountain { background: linear-gradient(90deg, #f8fbf9 10%, #f8fbf9f5 54%, #f8fbf944), url("assets/mountains.jpg") center 51% / cover; }

/* Sign-in: original light treatment */
.auth-image { color: var(--ink); background: #f8fbf9; }
.auth-image::before { background: linear-gradient(180deg, #f8fbf9f5, #f8fbf9e8 55%, #f8fbf966), url("assets/mountains.jpg") 61% center / cover; filter: none; }
.auth-image .brand, .auth-image h2 { color: var(--ink); }
.auth-image p { color: var(--text-2); }
.auth-image > div:last-child { margin-top: 0; }

/* ==========================================================================
   Figma layout layer — matches "Mita Coaching — UI Refresh" (19 approved screens)
   Styling only: no markup, text or behaviour changes.
   ========================================================================== */
:root { --card-pad: 20px; }

/* Sidebar: active item is a soft green pill (no side rule) */
#sidebar nav a[aria-current], #sidebar .support[aria-current] { background: var(--accent-soft); box-shadow: none; color: var(--ink); font-weight: 550; }
#sidebar nav a[aria-current] i, #sidebar nav a[aria-current] svg { color: var(--accent); }
#sidebar b { background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-weight: 500; }

/* Card headers with a divider (profile, privacy, settings, AI coach topics) */
:is(.profile-panels, .stack, .detail-columns) > .panel > h2:first-child,
:is(.profile-panels, .stack) > .panel > .section-heading.inside:first-child,
.coach-workspace > .panel > h2:first-child,
.panel.saved > h2:first-child {
  margin: -18px calc(-1 * var(--card-pad)) 0; padding: 16px var(--card-pad) 12px; border-bottom: 1px solid var(--line);
}
.profile-panels .panel > .section-heading.inside { padding-block: 12px; }

/* Section heading + following card = one card with a header band (client Home, Actions, Summaries) */
.section-heading:not(.tabs):has(+ :is(.panel, .coach-table)) {
  margin: 16px 0 0; padding: 14px var(--card-pad) 12px; background: var(--surface);
  border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.section-heading:not(.tabs) + :is(.panel, .coach-table) { border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: none; }
.section-heading:not(.tabs) + .panel.rows { border-top: 1px solid var(--line); }
.section-heading:not(.tabs) + .panel.latest { border-top: 0; padding-top: 4px; }
.home-columns > div > .section-heading:first-of-type { margin-top: 16px; }

/* Toolbar + table = one card (all coach tables) */
:is(.coach-filters, .workspace-toolbar, .access-toolbar):has(+ :is(.coach-table, .section-heading, .panel)) {
  margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--hair);
}
.workspace-toolbar:has(+ :is(.coach-table, .section-heading, .panel)) > .coach-filters { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
:is(.coach-filters, .workspace-toolbar, .access-toolbar) + :is(.coach-table, .panel) { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: none; }
:is(.coach-filters, .workspace-toolbar) + .section-heading { margin: 0; border-radius: 0; border-top: 0; padding: 10px var(--card-pad); }
.coach-filters + .section-heading small { font-size: 13px; color: var(--text-2); }
.coach-table thead th { background: var(--surface); }
.coach-workspace :is(.workspace-toolbar, .coach-filters) .search, .access-toolbar .search { min-height: 38px; }
/* Client Access: table + count footer */
.client-access-view .coach-table:has(+ .access-count) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.client-access-view .access-count { margin: 0; padding: 12px var(--card-pad); background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); font-size: 13px; color: var(--text-2); }

/* Tables: rows and controls */
.coach-table td { height: 56px; }
:where(.coach-workspace) .coach-table select { background-color: var(--fill); border-color: transparent; border-radius: 8px; }
:where(.coach-workspace) .coach-table .button { border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--hair); color: var(--ink); }
:where(.coach-workspace) .coach-table .button:hover { background: var(--fill); }
.sessions-view .coach-table td .button { border: 0; background: none; box-shadow: none; color: var(--accent); }
.sessions-view .coach-table td .button:hover { background: var(--accent-soft); }

/* Callouts with a shield icon (AI Summaries, Consent Records) */
.coach-callout { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 14px 18px; background: var(--accent-soft); border: 0; border-radius: var(--r-lg); }
.coach-callout::before { content: ''; grid-row: 1 / span 9; width: 18px; height: 18px; margin-top: 1px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4.5 6v5.5c0 4.6 3.2 8 7.5 9.5 4.3-1.5 7.5-4.9 7.5-9.5V6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4.5 6v5.5c0 4.6 3.2 8 7.5 9.5 4.3-1.5 7.5-4.9 7.5-9.5V6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.coach-callout > * { grid-column: 2; }
.coach-callout strong { font-size: 14px; color: var(--ink); }
.coach-callout p { margin-top: 2px; font-size: 13px; }

/* Privacy & Consent: switches instead of checkboxes */
.panel:has([data-select=consent]) .setting { padding: 16px 0; margin: 0; font-weight: 550; color: var(--ink); }
.panel:has([data-select=consent]) .setting + .setting { border-top: 0; }
.panel:has([data-select=consent]) .setting input[type=checkbox] {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 36px; height: 20px; margin: 0; border-radius: 99px; background: var(--line-2); cursor: pointer; transition: background .15s;
}
.panel:has([data-select=consent]) .setting input[type=checkbox]::before { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / 20%); transition: transform .15s; }
.panel:has([data-select=consent]) .setting input[type=checkbox]:checked { background: var(--accent); }
.panel:has([data-select=consent]) .setting input[type=checkbox]:checked::before { transform: translateX(16px); }
.panel:has([data-select=consent]) .setting input[type=checkbox]:disabled { opacity: .55; cursor: not-allowed; }
.panel:has([data-select=consent]) .setting input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel:has([data-select=consent]) > p:last-child { margin: -8px 0 4px; font-size: 13px; }
.stack > .panel > h2 + p { margin: 12px 0 4px; font-size: 13px; }
.stack > .panel > .buttons { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Help & Support: accordion card */
main > .panel:has(> details) { padding: 0; }
main > .panel > details { padding: 0; border-bottom: 1px solid var(--line); }
main > .panel > details:last-child { border-bottom: 0; }
main > .panel > details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; list-style: none; font-weight: 550; color: var(--ink); }
main > .panel > details > summary::-webkit-details-marker { display: none; }
main > .panel > details > summary::after { content: ''; flex: none; width: 8px; height: 8px; margin-top: -4px; border: solid var(--text-3); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .15s; }
main > .panel > details[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
main > .panel > details > p { margin: -6px 24px 18px; font-size: 13.5px; }
main > .panel > details > summary:hover { background: #fafbfc; }

/* AI Coach: centred empty state with an icon tile */
.detail-columns > .panel:first-child:has(> a.button.primary[href="#privacy"]) { display: grid; justify-items: center; gap: 10px; padding: 40px 32px; text-align: center; }
.detail-columns > .panel:first-child:has(> a.button.primary[href="#privacy"])::before {
  content: ''; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%23247A55' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9zM19 16l.7 1.8 1.8.7-1.8.7L19 21l-.7-1.8-1.8-.7 1.8-.7z'/%3E%3C/svg%3E") center no-repeat;
}
.detail-columns > .panel:first-child:has(> a.button.primary[href="#privacy"]) > h2 { margin: 4px 0 0; padding: 0; border: 0; font-size: 18px; }
.detail-columns > .panel:first-child:has(> a.button.primary[href="#privacy"]) > p { margin: 0; }
.detail-columns > .panel:first-child:has(> a.button.primary[href="#privacy"]) > p + p { padding: 9px 14px; border-radius: 10px; background: var(--fill); color: var(--ink); font-size: 13px; }
.detail-columns > .panel:first-child:has(> a.button.primary[href="#privacy"]) > .button { margin-top: 6px; }

/* Profile */
.profile-banner { padding: 20px; gap: 18px; }
.profile-banner .avatar { width: 64px; min-height: 64px; border-radius: 16px; font-size: 20px; }
.profile-stats strong { font-size: 22px; font-weight: 600; color: var(--ink); }
.profile-panels { gap: 16px; }
.profile-panels .panel { padding-bottom: 18px; }
.profile-panels dl { margin: 0 calc(-1 * var(--card-pad)); grid-template-columns: 160px minmax(0, 1fr); }
.profile-panels dt { padding: 11px 0 11px var(--card-pad); }
.profile-panels dd { padding: 11px var(--card-pad) 11px 0; }
.profile-panels .goal-list > div, .profile-panels .setting { margin: 0 calc(-1 * var(--card-pad)); padding: 10px var(--card-pad); border-bottom: 1px solid #f0f2f5; }
.profile-panels .goal-list { margin-bottom: 14px; }
.profile-panels .goal-list label { display: flex; align-items: center; gap: 12px; }
.profile-panels .setting { min-height: 50px; color: var(--text-2); font-size: 14px; }
.profile-panels form { gap: 0; }
.profile-panels form > .button { margin-top: 14px; }
.profile-panels .panel > p { margin: 12px 0; font-size: 13px; }
.profile-panels .panel > .text-link { display: inline-block; margin-top: 12px; }

/* Coach Settings: compact form card */
.coach-workspace > .panel:has(> form [name=email]) { max-width: 640px; }
.coach-workspace > .panel:has(> form [name=email]) form { padding-top: 14px; }
.coach-workspace > .panel:has(> form [name=email]) .setting { padding: 12px 0 0; border-top: 1px solid var(--line); border-bottom: 0; font-weight: 550; color: var(--ink); }

/* Client lists */
.home-columns .panel.rows .action-row, .panel.rows .session-row { padding-inline: var(--card-pad); }
.panel.latest { padding: 16px var(--card-pad) 20px; }
.next h3 { font-size: 24px; }

/* Figma layer: review fixes */
.home-columns .stack > .panel > h2:first-child { margin: 0 0 10px; padding: 0; border: 0; }
.coach-workspace .coach-filters:not(:has(+ :is(.coach-table, .section-heading, .panel))), .coach-workspace .workspace-toolbar:not(:has(+ :is(.coach-table, .section-heading, .panel))) {
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--hair); margin-bottom: 16px;
}
.coach-workspace :is(.coach-filters, .workspace-toolbar) { flex-wrap: nowrap; }
.coach-workspace :is(.workspace-toolbar, .coach-filters) .search { flex: 1 1 200px; min-width: 160px; }
.coach-workspace :is(.workspace-toolbar, .coach-filters) select { min-width: 0; flex: 0 1 150px; }
.coach-workspace :is(.coach-filters, .workspace-toolbar) > .button { flex: none; }
.coach-filters + .section-heading:not(.tabs), .workspace-toolbar + .section-heading:not(.tabs) { margin: 0; border-radius: 0; border-top: 0; box-shadow: none; }
.stack > .section-heading:not(.tabs) { margin-top: 0; }
.panel:has([data-select=consent]) .setting { border-bottom: 1px solid var(--line); }
.panel:has([data-select=consent]) .setting:has(+ p) { border-bottom: 0; padding-bottom: 6px; }
.panel:has([data-select=consent]) > p:last-child { margin: 0 0 4px; padding-bottom: 4px; }
@media (max-width: 1100px) { .coach-workspace :is(.coach-filters, .workspace-toolbar) { flex-wrap: wrap; } }
.badge::before, .badge:is(.completed, .active-client, .upcoming, .present, .granted, .reviewed, .published, .active, .resolved, .in-progress, .featured, .next-session, .to-review, .open, .absent, .overdue, .blocked)::before,
.overview-clients .badge::before, .overview-clients .badge.active::before { background: currentColor; box-shadow: none; }
.stack > .section-heading:not(.tabs):has(+ :is(.panel, .coach-table)) { margin-top: 0; }
.overview-clients > .section-heading:not(.tabs) { margin: 0; padding: 16px var(--card-pad) 12px; background: none; border: 0; border-radius: 0; }
.overview-clients > .section-heading + .coach-table { border: 0; border-radius: 0; box-shadow: none; }
/* Coach client profile: match the 14px system */
.client-profile-details dl { font-size: 14px; }
.client-profile-details dt { color: var(--text-2); }
.client-session-timeline time { font-size: 13px; }
.client-session-timeline h3 { font-size: 15px; font-weight: 600; }
.client-onboarding details { font-size: 14px; padding: 12px 14px; background: var(--surface); }
.client-profile-layout .section-heading h2, .client-profile-details h2 { font-size: 15px; }
.client-profile-layout .section-heading .text-link { font-size: 14px; }
.client-profile-title h1 + .badge { font-size: 12px; }
