  @font-face { font-family: Roboto; font-weight: 100 900; src: url('roboto-latin.woff2') format('woff2'); }
  :root { color-scheme:dark; --bg:#1e2028; --card:#2a2d37; --line:#3a3e4b; --text:#eef0f5; --muted:#a3a7b5; --accent:#9aa2f0; --indigo:#3f48a1; --rec:#d62977; --ok:#3ecf8e; --warn:#f4c760; --bad:#ff6666;
          --field:#171920; --ring:#ffffff10; --rec-bg:#3a1226; --rec-big:#fff; --rec-take:#ffc1db; --talk-bg:#23263a; --good-bg:#3ecf8e14; }
  .logo-l { display:none; }
  :root[data-theme="light"] { color-scheme:light; --bg:#f3f3f3; --card:#fff; --line:#dcdee6; --text:#25282e; --muted:#656977; --accent:#3f48a1; --ok:#14804f; --warn:#9a6700; --bad:#d32f2f;
          --field:#fff; --ring:#00000012; --rec-bg:#fde8f1; --rec-big:#b01e5f; --rec-take:#8a1c4e; --talk-bg:#eef0fb; --good-bg:#14804f14; }
  :root[data-theme="light"] .logo-d { display:none; } :root[data-theme="light"] .logo-l { display:block; }
  * { box-sizing: border-box; }
  body { margin:0; background:var(--bg); color:var(--text); font:15px/1.4 Roboto, system-ui, sans-serif; }
  main { padding:16px 20px 40px; max-width:1180px; margin:0 auto; }
  header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
  .brand { display:flex; align-items:center; gap:14px; } .brand img { height:30px; width:auto; opacity:.95; }
  h1 { font-size:1.2rem; font-weight:500; margin:0; } h2 { font-size:.8rem; font-weight:500; margin:0 0 10px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); }
  .sub { color:var(--muted); font-size:.85rem; font-weight:300; }
  .conn { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.9rem; white-space:nowrap; }
  .dot { width:12px; height:12px; border-radius:50%; background:#666; box-shadow:0 0 0 3px var(--ring); }
  .dot.ok { background:var(--ok); } .dot.warn { background:var(--warn); } .dot.bad { background:var(--bad); }
  .grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:14px; }
  @media (max-width: 900px) { .grid { grid-template-columns:1fr; } }
  .card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px 16px; margin-bottom:14px; }
  .state { text-align:center; padding:18px 10px; border-radius:12px; border:2px solid var(--line); margin-bottom:12px; }
  .state .big { font-size:2.2rem; font-weight:800; letter-spacing:2px; color:var(--accent); } .state .take { color:var(--muted); min-height:1.3em; }
  .state.rec { background:var(--rec-bg); border-color:var(--rec); } .state.rec .big { color:var(--rec-big); } .state.rec .take { color:var(--rec-take); }
  .row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:8px 0; } .grow { flex:1; min-width:140px; }
  button { font:inherit; font-weight:500; border:0; border-radius:10px; padding:10px 18px; background:var(--indigo); color:#fff; cursor:pointer; }
  button:disabled { opacity:.45; cursor:default; }
  button.rec { background:var(--rec); font-size:1.05rem; padding:12px 24px; } button.ghost { background:transparent; border:1px solid var(--line); color:var(--accent); }
  button.talk { width:100%; background:var(--talk-bg); color:var(--text); border:1px solid var(--indigo); font-size:1rem; padding:14px; user-select:none; touch-action:none; }
  button.talk.on { background:var(--indigo); color:#fff; box-shadow:0 0 0 4px #3f48a155; }
  input[type=text] { font:inherit; padding:9px 10px; border-radius:8px; border:1px solid var(--line); background:var(--field); color:var(--text); width:100%; }
  .meter { position:relative; height:18px; background:linear-gradient(90deg, var(--ok) 0 70%, var(--warn) 70% 90%, var(--bad) 90%); border-radius:9px; overflow:hidden; border:1px solid var(--line); }
  .meter i { position:absolute; right:0; top:0; bottom:0; width:100%; background:var(--field); transition:width .1s; }
  .mono { font-variant-numeric:tabular-nums; color:var(--muted); font-size:.9rem; min-width:7.5em; text-align:right; }
  .ref { width:100%; aspect-ratio:16 / 9; border:1px dashed var(--line); border-radius:10px; background:var(--field); overflow:hidden; }
  .ref.has { border-style:solid; background:#000; }
  .ref video { width:100%; height:100%; object-fit:contain; display:block; }
  .ref:not(.has) video { visibility:hidden; }
  table { border-collapse:collapse; width:100%; } th, td { text-align:left; padding:7px 8px; border-bottom:1px solid var(--line); font-size:.92rem; } th { color:var(--muted); font-weight:500; }
  .ok { color:var(--ok); } .warn { color:var(--warn); } .bad { color:var(--bad); } .muted { color:var(--muted); }
  a { color:var(--accent); } tr.good td { background:var(--good-bg); }
  #vdo { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; border:0; }
  [hidden] { display:none !important; }
  .fab { position:fixed; right:22px; bottom:22px; z-index:20; display:flex; align-items:center; gap:8px; padding:14px 22px; border-radius:999px; background:var(--rec); color:#fff; font-size:1rem; box-shadow:0 6px 20px #00000055; }
  .fab:hover { filter:brightness(1.1); } .fab:focus-visible, .sheet button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .sheet { position:fixed; right:22px; bottom:84px; z-index:21; width:min(380px, calc(100vw - 44px)); max-height:min(60vh, 460px); display:flex; flex-direction:column; background:var(--card); border:1px solid var(--line); border-radius:14px; box-shadow:0 10px 30px #00000066; padding:14px 14px 8px; }
  .sheet h2 { margin:0 0 8px; } .sheet ul { list-style:none; margin:8px -6px 0; padding:0; overflow:auto; }
  .sheet li button { display:block; width:100%; text-align:left; background:transparent; color:var(--text); border-radius:8px; padding:9px 10px; font-weight:400; }
  .sheet li button:hover { background:var(--field); } .sheet p { margin:10px 2px; }
  .tabs { display:flex; gap:4px; flex-wrap:wrap; border-bottom:1px solid var(--line); margin:0 0 14px; }
  .tabs a { padding:10px 16px; color:var(--muted); text-decoration:none; font-weight:500; border-bottom:2px solid transparent; margin-bottom:-1px; }
  .tabs a:hover { color:var(--text); } .tabs a[aria-current="page"] { color:var(--text); border-bottom-color:var(--rec); }
  .tabs a:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; border-radius:6px; }
  select { font:inherit; padding:9px 10px; border-radius:8px; border:1px solid var(--line); background:var(--field); color:var(--text); }
  label.field { display:block; margin:10px 0; } label.field > span { display:block; font-size:.8rem; color:var(--muted); margin-bottom:4px; }
  label.field select, label.field input { width:100%; }
  table.edit td { padding:4px 6px; } table.edit input[type=text], table.edit select { padding:6px 8px; width:100%; min-width:6rem; }
  .card { overflow-x:auto; } table.edit { min-width:640px; }
  .formgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:0 14px; }
  .formgrid input[type=date], .formgrid input[type=time], .formgrid input[type=number], .row input[type=date], .row input[type=time] { font:inherit; padding:9px 10px; border-radius:8px; border:1px solid var(--line); background:var(--field); color:var(--text); width:100%; }
  .row input[type=date], .row input[type=time] { width:auto; }
  .chip { display:inline-block; padding:2px 9px; border-radius:999px; font-size:.78rem; border:1px solid var(--line); color:var(--muted); white-space:nowrap; }
  .chip.ok, .chip.st-completada { color:var(--ok); border-color:var(--ok); } .chip.bad, .chip.st-cancelada, .chip.st-no_asistio { color:var(--bad); border-color:var(--bad); }
  .chip.warn { color:var(--warn); border-color:var(--warn); } .chip.st-en_curso { color:var(--rec-big); border-color:var(--rec); } .chip.st-programada { color:var(--accent); border-color:var(--accent); }
  table.appts tr.day th { padding-top:14px; text-transform:capitalize; color:var(--text); font-weight:500; border-bottom:1px solid var(--line); }
  table.appts td.actions { display:flex; gap:6px; flex-wrap:wrap; } table.appts td.actions button { padding:6px 12px; font-size:.85rem; }
  table.appts tr.move td { background:var(--good-bg); }
  table.script td, table.script th { vertical-align:top; } table.script .num { text-align:right; font-variant-numeric:tabular-nums; }
  table.script.lines textarea, table.script.lines input[type=text] { width:100%; min-width:6em; font:inherit; padding:6px 8px; border-radius:8px; border:1px solid var(--line); background:var(--field); color:var(--text); }
  table.script.lines td.times input { display:block; width:7.5em; margin-bottom:6px; } table.script.lines td:nth-child(3) { min-width:30em; width:45%; } table.script.lines textarea { resize:none; overflow:hidden; } table.script.lines textarea { min-height:3.6em; }
  .ghostbtn { cursor:pointer; padding:8px 14px; border:1px solid var(--line); border-radius:10px; display:inline-block; }
  a.small { padding:8px 14px; border:1px solid var(--line); border-radius:10px; text-decoration:none; color:var(--text); }
  .card.letter { display:flex; gap:18px; flex-wrap:wrap; } .card.letter .pic { width:160px; display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
  .card.letter img, .card.letter .nopic { width:160px; height:160px; border-radius:12px; object-fit:cover; background:var(--field); border:1px solid var(--line); }
  .card.letter .nopic { display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:.85rem; } .card.letter .info { flex:1; min-width:240px; }
  .chk { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:.9rem; } .grow-end { margin-left:auto; }
  ol.script { list-style:none; margin:8px 0 0; padding:0; max-height:46vh; overflow:auto; border:1px solid var(--line); border-radius:10px; }
  ol.script li { display:grid; grid-template-columns:68px 120px 1fr; gap:8px; padding:8px 10px; border-bottom:1px solid var(--line); cursor:pointer; align-items:baseline; } ol.script li:last-child { border-bottom:0; }
  ol.script li:hover { background:var(--ring); } ol.script li.cur { background:var(--rec-bg); box-shadow:inset 3px 0 0 var(--rec); } ol.script li.empty { display:block; cursor:default; }
  ol.script .tm { font-variant-numeric:tabular-nums; color:var(--muted); font-size:.85rem; } ol.script b.other { color:var(--muted); font-weight:400; } ol.script .tx { white-space:pre-wrap; }
  ol.script .note { grid-column:2 / -1; color:var(--warn); }
  .tablewrap { overflow-x:auto; } .stages { display:flex; height:10px; border-radius:6px; overflow:hidden; background:var(--line); margin:4px 0 8px; } .stages i { display:block; height:100%; }
  .st-borrador { background:#8a90a0; } .st-adaptado { background:#f2a93b; } .st-revisado { background:#3ecf8e; }
  .stages i.st-borrador, .stages i.st-adaptado, .stages i.st-revisado { transition:width .3s; } .stagelegend { gap:6px; } .chip.st-borrador, .chip.st-adaptado, .chip.st-revisado { background:none; border-color:currentColor; } .chip.st-borrador { color:#8a90a0; } .chip.st-adaptado { color:#d98d17; } .chip.st-revisado { color:var(--ok); }
  select.stage { border-radius:999px; padding:4px 8px; border:1px solid currentColor; background:none; } select.stage.st-borrador { color:#8a90a0; } select.stage.st-adaptado { color:#d98d17; } select.stage.st-revisado { color:var(--ok); }
  .diff h3 { font-size:.85rem; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin:14px 0 6px; } .diff ul { list-style:none; margin:0; padding:0; } .diff li { padding:6px 8px; border-bottom:1px solid var(--line); } .diff .tm { color:var(--muted); margin-right:8px; font-variant-numeric:tabular-nums; }
  .diff li.chg del { display:block; color:var(--bad); } .diff li.chg ins { display:block; text-decoration:none; color:var(--ok); } .diff li.chg small { color:var(--muted); } .diff .add li { border-left:3px solid var(--ok); } .diff .del li { border-left:3px solid var(--bad); }
  .dialog { max-height:90vh; overflow:auto; }

/* Main tabs */
.seg { display:inline-flex; gap:2px; padding:3px; margin:0 0 14px; border:1px solid var(--line); border-radius:999px; background:var(--card, transparent); }
.seg a { padding:6px 16px; border-radius:999px; color:var(--muted); text-decoration:none; font-weight:500; }
.seg a[aria-current="true"] { background:var(--accent); color:#fff; }
.tabs .more { position:relative; margin-left:auto; } .tabs .more summary { list-style:none; cursor:pointer; padding:10px 16px; color:var(--muted); font-weight:500; } .tabs .more summary::-webkit-details-marker { display:none; }
.tabs .more div { position:absolute; right:0; top:100%; z-index:20; min-width:180px; display:flex; flex-direction:column; padding:6px; border:1px solid var(--line); border-radius:12px; background:var(--card, #fff); box-shadow:0 6px 24px #0003; }
.tabs .more div a { border:0; margin:0; border-radius:8px; }

/* Session console: what is used less folds away */
details.fold > summary { cursor:pointer; font-weight:500; list-style:none; } details.fold > summary::-webkit-details-marker { display:none; }
details.fold > summary::before { content:"▸"; display:inline-block; width:1em; color:var(--muted); } details.fold[open] > summary::before { content:"▾"; }
details.fold[open] > summary { margin-bottom:10px; } details.fold h3 { font-size:.95rem; font-weight:500; margin:12px 0 4px; }

/* Appointment: the start button first */
.hero { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; } .hero h2 { margin:2px 0; }
button.big { font-size:1.1rem; padding:14px 26px; }
button.danger { color:var(--bad, #c0392b); border-color:currentColor; }
  .scrim { position:fixed; inset:0; z-index:50; display:grid; place-items:center; padding:16px; background:rgba(0,0,0,.5); }
  .scrim .dialog { width:100%; max-width:34rem; padding:22px; background:var(--card); color:var(--text); border:1px solid var(--line); border-radius:16px; box-shadow:0 18px 50px rgba(0,0,0,.35); }
  .scrim .dialog h2 { margin:0 0 12px; font-size:1.1rem; } .scrim .dialog p { margin:0 0 10px; white-space:pre-line; } .scrim .dialog .row.end { justify-content:flex-end; margin-top:16px; }

  /* References: name, state and buttons side by side on the left; the player is always 16:9. */
  table.refs, table.refs tbody { display:block; } table.refs tr { display:flex; flex-wrap:wrap; align-items:center; gap:6px 24px; } table.refs tr[hidden] { display:none; }
  table.refs td { border:0; padding:8px 0; } table.refs td[colspan] { flex:1 1 100%; }
  table.refs video { display:block; width:100%; max-width:960px; aspect-ratio:16/9; object-fit:contain; background:#000; }
  table.script.lines.gloss textarea { min-height:0; }

  /* Appointments: the form in two rows of three; each row of the list is a tidy line. */
  .formgrid.cols3 { grid-template-columns:repeat(3, minmax(0, 1fr)); } @media (max-width:640px) { .formgrid.cols3 { grid-template-columns:1fr; } }
  table.appts td { vertical-align:middle; padding:14px 12px; } table.appts tr:not(.day):not(.move) td { border-bottom:1px solid var(--line); } table.appts tr:last-child td { border-bottom:0; }
  table.appts td.mono { font-size:1.15rem; font-weight:500; white-space:nowrap; } table.appts td .sub { margin-top:2px; }
  table.appts .stat { display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
  table.appts .acts { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; } table.appts .acts button { padding:6px 12px; font-size:.85rem; }
  table.appts tr.day th { padding:18px 12px 8px; border-bottom:0; font-size:.95rem; }

  /* Appointment cards */
  .row.end { justify-content:flex-end; }
  .apts { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:16px; margin:12px 0; }
  .apt { background:var(--card); border:1px solid var(--line); border-radius:16px; display:flex; flex-direction:column; }
  .apt > * { padding:14px 18px; } .apt > * + * { border-top:1px solid var(--line); }
  .apt-top { display:flex; align-items:center; gap:10px; } .apt-top .chip { margin-left:auto; }
  .apt-time { background:var(--text); color:var(--card); font-family:ui-monospace, Consolas, monospace; font-weight:700; padding:4px 10px; border-radius:8px; }
  .apt-date { color:var(--muted); } .apt-date::first-letter { text-transform:uppercase; }
  .apt-warn { margin:12px 18px 0; padding:10px 12px; border:1px solid var(--bad); border-radius:12px; color:var(--bad); display:flex; justify-content:space-between; align-items:center; gap:10px; border-top:1px solid var(--bad); }
  .apt-warn.soft { color:var(--warn); border-color:var(--warn); }
  .apt-warn .link { background:none; border:0; padding:0; color:inherit; text-decoration:underline; cursor:pointer; font:inherit; }
  .apt > .apt-warn + * { border-top:0; }
  .apt-main { flex:1; } .apt-ch { font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
  .apt-main h3 { margin:4px 0 0; font-size:1.25rem; color:var(--accent); }
  .apt-actor { display:flex; align-items:center; gap:12px; }
  .avatar { width:40px; height:40px; border-radius:50%; background:var(--indigo); color:#fff; display:grid; place-items:center; font-weight:600; font-size:.9rem; flex:none; }
  .apt-foot { display:flex; gap:10px; align-items:center; } .apt-foot .big { flex:1; }
  details.menu { position:relative; } details.menu > summary { list-style:none; cursor:pointer; width:40px; height:40px; display:grid; place-items:center; border:1px solid var(--line); border-radius:12px; font-size:1.2rem; }
  details.menu > summary::-webkit-details-marker { display:none; }
  .menu-list { position:absolute; right:0; bottom:48px; z-index:5; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:6px; display:flex; flex-direction:column; gap:4px; min-width:170px; box-shadow:0 8px 24px rgba(0,0,0,.25); }
  .menu-list button { text-align:left; border:0; }
  /* Appointment cards, closer to the mock-up: tinted header, soft pills, filled warning, round button. */
  .apts { gap:20px; } .apt { border-radius:20px; box-shadow:0 2px 10px rgba(0,0,0,.08); overflow:hidden; }
  .apt-top { background:color-mix(in srgb, var(--text) 4%, var(--card)); padding:16px 18px; }
  .apt-top .chip { padding:5px 14px; font-size:.85rem; font-weight:500; background:color-mix(in srgb, currentColor 12%, transparent); border-color:color-mix(in srgb, currentColor 35%, transparent); }
  .apt-time { font-size:1rem; padding:6px 12px; border-radius:10px; letter-spacing:.02em; }
  .apt-warn { background:color-mix(in srgb, var(--bad) 12%, var(--card)); border:1px solid color-mix(in srgb, var(--bad) 35%, transparent); border-radius:14px; padding:12px 14px; }
  .apt-warn.soft { background:color-mix(in srgb, var(--warn) 14%, var(--card)); border-color:color-mix(in srgb, var(--warn) 35%, transparent); }
  .apt-main { padding-top:16px; padding-bottom:16px; } .apt-main h3 { font-size:1.4rem; font-weight:700; }
  .apt-actor .avatar { width:46px; height:46px; background:linear-gradient(135deg, var(--indigo), var(--rec)); }
  .apt-foot { background:color-mix(in srgb, var(--text) 3%, var(--card)); padding:16px 18px; }
  .apt-foot .big { border-radius:999px; padding:13px 20px; font-weight:600; }
  details.menu > summary { border-radius:50%; background:var(--card); }
  .ico { width:1.05em; height:1.05em; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none; vertical-align:-.15em; } .ico.fill { fill:currentColor; stroke:none; }
  .apt-time { display:inline-flex; align-items:center; gap:6px; } .apt-time .ico { color:var(--accent); }
  .apt-ch { display:flex; align-items:center; gap:6px; } .apt-warn { align-items:flex-start; justify-content:flex-start; } .apt-warn > div { flex:1; } .apt-warn .ico { margin-top:2px; }
  .apt-foot .big { display:flex; align-items:center; justify-content:center; gap:8px; }
  .menu-list button { display:flex; align-items:center; gap:8px; width:100%; } .menu-list .ico { color:var(--muted); }
  .menu-list .danger { color:var(--bad); margin-top:4px; border-top:1px solid var(--line); border-radius:0 0 8px 8px; padding-top:10px; } .menu-list .danger .ico { color:var(--bad); }

  /* List heading with count and the cards/table switch */
  .apts-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:22px 0 4px; } .apts-head h2 { margin:0; font-size:1.15rem; display:flex; align-items:center; gap:8px; }
  .count { background:color-mix(in srgb, var(--accent) 15%, transparent); color:var(--accent); font-size:.8rem; padding:2px 10px; border-radius:999px; font-weight:600; }
  .toggle { display:inline-flex; background:color-mix(in srgb, var(--text) 8%, var(--card)); padding:4px; border-radius:12px; gap:2px; }
  .toggle button { border:0; background:none; color:var(--muted); padding:6px 14px; border-radius:9px; font-weight:500; box-shadow:none; } .toggle button.on { background:var(--card); color:var(--text); box-shadow:0 1px 3px rgba(0,0,0,.2); }
  .apt-main h3 { color:var(--text); } .apt-main h3 span { color:var(--accent); }
  .card.flush { padding:0; overflow:hidden; border-radius:20px; } .card.flush table.appts { width:100%; } .card.flush table.appts th { background:color-mix(in srgb, var(--text) 4%, var(--card)); text-transform:uppercase; font-size:.72rem; letter-spacing:.06em; padding:14px 16px; }
  .card.flush table.appts td { padding:16px; } table.appts .who { display:flex; align-items:center; gap:10px; } .avatar.sm { width:28px; height:28px; font-size:.7rem; }
  table.appts .errline { color:var(--bad); font-size:.78rem; display:flex; align-items:center; gap:4px; } table.appts tr.move:has(.apt-move[hidden]) { display:none; } table.appts tr.move td { padding:8px 16px 16px; }
  .apt-move { padding:0 !important; border:0 !important; }
  .apt > .apt-move { padding:14px 18px !important; border-top:1px solid var(--line) !important; } .apt > .apt-move[hidden] { display:none; }

  /* One look for the whole plugin: same radii, soft shadows, tinted pills, ⋮ menus and table heads. */
  :root { --r-card:18px; --r-menu:14px; --r-ctl:12px; --shadow:0 2px 10px rgba(0,0,0,.08); --shadow-pop:0 10px 28px rgba(0,0,0,.28); }
  .card, .apt { border-radius:var(--r-card); box-shadow:var(--shadow); }
  .sheet, .scrim .dialog, .tabs .more div, .menu-list { border-radius:var(--r-menu); box-shadow:var(--shadow-pop); }
  button, .ghostbtn, a.small, select, input[type=text], input[type=date], input[type=time], input[type=number], textarea { border-radius:var(--r-ctl); }
  .chip { background:color-mix(in srgb, currentColor 12%, transparent); border-color:color-mix(in srgb, currentColor 35%, transparent); font-weight:500; }
  th { text-transform:uppercase; font-size:.72rem; letter-spacing:.06em; }
  table.appts tr.day th { text-transform:capitalize; font-size:.95rem; letter-spacing:0; }
  a.small.primary { background:var(--indigo); border-color:var(--indigo); color:#fff; font-weight:500; }
  .acts.left { justify-content:flex-start; align-items:center; }
  .menu-list a, .menu-list button { display:flex; align-items:center; gap:8px; width:100%; padding:9px 12px; border:0; border-radius:10px; background:transparent; color:var(--text); text-decoration:none; text-align:left; font-weight:400; cursor:pointer; }
  .menu-list a:hover, .menu-list button:hover, .tabs .more div a:hover { background:var(--field); } .menu-list .danger { color:var(--bad); }
  details.menu > summary:hover { background:var(--field); }
  .tabs .more div a { padding:9px 12px; color:var(--text); } 
  td details.menu .menu-list { bottom:auto; top:44px; }
  .menu-list .danger:first-child { border-top:0; margin-top:0; padding-top:9px; border-radius:10px; }
  /* An open ⋮ menu may leave its card. */
  .card:has(details.menu[open]), .apt:has(details.menu[open]) { overflow:visible; }
  .apt-top { border-radius:var(--r-card) var(--r-card) 0 0; } .apt-foot { border-radius:0 0 var(--r-card) var(--r-card); }
  .menu-list a, .menu-list button { font:inherit; font-size:.9rem; font-weight:400; } table.refs td { border-bottom:0 !important; } table.refs tr { border-bottom:1px solid var(--line); } table.refs tr:last-child { border-bottom:0; }
  .apt-time { background:var(--indigo); color:#fff; } .apt-time .ico { color:#fff; }
  table.sessions td { vertical-align:middle; } table.sessions .nowrap { white-space:nowrap; } table.sessions .att { min-width:12rem; } table.sessions .att select, table.sessions .att input { width:100%; margin-top:4px; } table.sessions .att select { margin-top:0; }
  table.sessions a.small { display:inline-block; white-space:nowrap; }
  .formgrid.cols2 { grid-template-columns:repeat(2, minmax(0, 1fr)); } .formgrid.cols2 .wide { grid-column:1 / -1; } @media (max-width:560px) { .formgrid.cols2 { grid-template-columns:1fr; } }
  .scrim .dialog { max-height:90vh; overflow:auto; } .scrim .dialog input, .scrim .dialog select, .scrim .dialog textarea { width:100%; font:inherit; padding:9px 10px; border:1px solid var(--line); background:var(--field); color:var(--text); }
  /* A picker with a search box */
  .combo { position:relative; min-width:14rem; } .combo input { width:100%; }
  .combo-list { position:absolute; left:0; right:0; top:100%; margin-top:4px; z-index:30; max-height:260px; overflow:auto; background:var(--card); border:1px solid var(--line); border-radius:var(--r-menu); box-shadow:var(--shadow-pop); padding:6px; }
  .combo-list button { display:block; width:100%; text-align:left; padding:8px 10px; border:0; border-radius:8px; background:transparent; color:var(--text); font-weight:400; } .combo-list button:hover { background:var(--field); }
  .combo-list .new { color:var(--accent); font-weight:500; border-bottom:1px solid var(--line); border-radius:8px 8px 0 0; margin-bottom:4px; } .combo-list p { margin:8px 10px; }
  .card.flush:has(.combo-list:not([hidden])) { overflow:visible; }
  a.dl { display:inline-grid; place-items:center; width:40px; height:40px; border-radius:50%; background:var(--indigo); color:#fff; } a.dl:hover { filter:brightness(1.15); } a.dl .ico { width:20px; height:20px; }
  .card:has(.combo-list:not([hidden])) { overflow:visible; } .combo-list { max-height:240px; }
  .pager { display:flex; align-items:center; justify-content:center; gap:14px; margin:6px 0 18px; } .pager button { width:40px; height:40px; padding:0; border-radius:50%; }
  .sheet .combo-list { top:auto; bottom:100%; margin:0 0 4px; max-height:200px; }
  .dls { display:flex; gap:8px; align-items:center; } a.dl.alt { background:transparent; color:var(--accent); border:1px solid var(--line); }
