/* api.css */
.c-api .c-api-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.c-api .c-api-side { display: grid; gap: 12px; min-width: 0; }
.c-api .c-api-ep { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; color: var(--ink-2); }
.c-api .c-api-ep b { color: var(--ok); font-weight: 700; margin-right: 4px; }
.c-api .c-api-copy { height: 26px; padding: 0 9px; font-size: 0.72rem; }
.c-api .c-api-tabs { margin: 10px 12px 0; padding: 3px; }
.c-api .c-api-tabs button { height: 26px; padding: 0 11px; font-size: 0.72rem; }
.c-api .c-api-pre { margin: 0; padding: 10px 12px; overflow: auto; max-height: 268px; background: var(--sheet); font-family: var(--font-mono); font-size: 0.7rem; line-height: 1.55; color: var(--ink-2); tab-size: 2; white-space: pre; }
.c-api .c-api-pre[hidden] { display: none; }
.c-api .c-api-pre code { font: inherit; }
.c-api .c-s { color: var(--ok); }
.c-api .c-k { color: var(--info); }
.c-api .c-n { color: var(--warn); }
.c-api .c-api-out { max-height: 214px; min-height: 120px; }
.c-api .c-api-out.is-typing code::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -0.12em; background: var(--c); animation: c-api-blink 900ms steps(1) infinite; }
@keyframes c-api-blink { 50% { opacity: 0; } }
.c-api .c-api-run { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--rule); background: var(--sheet-2); }
.c-api .c-api-run .ui-note { margin: 0; }
.c-api .c-api-st { display: inline-flex; gap: 6px; align-items: center; }
.c-api .c-api-list { list-style: none; margin: 0; padding: 0; }
.c-api .c-api-ev { display: grid; min-width: 0; }
.c-api .c-api-ev .dim { color: var(--ink-3); font-size: 0.74rem; }
.c-api .c-api-ev b { font-size: 0.78rem; }
.c-api .c-api-list .ui-row[data-new] { animation: rowIn 260ms var(--ease-out) both; }
.c-api .c-api-empty { color: var(--ink-3); font-size: 0.78rem; }
@container (min-width: 600px) {
  .c-api .c-api-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .c-api .c-api-pre { max-height: 330px; }
}
@media (prefers-reduced-motion: reduce) {
  .c-api .c-api-list .ui-row[data-new], .c-api .c-api-out.is-typing code::after { animation: none; }
}

/* assistant.css */
.c-assistant .c-m-win { border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--sheet); overflow: hidden; }
.c-assistant .c-m-bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 9px 12px; background: var(--sheet-2); border-bottom: 1px solid var(--rule); font-size: 0.78rem; }
.c-assistant .c-m-who { display: inline-flex; align-items: center; gap: 7px; }
.c-assistant .c-m-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: var(--on-fill); }
.c-assistant .c-m-ico .ic { width: 14px; height: 14px; }
.c-assistant .c-m-conn { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.c-assistant .c-m-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.c-assistant .c-m-key { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 0.72rem; }
.c-assistant .c-m-chat { height: 318px; overflow-y: auto; overscroll-behavior: contain; padding: 14px 12px; display: grid; gap: 12px; align-content: start; }
.c-assistant .c-m-msg { display: flex; gap: 8px; min-width: 0; }
.c-assistant .c-m-msg[data-new] { animation: c-m-in 240ms var(--ease-out) both; }
@keyframes c-m-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.c-assistant .c-m-user { justify-content: flex-end; }
.c-assistant .c-m-bubble { max-width: 88%; padding: 8px 12px; border-radius: var(--radius-sm) var(--radius-sm) 4px var(--radius-sm); background: var(--sheet-3); }
.c-assistant .c-m-bot .avatar { background: var(--c); margin-top: 2px; }
.c-assistant .c-m-stack { display: grid; gap: 8px; min-width: 0; flex: 1; }
.c-assistant .c-m-tool { border: 1px solid var(--rule-2); border-left: 3px solid var(--c); border-radius: var(--radius-xs); background: var(--sheet-2); padding: 8px 10px; display: grid; gap: 4px; font-size: 0.76rem; }
.c-assistant .c-m-th { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-assistant .c-m-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.8rem; }
.c-assistant .c-m-th .c-m-status { margin-left: auto; }
.c-assistant .c-m-args { display: grid; gap: 1px; color: var(--ink-2); font-size: 0.72rem; }
.c-assistant .c-m-via { color: var(--ink-3); font-size: 0.72rem; }
.c-assistant .c-m-result { color: var(--ok); font-size: 0.72rem; }
.c-assistant .c-m-result[hidden] { display: none; }
.c-assistant .c-m-ask { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
.c-assistant .c-m-ask span { color: var(--ink-2); margin-right: auto; }
.c-assistant .c-m-ask .ui-btn { height: 28px; }
.c-assistant .c-m-answer { margin: 0; line-height: 1.45; }
.c-assistant .c-m-answer.is-typing .c-m-vis::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--c); animation: c-m-blink 900ms steps(1) infinite; }
@keyframes c-m-blink { 50% { opacity: 0; } }
.c-assistant .c-m-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.c-assistant .c-m-spin { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; margin-right: 5px; animation: c-m-spin 700ms linear infinite; }
@keyframes c-m-spin { to { transform: rotate(360deg); } }
.c-assistant .c-m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.c-assistant .c-m-chip { padding: 7px 12px; border-radius: var(--pill); border: 1px solid var(--rule-2); background: transparent; color: var(--ink); font: inherit; font-size: 0.78rem; text-align: left; cursor: pointer; transition: transform 140ms var(--ease-out), border-color 160ms ease, opacity 160ms ease; }
.c-assistant .c-m-chip:active:not(:disabled) { transform: scale(0.97); }
.c-assistant .c-m-chip:disabled { opacity: 0.45; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .c-assistant .c-m-chip:not(:disabled):hover { border-color: var(--c); }
}
@media (prefers-reduced-motion: reduce) {
  .c-assistant .c-m-msg[data-new], .c-assistant .c-m-spin, .c-assistant .c-m-answer.is-typing .c-m-vis::after { animation: none; }
}
@container (max-width: 480px) {
  .c-assistant .c-m-key { margin-left: 0; }
  .c-assistant .c-m-chat { height: 340px; }
}

/* auto.css */
.c-auto .c-a-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.c-auto .c-a-rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
.c-auto .c-a-rule:last-child { border-bottom: 0; }
.c-auto .c-a-t { display: grid; min-width: 0; }
.c-auto .c-a-t b { font-weight: 600; }
.c-auto .c-a-t .dim { color: var(--ink-3); font-size: 0.76rem; }
.c-auto .switch { flex: none; transition: background-color 180ms ease, transform 140ms var(--ease-out); }
.c-auto .switch:active { transform: scale(0.97); }
.c-auto .c-a-today { display: grid; grid-template-rows: auto 1fr auto; }
.c-auto .c-a-log { list-style: none; margin: 0; padding: 0; height: 262px; overflow-y: auto; overscroll-behavior: contain; }
.c-auto .c-a-log li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--rule); font-size: 0.8rem; line-height: 1.35; }
.c-auto .c-a-log time { color: var(--ink-3); font-size: 0.72rem; padding-top: 1px; }
.c-auto .c-a-log li[data-new] { animation: c-a-in 260ms var(--ease-out) both; }
@keyframes c-a-in { from { opacity: 0; transform: translateY(-6px); } }
.c-auto .c-a-empty { margin: 0; padding: 12px; }
.c-auto .c-a-empty[hidden] { display: none; }
.c-auto .c-a-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--rule); }
.c-auto .c-a-foot .ui-note { margin: 0; }
@container (min-width: 600px) {
  .c-auto .c-a-cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .c-auto .c-a-log li[data-new] { animation: none; }
}

/* board.css */
[data-comp="board"] .c-board-pct { text-align: right; line-height: 1.1; }
[data-comp="board"] .c-board-pct b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
[data-comp="board"] .c-board-pct small { color: var(--ink-3); font-size: 0.7rem; }
[data-comp="board"] .c-board-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: start; }
@container (max-width: 560px) {
  [data-comp="board"] .c-board-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
[data-comp="board"] .c-board-col {
  border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--sheet-2);
  padding: 6px; display: grid; gap: 6px; min-width: 0;
  transition: border-color 160ms ease, background-color 160ms ease;
}
[data-comp="board"] .c-board-col.is-over { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--sheet-2)); }
[data-comp="board"] .c-board-col-h {
  display: flex; justify-content: space-between; align-items: center; padding: 2px 4px;
  font-size: 0.72rem; font-weight: 600; color: var(--ink-2); margin: 0;
}
[data-comp="board"] .c-board-col-h .num { font-family: var(--font-mono); color: var(--ink-3); font-weight: 500; }
[data-comp="board"] .c-board-cards { display: grid; gap: 6px; min-height: 44px; align-content: start; }
[data-comp="board"] .c-board-cards.is-empty { border: 1px dashed var(--rule-2); border-radius: var(--radius-xs); }
[data-comp="board"] .c-board-card {
  position: relative; display: grid; gap: 7px; padding: 9px; min-width: 0;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-xs);
  font-size: 0.78rem; cursor: grab; user-select: none; -webkit-user-select: none;
  transition: border-color 160ms ease, box-shadow 200ms ease;
}
[data-comp="board"] .c-board-card.is-drag {
  cursor: grabbing; z-index: 5; box-shadow: var(--shadow-sm); border-color: var(--c); transition: box-shadow 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  [data-comp="board"] .c-board-card:hover { border-color: var(--rule-2); }
}
[data-comp="board"] .c-board-top { display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; }
[data-comp="board"] .c-board-top b { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
[data-comp="board"] .c-board-grip {
  flex: none; width: 12px; height: 16px; margin-top: 1px; touch-action: none; cursor: grab;
  background: radial-gradient(circle, var(--ink-3) 1.2px, transparent 1.6px) 0 0 / 6px 6px;
  opacity: 0.7;
}
[data-comp="board"] .c-board-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
[data-comp="board"] .c-board-meta .badge { height: 19px; padding: 0 7px; font-size: 0.65rem; }
[data-comp="board"] .c-board-due { color: var(--ink-3); font-family: var(--font-mono); font-size: 0.66rem; }
[data-comp="board"] .c-board-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
[data-comp="board"] .c-board-foot .avatar { width: 22px; height: 22px; font-size: 0.58rem; }
[data-comp="board"] .c-board-chk {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 7px;
  border: 1px solid var(--rule-2); border-radius: var(--pill); background: transparent; color: var(--ink-2);
  font: inherit; font-family: var(--font-mono); font-size: 0.66rem; cursor: pointer;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms ease;
}
[data-comp="board"] .c-board-chk:active { transform: scale(0.97); }
[data-comp="board"] .c-board-chk[aria-expanded="true"] { border-color: var(--c); color: var(--ink); }
[data-comp="board"] .c-board-move {
  margin-left: auto; max-width: 100%; height: 24px; padding: 0 4px; border-radius: var(--radius-xs);
  border: 1px solid var(--rule-2); background: var(--sheet-2); color: var(--ink-2); font: inherit; font-size: 0.66rem; cursor: pointer;
}
[data-comp="board"] .c-board-items { list-style: none; margin: 0; padding: 6px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 4px; }
[data-comp="board"] .c-board-items[hidden] { display: none; }
[data-comp="board"] .c-board-items label { display: flex; gap: 6px; align-items: center; font-size: 0.72rem; color: var(--ink-2); cursor: pointer; }
[data-comp="board"] .c-board-items input { accent-color: var(--c); margin: 0; width: 14px; height: 14px; flex: none; }
[data-comp="board"] .c-board-items input:checked + span { color: var(--ink-3); text-decoration: line-through; }
[data-comp="board"] .c-board-items input:disabled { cursor: default; }
[data-comp="board"] .c-board-card :focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
[data-comp="board"] [data-count].is-bump { display: inline-block; animation: cBoardBump 260ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes cBoardBump { from { opacity: 0.2; transform: scale(0.9); } }
@media (prefers-reduced-motion: reduce) {
  [data-comp="board"] [data-count].is-bump { animation: none; }
}
/* With a mouse the card drags, so the keyboard "Move to" control only shows on hover or focus. */
@media (hover: hover) and (pointer: fine) {
  [data-comp="board"] .c-board-move { opacity: 0; transition: opacity 160ms ease; }
  [data-comp="board"] .c-board-card:hover .c-board-move,
  [data-comp="board"] .c-board-card:focus-within .c-board-move { opacity: 1; }
}

/* booking.css */
[data-comp="booking"] .c-booking-tz { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--pill); background: var(--neutral-wash); color: var(--ink-2); font-size: 0.72rem; font-family: var(--font-mono); }
[data-comp="booking"] .c-booking-view { display: grid; gap: 12px; animation: cBookingIn 240ms cubic-bezier(0.23, 1, 0.32, 1) both; }
[data-comp="booking"] .c-booking-view[hidden] { display: none; }
@keyframes cBookingIn { from { opacity: 0; transform: scale(0.97); } }
[data-comp="booking"] .c-booking-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
[data-comp="booking"] .c-booking-days button {
  display: grid; gap: 1px; justify-items: center; padding: 8px 2px; border-radius: var(--radius-sm);
  border: 1px solid var(--rule-2); background: var(--sheet); color: var(--ink); font: inherit; cursor: pointer;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms ease, background-color 160ms ease;
}
[data-comp="booking"] .c-booking-days button:active { transform: scale(0.97); }
[data-comp="booking"] .c-booking-days small { color: var(--ink-3); font-size: 0.68rem; }
[data-comp="booking"] .c-booking-days b { font-size: 0.84rem; font-weight: 600; white-space: nowrap; }
[data-comp="booking"] .c-booking-days span { color: var(--ink-3); font-size: 0.66rem; }
[data-comp="booking"] .c-booking-days button[aria-pressed="true"] { background: var(--c); border-color: transparent; color: var(--on-fill); }
[data-comp="booking"] .c-booking-days button[aria-pressed="true"] small,
[data-comp="booking"] .c-booking-days button[aria-pressed="true"] span { color: var(--on-fill); opacity: 0.8; }
[data-comp="booking"] .c-booking-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
[data-comp="booking"] .c-booking-slots.c-booking-swap { animation: cBookingIn 220ms cubic-bezier(0.23, 1, 0.32, 1) both; }
[data-comp="booking"] .c-booking-slots button {
  height: 38px; border-radius: var(--radius-xs); border: 1px solid var(--rule-2); background: var(--sheet); color: var(--ink);
  font: inherit; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms ease, background-color 160ms ease;
}
[data-comp="booking"] .c-booking-slots button:active:not(:disabled) { transform: scale(0.97); }
[data-comp="booking"] .c-booking-slots button:disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; background: transparent; }
[data-comp="booking"] .c-booking-slots button.is-picked { background: var(--c); border-color: transparent; color: var(--on-fill); }
@media (hover: hover) and (pointer: fine) {
  [data-comp="booking"] .c-booking-days button[aria-pressed="false"]:hover,
  [data-comp="booking"] .c-booking-slots button:not(:disabled):not(.is-picked):hover { border-color: var(--c); }
}
[data-comp="booking"] button:focus-visible, [data-comp="booking"] .ui-input:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
[data-comp="booking"] .c-booking-pick { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--sheet); }
[data-comp="booking"] .c-booking-pick .ic { color: var(--c); }
[data-comp="booking"] .c-booking-f { display: grid; gap: 4px; font-size: 0.76rem; color: var(--ink-3); }
[data-comp="booking"] .c-booking-f .ui-input { height: 36px; width: 100%; }
[data-comp="booking"] .c-booking-err { min-height: 1.2em; margin: 0; color: var(--bad); font-size: 0.76rem; }
[data-comp="booking"] .c-booking-done { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px; padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--sheet); }
[data-comp="booking"] .c-booking-done .ui-btn { grid-column: 1 / -1; justify-self: start; }
[data-comp="booking"] .c-booking-tick { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: var(--on-fill); font-size: 1rem; }
[data-comp="booking"] .c-booking-slot { margin: 4px 0 8px; color: var(--ink-2); font-size: 0.84rem; }
[data-comp="booking"] .c-booking-done .badge { gap: 4px; }
[data-comp="booking"] .c-booking-done .ui-note { margin: 8px 0 0; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  [data-comp="booking"] .c-booking-view, [data-comp="booking"] .c-booking-slots.c-booking-swap { animation: none; }
}

/* estimate.css */
[data-comp="estimate"] .c-est-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
[data-comp="estimate"] .c-est-side { display: grid; gap: 8px; min-width: 0; align-content: start; }
[data-comp="estimate"] .c-est-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
[data-comp="estimate"] .badge--neutral { background: var(--neutral-wash); color: var(--ink-2); }
[data-comp="estimate"] .c-est-portal {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--rule-2);
  border-top: 3px solid var(--c);
  border-radius: var(--radius-sm);
  background: var(--sheet-2);
}
[data-comp="estimate"] .c-est-portal .dim { color: var(--ink-3); font-size: 0.76rem; }
[data-comp="estimate"] .c-est-portal-h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
[data-comp="estimate"] .c-est-portal-t { font-weight: 600; }
[data-comp="estimate"] .c-est-portal-amt {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
[data-comp="estimate"] .c-est-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
[data-comp="estimate"] .c-est-reason { display: grid; gap: 6px; margin-top: 6px; }
[data-comp="estimate"] .c-est-reason label { font-size: 0.76rem; color: var(--ink-2); font-weight: 600; }
[data-comp="estimate"] .c-est-reason .ui-input { width: 100%; }
[data-comp="estimate"] .c-est-result {
  margin: 4px 0 0;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.82rem;
}
[data-comp="estimate"] .c-est-result[data-tone="ok"] { background: var(--ok-wash); color: var(--ok); }
[data-comp="estimate"] .c-est-result[data-tone="bad"] { background: var(--bad-wash); color: var(--bad); }
[data-comp="estimate"] .c-est-result small { display: block; font-weight: 500; opacity: 0.9; }
[data-comp="estimate"] .c-est-convert { justify-self: start; }
[data-comp="estimate"] .c-est-convert:not([hidden]),
[data-comp="estimate"] .c-est-inv:not([hidden]),
[data-comp="estimate"] .c-est-result:not([hidden]),
[data-comp="estimate"] .c-est-reason:not([hidden]) {
  animation: cEstIn 240ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes cEstIn { from { opacity: 0; transform: translateY(4px) scale(0.97); } }
[data-comp="estimate"] .c-est-inv .ui-box-h { font-family: var(--font-mono); }
@media (hover: hover) and (pointer: fine) {
  [data-comp="estimate"] .c-est-portal .ui-btn--go:hover { filter: brightness(1.08); }
}
@container (max-width: 600px) {
  [data-comp="estimate"] .c-est-split { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  [data-comp="estimate"] * { animation: none !important; transition: none !important; }
}

/* files.css */
[data-comp="files"] .c-files-row {
  grid-template-columns: minmax(0, 1.2fr) auto auto;
}
[data-comp="files"] .c-files-ic {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--c) 16%, var(--sheet));
  color: var(--c);
}
[data-comp="files"] .c-files-ic .ic { width: 16px; height: 16px; }
[data-comp="files"] .c-files-vis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  min-width: 0;
}
[data-comp="files"] .c-files-vl {
  font-size: 0.76rem;
  color: var(--ink-2);
  min-width: 7.6em;
}
[data-comp="files"] .c-files-meter { width: 96px; }
[data-comp="files"] .c-files-meter i { transition: transform 1500ms linear; }
[data-comp="files"] .switch[aria-checked="true"] { background: var(--c); }
[data-comp="files"] .switch[aria-checked="true"]::after { background: var(--on-fill); }
[data-comp="files"] .c-files-st { display: inline-flex; justify-content: flex-end; }
[data-comp="files"] .c-files-st .badge { animation: cFilesIn 220ms cubic-bezier(0.23, 1, 0.32, 1) both; }
[data-comp="files"] .c-files-vis > .switch { animation: cFilesIn 220ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes cFilesIn { from { opacity: 0; transform: scale(0.95); } }
[data-comp="files"] .c-files-row[data-new] { animation: cFilesRow 260ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes cFilesRow { from { opacity: 0; transform: translateY(-4px); } }
@container (max-width: 560px) {
  [data-comp="files"] .c-files-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  [data-comp="files"] .c-files-row > .who { grid-column: 1 / -1; }
  [data-comp="files"] .c-files-st { justify-content: flex-end; }
  [data-comp="files"] .c-files-vl { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  [data-comp="files"] * { animation: none !important; transition: none !important; }
}

/* formbuild.css */
[data-comp="formbuild"] .c-form-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
[data-comp="formbuild"] .c-form-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
[data-comp="formbuild"] .c-form-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--rule-2);
  border-top: 3px solid var(--c);
  border-radius: var(--radius-sm);
  background: var(--sheet-2);
}
[data-comp="formbuild"] .c-form-f { display: grid; gap: 3px; }
[data-comp="formbuild"] .c-form-f > span { font-size: 0.74rem; font-weight: 600; color: var(--ink-2); }
[data-comp="formbuild"] .c-form-f .ui-input { width: 100%; }
[data-comp="formbuild"] .c-form-f select.ui-input { cursor: pointer; }
[data-comp="formbuild"] .c-form-budget:not([hidden]) { animation: cFormIn 220ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes cFormIn { from { opacity: 0; transform: translateY(-4px) scale(0.97); } }
[data-comp="formbuild"] .c-form-send { justify-self: start; margin-top: 2px; }
[data-comp="formbuild"] .c-form-msg {
  margin: 0;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--ok-wash);
  color: var(--ok);
}
[data-comp="formbuild"] .c-form-msg[data-tone="bad"] { background: var(--bad-wash); color: var(--bad); }
[data-comp="formbuild"] .c-form-msg:not([hidden]) { animation: cFormIn 220ms cubic-bezier(0.23, 1, 0.32, 1) both; }
[data-comp="formbuild"] .c-form-feed { display: grid; gap: 8px; min-width: 0; align-content: start; }
[data-comp="formbuild"] .c-form-feed .ui-row .dim { font-size: 0.76rem; }
[data-comp="formbuild"] .c-form-feed .ui-row[data-spam-row] { opacity: 0.8; }
[data-comp="formbuild"] .c-form-feed .ui-row[data-spam-row] b { text-decoration: line-through; color: var(--ink-3); }
[data-comp="formbuild"] .c-form-spam {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--sheet);
}
[data-comp="formbuild"] .c-form-spam .dim { color: var(--ink-3); font-size: 0.78rem; }
[data-comp="formbuild"] .c-form-spam b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
[data-comp="formbuild"] .c-form-spam b.is-bump { animation: cFormIn 260ms cubic-bezier(0.23, 1, 0.32, 1); color: var(--c); }
@container (max-width: 560px) {
  [data-comp="formbuild"] .c-form-split { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  [data-comp="formbuild"] * { animation: none !important; transition: none !important; }
}

/* gantt.css */
[data-comp="gantt"] .c-gantt-prog { display: grid; gap: 6px; }
[data-comp="gantt"] .c-gantt-prog-t { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-3); font-size: 0.78rem; }
[data-comp="gantt"] .c-gantt-prog-t b { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); font-weight: 600; }
[data-comp="gantt"] .c-gantt-chart { position: relative; padding: 10px 12px 6px; display: grid; gap: 12px; }
[data-comp="gantt"] .c-gantt-weeks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font-family: var(--font-mono); font-size: 0.6rem; color: var(--ink-3); text-align: center; }
[data-comp="gantt"] .c-gantt-weeks i { font-style: normal; }
[data-comp="gantt"] .c-gantt-today {
  position: absolute; top: 8px; bottom: 8px; left: calc(12px + (100% - 24px) * 0.4583);
  width: 0; border-left: 1.5px dashed var(--bad); pointer-events: none; z-index: 2;
}
[data-comp="gantt"] .c-gantt-today span {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  padding: 1px 6px; border-radius: var(--pill); background: var(--bad); color: var(--on-fill);
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
}
[data-comp="gantt"] .c-gantt-m { display: grid; gap: 6px; }
[data-comp="gantt"] .c-gantt-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
[data-comp="gantt"] .c-gantt-name { display: inline-flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
[data-comp="gantt"] .c-gantt-name b { font-weight: 600; }
[data-comp="gantt"] .c-gantt-name .dim { color: var(--ink-3); font-family: var(--font-mono); font-size: 0.74rem; }
[data-comp="gantt"] .c-gantt-state { display: inline-flex; gap: 6px; align-items: center; }
[data-comp="gantt"] .c-gantt-state > * { animation: cGanttIn 220ms cubic-bezier(0.23, 1, 0.32, 1) both; }
[data-comp="gantt"] .c-gantt-state .ui-btn { height: 26px; font-size: 0.74rem; padding: 0 10px; }
@keyframes cGanttIn { from { opacity: 0; transform: scale(0.95); } }
[data-comp="gantt"] .c-gantt-track {
  position: relative; height: 22px; border-radius: var(--radius-xs);
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 12 - 1px), var(--rule) calc(100% / 12 - 1px), var(--rule) calc(100% / 12)),
    var(--sheet-2);
}
[data-comp="gantt"] .c-gantt-bar {
  position: absolute; top: 3px; bottom: 3px;
  left: calc(var(--a) / 12 * 100%); width: calc((var(--b) - var(--a)) / 12 * 100%);
  border-radius: 6px; overflow: hidden;
  background: color-mix(in srgb, var(--c) 24%, var(--sheet-2));
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
}
[data-comp="gantt"] .c-gantt-bar::before {
  content: ""; position: absolute; inset: 0; background: var(--c);
  transform: scaleX(var(--p)); transform-origin: left;
  transition: transform 520ms cubic-bezier(0.23, 1, 0.32, 1);
}
/* the progress custom property lives on the row; inherit it into the bar */
[data-comp="gantt"] .c-gantt-tasks { display: grid; gap: 5px; padding-left: 10px; border-left: 2px solid var(--rule-2); margin-left: 4px; }
[data-comp="gantt"] .c-gantt-t { display: grid; gap: 2px; }
[data-comp="gantt"] .c-gantt-tl { font-size: 0.7rem; color: var(--ink-3); }
[data-comp="gantt"] .c-gantt-t .c-gantt-track { height: 14px; }
[data-comp="gantt"] .c-gantt-t .c-gantt-bar { top: 2px; bottom: 2px; border-radius: 4px; }
[data-comp="gantt"] .c-gantt-m:not(.is-current):not(.is-done) .c-gantt-bar { border-style: dashed; }
[data-comp="gantt"] .c-gantt-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  [data-comp="gantt"] .c-gantt-bar::before { transition: none; }
  [data-comp="gantt"] .c-gantt-state > * { animation: none; }
}

/* invoice.css */
.c-invoice .c-invoice-meter {
  grid-template-columns: minmax(0, 1fr) auto;
}
.c-invoice .c-invoice-out .amt {
  transition: color 200ms ease;
}
.c-invoice.is-paid .c-invoice-out .amt {
  color: var(--ok);
}
.c-invoice .ui-row.is-leaving {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}
.c-invoice .ui-row.is-struck .dim {
  text-decoration: none;
}
.c-invoice [data-note] {
  min-height: 1.4em;
}
@media (prefers-reduced-motion: reduce) {
  .c-invoice .ui-row[data-new],
  .c-invoice .ui-row.is-leaving {
    animation: none;
    transition: none;
  }
}

/* kb.css */
[data-comp="kb"] .c-kb-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
[data-comp="kb"] .c-kb-left { display: grid; gap: 8px; min-width: 0; }
[data-comp="kb"] .c-kb-search { position: relative; display: block; }
[data-comp="kb"] .c-kb-search .ic {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
[data-comp="kb"] .c-kb-search .ui-input { width: 100%; padding-left: 32px; }
[data-comp="kb"] .c-kb-list { max-height: 336px; overflow-y: auto; }
[data-comp="kb"] .c-kb-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  align-items: center;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease;
}
[data-comp="kb"] .c-kb-item:last-child { border-bottom: 0; }
[data-comp="kb"] .c-kb-item:active { background: var(--sheet-3); }
[data-comp="kb"] .c-kb-item[aria-current="true"] {
  background: color-mix(in srgb, var(--c) 12%, var(--sheet));
  box-shadow: inset 3px 0 0 var(--c);
}
[data-comp="kb"] .c-kb-t { font-weight: 600; grid-column: 1 / -1; }
[data-comp="kb"] .c-kb-n { color: var(--ink-3); font-size: 0.72rem; text-align: right; }
[data-comp="kb"] .c-kb-n b { font-family: var(--font-mono); font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
[data-comp="kb"] .c-kb-item[data-new] { animation: cKbIn 220ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes cKbIn { from { opacity: 0; transform: translateY(3px); } }
[data-comp="kb"] .c-kb-view {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--rule-2);
  border-top: 3px solid var(--c);
  border-radius: var(--radius-sm);
  background: var(--sheet-2);
  min-height: 200px;
}
[data-comp="kb"] .c-kb-view.c-kb-swap { animation: cKbIn 220ms cubic-bezier(0.23, 1, 0.32, 1); }
[data-comp="kb"] .c-kb-view-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
[data-comp="kb"] .c-kb-view .dim { color: var(--ink-3); font-size: 0.74rem; }
[data-comp="kb"] .c-kb-view-t { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
[data-comp="kb"] .c-kb-view p { margin: 0; color: var(--ink-2); }
[data-comp="kb"] .c-kb-vote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-weight: 600; font-size: 0.8rem; }
[data-comp="kb"] .c-kb-vote .ui-btn[aria-pressed="true"] { background: var(--c); border-color: transparent; color: var(--on-fill); }
[data-comp="kb"] .c-kb-thanks:not([hidden]) { animation: cKbIn 220ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@media (hover: hover) and (pointer: fine) {
  [data-comp="kb"] .c-kb-item:hover { background: var(--sheet-2); }
  [data-comp="kb"] .c-kb-item[aria-current="true"]:hover { background: color-mix(in srgb, var(--c) 12%, var(--sheet)); }
}
@container (max-width: 560px) {
  [data-comp="kb"] .c-kb-split { grid-template-columns: minmax(0, 1fr); }
  [data-comp="kb"] .c-kb-list { max-height: 220px; }
  [data-comp="kb"] .c-kb-view { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  [data-comp="kb"] * { animation: none !important; transition: none !important; }
}
/* Audience badge keeps its own width; the list fades where it scrolls on. */
[data-comp="kb"] .c-kb-item .badge { justify-self: start; }
[data-comp="kb"] .c-kb-list {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
}

/* meetlink.css */
[data-comp="meetlink"] .c-meetlink-pick { display: grid; gap: 6px; justify-items: start; }
[data-comp="meetlink"] .c-meetlink-pick .dim { color: var(--ink-3); font-size: 0.76rem; }
[data-comp="meetlink"] .c-meetlink-pick .seg button { height: 30px; padding: 0 12px; }
[data-comp="meetlink"] .c-meetlink-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; }
[data-comp="meetlink"] .c-meetlink-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-xs); background: var(--c); color: var(--on-fill); }
[data-comp="meetlink"] .c-meetlink-url {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink);
}
[data-comp="meetlink"] .c-meetlink-url.is-in { animation: cMeetIn 240ms cubic-bezier(0.23, 1, 0.32, 1) both; }
[data-comp="meetlink"] .c-meetlink-link.is-creating .c-meetlink-url { color: var(--ink-3); font-family: var(--font-body); animation: cMeetPulse 900ms ease-in-out infinite; }
[data-comp="meetlink"] .c-meetlink-link.is-creating .ui-btn { opacity: 0.4; pointer-events: none; }
@keyframes cMeetIn { from { opacity: 0; filter: blur(3px); } }
@keyframes cMeetPulse { 50% { opacity: 0.45; } }
[data-comp="meetlink"] .c-meetlink-note { margin: 0; min-height: 22px; }
[data-comp="meetlink"] .c-meetlink-note .badge { gap: 4px; animation: cMeetBadge 220ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes cMeetBadge { from { opacity: 0; transform: scale(0.95); } }
[data-comp="meetlink"] button:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
@container (max-width: 560px) {
  [data-comp="meetlink"] .ui-row--3 { grid-template-columns: minmax(0, 1fr) auto; }
  [data-comp="meetlink"] .ui-row--3 > :nth-child(2) { display: none; }
  [data-comp="meetlink"] .c-meetlink-pick .seg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  [data-comp="meetlink"] .c-meetlink-url.is-in, [data-comp="meetlink"] .c-meetlink-note .badge { animation: none; }
  [data-comp="meetlink"] .c-meetlink-link.is-creating .c-meetlink-url { animation: none; }
}

/* paybox.css */
.c-paybox .c-paybox-due {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 12px;
  border-bottom: 1px solid var(--rule);
}
.c-paybox .c-paybox-due small {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.c-paybox .c-paybox-due b {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.c-paybox .c-paybox-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}
.c-paybox .c-paybox-group {
  display: grid;
  gap: 8px;
}
.c-paybox .seg {
  display: flex;
  border-radius: var(--radius-sm);
}
.c-paybox .seg button {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  white-space: nowrap;
}
.c-paybox .seg button .ic {
  width: 15px;
  height: 15px;
}
.c-paybox .seg button[aria-pressed='true'] {
  background: var(--c);
  color: var(--on-fill);
}
.c-paybox .seg button:focus-visible,
.c-paybox .ui-btn:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 2px;
}
.c-paybox .seg button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.c-paybox .c-paybox-field {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.c-paybox .c-paybox-field i {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 4px;
}
.c-paybox .c-paybox-input {
  position: relative;
  display: flex;
}
.c-paybox .c-paybox-input em {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  color: var(--ink-3);
  pointer-events: none;
}
.c-paybox .c-paybox-input .ui-input {
  padding-left: 22px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.c-paybox .c-paybox-input .ui-input:focus {
  border-color: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent);
}
.c-paybox .c-paybox-err {
  min-height: 1.2em;
  margin-top: -6px;
  font-size: 0.76rem;
  color: var(--bad);
}
.c-paybox .c-paybox-pay {
  justify-content: center;
  height: 38px;
  font-size: 0.86rem;
  position: relative;
}
.c-paybox .c-paybox-spin {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--on-fill) 30%, transparent);
  border-top-color: var(--on-fill);
}
.c-paybox.is-busy .c-paybox-spin {
  display: inline-block;
  animation: c-paybox-spin 700ms linear infinite;
}
.c-paybox.is-busy .c-paybox-pay {
  opacity: 0.85;
  cursor: progress;
}
@keyframes c-paybox-spin {
  to {
    transform: rotate(360deg);
  }
}
.c-paybox .c-paybox-receipt {
  border-color: color-mix(in srgb, var(--ok) 40%, var(--rule));
}
.c-paybox .c-paybox-receipt:not([hidden]) {
  animation: c-paybox-in 260ms var(--ease-out) both;
}
.c-paybox .c-paybox-card:not([hidden]) {
  animation: c-paybox-in 260ms var(--ease-out) both;
}
@keyframes c-paybox-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}
.c-paybox .c-paybox-done {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--ok-wash);
  color: var(--ok);
}
.c-paybox .c-paybox-done .ic {
  width: 30px;
  height: 30px;
}
.c-paybox .c-paybox-done b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.c-paybox .c-paybox-done small {
  color: var(--ink-2);
  font-size: 0.76rem;
}
.c-paybox .c-paybox-receipt .ui-btn .ic {
  width: 14px;
  height: 14px;
}
@media (prefers-reduced-motion: reduce) {
  .c-paybox .c-paybox-receipt:not([hidden]),
  .c-paybox .c-paybox-card:not([hidden]) {
    animation: none;
  }
  .c-paybox.is-busy .c-paybox-spin {
    animation-duration: 1600ms;
  }
}

/* pipeline.css */
[data-comp="pipeline"] .c-pipe-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(132px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}
[data-comp="pipeline"] .c-pipe-col {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--sheet-2);
  transition: border-color 160ms ease, background-color 160ms ease;
}
[data-comp="pipeline"] .c-pipe-col.is-over {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, var(--sheet-2));
}
[data-comp="pipeline"] .c-pipe-h {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 6px;
  align-items: baseline;
}
[data-comp="pipeline"] .c-pipe-h .t { font-weight: 600; font-size: 0.78rem; overflow-wrap: anywhere; }
[data-comp="pipeline"] .c-pipe-h .n {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-3);
  background: var(--neutral-wash);
  border-radius: var(--pill);
  padding: 0 7px;
}
[data-comp="pipeline"] .c-pipe-h .tot {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
[data-comp="pipeline"] .c-pipe-h .eur {
  grid-column: 1 / -1;
  font-size: 0.66rem;
  line-height: 1.25;
  color: var(--ink-3);
  min-height: 1.6em;
}
[data-comp="pipeline"] .c-pipe-h .is-bump { animation: cPipeBump 260ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes cPipeBump { from { opacity: 0.3; transform: translateY(-3px); } }
[data-comp="pipeline"] .c-pipe-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 64px;
  flex: 1;
}
[data-comp="pipeline"] .c-pipe-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-xs);
  background: var(--sheet);
  font-size: 0.78rem;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 160ms ease, border-color 160ms ease;
}
[data-comp="pipeline"] .c-pipe-card b { font-weight: 600; overflow-wrap: anywhere; }
[data-comp="pipeline"] .c-pipe-card .amt { font-family: var(--font-mono); font-size: 0.74rem; font-variant-numeric: tabular-nums; }
[data-comp="pipeline"] .c-pipe-card small { color: var(--ink-3); font-size: 0.68rem; }
[data-comp="pipeline"] .c-pipe-grip {
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 14px;
  touch-action: none;
  background-image: radial-gradient(circle, var(--ink-3) 1.2px, transparent 1.6px);
  background-size: 5px 6px;
  background-position: 0 center;
  background-repeat: repeat-y;
  opacity: 0.7;
}
[data-comp="pipeline"] .c-pipe-grip::before { content: ''; position: absolute; inset: 0 -4px; }
[data-comp="pipeline"] .c-pipe-grip { width: 8px; background-size: 8px 7px; }
[data-comp="pipeline"] .c-pipe-card.is-dragging { opacity: 0.35; }
[data-comp="pipeline"] .c-pipe-ghost {
  position: fixed;
  z-index: 50;
  left: 0;
  top: 0;
  pointer-events: none;
  margin: 0;
  cursor: grabbing;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transform-origin: center;
}
[data-comp="pipeline"] .c-pipe-move,
[data-comp="pipeline"] .c-pipe-conv { display: none; }
[data-comp="pipeline"] .c-pipe-move select {
  width: 100%;
  height: 26px;
  margin-top: 6px;
  padding: 0 4px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--rule-2);
  background: var(--sheet-2);
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
}
[data-comp="pipeline"] .c-pipe-card:focus-within .c-pipe-move { display: block; }
@media (hover: none) {
  [data-comp="pipeline"] .c-pipe-move { display: block; }
}
[data-comp="pipeline"] .c-pipe-col[data-col="won"] .c-pipe-card:not(.is-customer) .c-pipe-conv {
  display: inline-flex;
  justify-content: center;
  height: 26px;
  margin-top: 6px;
  padding: 0 8px;
  font-size: 0.7rem;
  white-space: normal;
  line-height: 1.1;
  height: auto;
  min-height: 26px;
}
[data-comp="pipeline"] .c-pipe-card.is-customer {
  cursor: default;
  padding-left: 8px;
  border-color: transparent;
  background: var(--ok-wash);
}
[data-comp="pipeline"] .c-pipe-card.is-customer .c-pipe-grip { display: none; }
[data-comp="pipeline"] .c-pipe-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 6px;
  align-items: center;
  color: var(--ok);
  animation: cPipeIn 240ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
[data-comp="pipeline"] .c-pipe-chip .ic { width: 16px; height: 16px; }
[data-comp="pipeline"] .c-pipe-chip b { color: var(--ink); }
[data-comp="pipeline"] .c-pipe-chip .badge { grid-column: 2; justify-self: start; height: 18px; font-size: 0.64rem; }
@keyframes cPipeIn { from { opacity: 0; transform: scale(0.95); } }
@media (hover: hover) and (pointer: fine) {
  [data-comp="pipeline"] .c-pipe-card:not(.is-customer):hover { border-color: var(--ink-3); }
}
@media (prefers-reduced-motion: reduce) {
  [data-comp="pipeline"] * { animation: none !important; transition: none !important; }
}
/* The move control appears on focus below the convert button, so pressing the button never shifts it. */
[data-comp="pipeline"] .c-pipe-conv { order: 1; }
[data-comp="pipeline"] .c-pipe-move { order: 2; }

/* portal.css */
.c-portal { --brand: var(--m-delivery); }
.c-portal .ui-btn--go { --c: var(--brand); }
.c-portal .c-p-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--rule); border-top: 3px solid var(--brand); border-radius: var(--radius-sm); background: var(--sheet); }
.c-portal .c-p-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-xs); background: var(--brand); color: var(--on-fill); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; flex: none; }
.c-portal .c-p-firm, .c-portal .c-p-who span:last-child { display: grid; min-width: 0; line-height: 1.25; }
.c-portal .c-p-firm small, .c-portal .c-p-who small { color: var(--ink-3); font-size: 0.72rem; }
.c-portal .c-p-who { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.c-portal .c-p-who .avatar { background: var(--c); }
.c-portal .c-p-h { font-family: var(--font-body); font-size: 0.79rem; color: var(--ink); font-weight: 600; }
.c-portal .ui-box-h span.c-p-h { font-family: var(--font-body); font-size: 0.79rem; color: var(--ink); }
.c-portal .c-p-again { height: 26px; padding: 0 9px; font-size: 0.72rem; }
.c-portal .c-p-count { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px 4px; }
.c-portal .c-p-num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--c); display: inline-block; }
.c-portal .c-p-num.is-tick { animation: c-p-tick 260ms var(--ease-out); }
@keyframes c-p-tick { from { opacity: 0; transform: translateY(6px); } }
.c-portal .c-p-count > span { color: var(--ink-2); font-size: 0.82rem; }
.c-portal .c-p-items { list-style: none; margin: 0; padding: 0; }
.c-portal .c-p-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--rule); transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
.c-portal .c-p-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-xs); background: color-mix(in srgb, var(--c) 16%, var(--sheet)); color: var(--c); }
.c-portal .c-p-t { display: grid; min-width: 0; }
.c-portal .c-p-t .dim { color: var(--ink-3); font-size: 0.78rem; }
.c-portal .c-p-end { display: inline-flex; align-items: center; gap: 8px; }
.c-portal .c-p-item.is-done { opacity: 0.62; }
.c-portal .c-p-item.is-done .c-p-ico { background: var(--ok-wash); color: var(--ok); }
.c-portal .c-p-item.is-done [data-do] { display: none; }
.c-portal .c-p-done:not([hidden]) { animation: c-p-pop 260ms var(--ease-out) both; }
@keyframes c-p-pop { from { opacity: 0; transform: scale(0.95); } }
.c-portal .c-p-clear { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-top: 1px solid var(--rule); color: var(--ok); font-weight: 600; }
.c-portal .c-p-clear[hidden] { display: none; }
.c-portal .c-p-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); }
.c-portal .c-p-tabs button { position: relative; height: 34px; padding: 0 12px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; font-size: 0.82rem; cursor: pointer; transition: color 160ms ease, transform 140ms var(--ease-out); }
.c-portal .c-p-tabs button:active { transform: scale(0.97); }
.c-portal .c-p-tabs button::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--c); border-radius: 2px; transform: scaleX(0); transition: transform 220ms var(--ease-out); }
.c-portal .c-p-tabs button[aria-selected='true'] { color: var(--ink); }
.c-portal .c-p-tabs button[aria-selected='true']::after { transform: scaleX(1); }
.c-portal .c-p-tn { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-3); }
.c-portal .c-p-panel[hidden] { display: none; }
.c-portal .c-p-proj { grid-template-columns: minmax(0, 1fr) auto; }
.c-portal .c-p-proj .dim { font-size: 0.78rem; }
.c-portal .c-p-prog { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.c-portal .c-p-prog .meter i { background: var(--brand); }
.c-portal .c-p-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.c-portal .c-p-lbl { display: grid; gap: 3px; font-size: 0.7rem; color: var(--ink-3); }
.c-portal .c-p-lbl--grow { flex: 1 1 160px; min-width: 0; }
.c-portal .c-p-lbl .ui-input { width: 100%; }
.c-portal .c-p-err { margin: 0; padding: 6px 12px; font-size: 0.78rem; color: var(--bad); }
.c-portal .c-p-err[hidden] { display: none; }
.c-portal .c-p-tickets { list-style: none; margin: 0; padding: 0; }
.c-portal .c-p-tickets .ui-row .dim { font-size: 0.78rem; }
.c-portal .c-p-tickets .ui-row[data-new] { animation: rowIn 260ms var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  .c-portal .c-p-num.is-tick, .c-portal .c-p-done:not([hidden]), .c-portal .c-p-tickets .ui-row[data-new] { animation: none; }
  .c-portal .c-p-item, .c-portal .c-p-tabs button::after { transition: none; }
}
@container (max-width: 420px) {
  .c-portal .c-p-who { margin-left: 0; }
  .c-portal .c-p-item { grid-template-columns: minmax(0, 1fr) auto; }
  .c-portal .c-p-ico { display: none; }
}

/* queue.css */
.c-queue .c-q-chips { justify-self: start; max-width: 100%; }
.c-queue .c-q-chips button { height: 30px; padding: 0 12px; display: inline-flex; gap: 6px; align-items: center; }
.c-queue .c-q-n { font-family: var(--font-mono); font-size: 0.68rem; opacity: 0.7; font-variant-numeric: tabular-nums; }
.c-queue .c-q-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 400px; align-items: start; }
.c-queue .c-q-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--sheet); overflow: hidden; }
.c-queue .c-q-list li { border-bottom: 1px solid var(--rule); }
.c-queue .c-q-list li:last-child { border-bottom: 0; }
.c-queue .c-q-list li[hidden] { display: none; }
.c-queue .c-q-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px 12px; border: 0; border-left: 3px solid transparent; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.c-queue .c-q-row:active { transform: scale(0.99); }
.c-queue .c-q-row[aria-pressed='true'] { background: color-mix(in srgb, var(--c) 11%, var(--sheet)); border-left-color: var(--c); }
.c-queue .c-q-main { display: grid; gap: 2px; min-width: 0; }
.c-queue .c-q-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-queue .c-q-l1 { display: flex; gap: 8px; align-items: baseline; font-size: 0.72rem; color: var(--ink-3); }
.c-queue .c-q-id { color: var(--ink-2); }
.c-queue .c-q-meta { color: var(--ink-3); font-size: 0.74rem; }
.c-queue .c-q-pri[data-p='Urgent'] { color: var(--bad); font-weight: 600; }
.c-queue .c-q-pri[data-p='High'] { color: var(--warn); font-weight: 600; }
.c-queue .c-q-sla { display: grid; justify-items: end; gap: 2px; }
.c-queue .c-q-cap, .c-queue .c-q-clockbox small { font-size: 0.66rem; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0.04em; }
.c-queue .c-q-sla .clock { font-size: 0.82rem; }
.c-queue .c-q-panel { display: none; border: 1px solid var(--rule-2); border-radius: var(--radius-sm); background: var(--sheet-2); padding: 12px; gap: 10px; align-content: start; }
.c-queue .c-q-body[data-open] .c-q-panel { display: grid; animation: c-q-in 240ms var(--ease-out) both; }
@keyframes c-q-in { from { opacity: 0; transform: translateX(10px) scale(0.98); } }
.c-queue .c-q-ph { display: flex; align-items: center; gap: 8px; }
.c-queue .c-q-ph .badge { margin-left: auto; }
.c-queue .c-q-close { width: 30px; height: 30px; }
.c-queue .c-q-close .ic { width: 14px; height: 14px; }
.c-queue .c-q-subj { margin: 0; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; line-height: 1.25; }
.c-queue .c-q-panel .ui-note { margin: 0; }
.c-queue .c-q-clockbox { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--radius-xs); background: var(--sheet); border: 1px solid var(--rule); }
.c-queue .c-q-clockbox small { display: block; }
.c-queue .c-q-big { font-size: 1.35rem; }
.c-queue .c-q-acts { display: grid; gap: 8px; }
.c-queue .c-q-acts .ui-btn { justify-content: center; }
.c-queue .c-q-reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.c-queue .c-q-lbl { display: grid; gap: 3px; font-size: 0.7rem; color: var(--ink-3); }
.c-queue .c-q-lbl .ui-input { width: 100%; }
.c-queue .c-q-log { min-height: 2.4em; }
.c-queue .c-q-flash { animation: c-q-flash 600ms var(--ease-out); }
@keyframes c-q-flash { from { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent); } }
@container (min-width: 600px) {
  .c-queue .c-q-body[data-open] { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .c-queue .c-q-close { display: none; }
}
@container (max-width: 599px) {
  .c-queue .c-q-body[data-open] .c-q-panel { position: absolute; inset: 0; z-index: 2; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
  .c-queue .c-q-meta { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .c-queue .c-q-row:hover:not([aria-pressed='true']) { background: var(--sheet-2); }
}
@media (prefers-reduced-motion: reduce) {
  .c-queue .c-q-body[data-open] .c-q-panel, .c-queue .c-q-flash { animation: none; }
}

/* quote.css */
.c-quote .c-quote-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  position: relative;
}
.c-quote .c-quote-track::before,
.c-quote .c-quote-track::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 10%;
  right: 10%;
  height: 2px;
  border-radius: var(--pill);
  background: var(--rule-2);
}
.c-quote .c-quote-track::after {
  background: var(--c);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform 420ms var(--ease-out);
}
.c-quote .c-quote-track li {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.c-quote .c-quote-track button {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: color 160ms ease, transform 140ms var(--ease-out);
}
.c-quote .c-quote-track button:active {
  transform: scale(0.97);
}
.c-quote .c-quote-track button:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
.c-quote .c-quote-dot {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--rule-2);
  background: var(--sheet);
  color: var(--on-fill);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.c-quote .c-quote-dot .ic {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 200ms ease, transform 260ms var(--ease-out);
}
.c-quote li[data-state='done'] .c-quote-dot {
  background: var(--c);
  border-color: var(--c);
}
.c-quote li[data-state='done'] .c-quote-dot .ic {
  opacity: 1;
  transform: none;
}
.c-quote li[data-state='done'] button {
  color: var(--ink-2);
}
.c-quote li[data-state='current'] .c-quote-dot {
  border-color: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 24%, transparent);
}
.c-quote li[data-state='current'] .c-quote-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}
.c-quote li[data-state='current'] button {
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .c-quote .c-quote-track button:hover {
    color: var(--ink);
  }
  .c-quote li[data-state='todo'] button:hover .c-quote-dot {
    border-color: var(--ink-3);
  }
}
.c-quote .c-quote-stage {
  position: relative;
  padding-top: 10px;
}
.c-quote .c-quote-card {
  width: min(100%, 320px);
  transform: translateX(var(--x, 0px));
  overflow: visible;
}
.c-quote .c-quote-stage.is-placed .c-quote-card {
  transition: transform 460ms var(--ease-out);
}
.c-quote .c-quote-card::before {
  content: '';
  position: absolute;
  top: -6px;
  left: var(--nx, 50%);
  width: 10px;
  height: 10px;
  margin-left: -5px;
  transform: rotate(45deg);
  background: var(--sheet-2);
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  transition: left 460ms var(--ease-out);
}
.c-quote .c-quote-card .ui-box-h {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.c-quote .c-quote-card .ui-box-h .c-quote-ref {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink);
}
.c-quote .c-quote-fields {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: hidden;
}
.c-quote .c-quote-fields .ui-row {
  grid-template-columns: 96px minmax(0, 1fr);
}
.c-quote .c-quote-fields .ui-row .amt,
.c-quote .c-quote-fields .ui-row b {
  text-align: left;
}
.c-quote .c-quote-late {
  color: var(--ink-2);
}
.c-quote [data-f],
.c-quote [data-l],
.c-quote [data-badge] {
  transition: opacity 150ms ease, filter 150ms ease;
}
.c-quote .is-swapping [data-f],
.c-quote .is-swapping [data-l],
.c-quote .is-swapping [data-badge] {
  opacity: 0;
  filter: blur(3px);
}
@container (max-width: 520px) {
  .c-quote .c-quote-track {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-quote .c-quote-track::before,
  .c-quote .c-quote-track::after {
    top: 14px;
    bottom: 30px;
    left: 13px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .c-quote .c-quote-track::after {
    transform: scaleY(var(--p, 0));
    transform-origin: top;
  }
  .c-quote .c-quote-track button {
    grid-template-columns: 28px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0;
    text-align: left;
    font-size: 0.82rem;
  }
  .c-quote .c-quote-card {
    width: 100%;
    transform: none;
  }
  .c-quote .c-quote-card::before {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .c-quote .c-quote-track::after,
  .c-quote .c-quote-stage.is-placed .c-quote-card,
  .c-quote .c-quote-card::before,
  .c-quote [data-f],
  .c-quote [data-l],
  .c-quote [data-badge] {
    transition: none;
  }
}

/* rebill.css */
.c-rebill .c-rebill-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.c-rebill .c-rebill-end {
  display: flex;
  justify-content: flex-end;
  min-width: 120px;
}
.c-rebill .c-rebill-sw {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
}
.c-rebill .c-rebill-billed {
  display: none;
}
.c-rebill .c-rebill-row[data-state='billed'] .c-rebill-sw {
  display: none;
}
.c-rebill .c-rebill-row[data-state='billed'] .c-rebill-billed {
  display: inline-flex;
  animation: c-rebill-in 260ms var(--ease-out) both;
}
.c-rebill .c-rebill-row[data-state='billed'] b {
  color: var(--ink-2);
}
.c-rebill .c-rebill-switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  border-radius: var(--pill);
  border: 0;
  padding: 0;
  background: var(--rule-2);
  cursor: pointer;
  transition: background-color 180ms ease, transform 140ms var(--ease-out);
}
.c-rebill .c-rebill-switch:active {
  transform: scale(0.97);
}
.c-rebill .c-rebill-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: transform 200ms var(--ease-out);
}
.c-rebill .c-rebill-switch[aria-checked='true'] {
  background: var(--c);
}
.c-rebill .c-rebill-switch[aria-checked='true']::after {
  transform: translateX(16px);
}
.c-rebill .c-rebill-switch:focus-visible,
.c-rebill .ui-btn:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 2px;
}
.c-rebill .c-rebill-line {
  animation: c-rebill-in 260ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.c-rebill .c-rebill-line.is-leaving {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}
@keyframes c-rebill-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.95);
  }
}
.c-rebill .c-rebill-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.c-rebill .c-rebill-foot .ui-note {
  flex: 1 1 200px;
}
.c-rebill .c-rebill-foot .ui-btn .ic {
  width: 14px;
  height: 14px;
}
@container (max-width: 420px) {
  .c-rebill .c-rebill-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .c-rebill .c-rebill-end {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .c-rebill .c-rebill-sw {
    justify-content: space-between;
  }
}
@media (prefers-reduced-motion: reduce) {
  .c-rebill .c-rebill-line,
  .c-rebill .c-rebill-row[data-state='billed'] .c-rebill-billed {
    animation: none;
  }
  .c-rebill .c-rebill-line.is-leaving {
    transition: none;
  }
}

/* record.css */
[data-comp="record"] .c-record-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
}
[data-comp="record"] .c-record-contact:last-child { border-bottom: 0; }
[data-comp="record"] .c-record-contact .dim { color: var(--ink-3); }
[data-comp="record"] .c-record-sel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--ink-3);
}
[data-comp="record"] .c-record-sel select {
  height: 30px;
  padding: 0 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--rule-2);
  background: var(--sheet-2);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease;
}
[data-comp="record"] .c-record-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 32px;
}
[data-comp="record"] .c-record-end .ui-btn { height: 30px; }
[data-comp="record"] .c-record-end > * {
  animation: cRecordIn 220ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes cRecordIn {
  from { opacity: 0; transform: scale(0.95); }
}
[data-comp="record"] .c-record-tabs {
  display: flex;
  gap: 2px;
  padding: 6px;
  border-bottom: 1px solid var(--rule);
  background: var(--sheet-2);
  overflow-x: auto;
}
[data-comp="record"] .c-record-tabs button {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
[data-comp="record"] .c-record-tabs button:active { transform: scale(0.97); }
[data-comp="record"] .c-record-tabs button[aria-selected="true"] {
  background: var(--c);
  color: var(--on-fill);
}
[data-comp="record"] [data-panel] .ui-row {
  animation: cRecordRow 240ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
[data-comp="record"] [data-panel] .ui-row:nth-child(2) { animation-delay: 45ms; }
[data-comp="record"] [data-panel] .ui-row:nth-child(3) { animation-delay: 90ms; }
@keyframes cRecordRow {
  from { opacity: 0; transform: translateY(4px); }
}
@media (hover: hover) and (pointer: fine) {
  [data-comp="record"] .c-record-sel select:hover { border-color: var(--ink-3); }
  [data-comp="record"] .c-record-tabs button[aria-selected="false"]:hover { color: var(--ink); }
}
@container (max-width: 560px) {
  [data-comp="record"] .c-record-contact { grid-template-columns: minmax(0, 1fr) auto; }
  [data-comp="record"] .c-record-contact .who { grid-column: 1 / -1; }
  [data-comp="record"] .c-record-end { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  [data-comp="record"] * { animation: none !important; transition: none !important; }
}
/* The access column takes what it needs; the note stays on one line and wraps under the button if short of room. */
[data-comp="record"] .c-record-contact { grid-template-columns: minmax(0, 1fr) auto auto; }
[data-comp="record"] .c-record-end { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 10px; }
[data-comp="record"] .c-record-end .dim { white-space: nowrap; font-size: 0.78rem; }
@container (max-width: 560px) {
  [data-comp="record"] .c-record-contact { grid-template-columns: minmax(0, 1fr) auto; }
}
@container (max-width: 560px) {
  [data-comp="record"] .c-record-end { grid-column: 1 / -1; justify-content: flex-start; }
}

/* report.css */
.c-report .seg button {
  height: 28px;
  padding: 0 11px;
  font-size: 0.76rem;
}
.c-report .seg button:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 2px;
}
.c-report .c-report-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--ink-2);
}
.c-report .c-report-legend[hidden] {
  display: none;
}
.c-report .c-report-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.c-report .c-report-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.c-report .c-report-plot {
  position: relative;
}
.c-report .c-report-chart {
  min-height: 210px;
}
.c-report .c-report-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.c-report .c-report-gl {
  stroke: var(--rule);
}
.c-report .c-report-ax {
  fill: var(--ink-3);
  font-size: 10px;
  font-family: var(--font-mono);
}
.c-report .c-report-hit {
  fill: transparent;
}
.c-report .c-report-g {
  outline: none;
  cursor: default;
}
.c-report .c-report-g:focus-visible .c-report-hit {
  stroke: var(--ink-3);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
  rx: 4px;
}
.c-report .c-report-bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0.04);
  opacity: 0;
  transition: transform 620ms var(--ease-out) var(--d, 0ms), opacity 300ms ease var(--d, 0ms);
}
.c-report .is-grown .c-report-bar {
  transform: none;
  opacity: 1;
}
.c-report .is-settled .c-report-bar {
  transition: opacity 160ms ease;
}
.c-report .is-grown .c-report-bar.is-dim {
  opacity: 0.3;
}
.c-report .c-report-tip {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 8px));
  display: grid;
  gap: 2px;
  background: var(--ink);
  color: var(--ground);
  border-radius: var(--radius-xs);
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 120ms ease;
}
.c-report .c-report-tip.is-in {
  opacity: 1;
}
.c-report .c-report-tip b {
  font-family: var(--font-body);
}
.c-report .c-report-tip span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.c-report .c-report-tip i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.c-report .c-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.c-report .c-report-table th,
.c-report .c-report-table td {
  padding: 7px 8px;
  text-align: right;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
}
.c-report .c-report-table td {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.c-report .c-report-table th:first-child {
  text-align: left;
  font-weight: 600;
}
.c-report .c-report-table thead th {
  font-weight: 600;
  color: var(--ink-3);
}
.c-report .c-report-bad b {
  color: var(--bad);
}
@container (max-width: 420px) {
  .c-report .ui-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-report .ui-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .c-report .c-report-bar,
  .c-report .c-report-tip {
    transition: none;
  }
}

/* roles.css */
.c-roles .c-r-seg { justify-self: start; max-width: 100%; }
.c-roles .c-r-seg button { padding: 0 12px; }
.c-roles .c-r-crumb { font-family: var(--font-body); font-size: 0.79rem; font-weight: 600; color: var(--ink); }
.c-roles .ui-box-h span.c-r-crumb { font-family: var(--font-body); font-size: 0.79rem; color: var(--ink); }
.c-roles .c-r-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c-roles .c-r-f { position: relative; display: grid; gap: 2px; padding: 10px 12px; border-bottom: 1px solid var(--rule); min-height: 58px; align-content: start; }
.c-roles .c-r-f small { color: var(--ink-3); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; }
.c-roles .c-r-f b { font-weight: 600; transition: filter 260ms var(--ease-out), opacity 260ms var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.c-roles .c-r-hide { position: absolute; left: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 0.8rem; opacity: 0; transform: scale(0.95); transform-origin: left center; pointer-events: none; transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.c-roles .c-r-f[data-hidden='true'] b { filter: blur(8px); opacity: 0; }
.c-roles .c-r-f[data-hidden='true'] .c-r-hide { opacity: 1; transform: none; }
.c-roles .c-r-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
.c-roles .c-r-acts .ui-btn { height: 30px; }
.c-roles .c-r-share { display: flex; align-items: center; gap: 10px; padding: 0 12px 12px; font-size: 0.8rem; color: var(--ink-2); }
.c-roles .c-r-share[hidden] { display: none; }
.c-roles .c-r-note { margin: 0; min-height: 2.8em; color: var(--ink-2); font-size: 0.86rem; }
.c-roles .c-r-note b { color: var(--ink); font-family: var(--font-mono); font-weight: 600; margin-right: 4px; }
@container (min-width: 520px) {
  .c-roles .c-r-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .c-roles .c-r-f b, .c-roles .c-r-hide { transition: none; }
}

/* schedule.css */
.c-schedule .c-schedule-strip {
  list-style: none;
  margin: 0;
  padding: 16px 10px 8px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px 0;
}
.c-schedule .c-schedule-strip li {
  display: grid;
  justify-items: center;
  gap: 6px;
  position: relative;
}
.c-schedule .c-schedule-strip li i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--rule-2);
  background: transparent;
  position: relative;
  transition: background-color 220ms ease, border-color 220ms ease, transform 260ms var(--ease-out);
}
.c-schedule .c-schedule-strip li span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-3);
}
.c-schedule li[data-s='ok'] i {
  background: var(--ok);
  border-color: var(--ok);
}
.c-schedule li[data-s='invoice'] i {
  background: var(--info);
  border-color: var(--info);
}
.c-schedule li[data-s='bad'] i {
  background: var(--bad);
  border-color: var(--bad);
  transform: scale(1.1);
}
.c-schedule li[data-s='ok'] i::after,
.c-schedule li[data-s='bad'] i::after,
.c-schedule li[data-s='invoice'] i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: 4px;
  height: 8px;
  border: solid var(--on-fill);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.c-schedule li[data-s='bad'] i::after {
  width: 2px;
  height: 8px;
  border-width: 0 0 0 2px;
  border-color: var(--on-fill);
  top: 50%;
  transform: translate(-50%, -50%);
}
.c-schedule li[data-retried] i {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 35%, transparent);
}
.c-schedule li[aria-current='date'] i {
  border-color: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent);
}
.c-schedule li[aria-current='date'] span {
  color: var(--ink);
  font-weight: 700;
}
.c-schedule.is-paused li[data-s='upcoming'] i {
  border-style: dashed;
  opacity: 0.55;
}
.c-schedule.is-paused li[aria-current='date'] i {
  box-shadow: none;
}
.c-schedule .c-schedule-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 2px 12px 11px;
  font-size: 0.7rem;
  color: var(--ink-3);
}
.c-schedule .c-schedule-key span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.c-schedule .c-schedule-key i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--rule-2);
}
.c-schedule .c-schedule-key [data-k='ok'] i {
  background: var(--ok);
  border-color: var(--ok);
}
.c-schedule .c-schedule-key [data-k='invoice'] i {
  background: var(--info);
  border-color: var(--info);
}
.c-schedule .c-schedule-key [data-k='bad'] i {
  background: var(--bad);
  border-color: var(--bad);
}
.c-schedule .c-schedule-title {
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--ink);
}
.c-schedule .c-schedule-retries {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.c-schedule .c-schedule-retries li {
  display: grid;
  gap: 1px;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--rule);
  font-size: 0.76rem;
  opacity: 0.55;
  transition: opacity 220ms ease, background-color 220ms ease, transform 260ms var(--ease-out);
}
.c-schedule .c-schedule-retries li b {
  font-weight: 600;
}
.c-schedule .c-schedule-retries li span {
  color: var(--ink-3);
}
.c-schedule .c-schedule-retries li[data-s='bad'] {
  opacity: 1;
  background: var(--bad-wash);
  border-color: transparent;
}
.c-schedule .c-schedule-retries li[data-s='bad'] span {
  color: var(--bad);
}
.c-schedule .c-schedule-retries li[data-s='ok'] {
  opacity: 1;
  background: var(--ok-wash);
  border-color: transparent;
}
.c-schedule .c-schedule-retries li[data-s='ok'] span {
  color: var(--ok);
}
.c-schedule .c-schedule-retries li.is-landing {
  animation: c-schedule-land 260ms var(--ease-out) both;
}
@keyframes c-schedule-land {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.95);
  }
}
.c-schedule .c-schedule-auto {
  display: grid;
  align-content: start;
}
.c-schedule .c-schedule-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.c-schedule .c-schedule-switch span {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
}
.c-schedule .c-schedule-sw {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  border-radius: var(--pill);
  border: 0;
  padding: 0;
  background: var(--rule-2);
  cursor: pointer;
  transition: background-color 180ms ease, transform 140ms var(--ease-out);
}
.c-schedule .c-schedule-sw:active {
  transform: scale(0.97);
}
.c-schedule .c-schedule-sw::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: transform 200ms var(--ease-out);
}
.c-schedule .c-schedule-sw[aria-checked='true'] {
  background: var(--c);
}
.c-schedule .c-schedule-sw[aria-checked='true']::after {
  transform: translateX(16px);
}
.c-schedule .c-schedule-sw:focus-visible,
.c-schedule .ui-btn:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 2px;
}
.c-schedule .c-schedule-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.c-schedule .c-schedule-foot .ui-note {
  flex: 1 1 200px;
  min-height: 1.4em;
}
.c-schedule .ui-btn .ic {
  width: 14px;
  height: 14px;
}
@container (max-width: 440px) {
  .c-schedule .c-schedule-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px 0;
  }
  .c-schedule .c-schedule-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-schedule .c-schedule-retries {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .c-schedule .c-schedule-retries li.is-landing {
    animation: none;
  }
  .c-schedule li i,
  .c-schedule .c-schedule-retries li {
    transition: none;
  }
}

/* sign.css */
[data-comp="sign"] .c-sign-doc { padding: 10px 12px; display: grid; gap: 6px; color: var(--ink-2); font-size: 0.8rem; }
[data-comp="sign"] .c-sign-doc p { margin: 0; }
[data-comp="sign"] .c-sign-doc b { color: var(--ink); }
[data-comp="sign"] .c-sign-body { padding: 12px; display: grid; gap: 10px; justify-items: stretch; }
[data-comp="sign"] .c-sign-body .seg { justify-self: start; }
[data-comp="sign"] .c-sign-body .seg button { height: 28px; }
[data-comp="sign"] .c-sign-pad {
  position: relative; height: 120px; border-radius: var(--radius-xs);
  border: 1px dashed var(--rule-2); background: var(--sheet-2); color: var(--ink);
}
[data-comp="sign"] .c-sign-pad::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 28px; border-bottom: 1px solid var(--rule-2);
}
[data-comp="sign"] .c-sign-pad::after {
  content: "\00d7"; position: absolute; left: 14px; bottom: 32px; color: var(--ink-3); font-size: 1.1rem; line-height: 1;
}
[data-comp="sign"] .c-sign-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; color: inherit; }
[data-comp="sign"] .c-sign-clear { position: absolute; top: 6px; right: 6px; height: 26px; padding: 0 8px; font-size: 0.72rem; background: var(--sheet); }
[data-comp="sign"] .c-sign-type { display: grid; gap: 6px; font-size: 0.76rem; }
[data-comp="sign"] .c-sign-type[hidden], [data-comp="sign"] .c-sign-pad[hidden] { display: none; }
[data-comp="sign"] .c-sign-type .dim { color: var(--ink-3); }
[data-comp="sign"] .c-sign-type .ui-input { height: 36px; width: 100%; flex: none; }
[data-comp="sign"] .c-sign-preview {
  display: flex; align-items: center; min-height: 80px; padding: 0 14px; font-size: 2rem; line-height: 1.1; overflow: hidden;
  border-radius: var(--radius-xs); border: 1px dashed var(--rule-2); background: var(--sheet-2); white-space: nowrap;
}
[data-comp="sign"] .c-sign-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
[data-comp="sign"] .c-sign-box[hidden], [data-comp="sign"] .c-sign-stamp[hidden] { display: none; }
[data-comp="sign"] .c-sign-stamp { animation: cSignIn 260ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes cSignIn { from { opacity: 0; transform: scale(0.95); } }
[data-comp="sign"] .c-sign-stamp-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; }
[data-comp="sign"] .c-sign-mark { min-height: 64px; display: flex; align-items: center; color: var(--ink); }
[data-comp="sign"] .c-sign-mark svg { width: 100%; max-width: 220px; height: auto; max-height: 90px; overflow: visible; }
[data-comp="sign"] .c-sign-mark .signed { font-size: 1.9rem; line-height: 1.1; }
[data-comp="sign"] .c-sign-meta { display: grid; gap: 4px; justify-items: end; text-align: right; }
[data-comp="sign"] .c-sign-meta .badge { gap: 4px; }
[data-comp="sign"] .c-sign-meta .dim { color: var(--ink-3); font-family: var(--font-mono); font-size: 0.72rem; }
[data-comp="sign"] .c-sign-chip .badge { animation: cSignIn 240ms cubic-bezier(0.23, 1, 0.32, 1) both; }
[data-comp="sign"] .who .ic { color: var(--c); }
[data-comp="sign"] .c-sign-foot { display: flex; justify-content: flex-end; }
[data-comp="sign"] button:focus-visible, [data-comp="sign"] .ui-input:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
@container (max-width: 560px) {
  [data-comp="sign"] .c-sign-stamp-in { grid-template-columns: minmax(0, 1fr); }
  [data-comp="sign"] .c-sign-meta { justify-items: start; text-align: left; }
  [data-comp="sign"] .c-sign .ui-row--3 { grid-template-columns: minmax(0, 1fr); }
  [data-comp="sign"] .c-sign .ui-row--3 > :nth-child(2) { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  [data-comp="sign"] .c-sign-stamp, [data-comp="sign"] .c-sign-chip .badge { animation: none; }
}

/* timer.css */
[data-comp="timer"] .c-timer-run {
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto auto; gap: 12px; align-items: center;
  padding: 12px; border-bottom: 1px solid var(--rule);
}
[data-comp="timer"] .c-timer-run .dim { color: var(--ink-3); }
[data-comp="timer"] .c-timer-clock { font-size: 1.55rem; letter-spacing: -0.02em; min-width: 5.2ch; text-align: right; }
[data-comp="timer"] .c-timer-clock.is-live { color: var(--c); }
[data-comp="timer"] .c-timer-clock.is-live::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%;
  background: var(--c); vertical-align: 0.2em; animation: cTimerPulse 1s ease-in-out infinite;
}
@keyframes cTimerPulse { 50% { opacity: 0.3; } }
[data-comp="timer"] .c-timer-round { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; }
[data-comp="timer"] .c-timer-round .dim { color: var(--ink-3); font-size: 0.78rem; }
[data-comp="timer"] .c-timer-round .seg button { height: 28px; padding: 0 12px; }
[data-comp="timer"] .c-timer-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
[data-comp="timer"] [data-entry-state] .badge { animation: cTimerIn 220ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes cTimerIn { from { opacity: 0; transform: scale(0.95); } }
@container (max-width: 560px) {
  [data-comp="timer"] .c-timer-run { grid-template-columns: minmax(0, 1fr) auto; }
  [data-comp="timer"] .c-timer-run .ui-btn { grid-column: 1 / -1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  [data-comp="timer"] .c-timer-clock.is-live::before { animation: none; }
  [data-comp="timer"] [data-entry-state] .badge { animation: none; }
}

/* tour.css */
[data-comp="tour"] .c-tour-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
[data-comp="tour"] .c-tour-tabs button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--sheet);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
[data-comp="tour"] .c-tour-tabs button:active { transform: scale(0.97); }
[data-comp="tour"] .c-tour-tabs .ic { width: 18px; height: 18px; color: var(--t); }
[data-comp="tour"] .c-tour-tabs b {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}
[data-comp="tour"] .c-tour-tabs span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-comp="tour"] .c-tour-tabs button[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--t) 70%, transparent);
  background: color-mix(in srgb, var(--t) 12%, var(--sheet));
  color: var(--ink);
}
[data-comp="tour"] .c-tour-tabs button[aria-selected="true"] b { color: var(--t); }
[data-comp="tour"] .c-tour-tabs button:focus-visible { outline: 2px solid var(--t); outline-offset: 2px; }
[data-comp="tour"] .c-tour-panel { min-height: 214px; }
[data-comp="tour"] .c-tour-row { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) auto; }
[data-comp="tour"] .c-tour-row .dim { color: var(--ink-3); font-size: 0.8rem; }
[data-comp="tour"] .c-tour-panel.is-in .c-tour-row { animation: cTourIn 240ms cubic-bezier(0.23, 1, 0.32, 1) both; }
[data-comp="tour"] .c-tour-panel.is-in .c-tour-row:nth-child(2) { animation-delay: 45ms; }
[data-comp="tour"] .c-tour-panel.is-in .c-tour-row:nth-child(3) { animation-delay: 90ms; }
[data-comp="tour"] .c-tour-panel.is-in .c-tour-row:nth-child(4) { animation-delay: 135ms; }
[data-comp="tour"] .c-tour-panel.is-in .c-tour-row:nth-child(5) { animation-delay: 180ms; }
@keyframes cTourIn { from { opacity: 0; transform: translateY(4px); } }
[data-comp="tour"] .c-tour-team { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.8rem; }
[data-comp="tour"] .c-tour-team .avatar { background: var(--c); box-shadow: 0 0 0 2px var(--sheet); }
[data-comp="tour"] .c-tour-team .avatar + .avatar { margin-left: -6px; }
[data-comp="tour"] .c-tour-team .dim { margin-left: 6px; color: var(--ink-3); }
[data-comp="tour"] .ui-actions .badge .ic { width: 12px; height: 12px; }
@media (hover: hover) and (pointer: fine) {
  [data-comp="tour"] .c-tour-tabs button[aria-selected="false"]:hover { border-color: var(--rule-2); color: var(--ink); }
}
@container (max-width: 560px) {
  [data-comp="tour"] .c-tour-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-comp="tour"] .c-tour-row { grid-template-columns: minmax(0, 1fr) auto; }
  [data-comp="tour"] .c-tour-row .dim { grid-column: 1; grid-row: 2; }
  [data-comp="tour"] .c-tour-row .badge { grid-row: 1 / span 2; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  [data-comp="tour"] .c-tour-panel.is-in .c-tour-row { animation: none; }
}
