@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* Resolve each face by its actual PostScript name in the macOS font collection. */
@font-face {
  font-family: 'PURE Thai';
  src: local('SukhumvitSet-Thin'), local('Sukhumvit Set Thin');
  font-style: normal;
  font-weight: 100;
  unicode-range: U+0E00-0E7F;
}
@font-face {
  font-family: 'PURE Thai';
  src: local('SukhumvitSet-Light'), local('Sukhumvit Set Light');
  font-style: normal;
  font-weight: 300;
  unicode-range: U+0E00-0E7F;
}
@font-face {
  font-family: 'PURE Thai';
  src: local('SukhumvitSet-Text'), local('Sukhumvit Set Text');
  font-style: normal;
  font-weight: 400;
  unicode-range: U+0E00-0E7F;
}
@font-face {
  font-family: 'PURE Thai';
  src: local('SukhumvitSet-Medium'), local('Sukhumvit Set Medium');
  font-style: normal;
  font-weight: 500;
  unicode-range: U+0E00-0E7F;
}
@font-face {
  font-family: 'PURE Thai';
  src: local('SukhumvitSet-SemiBold'), local('Sukhumvit Set Semi Bold');
  font-style: normal;
  font-weight: 600;
  unicode-range: U+0E00-0E7F;
}
@font-face {
  font-family: 'PURE Thai';
  src: local('SukhumvitSet-Bold'), local('Sukhumvit Set Bold');
  font-style: normal;
  font-weight: 700;
  unicode-range: U+0E00-0E7F;
}

:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #7c8086;
  --soft-muted: #a5a8ae;
  --line: #e5e7ea;
  --canvas: #f5f6f7;
  --paper: #ffffff;
  --green: #42454a;
  --green-2: #777b82;
  --green-soft: #eff0f2;
  --orange: #858990;
  --orange-soft: #f0f1f3;
  --red: #858990;
  --red-soft: #f0f1f3;
  --blue: #858990;
  --blue-soft: #f0f1f3;
  --shadow: 0 12px 36px rgba(0, 0, 0, .055);
  --radius: 16px;
  font-family: 'PURE Thai', 'DM Sans', 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; }
button, input, select, option, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(82, 114, 94, .22); outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: 250px; background: #fff; border-right: 1px solid var(--line); padding: 28px 16px 17px; display: flex; flex-direction: column; }
.brand { height: 34px; display: flex; align-items: center; margin: 0 9px 28px; text-decoration: none; color: var(--ink); }
.brand-name { font: 800 25px/1 'Manrope', sans-serif; letter-spacing: -1.8px; white-space: nowrap; }
.brand-dot { color: #96b6fd; }
.workspace-switcher { height: 57px; margin: 0 1px 29px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; padding: 8px; gap: 9px; background: #fcfdfb; }
.crumb-mark { background: #dbe7d8; color: #48634d; display: grid; place-items: center; border-radius: 9px; width: 34px; height: 34px; font: 700 13px 'PURE Thai', 'Manrope', sans-serif; }
.workspace-copy, .profile-copy { min-width: 0; display: grid; gap: 3px; flex: 1; }
.workspace-copy strong, .profile-copy strong { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-copy small, .profile-copy small { color: var(--muted); font-size: 10px; }
.switch-chevron { color: var(--muted); font-size: 18px; padding: 0 4px; transform: translateY(-3px); }
.nav-label { color: #a4ada6; font: 700 9px 'PURE Thai', 'Manrope', sans-serif; letter-spacing: 1.1px; margin: 0 10px 9px; }
.primary-nav { display: grid; gap: 4px; }
.nav-item.mobile-more-trigger, .mobile-more-menu { display: none; }
.nav-item { border: 0; width: 100%; height: 42px; padding: 0 10px; display: flex; align-items: center; gap: 12px; border-radius: 9px; background: transparent; cursor: pointer; color: #707a73; text-align: left; transition: .18s ease; }
.nav-item:hover { color: var(--green); background: #f6f8f5; }
.nav-item.active { color: #385947; background: #edf3ec; font-weight: 600; }
.nav-icon, [data-icon] { width: 17px; height: 17px; display: inline-grid; place-items: center; flex: 0 0 auto; }
.nav-icon svg, [data-icon] svg { width: 17px; height: 17px; display: block; stroke: currentColor; }
.nav-count { margin-left: auto; min-width: 21px; height: 20px; display: grid; place-items: center; font-size: 10px; background: rgba(255,255,255,.8); color: #78837b; border-radius: 7px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-tip { border-radius: 12px; background: #f7f8f4; padding: 13px 11px; display: flex; gap: 9px; margin: 0 1px 15px; }
.tip-spark { color: #91a982; font-size: 15px; padding-top: 1px; }
.sidebar-tip strong { display: block; font-size: 11px; font-weight: 700; }
.sidebar-tip p { color: var(--muted); font-size: 10px; margin: 5px 0 0; line-height: 1.45; }
.profile-row { border: 0; background: transparent; border-top: 1px solid var(--line); width: 100%; display: flex; align-items: center; gap: 9px; text-align: left; padding: 16px 6px 1px; cursor: pointer; }
.profile-row:hover .more-dots, .profile-row[aria-expanded="true"] .more-dots { color: #96b6fd; }
.topbar-profile { display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.avatar { border-radius: 50%; width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; font: 700 10px 'PURE Thai', 'Manrope', sans-serif; letter-spacing: -.2px; }
.avatar-sage { background: #dce7db; color: #45604b; }
.avatar-top { width: 32px; height: 32px; }
.more-dots { margin-left: auto; color: var(--muted); font-size: 20px; letter-spacing: 1px; }
.account-menu { position: fixed; z-index: 40; left: 16px; bottom: 70px; width: min(256px, calc(100vw - 32px)); padding: 7px; border: 1px solid #e2e4e8; border-radius: 15px; background: rgba(255,255,255,.97); box-shadow: 0 18px 48px rgba(20,22,26,.18); color: #292c31; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.account-menu[hidden] { display: none; }
.account-menu[data-anchor="top"] { left: auto; right: 18px; top: 62px; bottom: auto; }
.account-menu-heading { display: grid; gap: 3px; padding: 10px 10px 12px; border-bottom: 1px solid #e7e9ec; margin-bottom: 5px; }
.account-menu-heading strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-menu-heading small { color: #83878e; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.account-menu > button, .account-menu > a { display: block; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: inherit; text-decoration: none; text-align: left; font-size: 12px; font-weight: 600; cursor: pointer; }
.account-menu > button:hover, .account-menu > a:hover { background: #eff0f2; }
.account-menu > .account-menu-primary { background: #34373c; color: #fff; }
.account-menu > .account-menu-primary:hover { background: #25272b; }
.account-menu-note { margin: 8px 10px 5px; color: #83878e; font-size: 10px; line-height: 1.5; }
body.dark .account-menu { background: rgba(30,32,36,.96); border-color: rgba(255,255,255,.14); color: #f0f1f3; box-shadow: 0 20px 56px rgba(0,0,0,.42); }
body.dark .account-menu-heading { border-color: rgba(255,255,255,.1); }
body.dark .account-menu-heading small, body.dark .account-menu-note { color: #aaafb6; }
body.dark .account-menu > button:hover, body.dark .account-menu > a:hover { background: rgba(255,255,255,.09); }
body.dark .account-menu > .account-menu-primary { background: #e7e8eb; color: #222428; }
body.dark .account-menu > .account-menu-primary:hover { background: #fff; }
@media (max-width: 900px) { .account-menu[data-anchor="sidebar"] { left: 78px; bottom: 14px; } }
@media (max-width: 650px) { .account-menu { left: auto; right: 12px; top: 64px; bottom: auto; } }
.settings-nav { margin-top: 10px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 8px; height: 50px; }
.main-area { margin-left: 250px; min-height: 100vh; }
.topbar { height: 69px; position: sticky; z-index: 5; top: 0; border-bottom: 1px solid rgba(230, 235, 229, .9); background: rgba(250,251,248,.93); backdrop-filter: blur(12px); padding: 0 42px; display: flex; align-items: center; justify-content: space-between; }
.crumb { display: flex; align-items: center; gap: 10px; color: #7e8781; font-size: 12px; }
.crumb-mark { width: 22px; height: 22px; font-size: 9px; border-radius: 7px; }
.crumb-sep { color: #c3c9c4; }
.crumb strong { color: #333d37; font-weight: 600; }
#crumb-current { font-size: 10px; letter-spacing: .35px; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.search-box { width: 224px; height: 34px; padding: 0 9px; background: #fff; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 8px; color: #8e9890; }
.search-box input { border: 0; background: transparent; min-width: 0; flex: 1; outline: 0; font-size: 11px; color: var(--ink); }
.search-box input::placeholder { color: #a0a8a2; }
.search-box kbd { font: 9px 'PURE Thai', 'DM Sans', sans-serif; border: 1px solid #e8ece8; color: #98a099; border-radius: 4px; padding: 2px 4px; white-space: nowrap; }
.search-icon svg { width: 14px; height: 14px; }
.icon-button { border: 0; padding: 2px; background: transparent; width: 24px; height: 26px; color: #77837b; position: relative; cursor: pointer; }
.icon-button svg { width: 17px; height: 17px; }
.notification-dot { position: absolute; width: 5px; height: 5px; background: #d18c62; border: 1px solid #fafbf8; border-radius: 50%; right: 0; top: 1px; }
.page-content { padding: 32px 42px 50px; max-width: 1550px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.page-heading h1 { font-size: 23px; letter-spacing: .35px; line-height: 1.2; text-transform: uppercase; }
.eyebrow { color: #849087; font: 700 9px 'PURE Thai', 'Manrope', sans-serif; letter-spacing: 1.15px; text-transform: uppercase; margin: 0 0 8px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 700 27px/1.22 'PURE Thai', 'Manrope', sans-serif; letter-spacing: -.8px; margin: 0; color: #27322b; }
.heading-subtitle { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.heading-actions { display: flex; gap: 9px; align-items: center; }
.button { border-radius: 9px; height: 36px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; cursor: pointer; font-size: 11px; font-weight: 600; transition: .18s ease; white-space: nowrap; }
.button svg { width: 14px; height: 14px; }
.button-primary { background: var(--green); color: #fff; box-shadow: 0 2px 5px rgba(45, 75, 55, .13); }
.button-primary:hover { background: #2f4c3a; transform: translateY(-1px); }
.button-secondary { border-color: #e4e9e3; background: #fff; color: #536057; }
.button-secondary:hover { background: #f9fbf8; border-color: #d4ddd4; }
.button-quiet { background: transparent; color: #718077; padding: 0 8px; }
.button-quiet:hover { background: #f1f4f0; }
.button-small { height: 30px; padding: 0 10px; font-size: 10px; }
.plus { font-size: 16px; line-height: 10px; font-weight: 400; margin-top: -2px; }
.dashboard-hero { background: #e8efe6; border-radius: 17px; min-height: 190px; display: grid; grid-template-columns: 1fr 270px; align-items: center; padding: 25px 29px; overflow: hidden; position: relative; margin-bottom: 20px; }
.dashboard-hero::after { content: ''; position: absolute; width: 265px; height: 265px; border: 1px solid rgba(92,124,97,.12); border-radius: 50%; right: 138px; top: -126px; box-shadow: 0 0 0 28px rgba(255,255,255,.09), 0 0 0 57px rgba(255,255,255,.08); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero-kicker { color: #687c6b; font: 700 9px 'PURE Thai', 'Manrope', sans-serif; letter-spacing: 1.1px; text-transform: uppercase; margin-bottom: 10px; }
.hero-copy h1 { font-size: 27px; max-width: 460px; }
.hero-copy p { color: #77877a; font-size: 12px; margin: 9px 0 17px; }
.hero-actions { display: flex; gap: 8px; }
.hero-actions .button-secondary { background: rgba(255,255,255,.66); border-color: rgba(255,255,255,.75); }
.hero-stats { z-index: 1; display: flex; align-items: center; justify-content: center; gap: 22px; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font: 700 25px 'PURE Thai', 'Manrope', sans-serif; letter-spacing: -1px; color: #3e5a44; }
.hero-stat span { color: #748578; display: block; font-size: 10px; margin-top: 4px; }
.hero-divider { width: 1px; height: 42px; background: rgba(87,115,91,.2); }
.summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin-bottom: 21px; }
.summary-card { border: 1px solid var(--line); background: #fff; padding: 14px 15px 13px; min-height: 94px; border-radius: 13px; }
.summary-card-action { width: 100%; text-align: left; cursor: pointer; transition: border-color .18s ease, transform .18s ease; }
.summary-card-action:hover { border-color: #96b6fd; transform: translateY(-2px); }
.summary-card-action.has-overdue .summary-icon { color: #dc6863; background: rgba(220,104,99,.12); }
.summary-card-action .summary-foot { display: block; margin: 2px 0 0; line-height: 1.2; }
.summary-head { display: flex; justify-content: space-between; color: #87918a; font-size: 10px; align-items: center; }
.summary-icon { color: #8b9b89; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #f1f5ef; }
.summary-icon svg { width: 14px; height: 14px; }
.summary-value { font: 700 22px 'PURE Thai', 'Manrope', sans-serif; margin: 8px 0 0; letter-spacing: -.5px; }
.summary-foot { color: #9aa29c; font-size: 9px; margin-left: 5px; font-family: 'PURE Thai', 'DM Sans',sans-serif; font-weight: 400; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.43fr) minmax(280px,.87fr); gap: 18px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 13px; }
.panel-title { font: 700 13px 'PURE Thai', 'Manrope',sans-serif; color: #39443d; margin: 0; letter-spacing: -.15px; }
.panel-subtitle { font-size: 10px; color: #99a19b; margin: 4px 0 0; }
.panel-content { padding: 0 18px 15px; }
.text-link { background: transparent; color: #96b6fd; border: 0; font-size: 10px; font-weight: 600; cursor: pointer; padding: 4px; }
.text-link:hover { color: #96b6fd; }
.task-row { min-height: 52px; display: flex; align-items: center; gap: 10px; border-top: 1px solid #f0f2ef; }
.task-check { appearance: none; width: 16px; height: 16px; border: 1.4px solid #cbd4cb; border-radius: 50%; cursor: pointer; flex: 0 0 auto; position: relative; margin: 0; }
.task-check:hover { border-color: var(--green-2); }
.task-check:checked { background: var(--green-2); border-color: var(--green-2); }
.task-check:checked::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); }
.task-row-title { font-size: 11px; font-weight: 500; color: #49544d; flex: 1; min-width: 0; }
.task-row.done .task-row-title { color: #a4aca6; text-decoration: line-through; }
.task-project { font-size: 9px; color: #939c95; margin-top: 4px; white-space: nowrap; }
.task-row-meta { display: flex; align-items: center; gap: 9px; color: #939c95; font-size: 9px; white-space: nowrap; }
.priority-dot { width: 6px; height: 6px; border-radius: 50%; background: #9cab92; display: inline-block; vertical-align: 1px; margin-right: 4px; }
.priority-dot.high { background: #d4846d; }
.priority-dot.medium { background: #d6a260; }
.priority-dot.low { background: #94a990; }
.mini-avatar { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; font: 600 8px 'PURE Thai', 'Manrope',sans-serif; background: #edf1e9; color: #617260; }
.agenda-day { display: flex; gap: 11px; padding: 12px 0; border-top: 1px solid #f0f2ef; }
.agenda-time { width: 38px; text-align: right; color: #97a19a; font-size: 9px; flex: 0 0 auto; padding-top: 3px; }
.agenda-mark { width: 3px; border-radius: 3px; background: #b8c9b3; align-self: stretch; min-height: 29px; }
.agenda-mark.blue { background: #9eb4c6; }
.agenda-mark.orange { background: #e1b58e; }
.agenda-info strong { color: #96b6fd; font-size: 10px; display: block; font-weight: 600; }
.agenda-info small { color: #9aa39c; font-size: 9px; display: block; margin-top: 4px; }
.mini-calendar-strip { margin: 1px 0 12px; display: flex; justify-content: space-between; gap: 3px; }
.day-pill { display: grid; justify-items: center; gap: 6px; color: #99a29b; font-size: 9px; flex: 1; padding: 6px 0; }
.day-pill strong { display: grid; width: 26px; height: 26px; border-radius: 8px; place-items: center; font-size: 9px; font-weight: 500; color: #707b73; }
.day-pill.today { color: #96b6fd; font-weight: 700; }
.day-pill.today strong { background: #e8efe6; color: #96b6fd; font-weight: 700; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin: 25px 0 12px; }
.section-heading h2 { font: 700 13px 'PURE Thai', 'Manrope',sans-serif; margin: 0; color: #39443d; }
.section-heading p { color: #9aa29c; font-size: 10px; margin: 5px 0 0; }
.project-mini-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.project-mini { background: #fff; border: 1px solid var(--line); padding: 14px; border-radius: 13px; cursor: pointer; transition: .18s ease; }
.project-mini:hover { border-color: #d5dfd3; transform: translateY(-2px); box-shadow: var(--shadow); }
.project-color { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 700 10px 'PURE Thai', 'Manrope', sans-serif; color: #4f6653; background: #e6eee3; margin-bottom: 11px; }
.project-mini h3 { font: 600 11px 'PURE Thai', 'Manrope',sans-serif; margin: 0 0 5px; color: #414c45; }
.project-mini p { color: #9aa29c; font-size: 9px; margin: 0 0 12px; }
.progress-track { display: block; width: 100%; height: 5px; background: #eef1ed; border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: #91a88d; border-radius: inherit; transition: width .25s ease; }
.progress-caption { display: flex; justify-content: space-between; color: #969f98; font-size: 9px; margin-top: 7px; }
.view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.filter-tabs { background: #eef1ec; border-radius: 9px; padding: 3px; display: inline-flex; gap: 2px; }
.filter-tab { border: 0; background: transparent; color: #839087; border-radius: 7px; padding: 7px 11px; font-size: 10px; cursor: pointer; }
.filter-tab.active { color: #425b48; background: #fff; box-shadow: 0 1px 3px rgba(30,45,34,.08); font-weight: 600; }
.inline-search { height: 33px; border: 1px solid var(--line); background: #fff; border-radius: 8px; display: flex; align-items: center; gap: 7px; padding: 0 9px; color: #9aa39c; width: 195px; min-width: 0; }
.inline-search > svg { display: block; width: 14px; height: 14px; flex: 0 0 14px; }
.inline-search input { border: 0; outline: 0; min-width: 0; width: 0; flex: 1; font-size: 10px; }
.task-table { overflow: hidden; }
.table-labels { display: grid; grid-template-columns: minmax(260px,1fr) 160px 120px 98px 30px; gap: 12px; padding: 11px 17px; border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: .55px; color: #9aa39c; text-transform: uppercase; }
.task-table-row { display: grid; grid-template-columns: minmax(260px,1fr) 160px 120px 98px 30px; gap: 12px; min-height: 59px; padding: 10px 17px; align-items: center; border-bottom: 1px solid #f0f2ef; }
.task-table-row:last-child { border-bottom: 0; }
.task-table-row[data-task-detail] { cursor: pointer; transition: background .16s ease; }
.task-table-row[data-task-detail]:hover { background: rgba(150,182,253,.08); }
.task-name-cell { display: flex; align-items: center; min-width: 0; gap: 10px; }
.task-name-copy { min-width: 0; }
.task-title-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.task-title-button:focus-visible { outline-color: #96b6fd; border-radius: 3px; }
.task-name-copy strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; font-weight: 600; color: #4b564f; }
.task-name-copy small { display: block; color: #a0a8a2; font-size: 9px; margin-top: 4px; }
.project-chip { display: inline-flex; align-items: center; gap: 6px; color: #758078; font-size: 10px; }
.project-chip i { width: 7px; height: 7px; border-radius: 3px; background: #abbca6; }
.status-pill, .priority-pill, .integration-pill { border-radius: 6px; display: inline-flex; align-items: center; font-size: 9px; padding: 5px 7px; white-space: nowrap; }
.status-pill.todo { background: #f2f3f1; color: #858e88; }
.status-pill.doing { background: #edf2f7; color: #6e89a0; }
.status-pill.done { background: #eaf2e8; color: #6e8b6e; }
.priority-pill.high { background: var(--red-soft); color: #b47770; }
.priority-pill.medium { background: var(--orange-soft); color: #bb8b5f; }
.priority-pill.low { background: #edf3eb; color: #779072; }
.due-cell { color: #828d85; font-size: 10px; }
.row-more { background: transparent; border: 0; color: #a5ada7; cursor: pointer; font-size: 16px; }
.project-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 17px; align-items: start; }
.project-list { padding: 8px; }
.project-select { width: 100%; background: transparent; border: 0; text-align: left; cursor: pointer; border-radius: 10px; display: flex; align-items: center; gap: 10px; padding: 11px; }
.project-select:hover { background: #f8faf7; }
.project-select.active { background: #eff4ed; }
.project-select .project-color { margin: 0; flex: 0 0 auto; }
.project-select-copy { flex: 1; min-width: 0; }
.project-select-copy strong { font-size: 10px; font-weight: 600; display: block; color: #48544c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-select-copy small { color: #9ba49d; font-size: 9px; display: block; margin-top: 4px; }
.project-progress-num { color: #8c998f; font: 600 9px 'PURE Thai', 'Manrope',sans-serif; }
.project-detail { padding: 18px; }
.project-detail-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.project-detail-head .project-color { width: 38px; height: 38px; font-size: 14px; margin: 0; border-radius: 11px; }
.project-detail-title { flex: 1; }
.project-detail-title h2 { font: 700 16px 'PURE Thai', 'Manrope',sans-serif; margin: 1px 0 5px; color: #38443c; }
.project-detail-title p { color: #8b958e; font-size: 10px; margin: 0; }
.detail-progress { margin: 16px 0 19px; display: flex; align-items: center; gap: 11px; }
.detail-progress .progress-track { flex: 1; }
.detail-progress span { font-size: 9px; color: #87928a; white-space: nowrap; }
.phase-list { display: grid; gap: 8px; }
.phase-item { border: 1px solid #edf0ec; border-radius: 10px; overflow: hidden; }
.phase-item[open] { border-color: #e4eae2; }
.phase-summary { list-style: none; display: flex; align-items: center; padding: 12px 12px; gap: 10px; cursor: pointer; }
.phase-summary::-webkit-details-marker { display: none; }
.phase-arrow { color: #98a39a; transition: transform .18s ease; font-size: 14px; }
.phase-item[open] .phase-arrow { transform: rotate(90deg); }
.phase-index { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #f3f5f2; color: #76837a; font: 600 9px 'PURE Thai', 'Manrope',sans-serif; }
.phase-copy { min-width: 0; flex: 1; }
.phase-copy strong { font-size: 10px; font-weight: 600; display: block; color: #505c53; }
.phase-copy small { font-size: 9px; color: #9ba49d; display: block; margin-top: 3px; }
.phase-count { color: #95a099; font-size: 9px; white-space: nowrap; }
.phase-items { border-top: 1px solid #f0f2ef; padding: 4px 13px 8px 46px; }
.subtask-row { display: flex; align-items: center; min-height: 34px; border-bottom: 1px solid #f4f5f3; gap: 8px; }
.subtask-row:last-child { border-bottom: 0; }
.subtask-row input { width: 13px; height: 13px; accent-color: #6e8b70; margin: 0; cursor: pointer; }
.subtask-row span { font-size: 10px; color: #69756d; flex: 1; }
.subtask-row input:checked + span { color: #a5ada7; text-decoration: line-through; }
.inline-subtask-form { display: flex; align-items: center; gap: 8px; min-height: 38px; border-bottom: 1px solid transparent; }
.inline-subtask-form:focus-within { border-color: rgba(150,182,253,.48); }
.inline-subtask-plus { color: #96b6fd; font-size: 17px; font-weight: 500; line-height: 1; cursor: text; }
.inline-subtask-form input { min-width: 0; flex: 1; height: 36px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.inline-subtask-form input::placeholder { color: #8e959e; opacity: 1; }
.inline-subtask-form input:focus-visible { outline: 0; }
.inline-subtask-form button { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border: 0; border-radius: 7px; background: transparent; color: #96b6fd; cursor: pointer; opacity: .65; }
.inline-subtask-form button:hover, .inline-subtask-form:focus-within button { background: rgba(150,182,253,.13); opacity: 1; }
.inline-subtask-form button svg { width: 15px; height: 15px; }
body.dark .inline-subtask-form input { color: #f0f1f3; }
body.dark .inline-subtask-form input::placeholder { color: #a9adb4; }
.goal-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.goal-card { padding: 17px; }
.goal-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.goal-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #718b73; background: #edf3eb; border-radius: 10px; }
.goal-icon svg { width: 17px; height: 17px; }
.goal-card h3 { font: 600 12px 'PURE Thai', 'Manrope',sans-serif; color: #455148; margin: 13px 0 5px; }
.goal-card p { color: #969f98; font-size: 10px; margin: 0 0 15px; }
.goal-progress { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 11px; }
.goal-progress strong { font: 700 16px 'PURE Thai', 'Manrope',sans-serif; color: #586f59; }
.goal-progress span { color: #a0a8a2; font-size: 9px; }
.goal-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: #9ba49d; font-size: 9px; }
.notes-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 16px; align-items: start; }
.note-list { display: grid; gap: 9px; }
.note-card { padding: 14px 16px; cursor: pointer; transition: .18s; }
.note-card:hover { border-color: #dbe3da; transform: translateY(-1px); }
.note-card.active { border-color: #bfd0bc; box-shadow: 0 0 0 2px rgba(145,168,141,.1); }
.note-date { color: #94a097; font-size: 9px; margin-bottom: 7px; }
.note-card h3 { font: 600 11px 'PURE Thai', 'Manrope',sans-serif; color: #48534b; margin: 0 0 6px; }
.note-card p { color: #99a29b; font-size: 9px; margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-card-meta { display: flex; gap: 10px; color: #9ca49e; font-size: 9px; margin-top: 11px; }
.note-detail { padding: 18px; }
.note-detail h2 { color: #3c4840; font: 700 15px 'PURE Thai', 'Manrope',sans-serif; margin: 0 0 6px; }
.note-detail .note-meta { color: #9ba49d; font-size: 9px; margin-bottom: 15px; }
.note-detail h4 { color: #66736a; font: 700 9px 'PURE Thai', 'Manrope',sans-serif; text-transform: uppercase; letter-spacing: .8px; margin: 17px 0 8px; }
.note-transcript { background: #f8faf7; border-radius: 9px; padding: 12px; color: #7a857e; font-size: 10px; line-height: 1.7; white-space: pre-line; max-height: 174px; overflow: auto; }
.demo-label { display: inline-flex; gap: 5px; align-items: center; color: #9b845f; background: #faf4e9; border-radius: 5px; padding: 4px 6px; font-size: 8px; font-weight: 600; }
.ai-summary { color: #647168; font-size: 10px; line-height: 1.6; background: #f2f6f1; border-radius: 9px; padding: 11px 12px; }
.extracted-list { display: grid; gap: 7px; }
.extracted-row { display: flex; gap: 7px; align-items: flex-start; color: #69756d; font-size: 9px; line-height: 1.45; }
.extracted-row .tiny-check { color: #87a082; font-size: 11px; }
.notes-aside { position: sticky; top: 88px; }
.note-action-row { display: flex; gap: 7px; flex-wrap: wrap; }
.team-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-bottom: 16px; }
.team-stat { padding: 13px 15px; }
.team-stat span { color: #8b968e; font-size: 10px; display: block; }
.team-stat strong { display: block; margin-top: 6px; font: 700 19px 'PURE Thai', 'Manrope',sans-serif; color: #465a4a; }
.team-table { padding: 0 17px; }
.team-head, .member-row { display: grid; grid-template-columns: minmax(160px,1.35fr) minmax(105px,.9fr) minmax(90px,1fr) minmax(75px,.75fr) auto; align-items: center; gap: 18px; }
.team-head { padding: 12px 0; color: #9aa39c; text-transform: uppercase; font-size: 8px; letter-spacing: .65px; border-bottom: 1px solid var(--line); }
.member-row { padding: 14px 0; border-bottom: 1px solid #f0f2ef; }
.member-row:last-child { border-bottom: 0; }
.member-person { display: flex; gap: 9px; align-items: center; min-width: 0; }
.member-person .avatar { width: 31px; height: 31px; }
.mini-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.member-person strong { display: block; color: #505c53; font-size: 10px; font-weight: 600; }
.member-person small { display: block; color: #9ba49d; font-size: 9px; margin-top: 4px; }
.member-actions { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.member-actions .button { white-space: nowrap; }
.team-empty { color: var(--muted); padding: 20px 0; font-size: 12px; }
.team-photo-editor { display: flex; align-items: center; gap: 14px; margin: 2px 0 17px; }
.team-photo-preview { width: 58px; height: 58px; overflow: hidden; font-size: 15px; }
.team-photo-controls { display: grid; gap: 5px; min-width: 0; }
.team-photo-controls > strong { color: var(--ink); font-size: 11px; }
.team-photo-controls > small { color: var(--muted); font-size: 9px; }
.team-photo-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.team-photo-input { max-width: 230px; color: var(--muted); font-size: 10px; }
.team-photo-input::file-selector-button { border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; margin-right: 8px; background: var(--paper); color: var(--ink); cursor: pointer; }
.team-photo-controls .profile-save-message { min-height: 0; margin: 0; font-size: 9px; }
.member-role { color: #7d8980; font-size: 9px; }
.workload { display: flex; align-items: center; gap: 7px; }
.workload .progress-track { flex: 1; height: 4px; }
.workload span { font-size: 9px; color: #8d9990; }
.member-tasks { color: #758178; font-size: 9px; }
.calendar-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(290px,.85fr); gap: 16px; align-items: start; }
.calendar-panel { padding: 17px; }
.calendar-month-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.calendar-month-head h2 { font: 700 14px 'PURE Thai', 'Manrope',sans-serif; color: #445046; margin: 0; }
.month-nav { display: flex; gap: 5px; }
.month-nav button { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #7e8a81; cursor: pointer; }
.calendar-grid { display: grid; min-width: 0; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
.calendar-weekday { text-align: center; color: #9ca49e; font-size: 8px; text-transform: uppercase; padding: 5px; }
.calendar-cell { appearance: none; display: block; width: 100%; min-width: 0; min-height: 69px; border: 1px solid #f0f2ef; border-radius: 7px; padding: 6px; background: var(--paper); color: #758078; font: inherit; font-size: 9px; position: relative; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.calendar-cell.muted { opacity: .43; background: #fafbf9; }
.calendar-cell.today { border-color: #90a78c; background: #f5f8f3; }
.calendar-cell:hover { border-color: #96b6fd; }
.calendar-cell.selected { border-color: #96b6fd; background: #f2f6ff; box-shadow: inset 0 0 0 1px rgba(150,182,253,.38); }
.calendar-day-num { position: absolute; top: 7px; left: 8px; font-weight: 600; line-height: 1.2; }
.calendar-cell.selected .calendar-day-num { color: #4f78cb; }
.calendar-event-indicator { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #f06469; box-shadow: 0 0 0 3px rgba(240,100,105,.15); }
.calendar-event-dot { display: block; min-width: 0; margin-top: 5px; width: 100%; padding: 3px 4px; border-radius: 4px; background: #edf3eb; color: #6e866e; font-size: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-dot.meeting { background: #edf2f7; color: #6e879e; }
.calendar-event-dot.focus { background: #fbf1e8; color: #b38760; }
.calendar-selected-day { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.calendar-selected-header { display: flex; justify-content: space-between; align-items: flex-start; }
.calendar-selected-header h3 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.4; }
.calendar-selected-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.calendar-event-list { display: grid; gap: 8px; margin-top: 12px; }
.calendar-event-card { display: grid; grid-template-columns: 70px 3px minmax(0,1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.calendar-event-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.calendar-event-rule { width: 3px; height: 34px; border-radius: 3px; background: #96b6fd; }
.calendar-event-card.focus .calendar-event-rule { background: #aeb2b7; }
.calendar-event-card.task .calendar-event-rule { background: #f06469; }
.calendar-event-copy { display: grid; gap: 4px; min-width: 0; }
.calendar-event-copy strong { color: var(--ink); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.calendar-event-copy small { color: var(--muted); font-size: 11px; }
.calendar-event-type { padding: 4px 7px; border-radius: 7px; background: rgba(150,182,253,.13); color: #5e82cc; font-size: 10px; white-space: nowrap; }
.calendar-empty-day { margin-top: 12px; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; }
.calendar-side { display: grid; gap: 12px; }
.integration-card { padding: 15px; }
.integration-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.integration-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #f0f4ef; color: #6a856c; font: 700 13px 'PURE Thai', 'Manrope',sans-serif; }
.integration-icon.google { color: #6485ab; background: #eef3f8; }
.integration-head strong { font-size: 10px; color: #4f5b52; }
.integration-head small { display: block; color: #9aa39d; font-size: 8px; margin-top: 3px; }
.integration-card p { font-size: 9px; line-height: 1.55; color: #89948c; margin: 0 0 12px; }
.integration-pill { background: #f2f4f1; color: #869088; font-size: 8px; }
.upcoming-row { display: flex; gap: 9px; padding: 10px 0; border-top: 1px solid #f0f2ef; align-items: center; }
.upcoming-date { width: 31px; height: 34px; border-radius: 8px; display: grid; align-content: center; justify-items: center; background: #f4f6f3; color: #829087; flex: 0 0 auto; }
.upcoming-date strong { font: 700 11px 'PURE Thai', 'Manrope',sans-serif; }
.upcoming-date small { font-size: 7px; text-transform: uppercase; }
.upcoming-copy { min-width: 0; flex: 1; }
.upcoming-copy strong { display: block; color: #5b665e; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upcoming-copy small { color: #9ba49d; font-size: 8px; display: block; margin-top: 4px; }
.empty-state { padding: 38px 20px; text-align: center; color: #96a098; font-size: 11px; }
.empty-icon { width: 34px; height: 34px; border-radius: 11px; background: #f1f5ef; color: #839780; display: grid; place-items: center; margin: 0 auto 10px; }
.empty-icon svg { width: 16px; height: 16px; }
.empty-state strong { color: #637067; display: block; margin-bottom: 5px; font-size: 11px; }
.modal-backdrop { z-index: 30; position: fixed; inset: 0; background: rgba(30,41,34,.34); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .16s ease; }
.modal { background: #fff; border-radius: 16px; width: min(100%, 470px); box-shadow: 0 24px 80px rgba(25,37,28,.22); padding: 20px; animation: rise .18s ease; max-height: calc(100vh - 40px); overflow: auto; }
.modal.modal-wide { width: min(100%, 610px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.modal-head h2 { font: 700 16px 'PURE Thai', 'Manrope',sans-serif; color: #344239; margin: 0 0 5px; }
.modal-head p { color: #909b92; font-size: 10px; margin: 0; line-height: 1.5; }
.modal-close { border: 0; background: #f5f7f4; color: #7f8a82; width: 27px; height: 27px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.task-detail h3 { margin: 0 0 20px; color: var(--ink); font-size: 17px; line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }
.task-detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 20px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.task-detail-meta > div { min-width: 0; display: grid; gap: 5px; }
.task-detail-meta span { color: var(--muted); font-size: 11px; }
.task-detail-meta strong { color: var(--ink); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.task-detail-description { padding: 17px 0 12px; }
.task-detail-description > strong { color: var(--ink); font-size: 12px; }
.task-detail-description p { color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; font-size: 12px; margin: 8px 0 0; }
.task-detail-empty { color: var(--muted); }
.task-detail-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.task-detail-actions .button-danger-outline { margin-right: auto; }
.button-danger-outline { border-color: rgba(198,94,98,.35); background: transparent; color: #b7565c; }
.button-danger-outline:hover { border-color: #b7565c; background: rgba(198,94,98,.08); }
.button-danger { border-color: #b9565c; background: #b9565c; color: #fff; }
.button-danger:hover { background: #a4474d; }
.delete-task-confirm > strong { display: block; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.delete-task-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: grid; gap: 6px; margin-bottom: 12px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #77837a; font-size: 9px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 36px; padding: 9px 10px; border: 1px solid #e5ebe4; background: #fcfdfb; border-radius: 8px; color: #465249; font-size: 10px; outline: 0; }
.form-field textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #b7c9b4; box-shadow: 0 0 0 3px rgba(145,168,141,.12); }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 7px; }
.modal-note { color: #969f98; font-size: 9px; line-height: 1.55; background: #f8faf7; padding: 10px; border-radius: 8px; margin: 0 0 14px; }
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: grid; gap: 8px; }
.toast { background: #263d2e; color: #f5f8f3; border-radius: 10px; padding: 11px 14px; font-size: 10px; box-shadow: 0 10px 28px rgba(27,43,32,.2); animation: rise .18s ease; max-width: 320px; }
.toast span { color: #bfd3bd; margin-right: 7px; }
.quick-note-fab { position: fixed; z-index: 24; right: 22px; bottom: 22px; height: 46px; display: inline-flex; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: #24262a; color: #f4f4f5; box-shadow: 0 10px 28px rgba(20,22,25,.2); cursor: pointer; font-size: 11px; font-weight: 600; transition: transform .18s ease, box-shadow .18s ease; }
.quick-note-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(20,22,25,.25); }
.quick-note-fab > svg { width: 16px; height: 16px; }
.quick-note-fab-mobile-plus { display: none; }
.quick-note-count { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 9px; }
.quick-note-panel { position: fixed; z-index: 25; right: 22px; bottom: 80px; width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 108px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(18,20,24,.22); animation: rise .18s ease; }
.quick-note-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px 13px; }
.quick-note-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.quick-note-mark { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; background: var(--canvas); color: var(--ink); }
.quick-note-mark svg { width: 16px; height: 16px; }
.quick-note-heading strong, .quick-note-heading small { display: block; }
.quick-note-heading strong { font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.quick-note-heading small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.quick-note-close { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.quick-note-close:hover { background: var(--canvas); color: var(--ink); }
.quick-note-close svg { width: 15px; height: 15px; }
.quick-note-tabs { display: flex; gap: 4px; padding: 0 16px 10px; border-bottom: 1px solid var(--line); }
.quick-note-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; }
.quick-note-tab.active { background: var(--canvas); color: var(--ink); font-weight: 700; }
.quick-note-tab span { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: rgba(128,132,138,.14); font-size: 8px; }
.quick-note-compose { display: grid; gap: 12px; padding: 13px 16px 15px; }
.quick-note-compose textarea { width: 100%; min-height: 145px; max-height: 260px; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--canvas); color: var(--ink); font-size: 11px; line-height: 1.6; }
.quick-note-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quick-note-meta .form-field { min-width: 0; margin-bottom: 0; }
.quick-note-meta .form-field.full { grid-column: 1 / -1; }
.quick-note-meta .form-field label { color: var(--muted); font-size: 9px; }
.quick-note-meta .form-field input, .quick-note-meta .form-field select { min-width: 0; min-height: 35px; padding: 7px 8px; font-size: 10px; }
.quick-note-compose textarea::placeholder { color: var(--soft-muted); }
.quick-note-compose textarea:focus { border-color: #aeb2b8; box-shadow: 0 0 0 3px rgba(120,124,132,.12); }
.quick-note-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quick-note-footer small { color: var(--muted); font-size: 8px; }
.quick-note-save { display: inline-flex; align-items: center; gap: 6px; height: 31px; padding: 0 11px; border: 0; border-radius: 8px; background: #282a2e; color: #fff; cursor: pointer; font-size: 9px; font-weight: 600; }
.quick-note-save:hover { background: #3a3c41; }
.quick-note-save svg { width: 13px; height: 13px; }
.quick-note-inbox { overflow: auto; padding: 5px 16px 14px; }
.quick-note-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.quick-note-item:last-child { border-bottom: 0; }
.quick-note-item p { margin: 0; color: var(--ink); font-size: 10px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.quick-note-item-links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.quick-note-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 22px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); color: var(--muted); font-size: 8px; line-height: 1.25; }
.quick-note-chip svg { width: 11px; height: 11px; flex: 0 0 auto; }
.quick-note-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-note-item time { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; }
.quick-note-empty { display: grid; justify-items: center; gap: 7px; padding: 36px 15px; color: var(--muted); text-align: center; }
.quick-note-empty > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--canvas); }
.quick-note-empty svg { width: 16px; height: 16px; }
.quick-note-empty strong { color: var(--ink); font-size: 10px; }
.quick-note-empty small { font-size: 9px; }
body.dark .quick-note-fab, body.dark .quick-note-save { background: #eceef0; color: #191a1c; border-color: rgba(255,255,255,.15); }
body.dark .quick-note-fab:hover, body.dark .quick-note-save:hover { background: #fff; }
body.dark .quick-note-panel { background: rgba(34,36,40,.97); border-color: rgba(255,255,255,.11); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
body.dark .quick-note-mark, body.dark .quick-note-tab.active, body.dark .quick-note-empty > span { background: rgba(255,255,255,.08); }
body.dark .quick-note-compose textarea { background: rgba(0,0,0,.24); border-color: rgba(255,255,255,.12); }
body.dark .quick-note-chip { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.06); color: #c4c7cc; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 860px; }
.setting-card { padding: 19px; min-height: 170px; }
.setting-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.setting-card-head .summary-icon { width: 34px; height: 34px; border-radius: 10px; }
.setting-card-head strong { display: block; font: 700 12px 'PURE Thai', 'Manrope',sans-serif; color: #465249; }
.setting-card-head small { display: block; color: #9aa39c; font-size: 9px; margin-top: 4px; }
.language-switch { display: inline-flex; gap: 4px; background: #f0f3ef; border-radius: 9px; padding: 4px; }
.language-option { min-width: 85px; border: 0; border-radius: 6px; background: transparent; color: #7c887f; padding: 8px 10px; cursor: pointer; font-size: 10px; }
.language-option.active { background: #fff; color: #45604b; box-shadow: 0 1px 4px rgba(36, 54, 40, .1); font-weight: 700; }
.setting-note { color: #969f98; font-size: 9px; line-height: 1.55; margin: 13px 0 0; max-width: 430px; }
.setting-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.setting-toggle-copy strong { display: block; color: #566259; font-size: 10px; font-weight: 600; }
.setting-toggle-copy small { display: block; color: #9aa39c; font-size: 9px; margin-top: 4px; line-height: 1.5; }
.switch { position: relative; width: 39px; height: 22px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 1px; height: 1px; position: absolute; }
.switch-track { position: absolute; inset: 0; border-radius: 99px; background: #dfe5de; cursor: pointer; transition: .2s; }
.switch-track::after { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(30,45,34,.2); transition: .2s; }
.switch input:checked + .switch-track { background: #55735d; }
.switch input:checked + .switch-track::after { transform: translateX(17px); }
.switch input:focus-visible + .switch-track { outline: 3px solid rgba(82,114,94,.22); outline-offset: 2px; }
.settings-footer { margin-top: 14px; color: #9aa39c; font-size: 9px; line-height: 1.6; }

/* Neutral white and gray palette for Light Mode. */
body:not(.dark) { background: #f5f6f7; }
body:not(.dark) .sidebar { background: #ffffff; }
body:not(.dark) .topbar { background: rgba(250, 251, 252, .95); }
body:not(.dark) .panel, body:not(.dark) .summary-card, body:not(.dark) .project-mini,
body:not(.dark) .button-secondary, body:not(.dark) .search-box,
body:not(.dark) .workspace-switcher, body:not(.dark) .modal { background-color: #ffffff; }
body:not(.dark) .sidebar-tip, body:not(.dark) .inline-search,
body:not(.dark) .note-transcript { background-color: #f0f1f3; }
body:not(.dark) .nav-item:hover { background-color: #f1f2f4; }
body:not(.dark) .nav-item.active { background-color: #eceef0; color: #34373c; }
body:not(.dark) .filter-tabs { background-color: #eceef0; }
body:not(.dark) .button-primary { background: #42454a; }
body:not(.dark) .tip-spark { color: #777b82; }
body:not(.dark) .crumb-mark,
body:not(.dark) .summary-icon, body:not(.dark) .goal-icon,
body:not(.dark) .project-color, body:not(.dark) .phase-index,
body:not(.dark) .upcoming-date, body:not(.dark) .empty-icon,
body:not(.dark) .integration-icon { background: #eceef0; color: #656970; }
body:not(.dark) .avatar, body:not(.dark) .mini-avatar,
body:not(.dark) .project-color { background: #eceef0 !important; color: #565a60 !important; }
body:not(.dark) .dashboard-hero { background: linear-gradient(120deg, #eceef0, #e5e7ea); }
body:not(.dark) .dashboard-hero::after { border-color: rgba(72, 76, 83, .1); box-shadow: 0 0 0 28px rgba(255,255,255,.2), 0 0 0 57px rgba(255,255,255,.12); }
body:not(.dark) .hero-kicker, body:not(.dark) .hero-copy p,
body:not(.dark) .hero-stat span { color: #73777e; }
body:not(.dark) .hero-stat strong { color: #3f4248; }
body:not(.dark) .hero-divider { background: rgba(70, 74, 80, .18); }
body:not(.dark) .hero-actions .button-secondary { background: rgba(255,255,255,.7); border-color: rgba(255,255,255,.9); }
body:not(.dark) .progress-track { background: #e9eaed; }
body:not(.dark) .progress-fill { background: #858990; }
body:not(.dark) .text-link, body.dark .text-link { color: #96b6fd; }
body:not(.dark) .button-quiet { color: #62666d; }
body:not(.dark) .day-pill.today, body:not(.dark) .day-pill.today strong { color: #96b6fd; }
body:not(.dark) .day-pill.today strong { background: #e7e9ec; }
body:not(.dark) .status-pill.done, body:not(.dark) .status-pill.doing,
body:not(.dark) .status-pill.todo, body:not(.dark) .priority-pill.high,
body:not(.dark) .priority-pill.medium, body:not(.dark) .priority-pill.low,
body:not(.dark) .integration-pill { background: #f0f1f3; color: #666a71; }
body:not(.dark) .calendar-event-dot, body:not(.dark) .calendar-event-dot.meeting,
body:not(.dark) .calendar-event-dot.focus { background: #eceef0; color: #5d6168; }
body:not(.dark) .priority-dot, body:not(.dark) .priority-dot.high,
body:not(.dark) .priority-dot.medium, body:not(.dark) .priority-dot.low { background: #858990; }
body:not(.dark) .project-select.active { background: #f0f1f3; }
body:not(.dark) .note-card.active { border-color: #c8cbd0; }
body:not(.dark) .demo-label { background: #f0f1f3; color: #666a71; }
body:not(.dark) .toast { background: #36393e; }
body:not(.dark) button:focus-visible, body:not(.dark) input:focus-visible,
body:not(.dark) textarea:focus-visible, body:not(.dark) select:focus-visible { outline-color: rgba(93, 97, 104, .24); }
body:not(.dark) .nav-label, body:not(.dark) .nav-item, body:not(.dark) .icon-button,
body:not(.dark) .crumb, body:not(.dark) .crumb strong, body:not(.dark) h1,
body:not(.dark) .panel-title, body:not(.dark) .section-heading h2,
body:not(.dark) .project-mini h3, body:not(.dark) .project-detail-title h2,
body:not(.dark) .goal-card h3, body:not(.dark) .note-card h3,
body:not(.dark) .note-detail h2, body:not(.dark) .calendar-month-head h2,
body:not(.dark) .modal-head h2, body:not(.dark) .setting-card-head strong { color: #34373c; }
body:not(.dark) .button-primary:hover { background: #303338; }
body:not(.dark) .button-secondary:hover, body:not(.dark) .button-quiet:hover,
body:not(.dark) .project-mini:hover, body:not(.dark) .project-select:hover { border-color: #d8dade; background-color: #f5f6f7; }
body:not(.dark) .task-check:checked, body:not(.dark) .switch input:checked + .switch-track { background: #777b82; border-color: #777b82; }
body:not(.dark) .dashboard-hero, body:not(.dark) .goal-icon, body:not(.dark) .summary-icon,
body:not(.dark) .ai-summary, body:not(.dark) .note-transcript,
body:not(.dark) .calendar-cell.today, body:not(.dark) .language-switch,
body:not(.dark) .filter-tabs, body:not(.dark) .switch-track { background-color: #eff0f2; }
body:not(.dark) .dashboard-hero { background-image: linear-gradient(120deg, #eceef0, #e5e7ea); }
body:not(.dark) .goal-icon, body:not(.dark) .summary-icon, body:not(.dark) .integration-icon,
body:not(.dark) .empty-icon, body:not(.dark) .tip-spark,
body:not(.dark) .goal-progress strong, body:not(.dark) .extracted-row .tiny-check,
body:not(.dark) .setting-toggle-copy strong, body:not(.dark) .language-option.active { color: #656970; }
body:not(.dark) .goal-progress strong, body:not(.dark) .goal-progress span,
body:not(.dark) .note-detail h4, body:not(.dark) .extracted-row,
body:not(.dark) .member-role, body:not(.dark) .member-tasks,
body:not(.dark) .empty-state strong { color: #686c73; }
body:not(.dark) .note-card:hover, body:not(.dark) .note-card.active { border-color: #d5d7db; box-shadow: 0 0 0 2px rgba(80, 84, 91, .06); }
body:not(.dark) .calendar-cell.today { border-color: #bfc2c7; }
body:not(.dark) .agenda-mark, body:not(.dark) .agenda-mark.blue, body:not(.dark) .agenda-mark.orange,
body:not(.dark) .project-chip i, body:not(.dark) .notification-dot { background: #858990; }
body:not(.dark) .integration-icon.google { color: #656970; background: #eceef0; }
body:not(.dark) .form-field input, body:not(.dark) .form-field select,
body:not(.dark) .form-field textarea { border-color: #dfe1e5; background: #fafbfc; color: #45484e; }
body:not(.dark) .form-field input:focus, body:not(.dark) .form-field select:focus,
body:not(.dark) .form-field textarea:focus { border-color: #bfc2c7; box-shadow: 0 0 0 3px rgba(93, 97, 104, .1); }
body:not(.dark) .modal-backdrop { background: rgba(30, 32, 36, .34); }
body:not(.dark) .toast span { color: #c9cbd0; }
body:not(.dark) .language-option.active { background: #e3e5e8; }
body:not(.dark) .switch input:focus-visible + .switch-track { outline-color: rgba(93, 97, 104, .24); }

html[lang="th"], html[lang="th"] body, html[lang="th"] body *,
html[lang="th"] body *::before, html[lang="th"] body *::after,
html[lang="th"] body *::placeholder, html[lang="th"] body *::file-selector-button {
  font-family: 'PURE Thai', "Sukhumvit Set", "SukhumvitSet", "Sukhumvit", "Noto Sans Thai", Tahoma, sans-serif !important;
}

body.dark {
  color-scheme: dark;
  --ink: #e8eee9;
  --muted: #a4afa7;
  --soft-muted: #87938a;
  --line: #303c33;
  --canvas: #141a16;
  --paper: #1c251f;
  --green: #42614a;
  --green-2: #8daa8e;
  --green-soft: #26382b;
  --orange-soft: #3a3025;
  --red-soft: #3a2a29;
  --blue-soft: #27323c;
  --shadow: 0 12px 36px rgba(0,0,0,.18);
  background: var(--canvas);
  color: var(--ink);
}
body.dark .sidebar, body.dark .topbar, body.dark .summary-card, body.dark .panel,
body.dark .project-mini, body.dark .workspace-switcher, body.dark .search-box,
body.dark .button-secondary, body.dark .calendar-cell, body.dark .modal {
  background: #1c251f;
  border-color: var(--line);
  color: var(--ink);
}
body.dark .topbar { background: rgba(24,32,27,.94); }
body.dark .main-area, body.dark .app-shell { background: var(--canvas); }
body.dark .brand, body.dark h1, body.dark .panel-title, body.dark .section-heading h2,
body.dark .project-mini h3, body.dark .project-detail-title h2, body.dark .note-detail h2,
body.dark .modal-head h2 { color: #e5ece6; }
body.dark .crumb strong, body.dark .task-row-title, body.dark .task-name-copy strong,
body.dark .project-select-copy strong, body.dark .phase-copy strong, body.dark .goal-card h3,
body.dark .note-card h3, body.dark .setting-card-head strong { color: #d5dfd7; }
body.dark .workspace-copy strong, body.dark .profile-copy strong { color: #d8e0d9; }
body.dark .nav-item { color: #a3aea5; }
body.dark .nav-item:hover { background: #222e25; color: #d1dfd2; }
body.dark .nav-item.active { background: #293b2d; color: #b8d0b8; }
body.dark .nav-count { background: #253128; color: #a9b5aa; }
body.dark .sidebar-tip, body.dark .summary-icon, body.dark .goal-icon,
body.dark .project-color, body.dark .phase-index, body.dark .upcoming-date,
body.dark .empty-icon, body.dark .integration-icon { background: #26342a; color: #a8c0a7; }
body.dark .crumb-mark { background: #304333; color: #c0d4bd; }
body.dark .avatar-sage, body.dark .mini-avatar { background: #35463a; color: #d0ded0; }
body.dark .dashboard-hero { background: #24362a; }
body.dark .hero-copy h1, body.dark .hero-stat strong { color: #e1ece1; }
body.dark .hero-copy p, body.dark .hero-kicker, body.dark .hero-stat span { color: #afc1b0; }
body.dark .hero-divider { background: rgba(191,214,190,.24); }
body.dark .hero-actions .button-secondary { background: #304333; border-color: #3a4b3c; color: #e0e9e0; }
body.dark .progress-track { background: #303b32; }
body.dark .progress-fill { background: #8ba889; }
body.dark .filter-tabs { background: #202a23; }
body.dark .filter-tab { color: #a4afa7; }
body.dark .filter-tab.active, body.dark .language-option.active { background: #344439; color: #d4e2d4; }
body.dark .language-switch { background: #202a23; }
body.dark .task-row, body.dark .task-table-row, body.dark .table-labels,
body.dark .member-row, body.dark .team-head, body.dark .agenda-day,
body.dark .upcoming-row, body.dark .phase-items, body.dark .note-card,
body.dark .profile-row { border-color: #2b362e; }
body.dark .subtask-row { border-color: #2b362e; }
body.dark .project-select.active { background: #28382c; }
body.dark .project-select:hover { background: #222e25; }
body.dark .status-pill.todo, body.dark .integration-pill { background: #2a332c; color: #b0bbb2; }
body.dark .status-pill.doing { background: #293743; color: #a9bfd1; }
body.dark .status-pill.done { background: #2a392c; color: #b0c7ad; }
body.dark .priority-pill.high { background: #3b2d2c; color: #d49c93; }
body.dark .priority-pill.medium { background: #3b3328; color: #d7b283; }
body.dark .priority-pill.low { background: #2a392c; color: #b3c8ad; }
body.dark .note-transcript { background: #222d25; color: #c0cac1; }
body.dark .ai-summary { background: #27362b; color: #c7d6c8; }
body.dark .calendar-cell.today { background: #26382b; border-color: #617e64; }
body.dark .calendar-cell.muted { background: #18211b; }
body.dark .calendar-event-dot { background: #2b3a2d; color: #c0d2bd; }
body.dark .calendar-event-dot.meeting { background: #293743; color: #b3c7d8; }
body.dark .calendar-event-dot.focus { background: #3a3025; color: #dfbd96; }
body.dark .day-pill.today strong { background: #344737; color: #d0e0d0; }
body.dark .form-field input, body.dark .form-field select, body.dark .form-field textarea,
body.dark .inline-search { background: #17201a; color: #e2e9e2; border-color: #354138; }
body.dark .search-box input { color: #e2e9e2; }
body.dark .modal-note { background: #222d25; color: #b5c0b7; }
body.dark .language-option { color: #aeb9b0; }
body.dark .setting-toggle-copy strong { color: #d2ddd3; }
body.dark .switch-track { background: #455148; }
body.dark .modal-close, body.dark .month-nav button { background: #28332b; color: #c5d0c7; border-color: #354138; }
body.dark .button-secondary:hover { background: #27342b; }
body.dark .settings-nav { border-color: var(--line); }
body.dark .note-card.active { border-color: #536b55; }
body.dark .note-detail h4 { color: #bac8bd; }

/* Dark Mode uses a graphite glass surface with neutral silver accents. */
body.dark {
  --ink: #f0f1f2;
  --muted: #b3b6bb;
  --soft-muted: #8b9096;
  --line: rgba(235, 237, 240, .12);
  --canvas: #101113;
  --paper: rgba(39, 41, 44, .62);
  --green: #45484d;
  --green-2: #b9bcc1;
  --green-soft: rgba(255, 255, 255, .09);
  --orange-soft: rgba(255, 255, 255, .07);
  --red-soft: rgba(255, 255, 255, .07);
  --blue-soft: rgba(255, 255, 255, .07);
  --shadow: 0 18px 50px rgba(0, 0, 0, .24);
  background:
    radial-gradient(ellipse at 78% -8%, rgba(220, 223, 228, .09), transparent 42%),
    radial-gradient(ellipse at 6% 88%, rgba(128, 132, 140, .08), transparent 34%),
    #101113;
  background-attachment: fixed;
  color: #f0f1f2;
}
body.dark .app-shell, body.dark .main-area { background: transparent; }
body.dark .sidebar, body.dark .panel, body.dark .summary-card,
body.dark .project-mini, body.dark .workspace-switcher, body.dark .search-box,
body.dark .button-secondary, body.dark .calendar-cell, body.dark .modal {
  background: rgba(38, 40, 43, .64);
  border-color: rgba(235, 237, 240, .13);
  color: #f0f1f2;
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 14px 40px rgba(0, 0, 0, .16);
}
body.dark .sidebar { background: rgba(27, 29, 32, .74); }
body.dark .topbar { background: rgba(25, 27, 30, .66); border-color: rgba(235, 237, 240, .11); backdrop-filter: blur(24px) saturate(145%); -webkit-backdrop-filter: blur(24px) saturate(145%); }
body.dark .brand, body.dark h1, body.dark h2, body.dark h3,
body.dark .brand-name, body.dark .panel-title, body.dark .section-heading h2,
body.dark .project-detail-title h2, body.dark .note-detail h2,
body.dark .modal-head h2, body.dark .setting-card-head strong { color: #f1f2f3; }
body.dark .crumb, body.dark .crumb strong, body.dark .workspace-copy strong,
body.dark .profile-copy strong, body.dark .task-row-title, body.dark .task-name-copy strong,
body.dark .project-mini h3, body.dark .project-select-copy strong,
body.dark .phase-copy strong, body.dark .goal-card h3, body.dark .note-card h3,
body.dark .member-person strong, body.dark .setting-toggle-copy strong { color: #e5e6e8; }
body.dark .crumb, body.dark .heading-subtitle, body.dark .panel-subtitle,
body.dark .summary-head, body.dark .summary-foot, body.dark .task-project,
body.dark .task-row-meta, body.dark .task-name-copy small, body.dark .due-cell,
body.dark .project-mini p, body.dark .progress-caption, body.dark .phase-count,
body.dark .phase-copy small, body.dark .note-date, body.dark .note-card p,
body.dark .note-card-meta, body.dark .note-meta, body.dark .member-role,
body.dark .member-tasks, body.dark .setting-card-head small,
body.dark .setting-toggle-copy small, body.dark .setting-note,
body.dark .settings-footer, body.dark .calendar-weekday,
body.dark .upcoming-copy small, body.dark .integration-card p,
body.dark .form-field label { color: #a9adb2; }
body.dark .nav-item { color: #b4b8bd; }
body.dark .nav-item:hover { color: #f2f3f4; background: rgba(255,255,255,.07); }
body.dark .nav-item.active { color: #f5f5f6; background: rgba(255,255,255,.105); }
body.dark .nav-count, body.dark .summary-icon, body.dark .goal-icon,
body.dark .phase-index, body.dark .upcoming-date, body.dark .empty-icon,
body.dark .integration-icon, body.dark .crumb-mark,
body.dark .sidebar-tip { background: rgba(255,255,255,.08); color: #d8dade; }
body.dark .sidebar-tip { border: 1px solid rgba(255,255,255,.08); }
body.dark .tip-spark { color: #d7d9dc; }
body.dark .dashboard-hero { background: linear-gradient(125deg, rgba(48,50,54,.92), rgba(31,33,36,.86)); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 42px rgba(0,0,0,.18); }
body.dark .dashboard-hero::after { border-color: rgba(255,255,255,.1); box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 57px rgba(255,255,255,.018); }
body.dark .hero-copy h1, body.dark .hero-stat strong { color: #f4f4f5; }
body.dark .hero-copy p, body.dark .hero-kicker, body.dark .hero-stat span { color: #b5b8bd; }
body.dark .hero-divider { background: rgba(255,255,255,.17); }
body.dark .hero-actions .button-secondary { background: rgba(255,255,255,.08); color: #f1f2f3; border-color: rgba(255,255,255,.12); }
body.dark .button-primary { background: #e1e2e4; color: #202124; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
body.dark .button-primary:hover { background: #fff; }
body.dark .button-secondary:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
body.dark .progress-track { background: rgba(255,255,255,.11); }
body.dark .progress-fill { background: linear-gradient(90deg, #9da1a7, #d4d6d9); }
body.dark .filter-tabs, body.dark .language-switch { background: rgba(0,0,0,.2); }
body.dark .filter-tab { color: #aeb2b7; }
body.dark .filter-tab.active, body.dark .language-option.active { background: rgba(255,255,255,.14); color: #f4f4f5; box-shadow: inset 0 1px 0 rgba(255,255,255,.09); }
body.dark .language-option { color: #b7bbc0; }
body.dark .task-row, body.dark .task-table-row, body.dark .table-labels,
body.dark .member-row, body.dark .team-head, body.dark .agenda-day,
body.dark .upcoming-row, body.dark .phase-items, body.dark .subtask-row,
body.dark .profile-row { border-color: rgba(255,255,255,.09); }
body.dark .task-check { border-color: #777c82; }
body.dark .task-check:checked { background: #d7d9dc; border-color: #d7d9dc; }
body.dark .task-check:checked::after { border-color: #202124; }
body.dark .project-select.active, body.dark .project-select:hover { background: rgba(255,255,255,.075); }
body.dark .project-color, body.dark .phase-index, body.dark .mini-avatar,
body.dark .avatar { background: rgba(255,255,255,.1) !important; color: #e6e7e9 !important; }
body.dark .status-pill.todo, body.dark .status-pill.doing, body.dark .status-pill.done,
body.dark .priority-pill.high, body.dark .priority-pill.medium, body.dark .priority-pill.low,
body.dark .integration-pill { background: rgba(255,255,255,.09); color: #d2d4d7; border: 1px solid rgba(255,255,255,.08); }
body.dark .note-transcript, body.dark .ai-summary { background: rgba(0,0,0,.19); color: #d5d7da; border: 1px solid rgba(255,255,255,.07); }
body.dark .demo-label { background: rgba(255,255,255,.1); color: #e0e1e3; }
body.dark .calendar-cell.today { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
body.dark .calendar-cell.muted { background: rgba(0,0,0,.12); }
body.dark .calendar-event-dot, body.dark .calendar-event-dot.meeting,
body.dark .calendar-event-dot.focus { background: rgba(255,255,255,.11); color: #e1e2e4; }
body.dark .day-pill.today strong { background: rgba(255,255,255,.14); color: #f4f4f5; }
body.dark .agenda-mark, body.dark .agenda-mark.blue, body.dark .agenda-mark.orange { background: #aeb2b7; }
body.dark .form-field input, body.dark .form-field select, body.dark .form-field textarea,
body.dark .inline-search { background: rgba(10,11,13,.4); color: #f0f1f2; border-color: rgba(255,255,255,.14); }
body.dark .form-field input::placeholder, body.dark .form-field textarea::placeholder,
body.dark .search-box input::placeholder { color: #898e94; }
body.dark .search-box input { color: #f0f1f2; }
body.dark .search-box kbd { border-color: rgba(255,255,255,.12); color: #aeb2b7; }
body.dark .modal-note { background: rgba(0,0,0,.2); color: #c5c8cc; border: 1px solid rgba(255,255,255,.08); }
body.dark .switch-track { background: #55595f; }
body.dark .switch input:checked + .switch-track { background: #d1d3d6; }
body.dark .switch input:checked + .switch-track::after { background: #232528; }
body.dark .modal-close, body.dark .month-nav button { background: rgba(255,255,255,.08); color: #e5e6e8; border-color: rgba(255,255,255,.12); }
body.dark .note-card.active { border-color: rgba(255,255,255,.28); }
body.dark .note-detail h4 { color: #d0d2d6; }
body.dark .modal-backdrop { background: rgba(5, 6, 8, .62); }
body.dark .priority-dot { background: #b7bac0; }

/* Deeper, matte graphite glass treatment inspired by the supplied reference. */
body.dark {
  --ink: #f1f2f3;
  --muted: #a9adb2;
  --soft-muted: #858a90;
  --line: rgba(238, 240, 243, .1);
  --canvas: #08090b;
  --paper: rgba(255, 255, 255, .055);
  --green: #55595f;
  --green-2: #b9bcc1;
  --green-soft: rgba(255, 255, 255, .075);
  --shadow: 0 20px 58px rgba(0, 0, 0, .36);
  background-color: #08090b;
  background-image:
    radial-gradient(ellipse at 72% -12%, rgba(177, 181, 188, .11), transparent 42%),
    radial-gradient(ellipse at 4% 74%, rgba(111, 115, 122, .09), transparent 38%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  background-size: auto, auto, 180px 180px;
  background-attachment: fixed;
}
body.dark .sidebar, body.dark .panel, body.dark .summary-card,
body.dark .project-mini, body.dark .workspace-switcher, body.dark .search-box,
body.dark .button-secondary, body.dark .calendar-cell, body.dark .modal {
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  border-color: rgba(235, 237, 240, .105);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 48px rgba(0,0,0,.26);
  backdrop-filter: blur(28px) saturate(125%);
  -webkit-backdrop-filter: blur(28px) saturate(125%);
}
body.dark .sidebar { background: rgba(16, 17, 20, .68); }
body.dark .topbar { background: rgba(13, 14, 17, .62); border-color: rgba(235,237,240,.09); backdrop-filter: blur(30px) saturate(130%); -webkit-backdrop-filter: blur(30px) saturate(130%); }
body.dark .dashboard-hero { background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.028)); border-color: rgba(255,255,255,.11); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 54px rgba(0,0,0,.28); backdrop-filter: blur(28px) saturate(125%); -webkit-backdrop-filter: blur(28px) saturate(125%); }
body.dark .sidebar-tip, body.dark .filter-tabs, body.dark .language-switch,
body.dark .note-transcript, body.dark .ai-summary, body.dark .modal-note,
body.dark .form-field input, body.dark .form-field select, body.dark .form-field textarea,
body.dark .inline-search, body.dark .phase-item {
  background: rgba(255,255,255,.045);
  border-color: rgba(235,237,240,.085);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}
body.dark .note-card.active, body.dark .project-select.active,
body.dark .project-select:hover, body.dark .nav-item.active { background: rgba(255,255,255,.105); }
body.dark .filter-tab.active, body.dark .language-option.active,
body.dark .day-pill.today strong { background: rgba(255,255,255,.12); color: #96b6fd; }
body.dark .calendar-cell.today { background: rgba(255,255,255,.12); color: #f1f2f3; }
body.dark .calendar-cell.today { border-color: rgba(255,255,255,.28); }
body.dark .button-primary { background: linear-gradient(135deg, #f0f1f2, #c8cbd0); color: #17181b; box-shadow: 0 8px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.8); }
body.dark .button-primary:hover { background: #fff; }
body.dark .button-secondary:hover { background: rgba(255,255,255,.11); }
body.dark .project-chip i, body.dark .priority-dot, body.dark .agenda-mark,
body.dark .agenda-mark.blue, body.dark .agenda-mark.orange,
body.dark .notification-dot { background: #aeb2b7 !important; }
body.dark .task-check { background: rgba(255,255,255,.04); border-color: #7d8187; }
body.dark .task-check:checked { background: #d7d9dc; border-color: #d7d9dc; }
body.dark .form-field input:focus, body.dark .form-field select:focus,
body.dark .form-field textarea:focus, body.dark input:focus-visible,
body.dark textarea:focus-visible, body.dark select:focus-visible,
body.dark button:focus-visible { outline-color: rgba(220,223,228,.28); border-color: rgba(220,223,228,.35); }
body.dark .modal-backdrop { background: rgba(2, 3, 5, .68); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.dark .toast { background: rgba(36,38,42,.92); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1120px) {
  .page-content { padding-left: 27px; padding-right: 27px; }
  .topbar { padding-left: 27px; padding-right: 27px; }
  .project-layout { grid-template-columns: 235px minmax(0,1fr); }
  .dashboard-hero { grid-template-columns: 1fr 230px; }
  .notes-layout { grid-template-columns: minmax(0,1fr) 280px; }
}
@media (max-width: 900px) {
  .sidebar { width: 70px; padding: 20px 9px 12px; align-items: center; }
  .brand { width: 100%; justify-content: center; margin: 0 0 28px; }
  .brand-name { font-size: 11px; letter-spacing: -.45px; }
  .workspace-copy, .switch-chevron, .nav-label, .nav-item>span:not(.nav-icon), .sidebar-tip, .profile-copy, .more-dots { display: none; }
  .workspace-switcher { display: none; }
  .primary-nav { width: 100%; }
  .nav-item { height: 42px; justify-content: center; padding: 0; }
  .nav-item>span.nav-icon { display: inline-grid; }
  .nav-count { position: absolute; margin-left: 28px; margin-top: -21px; min-width: 14px; height: 14px; font-size: 8px; background: #e2ebe0; }
  .profile-row { justify-content: center; padding: 14px 0 0; }
  .main-area { margin-left: 70px; }
  .dashboard-grid, .calendar-layout { grid-template-columns: 1fr; }
  .calendar-side { grid-template-columns: repeat(2,1fr); }
  .notes-layout { grid-template-columns: 1fr; }
  .notes-aside { position: static; }
}
@media (max-width: 650px) {
  .sidebar { inset: auto 0 0; z-index: 22; width: 100%; height: calc(64px + env(safe-area-inset-bottom)); padding: 5px 4px env(safe-area-inset-bottom); flex-direction: row; align-items: stretch; overflow: hidden; border: 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 -8px 24px rgba(18,20,24,.07); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .brand, .workspace-switcher, .nav-label, .sidebar-bottom { display: none; }
  .primary-nav { display: flex; align-items: stretch; width: 100%; min-width: 0; gap: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .nav-item { position: relative; display: flex; flex: 1 0 43px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: auto; min-width: 43px; height: 100%; padding: 3px 2px; border-radius: 8px; }
  .nav-item>span.nav-icon { display: inline-grid; width: 17px; height: 17px; }
  .nav-item>span:not(.nav-icon) { display: block; max-width: 100%; overflow: hidden; color: inherit; font-size: 7px; line-height: 1.1; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .nav-item>span.nav-count { display: none; }
  .settings-nav { height: 100%; margin: 0; padding-top: 3px; border: 0; border-radius: 8px; }
  body.dark .sidebar { background: rgba(20,21,24,.95); border-color: rgba(255,255,255,.1); }
  .main-area { margin-left: 0; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .topbar { height: 59px; padding: 0 15px; }
  .crumb { gap: 7px; font-size: 10px; }
  .crumb>span:nth-child(2), .crumb-sep { display: none; }
  .search-box { width: 34px; border: 0; background: transparent; padding: 0; }
  .search-box input, .search-box kbd { display: none; }
  .topbar-actions { gap: 12px; }
  .page-content { padding: 23px 14px 38px; }
  .quick-note-fab { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .quick-note-fab { width: 54px; height: 54px; min-width: 54px; justify-content: center; gap: 0; padding: 0; border-radius: 50%; }
  .quick-note-fab > svg, .quick-note-fab-label { display: none; }
  .quick-note-fab-mobile-plus { display: grid; place-items: center; width: 24px; height: 24px; }
  .quick-note-fab-mobile-plus svg { width: 24px; height: 24px; }
  .quick-note-count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border: 1px solid var(--paper); background: #555a62; color: #fff; }
  .quick-note-panel { right: 12px; bottom: calc(132px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); max-height: calc(100vh - 154px - env(safe-area-inset-bottom)); }
  .quick-note-compose { min-height: 0; overflow: auto; }
  .quick-note-compose textarea { min-height: 112px; }
  .quick-note-meta { grid-template-columns: 1fr; gap: 8px; }
  .page-heading { align-items: flex-start; gap: 12px; }
  h1 { font-size: 22px; }
  .page-heading h1 { font-size: 19px; }
  .heading-subtitle { font-size: 10px; }
  .heading-actions .button-secondary { display: none; }
  .button { height: 34px; padding: 0 10px; font-size: 10px; }
  .dashboard-hero { grid-template-columns: 1fr; padding: 22px; gap: 17px; }
  .hero-copy h1 { font-size: 22px; }
  .hero-stats { justify-content: flex-start; }
  .hero-divider { height: 32px; }
  .hero-stat strong { font-size: 20px; }
  .summary-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .summary-card { min-height: 83px; padding: 11px; }
  .summary-value { font-size: 19px; }
  .project-mini-grid { grid-template-columns: 1fr; }
  .project-mini { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 0 10px; padding: 11px; }
  .project-mini .project-color { grid-row: span 3; margin: 0; }
  .project-mini h3 { margin: 0; }
  .project-mini p { grid-column: 2; margin: 4px 0 0; }
  .project-mini .progress-track, .project-mini .progress-caption { grid-column: 3; width: 80px; }
  .dashboard-grid { gap: 12px; }
  .panel-header { padding: 14px 13px 10px; }
  .panel-content { padding: 0 13px 12px; }
  .task-row-meta .priority-label { display: none; }
  .task-row { gap: 8px; }
  .page-heading .heading-actions .button { font-size: 0; gap: 0; width: 35px; padding: 0; }
  .page-heading .heading-actions .button svg, .page-heading .heading-actions .button .plus { font-size: 16px; }
  .view-toolbar { align-items: flex-start; flex-direction: column; }
  .inline-search { width: 100%; }
  .task-table { display: grid; gap: 8px; overflow: visible; border: 0; background: transparent; }
  .task-table .table-labels { display: none; }
  .task-table .task-table-row { position: relative; display: grid !important; grid-template-columns: minmax(0,1fr) max-content !important; gap: 9px 10px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
  .task-table .task-name-cell { grid-column: 1 / -1; padding-right: 22px; }
  .task-table .task-table-row > .project-chip { grid-column: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .task-table .task-table-row > .due-cell { grid-column: 2; grid-row: 2; text-align: right; }
  .task-table .task-table-row > span:nth-of-type(3) { grid-column: 1 / -1; }
  .task-table .row-more { position: absolute; top: 7px; right: 8px; }
  .project-layout { grid-template-columns: 1fr; }
  .project-list { display: flex; overflow-x: auto; gap: 4px; }
  .project-select { width: 215px; flex: 0 0 auto; }
  .project-detail { padding: 13px; }
  .phase-items { padding-left: 19px; }
  .goal-grid { grid-template-columns: 1fr; }
  .team-summary { gap: 7px; }
  .team-stat { padding: 11px; }
  .team-stat strong { font-size: 16px; }
  .team-table { overflow: visible; padding: 0 12px 8px; }
  .team-head { display: none; }
  .member-row { grid-template-columns: minmax(0,1fr) auto; gap: 9px 12px; min-width: 0; margin: 8px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
  .member-person { grid-column: 1 / -1; }
  .member-role { grid-column: 1; }
  .member-tasks { grid-column: 2; justify-self: end; }
  .workload { grid-column: 1 / -1; }
  .member-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 2px; }
  .calendar-side { grid-template-columns: 1fr; }
  .calendar-panel { padding: 11px; }
  .calendar-grid { gap: 3px; }
  .calendar-weekday { padding: 3px 1px; font-size: 7px; }
  .calendar-cell { min-height: 45px; padding: 4px 3px; font-size: 8px; }
  .calendar-event-dot { height: 4px; margin-top: 4px; padding: 0; border-radius: 999px; font-size: 0; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .modal { padding: 17px; }
  .toast-root { left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .sidebar { height: calc(104px + env(safe-area-inset-bottom)); }
  .primary-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 43px); align-content: center; gap: 2px 3px; overflow: visible; }
  .nav-item { flex: none; min-width: 0; height: 43px; }
  .nav-item>span:not(.nav-icon) { font-size: 8px; }
  .main-area { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .quick-note-fab { bottom: calc(116px + env(safe-area-inset-bottom)); }
  .quick-note-panel { bottom: calc(172px + env(safe-area-inset-bottom)); max-height: calc(100vh - 194px - env(safe-area-inset-bottom)); }
  .toast-root { bottom: calc(112px + env(safe-area-inset-bottom)); }
}

html[data-auth-ready="checking"] .app-shell,
html[data-auth-ready="login"] .app-shell { display: none; }
html[data-auth-ready="checking"] #auth-root { display: grid; min-height: 100vh; place-items: center; color: #777b82; }
html[data-auth-ready="checking"] #auth-root::before { content: "Preparing PURE…"; font-size: 13px; }
html[data-auth-ready="login"] #auth-root { display: block; }
html[data-auth-ready="demo"] #auth-root,
html[data-auth-ready="authenticated"] #auth-root { display: none; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; background: #f5f6f7; color: #232529; }
.auth-card { width: min(100%, 430px); padding: 30px; border: 1px solid #e4e6e9; border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: 0 24px 70px rgba(20,22,26,.1); }
.auth-brand { display: flex; align-items: center; margin-bottom: 28px; font: 800 25px/1 Manrope, sans-serif; letter-spacing: -1.8px; color: #202124; }
.auth-card h1 { font: 700 25px/1.25 'PURE Thai', Manrope, sans-serif; color: #232529; margin-bottom: 8px; }
.auth-subtitle { color: #777b82; font-size: 12px; line-height: 1.6; margin-bottom: 22px; }
.auth-provider-list { display: grid; gap: 9px; }
.auth-provider { width: 100%; min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #e1e3e6; border-radius: 10px; background: #fff; color: #303338; text-decoration: none; font-size: 12px; font-weight: 600; transition: .16s ease; }
.auth-provider:hover { background: #f5f6f7; border-color: #cfd2d7; }
.auth-provider[aria-disabled="true"] { color: #a5a8ae; background: #f4f5f6; cursor: not-allowed; }
.auth-provider small { margin-left: auto; color: #9a9da3; font-size: 8px; font-weight: 500; }
.auth-provider:disabled { cursor: not-allowed; }
.auth-provider-mark { width: 18px; text-align: center; font: 700 13px 'PURE Thai', Manrope, sans-serif; }
.auth-provider-mark.google { color: #4285f4; }
.auth-provider-mark.line { color: #06c755; }
.auth-provider-mark.facebook { color: #1877f2; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #96999f; font-size: 10px; margin: 20px 0 16px; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: #e6e8eb; }
.auth-fields { display: grid; gap: 12px; }
.auth-field { display: grid; gap: 6px; color: #595d64; font-size: 10px; font-weight: 600; }
.auth-field input { width: 100%; height: 40px; padding: 0 11px; border: 1px solid #dfe1e5; border-radius: 9px; background: #fff; color: #25282d; outline: 0; }
.auth-field input:focus { border-color: #8c9096; box-shadow: 0 0 0 3px rgba(93,97,104,.12); }
.auth-primary { width: 100%; min-height: 41px; border: 0; border-radius: 9px; background: #34373c; color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.auth-primary:hover { background: #24262a; }
.auth-primary:disabled { opacity: .6; cursor: wait; }
.auth-error { min-height: 16px; margin: 0; color: #a84646; font-size: 10px; line-height: 1.5; }
.auth-toggle { border: 0; background: transparent; color: #565a60; font-size: 10px; cursor: pointer; padding: 4px; }
.auth-toggle strong { color: #25282d; }
.auth-footnote { margin: 14px 0 0; color: #96999f; font-size: 9px; line-height: 1.5; text-align: center; }
body.dark .auth-screen { background: #08090b; color: #f1f2f3; }
body.dark .auth-card { background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.045)); border-color: rgba(235,237,240,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 26px 72px rgba(0,0,0,.42); backdrop-filter: blur(28px) saturate(125%); -webkit-backdrop-filter: blur(28px) saturate(125%); }
body.dark .auth-brand, body.dark .auth-card h1, body.dark .auth-toggle strong { color: #f1f2f3; }
body.dark .auth-subtitle, body.dark .auth-toggle, body.dark .auth-footnote { color: #a9adb2; }
body.dark .auth-provider { color: #eceef0; background: rgba(255,255,255,.045); border-color: rgba(235,237,240,.11); }
body.dark .auth-provider:hover { background: rgba(255,255,255,.09); }
body.dark .auth-provider[aria-disabled="true"] { color: #747980; background: rgba(255,255,255,.025); }
body.dark .auth-provider small { color: #7f848b; }
body.dark .auth-provider:disabled { color: #8a8f96; }
body.dark .auth-divider::before, body.dark .auth-divider::after { background: rgba(255,255,255,.1); }
body.dark .auth-field { color: #c2c5ca; }
body.dark .auth-field input { background: rgba(0,0,0,.22); border-color: rgba(235,237,240,.12); color: #f1f2f3; }
body.dark .auth-primary { background: linear-gradient(135deg, #e7e8ea, #c2c5ca); color: #17181b; }
.integration-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.integration-actions .text-link { padding: 7px 0; }
.integration-card .button:disabled { opacity: .52; cursor: not-allowed; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.account-profile-card { grid-column: 1 / -1; min-height: 0; }
.account-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.account-profile-heading .setting-card-head { margin-bottom: 14px; }
.profile-photo-row { display: flex; align-items: center; gap: 16px; margin: 4px 0 20px; }
.profile-photo-preview { display: grid; place-items: center; width: 72px; height: 72px; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: #eceef0; color: #5e6268; font-size: 19px; font-weight: 700; }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-actions { display: grid; gap: 6px; }
.profile-photo-actions > strong { color: var(--ink); font-size: 11px; }
.profile-photo-actions > small { color: var(--muted); font-size: 9px; }
.profile-photo-buttons { display: flex; align-items: center; gap: 12px; margin-top: 3px; }
.profile-photo-buttons label { cursor: pointer; }
.profile-photo-input { max-width: 280px; min-width: 0; color: var(--muted); font-size: 10px; }
.profile-photo-input::file-selector-button { margin-right: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.profile-photo-input::file-selector-button:hover { background: var(--canvas); }
.profile-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; }
.profile-fields-grid .auth-field input { height: 39px; }
.account-profile-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; }
.account-profile-footer .setting-note { margin: 0; max-width: 540px; }
.profile-save-message { min-height: 15px; margin: 7px 0 0; color: #a84646; font-size: 9px; }
.profile-save-message[data-state="success"] { color: #47704f; }
.profile-save-message[data-state="pending"] { color: var(--muted); }
body.dark .profile-photo-preview { border-color: rgba(235,237,240,.15); background: rgba(255,255,255,.08); color: #e3e5e8; }
body.dark .profile-photo-actions > strong { color: #eceef0; }
body.dark .profile-photo-input::file-selector-button { border-color: rgba(235,237,240,.14); background: rgba(255,255,255,.07); color: #eceef0; }
body.dark .profile-save-message[data-state="success"] { color: #a8d0ad; }
body.dark .form-field select { color-scheme: dark; }
body.dark .form-field select option { background-color: #25272c; color: #f0f1f2; }
body:not(.dark) .form-field select { color-scheme: light; }
body:not(.dark) .form-field select option { background-color: #f1f2f4; color: #45484e; }
body:not(.dark) .progress-fill,
body.dark .progress-fill { display: block; background: #96b6fd; }
body .team-stat strong { color: #96b6fd; }
@media (max-width: 620px) {
  .profile-fields-grid { grid-template-columns: 1fr; }
  .account-profile-footer { align-items: flex-start; flex-direction: column; }
  .account-profile-heading { align-items: center; }
  .profile-photo-row { align-items: flex-start; }
}

/* Mobile readability: give small supporting text and controls more room. */
@media (max-width: 650px) {
  body { font-size: 16px; }
  .nav-item>span:not(.nav-icon) { font-size: 9px; line-height: 1.2; }
  .primary-nav { gap: 4px; overflow: hidden; }
  .primary-nav > .nav-item[data-view="goals"],
  .primary-nav > .nav-item[data-view="notes"],
  .primary-nav > .nav-item[data-view="team"],
  .primary-nav > .nav-item[data-view="calendar"],
  .primary-nav > .nav-item[data-view="settings"] { display: none; }
  .primary-nav > .mobile-more-trigger { display: flex; }
  .primary-nav > .nav-item { flex: 1 1 0; min-width: 0; }
  .mobile-more-menu:not([hidden]) {
    position: fixed;
    z-index: 26;
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    display: grid;
    width: min(220px, calc(100vw - 24px));
    gap: 3px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 16px 42px rgba(18,20,24,.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .mobile-more-menu .nav-item {
    display: flex;
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: 11px;
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
  }
  .mobile-more-menu .nav-item>span.nav-icon { width: 19px; height: 19px; }
  .mobile-more-menu .nav-item>span:not(.nav-icon) {
    max-width: none;
    overflow: visible;
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
    text-overflow: clip;
    white-space: normal;
  }
  body.dark .mobile-more-menu { background: rgba(34,36,40,.96); border-color: rgba(255,255,255,.12); }
  .crumb { font-size: 12px; }
  .page-content { font-size: 15px; }
  .eyebrow, .hero-kicker { font-size: 10px; }
  h1 { font-size: 24px; }
  .page-heading h1 { font-size: 21px; }
  .heading-subtitle { font-size: 13px; line-height: 1.5; }
  .button, .button-small { font-size: 13px; min-height: 40px; }
  .text-link, .filter-tab, .language-option { font-size: 12px; }
  .hero-copy h1 { font-size: 24px; }
  .hero-copy p { font-size: 14px; line-height: 1.5; }
  .hero-kicker { line-height: 1.4; }
  .hero-stat span, .summary-head { font-size: 12px; }
  .summary-foot { font-size: 11px; }
  .panel-title, .section-heading h2 { font-size: 15px; }
  .panel-subtitle, .section-heading p { font-size: 12px; line-height: 1.45; }
  .task-row-title, .task-name-copy strong { font-size: 13px; line-height: 1.4; }
  .task-project, .task-row-meta, .task-name-copy small, .project-chip, .due-cell { font-size: 11px; }
  .agenda-time { width: 44px; font-size: 11px; }
  .agenda-info strong { font-size: 12px; line-height: 1.4; }
  .agenda-info small, .day-pill { font-size: 11px; }
  .day-pill strong { width: 30px; height: 30px; font-size: 12px; }
  .project-mini h3, .project-select-copy strong { font-size: 13px; line-height: 1.4; }
  .project-mini p, .project-select-copy small { font-size: 12px; line-height: 1.45; }
  .progress-caption, .project-progress-num { font-size: 11px; }
  .filter-tab { padding: 9px 10px; }
  .inline-search { height: 42px; }
  .inline-search input { font-size: 15px; }
  .task-name-copy small, .project-chip { line-height: 1.4; }
  .status-pill, .priority-pill, .integration-pill { font-size: 11px; }
  .project-detail-title h2 { font-size: 18px; line-height: 1.3; }
  .project-detail-title p, .detail-progress span { font-size: 12px; line-height: 1.45; }
  .phase-summary { min-height: 58px; }
  .phase-copy strong { font-size: 13px; line-height: 1.35; }
  .phase-copy small, .phase-count { font-size: 11px; line-height: 1.4; }
  .subtask-row { min-height: 42px; }
  .subtask-row span, .inline-subtask-form input { font-size: 12px; line-height: 1.4; }
  .inline-subtask-form { min-height: 44px; }
  .inline-subtask-form input { height: 42px; }
  .inline-subtask-form button { width: 34px; height: 34px; }
  .subtask-row input { width: 16px; height: 16px; }
  .goal-card h3 { font-size: 15px; line-height: 1.35; }
  .goal-card p { font-size: 13px; line-height: 1.5; }
  .goal-progress span, .goal-meta { font-size: 11px; }
  .goal-progress strong { font-size: 19px; }
  .note-date, .note-card-meta, .note-detail .note-meta { font-size: 11px; }
  .note-card h3 { font-size: 14px; line-height: 1.4; }
  .note-card p, .note-transcript, .ai-summary { font-size: 12px; line-height: 1.6; }
  .note-detail h2 { font-size: 18px; line-height: 1.35; }
  .note-detail h4 { font-size: 11px; }
  .extracted-row { font-size: 12px; line-height: 1.5; }
  .demo-label { font-size: 10px; }
  .team-stat span, .member-role, .member-tasks, .workload span { font-size: 11px; }
  .team-stat strong { font-size: 19px; }
  .member-person strong { font-size: 13px; }
  .member-person small { font-size: 11px; }
  .calendar-month-head h2 { font-size: 16px; }
  .calendar-weekday { font-size: 9px; }
  .calendar-cell { min-height: 48px; font-size: 10px; }
  .integration-head strong { font-size: 12px; }
  .integration-head small, .upcoming-copy small { font-size: 10px; }
  .integration-card p { font-size: 12px; line-height: 1.5; }
  .upcoming-date strong { font-size: 13px; }
  .upcoming-date small { font-size: 9px; }
  .upcoming-copy strong { font-size: 12px; }
  .empty-state, .empty-state strong { font-size: 13px; }
  .modal-head h2 { font-size: 18px; }
  .modal-head p, .modal-note { font-size: 12px; line-height: 1.5; }
  .form-field label { font-size: 12px; }
  .form-field input, .form-field select, .form-field textarea,
  .quick-note-meta .form-field input, .quick-note-meta .form-field select { min-height: 44px; font-size: 16px; }
  .modal-footer .button { min-height: 44px; }
  .toast { font-size: 13px; line-height: 1.45; }
  .quick-note-heading strong { font-size: 13px; }
  .quick-note-heading small, .quick-note-meta .form-field label { font-size: 12px; }
  .quick-note-tab { min-height: 40px; font-size: 12px; }
  .quick-note-compose textarea { min-height: 130px; font-size: 16px; }
  .quick-note-footer small { font-size: 11px; }
  .quick-note-save { min-height: 40px; font-size: 13px; }
  .quick-note-item p { font-size: 13px; }
  .quick-note-chip { font-size: 11px; }
  .quick-note-item time, .quick-note-empty small { font-size: 11px; }
  .quick-note-empty strong { font-size: 13px; }
  .setting-card-head strong { font-size: 14px; }
  .setting-card-head small, .setting-note, .setting-toggle-copy small, .settings-footer { font-size: 12px; line-height: 1.5; }
  .setting-toggle-copy strong { font-size: 13px; }
  .language-option { min-height: 40px; }
  .profile-photo-actions > strong { font-size: 13px; }
  .profile-photo-actions > small, .profile-photo-input { font-size: 11px; }
  .auth-card { padding: 24px; }
  .auth-card h1 { font-size: 24px; }
  .auth-subtitle { font-size: 14px; line-height: 1.55; }
  .auth-provider { min-height: 48px; font-size: 14px; }
  .auth-provider small { font-size: 10px; }
  .auth-divider { font-size: 12px; }
  .auth-field { font-size: 12px; }
  .auth-field input { height: 46px; font-size: 16px; }
  .auth-primary { min-height: 46px; font-size: 14px; }
  .auth-error, .auth-toggle { font-size: 12px; }
  .auth-footnote { font-size: 11px; }
}

@media (max-width: 360px) {
  .sidebar { height: calc(64px + env(safe-area-inset-bottom)); }
  .primary-nav { display: flex; grid-template-columns: none; grid-template-rows: none; align-content: stretch; overflow: hidden; }
  .primary-nav > .nav-item { flex: 1 1 0; min-width: 0; height: 100%; }
  .main-area { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .quick-note-fab { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .quick-note-panel { bottom: calc(132px + env(safe-area-inset-bottom)); max-height: calc(100vh - 154px - env(safe-area-inset-bottom)); }
  .nav-item>span:not(.nav-icon) { font-size: 9px; }
  .calendar-weekday { font-size: 8px; }
  .calendar-cell { font-size: 9px; }
}

@media (max-width: 650px) {
  .calendar-day-num { top: 6px; left: 6px; }
  .calendar-event-card { grid-template-columns: 56px 3px minmax(0,1fr); gap: 9px; padding: 10px; }
  .calendar-event-type { grid-column: 3; justify-self: start; margin-top: -3px; }
}

body.dark .calendar-cell.selected { border-color: #96b6fd; background: rgba(150,182,253,.16); color: #f1f2f3; }
body.dark .calendar-cell.selected .calendar-day-num { color: #b6ccff; }
body.dark .calendar-event-card { background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); border-color: rgba(235,237,240,.12); }
body.dark .calendar-event-type { background: rgba(150,182,253,.18); color: #b6ccff; }

/* Daily task view and status choices */
.daily-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 3px; padding: 0 4px; border-radius: 6px; background: #e9eefb; color: #5774b3; font-size: 10px; }
.task-scope { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: -1px 0 12px; }
.task-scope > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.task-scope strong { color: var(--ink); font-size: 12px; font-weight: 650; }
.task-scope-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; border-radius: 7px; padding: 0 5px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.task-all-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; border: 0; background: transparent; color: #96b6fd; font-size: 11px; font-weight: 650; cursor: pointer; }
.task-all-toggle svg { width: 14px; height: 14px; }
.complete-period { display: inline-flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; }
.period-button { border: 1px solid var(--line); background: var(--paper); color: var(--muted); border-radius: 8px; min-height: 32px; padding: 6px 12px; font-size: 10px; cursor: pointer; }
.period-button.active { border-color: #96b6fd; background: rgba(150,182,253,.14); color: #6c8fd7; font-weight: 700; }
.status-choice-list { display: grid; gap: 8px; }
.status-choice { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.status-choice:hover, .status-choice.selected { border-color: #96b6fd; background: rgba(150,182,253,.1); }
.status-choice-indicator { width: 9px; height: 9px; border-radius: 50%; background: #a3a8b0; flex: 0 0 auto; }
.status-choice-indicator.doing { background: #96b6fd; }
.status-choice-indicator.done { background: #42ae77; }
.status-choice-check { display: inline-grid; place-items: center; margin-left: auto; color: #96b6fd; }
.status-choice-check svg { width: 18px; height: 18px; }
.status-choice.status-choice-delete { margin-top: 5px; border-color: rgba(198,94,98,.28); color: #b7565c; }
.status-choice.status-choice-delete:hover { border-color: #b7565c; background: rgba(198,94,98,.08); color: #b7565c; }
.task-table .row-more { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; }
.task-table .row-more:hover { background: rgba(150,182,253,.12); color: #96b6fd; }
body.dark .daily-count { background: rgba(150,182,253,.16); color: #b6ccff; }
body.dark .period-button.active, body.dark .status-choice.selected, body.dark .status-choice:hover { background: rgba(150,182,253,.13); color: #dbe6ff; }
body.dark .button-danger-outline { color: #f0a3a7; border-color: rgba(240,163,167,.38); }
body.dark .button-danger-outline:hover, body.dark .status-choice.status-choice-delete:hover { background: rgba(240,163,167,.1); }
body.dark .status-choice.status-choice-delete { color: #f0a3a7; border-color: rgba(240,163,167,.25); }

.theme-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 410px; padding: 4px; border-radius: 10px; background: #eff0f2; }
.theme-option { min-width: 0; min-height: 38px; padding: 7px 8px; border: 0; border-radius: 7px; background: transparent; color: #6d727a; font-size: 11px; font-weight: 600; cursor: pointer; }
.theme-option:hover { color: #34373c; }
.theme-option.active { background: #fff; color: #30343a; box-shadow: 0 1px 5px rgba(20,22,26,.12); }
body.dark .theme-switch { background: rgba(0,0,0,.25); }
body.dark .theme-option { color: #aeb3bb; }
body.dark .theme-option:hover { color: #f0f1f3; }
body.dark .theme-option.active { background: rgba(255,255,255,.14); color: #f4f5f6; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
body:not(.dark) .priority-dot.low, body.dark .priority-dot.low { width: 8px; height: 8px; background: #45ad74 !important; }
body:not(.dark) .priority-dot.medium, body.dark .priority-dot.medium { width: 8px; height: 8px; background: #e4b642 !important; }
body:not(.dark) .priority-dot.high, body.dark .priority-dot.high { width: 8px; height: 8px; background: #dc6863 !important; }

@media (max-width: 650px) {
  .task-scope strong { font-size: 13px; }
  .task-all-toggle { font-size: 12px; min-height: 38px; }
  .period-button { min-height: 40px; font-size: 12px; }
  .status-choice { min-height: 52px; font-size: 14px; }
  .task-table .row-more { width: 36px; height: 36px; }
  .task-table .task-name-cell { padding-right: 40px; }
  .team-photo-editor { align-items: flex-start; }
  .team-photo-input { max-width: 180px; font-size: 11px; }
}

.day-pill { min-width: 0; border: 0; border-radius: 9px; background: transparent; cursor: pointer; transition: background .16s ease, color .16s ease; }
.day-pill:hover { background: rgba(150,182,253,.08); color: #96b6fd; }
.day-pill.selected { color: #96b6fd; font-weight: 700; }
.day-pill.selected strong, body:not(.dark) .day-pill.selected strong, body.dark .day-pill.selected strong { background: rgba(150,182,253,.2); color: #96b6fd; font-weight: 700; }

.overdue-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.overdue-detail-grid section { min-width: 0; }
.overdue-detail-grid h3 { margin: 4px 0 10px; color: #767b84; font-size: 11px; font-weight: 700; }
.overdue-detail-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 4px; border: 0; border-bottom: 1px solid #e8eaed; background: transparent; text-align: left; cursor: pointer; }
.overdue-detail-item:hover { background: rgba(150,182,253,.08); }
.overdue-detail-item .project-color { width: 26px; height: 26px; margin: 0; flex: 0 0 auto; }
.overdue-detail-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #dc6863; }
.overdue-detail-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.overdue-detail-copy strong { overflow: hidden; color: #34383e; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.overdue-detail-copy small, .overdue-detail-item time { color: #8b9098; font-size: 10px; }
.overdue-detail-item time { flex: 0 0 auto; white-space: nowrap; }
.overdue-detail-arrow { color: #96b6fd; font-size: 16px; }
.overdue-detail-empty { margin: 12px 0; color: #8b9098; font-size: 11px; }
body.dark .overdue-detail-grid h3, body.dark .overdue-detail-copy small, body.dark .overdue-detail-item time, body.dark .overdue-detail-empty { color: #a9adb5; }
body.dark .overdue-detail-item { border-color: rgba(255,255,255,.09); }
body.dark .overdue-detail-copy strong { color: #e8eaed; }
@media (max-width: 650px) {
  .overdue-detail-grid { grid-template-columns: 1fr; gap: 18px; }
  .overdue-detail-copy strong { font-size: 12px; }
}

.project-target-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; color: #858b94; font-size: 10px; }
.project-target-row input { min-width: 0; width: 150px; height: 32px; padding: 0 9px; border: 1px solid #e2e5e9; border-radius: 8px; background: #f8f9fa; color: #454a51; font-size: 10px; cursor: pointer; }
.project-target-row + .detail-progress { margin-top: 13px; }
body.dark .project-target-row { color: #a9adb5; }
body.dark .project-target-row input { color-scheme: dark; border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.06); color: #e8eaed; }
@media (max-width: 650px) {
  .project-target-row { font-size: 12px; }
  .project-target-row input { height: 38px; font-size: 12px; }
}

@media (max-width: 520px) {
  .task-detail h3 { font-size: 16px; }
  .task-detail-meta { gap: 13px 10px; }
  .task-detail-meta span, .task-detail-meta strong, .task-detail-description > strong, .task-detail-description p { font-size: 13px; }
  .task-detail-actions .button { flex: 1; justify-content: center; }
  .task-detail-actions .button-danger-outline { flex-basis: 100%; }
  .delete-task-confirm-actions .button { flex: 1; }
}
