/* ===== Токени ===== */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --border: #e1e5ea;
  --text: #12161c;
  --muted: #5b6472;
  --primary: #f97316;
  --on-primary: #111418;
  --primary-text: #c2410c;
  --primary-soft: #ffedd5;
  --good: #15803d;
  --good-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --backdrop: rgba(17, 20, 24, .45);
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Unbounded', var(--font);
  --tabbar-h: 64px;
  --sidebar-w: 232px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111418;
    --surface: #1a1f26;
    --surface-2: #232a33;
    --border: #2c343f;
    --text: #f3f5f8;
    --muted: #9aa6b5;
    --primary-text: #fb923c;
    --primary-soft: rgba(249, 115, 22, .16);
    --good: #4ade80;
    --good-soft: rgba(34, 197, 94, .16);
    --warn: #fbbf24;
    --warn-soft: rgba(245, 158, 11, .16);
    --bad: #f87171;
    --bad-soft: rgba(239, 68, 68, .16);
    --backdrop: rgba(0, 0, 0, .6);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111418;
  --surface: #1a1f26;
  --surface-2: #232a33;
  --border: #2c343f;
  --text: #f3f5f8;
  --muted: #9aa6b5;
  --primary-text: #fb923c;
  --primary-soft: rgba(249, 115, 22, .16);
  --good: #4ade80;
  --good-soft: rgba(34, 197, 94, .16);
  --warn: #fbbf24;
  --warn-soft: rgba(245, 158, 11, .16);
  --bad: #f87171;
  --bad-soft: rgba(239, 68, 68, .16);
  --backdrop: rgba(0, 0, 0, .6);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

/* ===== Основа ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--primary-text); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.icon { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.pre { white-space: pre-line; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

#app {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px calc(var(--tabbar-h) + var(--safe-b) + 96px);
}

/* ===== Заголовок сторінки ===== */
.page-head { display: flex; align-items: center; gap: 8px; min-height: 56px; margin-bottom: 16px; }
.page-title { flex: 1; min-width: 0; }
.page-title h1 {
  font: 700 26px/1.15 var(--font-display);
  letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.eyebrow { color: var(--muted); font-size: 14px; font-weight: 500; }
.page-actions { display: flex; align-items: center; gap: 4px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: background-color .15s, border-color .15s, transform .1s, opacity .15s;
  user-select: none;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: #fb8a3c; }
.btn-secondary { background: var(--primary-soft); color: var(--primary-text); }
.btn-ghost { background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-link { background: none; color: var(--primary-text); padding: 0 4px; }
.btn.danger { color: var(--bad); }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row .btn { flex: 1 1 auto; }
.file-btn { cursor: pointer; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border: none; border-radius: 12px; background: transparent; color: var(--text);
  transition: background-color .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.is-disabled { opacity: .3; pointer-events: none; }

.fab {
  position: fixed; z-index: 20;
  right: 16px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  display: inline-flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 22px 0 18px;
  border: none; border-radius: 18px;
  background: var(--primary); color: var(--on-primary);
  font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 20px rgba(249, 115, 22, .35);
  transition: transform .15s;
}
.fab:active { transform: scale(.96); }

/* ===== Навігація ===== */
#tabbar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  display: flex;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
#tabbar[hidden] { display: none; }
.brand { display: none; }
.tab {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); font-size: 11px; font-weight: 600;
  transition: color .15s;
}
.tab.is-active { color: var(--primary-text); }
.tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tab-settings { display: none; }

/* ===== Картки, секції, списки ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.section { margin-top: 24px; }
.section.card { margin-top: 16px; display: grid; gap: 12px; }
.section-title {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  font-size: 15px; font-weight: 700; color: var(--muted);
}
.section.card .section-title { margin-bottom: 0; color: var(--text); }
.count {
  min-width: 22px; padding: 0 7px; border-radius: 99px;
  background: var(--surface-2); font-size: 12px; text-align: center;
}

.list {
  display: grid;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.list > * + * { border-top: 1px solid var(--border); }

.item, .row, .log-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 60px; padding: 10px 14px;
  border: none; background: none; text-align: left; color: inherit;
}
button.item:hover, .row-btn:hover, .row-link-full:hover, .log-item:hover { background: var(--surface-2); }
.item-time {
  flex: none; width: 58px;
  font: 600 16px/1.2 var(--font-display); font-variant-numeric: tabular-nums;
}
.item-time small { display: block; font: 500 12px var(--font); color: var(--muted); }
.item-main, .row-main { flex: 1; min-width: 0; display: grid; }
.item-name, .row-name {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.item-name .icon { color: var(--muted); }
.item-sub, .row-sub {
  color: var(--muted); font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.item-side { flex: none; }
.item-completed .item-time { color: var(--good); }
.item-cancelled { opacity: .55; }
.item-cancelled .item-name { text-decoration: line-through; }

.status-dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; }
.status-completed { background: var(--good-soft); color: var(--good); }
.status-cancelled { background: var(--surface-2); color: var(--muted); }

.row-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; }
.row-link .row-name { min-width: 0; }
@media (max-width: 419px) {
  .page-title h1 { font-size: 22px; }
  .page-actions .btn-small { padding: 0 10px; }
  .btn-icon-xs { width: 44px; min-height: 44px; padding: 0; }
  .btn-icon-xs span { display: none; }
}
.row-link-full { color: inherit; }
.row-btn { cursor: pointer; }
.add-row { color: var(--primary-text); font-weight: 600; min-height: 52px; }
.slot-day { width: 30px; font-weight: 700; }
.slot-time { width: 52px; font: 600 15px var(--font-display); font-variant-numeric: tabular-nums; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.avatar {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-text);
  font-weight: 700; font-size: 14px;
}

.balance, .badge {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 10px; border-radius: 99px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.balance-good { background: var(--good-soft); color: var(--good); }
.balance-warn { background: var(--warn-soft); color: var(--warn); }
.balance-bad { background: var(--bad-soft); color: var(--bad); }
.badge-scheduled { background: var(--primary-soft); color: var(--primary-text); }
.badge-completed { background: var(--good-soft); color: var(--good); }
.badge-cancelled { background: var(--surface-2); color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 26px; padding: 0 10px; border-radius: 99px;
  background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 500;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip-btn {
  flex: none; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: background-color .15s, border-color .15s;
}
.chip-btn:hover { border-color: var(--primary); }
.chip-btn.is-active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-text); }

.callout {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); font-size: 15px;
}
.callout.warn { background: var(--warn-soft); }
.callout.warn .icon { color: var(--warn); margin-top: 2px; }

.empty { padding: 28px 16px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); }
.empty-title { font-weight: 600; margin-bottom: 4px; }

/* ===== KPI ===== */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
.kpi {
  display: grid; gap: 2px; align-content: start;
  padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.kpi-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi-value { font: 700 22px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi-hero { grid-column: 1 / -1; }
.kpi-hero .kpi-value { font-size: 32px; }
.kpi-delta { font-size: 13px; font-weight: 600; }
.kpi-delta.up { color: var(--good); }
.kpi-delta.down { color: var(--bad); }

/* ===== Графіки ===== */
.charts { display: grid; gap: 12px; margin-top: 12px; }
.chart { margin: 0; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.chart-title { font-weight: 700; margin-bottom: 12px; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; height: 190px; }
.bar {
  position: relative; display: grid; grid-template-rows: 20px 1fr 22px;
  color: var(--muted); text-align: center; border-radius: 8px;
}
.bar-value { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: visible; }
.bar-track { display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--border); }
.bar-fill {
  width: min(28px, 60%);
  background: color-mix(in srgb, var(--primary) 50%, var(--surface));
  border-radius: 4px 4px 0 0;
  transition: background-color .15s;
}
.bar.is-selected .bar-fill, .bar:hover .bar-fill { background: var(--primary); }
.bar-label { font-size: 12px; padding-top: 4px; }
.bar.is-selected .bar-label { color: var(--text); font-weight: 700; }
.bar[data-tip]:hover::after, .bar[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% - 14px); left: 50%; transform: translateX(-50%);
  padding: 6px 10px; border-radius: 8px; white-space: nowrap; z-index: 2;
  background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600;
  pointer-events: none;
}

.stats-cols { display: grid; gap: 0 16px; }

/* ===== Календар ===== */
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 16px; }
.day-tab {
  display: grid; justify-items: center; gap: 2px;
  min-height: 68px; padding: 8px 0;
  border: 1px solid transparent; border-radius: 14px;
  background: var(--surface); color: var(--text);
  transition: background-color .15s;
}
.day-tab-wd { font-size: 12px; color: var(--muted); font-weight: 600; }
.day-tab-num { font: 600 17px var(--font-display); }
.day-tab-dots { display: flex; gap: 3px; height: 6px; }
.day-tab-dots i { width: 5px; height: 5px; border-radius: 99px; background: var(--primary); }
.day-tab.is-today { border-color: var(--primary); }
.day-tab.is-selected { background: var(--primary); color: var(--on-primary); }
.day-tab.is-selected .day-tab-wd { color: var(--on-primary); }
.day-tab.is-selected .day-tab-dots i { background: var(--on-primary); }

.week-grid { touch-action: pan-y; }
.day-col { display: none; }
.day-col.is-selected { display: grid; gap: 10px; }
.day-col-head { display: none; }
.add-day { justify-self: start; }

/* ===== Клієнт ===== */
.client-hero { display: flex; gap: 14px; align-items: center; }
.client-hero .avatar { width: 56px; height: 56px; font-size: 18px; border-radius: 16px; }
.client-hero-main { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-height: 44px; }
.balance-big {
  display: grid; justify-items: end;
  border: none; background: none; padding: 4px 0; text-align: right;
}
.balance-num { font: 700 30px/1 var(--font-display); color: var(--good); }
.balance-big.warn .balance-num { color: var(--warn); }
.balance-big.bad .balance-num { color: var(--bad); }
.balance-cap { font-size: 13px; color: var(--muted); }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.action-grid .btn { padding: 0 8px; }
.segmented {
  display: flex; gap: 4px; padding: 4px;
  background: var(--surface-2); border-radius: 12px;
}
.segmented button {
  flex: 1; min-height: 38px; padding: 0 10px;
  border: none; border-radius: 9px; background: none;
  color: var(--muted); font-weight: 600; font-size: 14px;
  transition: background-color .15s, color .15s;
}
.segmented [aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tab-panel { margin-top: 12px; display: grid; gap: 10px; }
.log-item { display: grid; gap: 4px; align-items: start; cursor: pointer; }
.log-date { font-weight: 700; font-size: 14px; color: var(--primary-text); }
.log-box { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); display: grid; gap: 6px; }
.danger-zone { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== Шаблони ===== */
.tpl-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tpl-card {
  display: grid; gap: 6px; align-content: start; text-align: left;
  min-height: 110px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s;
}
.tpl-card:hover { border-color: var(--primary); }
.tpl-name { font-weight: 700; }
.tpl-content {
  color: var(--muted); font-size: 14px; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== Пошук, панель ===== */
.toolbar { display: grid; gap: 10px; margin-bottom: 14px; }
.search { position: relative; display: block; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 42px; }

/* ===== Форми ===== */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 14px; font-weight: 600; }
.req { color: var(--bad); }
.field-hint { font-size: 13px; color: var(--muted); }
.draft-hint { margin-top: -6px; color: var(--good); }
.draft-hint:empty { display: none; }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { resize: vertical; min-height: 72px; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-error { color: var(--bad); font-size: 14px; font-weight: 500; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.form-actions .btn { flex: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ===== Шторка ===== */
#sheet {
  width: 100%; max-width: 100%; max-height: 92dvh;
  margin: auto auto 0; padding: 0;
  border: none; border-radius: 22px 22px 0 0;
  background: var(--bg); color: var(--text);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .25);
}
#sheet[open] { animation: sheet-in .24s cubic-bezier(.2, .8, .2, 1); }
#sheet::backdrop { background: var(--backdrop); }
.sheet-inner { display: grid; grid-template-rows: auto 1fr; max-height: 92dvh; }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 12px 6px 20px;
}
.sheet-head h2 { font: 700 19px/1.25 var(--font-display); }
.sheet-body {
  display: grid; gap: 14px; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px 20px calc(20px + var(--safe-b));
}
.item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.item-meta .item-time { width: auto; font-size: 22px; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: .4; } }

/* ===== Тост ===== */
#toast {
  position: fixed; z-index: 100; left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 88px);
  transform: translate(-50%, 16px);
  max-width: min(92vw, 440px); padding: 12px 18px;
  border-radius: 14px; background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 15px; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast[data-kind="error"] { background: var(--bad); color: #fff; }

/* ===== Екрани стану ===== */
.center-screen { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; }
.spinner {
  width: 32px; height: 32px; border-radius: 99px;
  border: 3px solid var(--border); border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.login { max-width: 400px; margin: 10vh auto 0; display: grid; gap: 8px; text-align: center; }
.login h1 { font: 700 28px var(--font-display); }
.login .form { text-align: left; margin-top: 16px; }
.login-logo {
  justify-self: center; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 20px;
  background: var(--primary); color: var(--on-primary); margin-bottom: 8px;
}

/* ===== Планшет і компʼютер ===== */
@media (min-width: 600px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi-hero { grid-column: span 3; }
  #sheet { max-width: 540px; margin: auto; border-radius: 22px; }
  #sheet[open] { animation-name: sheet-pop; }
  @keyframes sheet-pop { from { transform: scale(.97); opacity: 0; } }
}

@media (min-width: 900px) {
  :root { --tabbar-h: 0px; }
  #app { max-width: 1180px; margin-left: var(--sidebar-w); padding: 28px 40px 120px; }
  #tabbar {
    top: 0; right: auto; width: var(--sidebar-w); height: auto;
    flex-direction: column; gap: 4px; padding: 20px 12px;
    border-top: none; border-right: 1px solid var(--border);
    background: var(--surface);
  }
  .brand {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 12px 20px; color: var(--primary-text);
    font: 700 18px var(--font-display);
  }
  .brand span { color: var(--text); }
  .tab {
    flex: none; flex-direction: row; justify-content: flex-start; gap: 12px;
    min-height: 46px; padding: 0 12px; border-radius: 12px;
    font-size: 15px;
  }
  .tab:hover { background: var(--surface-2); color: var(--text); }
  .tab.is-active { background: var(--primary-soft); }
  .tab-settings { display: flex; margin-top: auto; }
  .page-head .icon-btn[href="#/settings"] { display: none; }
  .fab { bottom: 32px; right: 40px; }
  #toast { bottom: 40px; }
  .page-title h1 { font-size: 30px; }

  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpis-3 { grid-template-columns: repeat(3, 1fr); }
  .kpi-hero { grid-column: span 2; }
  .charts { grid-template-columns: 1fr 1fr; }
  .stats-cols { grid-template-columns: 1fr 1fr; }

  .week-strip { display: none; }
  .week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: start; }
  .day-col, .day-col.is-selected { display: grid; gap: 8px; align-content: start; }
  .day-col-head {
    display: flex; align-items: baseline; gap: 6px;
    padding: 6px 4px; font: 600 18px var(--font-display);
  }
  .day-col-head span { font: 600 13px var(--font); color: var(--muted); }
  .day-col.is-today .day-col-head { color: var(--primary-text); }
  .day-col .item { flex-wrap: wrap; gap: 2px 8px; padding: 10px; min-height: 0; }
  .day-col .item-time { width: auto; font-size: 14px; }
  .day-col .item-main { flex-basis: 100%; order: 3; }
  .day-col .item-side { margin-left: auto; }
  .day-col .status-dot { width: 22px; height: 22px; }
  .day-col .item-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; }
  .day-col .item-name { font-size: 14px; white-space: normal; }
  .day-empty .empty { padding: 16px 8px; font-size: 13px; }
  .add-day { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
