:root {
  color-scheme: light;
  --canvas: #FAF8F2;
  --surface: #FFFDF9;
  --surface-muted: #F4F2EB;
  --ink: #183139;
  --ink-soft: #526A70;
  --muted: #526A70;
  --line: #E5E6DE;
  --line-strong: #CFD8D6;
  --deep: #075E73;
  --primary: #087F9C;
  --bright: #14A7C4;
  --soft-blue: #BDEBF2;
  --mist: #E8F7F8;
  --sun: #F2C94C;
  --coral: #E98A4A;
  --green: #4F9D78;
  --danger: #A4453F;
  --sidebar-width: 252px;
  --topbar-height: 70px;
  --radius: 10px;
  --radius-small: 6px;
  --focus: 0 0 0 3px rgba(8, 127, 156, .24);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
.training-toolbar { flex-wrap: wrap; }
.training-toolbar > input { flex: 1 1 220px; }
.training-toolbar > select { flex: 0 1 200px; }
.training-help { max-width: 75ch; margin: -4px 0 20px; color: var(--ink-soft); font-size: 13px; }
.training-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 24px; }
.training-row + .training-row { border-top: 1px solid var(--line); }
.training-resource { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.training-resource h2 { margin: 7px 0 10px; font-size: 18px; }
.training-resource-type { color: var(--deep); font-size: 12px; font-weight: 600; }
.training-description { max-width: 65ch; white-space: pre-wrap; color: var(--ink-soft); }
.training-resource > small { display: block; margin-top: 12px; font-size: 12px; }
.training-actions { display: grid; flex: 0 0 210px; gap: 12px; }
.training-management { display: flex; justify-content: flex-end; gap: 10px; }
.training-management .small-action { min-height: 44px; }
.training-empty { padding: 40px 28px; }
.training-empty-icon { display: inline-flex; color: var(--deep); margin-bottom: 16px; }
.training-empty-icon svg { width: 32px; height: 32px; }
.training-empty h2 { font-size: 19px; }
.training-empty p { max-width: 60ch; margin: 12px 0 22px; color: var(--ink-soft); }
@media (max-width: 640px) {
  .training-row { flex-direction: column; gap: 20px; padding: 20px 16px; }
  .training-actions { flex: auto; width: 100%; }
  .training-toolbar > select { flex: 1 1 180px; }
  .training-empty { padding: 28px 20px; }
}
* { box-sizing: border-box; }
svg[aria-hidden="true"] { display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body { margin: 0; min-width: 320px; min-height: 100vh; font-size: 14px; line-height: 1.5; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex="-1"]:focus-visible { outline: none; box-shadow: var(--focus); }
button:disabled { opacity: .48; cursor: not-allowed; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 20; left: 16px; top: -60px; padding: 10px 14px; color: white; background: var(--deep); border-radius: 4px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 17px 14px 12px; color: #F7FCFA; background: var(--deep); }
.brand-row { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 9px; }
.brand-mark { width: 30px; height: 30px; object-fit: cover; object-position: 50% 29%; border-radius: 50%; background: #fff; }
.brand-name { color: white; font-size: 18px; font-weight: 700; letter-spacing: -.35px; }
.workspace-switcher { display: flex; align-items: center; width: 100%; min-height: 53px; margin: 14px 0 17px; padding: 8px; text-align: left; color: white; border: 1px solid rgba(255,255,255,.19); border-radius: 7px; background: rgba(255,255,255,.06); cursor: pointer; }
.workspace-switcher:hover { background: rgba(255,255,255,.12); }
.workspace-initial { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; color: var(--deep); background: #CDECF0; font-weight: 700; }
.workspace-copy, .profile-copy { display: grid; gap: 1px; min-width: 0; margin-left: 9px; }
.workspace-copy strong { font-size: 12px; }
.workspace-copy small { color: #C1DCE0; font-size: 11px; }
.workspace-chevron { margin-left: auto; padding: 0 7px; color: #C1DCE0; font-size: 17px; }
.nav-list { display: flex; flex: 1; flex-direction: column; gap: 3px; overflow: auto; padding: 0 0 8px; }
.nav-caption { padding: 0 10px; margin: 0 0 5px; color: #B6D1D5; font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 7px 10px; color: #E5F0EF; border-radius: 6px; transition: background-color 160ms ease, color 160ms ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.09); }
.nav-link.active { color: #073D4B; background: #DFF2F2; font-weight: 650; }
.nav-link.active::before { position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; content: ""; border-radius: 0 2px 2px 0; background: #F2C94C; }
.nav-icon, [data-icon] { display: inline-flex; flex: 0 0 19px; align-items: center; justify-content: center; width: 19px; height: 19px; }
.nav-icon svg, [data-icon] svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: auto; padding: 0 5px; color: #F2F8F7; border-radius: 10px; background: rgba(255,255,255,.17); font-size: 10px; }
.nav-count:empty { display: none; }
.nav-link.active .nav-count { color: var(--deep); background: #BDEBF2; }
.sidebar-bottom { display: grid; gap: 3px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.15); }
.team-presence { display: flex; align-items: center; gap: 8px; padding: 7px 10px 9px; color: #C1DCE0; font-size: 11px; }
.presence-dots { display: inline-flex; padding-left: 2px; }
.presence-dots i { width: 8px; height: 8px; margin-left: -2px; border: 1px solid var(--deep); border-radius: 50%; background: #92D5BD; }
.presence-dots i:nth-child(2) { background: #F1BB93; }
.presence-dots i:nth-child(3) { background: #A8DDE5; }
.profile-button { display: flex; align-items: center; width: 100%; min-height: 49px; padding: 7px 8px; border: 0; border-radius: 7px; color: white; background: transparent; text-align: left; cursor: pointer; }
.profile-button:hover { background: rgba(255,255,255,.09); }
.profile-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { overflow: hidden; color: #C1DCE0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-glyph { margin-left: auto; color: #C1DCE0; font-size: 19px; letter-spacing: 2px; }
.profile-logout { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 5px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; color: #D6E8E9; background: transparent; text-align: left; cursor: pointer; font-size: 11px; }
.profile-logout:hover { color: white; background: rgba(255,255,255,.09); }
.avatar { display: inline-grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; color: #075E73; background: #D7EFF0; font-size: 11px; font-weight: 700; }
.avatar-small { width: 31px; height: 31px; }
.avatar.avatar-coral { color: #6C3417; background: #F5D0B5; }
.avatar.avatar-green { color: #204F3B; background: #CDE5D7; }
.avatar.avatar-yellow { color: #594600; background: #F6E8AD; }
.close-menu, .mobile-menu { display: none; }

.main-column { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 5; top: 0; display: flex; align-items: center; justify-content: space-between; height: var(--topbar-height); padding: 0 clamp(20px, 3vw, 42px); border-bottom: 1px solid var(--line); background: rgba(250,248,242,.97); }
.topbar-leading { display: flex; align-items: center; gap: 12px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.breadcrumbs strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.crumb-divider { color: #B1BCB8; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.global-search { display: flex; align-items: center; width: min(245px, 28vw); height: 37px; padding: 0 8px 0 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.search-glyph { position: relative; display: inline-block; flex: 0 0 14px; width: 14px; height: 14px; margin-right: 8px; border: 1.6px solid #71868A; border-radius: 50%; }
.search-glyph::after { position: absolute; right: -4px; bottom: -3px; width: 6px; height: 1.5px; content: ""; transform: rotate(45deg); background: #71868A; }
.global-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.global-search input::placeholder { color: #526A70; opacity: 1; }
.global-search kbd { flex: 0 0 auto; padding: 1px 4px; border: 1px solid var(--line); border-radius: 3px; color: #65797C; background: #F6F4EE; font-size: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 13px; border: 1px solid transparent; border-radius: 6px; font-weight: 600; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 120ms ease; }
.button:active { transform: scale(.98); }
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--deep); }
.button-primary:focus-visible { box-shadow: 0 0 0 3px rgba(8,127,156,.3); }
.button-quiet { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.button-quiet:hover { border-color: #A9C5C6; background: #F2F8F6; }
.button-danger { color: #8D3430; border-color: #E5BDB8; background: #FFF9F7; }
.icon-button { position: relative; display: inline-grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 6px; color: #49646A; background: transparent; cursor: pointer; }
.icon-button:hover { border-color: var(--line); background: var(--surface); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border: 2px solid var(--canvas); border-radius: 50%; background: var(--coral); }
.page-content { max-width: 1500px; min-height: calc(100vh - var(--topbar-height) - 42px); padding: 29px clamp(20px, 3vw, 42px) 42px; margin: 0 auto; }
.app-footer { display: flex; align-items: center; justify-content: space-between; padding: 11px clamp(20px, 3vw, 42px) 16px; color: #526A70; font-size: 10px; }
.live-state { display: inline-flex; align-items: center; gap: 6px; }
.live-state i { width: 7px; height: 7px; border-radius: 50%; background: #AFB9B6; }
.live-state.connected i { background: var(--green); }
.live-state.disconnected i { background: var(--coral); }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: 27px; font-weight: 650; letter-spacing: -.7px; line-height: 1.17; text-wrap: balance; }
.page-heading p { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }
.heading-actions { display: flex; align-items: center; gap: 8px; }
.heading-date { color: #587074; font-size: 12px; }
h2, h3, p { text-wrap: pretty; }
h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.2px; }
h3 { margin: 0; font-size: 14px; font-weight: 650; }
.surface { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 13px; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.text-link { color: #066982; font-size: 12px; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field-label { color: #405B61; font-size: 11px; font-weight: 650; }
.field input, .field select, .field textarea, .control { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #CBD6D2; border-radius: 5px; color: var(--ink); background: #FFFEFB; }
.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 44px; }
.password-toggle { position: absolute; top: 50%; right: 7px; display: grid; width: 30px; height: 30px; padding: 5px; border: 0; border-radius: 4px; color: #527076; background: transparent; transform: translateY(-50%); cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--primary); background: #EAF5F2; }
.password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.field textarea { min-height: 92px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #526A70; opacity: 1; }
.field .field-hint { color: #607579; font-size: 10px; }
.field-error { min-height: 15px; color: #903B34; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.dialog-shell { width: min(620px, calc(100vw - 28px)); max-height: min(90vh, 780px); padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: var(--surface); }
.dialog-shell::backdrop { background: rgba(10,37,42,.45); }
.app-dialog { margin: auto; }
.dialog-head { position: sticky; z-index: 1; top: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 19px 22px 15px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dialog-head h2 { font-size: 18px; }
.dialog-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.dialog-body { display: grid; gap: 15px; padding: 19px 22px 22px; }
.dialog-close { width: 36px; height: 36px; margin: -4px -7px 0 10px; font-size: 22px; }
.task-confirm-dialog { width: min(390px, calc(100vw - 28px)); overflow: visible; }
.task-confirm-content { display: grid; gap: 9px; padding: 22px; }
.task-confirm-content h2 { margin: 0; font-size: 17px; font-weight: 650; }
.task-confirm-content p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.task-confirm-content .form-actions { margin-top: 8px; }
.toast-region { position: fixed; z-index: 30; right: 20px; bottom: 18px; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { padding: 12px 14px; border: 1px solid #C4D9D3; border-radius: 7px; color: #163C38; background: #F1FAF4; }
.toast.error { border-color: #E7C1BA; color: #6E2D28; background: #FFF5F2; }
.empty-state { display: grid; justify-items: start; gap: 8px; padding: 25px 0; color: var(--muted); }
.empty-state p { max-width: 48ch; margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 17px; }
.toolbar .control { width: auto; min-width: 150px; min-height: 38px; padding: 7px 10px; font-size: 12px; }
.toolbar input.control { width: min(250px, 100%); }
.segmented { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #F2F1EB; }
.segmented button { min-height: 44px; padding: 0 10px; border: 0; border-radius: 4px; color: #50686B; background: transparent; font-size: 11px; cursor: pointer; }
.segmented button[aria-pressed="true"] { color: var(--deep); background: var(--surface); box-shadow: 0 1px 3px rgba(17,50,53,.08); }
.table-wrap { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 11px 13px; border-bottom: 1px solid var(--line); color: #5C7174; font-size: 10px; font-weight: 650; white-space: nowrap; }
.data-table td { padding: 12px 13px; border-bottom: 1px solid #EBECE6; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #FAFCF9; }
.data-table th:first-child, .data-table td:first-child { padding-left: 16px; }
.table-title { display: grid; gap: 2px; min-width: 140px; }
.table-title strong { font-size: 12px; font-weight: 600; }
.table-title span { color: var(--muted); font-size: 10px; }
.table-actions { display: flex; align-items: center; gap: 4px; }
.small-action { min-height: 44px; padding: 5px 8px; border: 1px solid transparent; border-radius: 4px; color: #42636A; background: transparent; cursor: pointer; font-size: 11px; }
.small-action:hover { border-color: var(--line); background: #F3F8F6; }
.status-badge, .priority-badge, .category-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-height: 23px; padding: 2px 7px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.status-badge::before { width: 6px; height: 6px; content: ""; border-radius: 50%; background: currentColor; }
.status-active { color: #075E73; background: #E9F6F5; }
.status-positive { color: #276447; background: #EDF5EF; }
.status-followup { color: #8A4820; background: #FFF2E8; }
.status-prospect { color: #675200; background: #FBF4D9; }
.task-status-todo { color: #506B72; background: #F2F5F3; }
.task-status-doing { color: #075E73; background: #E8F7F8; }
.task-status-waiting { color: #80531A; background: #FBF3DB; }
.task-status-done { color: #276447; background: #EDF3EC; }
.priority-low { color: #526A70; background: #F5F6F3; }
.priority-normal { color: #075E73; background: #E8F7F8; }
.priority-high { color: #845023; background: #FFF2E6; }
.priority-urgent { color: #8B3731; background: #FCEDEA; }
.category-badge { color: #4F696E; border-color: #D5E0DD; background: #F7FAF7; }
.progress-track { width: 100%; height: 6px; overflow: hidden; border-radius: 4px; background: #E7ECE7; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--green); }
.progress-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 10px; }
.person-inline { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.person-inline .avatar { width: 25px; height: 25px; font-size: 9px; }

.home-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.home-welcome h1 { margin: 0; font-size: 29px; font-weight: 650; letter-spacing: -.9px; line-height: 1.18; }
.home-welcome .heading-actions .button { min-width: 156px; white-space: nowrap; }
.home-welcome p { margin: 7px 0 0; color: var(--ink-soft); font-size: 13px; }
.home-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(270px,.9fr); gap: 16px; align-items: start; }
.home-main-stack, .home-side-stack { display: grid; gap: 16px; min-width: 0; }
.home-top-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.stat-block { padding: 14px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.stat-label { color: #526A70; font-size: 11px; }
.stat-value-row { display: flex; align-items: baseline; gap: 7px; margin-top: 4px; }
.stat-value { font-size: 22px; font-weight: 650; letter-spacing: -.5px; }
.stat-note { color: var(--muted); font-size: 10px; }
.dashboard-section { padding: 17px 18px; }
.task-list { display: grid; }
.task-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #EBECE6; }
.task-row:first-child { padding-top: 4px; }
.task-row:last-child { padding-bottom: 4px; border-bottom: 0; }
.task-row-main { display: flex; min-width: 0; align-items: flex-start; gap: 10px; }
.task-check { position: relative; display: grid; flex: 0 0 24px; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid #AABBB5; border-radius: 5px; color: white; background: transparent; cursor: pointer; }
.task-check::before { position: absolute; inset: -10px; content: ""; }
.task-check:hover { border-color: var(--green); background: #ECF5EF; }
.task-check.checked { border-color: var(--green); background: var(--green); }
.task-check svg { width: 12px; height: 12px; stroke: currentColor; }
.task-copy { display: grid; gap: 4px; min-width: 0; }
.task-copy strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.task-copy small { color: var(--muted); font-size: 10px; }
.task-row-meta { display: flex; align-items: center; gap: 8px; }
.task-timer-control { display: inline-flex; align-items: center; justify-content: flex-start; gap: 5px; min-width: 70px; white-space: nowrap; }
.task-timer-value { color: #36595E; font-family: "SF Mono", "Cascadia Code", monospace; font-size: 10px; font-variant-numeric: tabular-nums; }
.task-timer-button { position: relative; display: inline-grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #C8D8D5; border-radius: 6px; color: var(--deep); background: var(--surface); cursor: pointer; }
.task-timer-button::before { position: absolute; inset: -4px; content: ""; }
.task-timer-button svg { width: 14px; height: 14px; }
.task-timer-button:hover { border-color: var(--primary); color: var(--primary); background: #F0F8F7; }
.task-timer-button.is-running { border-color: #8DBBB1; color: #276447; background: #EDF3EC; }
.task-timer-button:disabled { opacity: .48; cursor: not-allowed; }
.task-time-section { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-block: 1px solid var(--line); }
.task-time-section h3 { margin: 0; }
.task-time-section p { margin: 2px 0 0; }
.task-time-section .task-timer-control { min-width: 95px; justify-content: flex-end; }
.due-label { color: #516C70; font-size: 10px; white-space: nowrap; }
.due-label.overdue { color: #9B4138; font-weight: 650; }
.priority-dot { width: 7px; height: 7px; border-radius: 50%; background: #89A8A3; }
.priority-dot.high { background: var(--coral); }
.priority-dot.urgent { background: #B64F45; }
.priority-dot.low { background: #A9B8B0; }
.project-mini-list { display: grid; gap: 0; }
.project-mini { display: grid; grid-template-columns: 10px minmax(0,1fr) 60px; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #EBECE6; }
.project-mini:last-child { border-bottom: 0; }
.project-swatch { width: 8px; height: 28px; border-radius: 3px; }
.project-mini-info { display: grid; gap: 2px; min-width: 0; }
.project-mini-info strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.project-mini-info small { color: var(--muted); font-size: 10px; }
.project-mini-progress { color: #526A70; text-align: right; font-size: 10px; }
.agenda-list { display: grid; }
.agenda-item { display: grid; grid-template-columns: 45px 1fr; gap: 11px; padding: 11px 0; border-bottom: 1px solid #EBECE6; }
.agenda-item:last-child { border-bottom: 0; }
.agenda-time { color: #43686E; font-size: 11px; font-weight: 650; }
.agenda-content { display: grid; gap: 3px; }
.agenda-content strong { font-size: 11px; font-weight: 600; }
.agenda-content small { color: var(--muted); font-size: 10px; }
.member-stack { display: flex; align-items: center; }
.member-stack .avatar { width: 26px; height: 26px; margin-left: -6px; border: 2px solid var(--surface); }
.member-stack .avatar:first-child { margin-left: 0; }
.activity-list { display: grid; gap: 13px; }
.activity-item { display: grid; grid-template-columns: 29px 1fr; align-items: start; gap: 9px; }
.activity-item p { margin: 1px 0 0; color: #314F55; font-size: 11px; line-height: 1.45; }
.activity-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }

.client-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; margin: -4px 0 14px; }
.client-legend .status-badge { min-height: 21px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.project-card { padding: 17px; }
.project-card-top { display: flex; align-items: flex-start; gap: 12px; }
.project-card-copy { flex: 1; min-width: 0; }
.project-card-copy h3 { overflow: hidden; margin: 0; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.project-card-copy p { min-height: 33px; margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.project-card-actions { display: flex; gap: 4px; }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.project-next { color: #4D666A; font-size: 10px; }

.task-view { display: grid; gap: 0; }
.task-table-title { display: flex; align-items: center; gap: 9px; }
.task-schedule { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.task-actions { display: flex; align-items: center; gap: 9px; }
.task-delete-action { color: #8D3430; }
.task-board { display: grid; grid-template-columns: repeat(4, minmax(220px,1fr)); gap: 11px; overflow-x: auto; padding-bottom: 9px; }
.kanban-column { min-height: 240px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #F6F5EF; }
.kanban-column.drag-over { border-color: var(--primary); background: var(--mist); }
.kanban-head { display: flex; justify-content: space-between; gap: 7px; align-items: center; padding: 3px 3px 11px; }
.kanban-head strong { font-size: 11px; }
.kanban-head span { color: var(--muted); font-size: 10px; }
.kanban-cards { display: grid; gap: 8px; min-height: 160px; }
.kanban-card { padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); cursor: grab; }
.kanban-card:active { cursor: grabbing; }
.kanban-card h3 { margin: 0; font-size: 12px; line-height: 1.4; }
.kanban-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.kanban-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid #EBECE6; color: var(--muted); font-size: 10px; }
.kanban-card-timer { display: flex; justify-content: flex-end; margin-top: 5px; }
.team-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.member-card { padding: 18px; }
.member-card-head { display: flex; align-items: center; gap: 11px; }
.member-card-head .avatar { width: 42px; height: 42px; font-size: 12px; }
.member-card-head h3 { font-size: 14px; }
.member-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.availability { display: flex; align-items: center; gap: 6px; margin-top: 15px; color: #3F6553; font-size: 11px; }
.availability::before { width: 7px; height: 7px; content: ""; border-radius: 50%; background: var(--green); }
.availability.busy { color: #75511D; }
.availability.busy::before { background: var(--sun); }
.member-stats { display: flex; gap: 18px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); color: #476167; font-size: 10px; }
.member-stats strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 14px; }

.calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.calendar-period { display: flex; align-items: center; gap: 9px; }
.calendar-period h2 { min-width: 185px; text-align: center; font-size: 17px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.calendar-weekday { padding: 9px 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #607579; text-align: center; font-size: 10px; font-weight: 650; }
.calendar-cell { min-height: 95px; padding: 6px; border-right: 1px solid #ECEDE7; border-bottom: 1px solid #ECEDE7; background: var(--surface); }
.calendar-cell:nth-child(7n) { border-right: 0; }
.calendar-cell.outside { background: #F8F7F1; }
.calendar-cell.today { background: #F0F9F7; }
.calendar-day-num { display: inline-grid; place-items: center; width: 25px; height: 25px; color: #526A70; font-size: 10px; }
.calendar-cell.today .calendar-day-num { color: white; border-radius: 50%; background: var(--deep); }
.calendar-event { display: block; overflow: hidden; margin: 3px 0 0; padding: 3px 5px; border: 0; border-radius: 3px; color: #064E60; background: #DDF2F2; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; font-size: 9px; }
.calendar-event.deadline { color: #784522; background: #FBEBDD; }
.calendar-event.task-event { color: #2D6048; background: #E6F2E9; }
.week-view, .day-view { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.week-view { display: grid; grid-template-columns: repeat(7,minmax(132px,1fr)); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.week-day { display: grid; grid-template-columns: 95px 1fr; min-height: 74px; border-bottom: 1px solid var(--line); }
.week-day:last-child { border-bottom: 0; }
.week-day-label { padding: 13px; color: #536B70; font-size: 11px; }
.week-day-events { display: flex; flex-wrap: wrap; align-content: start; gap: 7px; padding: 9px 12px; }
.week-view .week-day { display: flex; flex-direction: column; min-height: 300px; border-right: 1px solid var(--line); border-bottom: 0; }
.week-view .week-day:last-child { border-right: 0; }
.week-view .week-day.today { background: #F7FBF8; }
.week-view .week-day-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 10px 11px; border-bottom: 1px solid var(--line); background: #FAFAF6; font-size: 10px; text-transform: capitalize; }
.week-view .week-day-label strong { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink); font-size: 12px; }
.week-view .week-day.today .week-day-label { color: var(--deep); background: #F0F9F7; }
.week-view .week-day.today .week-day-label strong { color: #fff; background: var(--deep); }
.week-view .week-day-events { display: flex; flex-direction: column; flex-wrap: nowrap; align-content: stretch; gap: 7px; padding: 8px; }
.event-block { min-width: 180px; max-width: 280px; padding: 9px 11px; border: 1px solid #CBE3DF; border-radius: 6px; background: #F1FAF7; cursor: pointer; }
.event-block strong { display: block; font-size: 11px; }
.event-block small { color: var(--muted); font-size: 10px; }
.event-block.task-event-block { border-color: #C9DFC9; background: #F4F9F1; }
.week-view .event-block { width: 100%; min-width: 0; max-width: none; padding: 8px; text-align: left; }
.week-view .event-block strong { line-height: 1.35; }
.week-view .event-block small { display: block; margin-top: 4px; line-height: 1.4; }
.week-view .week-day-events > .muted { padding: 5px 2px; }
.day-view .week-day { min-height: 100px; }

/* Google Calendar-inspired weekly agenda */
.week-agenda { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.week-agenda-head, .week-all-day-row, .week-agenda-body { display: grid; grid-template-columns: 62px repeat(7, minmax(118px, 1fr)); min-width: 890px; }
.week-agenda-head { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: #FBFCFA; }
.week-time-gutter { padding: 11px 8px 8px 0; color: #718083; text-align: right; font-size: 9px; }
.week-agenda-head-cell { min-height: 66px; padding: 10px 8px 8px; border-left: 1px solid var(--line); color: #52656A; text-align: center; }
.week-agenda-head-cell span { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 9px; font-weight: 700; }
.week-agenda-head-cell strong { display: grid; place-items: center; width: 35px; height: 35px; margin: 6px auto 0; border-radius: 50%; color: var(--ink); font-size: 18px; font-weight: 500; }
.week-agenda-head-cell.today { color: var(--deep); }
.week-agenda-head-cell.today strong { color: #fff; background: var(--deep); }
.week-all-day-row { position: sticky; top: 67px; z-index: 4; min-height: 42px; border-bottom: 1px solid var(--line); background: #FEFFFC; }
.week-all-day-cell { min-width: 0; padding: 5px 6px; border-left: 1px solid var(--line); }
.week-all-day-event { display: block; width: 100%; overflow: hidden; margin: 0 0 3px; padding: 4px 6px; border: 0; border-radius: 4px; color: #1E626E; background: #DDF2F2; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; font-size: 9px; }
.week-all-day-event.task-event-block { color: #2D6048; background: #E6F2E9; }
.week-agenda-scroll { overflow: auto; max-height: 600px; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
.week-agenda-body { align-items: stretch; }
.week-agenda-time-column { position: relative; height: 1088px; background: #FEFFFC; }
.week-hour-label { position: absolute; right: 8px; color: #718083; white-space: nowrap; font-size: 9px; }
.week-agenda-day-col { position: relative; height: 1088px; border-left: 1px solid var(--line); background: #fff; }
.week-agenda-day-col:last-child { border-right: 0; }
.week-hour-line { position: absolute; right: 0; left: 0; height: 1px; border-top: 1px solid #E4E8E6; pointer-events: none; }
.week-timed-event { position: absolute; right: 4px; left: 4px; z-index: 2; overflow: hidden; padding: 6px 7px; border: 1px solid #79BDB8; border-radius: 5px; color: #0E4F5C; background: #DDF2F2; text-align: left; cursor: pointer; box-shadow: 0 1px 1px rgba(17, 54, 56, .06); }
.week-timed-event strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 700; line-height: 1.3; }
.week-timed-event small { display: block; overflow: hidden; margin-top: 3px; color: inherit; font-size: 9px; line-height: 1.25; opacity: .88; text-overflow: ellipsis; white-space: nowrap; }
.week-timed-event.task-event-block { border-color: #9BC4A3; color: #2D6048; background: #E6F2E9; }
.week-timed-event:hover, .week-all-day-event:hover { filter: brightness(.98); box-shadow: 0 2px 5px rgba(17, 54, 56, .12); }
.meeting-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; border-color: #D4E4DD; background: #F7FAF6; }
.meeting-intro > div { max-width: 620px; }
.meeting-kicker { display: block; margin-bottom: 8px; color: var(--deep); font-size: 9px; font-weight: 750; letter-spacing: .13em; }
.meeting-intro h2 { font-size: 19px; }
.meeting-intro p { max-width: 560px; margin: 7px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.meeting-intro .button svg, .form-actions .button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meeting-disclosure { margin: 12px 2px 24px; color: #607579; font-size: 10px; line-height: 1.6; }
.meeting-setup-disclosure { padding: 11px 13px; margin: 7px 0 3px; border: 1px solid #E7E0C9; border-radius: 6px; color: #665E4D; background: #FBF8EF; }
.meeting-setup-disclosure strong { color: #4C473A; }
.meeting-mode-field { padding: 0; border: 0; margin: 0; }
.meeting-mode-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 7px; }
.meeting-mode-option { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #FFFEFB; cursor: pointer; }
.meeting-mode-option:has(input:checked) { border-color: #7BAEA9; background: #F0F8F5; box-shadow: inset 0 0 0 1px #7BAEA9; }
.meeting-mode-option input { flex: 0 0 auto; width: 16px; min-height: 16px; accent-color: var(--primary); }
.meeting-mode-option > span:last-child { display: grid; gap: 3px; }
.meeting-mode-option strong { color: var(--ink); font-size: 11px; }
.meeting-mode-option small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.meeting-mode-icon { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: var(--deep); background: var(--mist); }
.meeting-mode-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.meeting-history { margin-top: 23px; }
.meeting-list { display: grid; gap: 11px; }
.meeting-card { padding: 16px 18px; }
.meeting-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.meeting-card-header h3 { margin-top: 6px; font-size: 14px; }
.meeting-card-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.meeting-mode { display: inline-flex; align-items: center; gap: 5px; color: var(--deep); font-size: 9px; font-weight: 650; }
.meeting-mode svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meeting-author { padding: 5px 8px; border-radius: 20px; color: #4F686E; background: #F0F3EF; font-size: 9px; }
.meeting-participants { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.meeting-participants strong { color: var(--ink-soft); font-weight: 650; }
.meeting-transcript-details { margin-top: 12px; padding-top: 10px; border-top: 1px solid #ECEDE7; }
.meeting-transcript-details summary { color: #066982; cursor: pointer; font-size: 10px; font-weight: 650; }
.meeting-transcript-details p { margin: 10px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.meeting-audio { display: block; width: min(100%, 420px); height: 36px; margin-top: 12px; }
.meeting-download { margin-top: 8px; }
.meeting-recorder { padding: 20px; border-color: #E2C6C0; }
.meeting-recorder-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.meeting-recorder-header h2 { margin-top: 8px; font-size: 18px; }
.meeting-recorder-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.recording-live { display: inline-flex; align-items: center; gap: 7px; color: #963B35; font-size: 10px; font-weight: 700; }
.recording-live i { width: 8px; height: 8px; border-radius: 50%; background: #C64F46; box-shadow: 0 0 0 3px rgba(198,79,70,.13); animation: recording-pulse 1.4s ease-in-out infinite; }
@keyframes recording-pulse { 50% { opacity: .45; transform: scale(.84); } }
.meeting-timer { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 650; letter-spacing: .02em; }
.meeting-transcript-box { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #FCFBF7; }
.meeting-transcript-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink); font-size: 10px; font-weight: 700; }
.meeting-transcript-label span { color: var(--muted); font-size: 9px; font-weight: 500; }
.meeting-transcript-live { min-height: 110px; max-height: 30vh; margin-top: 11px; overflow: auto; color: var(--ink-soft); font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.meeting-transcript-interim { min-height: 15px; color: var(--muted); font-size: 11px; font-style: italic; }
.meeting-recorder-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 13px; }
.meeting-dock { position: sticky; z-index: 5; top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; margin: 0 0 15px; border: 1px solid #E2C6C0; border-radius: 7px; background: #FFF9F7; box-shadow: 0 3px 12px rgba(44,38,28,.06); }
.meeting-dock .button { min-height: 36px; }
.document-list, .notification-list { display: grid; }
.document-row { display: grid; grid-template-columns: 38px minmax(0,1.5fr) minmax(90px,.6fr) minmax(90px,.6fr) auto; align-items: center; gap: 12px; padding: 13px 15px; border-bottom: 1px solid #EBECE6; }
.document-row:last-child { border-bottom: 0; }
.file-glyph { display: grid; place-items: center; width: 34px; height: 38px; border: 1px solid #C7DCD7; border-radius: 5px; color: var(--deep); background: #F1F8F5; font-size: 9px; font-weight: 700; }
.document-info { display: grid; gap: 2px; min-width: 0; }
.document-info strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.document-info small, .document-meta { color: var(--muted); font-size: 10px; }
.notification-row { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 15px 16px; border-bottom: 1px solid #EBECE6; }
.notification-row:last-child { border-bottom: 0; }
.notification-row.unread { background: #F4FAF8; }
.notification-row .unread-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--primary); }
.notification-copy strong { font-size: 12px; }
.notification-copy p { margin: 3px 0; color: #536B70; font-size: 11px; }
.notification-copy time { color: var(--muted); font-size: 9px; }
.settings-layout { display: grid; grid-template-columns: 195px minmax(0,1fr); gap: 18px; align-items: start; }
.settings-nav { display: grid; gap: 3px; }
.settings-nav button { min-height: 38px; padding: 7px 10px; border: 0; border-radius: 5px; color: #4F686E; background: transparent; text-align: left; cursor: pointer; font-size: 12px; }
.settings-nav button.active { color: var(--deep); background: #E7F4F3; font-weight: 650; }
.settings-panel { padding: 18px; }
.settings-panel + .settings-panel { margin-top: 13px; }
.settings-panel p { color: var(--muted); font-size: 11px; }
.settings-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row strong { display: block; font-size: 12px; }
.settings-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.toggle { position: relative; width: 42px; height: 24px; border: 0; border-radius: 20px; background: #AAB8B4; cursor: pointer; }
.toggle::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; content: ""; border-radius: 50%; background: white; transition: transform 160ms ease; }
.toggle[aria-checked="true"] { background: var(--primary); }
.toggle[aria-checked="true"]::after { transform: translateX(18px); }
.detail-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 17px; border-bottom: 1px solid var(--line); }
.detail-tab { flex: 0 0 auto; min-height: 40px; padding: 0 11px; border: 0; border-bottom: 2px solid transparent; color: #587075; background: transparent; cursor: pointer; font-size: 11px; }
.detail-tab[aria-selected="true"] { color: var(--deep); border-bottom-color: var(--primary); font-weight: 650; }
.detail-summary { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(220px,.7fr); gap: 15px; }
.detail-summary > * { padding: 17px; }
.profile-detail { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 18px; }
.profile-hero { padding: 20px; text-align: center; }
.profile-hero .avatar { width: 74px; height: 74px; margin: 0 auto 10px; font-size: 18px; }
.profile-hero h2 { font-size: 17px; }
.profile-hero p { color: var(--muted); font-size: 11px; }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, .85fr) minmax(420px, 1.15fr); background: var(--surface); }
.login-panel { display: flex; flex-direction: column; justify-content: center; width: min(100%, 510px); padding: clamp(28px,6vw,72px); margin: 0 auto; }
.login-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 55px; color: var(--deep); font-size: 19px; font-weight: 700; }
.login-logo { width: 35px; height: 35px; object-fit: cover; object-position: 50% 29%; border-radius: 50%; background: #fff; }
.login-kicker { margin: 0 0 8px; color: #527076; font-size: 11px; }
.login-panel h1 { margin: 0; font-size: clamp(26px,3vw,34px); font-weight: 650; letter-spacing: -.8px; }
.login-copy { max-width: 42ch; margin: 11px 0 21px; color: #526A70; font-size: 13px; }
.login-members { display: grid; gap: 8px; }
.login-access-field { margin-bottom: 5px; }
.password-login-form { display: grid; gap: 13px; }
.password-login-form .button { width: 100%; margin-top: 4px; }
.login-helper { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.signup-link { justify-self: center; padding: 6px 10px; color: var(--primary); }
.login-member { display: flex; align-items: center; width: 100%; min-height: 60px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #FFFEFB; text-align: left; cursor: pointer; }
.login-member:hover { border-color: #98C7C8; background: #F6FBF8; }
.login-member strong { display: block; font-size: 12px; }
.login-member small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.login-member .avatar { margin-right: 10px; }
.login-member > span:last-child { margin-left: auto; color: var(--primary); }
.login-note { margin-top: 20px; color: #64777B; font-size: 10px; }
.login-aside { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 50px; color: #F6FCF9; background: var(--deep); }
.login-quote { max-width: 440px; }
.login-quote .quote-mark { color: #F2C94C; font-size: 60px; line-height: .7; }
.login-quote p { margin: 20px 0; font-size: clamp(28px,3.7vw,48px); font-weight: 550; letter-spacing: -1px; line-height: 1.15; }
.login-quote > span:last-child { color: #C7DFE1; font-size: 11px; }
.login-aside-mark { position: absolute; right: 32px; bottom: 10px; color: rgba(255,255,255,.07); font-size: 180px; font-weight: 700; letter-spacing: -18px; }

.drawer-scrim { position: fixed; z-index: 9; inset: 0; background: rgba(9,35,40,.42); }
.error-panel { padding: 14px; border: 1px solid #E7C1BA; border-radius: 7px; color: #762D28; background: #FFF4F1; }
.success-panel { padding: 14px; border: 1px solid #BDD8C8; border-radius: 7px; color: #285D43; background: #F0F8F3; }
.color-options { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.color-option input { position: absolute; opacity: 0; pointer-events: none; }
.color-option label { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid transparent; border-radius: 50%; cursor: pointer; }
.color-option input:checked + label { outline: 2px solid var(--deep); outline-offset: 2px; }
.color-option input:focus-visible + label { box-shadow: var(--focus); }
.color-option i { width: 23px; height: 23px; border: 1px solid rgba(0,0,0,.12); border-radius: 50%; }
.color-option-custom { position: relative; display: flex; align-items: center; }
.custom-color-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.color-picker-control { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); cursor: pointer; }
.custom-color-radio:checked + .color-picker-control { border-color: var(--deep); outline: 2px solid var(--deep); outline-offset: 2px; }
.custom-color-radio:focus-visible + .color-picker-control { box-shadow: var(--focus); }
.color-picker-control:has(.color-wheel-input:focus-visible) { box-shadow: var(--focus); }
.custom-color-wheel-icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid rgba(0,0,0,.16); border-radius: 50%; background: conic-gradient(#F44336, #FFC107, #4CAF50, #00BCD4, #3F51B5, #9C27B0, #F44336); }
.color-picker-control > span { font-size: 11px; font-weight: 600; }
.color-wheel-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; clip-path: inset(50%); pointer-events: none; }
.search-results { position: absolute; z-index: 12; top: calc(100% + 7px); left: 0; right: 0; max-height: min(65vh, 460px); overflow: auto; padding: 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.global-search { position: relative; }
.search-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px; border-radius: 5px; }
.search-result:hover, .search-result:focus-visible { background: var(--mist); }
.search-result span { display: grid; min-width: 0; }
.search-result strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.search-result small, .search-empty { color: var(--muted); font-size: 10px; }
.search-empty { padding: 5px 8px; }
.search-result svg { width: 15px; height: 15px; stroke: var(--primary); }
.quick-create-grid { display: grid; gap: 7px; }
.quick-create-item { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #FFFEFB; text-align: left; cursor: pointer; }
.quick-create-item:hover { border-color: #A8C9C8; background: #F3FAF7; }
.quick-create-item > span:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.quick-create-item strong { font-size: 12px; }
.quick-create-item small { color: var(--muted); font-size: 10px; }
.quick-create-item > svg { width: 16px; height: 16px; stroke: var(--primary); }
.quick-create-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: var(--deep); background: var(--mist); }
.quick-create-icon svg { width: 18px; height: 18px; }
.comment-list { display: grid; gap: 13px; max-height: 38vh; overflow: auto; }
.comment-form textarea { width: 100%; min-height: 75px; padding: 9px; border: 1px solid #CBD6D2; border-radius: 5px; background: #FFFEFB; }
.task-detail-body { display: grid; gap: 15px; }
.task-detail-body h3 { margin: 0 0 8px; }
.task-detail-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.checklist-items, .attachment-list { display: grid; gap: 7px; }
.checklist-item { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; background: #FCFBF7; font-size: 11px; }
.checklist-item input { width: 17px; height: 17px; accent-color: var(--green); }
.checklist-item .is-complete { color: var(--muted); text-decoration: line-through; }
.attachment-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; }
.client-marker { vertical-align: 1px; }
.quick-create-item .avatar { margin-right: 0; }
.compact-density .data-table td { padding-top: 7px; padding-bottom: 7px; }
.compact-density .task-row { padding-top: 7px; padding-bottom: 7px; }

@media (max-width: 1120px) {
  :root { --sidebar-width: 226px; }
  .home-grid { grid-template-columns: minmax(0,1.25fr) minmax(240px,.85fr); }
  .team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .document-row { grid-template-columns: 38px minmax(0,1fr) 95px auto; }
  .document-row .document-category { display: none; }
}
@media (max-width: 820px) {
  :root { --sidebar-width: 252px; --topbar-height: 62px; }
  .sidebar { transform: translateX(-102%); transition: transform 200ms ease; box-shadow: 4px 0 18px rgba(12,43,48,.12); }
  .sidebar.open { transform: translateX(0); }
  .main-column { margin-left: 0; }
  .mobile-menu, .close-menu { display: inline-grid; }
  .topbar { padding: 0 18px; }
  .page-content { padding: 24px 18px 34px; }
  .app-footer { padding: 9px 18px 13px; }
  .home-grid { grid-template-columns: minmax(0,1fr); }
  .home-side-stack { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .global-search { width: min(230px,32vw); }
  .global-search kbd { display: none; }
  .login-screen { grid-template-columns: minmax(0,1fr) minmax(300px,.8fr); }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .topbar { gap: 6px; padding: 0 12px; }
  .breadcrumbs { gap: 5px; }
  .breadcrumbs > span:first-child, .crumb-divider { display: none; }
  .topbar-actions { gap: 5px; }
  .meeting-intro, .meeting-recorder-header, .meeting-recorder-footer, .meeting-dock { align-items: flex-start; flex-direction: column; }
  .meeting-mode-options { grid-template-columns: minmax(0,1fr); }
  .meeting-card-header { flex-direction: column; }
  .meeting-recorder-footer .button, .meeting-intro .button { width: 100%; }
  .global-search { width: clamp(105px, 33vw, 180px); height: 37px; }
  .global-search input { font-size: 11px; }
  .top-create { min-height: 44px; padding: 0 9px; font-size: 11px; }
  .notification-button { flex-basis: 44px; width: 44px; height: 44px; }
  .page-content { padding: 22px 14px 30px; }
  .app-footer { padding-inline: 14px; }
  .page-heading, .home-welcome { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 19px; }
  .page-heading h1, .home-welcome h1 { font-size: 25px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .home-top-stats { gap: 7px; }
  .stat-block { padding: 11px 9px; }
  .stat-value { font-size: 19px; }
  .stat-label { min-height: 30px; font-size: 10px; }
  .home-side-stack { grid-template-columns: minmax(0,1fr); }
  .dashboard-section { padding: 14px; }
  .task-row { grid-template-columns: minmax(0,1fr); gap: 5px; }
  .task-row-meta { padding-left: 29px; }
  .task-row-meta { flex-wrap: wrap; }
  .project-grid, .team-grid { grid-template-columns: minmax(0,1fr); }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .form-grid .span-all { grid-column: auto; }
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tbody { display: grid; gap: 8px; }
  .data-table tr { padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
  .data-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 2px !important; border-bottom: 1px solid #EBECE6; }
  .data-table td:last-child { border-bottom: 0; }
  .data-table td::before { flex: 0 0 90px; content: attr(data-label); color: #607579; font-size: 10px; }
  .data-table td:first-child::before { content: "Élément"; }
  .data-table td:first-child { justify-content: flex-start; }
  .data-table td:first-child::before { flex-basis: 78px; }
  .toolbar { align-items: stretch; }
  .toolbar .control, .toolbar input.control { flex: 1 1 125px; width: auto; min-width: 0; }
  .toolbar .segmented { flex: 1 1 100%; width: fit-content; }
  .toolbar .segmented button { flex: 1; }
  .calendar-toolbar { align-items: flex-start; }
  .calendar-period { flex: 1; justify-content: space-between; }
  .calendar-period h2 { min-width: 0; font-size: 14px; }
  .calendar-grid { grid-template-columns: repeat(7,minmax(34px,1fr)); overflow-x: auto; }
  .calendar-cell { min-width: 34px; min-height: 70px; padding: 3px; }
  .calendar-event { max-width: 100%; padding: 2px; font-size: 8px; }
  .calendar-weekday { font-size: 9px; }
  .day-view .week-day { grid-template-columns: 63px 1fr; }
  .day-view .week-day-label { padding: 10px 7px; font-size: 10px; }
  .document-row { grid-template-columns: 35px minmax(0,1fr) auto; gap: 8px; padding: 12px 10px; }
  .document-row .document-meta { display: none; }
  .settings-layout { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .settings-nav { display: flex; overflow-x: auto; }
  .settings-nav button { flex: 0 0 auto; }
  .detail-summary, .profile-detail { grid-template-columns: minmax(0,1fr); }
  .profile-hero { text-align: left; }
  .profile-hero .avatar { margin: 0 0 8px; }
  .login-screen { display: block; }
  .login-panel { min-height: 100vh; padding: 28px 22px; }
  .login-aside { display: none; }
  .login-brand { margin-bottom: 42px; }
  .dialog-head { padding: 15px 16px 12px; }
  .dialog-body { padding: 15px 16px 18px; }
  .app-dialog { width: calc(100vw - 20px); }
}
@media (max-width: 380px) {
  .breadcrumbs { display: none; }
  .top-create { width: 42px; padding: 0; font-size: 0; }
  .top-create span { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
