.td-workspace, .td-dialog, .td-notice {
  --td-bg: #f7f8f9;
  --td-surface: #fff;
  --td-subtle: #f4f6f5;
  --td-text: #18221e;
  --td-muted: #56635d;
  --td-border: #e1e6e3;
  --td-field: #838f87;
  --td-green: #267a55;
  --td-hover: #1d6545;
  --td-soft: #e9f4ed;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--td-text);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.td-workspace { min-height: 100vh; background: var(--td-bg); }
:is(.td-workspace, .td-dialog, .td-notice) :focus-visible { outline: 3px solid var(--td-green); outline-offset: 2px; }
.td-shell { width: min(100% - 40px, 1456px); margin-inline: auto; }
.td-header { background: var(--td-surface); border-bottom: 1px solid var(--td-border); }
.td-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 57px; }
.td-header .brand { font-size: 19px; letter-spacing: -.04em; }
.td-header .brand-icon { width: 27px; height: 27px; border-radius: 7px; background: var(--td-green); }
.td-nav, .td-views, .td-actions, .td-inline, .td-heading, .td-footer { display: flex; align-items: center; gap: 8px; }
.td-nav { gap: 6px; }
.td-nav :is(a,button), .td-quiet, .td-button, .td-primary { min-height: 36px; padding: 5px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--td-text); background: transparent; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.25; text-decoration: none; }
.td-nav :is(a,button), .td-quiet { display: inline-flex; align-items: center; gap: 6px; }
.td-nav [aria-current], .td-views [aria-current], .td-quiet[aria-pressed="true"] { color: var(--td-hover); background: var(--td-soft); }
.td-nav :is(a,button):hover, .td-quiet:hover { color: var(--td-hover); background: var(--td-soft); }
.td-button { border-color: var(--td-field); background: var(--td-surface); }
.td-button:hover { background: var(--td-subtle); }
.td-primary { background: var(--td-green); color: white; }
.td-primary:hover { background: var(--td-hover); }
.td-nav svg, .td-heading svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.td-local { white-space: nowrap; color: var(--td-muted); font-size: 12px; }
.td-local span { display: inline-block; background: var(--td-green); width: 7px; height: 7px; border-radius: 100%; margin-right: 4px; }
.td-main { padding-block: 16px 10px; }
.td-grid { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); grid-template-areas: "today inbox" "today tasks" "now tasks" "breakdown review"; grid-template-rows: auto minmax(0,1fr) auto auto; gap: 12px; align-items: stretch; }
.td-panel { min-width: 0; padding: 13px 15px; border: 1px solid var(--td-border); border-radius: 12px; background: var(--td-surface); }
.td-today { grid-area: today; }.td-now { grid-area: now; }.td-inbox { grid-area: inbox; }.td-board-panel { grid-area: tasks; }.td-breakdown { grid-area: breakdown; }.td-review { grid-area: review; }
.td-heading { min-height: 32px; margin-bottom: 9px; }
.td-heading h2, .td-dialog h2 { margin: 0; color: var(--td-text); font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
.td-heading h2 { display: inline-flex; gap: 7px; align-items: center; }
.td-heading h2 svg { color: var(--td-green); }
.td-heading time, .td-meta, .td-empty { color: var(--td-muted); font-size: 13px; }
.td-end { margin-left: auto; flex-shrink: 0; }
.td-inline input { flex: 1 1 auto; min-width: 0; }
.td-inline :is(button,a) { flex: 0 0 auto; }
.td-workspace :is(input:not([type="checkbox"]),select,textarea), .td-dialog :is(input:not([type="checkbox"]),select,textarea) {
  min-height: 36px; padding: 6px 9px; border: 1px solid var(--td-field); border-radius: 7px;
  background: var(--td-surface); color: var(--td-text); font: inherit;
}
.td-workspace input::placeholder { color: var(--td-muted); }
.td-must { background: var(--td-soft); border: 1px solid #cde3d4; padding: 10px 12px; border-radius: 8px; margin-block: 0 7px; }
.td-must .td-inline { align-items: flex-start; }
.td-must strong, .td-row strong { flex: 1; }
.td-must p, .td-panel > div > p + p { margin-block: 4px; }
.td-row { display: flex; gap: 7px; align-items: center; min-height: 39px; border: 1px solid var(--td-border); border-radius: 8px; padding-inline: 8px; margin-block: 6px; }
.td-row .td-tag, .td-row .td-meta, .td-row .td-button, .td-must .td-inline .td-button { flex: none; white-space: nowrap; }
.td-row label, .td-must label { flex: none; }
.td-today-task { flex: 1 1 auto; min-width: 0; text-align: left; }
.td-must .td-inline .td-today-task { flex: 1 1 auto; }
.td-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 5px; background: var(--td-subtle); color: var(--td-muted); font-size: 12px; font-weight: 650; }
.td-must .td-tag { background: #d8ecdf; color: var(--td-hover); }
.td-now-body { display: flex; align-items: center; gap: 16px; min-height: 108px; }
.td-clock { width: 97px; height: 97px; border: 6px solid #d5e9de; border-top-color: var(--td-green); border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center; font-variant-numeric: tabular-nums; line-height: 1.2; }
.td-clock output { color: var(--td-text); font-size: 26px; font-weight: 700; }
.td-action { font-size: clamp(18px, 2vw, 23px); line-height: 1.25; font-weight: 690; margin-block: 3px; }
.td-actions { flex-wrap: wrap; margin-top: 9px; }
.td-captures { display: flex; gap: 7px; flex-wrap: wrap; list-style: none; padding: 0; margin: 8px 0 0; }
.td-captures .td-quiet { max-width: 26ch; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-height: 30px; background: var(--td-subtle); }
.td-views { border-block: 1px solid var(--td-border); padding-block: 4px; margin-bottom: 10px; flex-wrap: wrap; gap: 2px; }
.td-views .td-quiet { min-height: 29px; }
.td-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px,1fr); gap: 7px; overflow-x: auto; padding: 2px 4px 4px; margin-inline: -4px; }
.td-column { min-width: 0; padding: 7px; border-radius: 8px; border: 1px solid var(--td-border); background: var(--td-subtle); min-height: 175px; }
.td-column[data-status="active"] { background: #eaf3fc; color: #245d91; }
.td-column[data-status="done"] { background: #e8f4eb; color: #256747; }
.td-column[data-status="blocked"] { background: #fcedef; color: #983a46; }
.td-column h3 { font-size: 13px; display: flex; align-items: center; gap: 4px; justify-content: space-between; }
.td-column-list { display: grid; align-content: start; gap: 5px; min-height: 78px; max-height: 188px; overflow-y: auto; scrollbar-gutter: stable; margin-block: 6px; padding: 3px; }
.td-task { padding: 3px; border: 1px solid var(--td-border); border-radius: 7px; color: var(--td-text); background: var(--td-surface); }
.td-task-line { display: flex; align-items: flex-start; gap: 3px; }
.td-task-line .td-quiet { padding: 3px 2px; min-height: 26px; min-width: 0; text-align: left; display: block; }
.td-task-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.td-task[data-done] .td-task-title { text-decoration: line-through; color: var(--td-muted); }
.td-workspace input[type="checkbox"], .td-dialog input[type="checkbox"] { width: 17px; height: 17px; margin: 4px; accent-color: var(--td-green); }
.td-task-tags { display: flex; flex-wrap: wrap; gap: 3px; padding: 2px 3px; font-size: 11px; }
.td-priority { font-weight: 650; border-radius: 4px; padding: 0 4px; }
.td-priority[data-priority="P0"] { background: #fbe4e5; color: #94333b; }
.td-priority[data-priority="P1"] { background: #fbebdc; color: #855021; }
.td-priority[data-priority="P2"] { background: #e8eff8; color: #315c83; }
.td-filters { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 8px; }
.td-filters label, .td-dialog label { font-size: 13px; font-weight: 600; }
.td-filters select { display: block; max-width: 140px; }
.td-breakdown ol { list-style: decimal; padding-left: 26px; margin-block: 8px 0; }
.td-breakdown li { margin-block: 5px; padding-left: 3px; }
.td-breakdown li textarea { min-width: 0; flex: 1 1 auto; resize: vertical; }
.td-breakdown li input[type="number"] { flex: 0 0 72px; width: 72px; }
.td-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.td-metric { border: 1px solid var(--td-border); border-radius: 8px; background: var(--td-subtle); padding: 7px; }
.td-metric strong, .td-metric span { display: block; }
.td-metric strong { font-variant-numeric: tabular-nums; font-size: 19px; }
.td-metric span { font-size: 12px; color: var(--td-muted); }
.td-footer { justify-content: flex-end; color: var(--td-muted); font-size: 12px; margin-top: 14px; gap: 14px; }
.td-dialog { width: min(94vw, 530px); max-height: 90vh; padding: 17px; border: 1px solid var(--td-border); border-radius: 12px; background: var(--td-surface); }
.td-dialog::backdrop { background: rgb(24 34 30 / 35%); }
.td-dialog-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.td-dialog form { display: grid; gap: 8px; }
.td-dialog label > :is(input:not([type="checkbox"]),textarea,select) { display: block; width: 100%; }
.td-dialog p + p, .td-dialog form + form { margin-top: 8px; }
.td-dialog .td-note { display: flex; gap: 5px; align-items: center; }
.td-message { color: #983a46; font-size: 13px; margin-block: 5px; }
.td-notice { position: fixed; inset: auto 16px 16px auto; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--td-border); border-radius: 10px; background: var(--td-surface); box-shadow: 0 3px 14px rgb(24 34 30 / 10%); max-width: calc(100vw - 32px); }
.td-notice .outline { min-height: 33px; padding: 4px 8px; }
.td-focused .td-grid { grid-template-areas: "today now"; grid-template-rows: auto; }
.td-focused :is(.td-inbox,.td-board-panel,.td-breakdown,.td-review) { display: none; }
@media (max-width: 1050px) {
  .td-board { grid-auto-columns: minmax(125px,1fr); }
  .td-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 875px) {
  .td-grid, .td-focused .td-grid { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; grid-template-areas: "today" "now" "inbox" "tasks" "breakdown" "review"; }
  .td-grid[data-current="true"] { grid-template-areas: "now" "today" "inbox" "tasks" "breakdown" "review"; }
  .td-header-inner { flex-wrap: wrap; gap: 2px 12px; padding-block: 8px; }
  .td-nav { flex: 1 0 100%; order: 3; flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .td-shell { width: calc(100% - 24px); }
  .td-panel { padding: 11px; }
  .td-nav :is(a,button) { padding-inline: 5px; }
  .td-nav { gap: 3px; }
  .td-nav svg { display: none; }
  .td-heading h2 { font-size: 17px; }
  .td-workspace :is(.td-nav a,.td-nav button,.td-button,.td-primary,.td-quiet), .td-dialog :is(.td-button,.td-primary,.td-quiet) { min-height: 44px; }
  .td-clock { width: 78px; height: 78px; }
  .td-clock output { font-size: 22px; }
  .td-now-body { gap: 11px; }
  .td-board { grid-auto-columns: minmax(137px,46%); }
  .td-row { gap: 3px; padding-inline: 4px; }
  .td-row .td-button { padding-inline: 6px; }
  .td-row .td-today-task { padding-inline: 4px; }
  .td-row .td-meta { font-size: 12px; }
  .td-task-line label { display: grid; place-items: center; min-width: 34px; min-height: 44px; }
  .td-breakdown li .td-inline { flex-wrap: wrap; }
  .td-breakdown li textarea { flex-basis: calc(100% - 82px); }
}
