/* AutoDimona — the portal's design system. Calm, modern, touch-friendly; light and dark. */

:root {
  --bg: #f5f6fa;
  --bg-2: #eef0f6;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --border: #e3e6ef;
  --border-strong: #cfd4e2;
  --text: #171a2b;
  --text-2: #4a5068;
  --muted: #7a8099;
  --brand: #4f46e5;
  --brand-2: #6366f1;
  --brand-soft: #eef0ff;
  --brand-text: #ffffff;
  --accent: #0ea5e9;
  --ok: #059669;
  --ok-soft: #e7f7f0;
  --warn: #b45309;
  --warn-soft: #fff5e6;
  --bad: #dc2626;
  --bad-soft: #fdecec;
  --info-soft: #e8f4fd;
  --shadow-1: 0 1px 2px rgba(20, 24, 50, .06), 0 1px 3px rgba(20, 24, 50, .05);
  --shadow-2: 0 8px 24px rgba(20, 24, 50, .08), 0 2px 6px rgba(20, 24, 50, .05);
  --shadow-3: 0 24px 60px rgba(20, 24, 50, .18);
  --radius: 14px;
  --radius-sm: 10px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1020; --bg-2: #13162a; --surface: #171a2e; --surface-2: #1c2036; --border: #272c47; --border-strong: #353b5c;
    --text: #eceefa; --text-2: #b8bdd6; --muted: #868cab; --brand: #7c78ff; --brand-2: #8f8cff; --brand-soft: #23244a;
    --ok: #34d399; --ok-soft: #10302a; --warn: #fbbf24; --warn-soft: #33290f; --bad: #f87171; --bad-soft: #3a1a1f; --info-soft: #14283a;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 8px 24px rgba(0, 0, 0, .35); --shadow-3: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1020; --bg-2: #13162a; --surface: #171a2e; --surface-2: #1c2036; --border: #272c47; --border-strong: #353b5c;
  --text: #eceefa; --text-2: #b8bdd6; --muted: #868cab; --brand: #7c78ff; --brand-2: #8f8cff; --brand-soft: #23244a;
  --ok: #34d399; --ok-soft: #10302a; --warn: #fbbf24; --warn-soft: #33290f; --bad: #f87171; --bad-soft: #3a1a1f; --info-soft: #14283a;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 8px 24px rgba(0, 0, 0, .35); --shadow-3: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 750; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0 0 .8em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.mono { font-family: var(--mono); font-size: .88em; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }
.grow { flex: 1; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ── layout ── */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; font-weight: 800; font-size: 1.08rem; color: var(--text); letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; color: #fff; font-size: 17px; box-shadow: var(--shadow-1); flex: none; }
.brand-logo { width: 32px; height: 32px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--border); flex: none; }
.nav-section { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 12px 4px; font-weight: 650; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-weight: 550; text-decoration: none; transition: background .15s, color .15s; }
.nav a:hover { background: var(--bg-2); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--brand); }
.nav .ico { width: 20px; text-align: center; font-size: 16px; flex: none; }
.nav .badge { margin-left: auto; }
.sidebar-foot { margin-top: auto; padding: 12px; font-size: .8rem; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.topbar .title { font-weight: 700; font-size: 1.05rem; }
.content { padding: 26px 28px 60px; max-width: 1280px; width: 100%; }
.content.wide { max-width: none; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow-3); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .content { padding: 18px 16px 60px; }
  .scrim { position: fixed; inset: 0; background: rgba(10, 12, 30, .4); z-index: 40; }
}

/* ── building blocks ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 20px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }   /* cards side by side in a grid line up */
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.soft { background: var(--surface-2); box-shadow: none; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 6px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--text-2); max-width: 720px; }

.stat { padding: 18px 20px; }
.stat .label { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-size: 1.9rem; font-weight: 750; letter-spacing: -.02em; margin-top: 4px; }
.stat .sub { color: var(--text-2); font-size: .86rem; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .92rem; padding: 9px 15px; border-radius: 10px; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; text-decoration: none; white-space: nowrap; min-height: 38px; }
.btn:hover { background: var(--bg-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-text); box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn.primary:hover { background: var(--brand-2); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--bg-2); }
.btn.sm { padding: 5px 10px; font-size: .84rem; min-height: 30px; border-radius: 8px; }
.btn.lg { padding: 13px 22px; font-size: 1rem; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.icon { padding: 7px; min-width: 38px; }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }

/* ── forms ── */
label.field, .field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--text-2); }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=search], input[type=tel], select, textarea {
  font: inherit; font-size: .95rem; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 9px 12px; width: 100%; min-height: 40px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
input[type=color] { width: 52px; height: 40px; padding: 3px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 550; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .86rem; color: var(--text-2); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

/* ── tables ── */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--surface-2); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── badges, pills, avatars ── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--bg-2); color: var(--text-2); white-space: nowrap; line-height: 1.3; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.badge.info { background: var(--info-soft); color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: .82rem; flex: none; letter-spacing: .02em; }
.avatar.lg { width: 48px; height: 48px; font-size: 1rem; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .who { min-width: 0; }
.person .who b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .who span { color: var(--muted); font-size: .82rem; }

/* ── notices ── */
.notice { border-radius: 12px; padding: 12px 14px; background: var(--info-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); display: flex; gap: 10px; align-items: flex-start; }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.notice.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.notice.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.notice .ico { font-size: 18px; line-height: 1.3; }
.notice p:last-child { margin-bottom: 0; }
.empty { text-align: center; padding: 38px 20px; color: var(--muted); }
.empty .big { font-size: 34px; margin-bottom: 8px; }

/* ── modal, toast ── */
.modal-back { position: fixed; inset: 0; background: rgba(12, 14, 32, .45); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-3); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; animation: pop .18s ease-out; }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px 0; }
.modal-head h2 { margin: 0; font-size: 1.15rem; }
.modal-body { padding: 16px 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px 20px; flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--text); color: var(--surface); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-3); font-weight: 550; animation: pop .18s ease-out; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.spinner { width: 18px; height: 18px; border: 2.5px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 60px; color: var(--muted); }

/* ── auth pages ── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: radial-gradient(1200px 600px at 0% 0%, #6366f1 0%, transparent 60%), radial-gradient(900px 600px at 100% 100%, #0ea5e9 0%, transparent 55%), #1e1b4b; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h1 { font-size: 2.2rem; max-width: 460px; }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; max-width: 460px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; opacity: .95; }
.auth-side li span:first-child { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; flex: none; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .card { padding: 28px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ── setup guide ── */
.progress { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 99px; transition: width .4s; }
.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.step.current { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.step .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: .9rem; background: var(--bg-2); color: var(--text-2); flex: none; }
.step.done .num { background: var(--ok); color: #fff; }
.step.skipped .num { background: var(--border-strong); color: #fff; }
.step .body { flex: 1; min-width: 0; }
.step .body p { margin: 2px 0 0; color: var(--text-2); font-size: .9rem; }

/* ── planner ── */
.planner.week { grid-template-columns: minmax(170px, 1.1fr) repeat(7, minmax(120px, 1fr)); }
.planner { display: grid; border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; background: var(--surface); box-shadow: var(--shadow-1); }
.planner .ph, .planner .pc, .planner .pn { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.planner .ph { background: var(--surface-2); padding: 9px 10px; font-size: .82rem; font-weight: 700; color: var(--text-2); position: sticky; top: 0; z-index: 2; }
.planner .ph.today { color: var(--brand); background: var(--brand-soft); }
.planner .ph .hol { display: block; font-weight: 600; color: var(--warn); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.planner .pn { padding: 8px 10px; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 170px; }
.planner .pc { padding: 5px; min-height: 58px; min-width: 120px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: background .12s; }
.planner .pc:hover { background: var(--surface-2); }
.planner .pc.holiday { background: repeating-linear-gradient(-45deg, transparent 0 8px, color-mix(in srgb, var(--warn) 7%, transparent) 8px 16px); }
.planner .pc.absent { background: repeating-linear-gradient(-45deg, transparent 0 8px, color-mix(in srgb, var(--bad) 8%, transparent) 8px 16px); }
.planner .pc .abs { font-size: .72rem; font-weight: 700; color: var(--bad); }
.planner .pc .add { opacity: 0; color: var(--muted); font-size: .8rem; text-align: center; margin-top: auto; }
.planner .pc:hover .add { opacity: 1; }
.chip { border-radius: 8px; padding: 5px 8px; font-size: .8rem; font-weight: 650; color: var(--text); background: color-mix(in srgb, var(--c, var(--brand)) 13%, var(--surface)); border-left: 3px solid var(--c, var(--brand)); cursor: pointer; line-height: 1.3; }
.chip:hover { background: color-mix(in srgb, var(--c, var(--brand)) 22%, var(--surface)); }
.chip .t { font-variant-numeric: tabular-nums; }
.chip .meta { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 2px; font-weight: 600; font-size: .7rem; color: var(--text-2); }
.chip.open { --c: var(--warn); border-left-style: dashed; }

/* ── misc ── */
.kbd { font-family: var(--mono); background: var(--bg-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-size: .82rem; }
.qr { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--border); display: inline-block; }
.qr img, .qr svg { display: block; width: 180px; height: 180px; }
.code-box { font-family: var(--mono); font-size: .8rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; white-space: pre-wrap; word-break: break-all; max-height: 320px; overflow: auto; }
.diff { font-family: var(--mono); font-size: .78rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; overflow: auto; max-height: 560px; }
.diff div { white-space: pre; padding: 0 12px; }
.diff .add { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.diff .del { background: color-mix(in srgb, var(--bad) 14%, transparent); }
.diff .hunk { color: var(--accent); background: var(--info-soft); }
.diff .file { font-weight: 700; background: var(--bg-2); padding-top: 6px; padding-bottom: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--text-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.kiosk-preview { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-2); }
.kiosk-preview .kp-head { padding: 18px 20px; color: #fff; display: flex; align-items: center; gap: 12px; }
.kiosk-preview .kp-head img { width: 44px; height: 44px; border-radius: 10px; background: #fff; object-fit: contain; }
.kiosk-preview .kp-body { padding: 18px 20px; background: var(--surface-2); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kiosk-preview .kp-tile { background: var(--surface); border-radius: 12px; padding: 14px 8px; text-align: center; border: 1px solid var(--border); font-weight: 650; font-size: .85rem; }
.kiosk-preview .kp-tile .avatar { margin: 0 auto 6px; }
.pinpad-hint { letter-spacing: .3em; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.list-plain li:last-child { border-bottom: 0; }
.alert-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.alert-item:last-child { border-bottom: 0; }
.print-only { display: none; }
.poster { text-align: center; padding: 40px; }
.poster .qr svg, .poster .qr img { width: 340px; height: 340px; }
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .no-print, .toasts { display: none !important; }
  .app { display: block; }
  .print-only { display: block; }
  .content { padding: 0; }
  .card { box-shadow: none; border: 0; }
  .content:has(> .modal-back) > :not(.modal-back) { display: none !important; }
  .modal-back { position: static; background: none; backdrop-filter: none; padding: 0; }
  .modal { box-shadow: none; max-height: none; }
  .modal-head, .modal-foot { display: none; }
}
.mail-frame { width: 100%; height: 560px; border: 1px solid var(--border); border-radius: 12px; background: #f4f5f8; }

/* availability in the planner */
.planner .pc.av-unavailable { background: repeating-linear-gradient(-45deg, transparent 0 8px, color-mix(in srgb, var(--bad) 6%, transparent) 8px 16px); }
.planner .pc .avl { font-size: .7rem; font-weight: 700; }
.planner .pc .avl.available { color: var(--ok); }
.planner .pc .avl.unavailable { color: var(--bad); }
