/* ============ Шежіре — стиль ============ */
:root {
  --navy: #141d30;
  --navy-2: #1d2a44;
  --navy-3: #2a3a5c;
  --gold: #d8b36a;
  --gold-2: #c49a4a;
  --gold-soft: #f3e7cc;
  --bg: #f6f3ec;
  --card: #ffffff;
  --ink: #1b2233;
  --muted: #6b7285;
  --line: #e5dfd2;
  --ok: #2f7d4f;
  --warn: #b7791f;
  --err: #b23b3b;
  --female: #b5577a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 29, 48, .06), 0 6px 24px rgba(20, 29, 48, .06);
  --serif: "PT Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--navy-3); text-decoration-color: rgba(42, 58, 92, .3); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.pad { padding: 20px; }
.pad-lg { padding-top: 36px; padding-bottom: 56px; }
.pad-xl { padding-top: 64px; padding-bottom: 80px; }
.mt { margin-top: 18px; } .mt-lg { margin-top: 36px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.display { font: 700 clamp(34px, 5.2vw, 60px)/1.08 var(--serif); letter-spacing: -.01em; }
.h1 { font: 700 clamp(28px, 3.6vw, 40px)/1.15 var(--serif); }
.h2 { font: 700 clamp(22px, 2.6vw, 28px)/1.2 var(--serif); }
.h3 { font: 700 19px/1.3 var(--serif); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 10px; }
.eyebrow.gold { color: var(--gold); }
.prose p { margin-bottom: 1em; }
.hp { position: absolute; left: -9999px; }

/* ---------- Кнопкалар ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { background: var(--navy-2); color: #fff; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--navy); background: #fff; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.ghost-light:hover { border-color: var(--gold); color: var(--gold); }
.btn.danger { background: #fff; color: var(--err); border-color: #e6c3c3; }
.btn.danger:hover { background: var(--err); color: #fff; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: 500 13px/1.2 var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--gold); color: var(--navy); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--navy-3); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.danger-t { color: var(--err) !important; } .ok-t { color: var(--ok); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 99px; background: #eef0f5; color: var(--navy-3); font-size: 12px; font-weight: 600; }
.tag.gold { background: var(--gold-soft); color: #7a5a1c; }
.tag.dark { background: var(--navy); color: #fff; }

/* ---------- Карта, форма ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.card.empty { text-align: center; color: var(--muted); padding: 40px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form h3 { margin: 6px 0 0; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy-3); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
label.check.mt { margin-top: 28px; }
input, select, textarea { font: 15px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #d9d3c5; border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--navy); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
textarea { resize: vertical; }
fieldset.private-fields { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
fieldset legend { font-size: 12px; color: var(--muted); padding: 0 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row-between { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
form.inline { display: inline; }
.alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-size: 14px; }
.alert.err { background: #fbeaea; color: var(--err); }
.alert.warn { background: #fdf3e0; color: #87591a; }
.flash { padding: 12px 0; font-size: 14px; }
.flash.ok { background: #e8f3ec; color: var(--ok); }
.flash.err { background: #fbeaea; color: var(--err); }
.back { display: inline-block; margin-bottom: 12px; font-size: 14px; text-decoration: none; color: var(--muted); }
.req-thumb { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.req-thumb.wide { width: 100%; max-width: 320px; height: auto; aspect-ratio: 16/9; }

/* ---------- Жоғарғы панель ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.topbar-in { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 18px; height: 60px; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: rgba(216, 179, 106, .14); color: var(--gold); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { font: 700 16px/1.15 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.mainnav { display: flex; gap: 2px; }
.mainnav a { color: rgba(255, 255, 255, .75); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.mainnav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.mainnav a.on { color: var(--gold); }
.search-box { position: relative; flex: 1; max-width: 380px; margin-left: auto; }
.search-box input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .1); color: #fff; padding: 9px 14px 9px 36px; border-radius: 99px; font-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23aab2c5' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 13px 50%; }
.search-box input::placeholder { color: rgba(255, 255, 255, .5); }
.search-box input:focus { background-color: rgba(255, 255, 255, .14); outline-color: var(--gold); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); max-height: 70vh; overflow: auto; z-index: 100; padding: 6px; border: 1px solid var(--line); }
.sr-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; cursor: pointer; font: inherit; color: inherit; }
.sr-item b { font-size: 14px; }
.sr-item span { font-size: 12px; color: var(--muted); }
.sr-item:hover, .sr-item.on { background: var(--bg); }
.sr-item.dead b::after { content: " †"; color: var(--muted); font-weight: 400; }
.sr-more, .sr-empty { font-size: 12px; color: var(--muted); padding: 8px 12px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 99px; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .15); font-weight: 700; }
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.badge { position: absolute; top: -4px; right: -4px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--gold-soft); color: #7a5a1c; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.avatar.sm { width: 34px; height: 34px; font-size: 12px; background: var(--gold); color: var(--navy); }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu .menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: var(--ink); border-radius: 12px; min-width: 220px; box-shadow: 0 12px 40px rgba(0, 0, 0, .2); padding: 6px; border: 1px solid var(--line); }
.menu-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-head span { font-size: 12px; color: var(--muted); }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 14px var(--sans); background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--bg); }
.bottomnav { display: none; }

/* ---------- Басты бет ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: 84px 0 76px; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; overflow: hidden; }
.hero-slide.on { opacity: 1; }
.hs-bg, .hs-fg { position: absolute; inset: 0; background-image: var(--img); background-repeat: no-repeat; }
.hs-bg { display: none; }
.hs-fg { background-size: cover; background-position: var(--pos, 50% 50%); transform-origin: var(--pos, 50% 50%); }
.hero-slide.on .hs-fg { animation: heroZoom 9s ease-out forwards; }
.hero.fit-contain .hs-bg { display: block; background-size: cover; background-position: center; filter: blur(28px) brightness(.7); transform: scale(1.15); }
.hero.fit-contain .hs-fg { background-size: contain; background-position: right center; animation: none !important; }
.hero.fit-contain .hero-shade { background: linear-gradient(90deg, rgba(20, 29, 48, .9) 0%, rgba(20, 29, 48, .6) 40%, rgba(20, 29, 48, 0) 62%) !important; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 29, 48, .88) 0%, rgba(20, 29, 48, .6) 55%, rgba(20, 29, 48, .35) 100%); }
.hero.dim-light .hero-shade { background: linear-gradient(90deg, rgba(20, 29, 48, .75) 0%, rgba(20, 29, 48, .35) 55%, rgba(20, 29, 48, .1) 100%); }
.hero.dim-dark .hero-shade { background: linear-gradient(180deg, rgba(20, 29, 48, .8), rgba(20, 29, 48, .93)); }
.hero.has-img .hero-in { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.hero-dots { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .4); cursor: pointer; }
.hero-dots button.on { background: var(--gold); width: 22px; border-radius: 5px; }
.hero-edit { position: absolute; top: 16px; right: 16px; z-index: 3; display: flex; gap: 8px; }
.hero-edit-btn { display: inline-flex; flex-direction: row; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--navy); font: 600 13px var(--sans); cursor: pointer; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.hero-edit-btn:hover { background: var(--gold); color: var(--navy); }
.hero-edit-btn.ghost { background: rgba(20, 29, 48, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.hero-edit.busy .hero-edit-btn:first-child { opacity: .6; pointer-events: none; }
.hero-edit.busy .hero-edit-btn:first-child::after { content: "…"; }
.hero-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.hero-thumb { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }

.hero-thumb .tag { position: absolute; top: 8px; left: 8px; }
.hero-thumb-act { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; }
.mb { margin-bottom: 18px; }
.focus-pick { position: relative; margin: 0; cursor: crosshair; }
.focus-pick img { display: block; width: 100%; aspect-ratio: auto; height: auto; }
.focus-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; background: rgba(216, 179, 106, .85); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); pointer-events: none; }
.hero-pattern { position: absolute; inset: 0; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 8c6 10 16 14 24 12-2 8 2 18 12 24-10 6-14 16-12 24-8-2-18 2-24 12-6-10-16-14-24-12 2-8-2-18-12-24 10-6 14-16 12-24 8 2 18-2 24-12z' fill='none' stroke='%23d8b36a' stroke-width='1.5'/%3E%3C/svg%3E"); }
.hero-in { position: relative; max-width: 860px; }
.hero .lead { font-size: clamp(16px, 1.8vw, 19px); color: rgba(255, 255, 255, .8); max-width: 640px; margin: 18px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-link { display: inline-block; margin-top: 22px; color: var(--gold); text-decoration: none; font-weight: 500; }
.hero-link:hover { color: #fff; }
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .6); }
.share-row span { margin-right: 6px; }
.share-row .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.share-row .chip:hover { border-color: var(--gold); color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: -34px; position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 0; max-width: 1140px; }
.stat { padding: 22px 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { font: 700 30px/1.1 var(--serif); color: var(--navy); }
.stat span { font-size: 13px; color: var(--muted); }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head a { font-size: 14px; }
.leaders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.leaders-grid.big { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 24px; }
.leader { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.leader > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.leader-contacts { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; }
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.features li { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; }
.features b { font-size: 15px; } .features span { font-size: 13px; color: var(--muted); }
.jubilee { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.jub { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; padding: 16px; }
.jub-age { font: 700 20px var(--serif); color: var(--gold-2); }
.jub:hover { border-color: var(--gold); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.news-card { padding: 0; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: .15s; }
.news-card:hover { transform: translateY(-2px); color: inherit; border-color: var(--gold); }
.news-img { position: relative; aspect-ratio: 16/9; background: var(--navy-2); }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy), var(--navy-3)); }
.play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; font-size: 18px; }
.news-body { padding: 16px 18px 20px; }
.news-body time { font-size: 12px; color: var(--muted); }
.news-body h3 { font: 700 18px/1.3 var(--serif); margin: 4px 0 8px; }
.news-body p { font-size: 14px; color: var(--muted); margin: 0; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 30px 34px; margin-bottom: 60px; }
.cta p { color: rgba(255, 255, 255, .75); margin: 0; }
.article-cover { width: 100%; border-radius: var(--radius); margin: 10px 0 24px; }
.article .prose { font-size: 17px; line-height: 1.7; }
.video { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; margin: 14px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pager a { padding: 8px 13px; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.pager a.on { background: var(--navy); color: #fff; }

/* ---------- Футер ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 40px 0 20px; margin-top: 40px; }
.footer-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { font: 700 18px var(--serif); color: #fff; margin-bottom: 6px; }
.footer .muted { color: rgba(255, 255, 255, .55); }
.footer-links { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }

/* ---------- Ағаш ---------- */
body.page-tree { height: 100vh; overflow: hidden; }
body.page-tree .footer { display: none; }
body.page-tree main { display: flex; flex-direction: column; min-height: 0; }
.tree-app { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; height: calc(100vh - 60px); }
.tree-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tree-title { display: flex; align-items: baseline; gap: 10px; }
.tree-title b { font: 700 17px var(--serif); }
.tree-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.tool { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; font: 500 13px var(--sans); cursor: pointer; color: var(--ink); min-width: 34px; }
.tool:hover { border-color: var(--navy); }
.tool.toggle { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); }
.tool.toggle input { width: 15px; height: 15px; }
.tree-viewport { position: relative; flex: 1; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  background-color: var(--bg); background-image: radial-gradient(rgba(20, 29, 48, .08) 1px, transparent 1px); background-size: 22px 22px; }
.tree-viewport.dragging { cursor: grabbing; }
.tree-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.tree-canvas.animate { transition: transform .35s ease; }
.tree-lines { position: absolute; left: 0; top: 0; overflow: visible; }
.tree-lines path { fill: none; stroke: #b9ae95; stroke-width: 1.5; }
.tree-nodes { position: absolute; left: 0; top: 0; }
.tree-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.node { position: absolute; left: 0; top: 0; width: 150px; height: 58px; background: #fff; border: 1px solid #d8cfbb; border-top: 4px solid var(--navy); border-radius: 10px; padding: 4px 8px; text-align: center; align-items: center; cursor: pointer; box-shadow: 0 1px 3px rgba(20, 29, 48, .07); display: flex; flex-direction: column; justify-content: center; }
.node:hover { border-color: var(--gold); }
.node.f { border-top-color: var(--female); background: #fdf7f9; }
.node.dead { background: #f3f1ec; }
.node.dead .node-name { color: #4a5063; }
.node.branch { border-top-color: var(--gold); }
.node.sel { outline: 3px solid var(--gold); outline-offset: 1px; box-shadow: 0 6px 20px rgba(216, 179, 106, .45); }
.node-name { font-weight: 600; font-size: 13px; line-height: 1.2; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.br-dot { color: var(--gold-2); font-size: 10px; margin-left: 5px; vertical-align: 1px; }
.node-meta { font-size: 11px; color: var(--muted); line-height: 1.2; }
.node-toggle { position: absolute; left: 50%; top: 100%; transform: translate(-50%, -50%); min-width: 26px; height: 22px; padding: 0 5px; border-radius: 11px; border: 1px solid #cdbf9f; background: #fff; font: 700 11px var(--sans); color: var(--navy-3); cursor: pointer; }
.node-toggle:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.person-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100%; background: #fff; border-left: 1px solid var(--line); box-shadow: -10px 0 30px rgba(20, 29, 48, .08); overflow-y: auto; z-index: 5; }
.panel-close { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; z-index: 2; }
.panel-body { padding: 22px; }
.pc-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.pc-head h2, .pc-head h1 { font: 700 24px/1.2 var(--serif); margin: 0 0 2px; }
.pc-photo { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.pc-photo.ph { display: grid; place-items: center; background: var(--navy); color: var(--gold); font: 700 34px var(--serif); }
.pc-photo.ph.f { background: var(--female); color: #fff; }
.pc-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.pc-row { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pc-row > span:first-child { color: var(--muted); width: 72px; flex: none; }
.pc-sec { padding: 14px 0; border-top: 1px solid var(--line); }
.pc-sec h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.pc-bio { font-size: 14px; }
.pc-sec.private { background: var(--gold-soft); margin: 0 -10px; padding: 12px 10px; border-radius: 10px; border: 0; }
.kids { display: flex; flex-wrap: wrap; gap: 6px; }
.kid { display: inline-flex; flex-direction: column; padding: 6px 11px; border-radius: 9px; background: #f1f3f7; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 13.5px; border-left: 3px solid var(--navy); }
.kid.f { border-left-color: var(--female); background: #fbf1f5; }
.kid.dead { opacity: .75; }
.kid small { font-weight: 400; font-size: 11px; color: var(--muted); }
.kid:hover { background: var(--gold-soft); }
.chain { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--gold-soft); }
.chain li { position: relative; padding: 4px 0 6px 10px; display: flex; flex-direction: column; }
.chain li::before { content: ""; position: absolute; left: -20px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.chain a { font-weight: 600; text-decoration: none; }
.chain span { font-size: 12px; color: var(--muted); }
.pc-share { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.pc-actions { padding-top: 14px; border-top: 1px solid var(--line); }
.pc-actions h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pc-actions > div { display: flex; flex-wrap: wrap; gap: 6px; }
.act { padding: 7px 12px; border-radius: 8px; background: var(--navy); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }
.act:hover { background: var(--navy-3); color: #fff; }
.act.danger { background: #fff; color: var(--err); border: 1px solid #e6c3c3; }
.person-page .pc-share { border-top: 1px solid var(--line); }

/* ---------- Туыстық ---------- */
.kin-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 14px; margin: 24px 0; }
.picker { position: relative; }
.picker.picked .picker-input { border-color: var(--ok); background: #f3faf5; }
.picker .search-results { top: calc(100% + 4px); }
.kin-result { border-top: 4px solid var(--muted); }
.kin-result.close { border-top-color: var(--gold); }
.kin-verdict h3 { font: 700 26px var(--serif); margin: 8px 0 6px; }
.kin-chains { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 10px; }
.kin-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kin-chain li { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--bg); border-radius: 8px; font-size: 14px; }
.kin-chain li.common { background: var(--gold-soft); font-weight: 700; }
.kin-chain li span { color: var(--muted); font-size: 12px; }
.kin-chain a { text-decoration: none; }

/* ---------- Өтінімдер ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 22px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--navy); border-bottom-color: var(--gold); }
.req-list { display: flex; flex-direction: column; gap: 12px; }
.req { border-left: 4px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.req.status-pending { border-left-color: var(--gold); }
.req.status-approved { border-left-color: var(--ok); }
.req.status-returned { border-left-color: var(--warn); }
.req.status-rejected { border-left-color: var(--err); }
.req-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.req-top time { margin-left: auto; }
.status { font-size: 13px; font-weight: 600; }
.req-who a { font: 700 17px var(--serif); text-decoration: none; }
.req-lines { font-size: 14px; }
.req-note { font-size: 13px; background: var(--bg); padding: 8px 12px; border-radius: 8px; }
.req-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.req-actions input { flex: 1; min-width: 200px; padding: 8px 12px; font-size: 14px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.s-pending { background: var(--gold); } .s-approved { background: var(--ok); } .s-returned { background: var(--warn); } .s-rejected { background: var(--err); }

/* ---------- Профиль, әкімші ---------- */
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; }
.profile-head .h1 { margin: 0; }
.mini-stats { display: flex; gap: 10px; margin-bottom: 14px; }
.mini-stats div { flex: 1; background: var(--bg); border-radius: 10px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.mini-stats b { font: 700 22px var(--serif); } .mini-stats span { font-size: 12px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b { font: 700 28px var(--serif); color: var(--navy); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 10px; }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar i { display: block; width: 100%; background: var(--navy-3); border-radius: 3px 3px 0 0; min-height: 2px; }
.bar:hover i { background: var(--gold); }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: 120px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.hbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar i { display: block; height: 10px; background: var(--gold); border-radius: 5px; }
.hbar b { text-align: right; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.invite-ready { border: 2px solid var(--gold); margin-bottom: 18px; }
.copy-row { display: flex; gap: 8px; margin-bottom: 10px; }
.users-list { display: flex; flex-direction: column; gap: 10px; }
.user-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr auto auto; gap: 12px; align-items: end; padding: 16px; }
.user-row.inactive { opacity: .55; }
.user-id { display: flex; gap: 10px; align-items: center; min-width: 0; align-self: center; }
.user-id > div { display: flex; flex-direction: column; min-width: 0; }
.user-id .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btns { grid-column: 1 / -1; display: flex; gap: 8px; }
.user-row label.check { margin-bottom: 10px; }
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.role ul { margin: 0; padding-left: 18px; font-size: 14px; }
.role li { margin-bottom: 5px; }
.role.mine { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.steps { padding-left: 20px; font-size: 14px; } .steps li { margin-bottom: 8px; }
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-card .form { margin: 18px 0; }

/* ---------- Постер ---------- */
.poster-body { background: #e9e4d8; display: block; }
.poster-tools { display: flex; justify-content: center; gap: 10px; padding: 18px; }
.poster { display: flex; justify-content: center; padding: 0 16px 40px; }
.poster-frame { width: 100%; max-width: 620px; aspect-ratio: 1 / 1.414; background: var(--navy); color: #fff; border-radius: 6px; padding: 7% 8%; position: relative; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  background-image: radial-gradient(circle at 50% 0%, rgba(216, 179, 106, .16), transparent 60%); outline: 2px solid rgba(216, 179, 106, .5); outline-offset: -18px; }
.poster-eyebrow { text-align: center; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.poster h1 { text-align: center; font: 700 clamp(34px, 7vw, 54px) var(--serif); color: var(--gold); margin: 6px 0 14px; }
.poster-self { text-align: center; padding: 12px; border-bottom: 1px solid rgba(216, 179, 106, .35); margin-bottom: 12px; display: flex; flex-direction: column; }
.poster-self b { font: 700 clamp(22px, 4.5vw, 30px) var(--serif); }
.poster-self span { color: rgba(255, 255, 255, .7); font-size: 13px; }
.poster-chain { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.poster-chain li { display: grid; grid-template-columns: 34px 1fr; align-items: center; column-gap: 12px; }
.poster-chain .n { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: 700 14px var(--serif); }
.poster-chain b { font: 700 clamp(17px, 3.4vw, 22px) var(--serif); }
.poster-chain small { color: rgba(255, 255, 255, .6); font-size: 12px; }
.poster-chain li.empty { opacity: .35; }
.poster-foot { text-align: center; font-size: 11px; color: rgba(255, 255, 255, .5); letter-spacing: .08em; margin-top: 10px; }
@media print {
  .poster-tools { display: none; }
  .poster-body { background: #fff; }
  .poster { padding: 0; }
  .poster-frame { box-shadow: none; max-width: none; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 0; }
}

/* ---------- Мобильді ---------- */
@media (max-width: 1060px) {
  .mainnav { display: none; }
  .user-row { grid-template-columns: 1fr 1fr; }
  .user-id { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  body { padding-bottom: 64px; }
  body.page-tree { padding-bottom: 0; }
  .topbar-in { gap: 10px; padding: 0 12px; height: 56px; }
  .brand-text { display: none; }
  .search-box { max-width: none; }
  .top-actions .icon-btn[title="Нұсқаулық"] { display: none; }
  .bottomnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .08); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: rgba(255, 255, 255, .65); text-decoration: none; font-size: 11px; padding: 4px 0; }
  .bottomnav a.on { color: var(--gold); }
  .bottomnav svg { width: 22px; height: 22px; }
  .tree-app { height: calc(100vh - 56px - 64px); height: calc(100dvh - 56px - 64px); }
  .tree-toolbar { padding: 8px 12px; flex-wrap: nowrap; }
  .tree-title b { font-size: 15px; white-space: nowrap; }
  .tree-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tool { padding: 6px 9px; white-space: nowrap; flex: none; }
  .tree-title { flex: none; }
  .tree-title .small { display: none; }
  .person-panel { top: auto; left: 0; width: 100%; max-height: 72%; border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(20, 29, 48, .15); }
  .grid2, .about, .roles, .kin-chains { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-left: 16px; margin-right: 16px; width: auto; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kin-form { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .hero { padding: 56px 0 64px; }
  .hero.has-img { padding-top: 76px; padding-bottom: 88px; }
  .hero-dots { bottom: 50px; }
  .hero-edit { top: 12px; right: 12px; left: 12px; justify-content: flex-end; }
  .hero-shade { background: linear-gradient(180deg, rgba(20, 29, 48, .55), rgba(20, 29, 48, .9)) !important; }
  .hero.fit-contain .hs-fg { background-size: cover; background-position: var(--pos, 50% 50%); bottom: 0; }
  .hero.fit-contain .hs-bg { display: none; }
  .card { padding: 18px; }
  .cta { padding: 24px; }
  .user-row { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 90px 1fr 36px; }
}

.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 90px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--bg); border-radius: 7px; padding: 6px 10px; font: 600 12px var(--sans); color: var(--navy-3); cursor: pointer; }

/* ---------- Тіл ауыстырғыш ---------- */
.langmenu { position: relative; }
.langmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .15); color: #fff; font: 600 12px var(--sans); letter-spacing: .04em; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary:hover, .langmenu[open] summary { color: var(--gold); border-color: var(--gold); }
.langmenu .menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 12px; min-width: 170px; box-shadow: 0 12px 40px rgba(0, 0, 0, .2); padding: 6px; border: 1px solid var(--line); z-index: 120; }
.langmenu .menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 500 14px var(--sans); }
.langmenu .menu a[dir=rtl] { font-family: "Noto Naskh Arabic", var(--sans); font-size: 16px; text-align: right; }
.langmenu .menu a:hover { background: var(--bg); }
.langmenu .menu a.on { background: var(--gold-soft); color: #7a5a1c; font-weight: 700; }

/* ---------- Төте жазу (оңнан солға) ---------- */
body.lang-tote { font-family: "Noto Naskh Arabic", var(--sans); }
body.lang-tote .display, body.lang-tote .h1, body.lang-tote .h2, body.lang-tote .h3, body.lang-tote h1, body.lang-tote h2, body.lang-tote h3,
body.lang-tote .brand-text, body.lang-tote .stat b, body.lang-tote .footer-brand, body.lang-tote .poster h1, body.lang-tote .poster-self b, body.lang-tote .poster-chain b { font-family: "Noto Naskh Arabic", var(--serif); }
body.lang-tote .eyebrow, body.lang-tote .pc-sec h4, body.lang-tote .pc-actions h4 { letter-spacing: 0; text-transform: none; }
body.lang-tote input, body.lang-tote textarea, body.lang-tote select, body.lang-tote button { font-family: "Noto Naskh Arabic", var(--sans); }
[dir=rtl] .search-box { margin-left: 0; margin-right: auto; }
[dir=rtl] .search-box input { padding: 9px 36px 9px 14px; background-position: calc(100% - 13px) 50%; }
[dir=rtl] .usermenu .menu, [dir=rtl] .langmenu .menu { right: auto; left: 0; }
[dir=rtl] .menu a, [dir=rtl] .menu button, [dir=rtl] .sr-item { text-align: right; }
[dir=rtl] .sr-item { align-items: flex-end; }
[dir=rtl] .tree-viewport, [dir=rtl] .tree-canvas { direction: ltr; }
[dir=rtl] .node { direction: rtl; }
[dir=rtl] .person-panel { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--line); }
[dir=rtl] .panel-close { float: left; margin: 10px 0 0 10px; }
[dir=rtl] .chain { padding: 0 14px 0 0; border-left: 0; border-right: 2px solid var(--gold-soft); }
[dir=rtl] .chain li { padding: 4px 10px 6px 0; }
[dir=rtl] .chain li::before { left: auto; right: -20px; }
[dir=rtl] .kid { border-left: 0; border-right: 3px solid var(--navy); }
[dir=rtl] .kid.f { border-right-color: var(--female); }
[dir=rtl] .features li { border-left: 1px solid var(--line); border-right: 3px solid var(--gold); }
[dir=rtl] .req { border-left: 1px solid var(--line); border-right: 4px solid var(--line); }
[dir=rtl] .req.status-pending { border-right-color: var(--gold); } [dir=rtl] .req.status-approved { border-right-color: var(--ok); }
[dir=rtl] .req.status-returned { border-right-color: var(--warn); } [dir=rtl] .req.status-rejected { border-right-color: var(--err); }
[dir=rtl] .stat { border-right: 0; border-left: 1px solid var(--line); }
[dir=rtl] .stat:last-child { border-left: 0; }
[dir=rtl] .req-top time { margin-left: 0; margin-right: auto; }
[dir=rtl] .hero-edit { right: auto; left: 16px; }
[dir=rtl] .hero-shade { transform: scaleX(-1); }
[dir=rtl] .hero.fit-contain .hs-fg { background-position: left center; }
[dir=rtl] .tbl th { text-align: right; }
[dir=rtl] .pw-eye { right: auto; left: 6px; }
[dir=rtl] .pw-wrap input { padding-right: 12px; padding-left: 90px; }
input[type=email], input[name=email], input[type=password], .copy-row input { direction: ltr; }
@media (max-width: 800px) {
  .langmenu summary span { display: none; }
  .langmenu summary { padding: 0; width: 36px; justify-content: center; }
  [dir=rtl] .person-panel { left: 0; right: 0; border-right: 0; }
  [dir=rtl] .stat:nth-child(2) { border-left: 0; }
}
.lang-fields { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; }
.lang-fields summary { cursor: pointer; font-weight: 600; color: var(--navy-3); }
.lang-fields[open] { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Басты беттегі модераторлар ---------- */
.mods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mod { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.mod.is-admin { border-color: var(--gold); }
.mod-top { display: flex; gap: 12px; align-items: center; }
.mod-who { display: flex; flex-direction: column; min-width: 0; }
.mod-branch { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 9px 12px; background: var(--bg); border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 14px; }
.mod-branch span { color: var(--muted); font-size: 12px; }
a.mod-branch:hover { background: var(--gold-soft); color: var(--navy); }
.mod-contacts { display: flex; gap: 6px; flex-wrap: wrap; }
.chip.wa { background: #e8f6ee; border-color: #bfe5cd; color: #1d7a45; }
.chip.wa:hover { background: #25d366; color: #fff; border-color: #25d366; }

/* ---------- Бөлісу суретінің алдын ала көрінісі ---------- */
.og-preview { max-width: 460px; border-radius: 10px; overflow: hidden; background: #e7f3ec; border: 1px solid #cfe3d6; }
.og-preview img { display: block; width: 100%; aspect-ratio: 1200/630; object-fit: cover; }
.og-ph { aspect-ratio: 1200/630; display: grid; place-items: center; color: var(--muted); font-size: 13px; background: var(--bg); }
.og-meta { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; font-size: 13px; background: #f0f2f0; }
.og-meta .og-host { color: var(--muted); font-size: 12px; }
.og-meta b { color: var(--ink); }
.og-meta span:last-child { color: var(--muted); }

/* Балалар реті */
.order-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.order-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line, #e3dccb); border-radius: 12px; background: #fff; }
.order-list li.f { background: #fdf6f8; }
.order-list li.moved { animation: olMoved .5s ease; }
@keyframes olMoved { from { background: #fff1cc; } }
.order-list .ol-n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold, #c9a24b); color: var(--navy, #14213d); font-weight: 700; font-size: 14px; }
.order-list .ol-name { flex: 1; min-width: 0; }
.order-list .ol-btn { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--line, #e3dccb); background: #faf7f0; cursor: pointer; font-size: 14px; color: var(--navy, #14213d); }
.order-list .ol-btn:hover:not(:disabled) { border-color: var(--gold, #c9a24b); }
.order-list .ol-btn:disabled { opacity: .3; cursor: default; }

@media (max-width: 800px) { .person-panel .panel-body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
