:root {
  --orange: #dc865c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  padding: 11px 17px;
  font-weight: 600;
  color: var(--ink);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #e8ae6d;
  outline-offset: 3px;
}
a {
  color: var(--green);
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 32px;
  color: var(--green);
}
.brand b {
  color: var(--ink);
  letter-spacing: -1.1px;
}
.sidebar-note {
  margin: 7px 0 38px;
}
nav {
  display: grid;
  gap: 9px;
}
.nav {
  background: transparent;
  text-align: left;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
}
small {
  font-size: 12px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}
main {
  margin: 0 auto 0 230px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
h1 {
  line-height: 1.2;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
h3 {
  font-size: 15px;
  margin: 24px 0 12px;
}
p {
  margin: 10px 0;
}
.eyebrow {
  letter-spacing: 1.7px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
.outline {
  border: 1px solid var(--border);
  background: #fff;
}
.text-button {
  background: transparent;
  padding: 10px;
}
.wide {
  width: 100%;
}
.hero {
  justify-content: space-between;
  gap: 25px;
  align-items: center;
}
.hero h2 {
  font-size: 28px;
  max-width: 480px;
  margin: 16px 0 8px;
}
.hero p {
  color: #b9d1c6;
  max-width: 450px;
  font-size: 13px;
}
.pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  padding: 6px 10px;
  border: 1px solid #76a59366;
  border-radius: 20px;
  color: #c7e8cb;
}
.hero-clock {
  text-align: center;
  min-width: 245px;
}
#clock {
  font-size: clamp(34px, 4.5vw, 55px);
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.hero input {
  border: 1px solid #ffffff2b;
  margin-top: 14px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-heading h2 {
  margin: 0;
}
.section-heading span {
  font-size: 13px;
}
.task-grid {
  display: grid;
}
.task-card.running {
  border-color: var(--green);
}
.task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.task-mark {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--task-color), white 89%);
  color: var(--task-color);
  font-size: 20px;
}
.icon-button {
  background: transparent;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
.task-card h3 {
  font-size: 16px;
  margin: 17px 0 4px;
  overflow-wrap: anywhere;
}
.task-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.task-time {
  font-size: 22px;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}
.task-caption {
  font-size: 10px;
  color: var(--muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.play {
  border: 1px solid var(--border);
  background: #f8faf7;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  color: var(--green);
}
.running .play {
  background: var(--green);
  color: #fff;
}
.tip {
  color: var(--muted);
  border-left: 3px solid #d5ba88;
}
.empty {
  text-align: center;
  border: 1px dashed #c9d6ca;
  border-radius: 16px;
  grid-column: 1/-1;
}
.empty p {
  color: var(--muted);
}
.toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
}
label {
  display: grid;
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
  margin: 0 0 17px;
}
.toolbar label {
  margin: 0;
}
input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 12px;
  width: 100%;
  min-width: 0;
}
input[type='color'] {
  width: 90px;
  padding: 4px;
  height: 43px;
}
.panel {
  border: 1px solid var(--border);
  background: white;
  border-radius: 16px;
}
.history-date-field {
  width: 260px;
  max-width: 100%;
}
.history-date-controls,
.history-day-heading {
  display: flex;
  align-items: center;
  gap: 6px;
}
.history-date-controls {
  margin-top: 6px;
}
.history-day-arrow {
  flex: 0 0 32px;
  width: 32px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
}
.history-day-heading .history-day-arrow {
  display: none;
}
.history-selected-day {
  margin: 10px 0 14px;
  font-size: 12px;
  text-transform: capitalize;
}
.history-day-nav {
  display: none;
}
.history-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid color-mix(in srgb, var(--entry-color) 30%, var(--border));
  border-radius: 9px;
  background: color-mix(in srgb, var(--entry-color) 9%, var(--paper));
}
.history-edit {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  padding: 0;
  border-radius: inherit;
  background: transparent;
}
.history-edit:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.history-carry {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 3px 0;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--paper);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.history-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--entry-color);
  color: var(--entry-ink);
}
.history-icon .task-icon {
  width: 21px;
  height: 21px;
}
.history-details {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.history-actions {
  display: flex;
  align-self: center;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.history-duration {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.history-buttons {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.history-buttons button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.history-buttons svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.history-row:last-child {
  margin-bottom: 0;
}
.history-row strong {
  display: block;
}
.history-row small {
  color: var(--muted);
}
.history-row p {
  margin: 4px 0;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.summary-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 340px;
  max-width: 100%;
  gap: 8px;
}
.summary-range label {
  min-width: 0;
}
#summary-period,
.summary-category-hint,
.summary-empty {
  font-size: 12px;
}
.summary-day {
  padding: 12px;
  margin-bottom: 12px;
}
.summary-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.summary-day-header h3 {
  font-size: 14px;
  margin: 0;
}
.summary-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}
.summary-week .summary-day {
  min-width: 0;
  padding: 8px;
  margin-bottom: 0;
  scroll-snap-align: start;
}
.summary-week .summary-day-placeholder {
  min-height: 92px;
  background: color-mix(in srgb, var(--muted) 7%, var(--paper));
  color: var(--muted);
  border-style: dashed;
}
.summary-outside {
  font-size: 10px;
}
.summary-week .summary-day-header {
  display: grid;
  gap: 4px;
}
.summary-week .summary-day-header h3,
.summary-week .summary-day-header > strong {
  font-size: 12px;
}
.summary-week .summary-row {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  padding: 7px;
}
.summary-week .history-icon {
  width: 24px;
  height: 24px;
}
.summary-week .history-icon .task-icon {
  width: 17px;
  height: 17px;
}
.summary-week .summary-row .history-details {
  font-size: 11px;
}
.summary-week .summary-values {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}
.summary-week .summary-values strong {
  font-size: 12px;
}
.summary-week .summary-values small {
  font-size: 10px;
}
.summary-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
}
.summary-row .history-icon {
  grid-column: 1;
  grid-row: 1;
}
.summary-row .history-details {
  grid-column: 2;
  grid-row: 1;
  font-size: 13px;
}
.summary-values {
  grid-column: 3;
  grid-row: 1;
  text-align: right;
  white-space: nowrap;
}
.summary-values strong {
  font-size: 16px;
}
.summary-head {
  padding: 14px 18px;
  border-radius: 16px;
  margin: 12px 0;
}
.summary-head > summary {
  cursor: pointer;
  list-style: none;
}
.summary-head > summary::-webkit-details-marker {
  display: none;
}
.summary-overview-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.summary-overview-total {
  font-size: 28px;
}
.summary-chevron {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.summary-head[open] .summary-chevron {
  transform: rotate(180deg);
}
.summary-category-bar {
  display: flex;
  height: 12px;
  margin-top: 10px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--border);
}
.summary-category-bar > span {
  flex-basis: 0;
  min-width: 0;
}
.summary-overview-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.summary-overview-details h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.summary-overview-grid > .panel {
  min-width: 0;
}
.summary-overview-grid.summary-single-day {
  grid-template-columns: minmax(0, 1fr);
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.error,
.danger {
  color: #b64736;
}
#notice {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 420px;
  z-index: 20;
  color: #fff;
  padding: 16px 22px;
  border-radius: 12px;
}
dialog {
  border: 0;
  border-radius: 19px;
  color: var(--ink);
  box-shadow: 0 20px 80px #0003;
}
.dialog-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-title h2 {
  margin: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}
.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
}
.login-card {
  border: 1px solid #fff;
  padding: 45px;
  width: min(460px, calc(100% - 30px));
}
.login-card h1 {
  font-size: 38px;
  margin-top: 18px;
}
.login-card form {
  margin: 30px 0 22px;
}
footer {
  margin: 30px 30px 30px 280px;
  color: var(--muted);
  text-align: center;
}
.footer-version {
  display: block;
  margin-top: 3px;
  font-size: 9px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  main {
    margin-left: 260px;
    max-width: 1500px;
  }
}
@media (max-width: 1000px) {
  aside {
    width: 190px;
    padding: 30px 16px;
  }
  main {
    margin-left: 190px;
    padding: 35px 28px;
  }
  .hero {
    padding: 28px;
  }
  .hero-clock {
    min-width: 200px;
  }
  .hero h2 {
    font-size: 23px;
  }
  footer {
    margin-left: 210px;
  }
}
@media (max-width: 700px) {
  aside {
    inset: auto 0 0;
    width: auto;
    height: 72px;
    padding: 6px 10px;
    z-index: 10;
    border-right: 0;
    border-top: 1px solid var(--border);
  }
  aside .brand,
  .sidebar-note,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    justify-content: space-around;
    gap: 0;
  }
  .nav {
    flex-direction: column;
    gap: 1px;
    padding: 6px 8px;
    font-size: 19px;
    border-radius: 10px;
    min-width: 70px;
  }
  .nav span {
    font-size: 10px;
  }
  main {
    margin: 0;
    padding: 26px 19px 15px;
  }
  header {
    margin-bottom: 24px;
    align-items: start;
  }
  header .outline {
    font-size: 12px;
    white-space: nowrap;
    padding: 10px;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
    gap: 18px;
    padding: 27px 24px;
  }
  .hero h2 {
    margin: 16px auto 8px;
    font-size: 24px;
  }
  .hero p {
    margin: auto;
  }
  .hero-clock {
    min-width: 0;
  }
  #clock {
    font-size: 48px;
  }
  .task-grid {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .task-card {
    padding: 16px;
  }
  .task-time {
    font-size: 19px;
  }
  .task-card h3 {
    font-size: 14px;
  }
  .task-mark {
    width: 36px;
    height: 36px;
  }
  .task-bottom {
    gap: 5px;
  }
  .play {
    width: 36px;
    height: 36px;
  }
  .section-heading {
    margin-top: 26px;
  }
  .section-heading span {
    font-size: 11px;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar label {
    flex: 1;
    min-width: 130px;
  }
  .toolbar button {
    font-size: 12px;
  }
  .panel {
    padding: 19px;
  }
  .history-desktop-toolbar {
    display: none;
  }
  .history-day-nav {
    position: fixed;
    z-index: 9;
    left: 0;
    right: 0;
    bottom: 65px;
    height: 80px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--paper);
    border-top: 1px solid var(--border);
  }
  .history-days {
    display: flex;
    position: relative;
    flex: 1;
    min-width: 0;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }
  .history-days::-webkit-scrollbar {
    display: none;
  }
  .history-days button {
    flex: 0 0 48px;
    min-height: 66px;
    padding: 4px;
    position: relative;
    display: grid;
    justify-items: center;
    gap: 1px;
    scroll-snap-align: center;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    border-radius: 8px;
  }
  .history-days small {
    font-size: 9px;
  }
  .history-days strong {
    font-size: 18px;
  }
  .history-days [aria-pressed='true'] {
    background: color-mix(in srgb, var(--green) 14%, var(--paper));
    color: var(--ink);
  }
  .history-days [aria-pressed='true']::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--green);
    position: absolute;
    bottom: 2px;
  }
  #history-add {
    flex: 0 0 44px;
    height: 58px;
    padding: 0;
    font-size: 30px;
  }
  body[data-view='history'] footer {
    margin-bottom: 160px;
  }
  body[data-view='history'] #notice {
    bottom: 155px;
  }
  #history.panel {
    padding: 10px;
  }
  .history-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 4px 8px;
    padding: 8px;
    margin-bottom: 6px;
  }
  .history-icon {
    grid-column: 1;
    grid-row: 1;
  }
  .history-details {
    grid-column: 2;
    grid-row: 1;
  }
  .history-actions {
    display: contents;
  }
  .history-duration {
    grid-column: 2;
    grid-row: 2;
  }
  .history-buttons,
  .history-actions > small {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }
  .history-row small {
    font-size: 11px;
  }
  .login-card {
    padding: 32px;
  }
  footer {
    margin: 20px 20px 90px;
  }
  #notice {
    bottom: 85px;
    left: 15px;
    right: 15px;
    max-width: none;
  }
}
/* Compact task board. Icons: Google Material Symbols, Apache-2.0. */
body {
  font-size: 14px;
}
aside {
  width: 204px;
  padding: 25px 19px;
}
.sidebar-note {
  margin-bottom: 25px;
}
main {
  margin-left: 204px;
  padding: 25px 32px 12px;
  max-width: 1500px;
}
h1 {
  letter-spacing: -0.6px;
  margin: 5px 0;
}
header .muted {
  font-size: 12px;
  margin: 5px 0;
}
.eyebrow {
  font-size: 10px;
  margin-top: 0;
}
.outline,
.panel,
dialog {
  background: var(--paper);
  color: var(--ink);
}
input,
select,
textarea {
  background: var(--paper);
  color: var(--ink);
}
.panel h2 {
  font-size: 18px;
}
.panel p {
  font-size: 13px;
}
.history-buttons button {
  background: var(--paper);
  color: var(--ink);
}
.history-buttons .danger {
  background: #c43d35;
  border-color: #c43d35;
  color: white;
}
.summary-head {
  background: color-mix(in srgb, var(--green), transparent 89%);
}
.appearance .toolbar {
  margin: 15px 0;
}
.appearance label {
  min-width: 150px;
}
.hero {
  background: transparent;
  padding: 0;
  min-height: 0;
  border-radius: 13px;
  display: block;
  box-shadow: none;
  color: var(--ink);
  margin-bottom: 8px;
}
.active-timer {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  border-radius: 13px;
  padding: 16px 20px;
  background: var(--active-color);
  color: var(--active-ink);
  position: relative;
  overflow: hidden;
}
.active-timer:after {
  content: '';
  position: absolute;
  inset: 0 0 0 60%;
  background: #ffffff09;
  transform: skew(-25deg);
  pointer-events: none;
}
.running-icon {
  display: flex;
  flex: none;
}
.task-icon {
  height: 38px;
  width: 38px;
  fill: currentColor;
  flex-shrink: 0;
}
.timer-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.timer-meta strong {
  font-size: 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.timer-meta small {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 400;
  margin-top: 3px;
}
.timer-meta .pill {
  font-size: 8px;
  padding: 0;
  border: 0;
  color: inherit;
  opacity: 0.8;
  margin-bottom: 4px;
}
.active-timer #clock {
  font-size: 27px;
  margin: 0;
  letter-spacing: 0;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.stop-symbol {
  font-size: 12px;
  position: relative;
  z-index: 1;
}
.hero input {
  display: block;
  max-width: none;
  background: var(--paper);
  border-color: var(--border);
  color: var(--ink);
  margin: 7px 0 0;
  padding: 9px 12px;
  font-size: 12px;
}
.hero input::placeholder {
  color: var(--muted);
}
#idle-timer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
}
#idle-timer span {
  font-size: 12px;
  color: var(--muted);
}
.section-heading h2 {
  font-size: 16px;
}
.grid-hint {
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 14px;
}
.task-card {
  border: 0;
  border-radius: 11px;
  padding: 0;
  background: transparent;
  position: relative;
  min-width: 0;
}
.task-card.running {
  border: 0;
  box-shadow: 0 0 0 2px var(--task-color);
}
.task-launch {
  flex-direction: column;
  justify-content: center;
  width: 100%;
  background: var(--task-color);
  color: var(--task-ink);
  transition:
    filter 0.12s,
    transform 0.12s;
  position: relative;
  overflow: hidden;
}
.task-launch:hover {
  filter: brightness(1.12);
}
.task-launch:active {
  transform: scale(0.97);
}
.task-card.running .task-launch {
  background: color-mix(in srgb, var(--task-color), var(--paper) 83%);
  color: var(--muted);
}
.task-card.running .task-launch:before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--task-color);
  border-radius: 50%;
  position: absolute;
  left: 9px;
  top: 9px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--task-color), transparent 80%);
}
.task-title {
  font-weight: 700;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.task-launch .task-time {
  line-height: 1.2;
  opacity: 0.8;
  letter-spacing: 0;
}
.task-edit {
  position: absolute;
  top: 2px;
  right: 3px;
  z-index: 1;
  padding: 0 6px;
  background: #00000024;
  color: var(--task-ink);
  line-height: 1;
  border-radius: 7px;
}
.running .task-edit {
  color: var(--ink);
}
.tip {
  font-size: 11px;
  margin-top: 20px;
}
.task-preview {
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  border-radius: 12px;
  width: 126px;
  min-height: 130px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.task-preview span {
  max-width: 100%;
}
.icon-picker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  max-height: 205px;
  overflow-y: auto;
  padding: 3px;
}
.icon-choice {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 8px;
  display: flex;
  justify-content: center;
}
.icon-choice.selected {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green), transparent 85%);
  box-shadow: 0 0 0 1px var(--green);
}
.color-palette {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 9px;
  margin-bottom: 20px;
}
.color-palette button {
  height: 30px;
  border-radius: 7px;
  padding: 0;
  border: 1px solid #ffffff30;
}
.dialog-title {
  margin-bottom: 15px;
}
dialog {
  overflow-y: auto;
}
.empty {
  padding: 30px 16px;
}
.empty h2 {
  font-size: 18px;
}
.empty p {
  font-size: 13px;
}
footer {
  margin-left: 235px;
  font-size: 10px;
}
@media (min-width: 1600px) {
  main {
    margin-left: 204px;
    max-width: 1500px;
  }
}
@media (max-width: 1000px) and (min-width: 701px) {
  main {
    margin-left: 180px;
    padding: 25px;
  }
  aside {
    width: 180px;
  }
  .task-grid {
    grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
  }
  .task-launch {
    min-height: 125px;
  }
}
@media (max-width: 700px) {
  aside {
    inset: auto 0 0;
    width: auto;
    height: 65px;
    padding: 4px 7px;
    background: var(--paper);
  }
  nav {
    width: 100%;
  }
  .nav {
    min-width: 64px;
    padding: 5px 8px;
  }
  .nav.active {
    background: transparent;
    color: var(--green);
  }
  main {
    margin: 0;
    padding: 17px 12px 8px;
  }
  header {
    gap: 10px;
    margin-bottom: 14px;
  }
  h1 {
    font-size: 21px;
  }
  header .muted {
    font-size: 11px;
  }
  header .outline {
    font-size: 11px;
    padding: 9px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.1px;
  }
  .active-timer {
    gap: 10px;
    padding: 12px 11px;
    border-radius: 10px;
    min-height: 76px;
  }
  .running-icon .task-icon {
    height: 29px;
    width: 29px;
  }
  .timer-meta strong {
    font-size: 15px;
  }
  .timer-meta small {
    font-size: 9px;
  }
  .timer-meta .pill {
    display: none;
  }
  .active-timer #clock {
    font-size: 18px;
  }
  .stop-symbol {
    display: none;
  }
  .hero input {
    font-size: 11px;
    padding: 8px 10px;
  }
  #idle-timer {
    display: block;
    padding: 14px;
  }
  #idle-timer b {
    display: block;
    font-size: 13px;
  }
  #idle-timer span {
    display: block;
    font-size: 11px;
    margin-top: 4px;
  }
  .section-heading {
    margin-top: 16px;
    margin-bottom: 6px;
  }
  .section-heading span {
    font-size: 10px;
  }
  .grid-hint {
    font-size: 9px;
    margin-bottom: 10px;
  }
  .task-grid {
    grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr));
    gap: 8px;
  }
  .task-launch {
    padding: 18px 5px 8px;
    min-height: 111px;
    gap: 6px;
    border-radius: 9px;
  }
  .task-title {
    font-size: 11px;
    min-height: 28px;
    line-height: 1.17;
  }
  .task-launch .task-icon {
    height: 31px;
    width: 31px;
  }
  .task-launch .task-time {
    font-size: 9px;
  }
  .task-edit {
    top: 2px;
    right: 2px;
    min-width: 23px;
    min-height: 22px;
    padding: 0 5px;
    font-size: 17px;
  }
  .task-card.running .task-launch:before {
    width: 5px;
    height: 5px;
    left: 7px;
    top: 7px;
  }
  .task-card {
    border-radius: 9px;
  }
  .tip {
    font-size: 10px;
    margin: 17px 0;
    padding: 9px;
  }
  footer {
    margin: 15px 15px 80px;
    font-size: 9px;
  }
  .icon-picker {
    grid-template-columns: repeat(6, 1fr);
  }
  .color-palette {
    gap: 7px;
  }
  dialog {
    padding: 21px;
  }
  .task-preview {
    width: 110px;
    min-height: 110px;
    padding: 15px;
  }
  .appearance {
    margin-bottom: 14px;
  }
  .summary-grid {
    gap: 14px;
  }
}
.management-grid {
  margin-top: 22px;
}
.folder-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.folder-heading h2 {
  margin: 0;
}
.folder-card .task-time {
  font-size: 9px;
}
.public-row,
.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.public-row {
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}
.public-row input,
.check-row input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  accent-color: var(--green);
}
.public-row small,
.user-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.public-row b {
  font-size: 13px;
}
.user-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.user-actions button {
  font-size: 11px;
  padding: 7px;
}
.danger-panel {
  border-color: #b6473655;
}
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: transparent;
  color: #c43d35;
}
.history-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -5px 0 12px;
}
.history-transfers {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.history-tools button {
  font-size: 12px;
  padding: 6px;
  white-space: nowrap;
}
.action-icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
}
.entry-task-picker {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}
.entry-task-picker legend {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}
#entry-tasks {
  max-height: 180px;
  overflow-y: auto;
  padding: 4px;
  gap: 5px;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
}
#entry-tasks .task-launch {
  min-height: 72px;
  height: 72px;
  aspect-ratio: auto;
  grid-template-rows: 22px 24px 10px;
  gap: 2px;
  padding: 6px 4px;
}
#entry-tasks .task-launch > .task-icon {
  grid-row: 1;
  width: 18px;
  height: 18px;
}
#entry-tasks .task-title {
  --label-min: 9;
  --label-max: 10;
  grid-row: 2;
  align-self: center;
  line-height: 11px;
  max-height: 22px;
}
#entry-tasks .task-time {
  grid-row: 3;
  font-size: 8px;
}
#entry-tasks .public-badge {
  top: 6px;
  left: 4px;
}
#entry-tasks .public-badge .task-icon {
  width: 10px;
  height: 10px;
}
#entry-tasks .task-time:empty {
  display: none;
}
#entry-tasks .selected {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.entry-selected {
  display: none;
  position: absolute;
  top: 6px;
  right: 4px;
  font-size: 10px;
  line-height: 1;
}
.selected .entry-selected {
  display: block;
}
.entry-dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.entry-dates fieldset {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.entry-dates legend {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.entry-date-box {
  position: relative;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--paper);
}
.entry-date-box:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.entry-date-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
}
.entry-date-display span {
  color: var(--muted);
  font-size: 11px;
}
.entry-date-display strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.entry-date-box input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  opacity: 0;
  cursor: pointer;
}
.entry-date-box .native-entry-date {
  opacity: 1;
}
.entry-time-adjustments {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 3px;
  margin-top: 6px;
}
.entry-time-adjustments button {
  flex: 1;
  min-width: 0;
  padding: 6px 2px;
  font-size: 11px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.entry-time-adjustments button:last-child {
  flex: 1.6;
}
.dialog-actions {
  flex-wrap: wrap;
}
.check-row {
  font-size: 12px;
  font-weight: 400;
  margin: 15px 0;
}
.appearance + .summary-grid {
  margin-bottom: 18px;
}
#import-summary,
#purge-summary {
  font-size: 13px;
  line-height: 1.6;
}
#api-token-result {
  margin-top: 14px;
  font: 12px monospace;
  overflow-wrap: anywhere;
}
.management-grid .panel {
  min-width: 0;
}
.login main {
  margin: 0;
}
#import-file {
  max-width: 100%;
  font-size: 12px;
}

.management-grid {
  align-items: start;
}

#tasks {
  display: block;
}
.category-group {
  margin: 0 0 14px;
}
.category-group summary {
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.category-group summary small {
  float: right;
  color: var(--muted);
  margin-left: 12px;
}
.folder-card .task-launch {
  background: var(--task-color);
  color: var(--task-ink);
  border: 0;
}
.folder-card .task-icon {
  color: inherit;
}
.folder-badge,
.public-badge {
  position: absolute;
  font-size: 13px;
}
.organize-item {
  border: 1px solid var(--item-color);
  border-radius: 12px;
  background: color-mix(in srgb, var(--item-color) 9%, var(--paper));
}
.organize-title,
.organize-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.organize-title b,
.organize-child span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.organize-item label {
  margin: 10px 0;
}
.order-buttons {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.order-buttons button {
  background: var(--bg);
  border: 1px solid var(--border);
}
.order-buttons button:disabled {
  cursor: default;
}
.folder-style {
  display: flex;
  align-items: center;
}
.folder-style label:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.folder-preview {
  border-radius: 10px;
  display: flex;
}
.organize-child {
  border-top: 1px solid var(--border);
}
.organize-item p {
  font-size: 12px;
}
#organize-panel {
  padding: 5px 10px;
  font-size: 12px;
}
.section-heading {
  gap: 8px;
  flex-wrap: wrap;
}
.folder-heading {
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  #folder-dialog .task-grid {
    grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr));
  }
  .folder-style {
    gap: 8px;
  }
  .folder-style select {
    font-size: 12px;
  }
  .folder-preview .task-icon {
    width: 24px;
    height: 24px;
  }
  .folder-style input[type='color'] {
    width: 55px;
  }
}
/* Compact cards and dialogs. Native scrolling remains available for long lists. */
main {
  padding-top: 19px;
}
header {
  margin-bottom: 12px;
}
.section-heading {
  margin: 14px 0 6px;
}
.grid-hint {
  margin-bottom: 8px;
}
.task-grid {
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 7px;
}
.task-launch {
  min-height: 100px;
  aspect-ratio: 1;
  border-radius: 9px;
}
.task-launch .task-icon {
  width: 30px;
  height: 30px;
}
.task-title {
  font-size: 12px;
}
.task-launch .task-time {
  font-size: 9px;
}
.task-edit {
  min-width: 24px;
  min-height: 22px;
  font-size: 17px;
}
.category-group {
  margin-bottom: 9px;
}
.category-group summary {
  padding: 7px 11px;
  font-size: 13px;
}
.category-group[open] summary {
  margin-bottom: 7px;
}
.uncategorized {
  margin-bottom: 9px;
}
.tip {
  margin: 12px 0;
  padding: 7px 10px;
}
aside nav {
  gap: 4px;
}
.nav {
  padding: 10px 12px;
}
.panel {
  padding: 18px;
}
.toolbar {
  gap: 9px;
  margin: 10px 0 17px;
}
.summary-grid {
  gap: 15px;
}
.appearance {
  margin-bottom: 14px;
}
dialog {
  --dialog-pad: 16px;
  padding: var(--dialog-pad);
  max-height: calc(100dvh - 24px);
  width: min(500px, calc(100% - 24px));
  scroll-padding-top: 64px;
  scroll-padding-bottom: 70px;
  overscroll-behavior: contain;
}
dialog .dialog-title {
  position: sticky;
  top: calc(-1 * var(--dialog-pad));
  z-index: 5;
  background: var(--paper);
  margin: calc(-1 * var(--dialog-pad)) calc(-1 * var(--dialog-pad)) 10px;
  padding: 11px var(--dialog-pad);
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
dialog .dialog-title h2 {
  font-size: 17px;
  min-width: 0;
  overflow-wrap: anywhere;
}
dialog .dialog-title .icon-button {
  flex-shrink: 0;
  min-width: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  font-size: 25px;
}
dialog .dialog-actions {
  position: sticky;
  bottom: calc(-1 * var(--dialog-pad));
  z-index: 4;
  background: var(--paper);
  margin: 12px calc(-1 * var(--dialog-pad)) calc(-1 * var(--dialog-pad));
  padding: 10px var(--dialog-pad);
  border-top: 1px solid var(--border);
  gap: 6px;
}
dialog .dialog-actions button {
  font-size: 12px;
  padding: 9px 11px;
}
dialog label {
  margin-bottom: 10px;
  gap: 4px;
}
dialog input,
dialog select,
dialog textarea {
  padding: 8px 10px;
  font-size: 13px;
}
dialog p {
  font-size: 12px;
  margin: 7px 0;
}
#folder-dialog {
  width: min(820px, calc(100% - 24px));
}
#folder-dialog .task-grid {
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 7px;
}
#organize-dialog {
  width: min(820px, calc(100% - 24px));
}
#organize-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}
.organize-item {
  padding: 10px;
  margin: 0;
  min-width: 0;
}
.organize-title b {
  font-size: 13px;
  background: var(--item-color);
  color: var(--item-ink);
  padding: 5px 8px;
  border-radius: 6px;
}
.organize-item > label {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  align-items: center;
  margin: 8px 0;
}
.order-buttons button {
  padding: 5px 10px;
  min-height: 32px;
}
.folder-style {
  gap: 7px;
}
.folder-style label {
  margin: 4px 0;
  font-size: 11px;
  gap: 3px;
}
.folder-style input[type='color'] {
  width: 52px;
  height: 34px;
}
.folder-style select {
  font-size: 12px;
  padding: 7px;
}
.folder-preview {
  padding: 7px;
}
.folder-preview .task-icon {
  width: 25px;
  height: 25px;
}
.folder-order {
  margin-top: 8px;
}
.folder-order summary {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  padding: 5px 0;
}
.organize-child {
  border-left: 4px solid var(--child-color);
  padding: 5px 0 5px 8px;
  font-size: 12px;
}
#task-dialog {
  width: min(560px, calc(100% - 24px));
}
#task-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#task-form > .dialog-title,
#task-form > .dialog-actions,
#task-preview,
#color-palette,
#icon-picker {
  grid-column: 1/-1;
}
#task-form > .dialog-title {
  order: 0;
}
#task-preview {
  order: 1;
  font-size: 11px;
}
#task-form > label {
  margin: 0;
}
#task-form > label:has(#task-name) {
  order: 2;
  grid-column: 1/-1;
}
#task-form > label:has(#task-folder) {
  order: 3;
}
#task-form > label:has(#task-visibility) {
  order: 4;
}
#task-form > label:has(#task-color) {
  order: 5;
}
#task-form > label:has(#icon-search) {
  order: 6;
}
#color-palette {
  margin: 0;
  gap: 6px;
}
#color-palette button {
  height: 24px;
}
#icon-picker {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  max-height: 160px;
}
.icon-choice {
  padding: 5px;
  min-height: 32px;
}
.icon-choice .task-icon {
  width: 22px;
  height: 22px;
}
#task-form > .dialog-actions {
  order: 9;
}
.folder-heading h2 {
  font-size: 15px;
}
@media (max-width: 700px) {
  main {
    padding: 12px 10px 6px;
  }
  header {
    margin-bottom: 10px;
  }
  h1 {
    font-size: 20px;
  }
  .task-grid {
    grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr));
    gap: 6px;
  }
  .task-launch {
    min-height: 88px;
    padding: 15px 4px 6px;
    gap: 4px;
  }
  .task-launch .task-icon {
    width: 26px;
    height: 26px;
  }
  .task-title {
    font-size: 10px;
    min-height: 24px;
  }
  .task-launch .task-time {
    font-size: 8px;
  }
  .task-edit {
    min-width: 22px;
    min-height: 21px;
  }
  .active-timer {
    min-height: 68px;
    padding: 10px;
  }
  .section-heading {
    margin-top: 12px;
  }
  .category-group summary {
    padding: 6px 10px;
    font-size: 12px;
  }
  #folder-dialog .task-grid {
    grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr));
    gap: 6px;
  }
  .nav {
    padding: 5px 8px;
  }
  .panel {
    padding: 14px;
  }
  dialog {
    --dialog-pad: 12px;
  }
  .dialog-actions {
    gap: 5px;
  }
  .folder-heading {
    gap: 5px;
  }
  #organize-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  #icon-picker {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    max-height: 160px;
  }
  dialog .dialog-title h2 {
    font-size: 16px;
  }
  #task-form {
    gap: 7px;
  }
  #task-form select {
    font-size: 11px;
    padding: 8px 6px;
  }
  .organize-item {
    padding: 9px;
  }
  .tip {
    font-size: 10px;
  }
  footer {
    margin-top: 10px;
  }
}
#task-form {
  display: block;
}
.task-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.task-fields > label {
  margin: 0;
}
@media (max-width: 700px) {
  .summary-toolbar .history-date-field,
  .summary-range {
    width: 100%;
  }
  .summary-toolbar > label {
    min-width: 0;
  }
  .summary-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }
  .history-day-heading {
    margin: 10px 0 14px;
  }
  .history-day-heading .history-day-arrow {
    display: block;
    height: 30px;
  }
  .history-day-heading .history-selected-day {
    flex: 1;
    margin: 0;
    text-align: center;
  }
  #entry-tasks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .task-fields {
    gap: 7px;
  }
}
