/* ==========================================================================
   Claudinha — design system + app styles (one file, no build step).
   Tokens follow the Claudinho suite BRAND.md (dark chrome, green accent per
   DECISIONS D-007). Chart marks use separate --viz-* tokens validated for
   contrast/CVD (the bright brand green is too light for dark-mode marks).
   Layouts: ≥1100 sidebar · 760–1099 icon rail · <760 phone (tab bar + FAB).
   ========================================================================== */

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1115;
  --bg-sidebar: #12151b;
  --glow: rgba(34, 197, 94, 0.07);
  --panel: #171a21;
  --panel-2: #1d212a;
  --panel-3: #252a35;
  --hover: rgba(255, 255, 255, 0.04);
  --active: rgba(255, 255, 255, 0.075);
  --border: #262b36;
  --border-strong: #353c4b;
  --text: #e6e8ef;
  --text-2: #b6bcc9;
  --muted: #8a93a6;
  --muted-2: #697183;

  --accent: #4ade80;
  --accent-strong: #22c55e;
  --accent-ink: #052e16;
  --accent-text: #4ade80;
  --accent-soft: rgba(74, 222, 128, 0.12);

  --good: #4ade80;
  --warn: #facc15;
  --bad: #f87171;
  --info: #60a5fa;
  --warn-soft: rgba(250, 204, 21, 0.11);
  --bad-soft: rgba(248, 113, 113, 0.12);
  --info-soft: rgba(96, 165, 250, 0.12);
  --warn-text: #fde047;
  --bad-text: #fca5a5;
  --info-text: #93c5fd;

  --p4: #ef4444;   /* máxima (filled)  */
  --p3: #f87171;   /* prioridade alta  */
  --p2: #fbbf24;   /* média            */
  --p1: #60a5fa;   /* baixa            */

  /* Chart / load marks (validated: see DECISIONS D-009). */
  --viz-task: #16a34a;
  --viz-event: #3b82f6;
  --viz-bar: #16a34a;
  --viz-bar-hi: #22c55e;
  --viz-grid: #262b36;
  --event-text: #bfdbfe;
  --sent-positive: #16a34a;      /* diverging: + · neutral · constructive · − */
  --sent-neutral: #6b7280;
  --sent-constructive: #d97706;
  --sent-negative: #be123c;

  --toast-bg: #2a303c;
  --toast-fg: #f1f3f7;
  --backdrop: rgba(4, 6, 10, 0.62);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5), 0 6px 18px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-sidebar: #eff1f4;
  --glow: rgba(22, 163, 74, 0.06);
  --panel: #ffffff;
  --panel-2: #f4f5f7;
  --panel-3: #e9ecf0;
  --hover: rgba(15, 23, 42, 0.035);
  --active: rgba(15, 23, 42, 0.065);
  --border: #e3e6eb;
  --border-strong: #cfd4dc;
  --text: #111827;
  --text-2: #374151;
  --muted: #6b7280;
  --muted-2: #9aa1ad;

  --accent: #16a34a;
  --accent-strong: #15803d;
  --accent-ink: #ffffff;
  --accent-text: #15803d;
  --accent-soft: rgba(22, 163, 74, 0.1);

  --good: #16a34a;
  --warn: #ca8a04;
  --bad: #dc2626;
  --info: #2563eb;
  --warn-soft: rgba(202, 138, 4, 0.1);
  --bad-soft: rgba(220, 38, 38, 0.08);
  --info-soft: rgba(37, 99, 235, 0.08);
  --warn-text: #a16207;
  --bad-text: #b91c1c;
  --info-text: #1d4ed8;

  --p4: #b91c1c;
  --p3: #dc2626;
  --p2: #d97706;
  --p1: #2563eb;

  --viz-task: #16a34a;
  --viz-event: #2563eb;
  --viz-bar: #16a34a;
  --viz-bar-hi: #15803d;
  --viz-grid: #e5e7eb;
  --event-text: #1e3a8a;
  --sent-positive: #16a34a;
  --sent-neutral: #6b7280;
  --sent-constructive: #c26a06;
  --sent-negative: #be123c;

  --toast-bg: #1f2430;
  --toast-fg: #ffffff;
  --backdrop: rgba(15, 23, 42, 0.35);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16), 0 6px 18px rgba(15, 23, 42, 0.08);
}

:root {
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sidebar-w: 248px;
  --tabbar-h: 60px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --surface: var(--bg);
  --event-soft: color-mix(in srgb, var(--viz-event) 16%, transparent);
  --task-soft: color-mix(in srgb, var(--viz-task) 18%, transparent);
}

/* ---- label / avatar hues (8, readable on both themes) ---- */
.hue-0 { --h-fg: #93c5fd; --h-bg: rgba(59, 130, 246, 0.17); }
.hue-1 { --h-fg: #c4b5fd; --h-bg: rgba(139, 92, 246, 0.19); }
.hue-2 { --h-fg: #f9a8d4; --h-bg: rgba(236, 72, 153, 0.17); }
.hue-3 { --h-fg: #fdba74; --h-bg: rgba(249, 115, 22, 0.17); }
.hue-4 { --h-fg: #5eead4; --h-bg: rgba(20, 184, 166, 0.17); }
.hue-5 { --h-fg: #bef264; --h-bg: rgba(132, 204, 22, 0.16); }
.hue-6 { --h-fg: #67e8f9; --h-bg: rgba(6, 182, 212, 0.16); }
.hue-7 { --h-fg: #fcd34d; --h-bg: rgba(245, 158, 11, 0.16); }
[data-theme="light"] .hue-0 { --h-fg: #1d4ed8; --h-bg: #dbeafe; }
[data-theme="light"] .hue-1 { --h-fg: #6d28d9; --h-bg: #ede9fe; }
[data-theme="light"] .hue-2 { --h-fg: #be185d; --h-bg: #fce7f3; }
[data-theme="light"] .hue-3 { --h-fg: #c2410c; --h-bg: #ffedd5; }
[data-theme="light"] .hue-4 { --h-fg: #0f766e; --h-bg: #ccfbf1; }
[data-theme="light"] .hue-5 { --h-fg: #4d7c0f; --h-bg: #ecfccb; }
[data-theme="light"] .hue-6 { --h-fg: #0e7490; --h-bg: #cffafe; }
[data-theme="light"] .hue-7 { --h-fg: #b45309; --h-bg: #fef3c7; }

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: radial-gradient(1100px 520px at 12% -12%, var(--glow), transparent 60%) fixed, var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible { outline: none; }
.i { display: block; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.spacer { flex: 1; }
.is-overdue { color: var(--bad-text) !important; }
.is-warn { color: var(--warn-text); }
.prio-fg-4 { color: var(--p4) !important; }
.prio-fg-3 { color: var(--p3) !important; }
.prio-fg-2 { color: var(--p2) !important; }
.prio-fg-1 { color: var(--p1) !important; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 6px 0 10px; }
.hint .i { display: inline-block; vertical-align: -2px; }
.hint--keys { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
code {
  font-family: var(--mono); font-size: 0.88em; padding: 1px 5px; border-radius: 5px;
  background: var(--panel-2); border: 1px solid var(--border);
}
kbd {
  display: inline-block; font-family: var(--font); font-size: 10.5px; font-weight: 650; line-height: 1.5;
  padding: 0 5px; border-radius: 5px; border: 1px solid var(--border-strong); border-bottom-width: 2px;
  background: var(--panel-2); color: var(--muted); white-space: nowrap;
}
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes pulse { 50% { opacity: 0.55; transform: scale(0.94); } }
@keyframes pop { 40% { transform: scale(1.28); } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes toastbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.spin { animation: spin 0.9s linear infinite; }

.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot__glyph { width: 48px; height: 48px; animation: pulse 1.2s ease-in-out infinite; }

.skel {
  background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%);
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
  border-radius: var(--radius); border-color: transparent !important;
}
.skel--title { height: 32px; width: 240px; border-radius: 8px; }
.skel--block { height: 120px; margin-bottom: 12px; }
.skel--chart { height: 260px; margin-bottom: 16px; }
.stat.skel { min-height: 104px; }

/* ==========================================================================
   App frame: sidebar / main / tab bar / FAB
   ========================================================================== */

.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100dvh; }
.main {
  width: 100%; max-width: 1180px; justify-self: center;
  padding: 28px clamp(20px, 3.5vw, 48px) 96px; outline: none;
  animation: fade-in 0.18s ease;
}
html[data-view="week"] .main,
html[data-view="team"] .main,
html[data-view="tasks"] .main { max-width: 1600px; }

.sidebar {
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
  background: var(--bg-sidebar); border-right: 1px solid var(--border);
}
.sb { display: flex; flex-direction: column; gap: 3px; min-height: 100%; padding: 16px 12px 14px; }
.brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 16px; text-decoration: none; color: var(--text); }
.brand-glyph { width: 24px; height: 24px; flex: none; }
.brand__name { font-size: 15px; font-weight: 700; }
.brand__sep, .brand__suffix { font-size: 11px; font-weight: 500; color: var(--muted); }
.brand:hover .brand__name { color: var(--accent-text); }
.sb__new, .sb__search {
  display: flex; align-items: center; gap: 9px; width: 100%; height: 38px; padding: 0 12px;
  border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; text-align: left;
}
.sb__new { border: 0; background: var(--accent); color: var(--accent-ink); }
.sb__new:hover { background: var(--accent-strong); }
.sb__new kbd, .sb__search kbd { margin-left: auto; }
.sb__new kbd { background: rgba(0, 0, 0, 0.14); color: inherit; border-color: transparent; }
.sb__search { margin: 4px 0 12px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); font-weight: 500; }
.sb__search:hover { border-color: var(--border-strong); color: var(--text); }
.sb__nav { display: flex; flex-direction: column; gap: 2px; }
.sb__item {
  display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px;
  border-radius: var(--radius-sm); color: var(--text-2); text-decoration: none; font-weight: 500;
}
.sb__item:hover { background: var(--hover); color: var(--text); }
.sb__item.is-active { background: var(--active); color: var(--text); }
.sb__item.is-active .i { color: var(--accent-text); }
.sb__item .badge { margin-left: auto; }
.sb__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.sb__sync {
  display: flex; align-items: center; gap: 7px; padding: 5px 8px; border: 0; border-radius: 7px;
  background: none; color: var(--muted); font-size: 12px; text-align: left;
}
.sb__sync:hover { background: var(--hover); color: var(--text-2); }
.sb__sync.is-ok .i { color: var(--accent-text); }
.sb__sync.is-offline { color: var(--warn-text); }
.sb__sync.is-loading .i { animation: spin 1s linear infinite; }
.sb__tools { display: flex; gap: 2px; }

.tabbar { display: none; }
.fab { display: none; }

/* ==========================================================================
   Controls
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  font-size: 13.5px; font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: background 0.12s, border-color 0.12s, transform 0.06s;
}
.btn:hover { background: var(--panel-3); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--hover); }
.btn--ghost.is-on { background: var(--active); border-color: var(--border-strong); }
.btn--danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn--danger-text { color: var(--bad-text); border-color: transparent; }
.btn--danger-text:hover { background: var(--bad-soft); border-color: transparent; }
.btn--sm { height: 32px; padding: 0 11px; font-size: 12.5px; gap: 6px; }
.btn--block { width: 100%; height: 42px; font-size: 15px; }
.btn .count { background: var(--panel-3); }

.icon-btn {
  display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted);
  text-decoration: none; font-size: 16px; transition: background 0.12s, color 0.12s;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.is-active { background: var(--active); color: var(--accent-text); }
.icon-btn:disabled { opacity: 0.35; pointer-events: none; }
.icon-btn--sm { width: 26px; height: 26px; }

.btn-group, .seg {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
}
.btn-group .btn { border: 0; height: 30px; }
.seg button {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.seg button:hover { color: var(--text); }
.seg button.is-on { background: var(--panel-3); color: var(--text); box-shadow: var(--shadow-sm); }
.seg--sm button { height: 28px; padding: 0 10px; font-size: 12px; }

.link-btn { background: none; border: 0; padding: 4px; color: var(--accent-text); font-size: 12.5px; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }

.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px;
  border-radius: 9px; background: var(--panel-3); color: var(--text-2);
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.badge--accent { background: var(--accent-soft); color: var(--accent-text); }
.badge--bad { background: var(--bad-soft); color: var(--bad-text); }
.badge--warn { background: var(--warn-soft); color: var(--warn-text); }
.badge--muted { background: transparent; color: var(--muted); }
.count {
  padding: 1px 7px; border-radius: 10px; background: var(--panel-2); color: var(--muted);
  font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums;
}

.chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 15px; background: var(--panel);
  color: var(--text-2); font-size: 12.5px; font-weight: 550; white-space: nowrap;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.is-on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent-text); }
.chip__count { font-size: 11px; font-weight: 700; opacity: 0.8; font-variant-numeric: tabular-nums; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px;
  border: 0; border-radius: 12px; background: var(--panel-2); color: var(--text-2);
  font-size: 12px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pill--event { background: var(--event-soft); color: var(--event-text); }
.pill--inbox { background: var(--accent-soft); color: var(--accent-text); }
.pill--backlog { background: var(--panel-3); color: var(--muted); }
.pill--scheduled { background: var(--info-soft); color: var(--info-text); }
.pill--delegated { background: var(--warn-soft); color: var(--warn-text); }
.pill--done { background: var(--accent-soft); color: var(--accent-text); }

.switch {
  position: relative; flex: none; width: 32px; height: 18px; border-radius: 9px;
  background: var(--panel-3); border: 1px solid var(--border-strong); transition: background 0.15s, border-color 0.15s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--muted); transition: transform 0.15s var(--ease), background 0.15s;
}
.switch.is-on { background: var(--accent-strong); border-color: var(--accent-strong); }
.switch.is-on::after { transform: translateX(14px); background: #fff; }
.toggle { display: inline-flex; align-items: center; gap: 8px; padding: 4px; border: 0; background: none; color: var(--text-2); font-size: 13px; }

.search {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); color: var(--muted);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.search--sm { height: 34px; }

.input {
  width: 220px; min-width: 0; height: 36px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
}
.input:focus, .field input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field input {
  height: 42px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font-size: 15px;
}
.check-line { display: flex; align-items: center; gap: 8px; margin: 2px 0 16px; font-size: 13px; color: var(--text-2); }
.check-line input { width: 16px; height: 16px; accent-color: var(--accent-strong); }

/* ==========================================================================
   Page scaffolding
   ========================================================================== */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head__text { min-width: 0; }
.page-head__eyebrow { margin: 0 0 4px; font-size: 12.5px; font-weight: 550; color: var(--muted); }
.page-head__eyebrow::first-letter { text-transform: uppercase; }
.page-head__title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.page-head--hero .page-head__title { font-size: 30px; }
.page-head__sub { margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.page-head__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); --surface: var(--panel); }

.section { margin-bottom: 22px; }
.section__head { display: flex; align-items: center; gap: 8px; min-height: 32px; margin-bottom: 4px; }
.section__head h2 { margin: 0; font-size: 13px; font-weight: 650; color: var(--text-2); letter-spacing: 0.01em; }
.section__toggle { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 0; border: 0; border-radius: 6px; background: none; }
.section__chev { color: var(--muted-2); transition: transform 0.15s; }
.section.is-collapsed .section__chev { transform: rotate(-90deg); }
.section--bad .section__head h2 { color: var(--bad-text); }
.section__actions { display: flex; gap: 6px; margin-left: auto; }
.subsection { margin-bottom: 22px; }
.subsection h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 650; color: var(--text-2); }

.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 16px; background: var(--panel); border: 1px solid var(--border); color: var(--accent-text);
}
.empty h3 { margin: 0 0 6px; font-size: 16px; font-weight: 650; color: var(--text); }
.empty p { max-width: 400px; margin: 0 auto; font-size: 13.5px; line-height: 1.5; }
.empty__actions { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.empty--inline { padding: 22px 12px 14px; }

/* ---- stat tiles, load bar, ring ---- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px; color: inherit; text-decoration: none; }
.stat--link:hover { border-color: var(--border-strong); }
.stat__label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; color: var(--muted); }
.stat__value { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.stat__value--sm { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat__of { font-size: 13px; font-weight: 550; color: var(--muted); }
.stat__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.stat__foot .i { display: inline-block; vertical-align: -2px; }
.stat__status { margin-left: auto; }
.load-card--over .stat__status { color: var(--bad-text); font-weight: 600; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.delta.is-up { color: var(--good); }
.delta.is-down { color: var(--bad-text); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); animation: pulse 1.6s infinite; }

.loadbar { position: relative; display: flex; height: 8px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.loadbar i { display: block; height: 100%; box-shadow: inset -2px 0 0 var(--surface); }
.loadbar__task { background: var(--viz-task); }
.loadbar__event { background: var(--viz-event); }
.loadbar__cap { position: absolute; top: 0; bottom: 0; width: 2px !important; background: var(--text) !important; box-shadow: none !important; }
.loadbar--thin { height: 4px; border-radius: 2px; }
.loadbar--thin i { box-shadow: inset -1px 0 0 var(--surface); }
.key { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; vertical-align: 0; }
.key--task { background: var(--viz-task); }
.key--event { background: var(--viz-event); }

.ring { position: relative; width: 56px; height: 56px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--panel-3); stroke-width: 5; }
.ring__fill { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 0.5s var(--ease); }
.ring__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ring__label b { color: var(--text); font-size: 14px; }

.dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.load-empty { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--muted-2); }
.load-light { background: color-mix(in srgb, var(--good) 55%, transparent) !important; }
.load-normal { background: var(--good) !important; }
.load-full { background: var(--warn) !important; }
.load-over { background: var(--bad) !important; }
.load-bg-empty { background: transparent; }
.load-bg-light { background: color-mix(in srgb, var(--good) 55%, transparent); }
.load-bg-normal { background: var(--good); }
.load-bg-full { background: var(--warn); }
.load-bg-over { background: var(--bad); }
.load-t-full { color: var(--warn-text) !important; }
.load-t-over { color: var(--bad-text) !important; font-weight: 700; }

/* ---- nudges ---- */
.nudges { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.nudge { display: flex; align-items: center; gap: 10px; padding: 9px 8px 9px 12px; border-radius: var(--radius-sm); background: var(--info-soft); font-size: 13px; }
.nudge > .i { color: var(--info-text); }
.nudge--warn { background: var(--warn-soft); }
.nudge--warn > .i { color: var(--warn-text); }
.nudge--bad { background: var(--bad-soft); }
.nudge--bad > .i { color: var(--bad-text); }
.nudge > span { flex: 1; }
.nudge__action { padding: 4px 10px; border-radius: 7px; background: var(--active); color: var(--text); font-weight: 650; font-size: 12.5px; text-decoration: none; white-space: nowrap; }
.nudge__action:hover { background: var(--panel-3); }

/* ---- today layout ---- */
.today-cols > .section { grid-column: 1; }
@media (min-width: 1280px) {
  .today-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 36px; align-items: start; }
  .today-cols > [data-key="sec-today-agenda"] { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 20px; }
}

/* ==========================================================================
   Task rows
   ========================================================================== */

.tasks { display: flex; flex-direction: column; }
.task { position: relative; border-radius: var(--radius-sm); }
.task__row {
  position: relative; display: flex; align-items: flex-start; gap: 11px;
  padding: 9px 8px 9px 10px; border-radius: var(--radius-sm); touch-action: pan-y;
  transition: background 0.12s;
}
.task:not(:last-child) .task__row::after {
  content: ""; position: absolute; left: 41px; right: 8px; bottom: 0; height: 1px; background: var(--border); opacity: 0.55;
}
.task:hover .task__row { background: var(--hover); }
.task.is-focused .task__row { background: var(--hover); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.task.is-pending { opacity: 0.7; }
.task__main { flex: 1; min-width: 0; cursor: pointer; }
.task__title { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.task.is-done .task__title, .task.is-completing .task__title { color: var(--muted); text-decoration: line-through; }
.task.is-completing { opacity: 0.55; transition: opacity 0.3s 0.1s; }
.task__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 10px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.meta { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.meta--date.is-today { color: var(--accent-text); }
.meta--stale { color: var(--warn-text); }
.task__actions { display: flex; gap: 1px; opacity: 0; transition: opacity 0.12s; }
.task:hover .task__actions, .task.is-focused .task__actions { opacity: 1; }
.task__actions .icon-btn { width: 28px; height: 28px; }

.check {
  display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-top: 1px; padding: 0;
  border: 1.6px solid var(--muted-2); border-radius: 50%; background: transparent; color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.check .i { stroke-width: 3; }
.check:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.check.prio-4 { border-color: var(--p4); border-width: 2.2px; background: color-mix(in srgb, var(--p4) 28%, transparent); }
.check.prio-3 { border-color: var(--p3); background: color-mix(in srgb, var(--p3) 10%, transparent); }
.check.prio-2 { border-color: var(--p2); background: color-mix(in srgb, var(--p2) 10%, transparent); }
.check.prio-1 { border-color: var(--p1); background: color-mix(in srgb, var(--p1) 10%, transparent); }
.task.is-done .check, .task.is-completing .check, .check.is-done, .editor.is-done .check {
  border-color: var(--accent); background: var(--accent); color: var(--accent-ink);
}
.task.is-completing .check { animation: pop 0.35s var(--ease); }
.check--lg { width: 24px; height: 24px; margin-top: 3px; }
.check--sm { width: 16px; height: 16px; }
.check--xs { width: 14px; height: 14px; border-width: 1.5px; }

.task__select {
  display: none; place-items: center; flex: none; width: 18px; height: 18px; margin-top: 2px; padding: 0;
  border: 1.6px solid var(--border-strong); border-radius: 5px; background: transparent; color: transparent;
}
.has-select .task__select { display: grid; opacity: 0; }
.has-select .task:hover .task__select, .is-selecting .task__select { opacity: 1; }
.has-select .task:not(:last-child) .task__row::after { left: 70px; }
@media (hover: none) {
  .has-select:not(.is-selecting) .task__select { display: none; }
  .has-select:not(.is-selecting) .task:not(:last-child) .task__row::after { left: 42px; }
}
.task.is-selected .task__select { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.task.is-selected .task__row { background: var(--accent-soft); }

.task__swipe {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; opacity: 0;
}
.task__swipe span { display: flex; align-items: center; gap: 8px; transition: transform 0.15s; }
.task.is-swiping .task__swipe { opacity: 1; }
.task.is-swiping .task__row { background: var(--surface); }
.task.swipe-right .task__swipe { background: var(--accent-strong); color: var(--accent-ink); }
.task.swipe-left .task__swipe { background: var(--info); color: #fff; }
.task.swipe-right .task__swipe-date, .task.swipe-left .task__swipe-done { visibility: hidden; }
.task.swipe-armed .task__swipe span { transform: scale(1.1); }

.label {
  display: inline-flex; align-items: center; gap: 1px; padding: 1px 7px 1px 5px; border-radius: 10px;
  background: var(--h-bg); color: var(--h-fg); font-size: 11px; font-weight: 600; white-space: nowrap;
}
.label .i { opacity: 0.7; }
.swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--h-fg); flex: none; }
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--h-bg); color: var(--h-fg); font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
}
.avatar--xs { width: 18px; height: 18px; font-size: 8px; }
.avatar--lg { width: 38px; height: 38px; font-size: 13px; }
.avatar--xl { width: 52px; height: 52px; font-size: 17px; }
.avatar--me { background: var(--panel-3); color: var(--muted); }

/* ---- agenda timeline ---- */
.allday { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.timeline { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tl { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: start; }
.tl__time { display: flex; flex-direction: column; padding-top: 9px; font-size: 12px; font-weight: 650; line-height: 1.25; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tl__time small { font-size: 11px; font-weight: 500; color: var(--muted-2); }
.tl__card {
  display: flex; flex-direction: column; gap: 1px; width: 100%; padding: 8px 12px; text-align: left;
  border: 0; border-left: 3px solid var(--viz-event); border-radius: var(--radius-sm);
  background: var(--event-soft); color: var(--text);
}
.tl__card:hover { background: color-mix(in srgb, var(--viz-event) 24%, transparent); }
.tl__title { font-size: 14px; font-weight: 600; }
.tl__meta { font-size: 12px; color: var(--muted); }
.tl.is-past { opacity: 0.5; }
.tl.is-live .tl__card { box-shadow: 0 0 0 1.5px var(--viz-event); }
.live { color: var(--accent-text); }
.tl--task .task__row { padding-left: 6px; }
.tl--task .task__row::after { display: none; }
.tl-now { display: flex; align-items: center; gap: 8px; margin: 2px 0; font-size: 11px; font-weight: 700; color: var(--bad); font-variant-numeric: tabular-nums; }
.tl-now span { width: 48px; }
.tl-now::after { content: ""; flex: 1; height: 2px; border-radius: 1px; background: var(--bad); }

/* ==========================================================================
   Quick add
   ========================================================================== */

.qa-slot { margin: 8px 0 4px; }
.qa { position: relative; }
.qa__field {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 12px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: transparent;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.qa__field:hover { border-color: var(--muted-2); }
.qa__field:focus-within, .qa.has-text .qa__field {
  border-style: solid; border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3px var(--accent-soft);
}
.qa__icon { display: grid; color: var(--accent-text); }
.qa__wrap { position: relative; flex: 1; min-width: 0; height: 100%; }
.qa__input, .qa__mirror {
  position: absolute; inset: 0; margin: 0; padding: 0; border: 0;
  font: inherit; font-size: 14px; line-height: 40px; letter-spacing: normal; white-space: pre;
}
.qa__input { width: 100%; background: transparent; outline: 0; color: var(--text); caret-color: var(--text); }
.qa.has-text .qa__input { color: transparent; }
.qa__input::placeholder { color: var(--muted); }
.qa__mirror { overflow: hidden; color: var(--text); pointer-events: none; }
.tok { border-radius: 3px; background: var(--accent-soft); color: var(--accent-text); box-shadow: 0 0 0 2px var(--accent-soft); }
.tok--label { background: rgba(139, 92, 246, 0.18); color: #c4b5fd; box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.18); }
.tok--assignee { background: rgba(249, 115, 22, 0.17); color: #fdba74; box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.17); }
.tok--priority { background: var(--bad-soft); color: var(--bad-text); box-shadow: 0 0 0 2px var(--bad-soft); }
.tok--duration { background: var(--info-soft); color: var(--info-text); box-shadow: 0 0 0 2px var(--info-soft); }
[data-theme="light"] .tok--label { color: #6d28d9; }
[data-theme="light"] .tok--assignee { color: #c2410c; }
.qa__submit {
  display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted-2); opacity: 0; transition: opacity 0.12s;
}
.qa.has-text .qa__submit { opacity: 1; background: var(--accent); color: var(--accent-ink); }
.qa__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qa__chips:empty { display: none; }
.qa-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 6px 0 9px;
  border: 1px solid var(--border); border-radius: 13px; background: var(--panel-2);
  color: var(--text-2); font-size: 12px; font-weight: 600;
}
.qa-chip__x { opacity: 0.45; }
.qa-chip:hover { border-color: color-mix(in srgb, var(--bad) 60%, transparent); }
.qa-chip:hover .qa-chip__x { opacity: 1; color: var(--bad-text); }
.qa-chip.is-muted { border-style: dashed; background: transparent; color: var(--muted); }
.qa__suggest {
  position: absolute; left: 0; top: 46px; z-index: 30; min-width: 240px; padding: 4px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--panel-2); box-shadow: var(--shadow);
}
.qa__sug { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-radius: 6px; background: none; color: var(--text); font-size: 13.5px; text-align: left; }
.qa__sug.is-active, .qa__sug:hover { background: var(--active); }
.qa.shake { animation: shake 0.3s; }

/* ==========================================================================
   Inbox (triage)
   ========================================================================== */

.triage-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.triage {
  padding: 14px 14px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); --surface: var(--panel);
  transition: opacity 0.2s, transform 0.2s var(--ease), border-color 0.12s, box-shadow 0.12s;
}
.triage.is-focused { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.triage.is-leaving { opacity: 0; transform: translateX(40px) scale(0.98); }
.triage__head { display: flex; align-items: flex-start; gap: 10px; }
.triage__main { flex: 1; min-width: 0; cursor: pointer; }
.triage__title { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.triage__notes { margin: 6px 0 0; font-size: 13px; color: var(--muted); white-space: pre-wrap; }
.triage__row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-left: 31px; }
.triage__label { width: 62px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.triage__dates { display: flex; flex-wrap: wrap; gap: 6px; }
.tri-date {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 78px;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2);
  color: var(--text); font-size: 13px; font-weight: 600; text-align: left;
}
.tri-date small { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--muted); }
.tri-date:hover { border-color: var(--accent); background: var(--accent-soft); }
.tri-date--pick { flex-direction: row; align-items: center; gap: 6px; color: var(--text-2); }
.tri-kbd { position: absolute; top: -8px; right: -6px; display: none; }
.triage.is-focused .tri-kbd { display: inline-block; }

/* ==========================================================================
   Semana
   ========================================================================== */

html[data-view="week"] .main { display: flex; flex-direction: column; height: 100dvh; padding-bottom: 20px; overflow: hidden; }
html[data-view="week"] .page-head { margin-bottom: 14px; }
.week { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.week.has-tray { grid-template-columns: 236px minmax(0, 1fr); }

.tray { min-height: 0; overflow-y: auto; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); --surface: var(--panel); }
.tray.is-drop { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.tray__head { display: flex; flex-direction: column; gap: 1px; margin-bottom: 4px; }
.tray__head span { font-size: 12px; color: var(--muted); }
.tray__label { display: flex; justify-content: space-between; margin: 14px 2px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.tray__empty { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.tray-item {
  display: flex; flex-direction: column; gap: 2px; margin-bottom: 5px; padding: 7px 10px; cursor: grab;
  border: 1px solid var(--border); border-left: 3px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--panel-2); user-select: none;
}
.tray-item:hover { border-color: var(--border-strong); }
.tray-item.prio-4 { border-left-color: var(--p4); }
.tray-item.prio-3 { border-left-color: var(--p3); }
.tray-item.prio-2 { border-left-color: var(--p2); }
.tray-item.prio-1 { border-left-color: var(--p1); }
.tray-item.is-dragging { opacity: 0.35; }
.tray-item__title { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.tray-item__meta { font-size: 11px; color: var(--muted); }

.wk { display: flex; flex-direction: column; min-height: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); --surface: var(--panel); }
.wk__head, .wk__allday, .wk__grid { display: grid; grid-template-columns: 54px repeat(var(--days), minmax(0, 1fr)); }
.wk__head, .wk__allday { overflow: hidden; scrollbar-gutter: stable; }
.wk__head { border-bottom: 1px solid var(--border); background: var(--panel); }
.wk__corner { border-right: 0; }
.wk__corner--label { padding: 8px 6px 0 0; font-size: 10px; font-weight: 600; color: var(--muted-2); text-align: right; line-height: 1.2; }
.wk__dh { padding: 8px 10px 9px; border-left: 1px solid var(--border); container-type: inline-size; }
@container (max-width: 118px) { .wk__total { display: none; } }
.wk__dh-top { display: flex; align-items: baseline; gap: 6px; margin-bottom: 7px; }
.wk__dow { font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.wk__num { font-size: 18px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.wk__dh.is-today .wk__num { padding: 0 6px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); }
.wk__dh.is-weekend { background: color-mix(in srgb, var(--panel-2) 45%, transparent); }
.wk__total { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.wk__allday { border-bottom: 1px solid var(--border); }
.wk__ad { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 40px; max-height: 104px; padding: 4px 4px 22px; overflow-y: auto; border-left: 1px solid var(--border); }
.wk__ad.is-today { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.wk__ad.is-drop { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.wk__ad .pill { flex: none; width: 100%; justify-content: flex-start; padding: 2px 7px; border-radius: 5px; font-size: 11.5px; }
.pill--task { background: var(--task-soft); color: var(--text); cursor: grab; user-select: none; }
.pill--task.is-done { opacity: 0.5; text-decoration: line-through; }
.pill--task.is-dragging { opacity: 0.35; }
.pill__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--viz-task); }
.pill--task.prio-4 .pill__dot { background: var(--p4); }
.pill--task.prio-3 .pill__dot { background: var(--p3); }
.pill--task.prio-2 .pill__dot { background: var(--p2); }
.wk__add { position: absolute; right: 4px; bottom: 2px; display: grid; place-items: center; width: 22px; height: 20px; border: 0; border-radius: 5px; background: none; color: var(--muted); opacity: 0; }
.wk__ad:hover .wk__add, .wk__add:focus-visible { opacity: 1; }
.wk__add:hover { background: var(--active); color: var(--text); }
.wk__scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
.wk__grid { position: relative; }
.wk__hours { position: relative; }
.wk__hour { position: absolute; right: 8px; transform: translateY(-50%); font-size: 10.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.wk__col {
  position: relative; border-left: 1px solid var(--border);
  background-image:
    linear-gradient(to bottom, var(--viz-grid) 0, var(--viz-grid) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--viz-grid) 45%, transparent) 0, color-mix(in srgb, var(--viz-grid) 45%, transparent) 1px, transparent 1px);
  background-size: 100% var(--hour), 100% calc(var(--hour) / 2);
  cursor: cell;
}
.wk__col.is-weekend { background-color: color-mix(in srgb, var(--panel-2) 45%, transparent); }
.wk__col.is-today { background-color: color-mix(in srgb, var(--accent) 3%, transparent); }
.wk__now { position: absolute; left: -1px; right: 0; z-index: 3; height: 2px; background: var(--bad); pointer-events: none; }
.wk__now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.wk__preview {
  position: absolute; left: 3px; right: 3px; z-index: 4; padding: 2px 6px; pointer-events: none;
  border: 2px dashed var(--accent); border-radius: 6px; background: var(--accent-soft);
  font-size: 11px; font-weight: 700; color: var(--accent-text);
}
.blk {
  position: absolute; z-index: 1; display: flex; gap: 5px; overflow: hidden;
  padding: 3px 6px; border-radius: 6px; font-size: 11.5px; line-height: 1.25; cursor: default;
}
.blk--event {
  flex-direction: column; gap: 0; cursor: pointer; border-left: 3px solid var(--viz-event);
  background: color-mix(in srgb, var(--viz-event) 22%, var(--panel)); color: var(--event-text);
}
.blk--event:hover { background: color-mix(in srgb, var(--viz-event) 30%, var(--panel)); }
.blk--task {
  cursor: grab; user-select: none; border-left: 3px solid var(--viz-task);
  background: color-mix(in srgb, var(--viz-task) 22%, var(--panel)); color: var(--text);
}
.blk--task:hover { background: color-mix(in srgb, var(--viz-task) 30%, var(--panel)); }
.blk.is-short { flex-direction: row; align-items: center; }
.blk.is-short .blk__time { display: none; }
.blk__body { display: flex; flex-direction: column; min-width: 0; }
.blk__title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk__time { font-size: 10.5px; opacity: 0.75; white-space: nowrap; }
.blk.is-done { opacity: 0.55; }
.blk.is-done .blk__title { text-decoration: line-through; }
.blk.is-dragging { opacity: 0.3; }
.blk .check { margin-top: 1px; }
.blk__resize { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.blk--task:hover .blk__resize::after { content: ""; position: absolute; left: 35%; right: 35%; bottom: 2px; height: 3px; border-radius: 2px; background: currentColor; opacity: 0.35; }
.drag-ghost { border-radius: 8px; box-shadow: var(--shadow-lg); opacity: 0.95; background: var(--panel-2); }
/* Touch tablets get the desktop grid: let pointer events drive the drag
   instead of the browser starting a scroll on the item. */
.week [data-drag-task], .blk__resize { touch-action: none; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none !important; }

.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 14px; }
.strip__day {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0 7px;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--text);
}
.strip__dow { font-size: 10.5px; font-weight: 650; text-transform: uppercase; color: var(--muted); }
.strip__num { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.strip__bar { display: flex; align-items: flex-end; width: 6px; height: 22px; margin-top: 4px; overflow: hidden; border-radius: 3px; background: var(--panel-3); }
.strip__bar i { display: block; width: 100%; }
.strip__day.is-selected { border-color: var(--border-strong); background: var(--panel); }
.strip__day.is-today .strip__num { color: var(--accent-text); }
.day-summary { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); --surface: var(--panel); }

/* ==========================================================================
   Tarefas (explorer) + bulk bar
   ========================================================================== */

.toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.toolbar .search { max-width: 520px; }
.bulk {
  position: fixed; left: calc(50% + var(--sidebar-w) / 2); bottom: 24px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; max-width: calc(100vw - var(--sidebar-w) - 24px); padding: 6px; overflow-x: auto;
  border: 1px solid var(--border-strong); border-radius: 14px; background: var(--panel-2); box-shadow: var(--shadow-lg);
  animation: rise 0.2s var(--ease);
}
.bulk__count { padding: 0 10px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.bulk__btn { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font-size: 12.5px; font-weight: 550; white-space: nowrap; }
.bulk__btn:hover { background: var(--active); color: var(--text); }
.bulk__btn.is-danger:hover { color: var(--bad-text); }

/* ==========================================================================
   Delegadas
   ========================================================================== */

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; align-items: start; }
.person-card { padding: 14px 8px 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); --surface: var(--panel); }
.person-card.has-stale { border-color: color-mix(in srgb, var(--warn) 32%, var(--border)); }
.person-card__head { display: flex; align-items: center; gap: 12px; padding: 0 8px 10px; }
.person-card__who { flex: 1; min-width: 0; }
.person-card__who h3 { margin: 0; font-size: 15px; font-weight: 650; }
.person-card__who a { text-decoration: none; }
.person-card__who a:hover { text-decoration: underline; }
.person-card__who p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.person-card__actions { display: flex; gap: 4px; }

/* ==========================================================================
   Equipe
   ========================================================================== */

.team { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: start; }
.team__list {
  position: sticky; top: 20px; max-height: calc(100dvh - 130px); overflow-y: auto;
  padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); --surface: var(--panel);
}
.team__tools { margin-bottom: 6px; }
.team__group-head { display: flex; justify-content: space-between; padding: 10px 8px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.member { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.member:hover { background: var(--hover); }
.member.is-active { background: var(--active); }
.member.is-archived { opacity: 0.55; }
.member__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.member__text b { font-size: 13.5px; font-weight: 600; }
.member__text small { font-size: 11.5px; color: var(--muted); }
.team__archived { margin: 10px 4px 2px; }
.team__detail { min-width: 0; }
.person-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.person-head__text { flex: 1; min-width: 160px; }
.person-head__text h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.person-head__text p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.person-head__actions { display: flex; gap: 6px; }
.balance { margin-bottom: 16px; }
.balance__bar { display: flex; gap: 2px; height: 8px; overflow: hidden; border-radius: 4px; }
.balance__bar i { display: block; min-width: 4px; }
.balance__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.balance__legend span { display: inline-flex; align-items: center; gap: 6px; }
.bg-positive { background: var(--sent-positive) !important; }
.bg-constructive { background: var(--sent-constructive) !important; }
.bg-negative { background: var(--sent-negative) !important; }
.bg-neutral { background: var(--sent-neutral) !important; }
.composer { margin-bottom: 22px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer textarea { display: block; width: 100%; min-height: 64px; resize: vertical; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; line-height: 1.5; }
.composer__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.seg--sent .dot { width: 8px; height: 8px; }
.person-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.month__label { margin: 14px 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.note { margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--border); border-left: 3px solid var(--sent-neutral); border-radius: var(--radius-sm); background: var(--panel); }
.note--positive { border-left-color: var(--sent-positive); }
.note--constructive { border-left-color: var(--sent-constructive); }
.note--negative { border-left-color: var(--sent-negative); }
.note.is-pending { opacity: 0.6; }
.note__top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.note__sent { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.note__date { font-size: 12px; color: var(--muted); }
.note__told {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-soft);
  color: var(--warn-text); font-size: 11.5px; font-weight: 650;
}
.note__told.is-told { border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: var(--accent-soft); color: var(--accent-text); }
.note__body { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ==========================================================================
   Revisão
   ========================================================================== */

.review-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-bottom: 16px; align-items: start; }
.chart, .breakdown, .reports { padding: 14px 16px; }
.chart__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.chart__head h3 { margin: 0; font-size: 14px; font-weight: 650; }
.chart__head .muted { font-size: 12px; }
.chart__plot { position: relative; border-radius: 8px; outline: none; }
.chart__plot:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.chart__plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: var(--viz-grid); stroke-width: 1; }
.chart__y, .chart__x { fill: var(--muted); font-family: var(--font); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart__x.is-today { fill: var(--text); font-weight: 700; }
.chart__col { fill: var(--viz-bar); }
.chart__zero { fill: var(--border-strong); }
.chart__hit { fill: transparent; }
.chart__bar.is-active .chart__hit { fill: var(--hover); }
.chart__bar.is-active .chart__col { fill: var(--viz-bar-hi); }
.chart__value { fill: var(--text); font-family: var(--font); font-size: 11px; font-weight: 700; }
.chart__tip {
  position: absolute; top: -6px; z-index: 5; display: flex; flex-direction: column; gap: 1px;
  padding: 6px 10px; transform: translate(-50%, -100%); pointer-events: none; white-space: nowrap;
  border: 1px solid var(--border-strong); border-radius: 8px; background: var(--panel-3); box-shadow: var(--shadow);
  font-size: 12px; color: var(--muted);
}
.chart__tip b { font-size: 13px; color: var(--text); }
.chart__table { margin-top: 8px; font-size: 12px; }
.chart__table summary { color: var(--muted); cursor: pointer; }
.chart__table table { width: 100%; margin-top: 6px; border-collapse: collapse; }
.chart__table th, .chart__table td { padding: 4px 6px; border-bottom: 1px solid var(--border); text-align: left; }
.chart__table td:last-child, .chart__table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.breakdown__row { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 0; }
.breakdown__label { overflow: hidden; }
.breakdown__track { height: 8px; }
.breakdown__track i { display: block; height: 100%; min-width: 3px; border-radius: 0 4px 4px 0; background: var(--viz-bar); }
.breakdown__value { display: flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.breakdown__value small { font-size: 11px; font-weight: 500; color: var(--muted); }
.reports { margin-bottom: 20px; }
.reports__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report-btn {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2); color: var(--text);
}
.report-btn:hover { border-color: var(--border-strong); }
.report-btn > .i:first-child { color: var(--accent-text); }
.report-btn > .i:last-child { color: var(--muted-2); }
.report-btn span { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.report-btn small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.history-day { margin-bottom: 14px; }
.history-day__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; font-size: 13px; }
.history-day__head .muted { font-size: 12px; }

/* ==========================================================================
   Ajustes / Mais
   ========================================================================== */

.settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 14px; align-items: start; }
.set { padding: 16px 18px; }
.set h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 650; }
.set h2 .i { color: var(--muted); }
.set__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); }
.set h2 + .set__row { padding-top: 0; border-top: 0; }
.set__row > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set__row b { font-size: 13.5px; font-weight: 600; }
.set__row small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.set__row--col { flex-direction: column; align-items: stretch; }
.stepper { display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2); }
.stepper__v { min-width: 44px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper .icon-btn { width: 30px; height: 30px; font-size: 18px; color: var(--text-2); }
.daypick { display: flex; flex-wrap: wrap; gap: 6px; }
.daypick button {
  width: 46px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--panel-2); color: var(--text-2); font-size: 12.5px; font-weight: 650;
}
.daypick button.is-on { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); color: var(--accent-text); }
.cal-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 12px; padding: 0; list-style: none; }
.cal-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cal-list .muted { margin-left: auto; }

.more-list { overflow: hidden; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.more-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; text-align: left;
  border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text); text-decoration: none;
}
.more-item:last-child { border-bottom: 0; }
.more-item:active, .more-item:hover { background: var(--hover); }
.more-item__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--panel-2); color: var(--text-2); }
.more-item__text { display: flex; flex: 1; flex-direction: column; gap: 1px; }
.more-item__text b { font-size: 15px; font-weight: 600; }
.more-item__text small { font-size: 12.5px; color: var(--muted); }
.more-item__chev { color: var(--muted-2); }
.more-item--danger, .more-item--danger .more-item__icon { color: var(--bad-text); }
.more-foot { margin-top: 20px; text-align: center; font-size: 12px; color: var(--muted-2); }

/* ==========================================================================
   Overlays
   ========================================================================== */

.ov { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.ov__backdrop { position: absolute; inset: 0; background: var(--backdrop); opacity: 0; transition: opacity 0.18s; pointer-events: auto; }
.ov__backdrop--clear { background: transparent; }
.ov.is-open .ov__backdrop { opacity: 1; }
.ov__panel {
  position: absolute; overflow: auto; outline: none; pointer-events: auto;
  border: 1px solid var(--border-strong); background: var(--panel); color: var(--text); box-shadow: var(--shadow-lg);
  --surface: var(--panel);
}
.ov--modal .ov__panel {
  top: 12vh; left: 50%; width: min(560px, calc(100vw - 32px)); max-height: 78vh; border-radius: var(--radius-lg);
  opacity: 0; transform: translate(-50%, 10px) scale(0.98); transition: opacity 0.18s, transform 0.2s var(--ease);
}
.ov--modal.is-open .ov__panel { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ov--drawer .ov__panel {
  top: 10px; right: 10px; bottom: 10px; width: min(480px, calc(100vw - 20px)); border-radius: var(--radius-lg);
  opacity: 0; transform: translateX(28px); transition: opacity 0.18s, transform 0.22s var(--ease);
}
.ov--drawer.is-open .ov__panel { opacity: 1; transform: none; }
.ov--popover .ov__panel {
  min-width: 220px; max-width: min(380px, calc(100vw - 16px)); max-height: min(72vh, 560px); border-radius: var(--radius);
  opacity: 0; transform: scale(0.97); transform-origin: top left; transition: opacity 0.12s, transform 0.14s var(--ease);
}
.ov--popover.is-open .ov__panel { opacity: 1; transform: none; }
.ov--sheet .ov__panel {
  left: 0; right: 0; bottom: var(--kb, 0px); max-height: calc(100dvh - var(--kb, 0px) - 28px - var(--safe-t));
  padding-bottom: var(--safe-b); border-bottom: 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transform: translateY(105%); transition: transform 0.28s var(--ease);
}
.ov--sheet.is-open .ov__panel { transform: none; }
.ov__handle { width: 40px; height: 5px; margin: 8px auto 2px; border-radius: 3px; background: var(--border-strong); }

/* menu */
.ov--menu .ov__panel { padding: 4px; }
.menu__title { max-width: 320px; padding: 8px 10px 6px; overflow: hidden; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.menu { display: flex; flex-direction: column; }
.menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font-size: 13.5px; text-align: left; }
.menu__item:hover, .menu__item:focus-visible { background: var(--active); outline: 0; }
.menu__item:disabled { opacity: 0.45; }
.menu__item.is-danger, .menu__item.is-danger .menu__icon { color: var(--bad-text); }
.menu__icon { display: grid; color: var(--muted); }
.menu__label { flex: 1; }
.menu__hint { font-size: 11px; font-weight: 650; color: var(--muted-2); }
.menu__check { color: var(--accent-text); }
.menu__sep { height: 1px; margin: 4px 6px; background: var(--border); }
.ov--sheet.ov--menu .ov__panel { padding: 0 8px 12px; }
.ov--sheet .menu__item { padding: 13px 12px; font-size: 15px; }

/* confirm */
.ov--confirm .ov__panel { width: min(440px, calc(100vw - 32px)); }
.dialog { padding: 20px 22px; }
.dialog__title { margin: 0 0 8px; font-size: 17px; }
.dialog__msg { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.dialog__actions { display: flex; justify-content: flex-end; gap: 8px; }

/* date picker */
.ov--datepicker .ov__panel { width: 300px; padding: 8px; }
.ov--sheet.ov--datepicker .ov__panel { width: auto; padding: 0 12px 12px; }
.dp__title { padding: 4px 6px 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.dp__quick { display: flex; flex-direction: column; gap: 1px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.dp__q { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 7px; background: none; color: var(--text); font-size: 13.5px; text-align: left; }
.dp__q:hover { background: var(--active); }
.dp__q.is-selected { background: var(--accent-soft); color: var(--accent-text); }
.dp__q > .i { color: var(--muted); }
.dp__qhint { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; color: var(--muted); }
.dp__nav { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 6px; }
.dp__month { font-size: 13.5px; font-weight: 650; }
.dp__month::first-letter { text-transform: uppercase; }
.dp__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.dp__wd { padding: 4px 0; text-align: center; font-size: 10.5px; font-weight: 700; color: var(--muted-2); }
.dp__day {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 34px;
  border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums;
}
.dp__day:hover { background: var(--active); }
.dp__day.is-out, .dp__day.is-past { color: var(--muted-2); }
.dp__day.is-today span { font-weight: 800; color: var(--accent-text); }
.dp__day.is-selected { background: var(--accent); color: var(--accent-ink); }
.dp__day.is-selected span { color: inherit; }
.dp__day .dot { width: 4px; height: 4px; }
.dp__time { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 6px 2px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.dp__time input { margin-left: auto; height: 32px; padding: 0 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel-2); color: var(--text); }

/* combobox (person / labels) */
.ov--combo .ov__panel { width: 300px; padding: 6px; }
.ov--sheet.ov--combo .ov__panel { width: auto; padding: 0 10px 12px; }
.combo__search { display: flex; align-items: center; gap: 8px; height: 40px; margin-bottom: 4px; padding: 0 8px; border-bottom: 1px solid var(--border); color: var(--muted); }
.combo__input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font-size: 14px; }
.combo__list { display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; }
.combo__opt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 7px; background: none; color: var(--text); font-size: 13.5px; text-align: left; }
.combo__opt:hover { background: var(--active); }
.combo__opt:disabled { opacity: 0.4; }
.combo__check { margin-left: auto; color: var(--accent-text); }
.combo__create { color: var(--accent-text); }
.combo__empty { padding: 12px 8px; font-size: 13px; color: var(--muted); }

/* task editor */
.ov--editor .ov__panel { display: flex; flex-direction: column; }
.editor { display: flex; flex-direction: column; flex: 1; min-height: 100%; }
.editor__top { display: flex; align-items: center; gap: 8px; padding: 12px 12px 6px 18px; }
.editor__stamp { font-size: 12px; color: var(--muted); }
.editor__head { display: flex; align-items: flex-start; gap: 12px; padding: 8px 20px 14px; }
.editor__title {
  flex: 1; min-height: 30px; padding: 0; overflow: hidden; resize: none; border: 0; outline: 0; background: none;
  color: var(--text); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em;
}
.editor.is-done .editor__title { color: var(--muted); text-decoration: line-through; }
.props { display: flex; flex-direction: column; padding: 0 12px; }
.prop {
  display: grid; grid-template-columns: 22px 100px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 38px;
  padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 13.5px; text-align: left;
}
.prop:hover { background: var(--hover); }
.prop--static:hover { background: none; }
.prop__icon { display: grid; color: var(--muted); }
.prop__label { font-size: 13px; color: var(--muted); }
.prop__value { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.prop__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.editor__notes {
  min-height: 110px; margin: 12px 20px; padding: 12px; overflow: hidden; resize: none; outline: 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2);
  color: var(--text); font-size: 14px; line-height: 1.55;
}
.editor__notes:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.editor__foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--panel); }

/* quick add modal */
.ov--quickadd.ov--modal .ov__panel { top: 14vh; width: min(620px, calc(100vw - 32px)); overflow: visible; }
.qam { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 14px; }
.qam__head { display: flex; align-items: center; justify-content: space-between; }
.qam__head h2 { margin: 0; font-size: 15px; font-weight: 650; }
.qa--modal .qa__field { height: 48px; border-style: solid; background: var(--panel-2); }
.qa--modal .qa__input, .qa--modal .qa__mirror { font-size: 16px; line-height: 46px; }
.qam__notes { min-height: 56px; padding: 10px 12px; resize: vertical; outline: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2); color: var(--text); font-size: 14px; }
.qam__notes:focus { border-color: var(--accent); }
.qam__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 550; }
.tool:hover { background: var(--hover); color: var(--text); }
.qam__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; }
.qam__hint { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.4; color: var(--muted); }

/* palette */
.ov--palette .ov__panel { top: 12vh; display: flex; width: min(620px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.pal { display: flex; flex-direction: column; width: 100%; max-height: 70vh; }
.pal__search { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.pal__input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font-size: 16px; }
.pal__list { padding: 6px; overflow-y: auto; }
.pal__group { padding: 10px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.pal__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 14px; text-align: left; }
.pal__item.is-active { background: var(--active); }
.pal__lead { display: grid; place-items: center; width: 20px; color: var(--muted); }
.pal__label { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pal__hint { max-width: 40%; overflow: hidden; font-size: 12px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.pal__foot { display: flex; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--muted); }

/* shortcuts */
.ov--shortcuts .ov__panel { top: 8vh; width: min(780px, calc(100vw - 32px)); max-height: 84vh; }
.kb { padding: 18px 22px 20px; }
.kb__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.kb__head h2 { margin: 0; font-size: 16px; }
.kb__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; }
.kb h3 { margin: 16px 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.kb__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.kb__keys { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); }

/* text preview */
.ov--preview.ov--modal .ov__panel { top: 7vh; width: min(660px, calc(100vw - 32px)); max-height: 86vh; }
.preview { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.preview__head { display: flex; justify-content: space-between; gap: 12px; }
.preview__head h2 { margin: 0; font-size: 16px; }
.preview__head p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.preview__text {
  width: 100%; min-height: 200px; max-height: 55vh; padding: 12px; overflow: auto; resize: vertical; outline: 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2); color: var(--text);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
}
.preview__text:focus { border-color: var(--accent); }
.preview__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.preview .check-line { margin: 0; }

/* forms */
.ov--form.ov--modal .ov__panel { width: min(460px, calc(100vw - 32px)); }
.form { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; }
.form__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.form__head h2 { margin: 0; font-size: 16px; }
.form__textarea { width: 100%; min-height: 120px; margin-bottom: 10px; padding: 12px; resize: vertical; outline: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2); color: var(--text); font-size: 14px; line-height: 1.5; }
.form__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* event + slot popovers */
.ov--event .ov__panel { width: 320px; padding: 14px 16px; }
.event-card { display: flex; gap: 12px; }
.event-card__bar { flex: none; width: 4px; border-radius: 2px; background: var(--viz-event); }
.event-card h3 { margin: 0 0 8px; font-size: 15px; }
.event-card p { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-size: 13px; color: var(--text-2); }
.event-card p.small { font-size: 12px; }
.ov--slot .ov__panel { width: 380px; padding: 12px; overflow: visible; }
.slot-add__when { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* ==========================================================================
   Toasts
   ========================================================================== */

#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 2000; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; max-width: min(460px, calc(100vw - 32px));
  padding: 8px 8px 8px 14px; overflow: hidden; border-radius: 12px; background: var(--toast-bg); color: var(--toast-fg);
  box-shadow: var(--shadow-lg); font-size: 13.5px; pointer-events: auto;
  opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.2s, transform 0.22s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: translateY(6px); }
.toast__icon { display: grid; color: #4ade80; }
.toast--error .toast__icon { color: #f87171; }
.toast__msg { flex: 1; padding-right: 6px; }
.toast:not(:has(.toast__action)) { padding-right: 14px; }
.toast__action { padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: #4ade80; font-weight: 700; white-space: nowrap; }
.toast__action:hover { background: rgba(255, 255, 255, 0.08); }
.toast__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: #4ade80; transform-origin: left; animation: toastbar linear forwards; }

/* ==========================================================================
   Login
   ========================================================================== */

.login-page {
  display: grid; place-items: center; min-height: 100dvh; padding: 24px;
  background: radial-gradient(800px 420px at 50% -10%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%), var(--bg);
}
.login { width: min(380px, 100%); padding: 28px 24px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); }
.login__brand { margin-bottom: 22px; text-align: center; }
.login__brand img { border-radius: 16px; }
.login__brand h1 { margin: 12px 0 2px; font-size: 22px; font-weight: 700; }
.login__brand p { margin: 0; font-size: 13px; color: var(--muted); }
.login__error { margin-bottom: 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bad-soft); color: var(--bad-text); font-size: 13px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1280px) {
  .person-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid { grid-template-columns: minmax(0, 1fr); }
  .week.has-tray { grid-template-columns: 200px minmax(0, 1fr); }
}

/* Tablet: icon rail */
@media (min-width: 760px) and (max-width: 1099px) {
  :root { --sidebar-w: 68px; }
  .sb { align-items: center; padding: 14px 8px; }
  .brand { justify-content: center; padding: 4px 0 14px; }
  .brand__name, .brand__sep, .brand__suffix, .sb__label, .sb__new span, .sb__new kbd,
  .sb__search span, .sb__search kbd, .sb__sync span { display: none; }
  .sb__new, .sb__search, .sb__item { justify-content: center; width: 44px; height: 42px; padding: 0; }
  .sb__item { position: relative; }
  .sb__item .badge { position: absolute; top: 1px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 9.5px; }
  .sb__tools { flex-direction: column; }
  .sb__sync { justify-content: center; }
  .team { grid-template-columns: 240px minmax(0, 1fr); }
}

/* Phone */
@media (max-width: 759px) {
  body { font-size: 15px; }
  .app { display: block; }
  .sidebar { display: none; }
  .main { padding: calc(var(--safe-t) + 16px) 16px calc(var(--tabbar-h) + var(--safe-b) + 92px); }
  html[data-view="week"] .main { display: block; height: auto; overflow: visible; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex;
    height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
  }
  .tab { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 600; text-decoration: none; }
  .tab.is-active { color: var(--accent-text); }
  .tab__icon { position: relative; }
  .tab__badge {
    position: absolute; top: -5px; right: -11px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px;
    border: 2px solid var(--bg); border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800;
  }
  .tab__badge.is-bad { background: var(--bad); color: #fff; }
  .fab {
    position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); z-index: 55; display: grid; place-items: center;
    width: 56px; height: 56px; border: 0; border-radius: 18px; background: var(--accent); color: var(--accent-ink);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); transition: transform 0.12s;
  }
  .fab:active { transform: scale(0.94); }
  html[data-view="settings"] .fab, html[data-view="more"] .fab, html[data-view="team"] .fab { display: none; }

  .page-head { align-items: flex-start; margin-bottom: 14px; }
  .page-head__title { font-size: 25px; }
  .page-head--hero { flex-wrap: nowrap; }
  .page-head--hero .page-head__title { font-size: 26px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats > .stat:first-child { grid-column: 1 / -1; }
  .stats--4 > .stat:first-child { grid-column: auto; }
  .stat { padding: 12px 14px; }

  .task__row { padding: 11px 6px 11px 8px; }
  .task:not(:last-child) .task__row::after { left: 42px; }
  .task__title { font-size: 15px; }
  .check { width: 22px; height: 22px; }
  .task__actions { display: none; }
  .tl { grid-template-columns: 44px minmax(0, 1fr); }

  .triage__row { padding-left: 0; }
  .triage__label { width: 100%; }
  .tri-date { flex: 1 1 auto; min-width: 70px; }

  .people-grid, .settings { grid-template-columns: minmax(0, 1fr); }
  .team { display: block; }
  .team__list { position: static; max-height: none; }
  .reports__row { grid-template-columns: minmax(0, 1fr); }
  .set__row { flex-wrap: wrap; }
  .input { width: 100%; }
  /* Bulk bar and toasts float above the FAB (16px + 56px) so nothing overlaps. */
  .bulk { left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 84px); max-width: calc(100vw - 16px); }
  .bulk__btn span { display: none; }
  .ov--palette .ov__panel { top: calc(var(--safe-t) + 12px); }
  #toasts { left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 84px); align-items: center; }
  html[data-view="settings"] #toasts, html[data-view="more"] #toasts, html[data-view="team"] #toasts { bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); }

  /* ≥16px text in inputs stops iOS from zooming on focus. */
  .qa__input, .qa__mirror, .search input, .combo__input, .pal__input, .field input,
  .composer textarea, .editor__notes, .qam__notes, .preview__text, .form__textarea, .input { font-size: 16px; }
  .qa__input, .qa__mirror { line-height: 40px; }
}

@media (hover: none) {
  .hint--keys, .pal__foot, kbd.tri-kbd { display: none !important; }
  .task__actions { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (forced-colors: active) {
  .check, .loadbar i, .chart__col { forced-color-adjust: auto; }
}


/* ==========================================================================
   2026-06 grid work, carried into the SPA: violet accent option, 4th
   priority, workflow status + must/nice pills, free-form duration picker,
   work blocks ("partes"), and the Tarefas "Grade" spreadsheet.
   ========================================================================== */

/* Violet accent + calmer slate surfaces (the June redesign). Chosen in
   Ajustes → Cor; applied as <html data-accent="violet"> before first paint.
   Chart marks (--viz-*) stay as validated: violet tasks next to blue
   meetings would be hard to tell apart for color-blind eyes. */
[data-accent="violet"] {
  --accent: #a78bfa;
  --accent-strong: #8b5cf6;
  --accent-ink: #faf9ff;
  --accent-text: #c4b5fd;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --glow: rgba(139, 92, 246, 0.12);
}
[data-theme="dark"][data-accent="violet"] {
  --bg: #0f1118;
  --bg-sidebar: #12141c;
  --panel: #181b24;
  --panel-2: #1f2330;
  --panel-3: #2a2f3e;
  --border: #2b3040;
  --border-strong: #3d4458;
  --text: #e7e9f1;
  --muted: #97a0b4;
  --muted-2: #6c7488;
}
[data-theme="light"][data-accent="violet"] {
  --accent: #7c3aed;
  --accent-strong: #6d28d9;
  --accent-ink: #ffffff;
  --accent-text: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.1);
  --glow: rgba(124, 58, 237, 0.06);
}
.brand-glyph .g-accent { fill: var(--accent); }
.brand-glyph .g-accent-stroke { stroke: var(--accent); }

/* ---- workflow status / must-nice ---- */
.ws-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 9px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.ws-not_started { background: var(--panel-3); color: var(--muted); }
.ws-in_progress { background: var(--info-soft); color: var(--info-text); }
.ws-blocked { background: var(--bad-soft); color: var(--bad-text); }
.ws-done { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.ws-cancelled { background: var(--panel-3); color: var(--muted-2); text-decoration: line-through; }
.ws-fg-not_started { color: var(--muted) !important; }
.ws-fg-in_progress { color: var(--info-text) !important; }
.ws-fg-blocked { color: var(--bad-text) !important; }
.ws-fg-done { color: var(--good) !important; }
.mn-fg-must { color: var(--warn-text) !important; }
.mn-fg-nice { color: var(--info-text) !important; }

/* ---- duration picker ---- */
.ov--dur .ov__panel { width: 284px; padding: 8px; }
.ov--sheet.ov--dur .ov__panel { width: auto; padding: 0 12px 12px; }
.durpick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 4px 8px; }
.durpick__grid .chip { justify-content: center; padding: 0 6px; }
.durpick__free {
  display: flex; align-items: center; gap: 8px; height: 36px; margin: 0 4px 6px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); color: var(--muted);
}
.durpick__free:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.durpick__free.is-error { border-color: var(--bad); }
.durpick__free input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 13.5px; }
.durpick__none {
  display: flex; align-items: center; gap: 8px; width: calc(100% - 8px); margin: 0 4px; padding: 8px 10px;
  border: 0; border-radius: 8px; background: none; color: var(--text-2); font-size: 13px; text-align: left;
}
.durpick__none:hover, .durpick__none.is-on { background: var(--hover); color: var(--text); }

/* ---- work blocks ("partes") ---- */
.parts { margin: 8px 20px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2); }
.parts__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.parts__title { font-size: 13px; font-weight: 650; }
.parts__sum { flex: 1; min-width: 150px; font-size: 12px; }
.part { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.part__n { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--panel-3); color: var(--muted); font-size: 11px; font-weight: 700; }
.part__when, .part__dur {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: var(--text-2); font-size: 12.5px;
}
.part__when:hover, .part__dur:hover { border-color: var(--border-strong); color: var(--text); }
.part .icon-btn { width: 26px; height: 26px; margin-left: auto; }
.blk--part {
  border-left-style: dashed;
  background: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--viz-task) 22%, var(--panel)) 0 7px,
    color-mix(in srgb, var(--viz-task) 15%, var(--panel)) 7px 14px);
}
.blk.is-nodur { border-left-style: dotted; }
.blk__tools { position: absolute; top: 2px; right: 2px; display: flex; gap: 2px; opacity: 0; transition: opacity 0.12s; }
.blk--task:hover .blk__tools { opacity: 1; }
.blk__tools button {
  display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px;
  background: color-mix(in srgb, var(--panel) 85%, transparent); color: var(--text);
}
.blk__tools button:hover { background: var(--panel-3); }
.pill--deadline { background: color-mix(in srgb, var(--panel-3) 70%, transparent); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.pill--deadline .i { color: var(--bad-text); }
.pill--part { background: repeating-linear-gradient(135deg, var(--task-soft) 0 6px, color-mix(in srgb, var(--viz-task) 10%, transparent) 6px 12px); }
.tl__stack { display: flex; flex-direction: column; min-width: 0; }
.tl__part { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0 0 6px; font-size: 11px; font-weight: 600; color: var(--muted); }

/* ---- Tarefas · Grade ---- */
.task-groups.is-grid { gap: 0; }
.grid-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.grid { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 13px; }
.grid th {
  position: sticky; top: 0; z-index: 1; padding: 0; border-bottom: 1px solid var(--border); background: var(--panel-2);
  text-align: left; font-size: 11px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.grid__sort {
  display: inline-flex; align-items: center; gap: 4px; width: 100%; padding: 9px 8px; border: 0; background: none;
  color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left;
}
.grid__sort:hover, .grid__sort.is-on { color: var(--text); }
.grid__sort .is-up { transform: rotate(180deg); }
.grid td { padding: 3px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid__row:hover { background: var(--hover); }
.grid__row.is-selected { background: var(--accent-soft); }
.grid__row.is-done .grid__name { color: var(--muted); text-decoration: line-through; }
.grid__sel { width: 30px; padding-right: 0 !important; }
.grid__row .task__select { display: grid; opacity: 0; }
.grid__row:hover .task__select, .is-selecting .grid__row .task__select { opacity: 1; }
.grid__row.is-selected .task__select { opacity: 1; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.grid__id { width: 44px; color: var(--muted-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.grid__title { display: flex; align-items: center; gap: 8px; min-width: 300px; min-height: 38px; white-space: normal; }
.grid__name { padding: 4px 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 550; text-align: left; cursor: pointer; }
.grid__name:hover { color: var(--accent-text); }
.cell {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border: 1px solid transparent;
  border-radius: 6px; background: none; color: var(--text-2); font: inherit; font-size: 12.5px;
}
.cell:hover { border-color: var(--border); background: var(--panel-2); color: var(--text); }
.cell--input { width: 84px; outline: 0; }
.cell--input::placeholder { color: var(--muted-2); }
.cell--input:focus { border-color: var(--accent); background: var(--panel-2); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--text); }
.cell--input.is-error { border-color: var(--bad); }
.gpill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 104px; height: 26px; padding: 0 10px;
  border: 0; border-radius: 6px; font-size: 12px; font-weight: 650; white-space: nowrap;
}
.gpill:hover { filter: brightness(1.12); }
.gp-prio-0, .gp-mn-none { background: var(--panel-3); color: var(--muted-2); }
.gp-prio-1 { background: var(--info-soft); color: var(--info-text); }
.gp-prio-2 { background: var(--warn-soft); color: var(--warn-text); }
.gp-prio-3 { background: var(--bad-soft); color: var(--bad-text); }
.gp-prio-4 { background: var(--p4); color: #fff; }
.gp-mn-must { background: var(--warn-soft); color: var(--warn-text); }
.gp-mn-nice { background: var(--info-soft); color: var(--info-text); }
.grid__empty { padding: 18px; text-align: center; }
.grid__add { padding: 8px; border-top: 1px solid var(--border); }


/* ---- Inbox: parse suggestion for captures from outside the app ---- */
.suggest {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 2px 0 10px; padding: 8px 10px;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: var(--radius-sm);
  background: var(--accent-soft);
}
.suggest__label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--accent-text); }
.suggest__bits { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.suggest__bit { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; background: var(--panel); font-size: 12px; font-weight: 600; color: var(--text); }
.suggest__title { flex: 1; min-width: 120px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Ajustes: quick capture setup ---- */
.chip--mono { font-family: var(--mono); font-size: 12px; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.howto { margin: 8px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2); }
.howto summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; cursor: pointer; list-style: none; font-size: 13.5px; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary .muted { font-size: 12px; }
.howto[open] summary { border-bottom: 1px solid var(--border); }
.howto ol { margin: 0; padding: 10px 14px 12px 34px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.howto code, .set .hint code { font-family: var(--mono); font-size: 12px; padding: 1px 5px; border-radius: 4px; background: var(--panel-3); color: var(--text); }
.kv { display: inline-flex; align-items: center; gap: 4px; margin: 2px 6px 2px 0; }


/* ---- meeting notes ---- */
.ov--enote .ov__panel { width: min(560px, 100vw); }
.enote { display: flex; flex-direction: column; min-height: 100%; }
.enote__head { padding: 4px 20px 10px; }
.enote__head h2 { margin: 0 0 4px; font-size: 19px; line-height: 1.3; }
.enote__head p { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; }
.enote__prev { margin: 0 20px 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2); }
.enote__prev-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: var(--text); font-size: 13px; text-align: left; }
.enote__prev-head .muted { flex: 1; font-size: 12px; }
.enote__prev-head .is-up { transform: rotate(180deg); }
.enote__prev-peek { margin: 6px 0 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enote__prev-body { margin: 8px 0 0; padding: 0; white-space: pre-wrap; font-family: var(--font); font-size: 13px; line-height: 1.55; color: var(--text-2); }
.enote__open { margin-top: 10px; }
.enote__open-label { margin-bottom: 4px; font-size: 11.5px; font-weight: 650; letter-spacing: 0.03em; text-transform: uppercase; color: var(--warn-text); }
.enote__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 20px 0; }
.enote__hint { font-size: 12px; }
.enote__hint code { font-family: var(--mono); font-size: 11.5px; padding: 1px 4px; border-radius: 4px; background: var(--panel-3); color: var(--text); }
.enote__text { min-height: 220px; font-family: var(--font); }
.has-note { display: inline-flex; margin-left: 6px; vertical-align: -1px; color: var(--accent-text); }
.blk__note { display: inline-block; margin-right: 3px; vertical-align: -1px; }
.stat__action { margin-left: auto; height: 26px; padding: 0 8px; font-size: 12px; }


/* ---- Ajustes: agents ---- */
.cmd { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 6px 6px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 0 !important; background: none !important; font-size: 11.5px; }
.set__actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cal-list .link-btn { margin-left: auto; }
/* ---- OAuth consent page ---- */
.consent { margin: 0 0 16px; padding: 12px 14px 12px 30px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2); font-size: 13.5px; line-height: 1.7; color: var(--text-2); }
.consent__foot { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.login .btn--ghost.btn--block { margin-top: 8px; }
