@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* Same palette as the live app (public/shared/style.css) so the two feel like one product. */
:root {
  --bg: #f3f6fa;
  --card: #ffffff;
  --line: #dfe5ee;
  --line-strong: #c9d2df;
  --text: #0f1b2d;
  --dim: #5b6b82;
  --faint: #8a98ad;
  --primary: #0e7490;
  --primary-dim: #0b5f76;
  --primary-soft: #e0f2f7;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #a15c00;
  --warn-soft: #fdf1dc;
  --danger: #c9353a;
  --danger-soft: #fde8e8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.05), 0 8px 24px rgba(15, 27, 45, 0.06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* 8-pt spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.5 var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--primary); }

/* ---- Brand mark ---------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 800; letter-spacing: -0.04em;
}
.brand small { font-weight: 500; color: var(--dim); font-size: 15px; }

/* ---- Buttons & fields ---------------------------------------------------- */
.btn {
  font: 600 15px/1 var(--font);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 42px; padding: 0 var(--s4);
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  background: var(--primary); color: #fff;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--primary-dim); }
.btn:focus-visible, .field input:focus-visible, .field select:focus-visible, textarea:focus-visible, .menu-btn:focus-visible, .day-tab:focus-visible, .conf-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); outline-offset: 2px; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.secondary { background: var(--card); color: var(--text); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--bg); }
.btn.ghost { background: transparent; color: var(--dim); }
.btn.ghost:hover { background: var(--bg); color: var(--text); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #a82a2f; }
.btn.small { min-height: 34px; padding: 0 var(--s3); font-size: 14px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.whatsapp { background: #1f9d55; }
.btn.whatsapp:hover { background: #17824a; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--dim); }
.field input, .field select, textarea {
  font: 16px var(--font); /* 16px stops iOS zooming into the field */
  padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text);
  width: 100%; max-width: 100%;
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .error { font-size: 13px; color: var(--danger); font-weight: 500; }
.form-stack { display: flex; flex-direction: column; gap: var(--s4); }
.form-error { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: var(--s3) var(--s4); font-size: 14px; font-weight: 500; }

/* ---- Sign-in page -------------------------------------------------------- */
.auth-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: var(--s5) var(--s4); }
.auth-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: var(--s5); }
.auth-card .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s6) var(--s5); display: flex; flex-direction: column; gap: var(--s5); }
.auth-card h1 { font-size: 22px; }
.auth-card .lede { color: var(--dim); margin-top: var(--s1); }
.auth-foot { text-align: center; font-size: 13px; color: var(--faint); }

/* ---- App shell ----------------------------------------------------------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1080px; margin: 0 auto; padding: 0 var(--s4); height: 60px; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.user-menu { position: relative; }
.menu-btn {
  display: flex; align-items: center; gap: var(--s2); background: none; border: 1px solid transparent; border-radius: 10px;
  padding: 6px 8px 6px 6px; font: inherit; color: var(--text); cursor: pointer;
}
.menu-btn:hover { background: var(--bg); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.menu-btn .who { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.menu-btn .who b { font-size: 14px; }
.menu-btn .who span { font-size: 12px; color: var(--dim); }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: var(--s1); display: flex; flex-direction: column;
}
.menu button { text-align: left; background: none; border: 0; font: 500 14px var(--font); color: var(--text); padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.menu button:hover { background: var(--bg); }

main { max-width: 1080px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s7); display: flex; flex-direction: column; gap: var(--s5); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head p { color: var(--dim); margin-top: var(--s1); max-width: 60ch; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.card-head h2 { font-size: 16px; }
.card-head .count { color: var(--dim); font-weight: 500; font-size: 14px; }

.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s5); align-items: start; }
@media (max-width: 900px) { .layout-side { grid-template-columns: 1fr; } }

/* ---- Admin list ---------------------------------------------------------- */
.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 120px minmax(0, 1fr) auto; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.admin-row:first-child { border-top: 0; }
.admin-row .person { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.admin-row .person .avatar { flex: none; width: 36px; height: 36px; font-size: 14px; }
.admin-row .person div { min-width: 0; }
.admin-row .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row .email { color: var(--dim); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row .seen { color: var(--dim); font-size: 14px; line-height: 1.4; }
.admin-row .seen .sub { font-size: 13px; color: var(--faint); }
.admin-row .actions { display: flex; gap: var(--s2); justify-content: flex-end; }
.admin-row.paused .person, .admin-row.paused .seen { opacity: 0.6; }
@media (max-width: 720px) {
  .admin-row { grid-template-columns: 1fr auto; grid-template-areas: "person actions" "status seen"; row-gap: var(--s2); }
  .admin-row .person { grid-area: person; }
  .admin-row .status { grid-area: status; }
  .admin-row .seen { grid-area: seen; text-align: right; }
  .admin-row .actions { grid-area: actions; }
}

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.muted { background: var(--bg); color: var(--dim); border: 1px solid var(--line); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip:has(svg)::before { display: none; }

.row-menu { position: relative; }
.row-menu .menu { min-width: 190px; z-index: 5; }
.row-menu .menu .danger-item { color: var(--danger); }

.empty { padding: var(--s7) var(--s5); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.empty h3 { font-size: 17px; }
.empty p { color: var(--dim); max-width: 42ch; }
.empty-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }

/* ---- Activity ------------------------------------------------------------ */
.activity { list-style: none; margin: 0; padding: var(--s2) 0; }
.activity li { padding: var(--s2) var(--s5); font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.activity time { font-size: 12px; color: var(--faint); }
.activity .none { color: var(--dim); padding: var(--s4) var(--s5); }

/* ---- Dialogs ------------------------------------------------------------- */
dialog {
  border: 0; padding: 0; border-radius: 16px; width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(15, 27, 45, 0.25); color: var(--text);
}
dialog::backdrop { background: rgba(15, 27, 45, 0.45); }
.dialog-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.dialog-body h2 { font-size: 19px; }
.dialog-body > p { color: var(--dim); }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--s2); flex-wrap: wrap; padding-top: var(--s2); }

.credentials { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: var(--s4); display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); font-size: 14px; }
.credentials dt { color: var(--dim); }
.credentials dd { margin: 0; font-weight: 600; word-break: break-all; }
.credentials .pw { font-family: var(--mono); font-size: 17px; letter-spacing: 0.04em; color: var(--primary-dim); }
.notice { background: var(--warn-soft); color: #6b3d00; border-radius: 10px; padding: var(--s3) var(--s4); font-size: 14px; }

/* ---- Toast --------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: var(--s5); transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500;
  transition: opacity 0.2s, transform 0.2s; pointer-events: none; z-index: 100; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.narrow { max-width: 460px; }
.loading { min-height: 240px; display: grid; place-items: center; color: var(--dim); }

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

/* ======================================================================
   B2 — navigation, forms in dialogs, conferences, agenda, import
   ====================================================================== */
.topbar-left { display: flex; align-items: center; gap: var(--s5); min-width: 0; }
.nav { display: flex; gap: var(--s1); }
.nav a { color: var(--dim); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--bg); color: var(--text); }
.nav a[aria-current="true"] { background: var(--primary-soft); color: var(--primary-dim); }
@media (max-width: 560px) { .brand small { display: none; } .topbar-left { gap: var(--s3); } .nav a { padding: 8px 10px; } }

.btn svg { flex: none; }
.btn.icon-only { min-width: 34px; padding: 0 8px; font-size: 18px; letter-spacing: 0.05em; }
.link-btn { background: none; border: 0; color: var(--primary); font: 600 14px var(--font); cursor: pointer; padding: 0 0 0 var(--s2); }
.link-btn:hover { text-decoration: underline; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); text-decoration: none; font-weight: 600; font-size: 14px; align-self: flex-start; }
.back:hover { color: var(--text); }

/* Dialog forms */
dialog.wide { width: min(620px, calc(100vw - 32px)); }
dialog.design { width: min(980px, calc(100vw - 24px)); }
dialog .dialog-body { overflow-y: auto; min-height: 0; max-height: calc(100dvh - 32px); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field-grid > * { grid-column: 1 / -1; min-width: 0; }
.field-grid > .half { grid-column: auto; }
@media (max-width: 520px) { .field-grid > .half { grid-column: 1 / -1; } }
.field .opt { font-weight: 400; color: var(--faint); font-size: 13px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input[type="date"], .field input[type="time"] { min-height: 46px; }
.field input::placeholder, textarea::placeholder { color: var(--faint); }
.field input:disabled, .field select:disabled { background: var(--bg); color: var(--dim); }
textarea { font: 14px/1.5 var(--mono); width: 100%; resize: vertical; }
.field-section { padding-top: var(--s2); border-top: 1px solid var(--line); margin-top: var(--s1); }
.field-section h3 { font-size: 14px; }
.field-section p { font-size: 13px; color: var(--dim); }
.check { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.check:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.check > span { display: block; }
.check b { font-size: 14px; }
.check small { font-size: 13px; color: var(--dim); }
.dialog-actions.spread { justify-content: space-between; }
.logo-btns { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }

/* Design dialog */
.design-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr); gap: var(--s5); align-items: start; }
.design-preview { position: sticky; top: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: var(--s3); display: flex; flex-direction: column; gap: var(--s3); }
.design-preview-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.design-preview-head > b { font-size: 14px; }
.design-preview .stage { margin: 0; }
.screen-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.screen-picks button { border: 1px solid var(--line); background: var(--card); color: var(--dim); font: 600 12px var(--font); border-radius: 99px; padding: 5px 10px; cursor: pointer; }
.screen-picks button[aria-selected="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.stage .ds-mark { width: 4.2cqh; height: 4.2cqh; border-radius: 1cqh; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.stage .ds-ring { width: 16cqh; height: 16cqh; border-radius: 50%; background: conic-gradient(var(--primary) 0 68%, var(--bg-elevated, #eef2f7) 68% 100%); display: grid; place-items: center; }
.stage .ds-ring b { width: 72%; height: 72%; border-radius: 50%; background: var(--bg-card, #fff); display: grid; place-items: center; font-size: 4.2cqh; color: var(--text, #0f1b2d); }
.stage .ds-full { position: absolute; inset: var(--g); display: grid; gap: var(--g); }
.stage .ds-join { grid-template-columns: 1.15fr 0.85fr; }
.stage .ds-join-copy { display: flex; flex-direction: column; justify-content: center; gap: 1.5cqh; min-width: 0; padding: 1cqh 2.6cqh; }
.stage .ds-join h2 { margin: 0; font-size: 6.4cqh; line-height: 1.08; letter-spacing: -0.02em; }
.stage .ds-join .ds-how { font-size: 2.4cqh; font-weight: 600; color: var(--text-dim, var(--dim)); }
.stage .ds-brandline { min-width: 0; }
.stage .ds-brandline img { height: 8cqh; width: auto; max-width: 42%; object-fit: contain; flex: none; }
.stage .ds-card { background: color-mix(in srgb, var(--bg-card, #fff) 92%, transparent); border: 1px solid var(--border, var(--line)); border-radius: 2cqh; padding: 3cqh 3.4cqh; display: flex; flex-direction: column; justify-content: center; gap: 1.2cqh; min-width: 0; }
.stage .ds-kicker { color: var(--primary); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 2cqh; }
.stage .ds-card h2 { margin: 0; font-size: 5.6cqh; line-height: 1.1; }
.stage .ds-count { font-size: 7cqh; font-weight: 800; color: var(--primary); line-height: 1; }
.stage .ds-dot { width: 1.8cqh; height: 1.8cqh; border-radius: 50%; background: var(--accent); display: inline-block; }
.stage .ds-row { display: flex; align-items: center; gap: 1.4cqh; color: var(--text-dim, var(--dim)); font-size: 2.2cqh; font-weight: 700; }
.stage .ds-qr { display: grid; place-items: center; font-weight: 800; font-size: 2.4cqh; color: var(--primary); }
.stage .ds-between { grid-template-rows: 12cqh 1fr; }
.stage .ds-between .ds-main { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: var(--g); min-height: 0; }
.stage .intro-place { position: absolute; inset: 0; }
.stage .ibox-wrap { position: absolute; touch-action: none; }
.stage .ibox { position: absolute; inset: 0; box-sizing: border-box; overflow: hidden; line-height: 1.25; border: 1px dashed color-mix(in srgb, var(--primary) 75%, #0f1b2d); border-radius: 0.5cqh; cursor: grab; color: var(--text, #0f1b2d); text-shadow: 0 1px 2px color-mix(in srgb, var(--bg, #fff) 80%, transparent); }
.stage .ibox.bold { font-weight: 800; }
.stage .ibox.brand { color: var(--primary); }
.stage .ibox-wrap.overflow .ibox { border-color: #dc2626; }
.stage .ibox .ln { display: block; white-space: pre; }
.stage .ibox .ln.label { color: var(--primary); font-weight: 800; letter-spacing: 0.06em; }
.stage .ibox-wrap .tag { position: absolute; left: 0; bottom: 100%; font-size: 1.15cqh; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary); background: color-mix(in srgb, var(--bg-card, #fff) 88%, transparent); padding: 0 0.4cqh; pointer-events: none; white-space: nowrap; }
.stage .ibox-wrap .handle { position: absolute; right: 0; bottom: 0; width: 1.5cqh; height: 1.5cqh; cursor: nwse-resize; background: var(--primary); z-index: 1; }
.stage .ibox.photo { display: grid; place-items: center; font-weight: 700; color: var(--text-dim, var(--dim)); font-size: 2cqh; background: color-mix(in srgb, var(--bg-card, #fff) 25%, transparent); }
.stage .ds-center { place-items: center; }
.stage .ds-center .ds-card { width: min(78%, 90cqh); text-align: center; align-items: center; }
.stage .ds-center h2 { font-size: 5cqh; }
dialog.preview-zoom { width: min(1180px, calc(100vw - 24px)); background: var(--card); }
dialog.preview-zoom .stage { width: 100%; }
.color-well { display: flex; align-items: center; gap: var(--s3); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; background: var(--card); }
.color-well input[type="color"] {
  -webkit-appearance: none; appearance: none; width: 48px; height: 36px; padding: 0; border: 1px solid var(--line-strong);
  border-radius: 8px; background: transparent; cursor: pointer; flex: none;
}
.color-well input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-well input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.color-hex { font: 600 14px var(--mono); letter-spacing: 0.02em; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); padding: 0; cursor: pointer; }
.swatch.on { outline: 2px solid var(--text); outline-offset: 2px; }
.color-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.color-role { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); font-weight: 700; font-size: 13px; cursor: pointer; }
.color-role.on { outline: 2px solid var(--text); outline-offset: 2px; }
.color-role i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; }
.partner-list { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.partner-item { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.partner-thumb { width: 96px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.nudge-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nudge-row .hint { margin: 0; }
.dialog-actions .save-note { margin: 0 auto 0 0; font-size: 14px; font-weight: 700; min-height: 1.2em; }
.save-note.ok { color: var(--ok); }
.save-note.bad { color: var(--danger); }
.intro-mini { aspect-ratio: 16 / 9; width: 100%; border-radius: 10px; overflow: hidden; display: grid; grid-template-columns: 38% 1fr; background: var(--bg-card, #fff); border: 1px solid var(--border, var(--line)); color: var(--text); font-family: var(--font); }
.intro-mini-photo { background: var(--bg-elevated, var(--bg)); display: grid; place-items: center; color: var(--text-dim, var(--dim)); font-size: 13px; font-weight: 700; }
.intro-mini-copy { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.intro-mini-copy b { font-size: 16px; color: var(--primary); }
.intro-mini-copy span, .intro-mini-copy p { margin: 0; font-size: 12px; color: var(--text-dim, var(--dim)); }
.photo-field { display: flex; gap: var(--s4); align-items: center; }
.photo-thumb { width: 92px; height: 116px; object-fit: cover; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); flex: none; }
.photo-thumb.empty { display: grid; place-items: center; color: var(--dim); font-size: 12px; font-weight: 600; text-align: center; padding: 8px; border-style: dashed; }
.photo-note { margin: 0; }
@media (max-width: 760px) {
  .design-layout { grid-template-columns: 1fr; }
  .design-preview { position: static; order: -1; }
}

/* Conference list */
.conf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s4); }
.conf-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.conf-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.conf-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--s2); }
.conf-card h2 { font-size: 18px; }
.conf-when, .conf-where { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 14px; }
.conf-when svg, .conf-where svg { color: var(--faint); flex: none; }
.conf-stats { display: flex; gap: var(--s4); margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.conf-stats b { color: var(--text); }
.conf-stats .conf-admin { margin-left: auto; color: var(--faint); }
.conf-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.conf-logo.placeholder { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 15px; border: 0; }
.conf-logo.lg { width: 60px; height: 60px; border-radius: 14px; font-size: 19px; }

/* Agenda header */
.conf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); }
.conf-title { display: flex; gap: var(--s4); align-items: center; min-width: 0; }
.conf-title h1 { font-size: 26px; }
.conf-meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); color: var(--dim); font-size: 14px; margin-top: var(--s1); }
.conf-meta span { display: inline-flex; align-items: center; gap: 6px; }
.conf-meta svg { color: var(--faint); }
.conf-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }

.banner { display: flex; align-items: center; gap: var(--s3); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; padding: var(--s3) var(--s4); font-size: 14px; }
.banner > div { flex: 1; }
.banner > svg { color: var(--dim); flex: none; }
.banner.warn { background: var(--warn-soft); border-color: #f0d9a8; }

.facts { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.facts > div { padding: var(--s3) var(--s4); border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts dt { font-size: 12px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 17px; }
@media (max-width: 820px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts > div:nth-child(4) { border-left: 0; }
  .facts > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
}

/* Day tabs */
.day-tabs { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.day-tab {
  flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; cursor: pointer; font: inherit; color: var(--text);
}
.day-tab:hover { border-color: var(--line-strong); }
.day-tab[aria-selected="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.day-tab-date { font-weight: 700; font-size: 15px; }
.day-tab-sub { font-size: 13px; color: var(--dim); }

.day-panel { display: flex; flex-direction: column; gap: var(--s4); }
.day-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; }
.day-head h2 { font-size: 20px; }
.day-head p { color: var(--dim); font-size: 14px; }
.empty-actions { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: center; margin-top: var(--s2); }

/* Session card */
.session { overflow: visible; }
.session-head { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5) var(--s2); }
.session-no { flex: none; font-weight: 800; font-size: 13px; color: var(--primary-dim); background: var(--primary-soft); border-radius: 8px; padding: 6px 8px; min-width: 40px; text-align: center; }
.session-title { flex: 1; min-width: 0; }
.session-title h3 { font-size: 17px; }
.session-title p { color: var(--dim); font-size: 14px; }
.session-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--s5) var(--s3); }
.chip.plain { background: var(--bg); color: var(--dim); font-weight: 500; font-size: 12px; padding: 2px 9px; }
.chip.plain::before { display: none; }
.chip.plain.set { background: var(--primary-soft); color: var(--primary-dim); }
.talks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.talk { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s3); align-items: start; padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line); }
.talk:hover { background: #fafbfd; }
.talk-time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; display: flex; flex-direction: column; line-height: 1.3; padding-top: 1px; }
.talk-time small { color: var(--faint); font-weight: 500; font-size: 12px; }
.talk-topic { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.panel-picker { display: flex; flex-direction: column; gap: 10px; max-height: 240px; overflow: auto; padding: 8px; background: var(--bg); border-radius: 12px; border: 1px solid var(--line); }
.panel-group { display: flex; flex-wrap: wrap; gap: 6px; }
.panel-h { width: 100%; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.talk-speaker { display: flex; flex-wrap: wrap; gap: 2px var(--s3); font-size: 14px; color: var(--dim); margin-top: 2px; }
.talk-speaker .contact { display: inline-flex; align-items: center; gap: 4px; color: var(--faint); font-size: 13px; }
.talks-empty { padding: var(--s3) var(--s5); color: var(--faint); font-size: 14px; border-top: 1px solid var(--line); }
.session footer { padding: var(--s2) var(--s4); }
.session footer .btn { color: var(--primary); }
@media (max-width: 560px) { .talk { grid-template-columns: 44px minmax(0, 1fr) auto; } }

/* Settings dialog extras */
.logo-edit { display: flex; gap: var(--s4); align-items: center; padding: var(--s3); background: var(--bg); border-radius: 12px; }
.logo-edit img { width: 60px; height: 60px; object-fit: contain; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.logo-edit p { font-size: 13px; color: var(--dim); margin-bottom: var(--s2); }
.settings-block { border-top: 1px solid var(--line); padding-top: var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.settings-block h3 { font-size: 14px; }
.settings-block p { font-size: 13px; color: var(--dim); }
.settings-block .btn { align-self: flex-start; }
.danger-zone h3 { color: var(--danger); }

/* Import */
.seg { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 3px; align-self: flex-start; }
.seg-btn { background: none; border: 0; font: 600 14px var(--font); color: var(--dim); padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.seg-btn[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(15, 27, 45, 0.12); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--s6) var(--s4); border: 2px dashed var(--line-strong); border-radius: 14px; color: var(--dim); cursor: pointer; text-align: center; }
.drop svg { color: var(--primary); margin-bottom: var(--s2); }
.drop b { color: var(--text); }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--primary-soft); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.import-summary { display: flex; flex-wrap: wrap; gap: var(--s2); }
.stat { background: var(--ok-soft); color: var(--ok); border-radius: 10px; padding: var(--s2) var(--s3); display: flex; align-items: baseline; gap: 6px; }
.stat b { font-size: 20px; }
.stat span { font-size: 13px; font-weight: 600; }
.stat.muted { background: var(--bg); color: var(--dim); }
.stat.bad { background: var(--danger-soft); color: var(--danger); }
.import-errors { background: var(--danger-soft); border-radius: 10px; padding: var(--s3) var(--s4); font-size: 14px; }
.import-errors summary { font-weight: 600; color: var(--danger); cursor: pointer; }
.import-errors ul { margin: var(--s2) 0 0; padding-left: var(--s5); display: flex; flex-direction: column; gap: 4px; }
.import-preview { border: 1px solid var(--line); border-radius: 12px; max-height: 44vh; overflow-y: auto; }
.import-day { padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
.import-day:first-child { border-top: 0; }
.import-day h3 { font-size: 14px; margin-bottom: var(--s2); }
.import-day h3 span { color: var(--dim); font-weight: 500; }
.import-session { margin-bottom: var(--s3); }
.import-session-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-size: 14px; }
.import-session-head > span:not(.chip) { color: var(--dim); }
.import-session-head .chip { font-size: 11px; padding: 1px 8px; }
.import-session ul { list-style: none; margin: 4px 0 0; padding: 0 0 0 var(--s3); border-left: 2px solid var(--line); font-size: 13px; }
.import-session li { display: flex; gap: var(--s2); padding: 2px 0; }
.import-session li small { color: var(--dim); }
.import-session li.dup { color: var(--faint); text-decoration: line-through; }
.import-session li em { text-decoration: none; font-style: normal; color: var(--faint); margin-left: auto; white-space: nowrap; }
.t-time { color: var(--faint); min-width: 38px; font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  main { padding-top: var(--s5); }
  .page-head h1 { font-size: 22px; }
  .menu-btn .who { display: none; }
  .card-head, .admin-row, .activity li { padding-left: var(--s4); padding-right: var(--s4); }
  .conf-head { flex-direction: column; align-items: stretch; }
  .conf-actions .btn { flex: 1; }
  .session-head, .talk, .session-chips, .talks-empty { padding-left: var(--s4); padding-right: var(--s4); }
}

/* ======================================================================
   B3 — speaker links on the agenda
   ====================================================================== */
.talk-side { display: flex; align-items: center; gap: var(--s2); }
.chip.info { background: var(--primary-soft); color: var(--primary-dim); }
.chip.faint { color: var(--faint); background: transparent; border-style: dashed; }
.btn.danger-text { color: var(--danger); }
.btn.danger-text:hover { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .talk { grid-template-columns: 44px minmax(0, 1fr); }
  .talk-side { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
}

.share-empty { background: var(--bg); border-radius: 12px; padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); font-size: 14px; color: var(--dim); }
.link-box { display: flex; gap: var(--s2); }
.link-box input { flex: 1; min-width: 0; font: 14px var(--mono); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); }
.share-status { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; font-size: 14px; }
.share-status a { font-weight: 600; text-decoration: none; }
.share-btns { display: flex; gap: var(--s2); flex-wrap: wrap; }
.share-btns .btn { flex: 1 1 auto; }
.share .hint { font-size: 13px; color: var(--dim); margin-top: calc(var(--s2) * -1); }
.share-msg { border: 1px solid var(--line); border-radius: 12px; }
.share-msg summary { cursor: pointer; padding: var(--s3) var(--s4); font-weight: 600; font-size: 14px; }
.share-msg pre { margin: 0; padding: 0 var(--s4) var(--s4); font: 13px/1.55 var(--font); white-space: pre-wrap; word-break: break-word; color: var(--dim); }

.q-review { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); counter-reset: q; }
.q-review > li { border: 1px solid var(--line); border-radius: 12px; padding: var(--s3) var(--s4); display: flex; flex-direction: column; gap: var(--s2); counter-increment: q; }
.q-review-head { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.q-review-head::before { content: counter(q); font-weight: 800; color: var(--primary-dim); min-width: 14px; }
.q-review-meta { font-size: 13px; color: var(--dim); }
.q-review-text { font-weight: 600; }
.q-review-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.q-review-opts b { display: inline-block; width: 20px; color: var(--dim); }
.q-review-opts .correct { color: var(--ok); font-weight: 600; }
.q-review-problems { font-size: 13px; color: var(--warn); font-weight: 500; }
.dialog-body .hint { font-size: 13px; color: var(--dim); }

/* ---- B4/B5: dashboard, review, export ------------------------------------ */
.mode-tabs { margin: var(--s4) 0 var(--s4); }
.chip.solid { background: var(--ok); color: #fff; }
.dash { display: flex; flex-direction: column; gap: var(--s4); }
.dash-progress { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.dash-progress-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.dash-progress-top span { color: var(--dim); }
.bar { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width 0.3s; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); }
.filter { border: 1px solid var(--line-strong); background: var(--card); border-radius: 99px; padding: 6px 12px; font: 600 14px var(--font); color: var(--dim); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.filter b { background: var(--bg); border-radius: 99px; padding: 0 8px; font-size: 12px; }
.filter[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dim); }
.table-scroll { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.dash-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); padding: var(--s3) var(--s4); background: var(--bg); border-bottom: 1px solid var(--line); }
.dash-table td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }
.dash-table small.stale { color: var(--warn); font-weight: 600; }
.dash-table .talk-topic { font-weight: 600; }
.dash-table .row-actions { white-space: nowrap; text-align: right; }
.dash-table .row-actions > * { display: inline-flex; vertical-align: middle; margin-left: 6px; }
.remind-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; max-height: 50vh; overflow: auto; }
.remind-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.remind-list li:last-child { border-bottom: 0; }
.remind-sub { display: block; color: var(--dim); }
.rq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); max-height: 58vh; overflow: auto; }
.rq { border: 1px solid var(--line); border-radius: 12px; padding: var(--s4); background: var(--card); }
.rq.flagged { border-color: var(--danger); }
.rq-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s3); }
.rq-tools { display: flex; gap: 4px; }
.rq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.rq-grid .kind { grid-column: 1 / -1; }
.rq-grid .wide { grid-column: 1 / -1; }
.rq textarea, .rq input:not([type=radio]), .rq select { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); color: inherit; }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opt-row { display: flex; align-items: center; gap: 8px; }
.opt-letter { font-weight: 700; color: var(--dim); width: 16px; }
.correct-pick { display: inline-flex; align-items: center; gap: 2px; color: var(--ok); font-weight: 700; }
@media (max-width: 640px) { .rq-grid { grid-template-columns: 1fr; } }
.export { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); max-width: 760px; }
.export h2 { font-size: 20px; }
.export-warn { align-items: flex-start; flex-direction: column; gap: var(--s2); }
.export-list { margin: 0; padding-left: 18px; font-size: 14px; }
.btn.disabled { opacity: 0.5; pointer-events: none; }
a.btn { text-decoration: none; }
.site-foot { text-align: center; padding: var(--s6) var(--s4); font-size: 13px; }
.site-foot a, .auth-foot a { color: var(--dim); }
.prose { max-width: 720px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s7); display: flex; flex-direction: column; gap: var(--s4); }
.prose h1 { font-size: 28px; } .prose h2 { font-size: 18px; margin-top: var(--s3); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose .meta { color: var(--dim); font-size: 14px; }

/* ---- Feedback (C) --------------------------------------------------------- */
.field textarea { font: 15px/1.5 var(--font); resize: vertical; }
.field-foot { display: flex; justify-content: space-between; gap: var(--s3); }
.field-foot .count { font-size: 12px; color: var(--faint); margin-left: auto; white-space: nowrap; }
.cat-editor { display: flex; flex-direction: column; gap: var(--s3); }
.cat-picker { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--card); font-size: 14px; font-weight: 600; color: var(--dim); cursor: pointer; user-select: none; }
.cat-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cat-chip::before { content: "+"; font-weight: 700; }
.cat-chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dim); }
.cat-chip.on::before { content: "✓"; }
.cat-chip:focus-within { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); outline-offset: 2px; }
.cat-add { display: flex; gap: var(--s2); max-width: 420px; }
.cat-add input { flex: 1; font: 15px var(--font); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); }

.fb-panel { display: flex; flex-direction: column; gap: var(--s4); }
.fb-empty .fb-steps { text-align: left; max-width: 520px; margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: var(--s2); color: var(--dim); }
.fb-empty .fb-steps b { color: var(--text); }
.fb-summary { padding: var(--s4) var(--s5); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.fb-stats { display: flex; gap: var(--s5); flex-wrap: wrap; }
.fb-big { display: flex; flex-direction: column; }
.fb-big b { font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fb-big span { font-size: 13px; color: var(--dim); }
.fb-upload { display: flex; align-items: center; gap: var(--s3); }
.fb-none { padding: var(--s4) var(--s5); color: var(--dim); margin: 0; }
.fb-talks { list-style: none; margin: 0; padding: 0; }
.fb-talk { border-top: 1px solid var(--line); padding: var(--s4) var(--s5); }
.fb-talk:first-child { border-top: 0; }
.fb-talk-main { display: grid; grid-template-columns: minmax(0, 1fr) 96px 170px 250px; gap: var(--s4); align-items: center; }
.fb-talk-t { display: flex; flex-direction: column; min-width: 0; }
.fb-talk-t span { font-size: 13px; color: var(--dim); }
.fb-score { display: flex; flex-direction: column; }
.fb-score b { font-size: 20px; color: #b7791f; font-variant-numeric: tabular-nums; }
.fb-score span { font-size: 12px; color: var(--dim); }
.fb-dist { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--dim); }
.fb-dist-row { display: grid; grid-template-columns: 10px 1fr 22px; gap: 6px; align-items: center; }
.fb-dist-row .n { text-align: right; font-variant-numeric: tabular-nums; }
.fb-track { display: block; height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.fb-fill { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.fb-fill.s5, .fb-fill.s4 { background: #1f9d55; } .fb-fill.s3 { background: #e8a100; } .fb-fill.s2, .fb-fill.s1 { background: #e5484d; }
.fb-talk-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s1); }
.fb-talk-side .chip { white-space: normal; font-size: 12px; }
.fb-comments { list-style: none; margin: var(--s3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.fb-comment { display: grid; grid-template-columns: 70px 1fr auto; gap: var(--s3); align-items: start; background: var(--bg); border-radius: 10px; padding: var(--s2) var(--s3); }
.fb-comment p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-comment.hidden-c { opacity: 0.55; }
.fb-comment.hidden-c p { text-decoration: line-through; }
.fb-c-stars { color: #d99100; font-size: 13px; padding-top: 2px; letter-spacing: 1px; font-weight: 700; }
.fb-eval { padding: var(--s4) var(--s5); display: flex; flex-direction: column; gap: var(--s5); }
.fb-cats { display: flex; flex-direction: column; gap: var(--s2); max-width: 640px; }
.fb-cat { display: grid; grid-template-columns: 150px 1fr 44px; gap: var(--s3); align-items: center; font-size: 14px; }
.fb-cat .fb-track { height: 10px; }
.fb-cat b { text-align: right; font-variant-numeric: tabular-nums; }
.fb-days-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.fb-days { border-collapse: collapse; font-size: 14px; width: 100%; }
.fb-days tr:last-child td { border-bottom: 0; }
.fb-days th, .fb-days td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fb-days th { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em; }
.fb-eval-comments { padding: 0 var(--s5) var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.fb-warn { margin: 0; padding-left: 20px; color: var(--warn); font-size: 14px; }
@media (max-width: 760px) {
  .fb-talk-main { grid-template-columns: minmax(0, 1fr) auto; }
  .fb-dist { grid-column: 1 / -1; }
  .fb-talk-side { grid-column: 1 / -1; justify-content: flex-start; }
  .fb-comment { grid-template-columns: 1fr auto; }
  .fb-comment .fb-c-stars { grid-column: 1 / -1; }
  .fb-cat { grid-template-columns: 110px 1fr 40px; }
}

/* ⓘ helper (QP.info): explanations on hover, focus or tap instead of text under every field */
.info-wrap { display: inline-flex; vertical-align: -3px; margin-left: 6px; }
.info { position: relative; display: inline-flex; padding: 0; border: 0; background: none; color: var(--faint); cursor: help; border-radius: 50%; }
.info::after { content: ""; position: absolute; inset: -10px; } /* bigger tap target than the 16px icon */
.info:hover, .info:focus-visible { color: var(--primary); outline: none; }
.info:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }
.info-wrap .info-tip {
  position: fixed; z-index: 1000; display: none; width: max-content; max-width: min(300px, calc(100vw - 16px));
  padding: 8px 12px; border-radius: 8px; background: var(--text); color: #fff; box-shadow: var(--shadow);
  font: 400 13px/1.45 var(--font); letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; pointer-events: none;
}
.info-wrap .info-tip.open { display: block; }
