:root {
  --page: #f7f8f6;
  --surface: #ffffff;
  --ink: #202e32;
  --muted: #617169;
  --line: #e7ece9;
  --accent: #23786a;
  --accent-dark: #155d51;
  --accent-soft: #e9f3ef;
  --sidebar: #172d33;
  --radius: 12px;
  --shadow: 0 2px 6px rgb(28 48 41 / 3%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { opacity: .55; cursor: not-allowed; }
input, select, textarea { color: var(--ink); }
button, input, select, textarea { outline: none; }
:focus-visible { outline: 3px solid #63b3a2; outline-offset: 3px; }
a { color: var(--accent); text-underline-offset: 3px; }
svg { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
button svg { pointer-events: none; }
[hidden] { display: none !important; }
::selection { background: #d7ece2; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 240px; z-index: 30; display: flex; flex-direction: column; padding: 29px 18px 20px; background: var(--sidebar); color: #e5eeeb; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 29px; font-weight: 650; font-size: 20px; letter-spacing: -.65px; }
.brand-icon { width: 32px; height: 34px; display: inline-flex; justify-content: center; align-items: center; color: #183e35; background: #b8dbb6; border-radius: 9px; }
.brand-icon svg { width: 21px; height: 21px; }
.workspace-label { display: flex; align-items: center; justify-content: space-between; margin: 16px 12px 11px; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.7px; color: #9bb1b1; }
.project-nav { display: flex; flex-direction: column; gap: 5px; max-height: 54vh; overflow: auto; }
.project-link { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 10px 12px; border: 0; border-radius: 7px; color: #bacdcd; background: transparent; text-align: left; font-size: 13px; font-weight: 500; }
.project-link:hover { color: #fff; background: #213c42; }
.project-link.active { background: #2a4749; color: #fff; box-shadow: inset 3px 0 #b6dcb9; }
.project-link > span:not(.project-dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; background: #a5c5ac; }
.project-link .chip { margin-left: auto; background: #3b5356; color: #cde2dc; }
.sidebar .button { justify-content: flex-start; color: #bed0ce; border-color: transparent; }
.sidebar .button:hover { background: #254147; color: #fff; }
.sidebar .icon-button { color: #c1d3cf; }
.sidebar .icon-button:hover { background: #2a4749; }
.sidebar-bottom { margin-top: auto; padding: 24px 10px 16px; color: #b2c6c4; font-size: 12px; }
.sidebar-bottom strong { display: block; color: #e6efeb; font-size: 13px; margin-bottom: 5px; font-weight: 550; }
.sidebar-bottom p { margin: 5px 0 0; color: #a8c1bd; font-size: 12px; line-height: 1.6; }
.sidebar-footer { display: flex; align-items: center; gap: 11px; padding: 19px 10px 0; border-top: 1px solid #31484b; font-size: 13px; }
.sidebar-footer .avatar { width: 33px; height: 33px; color: #e4eadc; background: #446254; }
.sidebar-footer small { display: block; color: #a0b7b5; font-size: 11px; margin-top: 2px; }
.main { margin-left: 240px; min-width: 0; padding: 0 34px 40px; }
.main-topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; min-width: 0; }
.breadcrumb > span:last-child { color: #384a50; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb svg { width: 15px; height: 15px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
#save-indicator { display: inline-flex; align-items: center; gap: 6px; color: #75837c; font-size: 11px; }
#save-indicator svg { width: 14px; height: 14px; color: #599e7c; }
#save-indicator.save-warning, .save-warning { color: #9e4e21; }
.board-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 31px 0 22px; }
.eyebrow { margin: 0 0 6px; color: #839187; font-size: 10px; font-weight: 650; letter-spacing: 1.9px; text-transform: uppercase; }
.board-title { margin: 0; font-size: 30px; line-height: 1.25; font-weight: 650; letter-spacing: -1.1px; }
.board-description { margin: 9px 0 0; color: var(--muted); font-size: 13px; max-width: 650px; }
.header-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.board-settings { display: flex; align-items: center; gap: 8px; }
.sample-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 12px 15px; background: #eef3ed; color: #5c7462; border: 1px solid #dfe8dd; border-radius: 8px; font-size: 12px; }
.sample-banner > span, .sample-banner > p { flex: 1; margin: 0; }
.sample-banner > svg { color: #789375; width: 16px; height: 16px; }
.sample-banner .button { color: #40674d; font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 27px; }
.stat-card { position: relative; padding: 18px 20px 17px; min-height: 116px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.stat-icon { float: right; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: #71877a; background: #f1f5f0; }
.stat-icon svg { width: 16px; height: 16px; }
.stat-label { color: #778680; font-size: 11px; font-weight: 500; margin-bottom: 6px; }
.stat-number { display: block; margin: 1px 0 2px; font-size: 27px; font-weight: 600; letter-spacing: -.8px; line-height: 1.2; }
.stat-detail { color: #8b9691; font-size: 10px; margin-top: 8px; }
.progress-track { height: 4px; overflow: hidden; background: #eaf0eb; border-radius: 5px; margin-top: 10px; }
.progress-fill { height: 100%; background: #6b9e7c; border-radius: inherit; transition: width .2s; }
.workspace-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 0; }
.view-tabs { display: flex; align-items: center; gap: 22px; padding: 0 23px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.view-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 56px; white-space: nowrap; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #83908c; font-weight: 500; font-size: 12px; padding: 0 1px; }
.view-tab svg { width: 16px; height: 16px; }
.view-tab:hover { color: var(--accent); }
.view-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 19px 22px; }
.search-box { position: relative; display: flex; align-items: center; min-width: 170px; max-width: 270px; flex: 1 1 200px; }
.search-box svg { position: absolute; left: 11px; color: #8d9993; width: 15px; height: 15px; }
.search-box input { width: 100%; height: 35px; padding: 7px 10px 7px 33px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfa; font-size: 12px; }
.search-box input::placeholder { color: #9ba59f; }
.toolbar-spacer { flex: 1; }
.filter-select { min-height: 35px; max-width: 180px; padding: 7px 29px 7px 10px; border: 1px solid var(--line); border-radius: 6px; color: #728177; background-color: #fff; font-size: 11px; }
.view-content { padding: 3px 22px 23px; min-height: 260px; }
.helper-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; color: #8c9890; font-size: 11px; padding: 0 1px 15px; }
.group-section { margin-bottom: 24px; }
.group-section:last-child { margin-bottom: 0; }
.group-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; min-height: 31px; color: var(--group-color, #6e9a7d); }
.group-heading { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin: 0; }
.group-heading svg { width: 15px; height: 15px; }
.group-count { display: inline-flex; justify-content: center; align-items: center; min-width: 21px; height: 20px; border-radius: 5px; color: #8b9890; background: #f1f4ef; font-size: 10px; font-weight: 500; }
.task-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; border-left: 3px solid var(--group-color, #90b599); }
.task-table table { border-collapse: collapse; width: 100%; min-width: 780px; text-align: left; font-size: 12px; }
.task-table th { height: 35px; padding: 9px 12px; color: #89968e; background: #f8faf7; font-size: 10px; font-weight: 500; white-space: nowrap; border-bottom: 1px solid var(--line); }
.task-table td { height: 53px; padding: 9px 12px; border-bottom: 1px solid #edf0eb; vertical-align: middle; }
.task-table tr:last-child td { border-bottom: 0; }
.task-table tbody tr:hover { background: #fafcf9; }
.task-table th:first-child, .task-table td:first-child { min-width: 220px; width: 35%; }
.task-table td:last-child { width: 40px; }
.task-title-button { text-align: left; max-width: 100%; border: 0; background: transparent; font-size: 12px; font-weight: 500; padding: 3px 0; color: #3b4d41; line-height: 1.4; }
.task-title-button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.task-subtitle { display: block; color: #96a096; font-size: 10px; margin-top: 2px; font-weight: 400; }
.owner-badge { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #758174; font-size: 11px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 23px; height: 23px; border-radius: 50%; background: #edece1; color: #7a795d; font-size: 9px; font-weight: 650; }
.status-select, .priority-select { border: 0; border-radius: 5px; padding: 6px 23px 6px 9px; font-size: 10px; font-weight: 550; min-width: 108px; min-height: 29px; max-width: 150px; }
.priority-select { min-width: 75px; padding-left: 8px; }
.status-select[data-value='planned'], .status-pill[data-status='planned'] { color: #747e86; background: #edf0f3; }
.status-select[data-value='active'], .status-pill[data-status='active'] { color: #996a25; background: #fcf1d9; }
.status-select[data-value='blocked'], .status-pill[data-status='blocked'] { color: #ab5658; background: #fbe7e6; }
.status-select[data-value='done'], .status-pill[data-status='done'] { color: #408569; background: #e7f3e9; }
.priority-select[data-value='low'], .priority-pill[data-priority='low'] { background: #f0f3f5; color: #839097; }
.priority-select[data-value='normal'], .priority-pill[data-priority='normal'] { background: #eef1fa; color: #777ca2; }
.priority-select[data-value='high'], .priority-pill[data-priority='high'] { background: #fbede0; color: #b87c3f; }
.priority-select[data-value='urgent'], .priority-pill[data-priority='urgent'] { background: #f9e9ec; color: #b5586d; }
.date-cell { font-size: 11px; color: #8b958f; white-space: nowrap; }
.date-cell.overdue { color: #b75c59; }
.group-add { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; color: #9aa59c; font-size: 11px; padding: 11px 14px; text-align: left; width: 100%; border-top: 1px solid var(--line); }
.group-add:hover { color: var(--accent); background: #f7faf5; }
.group-add svg { width: 14px; height: 14px; }
.inline-add { padding: 10px; border-top: 1px solid var(--line); }
.inline-add form, form.inline-add { display: flex; gap: 8px; align-items: center; }
.inline-add input { flex: 1; width: 100%; min-width: 120px; border: 1px solid #dfe8df; border-radius: 6px; padding: 8px 10px; font-size: 12px; }
.empty-state { text-align: center; padding: 56px 24px; color: #839189; }
.empty-state > svg { width: 35px; height: 35px; color: #a5b9a7; margin-bottom: 8px; }
.empty-state h2, .empty-state h3 { font-weight: 600; color: #56675c; font-size: 17px; margin: 5px 0 9px; }
.empty-state p { max-width: 390px; margin: 0 auto 18px; font-size: 12px; line-height: 1.7; }

.kanban-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kanban-column { background: #f6f8f4; border: 1px solid #edf0e9; border-radius: 9px; padding: 12px; min-height: 320px; }
.kanban-column.drag-over { background: #e8f3ea; border-color: #8db596; }
.kanban-heading { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; margin: 0 0 14px; }
.kanban-heading::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--status-color, #9aa6ab); }
.kanban-count { color: #96a08e; background: #eaeee7; font-size: 10px; padding: 1px 5px; border-radius: 4px; margin-left: auto; }
.task-card { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid #e7ece2; border-radius: 8px; box-shadow: 0 2px 3px rgb(36 53 31 / 2%); padding: 13px; margin-bottom: 10px; cursor: grab; }
.task-card:hover { border-color: #bbcdbc; box-shadow: 0 4px 10px rgb(36 53 31 / 5%); }
.task-card.dragging { opacity: .45; }
.task-card .task-title-button { font-size: 12px; line-height: 1.5; }
.task-card h3 { margin: 0 0 10px; font-size: 12px; font-weight: 550; }
.task-card .task-subtitle { margin: 3px 0 8px; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 10px; color: #889882; margin: 9px 0 12px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 11px; margin-top: 11px; border-top: 1px solid #f0f3ed; }
.card-footer .date-cell { font-size: 10px; }
.status-pill, .priority-pill { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 3px 7px; border-radius: 4px; font-size: 9px; font-weight: 550; white-space: nowrap; }
.kanban-column .group-add { border: 0; padding: 6px 0; }

.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 17px; }
.calendar-toolbar h2, .calendar-toolbar h3 { margin: 0; font-size: 15px; font-weight: 550; }
.calendar-toolbar > div { display: flex; align-items: center; gap: 6px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.calendar-weekday { color: #8c988b; background: #f6f8f3; padding: 11px 9px; text-align: center; font-size: 10px; font-weight: 500; border-bottom: 1px solid var(--line); }
.calendar-cell { min-height: 114px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 7px; overflow: hidden; }
.calendar-cell:nth-child(7n) { border-right: 0; }
.calendar-cell:nth-last-child(-n+7) { border-bottom: 0; }
.calendar-cell.muted { background: #fafbf8; }
.calendar-cell.muted .day-number { color: #c1c9bd; }
.calendar-cell.today { background: #f4f9f0; }
.day-number { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: #7a8a73; font-size: 11px; margin-bottom: 5px; }
.today .day-number { background: var(--accent); color: white; }
.calendar-task { display: block; text-align: left; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; border-left: 2px solid #b7c1c6; border-radius: 3px; background: #eef1f3; color: #74818b; font-size: 9px; padding: 4px 5px; margin-bottom: 4px; }
.calendar-task:hover { filter: brightness(.96); }
.calendar-task[data-status='active'] { background: #fcf2df; color: #a17c3d; border-color: #d9b767; }
.calendar-task[data-status='blocked'] { background: #fae9e7; color: #a6645e; border-color: #d48a83; }
.calendar-task[data-status='done'] { background: #e8f3e7; color: #6f9670; border-color: #9abe90; }
.calendar-task-count { background: transparent; border: 0; color: #85987d; padding: 0 3px; font-size: 10px; }
.unscheduled { margin-top: 18px; padding: 13px 15px; border: 1px solid #e7ece3; border-radius: 7px; color: #8a9782; background: #fcfdfb; font-size: 11px; }
.unscheduled h3 { margin: 0 0 7px; color: #7f8c75; font-size: 12px; font-weight: 550; }
.unscheduled .task-title-button { font-size: 11px; margin: 2px 12px 2px 0; }
.unscheduled p { margin: 4px 0; }

.timeline-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.timeline { display: grid; min-width: 790px; font-size: 11px; }
.timeline-head { background: #f6f8f3; padding: 12px; border-bottom: 1px solid var(--line); color: #9aa48f; font-size: 10px; font-weight: 500; text-align: left; }
.timeline-name { display: flex; align-items: center; gap: 6px; padding: 10px 13px; background: #fff; border-bottom: 1px solid #eef0e9; border-right: 1px solid var(--line); min-height: 49px; min-width: 0; }
.timeline-name .task-title-button { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.timeline-day { text-align: center; background: #f6f8f3; padding: 9px 0; color: #8b997b; border-bottom: 1px solid var(--line); font-size: 10px; min-width: 28px; }
.timeline-day small { display: block; color: #b3bcaa; font-size: 8px; }
.timeline-day.today { background: #e8f1e1; color: #4f8449; font-weight: 600; }
.timeline-track { position: relative; min-height: 49px; border-bottom: 1px solid #eef0e9; overflow: hidden; align-items: center; }
.timeline-bar { display: flex; align-items: center; padding: 5px 8px; min-height: 26px; margin: 9px 0; border-radius: 5px; background: #e4e9ed; color: #7b8790; font-size: 9px; border: 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; cursor: pointer; }
.timeline-bar[data-status='active'] { background: #f3e5c2; color: #9d7f42; }
.timeline-bar[data-status='blocked'] { background: #f4dedb; color: #a2635f; }
.timeline-bar[data-status='done'] { background: #dcebd4; color: #668a59; }
.timeline-bar:hover { filter: brightness(.96); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 13px; min-height: 36px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #63776a; font-size: 12px; font-weight: 550; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.button svg { width: 15px; height: 15px; }
.button.primary, .button-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 3px rgb(30 92 63 / 9%); }
.button.primary:hover, .button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.secondary, .button-secondary { background: #fff; color: #6b7b6d; border-color: #dce4d9; }
.button.secondary:hover, .button-secondary:hover { background: #f4f8f0; border-color: #bbcdb4; }
.button.ghost:hover, .button-ghost:hover { background: #edf3e8; color: #527a46; }
.button.danger, .button-danger { background: #fff6f4; color: #a96058; border-color: #efd9d2; }
.button.danger:hover, .button-danger:hover { background: #fbe9e5; }
.button.small { min-height: 28px; padding: 5px 9px; font-size: 11px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: #97a18f; }
.icon-button:hover { color: #5e7e54; background: #eef3e9; }
.icon-button svg { width: 16px; height: 16px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 5px; background: #eff3e9; color: #819077; font-size: 10px; font-weight: 500; white-space: nowrap; }
.data-menu { position: relative; }
.data-menu > summary { list-style: none; }
.data-menu > summary::-webkit-details-marker { display: none; }
.data-menu-panel { position: absolute; top: calc(100% + 7px); right: 0; z-index: 25; width: 220px; border: 1px solid #dce5d5; border-radius: 8px; background: white; padding: 6px; box-shadow: 0 10px 35px rgb(28 46 25 / 12%); }
.data-menu-panel button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; text-align: left; padding: 10px; border-radius: 4px; color: #73836a; font-size: 12px; }
.data-menu-panel button:hover { background: #f1f5ed; color: #476e3b; }
.data-menu-panel p { margin: 5px 9px 7px; color: #a1ab96; font-size: 10px; line-height: 1.5; }
.data-menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 5px; }

dialog.modal { border: 1px solid #e1e8db; border-radius: 14px; padding: 0; width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); color: var(--ink); background: #fff; box-shadow: 0 25px 90px rgb(16 36 21 / 24%); overflow: auto; }
dialog.modal::backdrop { background: rgb(14 32 27 / 40%); backdrop-filter: blur(3px); }
dialog.detail-dialog { width: min(560px, calc(100vw - 32px)); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 25px 18px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
.modal-header .icon-button { margin: -3px -6px 0 0; }
.modal-subtitle { margin: 5px 0 0; color: #98a28c; font-size: 12px; }
.modal-body { padding: 22px 25px; }
.modal-body > p { color: #7d8b70; font-size: 13px; line-height: 1.7; margin: 0 0 16px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding: 17px 25px; background: #fcfdf9; }
.modal-footer .danger { margin-right: auto; }
.modal-footer .footer-spacer { flex: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-field { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.form-field.full, .form-grid .full { grid-column: 1 / -1; }
.form-field label { color: #6c7d5f; font-size: 12px; font-weight: 500; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-width: 0; border: 1px solid #dce5d4; border-radius: 7px; background: #fff; padding: 9px 11px; min-height: 40px; font-size: 13px; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: #becfb1; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #82ab6e; box-shadow: 0 0 0 3px #edf5e6; }
.form-field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #b0baa3; }
.field-hint { font-size: 10px; line-height: 1.6; color: #9ba88d; margin: 0; }
.field-error { color: #ab6353; font-size: 12px; background: #fff3ef; border-radius: 6px; padding: 8px 11px; margin: 0 0 15px; }
.field-error:empty { display: none; }
.toast { position: fixed; bottom: 24px; left: calc(50% + 120px); transform: translateX(-50%); display: flex; align-items: center; gap: 20px; max-width: min(560px, calc(100vw - 32px)); border: 1px solid #314f35; border-radius: 9px; background: #203d2c; color: #e0ead6; padding: 13px 17px; font-size: 12px; box-shadow: 0 10px 35px rgb(23 43 20 / 15%); z-index: 100; }
.toast-action { color: #c4df99; border: 0; padding: 0; background: transparent; font-size: 12px; font-weight: 600; white-space: nowrap; }
.mobile-menu { display: none; }
.sidebar-scrim { display: none; }

/* Secondary copy remains readable at the compact sizes used in a scheduling UI. */
.stat-label, .stat-detail, .task-subtitle, .helper-row, .group-count,
.date-cell, .filter-select, .view-tab, .task-table th, .owner-badge,
.group-add, .empty-state, .card-meta, .kanban-count, .calendar-weekday,
.day-number, .calendar-task-count, .unscheduled, .timeline-head,
.timeline-day, .chip, .data-menu-panel p, .modal-subtitle,
.field-hint, #save-indicator { color: #687768; }
.search-box input::placeholder { color: #74816f; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #7c8976; }
.date-cell.overdue { color: #ad4645; }
.status-select[data-value='planned'], .status-pill[data-status='planned'] { color: #58636e; }
.status-select[data-value='active'], .status-pill[data-status='active'] { color: #805817; }
.status-select[data-value='blocked'], .status-pill[data-status='blocked'] { color: #933e40; }
.status-select[data-value='done'], .status-pill[data-status='done'] { color: #285e45; }
.priority-select[data-value='low'], .priority-pill[data-priority='low'] { color: #5e6870; }
.priority-select[data-value='normal'], .priority-pill[data-priority='normal'] { color: #565e85; }
.priority-select[data-value='high'], .priority-pill[data-priority='high'] { color: #936022; }
.priority-select[data-value='urgent'], .priority-pill[data-priority='urgent'] { color: #964158; }
.calendar-task { color: #58636e; }
.calendar-task[data-status='active'] { color: #805817; }
.calendar-task[data-status='blocked'] { color: #933e40; }
.calendar-task[data-status='done'] { color: #285e45; }
.timeline-bar { color: #53636d; }
.timeline-bar[data-status='active'] { color: #76591d; }
.timeline-bar[data-status='blocked'] { color: #894641; }
.timeline-bar[data-status='done'] { color: #416633; }
.calendar-cell.muted .day-number { color: #7d8874; }
.timeline-day small { color: #7a886c; }
.unscheduled h3 { color: #596f4c; }
.today .day-number { color: #fff; }
.view-tab.active { color: var(--accent); }
#save-indicator.save-warning { color: #9e4e21; }

@media (min-width: 1600px) {
  .main { padding-left: 48px; padding-right: 48px; }
  .main-topbar, .board-header, .sample-banner, .stats-grid, .workspace-card { max-width: 1580px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 1200px) {
  .main { padding-left: 23px; padding-right: 23px; }
  .header-actions { gap: 6px; }
  .stat-card { padding: 16px; }
  .stat-icon { width: 26px; height: 26px; }
  .kanban-grid { grid-template-columns: repeat(4, minmax(205px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .kanban-column { padding: 10px; }
  .toolbar-spacer { display: none; }
}
@media (max-width: 980px) {
  .sidebar { width: 215px; padding-left: 12px; padding-right: 12px; }
  .main { margin-left: 215px; padding-left: 20px; padding-right: 20px; }
  .sidebar-brand { font-size: 19px; }
  .board-header { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
  .board-title { font-size: 27px; }
  .stats-grid { gap: 9px; }
  .stat-card { padding: 15px 12px; min-height: 110px; }
  .stat-icon { display: none; }
  .stat-label { font-size: 10px; }
  .view-tabs { gap: 19px; padding: 0 16px; }
  .view-content { padding-left: 15px; padding-right: 15px; }
  .toolbar { padding-left: 15px; padding-right: 15px; }
  .calendar-cell { min-height: 100px; padding: 4px; }
  .calendar-task { font-size: 8px; padding: 3px; }
  .toast { left: calc(50% + 107px); }
}
@media (max-width: 760px) {
  .sidebar { width: 250px; transform: translateX(-100%); transition: transform .18s ease; padding: 27px 18px 20px; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-open .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 29; background: rgb(12 31 26 / 37%); border: 0; }
  .sidebar-open { overflow: hidden; }
  .main { margin-left: 0; padding: 0 18px 30px; }
  .mobile-menu { display: inline-flex; width: 30px; height: 30px; margin-left: -3px; }
  .main-topbar { height: 61px; gap: 10px; }
  .breadcrumb { gap: 6px; font-size: 11px; }
  .topbar-actions { gap: 8px; }
  #save-indicator { font-size: 10px; }
  .board-header { padding-top: 26px; padding-bottom: 19px; gap: 17px; }
  .board-title { font-size: 27px; }
  .board-description { font-size: 12px; }
  .header-actions { width: 100%; }
  .sample-banner { align-items: flex-start; flex-wrap: wrap; font-size: 11px; padding: 11px 12px; margin-bottom: 18px; }
  .sample-banner > svg { margin-top: 2px; }
  .sample-banner > .button { margin-left: 24px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 21px; }
  .stat-card { padding: 16px; min-height: 108px; }
  .stat-icon { display: flex; }
  .stat-label { font-size: 11px; }
  .view-tabs { gap: 20px; }
  .view-tab { font-size: 11px; min-height: 50px; }
  .view-tab svg { width: 15px; height: 15px; }
  .toolbar { padding: 15px; gap: 8px; }
  .search-box { max-width: none; flex-basis: 100%; }
  .search-box input { height: 37px; }
  .filter-select { flex: 1; width: 0; max-width: none; }
  .toolbar .button { margin-left: auto; }
  .view-content { padding: 0 12px 16px; }
  .group-header { margin-bottom: 8px; }
  .group-heading { font-size: 12px; }
  .task-table table { min-width: 740px; }
  .task-table td:first-child, .task-table th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 190px; max-width: 230px; border-right: 1px solid #eef1ea; }
  .task-table th:first-child { background: #f8faf7; }
  .kanban-grid { grid-template-columns: repeat(4, minmax(235px, 76vw)); gap: 12px; }
  .calendar-toolbar { padding-bottom: 13px; }
  .calendar-toolbar h2, .calendar-toolbar h3 { font-size: 13px; }
  .calendar-weekday { font-size: 9px; padding: 8px 2px; }
  .calendar-cell { min-height: 90px; padding: 3px; }
  .day-number { font-size: 10px; width: 21px; height: 21px; margin-bottom: 4px; }
  .calendar-task { padding: 3px 2px; font-size: 8px; }
  .calendar-task-count { font-size: 8px; }
  .toast { left: 50%; bottom: 16px; width: max-content; gap: 15px; }
  .modal-header { padding: 21px 20px 16px; }
  .modal-body { padding: 19px 20px; }
  .modal-footer { padding: 15px 20px; }
}
@media (max-width: 420px) {
  .main { padding-left: 12px; padding-right: 12px; }
  .board-title { font-size: 25px; }
  .view-tabs { gap: 17px; padding-left: 13px; padding-right: 13px; }
  .view-tab { font-size: 10px; gap: 5px; }
  .header-actions .button { padding-left: 10px; padding-right: 10px; font-size: 11px; }
  .stat-detail { font-size: 9px; }
  .form-grid { gap: 14px 11px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; padding: 8px; }
  .modal-footer .button { padding: 8px 10px; font-size: 11px; }
  #save-indicator { max-width: 132px; line-height: 1.35; }
  .calendar-cell { min-height: 83px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .main-topbar, .header-actions, .toolbar, .view-tabs, .sample-banner, .toast, .group-add, .data-menu { display: none !important; }
  .main { margin-left: 0; padding: 0; }
  body, .workspace-card { background: white; }
  .workspace-card { border: 0; }
  .task-table { overflow: visible; }
  .task-table table { min-width: 0; font-size: 9px; }
  .task-table td { padding: 5px; }
  .board-header { padding-top: 0; }
}
