/* Suz Calender admin. One stylesheet, no framework. */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f3f4f7;
  --surface-3: #e9ecf1;
  --line: #e2e5eb;
  --line-strong: #cfd4dc;
  --text: #151922;
  --muted: #647084;
  --faint: #8d97a8;
  --accent: #0e7c6b;
  --accent-strong: #0a6657;
  --accent-ink: #ffffff;
  --accent-soft: #e2f4f0;
  --good: #177245;
  --good-soft: #e1f5e9;
  --warn: #9a5b00;
  --warn-soft: #fcefd2;
  --bad: #b3261e;
  --bad-soft: #fce4e1;
  --info: #2457c5;
  --info-soft: #e4ecfd;
  --c-reasoning: #0e7c6b;
  --c-listening: #e09f12;
  --c-rendering: #7a5af8;
  --c-earlier: #a3acba;
  --shadow: 0 1px 2px rgba(20, 26, 40, 0.05), 0 8px 24px -12px rgba(20, 26, 40, 0.14);
  --shadow-pop: 0 12px 40px -8px rgba(20, 26, 40, 0.28);
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar: 248px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  --bg: #0e1117;
  --surface: #161b24;
  --surface-2: #1c222d;
  --surface-3: #252c39;
  --line: #262d3a;
  --line-strong: #394253;
  --text: #e8ebf1;
  --muted: #98a2b6;
  --faint: #6f7a8f;
  --accent: #35c2a9;
  --accent-strong: #5ad6c0;
  --accent-ink: #062a24;
  --accent-soft: #12332d;
  --good: #57d08f;
  --good-soft: #12301f;
  --warn: #f0b84b;
  --warn-soft: #3a2c0c;
  --bad: #ff8a80;
  --bad-soft: #3d1a17;
  --info: #8fb3ff;
  --info-soft: #16264a;
  --c-reasoning: #35c2a9;
  --c-listening: #f0b84b;
  --c-rendering: #a691ff;
  --c-earlier: #6f7a8f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
  --shadow-pop: 0 16px 48px -8px rgba(0, 0, 0, 0.75);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---- boot and sign-in */

.boot, .noscript { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.boot-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.92); } }

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(900px 500px at 12% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(700px 420px at 110% 110%, var(--info-soft), transparent 55%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  padding: 32px 30px 28px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex: none; border-radius: 11px; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand-sub { color: var(--muted); font-size: 12.5px; }
.auth-card h1 { font-size: 22px; letter-spacing: -0.02em; margin: 26px 0 6px; }
.auth-card .lead { color: var(--muted); margin-bottom: 20px; }
.auth-foot { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.steps { display: flex; gap: 8px; margin: 18px 0 4px; }
.step { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); }
.step.on { background: var(--accent); }

/* ---- forms */

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .label { font-weight: 600; font-size: 13.5px; }
.hint { color: var(--muted); font-size: 13px; }
.input, select.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:hover { border-color: var(--faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.input.small { padding: 7px 10px; font-size: 14px; }
.input.code { font: 600 24px/1 var(--mono); letter-spacing: 0.35em; text-align: center; padding: 14px 12px; }
.input-row { display: flex; gap: 8px; align-items: center; }
.input-row .input { flex: 1; min-width: 0; }
.unit { color: var(--muted); font-size: 13.5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.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.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line-strong)); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.block { width: 100%; padding: 11px 15px; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-weight: 600; font-size: inherit; }
.linkish:hover { text-decoration: underline; }

.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 26px; background: var(--line-strong); transition: background 0.18s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.18s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.alert { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 14px; border: 1px solid transparent; }
.alert.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.alert.good { background: var(--good-soft); color: var(--good); }
.alert.info { background: var(--info-soft); color: var(--info); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }

/* ---- shell */

.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 14px 14px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.sidebar .brand { padding: 4px 8px 16px; }
.nav { display: grid; gap: 2px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .badge { margin-left: auto; }
.sidebar-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 10px; padding: 4px 6px; min-width: 0; }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; text-transform: uppercase; }
.who-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-sub { font-size: 12px; color: var(--muted); }
.foot-row { display: flex; gap: 6px; }
.foot-row .btn { flex: 1; }

.main { min-width: 0; padding: 26px clamp(16px, 3.2vw, 40px) 64px; }
.topbar { display: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 18px; margin-bottom: 22px; }
.page-head h1 { font-size: 26px; letter-spacing: -0.025em; line-height: 1.15; }
.page-head p { color: var(--muted); margin-top: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.scrim { display: none; }

@media (max-width: 880px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; width: min(84vw, 300px); transform: translateX(-102%); transition: transform 0.22s ease; box-shadow: var(--shadow-pop); }
  .shell.menu-open .sidebar { transform: none; }
  .shell.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(10, 14, 22, 0.45); }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; margin: -26px calc(-1 * clamp(16px, 3.2vw, 40px)) 18px; padding: 10px clamp(16px, 3.2vw, 40px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .topbar .brand-name { font-size: 15.5px; }
  .topbar .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .page-head h1 { font-size: 22px; }
}

/* ---- building blocks */

.grid { display: grid; gap: 16px; }
.grid.kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.stack { display: grid; gap: 16px; }
.section { margin-top: 22px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card.flush .card-head { padding: 16px 20px 0; }
.card h2 { font-size: 15.5px; letter-spacing: -0.01em; }
.card h2 small { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 6px; }

.kpi-label { color: var(--muted); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.kpi-label svg { width: 15px; height: 15px; }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kpi-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

.meter { height: 7px; border-radius: 7px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.meter > i { display: block; height: 100%; border-radius: 7px; background: var(--accent); transition: width 0.4s ease; }
.meter.warn > i { background: var(--c-listening); }
.meter.bad > i { background: var(--bad); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 650; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.badge { min-width: 20px; padding: 1px 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; text-align: center; }

.status-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 14px 20px; }
.status-item { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.status-item .k { color: var(--muted); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 0; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; padding-top: 2px; }
.list > li:last-child { padding-bottom: 2px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.row > .grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.empty svg { width: 30px; height: 30px; opacity: 0.6; margin-bottom: 6px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.share { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.share .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.share .bar > i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }

.tabs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--surface-3); }
.tabs button { border: 0; background: transparent; padding: 6px 13px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(20, 26, 40, 0.12); }

/* ---- WhatsApp-style text (proposals as the person saw them) */

.wa { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 10px 13px; font-size: 14px; line-height: 1.45; }
.wa strong { font-weight: 700; }
.heard { color: var(--muted); font-style: italic; margin: 6px 0 8px; word-break: break-word; }
.heard::before { content: "“"; }
.heard::after { content: "”"; }

/* ---- charts */

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.chart .bar-hit { fill: transparent; cursor: default; }
.chart .bar-hit:hover + .bar-glow, .chart g.day:hover .bar-glow { opacity: 1; }
.chart .bar-glow { fill: var(--surface-3); opacity: 0; transition: opacity 0.12s; }
.chart .limit { stroke: var(--bad); stroke-width: 1.2; stroke-dasharray: 5 4; }
.chart .limit-label { fill: var(--bad); font-size: 11px; font-weight: 600; }
.k-reasoning { fill: var(--c-reasoning); background: var(--c-reasoning); }
.k-listening { fill: var(--c-listening); background: var(--c-listening); }
.k-rendering { fill: var(--c-rendering); background: var(--c-rendering); }
.k-earlier { fill: var(--c-earlier); background: var(--c-earlier); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--text); color: var(--bg); padding: 8px 11px; border-radius: 9px; font-size: 12.5px; line-height: 1.5; box-shadow: var(--shadow-pop); max-width: 260px; }
.tip b { font-weight: 700; }
.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut { width: 132px; height: 132px; flex: none; }
.donut .hole { fill: var(--surface); }
.donut text { fill: var(--text); font-weight: 700; font-size: 15px; font-family: var(--font); }
.donut .sub { fill: var(--muted); font-size: 9.5px; font-weight: 600; }

/* ---- logs */

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .input { width: auto; }
.toolbar .grow { flex: 1; min-width: 180px; }
.logs { font-family: var(--mono); font-size: 12.5px; }
.log { display: grid; grid-template-columns: 96px 62px minmax(0, 1fr); gap: 12px; padding: 7px 16px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: baseline; }
.log:hover { background: var(--surface-2); }
.log .t { color: var(--faint); }
.log .ev { font-weight: 700; color: var(--text); }
.log .kv { color: var(--muted); margin-left: 10px; }
.log .kv b { color: var(--text); font-weight: 500; }
.log.warn .ev { color: var(--warn); }
.log.error .ev { color: var(--bad); }
.log.error { background: color-mix(in srgb, var(--bad-soft) 55%, transparent); }
.log pre { grid-column: 1 / -1; margin: 6px 0 2px; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; white-space: pre-wrap; word-break: break-all; color: var(--text); }
.lv { font-weight: 700; text-transform: uppercase; font-size: 11px; }
.lv.info { color: var(--faint); }
.lv.warn { color: var(--warn); }
.lv.error { color: var(--bad); }
@media (max-width: 640px) { .log { grid-template-columns: 62px minmax(0, 1fr); } .log .lv { display: none; } }

/* ---- settings */

.setting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: 8px 28px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.setting:first-of-type { border-top: 0; padding-top: 4px; }
.setting.wide { grid-template-columns: minmax(0, 1fr); }
.setting-title { font-weight: 650; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.setting-help { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.setting-control { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.setting.wide .setting-control { justify-content: flex-start; margin-top: 6px; }
.source { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--muted); }
.source.panel { background: var(--accent-soft); color: var(--accent); }
.source.changed { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 720px) { .setting { grid-template-columns: minmax(0, 1fr); } .setting-control { justify-content: flex-start; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); padding: 6px 12px; border-radius: 99px; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--muted); user-select: none; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.people { width: 100%; display: grid; gap: 8px; }
.person { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.person .tag { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .person { grid-template-columns: minmax(0, 1fr) auto; } .person .input.name { grid-column: 1 / -1; grid-row: 2; } }

.savebar {
  position: sticky;
  bottom: 14px;
  z-index: 15;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-pop);
}
.savebar .btn { border-color: transparent; }
.savebar .btn.ghost { color: var(--bg); }
.savebar .btn.ghost:hover { background: color-mix(in srgb, var(--bg) 16%, transparent); }

/* ---- jobs */

.job { display: grid; gap: 10px; align-content: start; }
.job-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.job h3 { font-size: 15px; }
.job-last { font-size: 13px; padding: 9px 11px; border-radius: 9px; background: var(--surface-2); word-break: break-word; }
.job-last.ok { background: var(--good-soft); color: var(--good); }
.job-last.fail { background: var(--bad-soft); color: var(--bad); }
.job-run { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.job-run select { flex: 1; min-width: 140px; }

/* ---- pop-ups */

.modal-back { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(10, 14, 22, 0.5); animation: fade 0.14s; }
.modal { width: 100%; max-width: 440px; background: var(--surface); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-pop); padding: 22px 22px 18px; }
.modal h2 { font-size: 18px; letter-spacing: -0.015em; }
.modal p { color: var(--muted); margin: 8px 0 18px; }
.modal .actions { justify-content: flex-end; }
@keyframes fade { from { opacity: 0; } }

.toasts { position: fixed; z-index: 90; right: 16px; bottom: 16px; display: grid; gap: 8px; max-width: min(92vw, 400px); }
.toast { padding: 11px 15px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; box-shadow: var(--shadow-pop); animation: rise 0.2s ease; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.good { background: var(--good); color: #fff; }
:root[data-theme="dark"] .toast.good { color: #05210f; }
:root[data-theme="dark"] .toast.bad { color: #2a0906; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

.skeleton { border-radius: 10px; background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; min-height: 18px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- small fixes */
.actions .input { width: auto; }
.grid.two, .grid.three { align-items: start; }
.grid.three > .job { height: 100%; }

/* An icon is as large as the text around it unless a place says otherwise. */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.empty .icon { width: 30px; height: 30px; }
.nav .icon { width: 18px; height: 18px; }
.btn .icon { width: 16px; height: 16px; }
.kpi-label .icon { width: 15px; height: 15px; }
