:root {
  color-scheme: light;
  --ink: #1d2b35;
  --muted: #85919a;
  --soft: #aab3b9;
  --line: #e9edef;
  --paper: #fff;
  --canvas: #f6f7f8;
  --blue: #287ca7;
  --blue-dark: #1f6387;
  --blue-pale: #eaf3f8;
  --mint: #4a9d83;
  --mint-pale: #e7f3ef;
  --orange: #e69458;
  --orange-pale: #fff1e6;
  --red: #d77770;
  --red-pale: #fff0ef;
  --shadow: 0 12px 32px rgb(34 53 66 / 7%);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgb(40 124 167 / 27%); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 4; width: 248px; display: flex; flex-direction: column; padding: 29px 19px 17px; background: var(--paper); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; margin: 2px 0 39px 7px; }
.brand-mark { width: 37px; height: 37px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--blue); position: relative; flex: none; }
.brand-mark::before { content: ""; width: 20px; height: 20px; border: 2px solid white; border-radius: 50%; }
.brand-mark::after { content: ""; position: absolute; width: 2px; height: 8px; top: 12px; left: 18px; border-radius: 2px; background: white; }
.brand-mark span { width: 6px; height: 2px; position: absolute; top: 19px; left: 19px; background: white; transform: rotate(38deg); transform-origin: left center; }
.brand-name { font: 800 20px/1 "Manrope", "Segoe UI", sans-serif; letter-spacing: -1.2px; color: var(--ink); }
.brand-name > span { color: var(--blue); }
.brand-name small { display: block; margin-top: 5px; font: 600 8px/1 "DM Sans", "Segoe UI", sans-serif; color: #a1aab0; letter-spacing: 1.4px; }
.workspace-label, .eyebrow { color: #a0a9ae; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.workspace-label { margin: 0 0 10px 9px; }
.workspace-switcher { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; text-align: left; cursor: pointer; }
.workspace-avatar, .avatar, .avatar-button { display: inline-grid; place-items: center; color: #226787; background: #e5f1f5; font-weight: 700; }
.workspace-avatar { width: 31px; height: 31px; flex: none; border-radius: 9px; font-size: 11px; }
.workspace-member { min-width: 0; flex: 1; }
.workspace-member strong, .workspace-member small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-member strong { font-size: 12px; font-weight: 600; }
.workspace-member small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.switcher-chevron { color: #9aa4aa; font-size: 14px; }
.primary-nav { display: grid; gap: 5px; margin-top: 31px; }
.primary-nav a, .nav-settings { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent; color: #75828a; font-size: 12px; text-align: left; transition: background .16s, color .16s; cursor: pointer; }
.primary-nav a:hover, .nav-settings:hover { background: #f7f9fa; color: var(--ink); }
.primary-nav a.active { color: var(--blue); background: var(--blue-pale); font-weight: 600; }
.nav-icon { width: 18px; display: inline-block; font-size: 17px; text-align: center; }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { padding: 14px 14px 12px; border-radius: 11px; background: #f8f8f5; }
.note-spark { color: var(--orange); font-size: 16px; }
.sidebar-note p { margin: 8px 0 0; color: #818a8d; font: italic 11px/1.6 Georgia, serif; }
.nav-settings { width: 100%; margin-top: 12px; }
.sidebar-footer { display: flex; align-items: center; gap: 7px; margin: 16px 3px 0; color: #a0a9ae; font-size: 9px; }
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: #64b392; }

.main-area { min-height: 100vh; margin-left: 248px; }
.topbar { height: 67px; display: flex; align-items: center; justify-content: space-between; padding: 0 43px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 84%); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #9aa4aa; font-size: 11px; }
.breadcrumb strong { color: #46555d; font-weight: 600; }
.breadcrumb-separator { color: #d0d5d8; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: white; color: #67757d; font-size: 18px; cursor: pointer; }
.icon-button:hover { border-color: #cbd9df; color: var(--blue); }
.avatar-button { width: 32px; height: 32px; border: 0; border-radius: 50%; font-size: 11px; cursor: pointer; }
.mobile-brand { display: none; }
.page-content { max-width: 1280px; margin: auto; padding: 34px 43px 70px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.page-heading h1 { margin: 5px 0 0; font: 700 clamp(23px, 2.8vw, 29px)/1.2 Manrope, sans-serif; letter-spacing: -1.1px; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.eyebrow { margin: 0; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--blue); color: white; box-shadow: 0 3px 8px rgb(40 124 167 / 15%); }
.button-primary:hover { background: var(--blue-dark); }
.button-quiet { border-color: var(--line); background: white; color: #637078; }
.button-quiet:hover { background: #f8fafb; }
.button-small { min-height: 31px; padding: 0 10px; font-size: 10px; }
.button-danger { color: var(--red); }

.welcome-card { min-height: 183px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; position: relative; padding: 27px 33px; border-radius: 15px; color: white; background: linear-gradient(110deg, #287ba4 0%, #327fa4 62%, #438a9e 100%); }
.welcome-card::before, .welcome-card::after { content: ""; position: absolute; border: 1px solid rgb(255 255 255 / 12%); border-radius: 50%; pointer-events: none; }
.welcome-card::before { width: 260px; height: 260px; right: 12%; top: -158px; }
.welcome-card::after { width: 205px; height: 205px; right: -14px; bottom: -156px; }
.welcome-copy { position: relative; z-index: 1; }
.welcome-copy .eyebrow { color: rgb(255 255 255 / 63%); }
.welcome-copy h2 { margin: 8px 0 6px; font: 700 23px/1.3 "Manrope", "Segoe UI", sans-serif; letter-spacing: -.7px; }
.welcome-copy p { margin: 0; color: rgb(255 255 255 / 78%); font-size: 11px; }
.welcome-metric { position: relative; z-index: 1; min-width: 180px; padding-left: 22px; border-left: 1px solid rgb(255 255 255 / 27%); }
.welcome-metric span { display: block; color: rgb(255 255 255 / 70%); font-size: 10px; }
.welcome-metric strong { display: block; margin-top: 5px; font: 600 28px "Manrope", "Segoe UI", sans-serif; letter-spacing: -1px; }
.welcome-metric small { display: block; margin-top: 3px; color: rgb(255 255 255 / 72%); font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, .85fr); gap: 17px; margin-top: 17px; }
.stack { display: grid; align-content: start; gap: 17px; min-width: 0; }
.panel { min-width: 0; padding: 19px 20px; border: 1px solid #edf0f1; border-radius: 12px; background: white; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.panel-heading h2 { margin: 0; font: 700 13px "Manrope", "Segoe UI", sans-serif; letter-spacing: -.2px; }
.panel-link { border: 0; padding: 0; color: var(--blue); background: transparent; font-size: 10px; cursor: pointer; }
.panel-link:hover { text-decoration: underline; }
.muted-label { color: var(--muted); font-size: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.stat-card { min-height: 99px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.stat-label { display: flex; align-items: center; gap: 6px; color: #89949a; font-size: 10px; }
.stat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.stat-dot.orange { background: var(--orange); }
.stat-dot.mint { background: var(--mint); }
.stat-value { display: block; margin-top: 11px; font: 700 21px "Manrope", "Segoe UI", sans-serif; letter-spacing: -.7px; }
.stat-sub { display: block; margin-top: 4px; color: #a0a8ad; font-size: 9px; }
.progress-track { height: 5px; overflow: hidden; border-radius: 6px; background: #edf0f1; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--blue); transition: width .3s ease; }
.progress-fill.mint { background: var(--mint); }
.progress-fill.orange { background: var(--orange); }
.goal-row { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 8px; color: #748188; font-size: 10px; }
.goal-row strong { color: var(--ink); font-weight: 600; }
.advice-card { position: relative; overflow: hidden; padding: 18px; border: 1px solid #f1e7d8; border-radius: 12px; background: #fffcf6; }
.advice-title { display: flex; align-items: center; gap: 8px; font: 700 12px "Manrope", "Segoe UI", sans-serif; }
.advice-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: #b97c37; background: #fff0d4; }
.advice-card p { margin: 10px 0 0; color: #7c7b70; font-size: 11px; line-height: 1.65; }
.advice-card strong { color: #594f3d; }

.timer-panel { padding-bottom: 15px; }
.timer-list, .task-list, .project-list { display: grid; }
.timer-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid #f0f2f3; }
.timer-row:first-child { border-top: 0; }
.timer-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-pale); font-size: 15px; }
.timer-info { min-width: 0; }
.timer-info strong, .timer-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer-info strong { font-size: 11px; font-weight: 600; }
.timer-info small { margin-top: 4px; color: #97a1a6; font-size: 9px; }
.timer-controls { display: flex; align-items: center; gap: 8px; }
.timer-clock { font: 600 13px/1.3 "Manrope", "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timer-control { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: white; color: #69767d; cursor: pointer; }
.timer-control:hover { color: var(--blue); border-color: #c9dbe3; }
.timer-control.finish:hover { color: var(--mint); border-color: #b9daca; }
.timer-empty, .empty-state { padding: 19px 10px; color: #97a1a6; text-align: center; font-size: 11px; line-height: 1.6; }
.timer-empty span, .empty-state span { display: block; margin-bottom: 6px; font-size: 22px; opacity: .7; }
.activity-list { display: grid; gap: 14px; }
.activity-row { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 9px; }
.activity-mark { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: var(--blue-pale); color: var(--blue); font-size: 11px; }
.activity-copy strong, .activity-copy small { display: block; }
.activity-copy strong { font-size: 10px; font-weight: 600; }
.activity-copy small { margin-top: 3px; color: #9aa3a8; font-size: 9px; }
.activity-time { color: #68757d; font-size: 10px; font-weight: 600; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-chip { min-height: 29px; padding: 0 11px; border: 1px solid transparent; border-radius: 20px; color: #89949a; background: transparent; font-size: 10px; cursor: pointer; }
.filter-chip.active { border-color: #dbeaf0; color: var(--blue); background: #edf5f8; font-weight: 600; }
.search-input { width: min(230px, 100%); min-height: 33px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: 10px; }
.project-card { padding: 15px 0; border-top: 1px solid #f0f2f3; }
.project-card:first-child { border-top: 0; padding-top: 3px; }
.project-topline { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.project-name-wrap { min-width: 0; display: flex; gap: 11px; align-items: start; }
.project-color { width: 9px; height: 9px; margin-top: 5px; border-radius: 3px; flex: none; }
.project-name-wrap h3 { margin: 0; font: 600 12px "Manrope", "Segoe UI", sans-serif; }
.project-name-wrap p { margin: 4px 0 0; color: #929da2; font-size: 9px; line-height: 1.5; }
.project-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; margin: 10px 0 11px 20px; color: #8e999f; font-size: 9px; }
.project-progress { margin-left: 20px; }
.project-progress .goal-row { margin: 0 0 6px; font-size: 9px; }
.project-actions { display: flex; align-items: center; gap: 6px; }
.small-icon-button { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #738087; cursor: pointer; }
.small-icon-button:hover { color: var(--blue); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; color: #61737a; background: #f1f3f4; font-size: 8px; font-weight: 600; white-space: nowrap; }
.badge-personal { color: #668f7d; background: #eaf4ef; }
.badge-pro { color: #5584a0; background: #eaf3f8; }
.badge-warning { color: #b57937; background: #fff3e3; }
.badge-overdue { color: #bf625e; background: #fff0ef; }

.task-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 13px 0; border-top: 1px solid #f0f2f3; }
.task-row:first-child { border-top: 0; }
.task-check { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--mint); cursor: pointer; }
.task-main { min-width: 0; }
.task-main strong { display: block; font-size: 11px; font-weight: 600; }
.task-main small { display: block; margin-top: 4px; color: #96a0a5; font-size: 9px; line-height: 1.4; }
.task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.task-duration { color: #738087; font-size: 9px; white-space: nowrap; }
.task-main.completed strong { color: #a4adb1; text-decoration: line-through; }

.report-controls { display: flex; align-items: center; gap: 10px; }
.report-controls select, .field select, .field input, .field textarea { min-height: 38px; padding: 0 11px; border: 1px solid #e4e9eb; border-radius: 8px; color: #34434c; background: white; font-size: 11px; }
.report-controls select { min-height: 33px; font-size: 10px; }
.report-hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 21px; border-radius: 12px; color: white; background: linear-gradient(110deg, #2d799c, #3f8a9e); }
.report-hero span { color: rgb(255 255 255 / 72%); font-size: 10px; }
.report-hero strong { display: block; margin-top: 5px; font: 700 26px "Manrope", "Segoe UI", sans-serif; }
.report-hero .report-comparison { padding-left: 17px; border-left: 1px solid rgb(255 255 255 / 30%); }
.report-hero .report-comparison strong { font-size: 15px; }
.chart { height: 188px; display: flex; align-items: stretch; gap: 8px; padding: 8px 0 0; }
.chart-day { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 7px; }
.chart-value { color: #7e8b91; font-size: 8px; }
.chart-bar-wrap { width: min(28px, 70%); flex: 1; display: flex; align-items: end; }
.chart-bar { width: 100%; min-height: 3px; border-radius: 5px 5px 2px 2px; background: #c6dce5; transition: height .25s ease; }
.chart-bar.today { background: var(--blue); }
.chart-label { color: #929da2; font-size: 8px; }
.category-row { display: grid; grid-template-columns: 90px 1fr 54px; align-items: center; gap: 10px; margin: 13px 0; }
.category-label { overflow: hidden; color: #65737b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.category-hours { color: #65737b; font-size: 9px; text-align: right; }
.category-segments { height: 8px; display: flex; overflow: hidden; border-radius: 10px; background: #f0f2f2; }
.category-segments span { height: 100%; }
.insight-item { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid #f0f2f3; }
.insight-item:first-child { border-top: 0; padding-top: 0; }
.insight-symbol { width: 26px; height: 26px; display: grid; place-items: center; flex: none; border-radius: 8px; color: #97733d; background: #fff3df; }
.insight-item p { margin: 0; color: #7a8589; font-size: 10px; line-height: 1.6; }
.insight-item strong { color: #49585f; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); gap: 16px; align-items: start; }
.settings-section { padding: 18px 0; border-top: 1px solid #eff1f2; }
.settings-section:first-of-type { border-top: 0; padding-top: 0; }
.settings-section h3 { margin: 0 0 5px; font: 600 12px "Manrope", "Segoe UI", sans-serif; }
.settings-section > p { margin: 0 0 14px; color: #929da2; font-size: 10px; }
.inline-setting { display: flex; align-items: center; gap: 9px; color: #65737b; font-size: 10px; }
.inline-setting input { width: 83px; min-height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; }
.member-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid #f0f2f3; }
.member-row:first-child { border-top: 0; }
.member-row .avatar { width: 29px; height: 29px; border-radius: 50%; font-size: 9px; flex: none; }
.member-row-copy { flex: 1; min-width: 0; }
.member-row-copy strong, .member-row-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row-copy strong { font-size: 10px; font-weight: 600; }
.member-row-copy small { margin-top: 3px; color: #9ba4a8; font-size: 9px; }
.data-actions { display: grid; gap: 8px; }
.data-actions .button { justify-content: flex-start; }
.privacy-note { margin-top: 14px; padding: 12px; border-radius: 8px; color: #77868b; background: #f4f7f7; font-size: 9px; line-height: 1.6; }
.privacy-note strong { color: #50636a; }

.editor-dialog { width: min(470px, calc(100% - 28px)); max-height: min(90vh, 760px); padding: 0; overflow-y: auto; border: 1px solid #edf0f1; border-radius: 15px; color: var(--ink); background: white; box-shadow: 0 24px 80px rgb(21 41 52 / 23%); }
.editor-dialog::backdrop { background: rgb(23 39 48 / 38%); backdrop-filter: blur(2px); }
.editor-dialog form { padding: 23px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 20px; }
.dialog-heading h2 { margin: 5px 0 0; font: 700 20px "Manrope", "Segoe UI", sans-serif; }
.close-dialog { font-size: 20px; }
.dialog-fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { color: #738087; font-size: 10px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; }
.field textarea { min-height: 72px; padding: 9px 11px; resize: vertical; }
.field-hint { color: #a1aaae; font-size: 9px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field-inline { display: flex; align-items: center; gap: 8px; color: #758188; font-size: 10px; }
.field-inline input { width: 17px; min-height: 17px; accent-color: var(--blue); }
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch { width: 23px; height: 23px; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #dce2e5; cursor: pointer; }
.color-swatch.selected { box-shadow: 0 0 0 2px var(--blue); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 23px; }
.toast { position: fixed; z-index: 10; right: 22px; bottom: 22px; max-width: calc(100% - 30px); padding: 11px 15px; border-radius: 9px; color: white; background: #263d49; box-shadow: var(--shadow); font-size: 11px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.mobile-nav { display: none; }

@media (min-width: 1450px) {
  .page-content { padding-right: 55px; padding-left: 55px; }
  .topbar { padding-right: 55px; padding-left: 55px; }
}
@media (max-width: 1050px) {
  .sidebar { width: 215px; padding-right: 14px; padding-left: 14px; }
  .main-area { margin-left: 215px; }
  .topbar { padding-right: 28px; padding-left: 28px; }
  .page-content { padding-right: 28px; padding-left: 28px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.3fr) minmax(215px, .8fr); gap: 13px; }
  .panel { padding-right: 15px; padding-left: 15px; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(67px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .main-area { margin-left: 0; min-height: 100vh; }
  .topbar { height: 57px; padding: 0 17px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; }
  .mobile-brand .brand-mark { width: 28px; height: 28px; border-radius: 9px; }
  .mobile-brand .brand-mark::before { width: 16px; height: 16px; border-width: 1.5px; }
  .mobile-brand .brand-mark::after { width: 1.5px; height: 6px; top: 9px; left: 13px; }
  .mobile-brand .brand-mark span { width: 5px; height: 1.5px; top: 15px; left: 14px; }
  .mobile-brand .brand-name { font-size: 17px; }
  .breadcrumb { margin-left: auto; font-size: 10px; }
  .breadcrumb > span:first-child, .breadcrumb-separator { display: none; }
  .breadcrumb strong { display: none; }
  .topbar-actions { gap: 8px; margin-left: 11px; }
  .topbar-actions .icon-button { width: 30px; height: 30px; }
  .avatar-button { width: 29px; height: 29px; }
  .page-content { padding: 24px 17px 30px; }
  .page-heading { align-items: center; margin-bottom: 18px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading p { max-width: 260px; font-size: 10px; line-height: 1.5; }
  .page-heading .eyebrow { font-size: 8px; }
  .heading-actions { gap: 6px; }
  .heading-actions .button { width: 37px; min-width: 37px; height: 37px; padding: 0; font-size: 0; }
  .heading-actions .button span { font-size: 17px; }
  .welcome-card { min-height: 145px; padding: 20px; border-radius: 12px; }
  .welcome-copy h2 { max-width: 240px; font-size: 19px; }
  .welcome-copy p { max-width: 230px; font-size: 9px; line-height: 1.5; }
  .welcome-metric { min-width: 100px; padding-left: 13px; }
  .welcome-metric span { font-size: 8px; }
  .welcome-metric strong { font-size: 21px; }
  .welcome-metric small { font-size: 8px; }
  .dashboard-grid, .settings-grid { grid-template-columns: 1fr; gap: 13px; margin-top: 13px; }
  .dashboard-grid .stack { gap: 13px; }
  .panel { padding: 16px; border-radius: 11px; }
  .stat-grid { gap: 7px; }
  .stat-card { min-height: 88px; padding: 10px 9px; }
  .stat-label { gap: 5px; font-size: 8px; }
  .stat-value { margin-top: 10px; font-size: 18px; }
  .stat-sub { font-size: 8px; }
  .timer-row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; }
  .timer-icon { width: 31px; height: 31px; }
  .timer-info strong { font-size: 10px; }
  .timer-info small { font-size: 8px; }
  .timer-controls { gap: 5px; }
  .timer-clock { font-size: 11px; }
  .timer-control { width: 25px; height: 25px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 5; height: calc(63px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px 9px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgb(255 255 255 / 96%); backdrop-filter: blur(12px); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #929da2; font-size: 8px; }
  .mobile-nav a span { font-size: 18px; line-height: 1; }
  .mobile-nav a.active { color: var(--blue); font-weight: 600; }
  .toast { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 430px) {
  .welcome-card { align-items: flex-start; padding: 17px; }
  .welcome-copy h2 { max-width: 195px; font-size: 17px; }
  .welcome-metric { min-width: 85px; margin-top: 6px; padding-left: 10px; }
  .welcome-metric strong { font-size: 18px; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-card { padding-right: 6px; padding-left: 7px; }
  .stat-label { display: block; }
  .stat-dot { display: inline-block; margin-right: 3px; vertical-align: middle; }
  .filter-bar { align-items: stretch; }
  .search-input { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

[hidden] { display: none !important; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; background: radial-gradient(ellipse at 50% 0%, #e8f1f5 0, var(--canvas) 53%); }
.auth-loading { display: grid; justify-items: center; gap: 12px; color: #78868d; font-size: 12px; }
.auth-loading p { margin: 0; }
.auth-card { width: min(100%, 430px); padding: 32px; border: 1px solid #e9edef; border-radius: 17px; background: white; box-shadow: 0 18px 55px rgb(34 53 66 / 8%); }
.auth-brand { width: fit-content; margin: 0 0 27px; }
.auth-heading { margin: 0 0 20px; }
.auth-heading h1, .auth-intro h1 { margin: 7px 0 6px; font: 700 25px/1.2 "Manrope", "Segoe UI", sans-serif; letter-spacing: -1px; }
.auth-heading > p:last-child, .auth-intro > p:last-child { margin: 0; color: #87939a; font-size: 11px; line-height: 1.6; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 9px; background: #f3f5f6; }
.auth-tabs button { min-height: 33px; border: 0; border-radius: 7px; color: #839098; background: transparent; font-size: 10px; cursor: pointer; }
.auth-tabs button.active { color: var(--blue); background: white; box-shadow: 0 1px 4px rgb(34 53 66 / 10%); font-weight: 600; }
.auth-form { display: grid; gap: 14px; }
.auth-form .field input { min-height: 42px; }
.auth-submit { width: 100%; min-height: 42px; margin-top: 2px; }
.auth-submit:disabled { opacity: .7; cursor: progress; }
.auth-footnote, .auth-privacy { margin: 0; color: #98a2a7; font-size: 9px; line-height: 1.6; text-align: center; }
.auth-privacy { margin-top: 22px; color: #869398; }
.auth-message { padding: 10px 12px; margin-bottom: 15px; border: 1px solid #f2d9d4; border-radius: 8px; color: #a44f49; background: #fff6f4; font-size: 10px; line-height: 1.5; }
.auth-message-success { border-color: #d1e5dc; color: #326d58; background: #f0f8f4; }
.auth-intro { margin-bottom: 18px; }
.auth-invite-mark { display: block; margin-bottom: 11px; color: var(--blue); font-size: 23px; }
.auth-back { border: 0; padding: 3px; color: var(--blue); background: transparent; font-size: 10px; cursor: pointer; }
.account-menu { display: flex; align-items: center; gap: 10px; }
.account-email { max-width: 210px; overflow: hidden; color: #7d8990; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-switcher:disabled { cursor: default; }
.workspace-switcher:disabled:hover { border-color: var(--line); }
@media (max-width: 760px) {
  .auth-screen { min-height: 100svh; padding: 18px; }
  .auth-card { padding: 25px 21px; border-radius: 14px; }
  .auth-brand { margin-bottom: 22px; }
  .auth-heading h1, .auth-intro h1 { font-size: 22px; }
  .account-email { display: none; }
}
