/* ==========================================================================
   Components
   ========================================================================== */

/* ---- buttons ---- */
.btn {
  --_bg: var(--surface); --_fg: var(--text); --_bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  background: var(--_bg); color: var(--_fg); border: 1px solid var(--_bd);
  box-shadow: var(--shadow-sm);
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .08s var(--ease), box-shadow .15s var(--ease), opacity .15s;
  user-select: none; -webkit-tap-highlight-color: transparent; text-decoration: none;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn svg { flex-shrink: 0; }

.btn-primary { --_bg: var(--accent); --_fg: var(--on-accent); --_bd: transparent; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-success { --_bg: var(--success-solid); --_fg: #fff; --_bd: transparent; }
.btn-success:hover { background: color-mix(in srgb, var(--success-solid) 85%, #000); }
.btn-danger { --_bg: var(--danger-solid); --_fg: #fff; --_bd: transparent; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger-solid) 86%, #000); }
.btn-soft { --_bg: var(--accent-soft); --_fg: var(--accent-text); --_bd: transparent; box-shadow: none; }
.btn-soft:hover { background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 12%); }
.btn-ghost { --_bg: transparent; --_bd: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-outline-danger { --_fg: var(--danger); --_bd: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-outline-danger:hover { background: var(--danger-soft); }

.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); gap: 6px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 14px; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-block { width: 100%; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--_fg); border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn-primary.is-busy::after, .btn-success.is-busy::after, .btn-danger.is-busy::after { border-color: #fff; border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- forms ---- */
input:not([type='checkbox']):not([type='radio']):not([type='range']),
select, textarea {
  width: 100%; height: 42px; padding: 0 13px; font: inherit; font-size: 14.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s;
  appearance: none; -webkit-appearance: none;
}
textarea { height: auto; min-height: 84px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
select {
  padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238B8E9A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--border-strong) 60%, var(--text-3)); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--ring); outline: none; }
input:disabled, select:disabled, textarea:disabled { opacity: .6; cursor: not-allowed; background: var(--surface-2); }
input[type='date'], input[type='time'] { font-variant-numeric: tabular-nums; min-width: 0; }
input[type='checkbox'], input[type='radio'] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex-shrink: 0; }
input[type='range'] { width: 100%; accent-color: var(--accent); }
input.is-invalid, select.is-invalid { border-color: var(--danger-solid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger-solid) 22%, transparent); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.hint { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
.input-group { position: relative; }
.input-group > input { padding-right: 44px; }
.input-group > .btn-icon { position: absolute; right: 3px; top: 3px; width: 36px; height: 36px; }
.input-affix { position: relative; }
.input-affix > .affix { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; font-weight: 600; }
.input-affix > input { padding-left: 32px; }
.form-error {
  display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin-bottom: 14px;
  background: var(--danger-soft); color: var(--danger); border-radius: var(--r-sm); font-size: 13px; font-weight: 500;
}
.check { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 14px; cursor: pointer; border-radius: var(--r-sm); }
.check:hover { background: var(--surface-2); }

/* ---- cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow-sm); min-width: 0;
}
.card.flush { padding: 0; overflow: hidden; }
.card.tinted { background: var(--surface-2); box-shadow: none; }
.card.interactive { transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; cursor: pointer; }
.card.interactive:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card.attention { border-color: color-mix(in srgb, var(--warning-solid) 55%, var(--border)); background: linear-gradient(180deg, var(--warning-soft), var(--surface) 70%); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title { font-size: 15px; font-weight: 650; letter-spacing: -.005em; }
.card-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.card-pad-0 { padding: 0; }
.section-title { font-family: var(--font-display); font-size: 21px; font-weight: 500; margin: 34px 0 14px; display: flex; align-items: baseline; gap: 10px; }
.section-title small { font-family: var(--font-ui); font-size: 13px; color: var(--text-3); font-weight: 500; }

/* ---- stat tiles ---- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 12.5px; color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat-value { font-family: var(--font-display); font-size: 34px; font-weight: 500; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-value small { font-family: var(--font-ui); font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: 0; margin-left: 3px; }
.stat-foot { font-size: 12px; color: var(--text-3); }
.stat-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.stat-ico.moss { background: var(--success-soft); color: var(--success); }
.stat-ico.amber { background: var(--warning-soft); color: var(--warning); }
.stat-ico.rust { background: var(--danger-soft); color: var(--danger); }
.stat-ico.sky { background: var(--info-soft); color: var(--info); }

/* ---- badges / chips ---- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--text-2);
}
.badge .pip { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-success { background: var(--success-soft); color: var(--success); }
.b-warning { background: var(--warning-soft); color: var(--warning); }
.b-danger { background: var(--danger-soft); color: var(--danger); }
.b-info { background: var(--info-soft); color: var(--info); }
.b-accent { background: var(--accent-soft); color: var(--accent-text); }
.b-live .pip { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 99px;
  font-size: 13px; font-weight: 550; color: var(--text-2); background: var(--surface); border: 1px solid var(--border);
  transition: all .15s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-pressed='true'], .chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-count { opacity: .6; font-weight: 500; }

.status-chip {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 22px; padding: 0 9px; border-radius: 99px;
  background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 550; white-space: nowrap;
}
.status-chip span:last-child { overflow: hidden; text-overflow: ellipsis; }

/* ---- segmented control ---- */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border-radius: var(--r-md); }
.seg button {
  border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 600;
  color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; transition: all .15s var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed='true'], .seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---- avatars ---- */
.avatar {
  --size: 34px; width: var(--size); height: var(--size); border-radius: 50%; flex-shrink: 0;
  display: inline-grid; place-items: center; font-size: calc(var(--size) * .37); font-weight: 650; letter-spacing: .02em;
  background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: color-mix(in srgb, var(--c) 85%, var(--text));
  position: relative; user-select: none;
}
[data-theme='dark'] .avatar { background: color-mix(in srgb, var(--c) 24%, var(--surface)); color: color-mix(in srgb, var(--c) 55%, #fff); }
.avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar .dot { position: absolute; right: -1px; bottom: -1px; width: 28%; height: 28%; min-width: 9px; min-height: 9px; border-radius: 50%; border: 2px solid var(--surface); background: var(--text-3); }
.dot.working { background: var(--success-solid); } .dot.break { background: var(--warning-solid); } .dot.done { background: var(--info-solid); } .dot.none { background: var(--text-3); } .dot.leave { background: var(--info-solid); }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { border: 2px solid var(--surface); margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack .more { --c: var(--text-3); }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; margin: 0 -2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
  padding: 0 14px 10px 0; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tbl td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl.hover tbody tr:hover { background: var(--surface-2); }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl .person { display: flex; align-items: center; gap: 11px; min-width: 150px; }
.tbl.pad-x th:first-child, .tbl.pad-x td:first-child { padding-left: 22px; }
.tbl.pad-x th:last-child, .tbl.pad-x td:last-child { padding-right: 22px; }
.tbl.pad-x th { padding-top: 14px; background: var(--surface-2); padding-bottom: 12px; }

/* ---- progress ---- */
.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); border-radius: 99px; transition: width .5s var(--ease); }
.progress.moss > i { background: var(--success-solid); } .progress.amber > i { background: var(--warning-solid); } .progress.sky > i { background: var(--info-solid); }

/* ---- empty states ---- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 36px 20px; color: var(--text-2); }
.empty .empty-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); margin-bottom: 6px; }
.empty h4 { font-family: var(--font-ui); font-size: 15px; font-weight: 650; color: var(--text); }
.empty p { font-size: 13.5px; max-width: 360px; }
.empty .btn { margin-top: 10px; }

/* ---- skeleton ---- */
.skel { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- alerts ---- */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: var(--r-md); font-size: 13.5px; font-weight: 500; margin-bottom: 16px; background: var(--info-soft); color: var(--info); }
.alert svg { margin-top: 1px; flex-shrink: 0; }
.alert.warning { background: var(--warning-soft); color: var(--warning); }
.alert.danger { background: var(--danger-soft); color: var(--danger); }
.alert.success { background: var(--success-soft); color: var(--success); }
.alert .btn { margin-left: auto; }

/* ---- dialog (native <dialog>, bottom-sheet on phones) ---- */
dialog.dlg {
  padding: 0; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); color: var(--text);
  width: min(520px, calc(100vw - 24px)); max-height: min(92vh, 900px); box-shadow: var(--shadow-lg);
  overflow: hidden; margin: auto; animation: dlg-in .22s var(--ease);
}
dialog.dlg.sm { width: min(420px, calc(100vw - 24px)); }
dialog.dlg.lg { width: min(720px, calc(100vw - 24px)); }
dialog.dlg.xl { width: min(880px, calc(100vw - 24px)); }
dialog.dlg::backdrop { background: var(--overlay); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fade .2s; }
dialog.dlg[open] { display: flex; flex-direction: column; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 4px; }
.dlg-title { font-family: var(--font-display); font-size: 23px; font-weight: 500; letter-spacing: -.01em; }
.dlg-sub { font-size: 13.5px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.dlg-body { padding: 18px 24px 8px; overflow-y: auto; overscroll-behavior: contain; }
.dlg-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 24px 22px; border-top: 0; flex-wrap: wrap; }
.dlg-foot .btn { min-width: 96px; }
.dlg-foot.split { justify-content: space-between; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }

/* ---- popover menus ---- */
.menu {
  position: fixed; z-index: 100; min-width: 200px; max-width: 320px; padding: 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg); animation: menu-in .14s var(--ease);
  max-height: min(70vh, 520px); overflow-y: auto;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; background: none; border-radius: 8px;
  font-size: 13.5px; font-weight: 550; color: var(--text); text-align: left;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-3); box-shadow: none; }
.menu-item svg { color: var(--text-3); }
.menu-item.danger { color: var(--danger); } .menu-item.danger svg { color: var(--danger); }
.menu-item:disabled { opacity: .45; pointer-events: none; }
.menu-sep { height: 1px; background: var(--border); margin: 5px 4px; }
.menu-head { padding: 8px 11px 6px; }

/* ---- toasts ---- */
#toasts { position: fixed; z-index: 200; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(440px, calc(100vw - 24px)); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 14px 11px 12px; width: 100%;
  background: var(--ink); color: var(--text-inverse); border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 550;
  animation: toast-in .28s var(--ease); border: 1px solid rgba(255, 255, 255, .06);
}
[data-theme='dark'] .toast { background: var(--surface-3); color: var(--text); border-color: var(--border-strong); }
.toast.out { animation: toast-out .2s forwards; }
.toast .t-ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--success-solid); color: #fff; }
.toast.error .t-ico { background: var(--danger-solid); }
.toast.info .t-ico { background: var(--info-solid); }
.toast .t-undo { margin-left: auto; font-weight: 700; color: var(--hero-glow); background: none; border: 0; padding: 4px 6px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---- tooltip (data-tip) ---- */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; z-index: 60; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--text-inverse); font-size: 12px; font-weight: 550; padding: 5px 9px; border-radius: 7px; white-space: nowrap; pointer-events: none;
}
[data-theme='dark'] [data-tip]:hover::after { background: var(--surface-3); color: var(--text); border: 1px solid var(--border-strong); }

/* dialog forms must be flex columns so the body scrolls while head/foot stay put */
dialog.dlg > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
dialog.dlg > form .dlg-foot { position: sticky; bottom: 0; background: var(--surface); }
@media (max-width: 720px) {
  dialog.dlg, dialog.dlg.sm, dialog.dlg.lg, dialog.dlg.xl {
    width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92dvh; border-bottom: 0;
    animation: sheet-in .28s var(--ease); padding-bottom: env(safe-area-inset-bottom);
  }
  dialog.palette { margin: 8vh auto auto; border-radius: 20px; width: calc(100vw - 20px); max-width: none; }
  .dlg-head { padding: 20px 20px 2px; } .dlg-body { padding: 16px 20px 6px; } .dlg-foot { padding: 12px 20px 20px; }
  .dlg-foot .btn { flex: 1; }
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Tables that collapse into labelled cards on phones */
@media (max-width: 720px) {
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; max-width: 100%; box-sizing: border-box; }
  .tbl.cards tr { padding: 14px 18px; border-bottom: 1px solid var(--border); }
  .tbl.cards tr:last-child { border-bottom: 0; }
  .tbl.cards td, .tbl.cards.pad-x td:first-child, .tbl.cards.pad-x td:last-child { border: 0; padding: 4px 0; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: right; }
  .tbl.cards td[data-label]::before { content: attr(data-label); color: var(--text-3); font-size: 12px; text-align: left; flex: none; }
  .tbl.cards td:first-child { justify-content: flex-start; text-align: left; padding-bottom: 8px; }
  .tbl.cards td:first-child::before { display: none; }
  .tbl.cards td.nolabel { justify-content: flex-end; }
  .tbl.cards .person { min-width: 0; }
  .tbl.cards .person > div { min-width: 0; }
  .table-wrap { overflow-x: visible; }
}

/* ---- profile picture row (profile dialog) ---- */
.photo-row { display: flex; align-items: center; gap: 16px; padding: 4px 0 14px; }
.photo-row .avatar { --size: 72px; }

/* ---- AI helpers ---- */
.ai-btn { color: var(--accent); }
.ai-draft { align-items: center; gap: 12px; padding: 8px 12px; margin: 0 0 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.sug { padding: 14px 16px; }
.sug-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.sug-row .hrs { min-width: 44px; text-align: right; }

/* ---- backup ---- */
.bk-place { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.bk-steps { margin: 6px 0 10px; }
.bk-steps ol { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 6px; }
.bk-uri { display: block; margin-top: 4px; padding: 6px 8px; border-radius: 6px; background: var(--surface); word-break: break-all; user-select: all; }
.bk-list { display: grid; }
.bk-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }

/* ---- project tasks ---- */
.brief-work { grid-column: 1 / -1; display: grid; gap: 18px; margin-top: 4px; }
.tk-wrap { padding-top: 14px; border-top: 1px solid var(--border); }
.tk-list { display: grid; gap: 2px; }
.tk { border-radius: 10px; padding: 2px 0; }
.tk-row { display: flex; align-items: flex-start; gap: 10px; padding: 7px 4px; }
.tk-sub { margin-left: 28px; padding-top: 3px; padding-bottom: 3px; }
.tk-box { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--success-solid, #2f7d4f); flex: none; cursor: pointer; }
.tk-box:disabled { cursor: default; opacity: .6; }
.tk-title { font-size: 14px; }
.is-done > .tk-row .tk-title, .tk-row.is-done .tk-title { text-decoration: line-through; color: var(--text-3, var(--muted)); }
.tk-late { color: var(--danger-solid, #b3261e); font-weight: 600; }
.tk-edit input { flex: 1; min-width: 0; }
.tk-add { margin-top: 10px; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; }
.tk-add textarea { width: 100%; margin-top: 6px; }
.tk-confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; margin: 2px 0 4px 28px; border-radius: 8px; background: color-mix(in srgb, var(--danger-solid, #b3261e) 8%, var(--surface)); }
.rev-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; background: var(--surface-3); font-size: 12.5px; }
.rev-chip.rework { background: color-mix(in srgb, var(--danger-solid, #b3261e) 12%, var(--surface)); }
.rev-log { display: grid; margin-top: 4px; }
.rev-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
