/* HostMate styles. Colours are tokens on :root, redefined for dark mode below; use the
   tokens (var(--...)) in templates and page CSS, never hard-coded colours. */

:root {
  --bg: #f5f7fa; --card: #fff; --card-2: #f0f3f7; --text: #1d2330; --muted: #5f6b7d; --line: #e3e7ee;
  --input-line: #cfd5de; --input-bg: #fff;
  --brand: #1f6feb; --brand-strong: #1758c7; --brand-soft: #e8f0fe; --on-brand: #fff; --accent: #ffc233;
  --ok: #1a7f37; --fix: #b35900; --replace: #c62828; --info: #1f6feb; --warn-text: #8a6100;
  --ok-bg: #e7f5ea; --fix-bg: #fff1e0; --replace-bg: #fde7e7; --warn-bg: #fff8db; --info-bg: #e8f0fe; --neutral-bg: #eef1f5;
  --sidebar-bg: #1d2330; --sidebar-text: #c9d1de; --sidebar-muted: #8592a6; --sidebar-hover: #2a3243; --sidebar-active: #313b50;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 6px 24px rgba(16, 24, 40, .12);
  --radius: 10px;
  --sidebar-w: 232px;
  --topbar-h: 0px;
  color-scheme: light;
}
/* Dark tokens: follow the OS unless the user picked a theme (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141c; --card: #171d27; --card-2: #1d2430; --text: #e6eaf0; --muted: #98a3b4; --line: #283141;
    --input-line: #3a4456; --input-bg: #121821;
    --brand: #5b9bff; --brand-strong: #7fb0ff; --brand-soft: #1b2a44; --on-brand: #0b1220;
    --ok: #4cc472; --fix: #f0a050; --replace: #ff7b7b; --info: #7fb0ff; --warn-text: #f2cc60;
    --ok-bg: #16301f; --fix-bg: #3a2712; --replace-bg: #3d1a1a; --warn-bg: #33290d; --info-bg: #1b2a44; --neutral-bg: #232b38;
    --sidebar-bg: #0b0f15; --sidebar-text: #c2cad6; --sidebar-muted: #6f7b8e; --sidebar-hover: #19202b; --sidebar-active: #212a38;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 6px 24px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f141c; --card: #171d27; --card-2: #1d2430; --text: #e6eaf0; --muted: #98a3b4; --line: #283141;
  --input-line: #3a4456; --input-bg: #121821;
  --brand: #5b9bff; --brand-strong: #7fb0ff; --brand-soft: #1b2a44; --on-brand: #0b1220;
  --ok: #4cc472; --fix: #f0a050; --replace: #ff7b7b; --info: #7fb0ff; --warn-text: #f2cc60;
  --ok-bg: #16301f; --fix-bg: #3a2712; --replace-bg: #3d1a1a; --warn-bg: #33290d; --info-bg: #1b2a44; --neutral-bg: #232b38;
  --sidebar-bg: #0b0f15; --sidebar-text: #c2cad6; --sidebar-muted: #6f7b8e; --sidebar-hover: #19202b; --sidebar-active: #212a38;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 6px 24px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.45rem; margin: .2rem 0 1rem; line-height: 1.25; }
h2 { font-size: 1.1rem; margin: 1.5rem 0 .6rem; }
.container { max-width: 1040px; margin: 0 auto; padding: 20px 16px 48px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.inline { display: inline; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.icon { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; }
.icon-title { width: 22px; height: 22px; margin-right: 8px; color: var(--muted); vertical-align: -3px; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--brand); color: var(--on-brand);
  padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------- App shell
   Desktop: fixed sidebar on the left. Phone: top bar with a menu button; the
   sidebar slides in as a drawer. */
.app-topbar { display: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--sidebar-bg); color: var(--sidebar-text);
  display: flex; flex-direction: column; z-index: 40; overflow-y: auto; }
.app-main { margin-left: var(--sidebar-w); min-height: 100vh; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; color: #fff; font-weight: 600; }
.sidebar-brand:hover { text-decoration: none; }
.sidebar-brand img { width: 30px; height: 30px; }
.sidebar-brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sidebar-brand .brand-company { font-size: .78rem; font-weight: 400; color: var(--sidebar-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-section { padding: 6px 10px; }
.nav-section-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sidebar-muted);
  margin: 10px 8px 4px; font-weight: 600; }
.nav-link { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--sidebar-text); font: inherit;
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer; }
.nav-link:hover { background: var(--sidebar-hover); color: #fff; text-decoration: none; }
.nav-link.is-current { background: var(--sidebar-active); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nav-link .icon { opacity: .85; }
.sidebar-foot { margin-top: auto; padding: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: #fff; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center;
  font-weight: 600; font-size: .85rem; flex: 0 0 auto; }
.sidebar-user .who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sidebar-user .who small { color: var(--sidebar-muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-toggle .when-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .when-dark { display: inline; }
:root[data-theme="dark"] .theme-toggle .when-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .when-dark { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .when-light { display: none; }
}
.sidebar-backdrop { display: none; }

@media (max-width: 899px) {
  :root { --topbar-h: 50px; }
  .app-topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 10px; padding: 8px 12px;
    background: var(--sidebar-bg); color: #fff; }
  .app-topbar .brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; min-width: 0; }
  .app-topbar .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-topbar .brand img { width: 26px; height: 26px; }
  .topbar-btn { background: none; border: 0; color: #fff; padding: 8px; border-radius: 8px; cursor: pointer; line-height: 0; }
  .topbar-btn:hover { background: var(--sidebar-hover); }
  .app-main { margin-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-md); width: min(280px, 85vw); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 35; }
  body.nav-open { overflow: hidden; }
}

/* Operator pages and other plain layouts keep the simple top bar. */
.topbar { background: var(--sidebar-bg); color: #fff; padding: 10px 16px; display: flex; flex-wrap: wrap;
  gap: 8px 16px; align-items: center; justify-content: space-between; }
.topbar a, .topbar .link { color: #e6ebf5; }
.topbar .brand { font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.topbar nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.brand-mark { width: 26px; height: 26px; display: block; }
.login-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.login-brand img { width: 36px; height: 36px; }

/* --------------------------------------------------------------- Basics */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
  box-shadow: var(--shadow-sm); color: inherit; }
.stat .label { color: var(--muted); font-size: .8rem; }
.stat .value { font-size: 1.35rem; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat .hint { color: var(--muted); font-size: .8rem; margin-top: 2px; }
a.stat-link:hover { text-decoration: none; border-color: var(--brand); }
.stat.tone-warn { border-left: 4px solid var(--fix); }
.stat.tone-danger { border-left: 4px solid var(--replace); }
.stat.tone-ok { border-left: 4px solid var(--ok); }

table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { background: var(--card-2); font-size: .78rem; color: var(--muted); font-weight: 600; }
tfoot th { border-top: 1px solid var(--line); border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
tbody tr:hover td { background: color-mix(in srgb, var(--card-2) 50%, transparent); }

label { display: block; font-weight: 500; margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=search],
input[type=number], input[type=month], select, textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--input-line);
  border-radius: 8px; font: inherit; background: var(--input-bg); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 70px; }
.field-hint { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 6px 0; }

button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--input-line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; line-height: 1.3; }
.btn:hover, button:hover { text-decoration: none; border-color: var(--muted); }
button.primary, .btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
button.primary:hover, .btn.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
button.danger, .btn.danger { color: var(--replace); }
button.link { border: 0; background: none; padding: 0; color: var(--brand); }
button.link.danger { color: var(--replace); }
.btn-sm, button.btn-sm { padding: 5px 10px; font-size: .85rem; border-radius: 7px; }
.icon-btn, button.icon-btn { padding: 6px; line-height: 0; border-color: transparent; background: none; color: var(--muted); }
.icon-btn:hover { background: var(--card-2); color: var(--text); }
[hidden] { display: none !important; }
button:disabled, .btn.disabled { opacity: .55; cursor: default; }
button.is-busy { cursor: progress; }
.actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

.flash, .banner { padding: 10px 14px; border-radius: 8px; margin-bottom: 10px; transition: opacity .4s; }
.flash.is-hiding { opacity: 0; }
.banner { border-radius: 0; margin: 0; }
.flash-success { background: var(--ok-bg); }
.flash-error, .banner-error { background: var(--replace-bg); }
.flash-warning, .flash-info { background: var(--warn-bg); }

.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .78rem; background: var(--neutral-bg); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.fix { background: var(--fix-bg); color: var(--fix); }
.badge.replace { background: var(--replace-bg); color: var(--replace); }
.badge.warn { background: var(--warn-bg); color: var(--warn-text); }
.badge.done { background: var(--ok-bg); color: var(--ok); }
.badge.high { background: var(--replace-bg); color: var(--replace); }

/* --------------------------------------------------------------- Shared components (_ui.html) */
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-header h1 { margin: 0; }
.page-header-sub { margin: 4px 0 0; color: var(--muted); max-width: 62ch; }
.page-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 2px; font-size: .85rem; margin-bottom: 6px; color: var(--muted); }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 99px; font-size: .8rem;
  font-weight: 600; white-space: nowrap; background: var(--neutral-bg); color: var(--text); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.status-neutral { background: var(--neutral-bg); color: var(--muted); }
.status-info { background: var(--info-bg); color: var(--info); }
.status-ok { background: var(--ok-bg); color: var(--ok); }
.status-warn { background: var(--warn-bg); color: var(--warn-text); }
.status-fix { background: var(--fix-bg); color: var(--fix); }
.status-danger { background: var(--replace-bg); color: var(--replace); }

.empty-state { text-align: center; padding: 28px 16px; background: var(--card); border: 1px dashed var(--input-line); border-radius: var(--radius); }
.empty-state-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card-2); color: var(--muted); }
.empty-state-icon .icon { width: 22px; height: 22px; }
.empty-state-title { font-weight: 600; margin: 10px 0 2px; }
.empty-state-text { color: var(--muted); margin: 0 auto 12px; max-width: 48ch; }

.count-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.count-cell { display: flex; flex-direction: column; align-items: center; padding: 10px 8px; color: inherit; border-right: 1px solid var(--line); }
.count-cell:last-child { border-right: 0; }
a.count-cell:hover { background: var(--card-2); text-decoration: none; }
.count-cell.is-active { background: var(--brand-soft); box-shadow: inset 0 -3px 0 var(--brand); }
.count-value { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.count-label { font-size: .78rem; color: var(--muted); }
.count-cell.tone-warn .count-value { color: var(--fix); }
.count-cell.tone-danger .count-value { color: var(--replace); }
.count-cell.tone-ok .count-value { color: var(--ok); }
@media (max-width: 767px) { .count-strip { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); } }

.list-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.list-toolbar label { margin: 0; font-weight: 400; }
.toolbar-search { position: relative; flex: 1 1 240px; }
.toolbar-search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar-search input { padding-left: 36px; }
.toolbar-filter { flex: 0 1 200px; }
.list-summary { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .8rem; }
.list-summary:empty { display: none; }

/* Sub-navigation between sibling pages (settings/_nav.html). */
.subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 16px; overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: 8px 12px; color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a.is-current { color: var(--text); border-bottom-color: var(--brand); }

/* "Needs you" card: the one thing on a page that should interrupt you. */
.attention { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.attention-count { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--brand); }
.attention-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--text); font-size: .85rem; }
a.chip:hover { border-color: var(--brand); text-decoration: none; }
.chip strong { font-variant-numeric: tabular-nums; }
.chip.tone-danger { border-color: var(--replace); color: var(--replace); background: var(--replace-bg); }
.chip.tone-warn { border-color: var(--fix); color: var(--fix); background: var(--fix-bg); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* Responsive stacking table: one <table class="table-stack"> renders as a table on wide
   screens and as a stack of cards on phones, each cell captioned by its data-label.
   td.cell-primary is the card title; td.cell-actions holds full-width buttons;
   td.cell-hide-sm is dropped on phones. */
@media (max-width: 767px) {
  .table-wrap:has(> .table-stack) { overflow: visible; box-shadow: none; }
  .table-stack { border: 0; background: none; border-collapse: separate; }
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tfoot, .table-stack tr, .table-stack td, .table-stack tfoot th { display: block; width: 100%; }
  .table-stack tr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
    margin-bottom: 10px; box-shadow: var(--shadow-sm); }
  .table-stack tbody tr:hover td { background: none; }
  .table-stack td, .table-stack tfoot th { border: 0; padding: 4px 0; display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; text-align: right; background: none; }
  .table-stack td::before, .table-stack tfoot th::before { content: attr(data-label); flex: 0 0 auto; font-size: .75rem; font-weight: 600;
    color: var(--muted); text-align: left; }
  .table-stack td:not([data-label])::before, .table-stack td[data-label=""]::before,
  .table-stack tfoot th:not([data-label])::before { display: none; }
  .table-stack td.cell-primary { display: block; text-align: left; font-size: 1rem; padding: 0 0 8px; margin-bottom: 4px;
    border-bottom: 1px solid var(--line); }
  .table-stack td.cell-primary::before { display: none; }
  .table-stack td.cell-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: stretch; margin-top: 8px; padding-top: 8px;
    border-top: 1px solid var(--line); }
  .table-stack td.cell-actions > * { flex: 1 1 auto; }
  .table-stack td.cell-hide-sm, .table-stack tfoot th.cell-hide-sm, .table-stack td:empty { display: none; }
  .table-stack td[colspan] { display: block; text-align: center; }
  .table-stack tfoot tr { background: var(--card-2); }
}

/* --------------------------------------------------------------- Inspection checklist */
.room h2 { position: sticky; top: 0; background: var(--bg); padding: 6px 0; z-index: 1; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; }
.item.cond-fix { border-left: 4px solid var(--fix); }
.item.cond-replace { border-left: 4px solid var(--replace); }
.item .name { font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--input-line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; padding: 8px 14px; min-width: 64px; }
.seg button + button { border-left: 1px solid var(--input-line); }
.seg button.on.ok { background: var(--ok); color: #fff; }
.seg button.on.fix { background: var(--fix); color: #fff; }
.seg button.on.replace { background: var(--replace); color: #fff; }
.item details summary { cursor: pointer; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.item .error { color: var(--replace); font-size: .85rem; margin-top: 6px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.thumbs .hidden-photo { opacity: .4; }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

@media (max-width: 600px) {
  .container { padding: 14px 12px 40px; }
  .hide-sm { display: none; }
  h1 { font-size: 1.3rem; }
  .page-header-actions { width: 100%; }
  .page-header-actions > .btn, .page-header-actions > form, .page-header-actions > button { flex: 1 1 auto; }
  .page-header-actions > form > button { width: 100%; }
}

/* WhatsApp password reset */
.pv-preview { background: var(--ok-bg); border-radius: 8px; padding: 10px 12px; font-size: 15px; }
.pv-open { width: 100%; text-align: center; font-size: 16px; padding: 12px; box-sizing: border-box; }
.pv-qr svg { display: block; margin: 0 auto; max-width: 220px; height: auto; background: #fff; border-radius: 8px; }
.pv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
          animation: pv-pulse 1.2s infinite ease-in-out; margin-right: 4px; }
@keyframes pv-pulse { 50% { opacity: .25; } }
/* Phones get the button first, computers the QR code; both stay available. */
@media (pointer: coarse) and (max-width: 760px) { .pv-desktop { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .sidebar, .app-topbar, .skip-link, .page-header-actions, .list-toolbar { display: none !important; }
  .app-main { margin: 0; }
}
