/* Five-type list workspace, independent of the retained editors and Settings. */
#v3-workspace {
  min-width: 0;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#v3-workspace *, #v3-workspace *::before, #v3-workspace *::after { box-sizing: border-box; }
#v3-workspace button, #v3-workspace input { font: inherit; }
#v3-workspace button { cursor: pointer; line-height: 1.25; }
#v3-workspace button:disabled { cursor: default; opacity: .5; }
#v3-workspace :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#v3-workspace h1, #v3-workspace h2, #v3-workspace p { margin: 0; }
#v3-workspace [hidden] { display: none; }
#v3-workspace [data-kind="reminder"] { --kind-fg: var(--type-reminder); --kind-bg: var(--type-reminder-bg); }
#v3-workspace [data-kind="timer"] { --kind-fg: var(--type-timer); --kind-bg: var(--type-timer-bg); }
#v3-workspace [data-kind="counter"] { --kind-fg: var(--type-counter); --kind-bg: var(--type-counter-bg); }
#v3-workspace [data-kind="countdown"] { --kind-fg: var(--type-countdown); --kind-bg: var(--type-countdown-bg); }
#v3-workspace [data-kind="countup"] { --kind-fg: var(--type-countup); --kind-bg: var(--type-countup-bg); }
.v3-layout { display: flex; min-width: 0; align-items: stretch; }
.v3-sheet { flex: 1 1 520px; min-width: 0; padding: 32px 40px 120px; }
.v3-column { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 860px; margin: 0 auto; }
.v3-head { display: flex; justify-content: space-between; align-items: flex-end; min-height: 72px; flex-wrap: wrap; gap: 16px; }
.v3-head > div:first-child { min-width: 0; }
#v3-workspace h1 { color: var(--ink); font-size: 34px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
#v3-workspace .v3-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.v3-icon { flex: none; display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#v3-workspace .v3-button {
  min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--ink); font-size: 14px; font-weight: 600;
}
#v3-workspace .v3-button:hover:not(:disabled), #v3-workspace .v3-row-open:hover,
#v3-workspace .v3-tab:hover:not([aria-pressed="true"], [aria-selected="true"]) { background: var(--row-hover); }
#v3-workspace .v3-primary { border-color: transparent; background: var(--yellow); color: #151b16; font-weight: 700; }
#v3-workspace .v3-primary:hover:not(:disabled) { background: #fff1a1; }
#v3-workspace .v3-search-button { background: var(--control); font-weight: 500; }
.v3-search { display: flex; align-items: center; gap: 8px; max-width: 100%; }
#v3-workspace input {
  min-width: 0; min-height: 40px; padding: 0 12px; border-radius: 8px;
  border: 2px solid var(--focus); background: var(--control); color: var(--ink); font-size: 14px;
}
#v3-workspace #v3-search { width: min(260px, 100%); }
.v3-clocks { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.v3-clock, #v3-workspace .v3-clocks .v3-button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 10px;
  border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.v3-clock:first-child { background: var(--paper); }
.v3-clock b { color: var(--ink); }
#v3-workspace .v3-clocks .v3-button { border-style: dashed; font-weight: 500; }
.v3-quick { display: flex; gap: 10px; align-items: stretch; }
.v3-temporary {
  display: grid; gap: 10px; min-width: 0; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--paper);
}
.v3-temporary header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
#v3-workspace .v3-temporary h2 { font-size: 16px; line-height: 1.3; }
.v3-temporary small, [data-v3-duration-words] { color: var(--muted); font-size: 13px; line-height: 1.4; }
[data-v3-duration-words]:empty { display: none; }
.v3-duration-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.v3-duration-entry label { font-size: 14px; font-weight: 600; }
#v3-workspace .v3-duration-entry input { flex: 1 1 140px; border: 1px solid var(--outline-strong); font-size: 16px; }
#v3-workspace [data-v3-add-duration]:hover { background: var(--row-hover); }
.v3-preset-duration { display: grid; gap: 10px; min-width: 0; padding: 12px 14px; }
.v3-saved-timer-entry { display: flex; }
@media (max-width: 480px) {
  .v3-temporary { padding: 12px; }
  .v3-duration-entry label { flex-basis: 100%; }
}
#v3-workspace .v3-quick .v3-button { min-height: 52px; border-radius: 12px; font-size: 16px; padding: 0 24px; }
#v3-workspace .v3-quick .v3-add-prompt {
  flex: 1; min-width: 0; justify-content: flex-start; text-align: start; gap: 12px;
  background: var(--control); border-color: var(--outline-strong); padding: 8px 16px;
  color: var(--muted); font-weight: 400; overflow-wrap: anywhere;
}
.v3-composer { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--outline-strong); border-radius: 16px; background: var(--paper); }
#v3-workspace #v3-draft-name { min-height: 52px; border-radius: 12px; background: var(--page); padding: 0 14px; font-size: 16px; }
.v3-type-choices { display: grid; gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
#v3-workspace .v3-type-choice {
  min-height: 44px; border: 1.5px solid var(--border); background: var(--control);
  border-radius: 10px; color: var(--ink); font-weight: 700; font-size: 14px; padding: 0 8px;
}
#v3-workspace .v3-type-choice[aria-pressed="true"] { color: var(--kind-fg); border-color: var(--kind-fg); background: var(--kind-bg); }
.v3-composer-footer, .v3-row-actions, .v3-detail-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.v3-composer-footer { justify-content: flex-end; }
.v3-filters { min-width: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.v3-filters > small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.v3-tabs {
  display: inline-flex; max-width: 100%; overflow-x: auto; gap: 2px; padding: 3px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--control); scrollbar-width: thin;
}
#v3-workspace .v3-tab {
  display: inline-flex; flex: none; align-items: center; gap: 6px;
  padding: 0 16px; min-height: 34px; background: transparent; border: 0;
  border-radius: 7px; color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
#v3-workspace .v3-tab:is([aria-pressed="true"], [aria-selected="true"]) { background: var(--selection-bg); color: var(--ink); font-weight: 700; }
#v3-workspace .v3-tab:focus-visible { outline-offset: -2px; }
.v3-list-dot { width: 8px; height: 8px; border-radius: 2px; }
.v3-tab span { font-variant-numeric: tabular-nums; }
body[data-current-view="today"] #v3-workspace h1 { line-height: normal; }
body[data-current-view="today"] #v3-workspace .v3-clocks { align-items: flex-start; }
body[data-current-view="today"] .v3-clock { min-height: 32px; }
body[data-current-view="today"] #v3-workspace :is(.v3-search-button, .v3-clocks .v3-button, .v3-search .v3-button) { font-weight: 400; line-height: normal; }
body[data-current-view="today"] #v3-workspace .v3-search-button .v3-icon { width: 16px; height: 16px; }
body[data-current-view="today"] #v3-workspace .v3-search .v3-button { padding-inline: 12px; }
body[data-current-view="today"] #v3-workspace #v3-search { width: 260px; max-width: 100%; }
body[data-current-view="today"] #v3-workspace .v3-quick .v3-primary { border: 0; }
#v3-workspace .v3-done {
  min-height: 0; padding: 0; border: 0;
  color: var(--muted); font-size: 13px; line-height: normal; font-weight: 400;
}
#v3-today-results { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
body[data-current-view="today"] .v3-empty { display: flex; flex-direction: column; align-items: center; }
.v3-note, .v3-notice { font-size: 13px; line-height: 1.5; color: var(--muted); }
.v3-notice { padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; }
.v3-group { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#v3-workspace .v3-group h2 { margin: 8px 0 0; font-size: 14px; line-height: 1.3; font-weight: 700; letter-spacing: normal; color: var(--ink); }
.v3-rows { border-radius: 14px; border: 1px solid var(--border); background: var(--paper); overflow: hidden; }
.v3-row { display: flex; align-items: center; gap: 0; min-width: 0; }
.v3-row + .v3-row { border-top: 1px solid var(--border); }
.v3-row.is-selected { background: var(--row-hover); }
#v3-workspace .v3-row-open {
  display: flex; flex: 1 1 0; align-items: center; gap: 14px; min-width: 0; min-height: 60px;
  padding: 6px 16px; color: var(--ink); border: 0; background: transparent; text-align: start;
}
#v3-workspace .v3-row-open:focus-visible { outline-offset: -3px; }
.v3-icon-tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 9px; color: var(--kind-fg); background: var(--kind-bg);
}
.v3-row-copy { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; gap: 2px; }
.v3-row-copy strong, .v3-row-copy small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3-row-copy strong, .v3-value strong { font-size: 15px; font-weight: 600; }
.v3-row-copy small { font-size: 13px; color: var(--muted); }
.v3-value { display: inline-flex; flex: 0 1 120px; min-width: 0; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.v3-value strong { color: var(--kind-fg); }
.v3-value small { color: var(--muted); font-size: 12.5px; }
.v3-row-actions { flex: 0 0 112px; padding-right: 12px; justify-content: flex-end; }
#v3-workspace .v3-item-action { font-weight: 600; max-width: 100%; overflow-wrap: anywhere; }
#v3-workspace .v3-transport { white-space: nowrap; background: var(--kind-bg); color: var(--kind-fg); border-color: transparent; }
body[data-current-view="timers"] #v3-workspace .v3-row .v3-transport {
  min-width: 112px; min-height: 44px;
}
@media (hover: hover) {
  :where(body[data-current-view="timers"]) .v3-row:hover { background: var(--row-hover); }
  body[data-current-view="timers"] #v3-workspace .v3-row-open:hover { background: transparent; }
  body[data-current-view="timers"] #v3-workspace .v3-row .v3-transport:hover:not(:disabled) {
    background: color-mix(in srgb, var(--kind-bg) 90%, var(--kind-fg));
  }
}
.v3-now { gap: 18px; }
.v3-now .v3-rows { display: grid; gap: 18px; border: 0; background: transparent; overflow: visible; border-radius: 0; }
#v3-workspace .v3-now h2 { margin-top: 4px; }
.v3-now-card {
  position: relative; flex-wrap: wrap; gap: 14px; padding: 14px 16px;
  overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--paper);
}
.v3-now-card[data-status="overdue"], .v3-now-card[data-status="finished"] { border-color: var(--v3-warning-border, var(--outline-strong)); background: var(--v3-warning-card, var(--overdue-bg)); }
.v3-now-card[data-status="overdue"] .v3-row-copy small { color: var(--overdue-fg); }
.v3-now-card[data-status="overdue"] .v3-icon-tile { color: var(--overdue-fg); background: var(--overdue-bg); }
#v3-workspace .v3-now-card .v3-row-open { min-height: 44px; flex: 1 1 205px; padding: 0; }
.v3-now-card .v3-row-copy strong { font-size: 16px; }
.v3-now-card .v3-icon-tile { width: 40px; height: 40px; border-radius: 10px; }
.v3-now-card .v3-icon { width: 20px; height: 20px; }
.v3-now-card .v3-value { flex-basis: auto; }
.v3-now-card .v3-value strong { font-size: 22px; }
.v3-now-card .v3-row-actions { flex: 0 1 auto; padding: 0; }
#v3-workspace .v3-now-card .v3-item-action { min-height: 44px; border-radius: 10px; font-size: 15px; }
#v3-workspace .v3-now-card .v3-transport { background: transparent; border-color: var(--kind-fg); }
.v3-now-card .v3-button .v3-icon { width: 16px; height: 16px; }
.v3-now-card progress { appearance: none; position: absolute; inset: auto 0 0; width: 100%; height: 4px; border: 0; color: var(--kind-fg); background: transparent; }
.v3-now-card progress::-webkit-progress-bar { background: transparent; }
.v3-now-card progress::-webkit-progress-value { background: var(--kind-fg); }
.v3-now-card progress::-moz-progress-bar { background: var(--kind-fg); }

/* Today places the tile, title, live timer value and action buttons in separate columns. */
.v3-today-group { font-size: 16px; line-height: normal; }
#v3-workspace .v3-today-group :is(h2, button) { line-height: normal; }
.v3-today-group .v3-row:not(.v3-now-card) { border-top: 0; border-bottom: 1px solid var(--sage); }
.v3-today-group .v3-row.is-selected:not(.v3-now-card) { background: var(--surface-hover); }
.v3-today-group .v3-row:not(.v3-now-card) .v3-icon-tile svg { width: 17px; height: 17px; }
.v3-today-group .v3-value { gap: 0; }
.v3-tally-progress {
  display: block; height: 4px; max-width: 280px; margin-top: 4px; border-radius: 2px;
  background: var(--sage); overflow: hidden;
}
.v3-tally-progress > span { display: block; height: 100%; background: var(--kind-fg); }
.v3-row[data-kind="counter"][data-status="reached"] .v3-tally-progress > span { background: var(--type-reminder); }
.v3-row[data-kind="counter"][data-status="reached"] .v3-value strong { color: var(--type-reminder); }
#v3-workspace .v3-row [data-v3-action="step"] {
  min-width: 64px; height: 40px; border-radius: 10px; border: 0; padding: 0 14px;
  background: var(--type-counter-bg); color: var(--type-counter); font-size: 16px; font-weight: 700;
}
#v3-workspace .v3-row [data-v3-action="step"]:disabled { background: var(--sage); color: var(--muted); }
.v3-today-group .v3-now-card .v3-row-copy { gap: 3px; }
.v3-today-group .v3-now-card .v3-row-copy :is(strong, small) { white-space: normal; overflow-wrap: anywhere; }
.v3-today-group .v3-now-card .v3-row-copy small { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.v3-today-group .v3-row-copy small .v3-icon { width: 14px; height: 14px; }
#v3-workspace .v3-today-group .v3-now-card .v3-row-open {
  align-self: center; flex: 1 1 200px; min-height: 0; padding: 4px 0;
}
#v3-workspace .v3-today-group .v3-now-card .v3-row-open:hover { background: transparent; }
.v3-today-group .v3-now-card .v3-value { flex: 0 0 110px; align-items: flex-end; }
.v3-today-group .v3-now-card .v3-value strong { font-size: 24px; font-weight: 700; }
.v3-today-group .v3-now-card[data-status="finished"] .v3-value strong { color: var(--type-reminder); }
.v3-today-group .v3-now-card[data-status="finished"] progress { --kind-fg: var(--type-reminder); }
#v3-workspace .v3-today-group .v3-item-action { border-radius: 10px; gap: 6px; }
#v3-workspace .v3-today-group .v3-transport { padding-inline: 16px; font-weight: 700; }
.v3-today-group .v3-transport .v3-icon { width: 12px; height: 12px; }
.v3-today-group .v3-now-card .v3-transport .v3-icon { width: 14px; height: 14px; }
#v3-workspace .v3-today-group .v3-now-card .v3-primary { padding-inline: 18px; border: 0; font-weight: 700; }
#v3-workspace .v3-today-group .v3-now-card [data-v3-action="complete"] { padding-inline: 20px; }
#v3-workspace .v3-today-group .v3-now-card :is([data-v3-action="snooze-10"], [data-v3-action="restart"]) { border-color: var(--outline-strong); }
#v3-workspace .v3-today-group .v3-now-card [data-v3-action="snooze-10"] { padding-inline: 16px; }
@media (min-width: 761px) {
  #v3-workspace .v3-today-group .v3-row:not(.v3-now-card) .v3-row-open { padding: 0 16px; }
  .v3-today-group .v3-row:not(.v3-now-card) .v3-value { flex: 0 0 120px; }
}
@media (max-width: 440px) {
  #v3-workspace .v3-today-group .v3-now-card .v3-row-open { flex-basis: calc(100% - 54px); }
  .v3-today-group .v3-now-card .v3-value { flex: 1 1 auto; align-items: flex-start; }
}
.v3-empty { text-align: center; display: grid; gap: 6px; padding: 48px 24px; border: 1px dashed var(--border); border-radius: 14px; }
.v3-empty strong { font-size: 16px; font-weight: 600; }
.v3-empty span { font-size: 14px; color: var(--muted); }
.v3-details {
  flex: 0 1 340px; min-width: 0; align-self: flex-start; display: flex; flex-direction: column; gap: 16px;
  padding: 24px; background: var(--control); border-left: 1px solid var(--border); min-height: calc(100vh - 1px);
}
.v3-details header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.v3-type-chip { border-radius: 999px; padding: 6px 10px; font-size: 12.5px; font-weight: 600; background: var(--kind-bg); color: var(--kind-fg); overflow-wrap: anywhere; }
#v3-workspace .v3-details h2 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; color: var(--ink); }
.v3-detail-value { display: grid; gap: 6px; padding: 16px; background: var(--paper); border: 1px solid var(--border); border-radius: 14px; }
.v3-detail-value .v3-value { align-items: flex-start; }
.v3-detail-value .v3-value strong { font-size: 36px; font-weight: 700; letter-spacing: -.02em; }
.v3-detail-value p, .v3-description { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.v3-description { white-space: pre-wrap; }
@media (max-width: 1150px) {
  .v3-with-detail { flex-direction: column-reverse; }
  .v3-with-detail .v3-details { width: 100%; min-height: 0; flex-basis: auto; border-left: 0; border-bottom: 1px solid var(--border); }
  .v3-with-detail .v3-sheet { flex-basis: auto; }
}
@media (max-width: 760px) {
  .v3-sheet { padding: 24px 16px 72px; }
  .v3-head { min-height: 56px; }
  #v3-workspace h1 { font-size: 30px; }
  .v3-row-actions { flex-basis: auto; }
  .v3-row-actions:empty { display: none; }
  #v3-workspace .v3-row-open { gap: 9px; padding-inline: 10px; }
  .v3-value { flex: 0 1 auto; max-width: 36%; text-align: end; }
  .v3-detail-value .v3-value { max-width: 100%; text-align: start; }
  .v3-type-choices { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
  .v3-details { padding: 18px 16px; }
}
@media (max-width: 440px) {
  .v3-column { gap: 14px; }
  .v3-filters { gap: 8px; }
  #v3-workspace .v3-tab { padding-inline: 11px; }
  .v3-row:not(.v3-now-card):has(.v3-row-actions:not(:empty)) { flex-wrap: wrap; }
  .v3-row:not(.v3-now-card):has(.v3-row-actions:not(:empty)) .v3-row-open { flex-basis: 100%; }
  .v3-row:not(.v3-now-card) .v3-row-actions:not(:empty) { margin: 0 0 8px 52px; }
  #v3-workspace .v3-now-card { gap: 8px; padding: 12px; }
  #v3-workspace .v3-now-card .v3-row-open { flex-basis: 100%; }
  .v3-now-card .v3-row-actions { padding-top: 3px; }
}

/* The prototype has a single workspace header. The drawer toggle stays available on narrow screens. */
body.v3-workspace-open[data-current-view] .main-shell > main {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.v3-workspace-open[data-current-view] .main-shell > .topbar,
body.v3-workspace-open[data-current-view] main > :is(.page-intro, .content-grid, #today-dashboard, #timer-runs-page, #search-bar, #guest-preview) {
  display: none !important;
}
body.v3-workspace-open main > :is(.quota-recovery-banner, #mobile-item-link, #global-action-status, #tab-command-status):not([hidden]) {
  margin: 16px 24px;
}
@media (max-width: 1024px) {
  body.v3-workspace-open[data-current-view] .main-shell > .topbar {
    display: flex !important;
    position: static;
    min-height: 48px;
    height: auto;
    background: var(--page);
    border: 0;
    box-shadow: none;
  }
  body.v3-workspace-open[data-current-view] .topbar :is(.topbar-right, .breadcrumb, #current-date) { display: none; }
}
.v3-row-zones { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.v3-row-zones b { color: var(--ink); font-weight: 600; }
html[data-theme="dark"] #v3-workspace {
  --v3-warning-border: #796431;
  --v3-warning-card: #2e2c1c;
}
html[data-theme="dark"] .v3-now-card[data-status="overdue"] .v3-icon-tile { color: #f5d77e; background: #594923; }

.v3-details header [data-v3-control="close-detail"] { width: 40px; padding: 0; }
.v3-details .v3-detail-name { display: grid; gap: 6px; }
.v3-details .v3-detail-name > span, .v3-details .v3-detail-zones h3 {
  margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted);
}
.v3-details .v3-detail-name > div {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  min-height: 46px; padding: 4px 8px 4px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--paper);
}
#v3-workspace .v3-detail-name h2 { min-width: 0; font-size: 16px; letter-spacing: normal; }
#v3-workspace .v3-detail-name .v3-button { min-height: 36px; padding: 0 8px; border: 0; color: var(--kind-fg); }
.v3-details[data-status="overdue"] .v3-value strong { color: var(--overdue-fg); }
.v3-details .v3-detail-value p { font-size: 13px; }
.v3-details .v3-detail-zones { display: grid; gap: 8px; }
.v3-details .v3-detail-zones ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.v3-details .v3-detail-zones li {
  display: grid; align-content: center; gap: 2px; min-height: 60px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--paper);
  color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere;
}
.v3-details .v3-detail-zones li:first-child { border-color: var(--outline-strong); background: var(--selection-bg); }
.v3-details .v3-detail-zones strong { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.v3-details .v3-detail-zones small { font-size: 11.5px; }
.v3-details .v3-detail-fields { margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); }
.v3-details .v3-detail-fields > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; min-height: 54px; padding: 8px 12px; }
.v3-details .v3-detail-fields > div + div { border-top: 1px solid var(--border); }
.v3-details .v3-detail-fields dt { font-size: 14px; font-weight: 500; }
.v3-details .v3-detail-fields dd { color: var(--muted); font-size: 13px; margin: 0 0 0 auto; text-align: end; overflow-wrap: anywhere; }
.v3-details[data-v3-detail-view="today"] .v3-type-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; }
.v3-details[data-v3-detail-view="today"] .v3-detail-value { gap: 4px; }
.v3-details[data-v3-detail-view="today"][data-status="finished"] .v3-value strong { color: var(--yellow); }
.v3-details[data-v3-detail-view="today"] .v3-detail-zones h3, .v3-details[data-v3-detail-view="today"] .v3-detail-zones small { font-weight: 600; }
.v3-details[data-v3-detail-view="today"] .v3-detail-zones p { color: var(--muted); font-size: 12px; }
.v3-details[data-kind="counter"][data-status="reached"] .v3-detail-value strong { color: var(--yellow); }
.v3-tally-detail-actions { display: flex; gap: 8px; }
#v3-workspace .v3-tally-detail-actions .v3-button {
  flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 4px; border-radius: 10px;
  border-color: var(--outline-strong); font-size: 18px; font-weight: 700;
}
#v3-workspace .v3-tally-detail-actions [data-v3-action="step"] {
  flex-grow: 2; border-color: transparent; background: var(--yellow); color: #151b16;
}
#v3-workspace .v3-tally-detail-actions [data-v3-action="reset"] { font-size: 14.5px; font-weight: 600; }
@media (min-width: 1151px) {
  .v3-details[data-v3-detail-view="today"] { flex: 1 1 320px; max-width: 380px; align-self: stretch; }
  .v3-with-detail:has(> .v3-details[data-v3-detail-view="today"]) > .v3-sheet { flex-grow: 999; }
}
.v3-quick-times, .v3-datetime { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.v3-quick-times > span, .v3-field small { color: var(--muted); font-size: 12.5px; }
#v3-workspace .v3-quick-times button {
  min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--ink); font-size: 13px; font-weight: 600;
}
#v3-workspace .v3-quick-times [aria-pressed="true"] { background: var(--type-reminder-bg); color: var(--type-reminder); border-color: var(--type-reminder); }
.v3-fields { border: 1px solid var(--border); border-radius: 12px; background: var(--control); }
.v3-field { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; min-height: 54px; padding: 7px 12px 7px 14px; font-size: 14px; }
.v3-field small { display: block; margin-top: 2px; }
#v3-workspace .v3-field :is(input, select) { min-height: 40px; max-width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 0 8px; background: var(--page); color: var(--ink); font: inherit; }
.v3-today-composer .v3-field { min-height: 69px; gap: 10px 14px; border-bottom: 1px solid var(--border); }
.v3-today-composer .v3-fields { overflow: hidden; }
#v3-workspace .v3-today-composer .v3-type-choice[aria-checked="true"] { color: var(--kind-fg); border-color: var(--kind-fg); background: var(--kind-bg); }
#v3-workspace .v3-today-composer #v3-draft-name { border: 2px solid var(--focus); outline-offset: 1px; }
.v3-today-composer .v3-composer-footer small { flex: 1 1 160px; color: var(--muted); font-size: 12.5px; }
.v3-today-composer .v3-composer-footer button span { font-weight: 500; }
.v3-today-composer .v3-composer-footer [data-v3-control] span { color: var(--muted); }
#v3-workspace .v3-today-composer .v3-composer-footer button { border-radius: 10px; min-height: 44px; padding: 0 16px; }
.v3-draft-zones { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 0 2px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.v3-draft-zones :is(b, strong) { color: var(--ink); font-weight: 600; }
.v3-row:not(.v3-now-card):is([data-kind="reminder"], [data-kind="timer"]) .v3-value strong { color: var(--ink); }
.v3-counter-fields { font-size: 16px; line-height: normal; }
.v3-counter-fields input[type="number"] { width: 96px; }
.v3-counter-fields input[type="text"] { width: 150px; }
.v3-counter-fields select { max-width: 220px; }
.v3-counter-fields .v3-field { min-height: 69px; gap: 10px 14px; border-bottom: 1px solid var(--sage); }
.v3-counter-fields label { font-weight: 500; }
#v3-workspace .v3-counter-fields :is(input, select) { height: 40px; padding: 0 10px; }
.v3-counter-name { display: grid; gap: 6px; }
.v3-counter-name label { color: var(--muted); font-size: 12.5px; }
#v3-workspace .v3-counter-name input {
  width: 100%; min-height: 46px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--paper); font-size: 16px; font-weight: 600;
}
.v3-counter-header-actions { display: flex; align-items: center; gap: 10px; }
.v3-counter-save-status { color: var(--type-timer); font-size: 13px; white-space: nowrap; }
.v3-tally-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.v3-details[data-kind="counter"] { font-size: 16px; line-height: normal; }
.v3-details[data-kind="counter"] header { gap: 10px; }
.v3-details[data-kind="counter"] .v3-type-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; }
.v3-details[data-kind="counter"] [data-v3-control="close-detail"] .v3-icon { width: 16px; height: 16px; }
.v3-details[data-kind="counter"] .v3-detail-value { gap: 4px; }
.v3-details[data-kind="counter"] .v3-detail-value p { font-size: 13px; }
.v3-details[data-kind="counter"] .v3-counter-fields { background: var(--paper); overflow: hidden; }
.v3-counter-spacer { flex: 1; }
#v3-workspace .v3-details[data-kind="counter"] button { line-height: normal; }
#v3-workspace .v3-details[data-kind="counter"] [data-v3-action="delete"] {
  align-self: flex-start; height: 40px; padding: 0; border: 0; background: transparent; color: var(--red); font-size: 14px; font-weight: 600;
}
@media (min-width: 1151px) {
  .v3-details[data-kind="counter"] { flex: 1 1 320px; max-width: 380px; min-height: 100vh; align-self: stretch; }
  .v3-with-detail:has(> .v3-details[data-kind="counter"]) > .v3-sheet { flex-grow: 999; }
}

.v3-timer-editor { flex-basis: 420px; }
.v3-timer-editor header h2 { display: flex; align-items: center; gap: 10px; }
.v3-timer-editor fieldset { display: grid; gap: 16px; margin: 0; padding: 0; min-width: 0; border: 0; }
.v3-timer-editor label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
#v3-workspace .v3-timer-editor :is(input, textarea) {
  width: 100%; padding: 10px 12px; border: 1px solid var(--outline-strong); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: inherit; font-weight: 400;
}
.v3-timer-editor textarea { resize: vertical; }
.v3-timer-interpretation { display: grid; gap: 4px; padding: 12px; border-radius: 8px; background: var(--selection-bg); }
.v3-timer-interpretation span, .v3-timer-editor small, .v3-timer-editor summary { font-size: 13px; color: var(--muted); }
.v3-timer-editor [data-timer-finish] { border-block: 1px solid var(--border); padding: 14px 0; }
.v3-timer-editor h3 { margin: 0 0 5px; font-size: 14px; }
.v3-timer-editor ul { list-style: none; padding: 0; margin: 8px 0 0; }
.v3-timer-editor li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.v3-timer-editor li + li { border-top: 1px solid var(--border); }
.v3-timer-editor li span:last-child { text-align: end; }
.v3-timer-editor summary { cursor: pointer; }
.v3-timer-editor details[open] > :not(summary) { margin-top: 10px; }
@media (max-width: 1150px) { .v3-with-detail .v3-timer-editor { flex-basis: auto; } }
