/* Шежіре: көк аспан + алтын, как на флаге. Орнамент жуза меняется (common.js → ORN), все узоры нейтральные
   (не свадебные, не траурные, не детские обереги). Макет: шапка с полосой орнамента,
   ниже одна колонка-«свиток» с деревом. */
:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-2: #f5f8fc;
  --ink: #14233a;
  --muted: #5b6b81;
  --line: #d3dde9;
  --kok: #0a6f92;          /* көк — небо, акцент и ссылки */
  --kok-soft: #dcEEF5;
  --altyn: #b07d0a;        /* алтын — путь рода, орнамент */
  --altyn-soft: #fbf1d6;
  --danger: #b3261e;
  --head-bg: #0b4f6c;
  --head-ink: #f4f8fb;
  --head-orn: #e9b934;
  --font-display: "Lora", "PT Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1522; --surface: #122133; --surface-2: #0f1c2c; --ink: #e5edf5; --muted: #93a5bb;
    --line: #22364e; --kok: #4cc3e2; --kok-soft: #123548; --altyn: #f0bf3a; --altyn-soft: #33290f;
    --danger: #ff8a80; --head-bg: #08283b; --head-ink: #e9f2f8; --head-orn: #f0bf3a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1522; --surface: #122133; --surface-2: #0f1c2c; --ink: #e5edf5; --muted: #93a5bb;
  --line: #22364e; --kok: #4cc3e2; --kok-soft: #123548; --altyn: #f0bf3a; --altyn-soft: #33290f;
  --danger: #ff8a80; --head-bg: #08283b; --head-ink: #e9f2f8; --head-orn: #f0bf3a; color-scheme: dark;
}

[hidden] { display: none !important; }
/* PT Serif / PT Sans — свои файлы: те же шрифты встраиваются в PDF (полная поддержка казахских букв) */
@font-face { font-family: "PT Serif"; src: url("/fonts/PT_Serif-Web-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("/fonts/PT_Serif-Web-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("/fonts/PT_Serif-Web-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("/fonts/PT_Sans-Web-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("/fonts/PT_Sans-Web-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font-body); }
a { color: var(--kok); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--kok); outline-offset: 2px; border-radius: 4px; }

/* ---------- шапка ---------- */
.head { background: var(--zhuz, var(--head-bg)); color: var(--head-ink); transition: background-color .35s; }
.head-in {
  max-width: 980px; margin: 0 auto; display: flex; gap: 16px; align-items: center;
  padding-block: 18px 14px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.emblem { width: 52px; height: 52px; flex: none; color: var(--head-orn); }
.head h1 { font-size: 1.55rem; font-weight: 600; letter-spacing: .01em; }
.head .sub { margin: 2px 0 0; opacity: .8; font-size: .9rem; }
.head-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* полоса орнамента: қошқар мүйіз в ряд, цвет из токена через mask */
.orn-band {
  height: 22px; background-color: var(--head-orn);
  -webkit-mask-image: var(--orn-mask); mask-image: var(--orn-mask);
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: 36px 22px; mask-size: 36px 22px;
}
.head .orn-band { opacity: .9; }
.rule-orn { height: 16px; background-color: var(--altyn); opacity: .55; margin: 8px 0;
  -webkit-mask-size: 26px 16px; mask-size: 26px 16px; }

/* ---------- раскладка ---------- */
.wrap {
  max-width: 980px; margin: 0 auto; padding-block: 24px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid; gap: 20px;
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.panel h2 { font-size: 1.2rem; margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.row-flex { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1 1 220px; min-width: 0; }

/* ---------- кнопки, поля ---------- */
.btn {
  border: 1px solid var(--line); background: var(--surface-2); padding: 7px 13px; border-radius: 8px;
  cursor: pointer; font-weight: 500; line-height: 1.2; text-decoration: none; display: inline-flex; gap: 6px; align-items: center;
}
.btn:hover { border-color: var(--kok); }
.btn.primary { background: var(--kok); border-color: var(--kok); color: var(--surface); }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 3px 8px; font-size: .82rem; border-radius: 6px; }
.head .btn { background: transparent; color: var(--head-ink); border-color: color-mix(in srgb, var(--head-ink) 35%, transparent); }
input[type=text], input[type=password], input[type=search], input[type=tel], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2);
}
textarea { min-height: 70px; resize: vertical; }
label.f { display: grid; gap: 4px; font-size: .86rem; color: var(--muted); }
label.f > span { font-weight: 500; }
.form { display: grid; gap: 12px; }
.err { color: var(--danger); font-size: .9rem; min-height: 1.2em; margin: 0; }

/* ---------- дерево ---------- */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 13px; padding-left: 14px; border-left: 1px dashed var(--line); }
.tree li { margin: 2px 0; }
.tree .r { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 4px 6px; border-radius: 7px; min-width: 0; }
.tree .r:hover { background: var(--surface-2); }
.tg {
  width: 22px; height: 22px; flex: none; border: 0; background: none; cursor: pointer; padding: 0;
  color: var(--muted); align-self: center; display: grid; place-items: center; border-radius: 5px;
}
.tg svg { width: 12px; height: 12px; transition: transform .15s; }
li[aria-expanded="true"] > .r > .tg svg { transform: rotate(90deg); }
li[aria-expanded="false"] > ul { display: none; }
.tg.leaf { visibility: hidden; }
.lvl {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; align-self: center; white-space: nowrap;
}
.nm { font-weight: 600; }
.d0 > .r .nm { font-family: var(--font-display); font-size: 1.15rem; }
.d1 > .r .nm { font-size: 1.04rem; }
.ru { color: var(--muted); font-size: .9rem; }
.yrs { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.note { margin: 0 0 4px 36px; color: var(--muted); font-size: .86rem; max-width: 65ch; }
.acts { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.person > .r .lvl { border-color: var(--kok); color: var(--kok); }
.on-path > .r { background: var(--altyn-soft); }
.on-path > .r .nm { color: var(--ink); }
.on-path > .r .lvl { border-color: var(--altyn); color: var(--altyn); }
.tree ul:has(> li.on-path) { border-left: 2px solid var(--altyn); }
.self > .r { outline: 2px solid var(--altyn); }
.hit > .r .nm { text-decoration: underline; text-decoration-color: var(--kok); text-underline-offset: 3px; }
.tree-scroll { overflow-x: auto; }

/* ---------- путь клиента ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 0; padding: 0; list-style: none; }
.crumbs li { background: var(--altyn-soft); border: 1px solid color-mix(in srgb, var(--altyn) 45%, transparent); padding: 2px 10px; border-radius: 999px; font-weight: 500; }
.lineage { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lineage li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
.lineage li:last-child { border-bottom: 0; }
.lineage .gen { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--altyn); font-weight: 600; }
.lineage .who { min-width: 0; }
.lineage .self .who { font-weight: 700; }

.proverb { font-family: var(--font-display); font-style: italic; color: var(--muted); max-width: 60ch; margin: 0; }

/* ---------- админка ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button[aria-selected="true"] { background: var(--kok); color: var(--surface); border-color: var(--kok); }
.clients { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.clients button {
  width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface-2); padding: 9px 12px;
  border-radius: 8px; cursor: pointer; display: grid; gap: 2px;
}
.clients button[aria-current="true"] { border-color: var(--altyn); background: var(--altyn-soft); }
.split { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.linkbox { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.linkbox code { background: var(--surface-2); border: 1px solid var(--line); padding: 6px 10px; border-radius: 6px; word-break: break-all; flex: 1 1 260px; min-width: 0; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); width: min(520px, calc(100vw - 32px)); padding: 20px; }
dialog::backdrop { background: rgb(5 15 25 / .55); }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: 8px; font-size: .9rem; z-index: 50;
}
.center-card { max-width: 420px; margin: 40px auto; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- выбор оформления жуза ---------- */
.zhuz-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.zhuz-pick button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 6px 12px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.zhuz-pick button[aria-pressed="true"] { border-color: var(--altyn); background: var(--altyn-soft); font-weight: 600; }
.zhuz-pick .sw { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.orn-sample { width: 72px; height: 22px; background-color: var(--altyn); -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-size: 36px 22px; mask-size: 36px 22px; }

/* ---------- печать ---------- */
#print-root { display: none; }
@media print {
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  body { background: #fff !important; }
}
.pp { color: #14233a; font-family: var(--font-body); font-size: var(--pfs, 11pt); position: relative;
  border: var(--pframe, 18px) solid transparent; padding: 1.2em 1.4em; min-height: 100%; box-sizing: border-box;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pp .pf { position: absolute; background-color: var(--pcolor); -webkit-mask-image: var(--orn-mask); mask-image: var(--orn-mask);
  -webkit-mask-repeat: repeat; mask-repeat: repeat; -webkit-mask-size: var(--pu) calc(var(--pu) * .6); mask-size: var(--pu) calc(var(--pu) * .6); }
.pp .pf.t { left: calc(var(--pframe) * -1); right: calc(var(--pframe) * -1); top: calc(var(--pframe) * -1); height: var(--pframe); }
.pp .pf.b { left: calc(var(--pframe) * -1); right: calc(var(--pframe) * -1); bottom: calc(var(--pframe) * -1); height: var(--pframe); transform: rotate(180deg); }
.pp h1 { font-family: var(--font-display); font-size: 2.3em; text-align: center; color: var(--pcolor); margin: .2em 0 .1em; }
.pp .psub { text-align: center; font-size: 1.1em; margin: 0 0 1.2em; color: #4a5a70; }
.pp .pchain { display: flex; flex-direction: column; align-items: center; gap: 0; }
.pp .pnode { border: 1.5px solid var(--pcolor); border-radius: .5em; padding: .35em 1.1em; text-align: center; min-width: 12em; background: #fff; }
.pp .pnode .k { font-size: .7em; letter-spacing: .08em; text-transform: uppercase; color: #8a6406; display: block; }
.pp .pnode .n { font-weight: 700; font-size: 1.15em; }
.pp .pnode .y { font-size: .85em; color: #4a5a70; }
.pp .pnode.me { background: #fbf1d6; border-width: 2.5px; border-color: #b07d0a; }
.pp .plink { width: 2px; height: 1.1em; background: var(--pcolor); }
.pp .pcols { columns: var(--pcols, 2); column-gap: 2em; }
.pp .pcols ul { list-style: none; margin: 0; padding-left: 1.1em; border-left: 1px dotted #9aa8b8; }
.pp .pcols > ul { border: 0; padding: 0; }
.pp .pcols li { margin: .1em 0; }
.pp .pcols li:not(:has(ul)), .pp .pcols li > span { break-inside: avoid; }
.pp .pcols .g0 { font-family: var(--font-display); font-weight: 700; font-size: 1.3em; color: var(--pcolor); }
.pp .pcols .g1 { font-weight: 700; }
.pp .pcols .mark { background: #fbf1d6; outline: 1px solid #b07d0a; padding: 0 .3em; border-radius: 3px; }
.pp { min-height: var(--ph); display: flex; flex-direction: column; }
.pp.poster { height: var(--ph); font-size: calc(var(--pfs) * 1.35); }
.pp.poster .pchain { flex: 1; justify-content: center; }
.pp .pfoot { margin-top: auto !important; padding-top: 1.4em; }
.pp .pfoot { text-align: center; margin-top: 1.4em; font-size: .85em; color: #4a5a70; font-style: italic; font-family: var(--font-display); }

/* ---------- фото и плакат ---------- */
.av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; align-self: center; border: 2px solid var(--altyn); flex: none; }
.lineage .who { display: flex; gap: 12px; align-items: center; }
.lineage .av { width: 46px; height: 46px; }
.poster-wrap { overflow-x: auto; border-radius: 8px; }
.poster-wrap svg { display: block; width: 100%; min-width: 620px; height: auto; border-radius: 6px; box-shadow: 0 8px 30px rgb(0 0 0 / .18); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--surface-2); padding: 6px 12px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--kok); color: var(--surface); }
.photo-box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.photo-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--altyn); }
.photo-box .ph-empty { width: 72px; height: 72px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: .75rem; text-align: center; }
@media print { .poster-page { overflow: hidden; } .poster-page svg { width: 100%; height: 100%; display: block; } }

/* ---------- «живое» дерево: увеличение и перетаскивание ---------- */
.pz { position: relative; overflow: hidden; height: min(82vh, calc((100vw - 64px) * var(--ratio, 1.414))); min-height: 420px; border-radius: 8px;
  background: var(--surface-2); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.pz.grab { cursor: grabbing; }
.pz-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.pz-inner.moving { will-change: transform; }
.pz-inner svg { display: block; width: 100%; height: auto; box-shadow: 0 8px 30px rgb(0 0 0 / .2); }
.pz-ctrl { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; z-index: 2; }
.pz-ctrl button { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / .15); }
.pz-ctrl button:hover { border-color: var(--kok); }
.pz-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); margin: 0; background: rgb(0 0 0 / .62); color: #fff;
  padding: 6px 12px; border-radius: 999px; font-size: .82rem; pointer-events: none; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.pz.full { position: fixed; inset: 0; height: auto; z-index: 40; border-radius: 0; background: var(--bg); }
.pz.full .pz-ctrl { top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); }

/* ---------- музыка ---------- */
.music { position: fixed; left: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 5px; box-shadow: 0 4px 16px rgb(0 0 0 / .18); }
.music-btn { display: inline-flex; gap: 8px; align-items: center; border: 0; background: var(--altyn-soft); color: var(--ink); border-radius: 999px; padding: 7px 14px 7px 8px; cursor: pointer; font-weight: 600; }
.music-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--altyn); color: #2a1d02; font-size: 1rem; }
.music-btn.on .music-ico { animation: spin 3.5s linear infinite; }
.music-btn.wait { animation: pulse 1.6s ease-in-out infinite; }
#music-vol { width: 84px; accent-color: var(--altyn); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--altyn) 35%, transparent); } }
@media (max-width: 520px) { #music-vol { display: none; } }
@media (prefers-reduced-motion: reduce) { .music-btn.on .music-ico, .music-btn.wait { animation: none; } }
@media print { .music { display: none !important; } }

/* ---------- ветка выбранного человека ---------- */
.pz svg .pn { cursor: pointer; }
.pz svg.focus .pn:not(.hl) { opacity: .16; }
.pz svg.focus [data-e]:not(.hl) { opacity: .07; }
.pz svg.focus .fol { opacity: .32; }
.hl-layer path, .hl-layer circle { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; pointer-events: none; }
.hl-core { stroke: #ffd84a; stroke-width: 1.5px; }
.hl-flow { stroke: #ffffff; stroke-width: 3px; stroke-dasharray: 0.1 18; animation: hlflow 1.4s linear infinite; }
.hl-ring { stroke: #ffd84a; stroke-width: 4px; transform-box: fill-box; transform-origin: center; animation: hlring 1.8s ease-out infinite; }
.hl-ring2 { animation-delay: .9s; }
svg[data-style="light"] .hl-core { stroke: #b06a00; stroke-width: 1.5px; }
svg[data-style="light"] .hl-flow { stroke: #ffffff; }
svg[data-style="light"] .hl-ring { stroke: #c27a00; }
svg[data-style="light"].focus .fol { opacity: .25; }
@keyframes hlflow { to { stroke-dashoffset: -18.1; } }
@keyframes hlring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hl-flow, .hl-ring { animation: none; } }
.branch-chip { display: inline-flex; gap: 8px; align-items: center; background: var(--altyn-soft); border: 1px solid var(--altyn); border-radius: 999px; padding: 4px 6px 4px 12px; font-weight: 600; max-width: 100%; }
.branch-chip button { border: 0; background: var(--surface); border-radius: 999px; padding: 4px 10px; cursor: pointer; font-weight: 500; }

/* ---------- страница клиента: дерево на весь экран ---------- */
body.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.topbar { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; background: var(--zhuz, var(--head-bg)); color: var(--head-ink);
  padding-block: calc(8px + env(safe-area-inset-top, 0px)) 8px; padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px));
  border-bottom: 2px solid var(--head-orn); z-index: 5; }
.topbar .emblem { width: 38px; height: 38px; }
.tb-title { min-width: 0; flex: 0 1 auto; }
.tb-title h1 { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-title .sub { margin: 0; font-size: .8rem; opacity: .8; white-space: nowrap; }
.tb-search { flex: 1 1 220px; min-width: 0; display: flex; gap: 8px; align-items: center; }
.tb-search input { flex: 1; min-width: 0; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .28); color: var(--head-ink); padding: 7px 12px; border-radius: 999px; }
.tb-search input::placeholder { color: rgb(255 255 255 / .7); }
.tb-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.topbar .btn { background: transparent; color: var(--head-ink); border-color: rgb(255 255 255 / .35); }
.topbar .btn.primary { background: var(--head-orn); color: #2a1d02; border-color: var(--head-orn); font-weight: 700; }
.topbar .seg { border-color: rgb(255 255 255 / .35); }
.topbar .seg button { background: transparent; color: var(--head-ink); padding: 6px 10px; }
.topbar .seg button[aria-pressed="true"] { background: rgb(255 255 255 / .2); color: var(--head-ink); }
.topbar .branch-chip { color: var(--ink); white-space: nowrap; overflow: hidden; max-width: 60%; }
.topbar .branch-chip #branch-name { overflow: hidden; text-overflow: ellipsis; }
.stage { flex: 1; min-height: 0; display: flex; background: color-mix(in srgb, var(--zhuz, #0b5672) 30%, #0b0b0d); }
.stage > #poster-panel { flex: 1; min-height: 0; display: flex; }
body.app .pz { flex: 1; height: auto; min-height: 0; border-radius: 0; background: transparent; }
body.app .pz-inner svg { box-shadow: 0 10px 40px rgb(0 0 0 / .45); }
.stage > #error { margin: auto; }
@media (max-width: 640px) {
  .tb-title .sub, .topbar .emblem { display: none; }
  .tb-search { order: 3; flex-basis: 100%; }
  .tb-actions .btn { padding: 6px 10px; }
}
@media (max-width: 640px) { .pz-hint { bottom: 74px; font-size: .75rem; } }
