:root {
  --bg: #0d0c0f; --panel: #17151b; --panel2: #1f1c24; --line: #2c2833; --text: #d8d5de; --muted: #8f8a99;
  --accent: #8b1e2d; --accent2: #b3283b; --ok: #3f7d58; --warn: #b07a1e; --err: #b3283b;
  --radius: 10px; --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
/* Designs: dunkel (Standard), hell, violett – Auswahl je Gerät (Cookie nornir_theme) */
:root[data-theme="light"] {
  --bg: #f6f4f1; --panel: #ffffff; --panel2: #f0ece6; --line: #ddd6cc; --text: #221f26; --muted: #6d6774;
  --accent: #8b1e2d; --accent2: #a8263a; color-scheme: light;
}
:root[data-theme="violet"] {
  --bg: #0f0b14; --panel: #191222; --panel2: #221830; --line: #33264a; --text: #e2dbec; --muted: #9a8fae;
  --accent: #7b3fbf; --accent2: #9555d9; color-scheme: dark;
}
:root[data-theme="light"] .side { background: linear-gradient(180deg, #efebe5, #e7e1d8); }
:root[data-theme="light"] .topbar { background: rgba(246,244,241,.92); }
:root[data-theme="light"] .entry, :root[data-theme="light"] .hit { border-bottom-color: #e6e0d6; }
:root[data-theme="light"] .flash { background: #e6f4ea; border-color: #9fd0b0; }
:root[data-theme="light"] .error { background: #fbe9eb; border-color: #e3a6ae; }
:root[data-theme="light"] .warn { background: #fdf3e2; border-color: #e6c48a; }
:root[data-theme="light"] .badge.bill { color: #2f7a4d; border-color: #9fd0b0; }
:root[data-theme="light"] .badge.no { color: #a33a48; border-color: #e3a6ae; }
:root[data-theme="light"] .badge.open { color: #8a5a12; border-color: #e0c08a; }
:root[data-theme="light"] .badge.emp { color: #6a4ea0; border-color: #c7b6e6; }
:root[data-theme="light"] .side a.nav.on { color: var(--text); }
:root[data-theme="violet"] .side { background: linear-gradient(180deg, #150e1d, #0c0811); }
:root[data-theme="violet"] .running { box-shadow: 0 0 0 1px var(--accent), 0 0 24px #7b3fbf33; }
.pre { white-space: pre-wrap; font-size: .85rem; color: var(--muted); }
.wide-card { max-width: 640px; }
.choice { display: flex; justify-content: space-between; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; margin-bottom: 8px; }
.choice:hover { border-color: var(--accent); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.slots .btn { min-width: 76px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.inline { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0 0; }
.inline input { width: auto; flex: 1 1 140px; padding: 6px 8px; }
.inline button { padding: 6px 12px; }
.session { grid-template-columns: 6px 1fr auto; }
.menu { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.menuitem { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none;
  color: var(--text); border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0;
  border-radius: 0; text-align: left; font: inherit; cursor: pointer; min-height: 60px; }
.menuitem:hover { background: var(--panel2); }
.menuitem small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.menuitem .mi { font-size: 1.3rem; text-align: center; }
.menuitem .chev { color: var(--muted); font-size: 1.3rem; }
.menuitem-form { margin: 0; }
.menuitem-form .menuitem { border-bottom: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; border-radius: 12px; min-height: 0; }
.tile[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile-prev { display: block; height: 64px; border-radius: 8px; border: 1px solid rgba(128,128,128,.3); }
.tile-dark .tile-prev { background: linear-gradient(90deg, #121015 0 28%, #17151b 28% 100%), #0d0c0f; box-shadow: inset -40px -18px 0 -30px #8b1e2d; }
.tile-light .tile-prev { background: linear-gradient(90deg, #ebe6df 0 28%, #ffffff 28% 100%); box-shadow: inset -40px -18px 0 -30px #8b1e2d; }
.tile-violet .tile-prev { background: linear-gradient(90deg, #150e1d 0 28%, #191222 28% 100%); box-shadow: inset -40px -18px 0 -30px #7b3fbf; }
.attendees { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 4px; }
.inline-badge { display: inline; margin: 0 0 0 4px; }
.modrow.small { font-size: .8rem; gap: 4px; }
a.link { color: var(--muted); font-size: .85rem; }
.modrow { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--text); }
.modrow input { width: 22px; height: 22px; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); }
a { color: var(--text); text-decoration-color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .02em; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; color: var(--muted); }
.app { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, #121015, #0b0a0d); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand b { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .12em; text-transform: uppercase; }
.brand small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .05em; }
.side a.nav { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.side a.nav:hover { background: var(--panel); color: var(--text); }
.side a.nav.on { background: var(--panel2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.side .grow { flex: 1; }
.side .search { margin: 0 0 10px; }
.side .search input { padding: 8px 10px; }
.hit { padding: 10px 4px; border-bottom: 1px solid #1d1a21; }
.hit .meta { color: var(--muted); font-size: .82rem; }
.objects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.obj { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.obj dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 8px 0 0; font-size: .88rem; }
.obj dt { color: var(--muted); }
.obj dd { margin: 0; white-space: pre-wrap; }
.side form { margin: 0; }
.side .who { color: var(--muted); font-size: .8rem; padding: 8px 12px; border-top: 1px solid var(--line); }
main { padding: 26px 34px; max-width: 1200px; width: 100%; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 140px; }
.row > .narrow { flex: 0 1 110px; }
.row > .wide { flex: 3 1 280px; }
.row > form { flex: 0 0 auto; }
label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
input, select, textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
input[type=color] { padding: 2px; height: 40px; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 16px; font: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; }
button:hover, .btn:hover { border-color: var(--muted); }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover { background: var(--accent2); }
button.danger { color: #f0b3bb; border-color: #5a2029; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; }
.timer { display: grid; grid-template-columns: 3fr 2fr 2fr auto auto; gap: 10px; align-items: end; }
.clock { font-family: var(--serif); font-size: 2rem; font-variant-numeric: tabular-nums; min-width: 120px; text-align: right; }
.running { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 24px #8b1e2d33; }
.weeknav { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 14px; }
.sum { color: var(--muted); }
.sum b { color: var(--text); font-variant-numeric: tabular-nums; }
.day { margin-bottom: 16px; }
.dayhead { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; padding: 0 4px 6px; border-bottom: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: 6px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid #1d1a21; }
.entry .bar { width: 6px; height: 34px; border-radius: 3px; background: var(--muted); }
.entry .desc { font-weight: 500; }
.entry .meta { color: var(--muted); font-size: .82rem; }
.entry .when { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; text-align: right; }
.entry .len { font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.badge { display: inline-block; font-size: .7rem; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.badge.bill { border-color: #2f5c43; color: #8fd0a9; }
.badge.no { border-color: #4a2a30; color: #d49aa3; }
.badge.open { border-color: #5c4a2a; color: #e0c08a; }
.badge.emp { border-color: #4b4060; color: #b8a8d8; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: .8rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; background: var(--muted); }
.flash, .error, .warn { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.flash { background: #15281d; border: 1px solid #2f5c43; }
.error { background: #2a1317; border: 1px solid #5a2029; }
.warn { background: #2a2113; border: 1px solid #5a4520; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 30px; }
.card .brand { justify-content: center; }
.card form > * + * { margin-top: 12px; }
.card button { width: 100%; }
.muted { color: var(--muted); }
.codes { font-family: ui-monospace, monospace; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.qr { background: #fff; padding: 10px; border-radius: 8px; width: 260px; display: block; margin: 10px auto; }
.mono { font-family: ui-monospace, monospace; word-break: break-all; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.right { text-align: right; }
footer { color: #57525f; font-size: .72rem; margin-top: 30px; }
/* ---------- Mobil (mobile first für die Bedienung unterwegs) ---------- */
.topbar { display: none; }
@media (max-width: 860px) {
  html, body { font-size: 16px; }
  .app { grid-template-columns: 1fr; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 5; background: rgba(13,12,15,.92); backdrop-filter: blur(8px); }
  .topbar img { width: 28px; height: 28px; }
  .topbar b { font-family: var(--serif); letter-spacing: .12em; text-transform: uppercase; }
  .topbar .btn { margin-left: auto; min-height: 40px; padding: 6px 12px; }
  .side { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; flex-direction: row; justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); gap: 0; }
  .side .brand, .side .grow, .side .who, .side form, .side a.nav.desk, .desk-only { display: none; }
  .side a.nav { flex: 1; text-align: center; padding: 8px 2px; font-size: .72rem; border-radius: 10px; min-height: 48px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
  .side a.nav::before { content: attr(data-icon); font-size: 1.25rem; line-height: 1; }
  .side a.nav.on { box-shadow: none; color: #fff; background: var(--panel2); }
  main { padding: 14px 14px 24px; }
  h1 { font-size: 1.35rem; }
  input, select, textarea, button, .btn { font-size: 16px; min-height: 46px; }
  .timer { grid-template-columns: 1fr; }
  .timer button, .running button { width: 100%; min-height: 54px; font-size: 1.05rem; }
  .row > *, .row > .narrow, .row > .wide { flex: 1 1 100%; }
  .row > .narrow { flex: 1 1 45%; }
  .clock { font-size: 2.2rem; text-align: left; }
  .weeknav { gap: 8px; flex-wrap: wrap; }
  .weeknav .sum { order: 3; width: 100%; text-align: center; }
  .entry { grid-template-columns: 6px 1fr auto; padding: 12px 2px; }
  .entry .when { grid-column: 2; text-align: left; order: 3; }
  .entry .len { grid-row: 1; grid-column: 3; font-size: 1.05rem; }
  .entry .len a { display: inline-block; padding: 10px 4px; }
  .panel { padding: 14px; border-radius: 12px; }
  table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .card { padding: 22px; border-radius: 12px; }
  .qr { width: 220px; }
  details summary { padding: 10px 0; }
}

/* Formulare */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fpage { border: 0; padding: 0; margin: 0 0 16px; }
.fpage legend { font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; }
.ffield { margin-bottom: 14px; }
.ffield .opts { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.fform.js .fpage:not(.cur) { display: none; }
.ffield.off { display: none; }
.answer { margin-bottom: 10px; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tab { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.tab.on { border-color: var(--accent); }
details.entry > summary { cursor: pointer; padding: 6px 0; }

/* Kundenportal: Handy einspaltig, Tablet/PC breit mit Navigation und Spalten */
.portal { max-width: 1120px; margin: 0 auto; padding: 12px 14px 40px; }
.pnav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.pbrand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pbrand img { height: 34px; width: auto; }
.pnav nav { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.pnav nav a { white-space: nowrap; padding: 8px 12px; border-radius: 999px; text-decoration: none; }
.pnav nav a.on, .pnav nav a:hover { background: var(--panel); outline: 1px solid var(--accent); }
.pgrid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.pbox, .pcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.pcard { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.portal .choice { background: var(--panel); }
.portal button { width: auto; }
.portal table { width: 100%; }
@media (min-width: 760px) {
  .portal { padding: 18px 24px 48px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pwide { grid-column: 1 / -1; }
  .pnav { justify-content: space-between; }
}
@media (min-width: 1100px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Kalender */
.calbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calnav { display: flex; gap: 6px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg a { padding: 6px 12px; text-decoration: none; }
.seg a.on { background: var(--accent); color: #fff; }
.legend { font-size: .82rem; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.fillbar { display: inline-block; width: 56px; height: 6px; border-radius: 3px; background: rgba(127,127,127,.25); vertical-align: middle; overflow: hidden; }
.fillbar i { display: block; height: 100%; width: 0; }
.fillbar i.full { width: 100%; }
.f-red i { background: #c23b3b; } .f-yellow i { background: #d6a21e; } .f-green i { background: #3f9d5a; }
.cev { border-left: 3px solid var(--accent); background: var(--panel); border-radius: 6px; padding: 3px 6px; margin: 2px 0; font-size: .8rem; line-height: 1.25; overflow: hidden; }
.cev.cancelled { opacity: .55; text-decoration: line-through; } .cev.tentative { border-left-style: dashed; }
.cev a { text-decoration: none; } .cevt { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cevf, .cevl { color: var(--muted); margin-left: 4px; } .cevl { display: block; margin-left: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Tag/Woche: Handy gestapelt, ab Tablet Zeitleiste */
.tgrid { display: block; }
.thours { display: none; }
.tcol { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 6px; }
.tcol.today { border-color: var(--accent); }
.tcolhead { display: block; text-decoration: none; padding: 4px 2px; }
@media (min-width: 760px) {
  .tgrid { display: grid; grid-template-columns: 48px repeat(var(--cols, 7), minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .tgrid.cols-1 { --cols: 1; } .tgrid.cols-7 { --cols: 7; }
  .thours { display: block; padding-top: 58px; }
  .th { height: 60px; font-size: .72rem; color: var(--muted); text-align: right; padding-right: 6px; transform: translateY(-.5em); }
  .tcol { border: 0; border-left: 1px solid var(--line); border-radius: 0; margin: 0; padding: 0; }
  .tcolhead { height: 34px; text-align: center; font-size: .82rem; border-bottom: 1px solid var(--line); }
  .tallday { min-height: 24px; border-bottom: 1px solid var(--line); padding: 0 2px; }
  .tbody { position: relative; height: 960px; background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% 60px; }
  .tev { position: absolute; left: 2px; right: 2px; top: calc(var(--top, 0) * 1px); height: calc(var(--h, 30) * 1px); }
  .tev .cev { height: 100%; margin: 0; }
  .tcol.today .tcolhead { color: var(--accent); }
}
/* Monat */
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mhead { padding: 6px; font-size: .78rem; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.mcell { min-height: 110px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; overflow: hidden; }
.mcell.out { opacity: .45; } .mcell.today { box-shadow: inset 0 0 0 2px var(--accent); }
.mday { font-weight: 600; text-decoration: none; font-size: .85rem; }
.more { font-size: .75rem; color: var(--muted); }
@media (max-width: 759px) { .mcell { min-height: 64px; } .mcell .cev { font-size: .68rem; padding: 2px 3px; } .mcell .cevl, .mcell .cevf { display: none; } }
/* Jahr */
.ygrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ymonth { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.yhead { display: block; font-weight: 600; text-decoration: none; margin-bottom: 6px; }
.ydays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: .72rem; text-align: center; }
.ywd { color: var(--muted); }
.yd { padding: 3px 0; border-radius: 4px; text-decoration: none; }
.yd.l1 { background: rgba(63,157,90,.25); } .yd.l2 { background: rgba(63,157,90,.5); } .yd.l3 { background: rgba(63,157,90,.8); color: #fff; }
.yd.today { outline: 2px solid var(--accent); }

/* öffentliche Seiten / Kundenportal: Schrift und Überschriftenfarbe aus dem Designeditor */
body[data-public="1"] { font-family: var(--font, var(--sans)); }
body[data-public="1"] h1, body[data-public="1"] h2, body[data-public="1"] h3, body[data-public="1"] .brand b, body[data-public="1"] .pbrand b { font-family: var(--font, var(--serif)); color: var(--heading, inherit); }
body[data-public="1"] .pbrand b { letter-spacing: .02em; }
body[data-public="1"] .btn.primary, body[data-public="1"] button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
body[data-public="1"] .pnav nav a.on { outline-color: var(--accent); }

.logo-preview { max-height: 48px; vertical-align: middle; background: #fff; padding: 4px; border-radius: 6px; }

/* Mandant wechseln */
.tswitch { margin: 4px 12px 10px; font-size: .85rem; }
.tswitch summary { cursor: pointer; color: var(--muted); }
.tswitch form { margin: 4px 0 0 10px; }
.tswitch button.link { text-align: left; }
@media (max-width: 860px) { .tswitch { display: none; } }
/* Kalender: neuer Termin per Klick/Ziehen */
.mcell[data-day], .tbody { cursor: copy; }
.mcell .cev, .tev { cursor: pointer; }
.tsel { position: absolute; left: 2px; right: 2px; top: calc(var(--top, 0) * 1px); height: calc(var(--h, 60) * 1px); border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 30%, transparent); border: 1px dashed var(--accent); pointer-events: none; z-index: 3; }
.tbody { touch-action: pan-x; }
dialog.dlg { max-width: 720px; width: calc(100% - 24px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); padding: 18px; }
dialog.dlg::backdrop { background: rgba(0, 0, 0, .55); }
dialog.dlg .full { flex-basis: 100%; margin: 0 0 6px; }
