/* 33International · Time — shared styles.
   Design system: shadcn/ui (default "zinc" neutral base), rendered in plain CSS.
   Neutral palette, rounded corners, 1px borders + subtle shadows, one restrained
   blue accent, a single ring focus state. Light theme; every class name is kept
   so the page scripts render unchanged. */

:root {
  /* shadcn design tokens (HSL triplets, used as hsl(var(--x) / <alpha>)) */
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --accent: 221 83% 53%;        /* the one brand accent — blue */
  --accent-foreground: 0 0% 100%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 98%;
  --ring: 221 83% 53%;
  --radius: 0.5rem;

  --shadow-sm: 0 1px 2px 0 hsl(240 10% 3.9% / 0.05);
  --shadow: 0 1px 3px 0 hsl(240 10% 3.9% / 0.1), 0 1px 2px -1px hsl(240 10% 3.9% / 0.1);
  --shadow-lg: 0 10px 15px -3px hsl(240 10% 3.9% / 0.1), 0 4px 6px -4px hsl(240 10% 3.9% / 0.1);

  --font-sans: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;

  --shell-w: 52rem;      /* readable content column inside the content area */
  --sidebar-w: 15.5rem;
  --topbar-h: 3.5rem;

  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- app shell: sidebar + content (see sidebar section below) ---- */

.app { min-height: 100vh; }
@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
}

.content { min-width: 0; display: flex; flex-direction: column; }

.view {
  width: 100%;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem;
}
@media (min-width: 720px) {
  .view { padding: 1.75rem 1.75rem 4rem; }
}

/* legacy container, kept harmless for any server-rendered page still using it */
.shell { max-width: var(--shell-w); margin: 0 auto; padding: 1.25rem 1rem 4rem; }

/* ---- typography ---- */

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }

a { color: hsl(var(--foreground)); text-decoration: underline; text-decoration-color: hsl(var(--border)); text-underline-offset: 2px; }
a:hover { text-decoration-color: hsl(var(--accent)); }

p { margin: 0 0 0.75rem; }

.kicker, .label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(var(--muted-foreground));
}
.kicker { margin: 0 0 0.4rem; }
.label { display: block; margin: 0 0 0.4rem; letter-spacing: 0.02em; font-weight: 500; text-transform: none; font-size: 0.8rem; color: hsl(var(--foreground)); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.caption { font-size: 0.85rem; color: hsl(var(--muted-foreground)); margin: 0.35rem 0; }
.empty { color: hsl(var(--muted-foreground)); margin: 1.25rem 0; }
.hidden { display: none !important; }

/* focus: one consistent ring, shadcn-style */
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }

/* ---- sidebar ---- */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 0.75rem;
  background: hsl(var(--muted) / 0.4);
  border-right: 1px solid hsl(var(--border));
}
@media (min-width: 900px) {
  .sidebar { position: sticky; top: 0; align-self: start; height: 100vh; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem 0.9rem;
  text-decoration: none;
  color: hsl(var(--foreground));
}
.brand-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.03em;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name b { font-weight: 600; font-size: 0.95rem; }
.brand-name span { font-size: 0.68rem; color: hsl(var(--muted-foreground)); letter-spacing: 0.04em; }

.side-nav { display: flex; flex-direction: column; gap: 0.15rem; }
.side-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 40px;
  padding: 0 0.7rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  transition: color 120ms ease, background-color 120ms ease;
}
.side-link:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.side-link.is-active { color: hsl(var(--foreground)); background: hsl(var(--secondary)); font-weight: 600; }
.side-link .ico { flex: 0 0 auto; width: 1.05rem; height: 1.05rem; display: inline-flex; }
.side-link .ico svg { width: 100%; height: 100%; display: block; }
.side-link .side-count {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: hsl(var(--accent) / 0.14);
  color: hsl(var(--accent));
}

.side-foot { margin-top: auto; padding-top: 0.75rem; }
.side-user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-top: 1px solid hsl(var(--border));
}
.side-avatar {
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9999px;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}
.side-user .who { min-width: 0; line-height: 1.25; }
.side-user .who b { display: block; font-size: 0.82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who span { font-size: 0.72rem; color: hsl(var(--muted-foreground)); }

/* ---- topbar ---- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--topbar-h);
  padding: 0 1rem;
  background: hsl(var(--background) / 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid hsl(var(--border));
}
.topbar h1 { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: -0.5rem;
  border: none;
  background: transparent;
  color: hsl(var(--foreground));
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
}
.hamburger:hover { background: hsl(var(--muted)); }
.hamburger svg { width: 1.15rem; height: 1.15rem; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: hsl(var(--foreground) / 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

/* desktop: sidebar is in the grid; no hamburger, no backdrop */
@media (min-width: 900px) {
  .hamburger { display: none; }
  .backdrop { display: none; }
}

/* mobile: sidebar slides in over the content.
   .98 closes the fractional gap with the 900px desktop rule (zoom / fractional DPR). */
@media (max-width: 899.98px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 16rem;
    max-width: 82vw;
    z-index: 50;
    /* opaque here — the panel overlays page content when open */
    background: hsl(var(--background));
    transform: translateX(-100%);
    transition: transform 200ms ease;
  }
  .app.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .app.nav-open .backdrop { opacity: 1; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar, .backdrop { transition: none; }
}

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.5rem 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: 1px solid hsl(var(--primary));
  border-radius: calc(var(--radius) - 2px);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, opacity 120ms ease;
}
.btn:hover:not(:disabled) { background: hsl(var(--primary) / 0.9); border-color: hsl(var(--primary) / 0.9); }
.btn:disabled { opacity: 0.5; cursor: default; }

.btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.btn-ghost:hover:not(:disabled) {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

.btn-block { display: flex; width: 100%; }
.btn-small { min-height: 32px; padding: 0.35rem 0.75rem; font-size: 0.8rem; }

/* a destructive button awaiting its second, confirming tap */
.btn.is-armed,
.btn.is-armed:hover:not(:disabled) {
  background: hsl(var(--destructive));
  border-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

/* ---- inputs & forms ---- */

.input {
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 16px; /* prevents iOS zoom-on-focus */
  line-height: 1.4;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.input::placeholder { color: hsl(var(--muted-foreground)); }
.input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.2);
}
.input.is-invalid { border-color: hsl(var(--destructive)); }
.input.is-invalid:focus { box-shadow: 0 0 0 3px hsl(var(--destructive) / 0.2); }
textarea.input { min-height: 4.5rem; resize: vertical; }
.mono-input, input.mono, select.mono { font-family: var(--font-mono); }
.mono-input { text-transform: uppercase; }

.field { margin: 0 0 1rem; min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
.form-grid .span-2 { grid-column: span 2; }
.field-btn { display: flex; align-items: flex-end; }
.field-btn .btn { width: 100%; }

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}
.check input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: hsl(var(--accent)); }

.row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }

/* ---- badges ---- */

.badges { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; margin: 0.6rem 0 0; }
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.28rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  white-space: nowrap;
}
.badge-muted { background: transparent; color: hsl(var(--muted-foreground)); border-color: hsl(var(--border)); }
.badge-accent { background: hsl(var(--accent) / 0.12); color: hsl(var(--accent)); border-color: hsl(var(--accent) / 0.25); }
.badge-ink { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }

/* ---- sections & cards ---- */

.section { border-top: 1px solid hsl(var(--border)); margin-top: 2rem; padding-top: 1.5rem; }
.section > .kicker { margin-bottom: 1rem; }

.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.15rem;
  margin: 0 0 0.75rem;
}
.card > p:last-child { margin-bottom: 0; }

.banner {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--muted));
  padding: 0.85rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

/* ---- timer page ---- */

.timer-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.25rem 1.25rem;
}
.clock {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(3rem, 16vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin: 0.5rem 0 0.35rem;
}
.issue-line { font-size: 1.1rem; margin: 0; font-weight: 600; }
.issue-key { font-family: var(--font-mono); font-weight: 600; }
.task-name { font-family: var(--font-sans); font-weight: 400; color: hsl(var(--muted-foreground)); }
.sync-error { color: hsl(var(--destructive)); }
.timer-card .btn-block { margin-top: 1rem; }

.note-form { display: flex; gap: 0.5rem; margin: 0 0 0.75rem; }
.note-form .input { flex: 1 1 auto; min-width: 0; }
.note-form .btn { flex: 0 0 auto; }
.notes { list-style: none; margin: 0; padding: 0; }
.notes li {
  border-left: 2px solid hsl(var(--border));
  padding: 0.2rem 0 0.2rem 0.75rem;
  margin: 0.5rem 0;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.results { margin-top: 0.5rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow: hidden; }
.results:empty { border: none; }
.result {
  display: flex;
  width: 100%;
  gap: 0.6rem;
  align-items: baseline;
  text-align: left;
  background: hsl(var(--card));
  border: none;
  border-top: 1px solid hsl(var(--border));
  padding: 0.6rem 0.85rem;
  min-height: 44px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: hsl(var(--foreground));
}
.result:first-child { border-top: none; }
.result:hover { background: hsl(var(--muted)); }
.result .mono { flex: 0 0 auto; font-size: 0.8rem; font-weight: 600; }
.result-summary {
  color: hsl(var(--muted-foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.results .caption { padding: 0.6rem 0.85rem; margin: 0; }

.switch-box {
  border: 1px solid hsl(var(--accent) / 0.4);
  border-radius: var(--radius);
  background: hsl(var(--accent) / 0.06);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
}
.switch-box p { margin: 0 0 0.6rem; }

/* ---- reports: segmented range control ---- */

.chips {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin: 0 0 1.5rem;
  background: hsl(var(--muted));
  border-radius: var(--radius);
  max-width: 100%;
  overflow-x: auto;
}
.chip {
  flex: 1 1 0;
  min-height: 32px;
  padding: 0 0.9rem;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
.chip:hover:not(.is-active) { color: hsl(var(--foreground)); }
.chip.is-active { background: hsl(var(--background)); color: hsl(var(--foreground)); box-shadow: var(--shadow-sm); }

/* ---- disclosure: forms that are needed now and then stay folded ---- */

.disclosure { margin: 0 0 1rem; }
.disclosure > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0 0.9rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 500;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: '+'; font-weight: 600; color: hsl(var(--muted-foreground)); }
.disclosure > summary:hover { background: hsl(var(--muted)); }
.disclosure[open] > summary::before { content: '−'; }
.disclosure[open] > summary { margin-bottom: 0.75rem; }

/* ---- reports: stat tiles ---- */

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0 0 1.75rem; }
.tile {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0.9rem 1rem;
  min-width: 0;
}
.tile-num {
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.tile-num.accent { color: hsl(var(--accent)); }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

/* ---- tables ---- */

.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
  padding: 0.5rem 0.6rem 0.5rem 0;
  border-bottom: 1px solid hsl(var(--border));
}
.table td { padding: 0.6rem 0.6rem 0.6rem 0; border-bottom: 1px solid hsl(var(--border)); }
.table .num, .table th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; padding-right: 0; }

.bar-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) 4.4rem;
  gap: 0.6rem;
  align-items: center;
  margin: 0.4rem 0;
}
.bar-label { font-size: 0.72rem; color: hsl(var(--muted-foreground)); }
.bar-track { background: hsl(var(--muted)); height: 8px; border-radius: 9999px; overflow: hidden; }
.bar { height: 100%; background: hsl(var(--primary)); border-radius: 9999px; }
.bar.is-today { background: hsl(var(--accent)); } /* today's mark carries the accent */
.bar-val { font-size: 0.72rem; text-align: right; font-variant-numeric: tabular-nums; }

.source-line { font-family: var(--font-mono); font-size: 0.85rem; color: hsl(var(--muted-foreground)); }

/* ---- expenses ---- */

.review-note {
  color: hsl(var(--destructive));
  font-size: 0.85rem;
  border-left: 2px solid hsl(var(--destructive));
  padding-left: 0.6rem;
  margin: 0.5rem 0 0;
}

/* ---- settings ---- */

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid hsl(var(--border));
  flex-wrap: wrap;
}
.setting-row:last-child { border-bottom: none; }
.setting-name { font-weight: 600; }
.setting-row .caption { margin: 0; }

.cli-hint {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  overflow-x: auto;
  white-space: nowrap;
}
.cli-hint .cmd-comment { color: hsl(var(--primary-foreground) / 0.55); }
.cli-hint { white-space: pre-wrap; margin: 0.35rem 0; }
/* A secret shown once: it has to be selectable and wrap, never be truncated. */
.token-once {
  font-size: 0.85rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 0.35rem 0 0.6rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: hsl(var(--muted));
  border-radius: calc(var(--radius) - 4px);
  padding: 0.1em 0.35em;
}
.today-line { margin: 1rem 0 0; }

/* ---- admin ---- */

/* the first section of a tab panel sits directly under the tab bar */
.tab-panel > .section:first-child { border-top: none; margin-top: 0.75rem; padding-top: 0; }
.chip .n { color: hsl(var(--accent)); font-weight: 600; }
.danger { color: hsl(var(--destructive)); }
.strike { text-decoration: line-through; }

.team-grid { grid-template-columns: 1fr 1fr; margin-top: 0.75rem; }
.assign-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.assign-row .input { flex: 1 1 auto; min-width: 0; }
.assign-row .btn { flex: 0 0 auto; }

.table-scroll { overflow-x: auto; }
/* a right-aligned .num column carries no right padding; the next column needs
   its own breathing room or the two read as one figure on a phone */
.table th.gap-l, .table td.gap-l { padding-left: 0.75rem; }
.team-time-row { cursor: pointer; }
.team-time-row:hover td { background: hsl(var(--muted)); }
.team-time-row.is-dim td { color: hsl(var(--muted-foreground)); }
.team-time-row .badges { margin-top: 0.25rem; }
.table tfoot td { border-top: 1px solid hsl(var(--border)); border-bottom: none; font-weight: 600; }
.team-drill > td { padding: 0.6rem 0 0.75rem; }

/* ---- toast (shadcn popover card) ---- */

#toast {
  position: fixed;
  top: calc(1rem + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translate(-50%, -0.5rem);
  width: max-content;
  max-width: min(92vw, 26rem);
  background: hsl(var(--popover));
  color: hsl(var(--popover-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
  z-index: 100;
}
#toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
