:root {
  --canvas: #f3f5f4;
  --surface: #ffffff;
  --surface-subtle: #f8f9f8;
  --ink: #121716;
  --muted: #69726f;
  --line: #dfe4e1;
  --line-strong: #c8cfcb;
  --accent: #b7f34a;
  --accent-strong: #93d52e;
  --accent-ink: #173000;
  --teal: #12685f;
  --teal-soft: #e4f3f0;
  --warning: #9a4b16;
  --warning-soft: #fff1e7;
  --danger: #b22d25;
  --danger-soft: #fff0ee;
  --shadow-sm: 0 1px 2px rgba(18, 23, 22, .06);
  --shadow-lg: 0 20px 60px rgba(18, 23, 22, .10);
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.7rem; line-height: 1.08; letter-spacing: 0; }
h2 { font-size: 1.12rem; line-height: 1.2; letter-spacing: 0; }

.app-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 16px 108px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 900;
}
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 1.08rem; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: .68rem; }
.desktop-nav { display: none; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.user-chip { display: none; }

.icon-button,
.square-button {
  display: grid;
  width: 42px;
  height: 42px;
  min-width: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}
.mobile-nav {
  position: fixed;
  z-index: 30;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border: 1px solid rgba(223, 228, 225, .9);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  padding: 7px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}
.mobile-nav a {
  display: grid;
  gap: 3px;
  min-height: 51px;
  place-items: center;
  border-radius: 9px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  text-decoration: none;
}
.mobile-nav a span { font-size: 1rem; line-height: 1; }
.mobile-nav a.is-active { background: var(--ink); color: #fff; }
.mobile-nav a.is-active span { color: var(--accent); }

.notice {
  margin: 0 0 12px;
  border: 1px solid;
  border-radius: 10px;
  padding: 11px 13px;
  font-weight: 700;
}
.notice.success { border-color: #b7ddd5; background: var(--teal-soft); color: var(--teal); }
.notice.error { border-color: #efc4bf; background: var(--danger-soft); color: var(--danger); }

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px 20px;
}
.eyebrow {
  margin-bottom: 6px;
  color: var(--teal);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.text-link {
  display: none;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

section,
.auth-panel {
  margin-top: 14px;
}
.content-section {
  padding: 18px 0 4px;
  border-top: 1px solid var(--line);
}
.section-heading,
.composer-heading,
.task-head,
.stat-main,
.history-meta,
.client-report-head,
.report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.section-description {
  margin-top: 4px;
  color: var(--muted);
  font-size: .82rem;
}
.counter {
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.timer-composer {
  overflow: hidden;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}
.composer-heading { align-items: flex-start; }
.composer-heading > div:first-child { position: relative; padding-left: 17px; }
.composer-heading .eyebrow { color: #aeb7b3; }
.composer-heading h2 { font-size: 1.35rem; }
.live-dot {
  position: absolute;
  top: 3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(183,243,74,.13);
}
.composer-clock {
  color: var(--accent);
  font-size: .92rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.task-form,
.stack-form,
.filters-form,
.maintenance-task-form {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}
.timer-composer label { color: #aeb7b3; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}
.timer-composer input,
.timer-composer select,
.timer-composer textarea {
  border-color: #3b4240;
  background: #262c2a;
  color: #fff;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus, .rich-editor:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(18,104,95,.13);
}
.timer-composer input:focus,
.timer-composer select:focus,
.timer-composer textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(183,243,74,.15); }

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  padding: 0 15px;
  font-weight: 900;
  text-decoration: none;
}
.primary-button { width: 100%; background: var(--accent); color: var(--accent-ink); }
.primary-button:hover { background: var(--accent-strong); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
.secondary-button { background: #edf0ee; color: var(--ink); }
.ghost-button { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.danger-button { background: var(--danger-soft); color: var(--danger); }
.start-button { min-height: 52px; font-size: .92rem; }
.start-button span { margin-right: 6px; font-size: .75rem; }

.inline-form {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  margin-top: 10px;
}
.timer-composer .client-quick-add input { min-height: 42px; }
.timer-composer .square-button { border-color: #3b4240; background: #262c2a; color: var(--accent); }

.active-list,
.client-stats,
.history-list,
.maintenance-list,
.report-table {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.task-card,
.history-card,
.stat-row,
.maintenance-row,
.maintenance-task,
.client-report,
.report-row,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.task-card { padding: 15px; }
.task-card.is-paused { border-color: #edcdb7; background: #fffbf7; }
.task-client,
.history-client,
.stat-label {
  color: var(--teal);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.task-title { margin-top: 3px; font-size: 1.02rem; font-weight: 850; }
.timer {
  display: grid;
  justify-items: end;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.timer small { margin-bottom: 4px; color: var(--muted); font-size: .62rem; text-transform: uppercase; }
.task-notes {
  margin-top: 10px;
  color: var(--muted);
  font-size: .84rem;
}
.task-meta,
.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
  color: var(--muted);
  font-size: .72rem;
}
.status-dot { color: var(--teal); font-weight: 900; }
.status-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #36b49b; }
.status-dot.is-paused { color: var(--warning); }
.status-dot.is-paused::before { background: #e39155; }
.pill {
  border-radius: 999px;
  background: #edf0ee;
  padding: 4px 8px;
  font-weight: 800;
}
.task-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}
.task-actions form { display: grid; }

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}
.metric {
  min-height: 98px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  padding: 14px;
}
.metric:first-child { background: var(--accent); border-color: var(--accent); }
.metric span { color: var(--muted); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.metric strong { display: block; margin-top: 10px; font-size: 1.45rem; line-height: 1; }
.stat-row { display: grid; gap: 10px; padding: 13px; }
.stat-bar { height: 6px; overflow: hidden; border-radius: 999px; background: #e9edeb; }
.stat-bar span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }

.history-card { overflow: hidden; }
.history-button {
  display: grid;
  width: 100%;
  gap: 5px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 14px;
  text-align: left;
}
.history-button strong { font-size: .95rem; }
.history-button > span:not(.history-client):not(.history-meta) { color: var(--muted); font-size: .8rem; }
.empty-state { padding: 28px 16px; color: var(--muted); text-align: center; }

.auth-panel {
  width: min(100%, 430px);
  margin: 48px auto 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.oauth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.is-disabled { opacity: .45; }
.small-copy { margin-top: 15px; color: var(--muted); font-size: .8rem; text-align: center; }
.align-left { text-align: left; }

.report-filters,
.maintenance-filter { display: grid; gap: 10px; }
.report-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.report-actions.compact { padding: 0 13px 13px; }
.client-report { overflow: hidden; margin-top: 12px; }
.client-report-head { padding: 14px; background: var(--surface-subtle); }
.client-report-head > div:last-child { text-align: right; }
.client-report-head span { color: var(--muted); font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.summary-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 13px; color: var(--muted); font-size: .8rem; font-weight: 800; }

.maintenance-row { padding: 13px; }
.maintenance-edit { display: grid; gap: 9px; }
.maintenance-row > form:last-child { margin-top: 9px; }
.maintenance-task { overflow: hidden; }
.maintenance-task-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}
.maintenance-task-summary > span { display: grid; gap: 3px; }
.maintenance-task-summary small { color: var(--muted); font-size: .72rem; font-weight: 800; }
.maintenance-task-summary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8px;
}
.maintenance-task-summary-actions > b { grid-column: 1 / -1; font-size: 1.15rem; }
.maintenance-task-summary-actions form { display: grid; }
.maintenance-task-body { display: grid; gap: 14px; border-top: 1px solid var(--line); background: var(--surface-subtle); padding: 14px; }
.maintenance-task-body[hidden] { display: none; }
.maintenance-attachments { display: grid; gap: 8px; border-block: 1px solid var(--line); padding: 12px 0; }
.maintenance-attachments > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.maintenance-attachments a { color: var(--teal); font-weight: 800; overflow-wrap: anywhere; }
.mini-danger { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-weight: 900; }

dialog {
  width: min(calc(100% - 24px), 560px);
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(10,15,14,.58); backdrop-filter: blur(4px); }
.dialog-card { display: grid; gap: 12px; padding: 18px; }
.editor-toolbar { display: flex; gap: 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-subtle); padding: 6px; }
.editor-toolbar button { display: grid; width: 38px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font-weight: 900; }
.rich-editor { min-height: 150px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 11px; color: var(--ink); outline: none; }
.formatted-note { margin-top: 8px; color: var(--muted); font-size: .84rem; }
.formatted-note p, .formatted-note ul, .formatted-note ol { margin: 6px 0 0; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.attachment-list a { border-radius: 999px; background: var(--teal-soft); color: var(--teal); padding: 5px 9px; font-size: .72rem; font-weight: 800; text-decoration: none; }

.print-document-body { background: #ecefeb; color: #171b1d; }
.print-document { width: min(100%, 900px); margin: 26px auto 90px; background: #fff; padding: 46px; box-shadow: var(--shadow-lg); }
.print-report-header { display: grid; grid-template-columns: 1fr 260px; gap: 28px; border-bottom: 3px solid #171b1d; padding-bottom: 22px; }
.print-report-header p { color: var(--teal); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.print-report-header h1 { margin-top: 8px; font-size: 2.4rem; }
.print-report-header span { display: block; margin-top: 8px; color: #5d6568; font-weight: 700; }
.print-report-header aside { display: grid; gap: 8px; align-content: start; border-left: 1px solid #d8d5cb; padding-left: 22px; }
.print-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.print-summary div { border: 1px solid #d8d5cb; padding: 13px; }
.print-summary span, .print-task-head { color: #5d6568; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.print-summary strong { display: block; margin-top: 6px; font-size: 1.25rem; }
.print-task-list { border: 1px solid #d8d5cb; }
.print-task-head, .print-task-row { display: grid; grid-template-columns: 108px 1fr 82px 82px; gap: 14px; padding: 12px 14px; }
.print-task-head { background: #f5f3ed; }
.print-task-row { border-top: 1px solid #d8d5cb; }
.print-task-row h2 { margin-bottom: 8px; font-size: 1rem; }
.print-task-row p { color: #303638; font-size: .9rem; }
.print-attachments { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.print-report-footer { display: flex; justify-content: space-between; margin-top: 24px; border-top: 3px solid #171b1d; padding-top: 16px; font-size: 1.2rem; }
.print-floating-actions { position: fixed; right: 22px; bottom: 22px; display: grid; grid-template-columns: 120px 150px; gap: 10px; }

@media (min-width: 720px) {
  .app-shell { padding-inline: 24px; }
  .text-link { display: inline; }
  .task-form { grid-template-columns: 1fr 1fr; }
  .task-form .wide { grid-column: 1 / -1; }
  .active-list, .history-list, .client-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .maintenance-task-form { grid-template-columns: repeat(3, 1fr); }
  .maintenance-task-form .wide { grid-column: 1 / -1; }
  .maintenance-edit { grid-template-columns: 1fr 110px; align-items: end; }
  .maintenance-row { display: grid; grid-template-columns: 1fr 160px; gap: 10px; align-items: end; }
  .maintenance-row > form:last-child { margin: 0; }
  .maintenance-filter { grid-template-columns: minmax(220px, 1fr) 120px; align-items: end; }
  .maintenance-task-summary { flex-direction: row; align-items: center; justify-content: space-between; }
  .maintenance-task-summary-actions { grid-template-columns: auto 145px 100px; }
  .maintenance-task-summary-actions > b { grid-column: auto; min-width: 70px; text-align: right; }
  .report-filters { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .app-shell { padding-bottom: 60px; }
  .topbar { min-height: 82px; }
  .desktop-nav { display: flex; align-items: center; gap: 4px; }
  .desktop-nav a { border-radius: 8px; padding: 9px 14px; color: var(--muted); font-size: .82rem; font-weight: 800; text-decoration: none; }
  .desktop-nav a.is-active { background: var(--ink); color: #fff; }
  .mobile-nav { display: none; }
  .user-chip { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 5px 10px 5px 5px; }
  .user-chip > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: var(--teal-soft); color: var(--teal); font-weight: 900; }
  .user-chip div { display: grid; line-height: 1.1; }
  .user-chip strong { font-size: .75rem; }
  .user-chip small { margin-top: 4px; color: var(--muted); font-size: .62rem; }
  .page-intro { padding-block: 28px; }
  .page-intro h1 { font-size: 2.15rem; }
  .timer-composer { padding: 24px; }
  .composer-heading h2 { font-size: 1.55rem; }
  .active-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: 1.25fr .75fr; }
  .report-filters { grid-template-columns: 1fr 1fr 1fr 1.2fr 150px; align-items: end; }
}

@media (max-width: 640px) {
  .print-document { margin: 0; padding: 24px 16px 92px; }
  .print-report-header, .print-summary, .print-task-head, .print-task-row { grid-template-columns: 1fr; }
  .print-floating-actions { right: 12px; bottom: 12px; left: 12px; grid-template-columns: 1fr 1fr; }
}

@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #111; }
  .app-shell { width: 100%; padding: 0; }
  .topbar, .notice, .no-print, .print-floating-actions, .mobile-nav { display: none !important; }
  .print-document-body { background: #fff; }
  .print-document { width: 100%; margin: 0; padding: 0; box-shadow: none; }
  .print-task-row { break-inside: avoid; page-break-inside: avoid; }
}

/* 2026 dashboard visual refresh */
:root {
  --canvas: #f2f0ec;
  --surface: #fffdf9;
  --surface-subtle: #f7f4ef;
  --ink: #1d1d1b;
  --muted: #817d76;
  --line: #e6e1d9;
  --line-strong: #d9d1c6;
  --accent: #ff6a2a;
  --accent-strong: #ec5618;
  --accent-ink: #ffffff;
  --teal: #ff6a2a;
  --teal-soft: #fff0e8;
  --warning: #b66125;
  --warning-soft: #fff1e5;
  --danger: #b73b2f;
  --danger-soft: #fff0ed;
  --shadow-sm: 0 8px 24px rgba(60, 45, 29, .05);
  --shadow-lg: 0 28px 70px rgba(60, 45, 29, .12);
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.95), transparent 30%),
    var(--canvas);
  letter-spacing: -.01em;
}

svg {
  display: block;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell { width: min(100%, 1240px); padding-inline: 20px; }
.topbar { min-height: 90px; border-bottom: 1px solid rgba(216, 209, 198, .7); }
.brand { gap: 12px; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 106, 42, .23);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-copy strong { font-size: 1.18rem; letter-spacing: -.04em; }
.brand-copy small { color: #9b968f; letter-spacing: .02em; }
.icon-button, .square-button {
  border-color: transparent;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.icon-button svg { width: 19px; height: 19px; }
.desktop-nav { gap: 8px; }
.desktop-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 10px 15px;
}
.desktop-nav a.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.desktop-nav a.is-active .nav-icon { color: var(--accent); }
.nav-icon { color: #9b968f; }
.nav-icon svg { width: 17px; height: 17px; }
.user-chip {
  border-color: transparent;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}
.user-chip > span { border-radius: 11px; background: #fff0e8; color: var(--accent); }

.dashboard-intro { padding: 46px 4px 34px; align-items: center; }
.dashboard-intro h1 {
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  line-height: .98;
  letter-spacing: -.065em;
}
.dashboard-intro h1 span { color: #aaa49b; font-weight: 500; }
.eyebrow { color: var(--accent); letter-spacing: .12em; }
.eyebrow-line {
  display: inline-block;
  width: 42px;
  height: 1px;
  margin: 0 0 3px 8px;
  background: currentColor;
}
.intro-date {
  display: none;
  align-items: center;
  gap: 13px;
  border-left: 1px solid var(--line-strong);
  padding-left: 25px;
}
.intro-date > span { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.07em; }
.intro-date div { display: grid; }
.intro-date strong { text-transform: uppercase; }
.intro-date small { margin-top: 2px; color: var(--muted); text-transform: capitalize; }

.dashboard-hero { display: grid; gap: 16px; }
.timer-composer {
  position: relative;
  isolation: isolate;
  min-height: 570px;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(145deg, #ff722f 0%, #ff5b20 62%, #ef4a16 100%);
  padding: 28px;
  box-shadow: 0 30px 70px rgba(207, 72, 18, .22);
}
.timer-composer::after {
  position: absolute;
  z-index: -1;
  right: -100px;
  bottom: -180px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255,255,255,.035), 0 0 0 90px rgba(255,255,255,.025);
  content: "";
}
.composer-decoration {
  position: absolute;
  z-index: -1;
  top: 105px;
  right: 25px;
  width: 110px;
  height: 110px;
  border: 22px solid rgba(255,255,255,.07);
  border-radius: 32px;
  transform: rotate(18deg);
}
.composer-heading { align-items: flex-start; }
.composer-heading > div:first-child { padding: 0; }
.session-label {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  padding: 8px 12px;
  color: #fff;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-dot { position: static; width: 7px; height: 7px; margin-right: 8px; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.composer-heading h2 {
  margin-top: 22px;
  font-size: clamp(2.15rem, 5vw, 3.75rem);
  line-height: .94;
  letter-spacing: -.065em;
}
.composer-heading h2 em { color: #2b241f; font-family: Georgia, serif; font-weight: 400; }
.composer-heading p { max-width: 420px; margin-top: 15px; color: rgba(255,255,255,.76); font-size: .88rem; }
.composer-clock {
  display: none;
  justify-items: end;
  color: #fff;
  font-size: 1rem;
}
.composer-clock small { margin-bottom: 5px; color: rgba(255,255,255,.6); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.task-form { position: relative; z-index: 1; gap: 10px; margin-top: 34px; }
.timer-composer label { gap: 7px; color: rgba(255,255,255,.72); }
.timer-composer label > span { padding-left: 3px; }
.timer-composer input, .timer-composer select, .timer-composer textarea {
  min-height: 53px;
  border-color: rgba(255,255,255,.16);
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  color: var(--ink);
  padding-inline: 16px;
}
.timer-composer textarea { min-height: 68px; }
.timer-composer input::placeholder, .timer-composer textarea::placeholder { color: #aaa39c; }
.timer-composer input:focus, .timer-composer select:focus, .timer-composer textarea:focus {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.16);
}
.start-button {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  min-height: 58px;
  border-radius: 17px;
  background: #24211f;
  color: #fff;
  padding: 7px 10px;
}
.start-button:hover { background: #0e0d0c; }
.play-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--accent); }
.play-icon svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.button-arrow { display: grid; place-items: center; font-size: 1.2rem; }
.client-quick-add { opacity: .85; }
.timer-composer .client-quick-add input { min-height: 44px; border-color: rgba(255,255,255,.12); background: rgba(130,43,8,.22); color: #fff; }
.timer-composer .client-quick-add input::placeholder { color: rgba(255,255,255,.65); }
.timer-composer .square-button { border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(130,43,8,.24); color: #fff; box-shadow: none; }

.day-overview {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 32px;
  background: rgba(255,253,249,.82);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
}
.day-overview::before {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,106,42,.08);
  content: "";
}
.overview-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; }
.overview-top h2 { font-size: 1.5rem; letter-spacing: -.045em; }
.round-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: #24211f;
  color: #fff;
  font-size: 1.15rem;
  text-decoration: none;
}
.focus-ring {
  position: relative;
  display: grid;
  width: 210px;
  aspect-ratio: 1;
  margin: 32px auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--progress) * 1%), #ebe5dd 0);
  transform: rotate(-90deg);
}
.focus-ring::before {
  position: absolute;
  width: 165px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  content: "";
}
.focus-ring > div { z-index: 1; display: grid; justify-items: center; transform: rotate(90deg); }
.focus-ring strong { font-size: 2.55rem; line-height: 1; letter-spacing: -.07em; }
.focus-ring span { margin-top: 7px; color: var(--muted); font-size: .7rem; }
.overview-metrics { display: grid; grid-template-columns: 1.4fr .6fr; gap: 9px; }
.overview-metrics > div { display: grid; min-height: 86px; align-content: space-between; border-radius: 18px; background: #f2eee8; padding: 14px; }
.overview-metrics > div:first-child { background: #24211f; color: #fff; }
.overview-metrics span, .daily-goal span { color: #918b84; font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.overview-metrics strong { font-size: 1.2rem; letter-spacing: -.04em; }
.daily-goal { display: flex; justify-content: space-between; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 14px; }

.content-section { margin-top: 42px; border-top: 0; padding-top: 0; }
.section-heading h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.045em; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-description { color: #969087; }
.counter { display: flex; width: auto; height: 38px; gap: 5px; border-radius: 999px; background: #e6e0d8; color: var(--muted); padding: 0 14px; }
.counter strong { color: var(--ink); }
.active-list, .client-stats, .history-list { gap: 14px; margin-top: 20px; }
.task-card, .history-card, .stat-row, .empty-state {
  border-color: rgba(226,218,208,.8);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.task-card { position: relative; overflow: hidden; min-height: 230px; padding: 22px; }
.task-card.is-paused { background: #fff9f3; }
.task-accent { position: absolute; top: 0; right: 0; left: 0; height: 5px; background: #eee9e2; }
.task-accent span { display: block; width: 64%; height: 100%; border-radius: 0 99px 99px 0; background: linear-gradient(90deg, #ff9b22, var(--accent)); }
.task-client, .history-client, .stat-label { color: var(--accent); letter-spacing: .08em; }
.task-title { margin-top: 7px; font-size: 1.2rem; letter-spacing: -.035em; }
.timer { font-size: 1.45rem; letter-spacing: -.05em; }
.timer small { color: #aaa39a; letter-spacing: .1em; }
.task-notes { max-width: 80%; line-height: 1.55; }
.task-meta { margin-top: 17px; }
.status-dot { color: #28796f; }
.status-dot::before { background: #28a28f; box-shadow: 0 0 0 4px rgba(40,162,143,.1); }
.task-actions { margin-top: 18px; }
.secondary-button, .danger-button, .ghost-button { border-radius: 13px; }
.secondary-button { background: #f0ece6; }
.danger-button { background: #fff0eb; color: #c34c31; }
.ghost-button { border-color: var(--line-strong); border-radius: 999px; background: #fff; }

.summary-grid { gap: 14px; margin-top: 20px; }
.metric {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  border-color: transparent;
  border-radius: 24px;
  background: #e8e3dc;
  padding: 22px;
}
.metric:first-child { border-color: transparent; background: #24211f; color: #fff; }
.metric:first-child::after {
  position: absolute;
  right: -45px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(255,106,42,.75);
  border-radius: 50%;
  content: "";
}
.metric span { color: #979089; letter-spacing: .08em; }
.metric strong { position: relative; z-index: 1; margin-top: 20px; font-size: 2rem; letter-spacing: -.065em; }
.metric small { position: relative; z-index: 1; display: block; margin-top: 9px; color: #918b84; }
.metric:first-child small { color: #aaa39b; }
.stat-row { padding: 17px; }
.stat-main > div { display: grid; gap: 4px; }
.stat-bar { height: 7px; background: #eee8e1; }
.stat-bar span { background: linear-gradient(90deg, #ff9b22, var(--accent)); }
.history-card { transition: transform .2s ease, box-shadow .2s ease; }
.history-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(60,45,29,.09); }
.history-button { padding: 18px; }
.pill { background: #f0ebe4; color: var(--ink); }
.empty-state { border-style: dashed; background: rgba(255,255,255,.45); }

.mobile-nav {
  border-color: rgba(255,255,255,.8);
  border-radius: 22px;
  background: rgba(255,253,249,.9);
  padding: 8px;
}
.mobile-nav a { border-radius: 15px; }
.mobile-nav a span { display: grid; place-items: center; }
.mobile-nav a span svg { width: 19px; height: 19px; }
.mobile-nav a.is-active { background: var(--accent); color: #fff; }
.mobile-nav a.is-active span { color: #fff; }

dialog { border-radius: 24px; }
.dialog-card { padding: 24px; }

@media (min-width: 720px) {
  .intro-date { display: flex; }
  .dashboard-hero { grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); align-items: stretch; }
  .timer-composer { padding: 36px; }
  .composer-clock { display: grid; }
  .day-overview { padding: 28px; }
}

@media (min-width: 980px) {
  .app-shell { padding-inline: 30px; }
  .topbar { min-height: 96px; }
  .dashboard-intro { padding-block: 58px 42px; }
  .active-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: 1.4fr .6fr; }
}

@media (max-width: 719px) {
  .dashboard-intro { padding-block: 28px 20px; }
  .dashboard-intro h1 { font-size: 2.65rem; }
  .timer-composer { min-height: 0; border-radius: 26px; padding: 24px 20px; }
  .composer-heading h2 { font-size: 2.5rem; }
  .day-overview { border-radius: 26px; }
  .focus-ring { width: 180px; }
  .focus-ring::before { width: 142px; }
  .content-section { margin-top: 34px; }
  .section-heading { align-items: flex-end; }
}
