/* ==========================================================================
   گنجینه — ماژول میراث (H): شجره‌نامه‌ی تعاملی و کارنامه‌ی تولیت
   فقط متغیرهای رنگ پوسته؛ روز: کاغذ عاج و لاجورد، شب: سرمه‌ای پرستاره.
   ========================================================================== */

/* ---------------------------------------------------------------- هیروی میراث (مشترک) */
.hx-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--grad-brand); color: #EFE9DC; padding: 56px 0 64px; text-align: center; }
.hx-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 360px at 50% -10%, color-mix(in srgb, var(--c-accent) 30%, transparent), transparent 70%), radial-gradient(600px 300px at 100% 100%, color-mix(in srgb, var(--c-brand) 30%, transparent), transparent 70%); }
.hx-hero .crumbs { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .82rem; color: rgba(239, 233, 220, .62); flex-wrap: wrap; }
.hx-hero .crumbs a { color: var(--gold-3); }
.hx-hero .eyebrow { color: var(--gold-3); margin-top: 18px; }
.hx-hero .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--grad-gold); }
.hx-title { margin: 8px auto 4px; font-size: clamp(2.1rem, 6vw, 4.1rem); line-height: 1.7; font-weight: 400; background: linear-gradient(180deg, #FFF3D6 0%, var(--gold-3) 45%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .35)); }
html[lang="en"] .hx-title { font-family: var(--font-display); line-height: 1.25; margin: 14px auto 10px; }
.hx-lead { max-width: 760px; margin: 6px auto 0; color: rgba(239, 233, 220, .82); font-size: 1.04rem; }
.hx-verse { color: var(--gold-3); opacity: .85; font-size: 1.25rem; margin: 6px 0 0; }
.hx-hero .ornament { color: var(--gold-3); }
.hx-hero .ornament i { background: var(--gold-3); }
.hx-arch-line { position: absolute; inset: auto 0 -1px; height: 26px; z-index: 1; background: var(--bg); -webkit-mask: radial-gradient(40px 26px at 50% 0, transparent 98%, #000 100%) 0 0 / 80px 26px repeat-x; mask: radial-gradient(40px 26px at 50% 0, transparent 98%, #000 100%) 0 0 / 80px 26px repeat-x; }

.hx-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; margin: 30px auto 0; max-width: 760px; border: 1px solid color-mix(in srgb, var(--c-accent) 40%, transparent); border-radius: 999px; background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.hx-stats > div { flex: 1 1 140px; padding: 14px 18px; border-inline-start: 1px solid color-mix(in srgb, var(--c-accent) 28%, transparent); }
.hx-stats > div:first-child { border-inline-start: 0; }
.hx-stats b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; color: var(--gold-3); }
.hx-stats span { font-size: .84rem; opacity: .78; }
@media (max-width: 600px) { .hx-stats { border-radius: 24px; } .hx-stats > div { flex-basis: 45%; border-inline-start: 0; } }

/* ---------------------------------------------------------------- صحنه‌ی شجره‌نامه */
.gn-section { padding: 34px 0 80px; }
.gn-stage { --dir: 1; --gn-paper: var(--surface-2); position: relative; display: flex; flex-direction: column; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
[dir="rtl"] .gn-stage { --dir: -1; }
[data-theme="dark"] .gn-stage { --gn-paper: #0A1120; }
.gn-stage::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad-gold); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none; z-index: 8; }

.gn-toolbar { position: relative; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.gn-toolbar .sep { width: 1px; align-self: stretch; background: var(--line); margin-inline: 2px; }
.gn-search { position: relative; flex: 1 1 240px; max-width: 360px; }
.gn-search .input { padding-inline-start: 38px; border-radius: 999px; height: 40px; }
.gn-search > .icon-sm { position: absolute; top: 50%; inset-inline-start: 13px; transform: translateY(-50%); color: var(--gold-ink); pointer-events: none; }
.gn-results { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 30; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); max-height: 360px; overflow: auto; }
.gn-results li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.gn-results li.is-active, .gn-results li:hover { background: var(--gold-soft); }
.gn-results .gn-res-empty { color: var(--muted); cursor: default; justify-content: center; }
.gn-res-mono { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: var(--gold-3); font-family: var(--font-display); box-shadow: 0 0 0 2px var(--gold-soft); }
.gn-res-mono.is-trustee { box-shadow: 0 0 0 2px var(--gold); }
.gn-res-txt { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.gn-res-txt small { color: var(--muted); font-size: .76rem; }

.gn-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.gn-seg button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: .84rem; padding: 5px 13px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.gn-seg button[aria-pressed="true"] { background: var(--grad-brand); color: var(--gold-3); box-shadow: var(--shadow-sm); }
.gn-switch { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; cursor: pointer; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); }
.gn-switch input { accent-color: var(--gold); width: 16px; height: 16px; }
.gn-switch:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-ink); }
.gn-gen { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--text-2); }
.gn-gen input[type="range"] { width: 120px; accent-color: var(--gold); }
.gn-gen output { min-width: 84px; font-weight: 600; color: var(--gold-ink); }
.gn-tools { display: inline-flex; gap: 4px; margin-inline-start: auto; }

.gn-canvas { position: relative; flex: none; height: clamp(520px, 76vh, 920px); overflow: hidden; outline: none; background-color: var(--surface-2);
  background-image: radial-gradient(1100px 620px at 50% -8%, color-mix(in srgb, var(--c-accent) 17%, transparent), transparent 68%), radial-gradient(900px 600px at 100% 110%, color-mix(in srgb, var(--c-brand) 9%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--c-accent) 6%, var(--surface)), var(--surface-2)); }
.gn-canvas::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .05; background: var(--gold); -webkit-mask: var(--pattern) 0 0 / 150px repeat; mask: var(--pattern) 0 0 / 150px repeat; }
[data-theme="dark"] .gn-canvas { background-color: #060B15;
  background-image: radial-gradient(1000px 560px at 50% -12%, color-mix(in srgb, var(--c-brand2) 70%, transparent), transparent 70%), radial-gradient(800px 500px at 100% 110%, color-mix(in srgb, var(--c-accent) 9%, transparent), transparent 70%), linear-gradient(180deg, #0A1224, #060B15); }
[data-theme="dark"] .gn-canvas::before { opacity: .9; background: none; -webkit-mask: none; mask: none;
  background-image: radial-gradient(1px 1px at 23px 41px, rgba(255, 255, 255, .75), transparent 70%), radial-gradient(1px 1px at 131px 97px, rgba(255, 255, 255, .55), transparent 70%), radial-gradient(1.6px 1.6px at 211px 163px, color-mix(in srgb, var(--c-accent) 85%, #fff), transparent 70%), radial-gradient(1px 1px at 77px 211px, rgba(255, 255, 255, .5), transparent 70%), radial-gradient(1.3px 1.3px at 251px 29px, rgba(185, 242, 248, .7), transparent 70%), radial-gradient(1px 1px at 173px 251px, rgba(255, 255, 255, .45), transparent 70%);
  background-size: 280px 280px; animation: gn-twinkle 7s ease-in-out infinite alternate; }
@keyframes gn-twinkle { from { opacity: .55; } to { opacity: 1; } }

.gn-svg { position: relative; display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; overflow: hidden; }
.gn-canvas.is-panning .gn-svg { cursor: grabbing; }
.gn-stage.kb-focus .gn-canvas { box-shadow: inset 0 0 0 2px var(--gold); }

/* رنگ‌های گرادیان SVG */
.gn-s-g1 { stop-color: var(--gold-ink); }
.gn-s-g2 { stop-color: var(--gold); }
.gn-s-g3 { stop-color: var(--gold-3); }
.gn-s-l1 { stop-color: color-mix(in srgb, var(--c-brand2) 62%, var(--c-brand)); }
.gn-s-l2 { stop-color: color-mix(in srgb, var(--c-brand2) 82%, #000); }
.gn-s-t1 { stop-color: color-mix(in srgb, var(--c-brand) 78%, #fff); }
.gn-s-t2 { stop-color: color-mix(in srgb, var(--c-brand) 55%, var(--c-brand2)); }
.gn-s-b1 { stop-color: var(--gold); stop-opacity: .55; }
.gn-s-b2 { stop-color: var(--gold); stop-opacity: 0; }

/* نوار نسل‌ها و گره‌چینی */
.gn-girih rect, .gn-girih circle, .gn-girih path { stroke: var(--gold); stroke-width: 1; }
.gn-girih-band { opacity: .085; }
.gn-girih-disc { opacity: .07; }
.gn-band.odd { fill: color-mix(in srgb, var(--c-accent) 6%, transparent); }
.gn-band.even { fill: transparent; }
.gn-band-line { stroke: var(--gold); stroke-opacity: .32; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; }
.gn-ring-band { stroke: var(--gold); stroke-opacity: .45; stroke-width: 1.2; stroke-dasharray: 3 8; vector-effect: non-scaling-stroke; }
.gn-ring-label { fill: var(--gold-ink); font: 600 14px var(--font-display); opacity: .75; }
.gn-genlabels { position: absolute; top: 0; inset-inline-start: 0; bottom: 0; width: 0; pointer-events: none; z-index: 2; }
.gn-genlabel { position: absolute; top: 0; inset-inline-start: 12px; white-space: nowrap; padding: 3px 12px; border-radius: 999px; font-family: var(--font-display); font-size: .8rem; color: var(--gold-ink); background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid color-mix(in srgb, var(--c-accent) 38%, transparent); backdrop-filter: blur(4px); transition: opacity .25s; will-change: transform; }

/* پیوندها */
.gn-link { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-opacity: .78; stroke-linecap: round; transition: stroke-opacity .35s, stroke-width .35s; }
.gn-link.to-trustee { stroke-width: 2.3; }
.gn-intro .gn-link { stroke-dasharray: 1; stroke-dashoffset: 1; animation: gn-draw 1.15s var(--ease) forwards; animation-delay: calc(var(--d) * .3s - .25s); }
@keyframes gn-draw { to { stroke-dashoffset: 0; } }

/* مدال اعضا */
.gn-node { cursor: pointer; transition: opacity .35s; }
.gn-node.is-leaving { opacity: 0; pointer-events: none; }
.gn-body { transform-box: fill-box; transform-origin: center; }
.gn-intro .gn-body { animation: gn-pop .75s var(--ease) both; animation-delay: calc(var(--d) * .3s - .5s); }
.gn-intro .gn-name, .gn-intro .gn-title, .gn-intro .gn-years, .gn-intro .gn-tog { animation: gn-fade .6s ease both; animation-delay: calc(var(--d) * .3s - .2s); }
@keyframes gn-pop { from { opacity: 0; transform: scale(.35); } to { opacity: 1; transform: scale(1); } }
@keyframes gn-fade { from { opacity: 0; } to { opacity: 1; } }
.gn-halo { fill: var(--gold); opacity: 0; transition: opacity .3s; }
.gn-node:hover .gn-halo { opacity: .16; }
.gn-node.is-selected .gn-halo { opacity: .32; }
.gn-shadow { fill: #0B1426; opacity: .16; }
[data-theme="dark"] .gn-shadow { fill: #000; opacity: .5; }
.gn-disc { stroke: color-mix(in srgb, var(--c-accent) 45%, transparent); stroke-width: 1; }
.gn-ring-in { fill: none; stroke: var(--gold-3); stroke-width: .9; stroke-opacity: .75; stroke-dasharray: 1.5 3; }
.gn-mono { fill: var(--gold-3); font: 700 30px var(--font-display); }
.gn-burst { transform-box: fill-box; transform-origin: center; animation: gn-spin 80s linear infinite; }
@keyframes gn-spin { to { transform: rotate(360deg); } }
.gn-crown-gem { fill: var(--brand-3); stroke: var(--gold-ink); stroke-width: .6; }
.is-founder .gn-mono { font-size: 34px; }
.gn-seal-core { fill: color-mix(in srgb, var(--c-brand2) 88%, #000); stroke: var(--gold-3); stroke-width: .6; }
.gn-seal-no { fill: var(--gold-3); font: 800 11px var(--font); }
.gn-alive { fill: var(--ok); stroke: var(--gn-paper); stroke-width: 2; }
.gn-alive-ring { fill: none; stroke: var(--brand-3); stroke-width: 1.3; stroke-dasharray: 1 4.5; stroke-linecap: round; }
.gn-name, .gn-title, .gn-years, .gn-tog-count { paint-order: stroke; stroke: var(--gn-paper); stroke-width: 5px; stroke-linejoin: round; }
.gn-name { font: 700 14px var(--font); fill: var(--text); }
.is-founder .gn-name { font: 700 16px var(--font-display); fill: var(--gold-ink); }
.gn-title { font: 600 11.5px var(--font); fill: var(--gold-ink); }
.gn-years { font: 400 11px var(--font); fill: var(--muted); }
.gn-tog { cursor: pointer; }
.gn-tog circle { fill: var(--surface); stroke: var(--gold); stroke-width: 1.2; transition: fill .2s; }
.gn-tog:hover circle { fill: var(--gold-soft); }
.gn-tog path { stroke: var(--gold-ink); stroke-width: 1.7; stroke-linecap: round; }
.gn-tog-v { display: none; }
.gn-node.is-collapsed .gn-tog-v { display: inline; }
.gn-node.is-collapsed .gn-tog circle { fill: var(--gold); }
.gn-node.is-collapsed .gn-tog path { stroke: var(--on-gold); }
.gn-tog-count { font: 600 10.5px var(--font); fill: var(--muted); opacity: 0; }
.gn-node.is-collapsed .gn-tog-count { opacity: 1; }
.gn-svg.is-far .gn-title, .gn-svg.is-far .gn-years, .gn-svg.is-far .gn-tog-count, .gn-svg.is-far .gn-ring-in { display: none; }
.gn-svg.is-far .gn-name { font-size: 20px; }
.gn-node.is-focus .gn-ring { stroke: var(--brand-3); stroke-width: 3; }
.gn-node.is-selected .gn-ring { stroke: var(--gold-3); stroke-width: 2.5; }
.gn-node.is-hidden-member { opacity: .5; }
.gn-node.is-hidden-member .gn-disc { stroke-dasharray: 4 3; stroke: var(--muted); }

/* تبار و زنجیره‌ی تولیت */
.has-path .gn-node:not(.is-path) { opacity: .25; }
.has-path .gn-link:not(.is-path) { stroke-opacity: .14; }
.gn-link.is-path { stroke-width: 3.4; stroke-opacity: 1; }
.gn-node.is-path .gn-halo { opacity: .3; }
.only-trustees .gn-node:not(.is-chain) { opacity: .16; }
.only-trustees .gn-node.is-chain:not(.is-trustee):not(.is-founder) { opacity: .55; }
.only-trustees .gn-link:not(.is-chain) { stroke-opacity: .1; }
.gn-link.is-chain { stroke-width: 2.8; stroke-opacity: 1; }
.only-trustees .gn-node.is-trustee .gn-halo { opacity: .28; }
.gn-succ { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-dasharray: 9 7; stroke-linecap: round; animation: gn-march 1.1s linear infinite; }
.gn-succ-glow { fill: none; stroke: var(--gold); stroke-opacity: .16; stroke-width: 12; stroke-linecap: round; }
@keyframes gn-march { to { stroke-dashoffset: -16; } }

/* کشیدن عضو در ویرایشگر */
.gn-ghost { pointer-events: none; opacity: .92; }
.gn-ghost circle { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 2; stroke-dasharray: 5 4; }
.gn-ghost-mono { fill: var(--gold-ink); font: 700 28px var(--font-display); }
.gn-ghost-name { fill: var(--text); font: 700 13px var(--font); }
.gn-node.is-drag-desc { opacity: .3; }
.gn-node.drop-ok .gn-halo { opacity: .55; fill: var(--ok); }
.gn-node.drop-bad .gn-halo { opacity: .55; fill: var(--bad); }
.is-dragging-node .gn-svg, .gn-svg.is-dragging-node { cursor: copy; }

/* کنترل‌های شناور */
.gn-float { position: absolute; bottom: 152px; inset-inline-end: 16px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }
.gn-float .btn-icon, .gn-tools .btn-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); color: var(--text-2); }
.gn-float .btn-icon:hover, .gn-tools .btn-icon:hover { color: var(--gold-ink); border-color: var(--gold); }
.gn-minimap { position: absolute; bottom: 16px; inset-inline-end: 16px; z-index: 4; width: 190px; height: 124px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(8px); cursor: crosshair; touch-action: none; }
.gn-legend { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; max-width: 60%; justify-content: flex-end; pointer-events: none; }
.gn-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--text-2); padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); }
.gn-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.gn-legend .lg-founder { background: var(--grad-gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.gn-legend .lg-trustee { background: var(--c-brand2); box-shadow: inset 0 0 0 2px var(--gold); }
.gn-legend .lg-living { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.gn-legend .lg-path { width: 18px; height: 3px; border-radius: 3px; background: var(--gold); }
.gn-hint { position: absolute; left: 50%; top: 50%; z-index: 6; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 999px; background: rgba(8, 14, 28, .78); color: #F4EFE3; font-size: .88rem; opacity: 0; pointer-events: none; transition: opacity .3s; }
.gn-hint.is-show { opacity: 1; }
.gn-loading { position: absolute; inset: 0; display: none; place-items: center; z-index: 5; color: var(--gold-ink); font-family: var(--font-display); }
.gn-stage.is-loading .gn-loading { display: grid; }
.gn-empty-msg { position: absolute; inset: 0; display: none; place-items: center; z-index: 5; }
.gn-stage.is-empty .gn-empty-msg { display: grid; }
@media (max-width: 700px) { .gn-minimap, .gn-legend { display: none; } .gn-float { bottom: 12px; inset-inline-end: 12px; } .gn-canvas { height: 68vh; min-height: 440px; } }

/* پنل جزئیات عضو */
.gn-panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; z-index: 7; width: min(410px, 94%); padding: 12px; transform: translateX(104%); transition: transform .38s var(--ease); }
[dir="rtl"] .gn-panel { transform: translateX(-104%); }
.gn-panel.is-open { transform: none !important; }
.gn-panel > .lux-frame { height: 100%; }
.gn-panel .lux-inner { height: 100%; overflow: auto; padding: 26px 22px 22px; overscroll-behavior: contain; }
.gn-panel-close { position: absolute; top: 20px; inset-inline-end: 20px; z-index: 2; }
.gn-p-head { text-align: center; }
.gn-p-portrait { width: 148px; margin: 4px auto 12px; padding: 7px; }
.gn-p-portrait img, .gn-p-portrait .arch-inner { aspect-ratio: 3 / 3.7; }
.gn-p-portrait.is-founder { box-shadow: var(--shadow-lg), 0 0 0 6px var(--gold-soft), var(--shadow-gold); }
.gn-p-mono { display: grid !important; place-items: center; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c-brand2) 62%, var(--c-brand)), color-mix(in srgb, var(--c-brand2) 85%, #000)); position: relative; overflow: hidden; }
.gn-p-mono.is-female { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c-brand) 78%, #fff), color-mix(in srgb, var(--c-brand) 55%, var(--c-brand2))); }
.gn-p-mono::before { content: ''; position: absolute; inset: 0; background: var(--gold-3); opacity: .14; -webkit-mask: var(--pattern) 0 0 / 60px repeat; mask: var(--pattern) 0 0 / 60px repeat; }
.gn-p-mono span { position: relative; font-family: var(--font-display); font-size: 4rem; color: var(--gold-3); text-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
.gn-p-gen { font-size: .76rem; letter-spacing: .12em; color: var(--gold-ink); font-weight: 700; }
.gn-p-name { font-family: var(--font-display); font-size: 1.55rem; margin: 2px 0 0; line-height: 1.5; }
.gn-p-title { color: var(--muted); font-size: .92rem; }
.gn-p-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.gn-p-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.gn-p-dl > div { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.gn-p-dl dt { font-size: .74rem; color: var(--muted); }
.gn-p-dl dd { margin: 2px 0 0; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.gn-p-bio { margin-top: 16px; }
.gn-p-bio p { margin: 0; white-space: pre-line; color: var(--text-2); line-height: 2; text-align: justify; }
html[lang="en"] .gn-p-bio p { line-height: 1.75; text-align: start; }
.gn-p-rel { margin-top: 16px; }
.gn-p-bio h3, .gn-p-rel h3 { font-size: .86rem; color: var(--gold-ink); margin: 0 0 8px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.gn-p-bio h3::after, .gn-p-rel h3::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
[dir="rtl"] .gn-p-bio h3::after, [dir="rtl"] .gn-p-rel h3::after { background: linear-gradient(-90deg, var(--line), transparent); }
.gn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gn-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px 3px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .84rem; cursor: pointer; transition: border-color .2s, background .2s; }
[dir="rtl"] .gn-chip { padding: 3px 4px 3px 12px; }
.gn-chip:hover { border-color: var(--gold); background: var(--gold-soft); }
.gn-chip.is-trustee { border-color: color-mix(in srgb, var(--c-accent) 60%, transparent); }
.gn-chip-mono { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: .78rem; color: var(--gold-3); background: var(--grad-brand); }
.gn-p-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: .82rem; }
.gn-p-chain li { display: inline-flex; align-items: center; gap: 4px; }
.gn-p-chain li + li::before { content: ''; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); opacity: .7; margin-inline: 2px; }
.gn-p-chain button { border: 0; background: none; padding: 0; font: inherit; color: var(--brand); cursor: pointer; }
.gn-p-chain button[aria-current] { color: var(--gold-ink); font-weight: 700; }
.gn-p-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
@media (max-width: 760px) {
  .gn-panel { position: fixed; top: auto !important; inset-inline: 0; bottom: 0; width: 100%; max-height: 84vh; padding: 8px; transform: translateY(104%) !important; z-index: 160; }
  .gn-panel.is-open { transform: none !important; }
  .gn-panel .lux-inner { max-height: calc(84vh - 18px); }
  .gn-p-dl { grid-template-columns: 1fr; }
}

/* راهنمای صفحه‌کلید */
.gn-keys { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; background: rgba(4, 8, 18, .55); backdrop-filter: blur(4px); padding: 16px; }
.gn-keys[hidden] { display: none; }
.gn-keys .card { width: min(480px, 100%); }
.gn-keys dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; align-items: center; }
.gn-keys dt { display: flex; gap: 4px; }
.gn-keys dd { margin: 0; color: var(--text-2); font-size: .9rem; }
kbd.gn-kbd { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--surface-2); font: 600 .78rem var(--font); }

/* تمام‌صفحه */
.gn-stage.is-fullscreen { position: fixed; inset: 0; z-index: 300; border-radius: 0; }
.gn-stage:fullscreen { border-radius: 0; width: 100vw; height: 100vh; }
.gn-stage:fullscreen .gn-canvas, .gn-stage.is-fullscreen .gn-canvas { height: auto; flex: 1; }

/* نمای فهرستی (دسترس‌پذیر) */
.gn-list { padding: 22px clamp(16px, 3vw, 34px) 30px; background: var(--surface); max-height: 78vh; overflow: auto; }
.gn-list[hidden] { display: none; }
.gn-stage[data-view="list"] .gn-canvas { display: none; }
.gn-stage[data-view="list"] [data-gn-listhide] { display: none !important; }
.gn-list h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 0; }
.gn-tree-list, .gn-tree-list ul { list-style: none; margin: 0; padding: 0; }
.gn-tree-list ul { padding-inline-start: 22px; margin-inline-start: 13px; border-inline-start: 1px dashed color-mix(in srgb, var(--c-accent) 55%, transparent); }
.gn-tree-list li { position: relative; }
.gn-tree-list ul > li::before { content: ''; position: absolute; inset-inline-start: -22px; top: 21px; width: 18px; height: 1px; background: color-mix(in srgb, var(--c-accent) 55%, transparent); }
.gn-tree-list details > summary { list-style: none; cursor: pointer; }
.gn-tree-list details > summary::-webkit-details-marker { display: none; }
.gn-li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; }
.gn-li:hover { background: var(--gold-soft); }
.gn-li-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: .8rem; color: var(--gold-3); background: var(--grad-brand); }
.gn-li.is-trustee .gn-li-mark { box-shadow: 0 0 0 2px var(--gold); }
.gn-li.is-founder .gn-li-mark { background: var(--grad-gold); color: var(--on-gold); }
.gn-li-txt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.gn-li-txt b { font-weight: 700; }
.gn-li-txt small { color: var(--muted); }
.gn-li-open { margin-inline-start: auto; border: 0; background: none; color: var(--brand); cursor: pointer; padding: 4px; border-radius: 8px; }
.gn-li-open:hover { color: var(--gold-ink); background: var(--surface-2); }
.gn-caret { transition: transform .25s; color: var(--gold-ink); }
details[open] > summary .gn-caret { transform: rotate(90deg); }
[dir="rtl"] details[open] > summary .gn-caret { transform: rotate(-90deg); }
.gn-li-bio { margin: 0 0 6px; padding-inline-start: 44px; color: var(--muted); font-size: .86rem; }

/* بخش همراه صفحه */
.gn-explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 30px; }
.gn-explain .card { padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.gn-explain .card .icon { color: var(--gold); flex: none; width: 26px; height: 26px; }
.gn-explain h3 { margin: 0 0 4px; font-size: 1rem; }
.gn-explain p { margin: 0; color: var(--muted); font-size: .88rem; }

/* چاپ درخت */
@media print {
  body.gn-printing * { visibility: hidden !important; }
  body.gn-printing .gn-canvas, body.gn-printing .gn-canvas * { visibility: visible !important; }
  body.gn-printing .gn-canvas { position: fixed; inset: 0; height: 100vh !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.gn-printing .gn-minimap, body.gn-printing .gn-float, body.gn-printing .gn-hint, body.gn-printing .gn-legend { visibility: hidden !important; }
  .gn-intro .gn-link { stroke-dasharray: none; animation: none; }
}

/* ==========================================================================
   کارنامه‌ی تولیت
   ========================================================================== */
.tr-hero { text-align: start; padding: 50px 0 70px; }
.tr-hero .crumbs { justify-content: flex-start; }
.tr-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.tr-hero .hx-title { margin-inline: 0; }
.tr-hero .hx-lead { margin-inline: 0; }
.tr-current { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 12px 18px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid color-mix(in srgb, var(--c-accent) 36%, transparent); width: fit-content; max-width: 100%; }
.tr-current .tr-seal { flex: none; }
.tr-current small { display: block; color: var(--gold-3); font-size: .76rem; letter-spacing: .08em; }
.tr-current b { font-size: 1.08rem; color: #FFF8E8; }
.tr-current span { display: block; font-size: .84rem; color: rgba(239, 233, 220, .7); }
.tr-portrait { position: relative; width: min(330px, 100%); margin-inline: auto; }
.tr-portrait .arch-frame { background: linear-gradient(color-mix(in srgb, var(--c-brand2) 80%, #000), color-mix(in srgb, var(--c-brand2) 80%, #000)) padding-box, var(--grad-gold) border-box; }
.tr-portrait img, .tr-portrait .arch-inner { aspect-ratio: 3 / 4; }
.tr-portrait .gn-p-mono span { font-size: 7rem; }
.tr-portrait::before { content: ''; position: absolute; inset: -26px -26px auto; height: 70%; border-radius: 999px 999px 0 0; border: 1px solid color-mix(in srgb, var(--c-accent) 45%, transparent); border-bottom: 0; }
.tr-portrait figcaption { text-align: center; margin-top: 16px; color: var(--gold-3); font-family: var(--font-display); }
.tr-seal { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--grad-gold); color: var(--on-gold); font-weight: 800; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 25%, transparent); position: relative; }
.tr-seal::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--c-accent) 70%, transparent); }
@media (max-width: 900px) { .tr-hero-grid { grid-template-columns: 1fr; } .tr-portrait { width: min(260px, 80%); } }

.tr-highlights { margin-top: -38px; position: relative; z-index: 2; }

/* سلسله‌ی متولیان */
.tr-line { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 0; overflow-x: auto; padding: 8px 4px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tr-line::before { content: ''; position: absolute; top: 55px; inset-inline: 30px; height: 2px; background: var(--grad-gold); opacity: .7; }
.tr-step { position: relative; scroll-snap-align: start; text-align: center; padding: 0 10px; color: inherit; }
.tr-step .tr-medal { position: relative; width: 94px; height: 94px; margin: 0 auto 12px; border-radius: 50%; padding: 4px; background: var(--grad-gold); box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.tr-step .tr-medal > span, .tr-step .tr-medal > img { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; object-fit: cover; background: var(--grad-brand); color: var(--gold-3); font-family: var(--font-display); font-size: 2rem; }
.tr-step .tr-medal i { position: absolute; bottom: -4px; inset-inline-end: -4px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c-brand2); color: var(--gold-3); font-style: normal; font-weight: 800; font-size: .8rem; border: 2px solid var(--gold); }
.tr-step:hover .tr-medal { transform: translateY(-5px); }
.tr-step h3 { font-size: .98rem; margin: 0; }
.tr-step small { display: block; color: var(--gold-ink); font-weight: 600; font-size: .78rem; }
.tr-step p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }
.tr-step.is-current .tr-medal { box-shadow: var(--shadow-gold), 0 0 0 6px var(--gold-soft); }

/* منوی بخش‌ها */
.tr-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.tr-tile { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; border-radius: 180px 180px var(--radius-lg) var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: inherit; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; }
.tr-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); color: inherit; }
.tr-tile-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grad-brand); }
.tr-tile-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tr-tile:hover .tr-tile-cover img { transform: scale(1.06); }
.tr-tile-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--c-brand2) 60%, transparent)); }
.tr-tile .iw-icon { position: relative; z-index: 2; width: 58px; height: 58px; margin: -30px auto 4px; display: grid; place-items: center; border-radius: 18px; transform: rotate(45deg); background: var(--grad-brand); box-shadow: var(--shadow), 0 0 0 4px var(--surface); border: 1px solid var(--gold); }
.tr-tile .iw-icon > * { transform: rotate(-45deg); color: var(--gold-3); width: 24px; height: 24px; }
.tr-tile-body { padding: 8px 22px 22px; text-align: center; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tr-tile h3 { font-family: var(--font-display); font-size: 1.12rem; margin: 0; }
.tr-tile p { color: var(--muted); font-size: .88rem; margin: 0; flex: 1; }
.tr-tile-foot { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--gold-ink); padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 8px; }

/* صفحه‌ی بخش */
.tr-show-hero { padding: 46px 0 84px; }
.tr-show-hero .hx-title { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.6; }
.tr-show-hero .tr-hero-icon { width: 70px; height: 70px; margin: 18px auto 0; display: grid; place-items: center; border-radius: 22px; transform: rotate(45deg); background: rgba(255, 255, 255, .06); border: 1px solid var(--gold-3); }
.tr-show-hero .tr-hero-icon > * { transform: rotate(-45deg); color: var(--gold-3); width: 28px; height: 28px; }
.tr-show-hero.has-cover { background: var(--c-brand2); }
.tr-cover-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .28; filter: saturate(.8); }
.tr-stats { margin-top: -44px; position: relative; z-index: 2; }
.tr-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; margin-top: 44px; }
.tr-side { position: sticky; top: 96px; }
.tr-side h2 { font-size: .8rem; letter-spacing: .12em; color: var(--gold-ink); margin: 0 0 10px; font-weight: 700; }
.tr-side nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tr-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; color: var(--text-2); font-size: .9rem; position: relative; }
.tr-side a .icon-sm { color: var(--gold); flex: none; }
.tr-side a:hover { background: var(--surface-2); color: var(--text); }
.tr-side a.is-active { background: var(--grad-brand); color: #FFF8E8; box-shadow: var(--shadow); }
.tr-side a.is-active .icon-sm { color: var(--gold-3); }
.tr-side a.is-active::after { content: ''; position: absolute; inset-inline-end: 10px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-3); }
.tr-side .tr-side-back { margin-top: 12px; }
@media (max-width: 980px) {
  /* H-23: minmax(0,1fr) و min-width:0 تا نوار قرص‌ها ستون را تا ۱۱۰۰px پهن نکند؛ قرص‌ها درون خودشان افقی می‌لغزند */
  .tr-layout { grid-template-columns: minmax(0, 1fr); }
  .tr-layout > * { min-width: 0; }
  .tr-side { position: static; min-width: 0; max-width: 100%; }
  .tr-side nav { flex-direction: row; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; border-radius: 999px; max-width: 100%; scrollbar-width: thin; }
  .tr-side a { flex: none; }
  .tr-side a { white-space: nowrap; scroll-snap-align: start; border-radius: 999px; }
  .tr-side a.is-active::after { display: none; }
  .tr-side h2, .tr-side .tr-side-back { display: none; }
}

.tr-items { display: flex; flex-direction: column; gap: clamp(42px, 6vw, 80px); }
.tr-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(22px, 4vw, 48px); align-items: start; }
.tr-item.pos-end .tr-item-media { order: 2; }
.tr-item.pos-top { grid-template-columns: 1fr; }
.tr-item.no-media { grid-template-columns: 1fr; }
.tr-item-media { position: sticky; top: 100px; }
.tr-item.pos-top .tr-item-media { position: static; }
.tr-frame { position: relative; padding: 10px; border-radius: 200px 200px 26px 26px; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-gold) border-box; border: 1.5px solid transparent; box-shadow: var(--shadow-lg); }
.tr-item.pos-top .tr-frame { border-radius: 30px; }
.tr-frame img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 190px 190px 18px 18px; cursor: zoom-in; }
.tr-item.pos-top .tr-frame img { aspect-ratio: 21 / 9; border-radius: 22px; }
.tr-frame .corner-orn { width: 34px; height: 34px; opacity: .8; }
.tr-frame .corner-orn.bl { bottom: 18px; inset-inline-start: 18px; }
.tr-frame .corner-orn.br { bottom: 18px; inset-inline-end: 18px; }
.tr-item-text { min-width: 0; }
.tr-item-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tr-item-no { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tr-item h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.95rem); margin: 0 0 14px; line-height: 1.55; }
.tr-prose { font-size: 1.04rem; line-height: 2.15; color: var(--text-2); text-align: justify; }
html[lang="en"] .tr-prose { line-height: 1.85; text-align: start; font-size: 1.05rem; }
.tr-prose p { margin: 0 0 1.05em; }
.tr-prose > p:first-child::first-letter { font-family: var(--font-display); font-size: 1.9em; color: var(--gold-ink); }
.tr-prose h2, .tr-prose h3 { font-family: var(--font-display); color: var(--text); font-size: 1.2rem; margin: 1.4em 0 .5em; }
.tr-prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-inline-start: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 16px 16px 0; font-family: var(--font-display); color: var(--text); }
[dir="rtl"] .tr-prose blockquote { border-radius: 16px 0 0 16px; }
.tr-prose ul, .tr-prose ol { padding-inline-start: 1.3em; }
.tr-prose li::marker { color: var(--gold); }
.tr-prose img { border-radius: 16px; margin: 1em auto; }
.tr-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tr-metric { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); min-width: 120px; }
.tr-metric b { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; color: var(--gold-ink); }
.tr-metric b small { font-family: var(--font); font-size: .74rem; color: var(--muted); font-weight: 500; margin-inline-start: 4px; }
.tr-metric span { font-size: .8rem; color: var(--muted); }
.tr-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 14px; }
.tr-gallery button { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; aspect-ratio: 1; }
.tr-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tr-gallery button:hover img { transform: scale(1.08); }
.tr-divider { display: flex; justify-content: center; }
@media (max-width: 860px) { .tr-item { grid-template-columns: 1fr; } .tr-item.pos-end .tr-item-media { order: 0; } .tr-item-media { position: static; } }

.tr-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 60px; }
.tr-pn a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: inherit; transition: border-color .3s, transform .3s var(--ease); }
.tr-pn a:hover { border-color: var(--gold); transform: translateY(-3px); color: inherit; }
.tr-pn a.next { justify-content: flex-end; text-align: end; grid-column: 2; }
.tr-pn small { display: block; color: var(--gold-ink); font-size: .76rem; }
.tr-pn b { font-family: var(--font-display); font-weight: 600; }
.tr-pn .icon { color: var(--gold); flex: none; }
@media (max-width: 600px) { .tr-pn { grid-template-columns: 1fr; } .tr-pn a.next { grid-column: auto; } }

/* لایت‌باکس */
.tr-lightbox { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 20px; background: rgba(4, 8, 18, .9); backdrop-filter: blur(8px); }
.tr-lightbox[hidden] { display: none; }
.tr-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.tr-lightbox img { max-width: 100%; max-height: 80vh; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); border: 1px solid color-mix(in srgb, var(--c-accent) 50%, transparent); }
.tr-lightbox figcaption { color: #EFE9DC; font-size: .9rem; }
.tr-lightbox .btn-icon { color: #F4EFE3; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); width: 46px; height: 46px; border-radius: 50%; }
.tr-lightbox .tr-lb-close { position: absolute; top: 18px; inset-inline-end: 18px; }

/* ==========================================================================
   مدیریت
   ========================================================================== */
.gn-editor { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .9fr); gap: 20px; align-items: start; }
.gn-editor .gn-stage { box-shadow: var(--shadow); }
.gn-editor .gn-canvas { height: calc(100vh - 250px); min-height: 520px; }
.gn-editor-form { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.gn-editor-form .card-head h2 { font-size: 1.05rem; margin: 0; }
.gn-form-mode { font-size: .78rem; color: var(--gold-ink); font-weight: 700; letter-spacing: .06em; }
.gn-mini-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 1180px) { .gn-editor { grid-template-columns: 1fr; } .gn-editor-form { position: static; max-height: none; } .gn-editor .gn-canvas { height: 62vh; } }
.rep-rows { display: flex; flex-direction: column; gap: 10px; }
.rep-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 8px; align-items: end; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.rep-row label { font-size: .74rem; color: var(--muted); display: block; margin-bottom: 2px; }
@media (max-width: 760px) { .rep-row { grid-template-columns: 1fr 1fr; } }
.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.icon-picker label { position: relative; cursor: pointer; }
.icon-picker input { position: absolute; opacity: 0; inset: 0; }
.icon-picker span { display: grid; place-items: center; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); transition: all .2s; }
.icon-picker input:checked + span { background: var(--grad-brand); color: var(--gold-3); border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.icon-picker input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.adm-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.adm-thumbs figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.adm-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.adm-thumbs figcaption { padding: 4px 8px; font-size: .78rem; }
.tr-admin-card { display: grid; grid-template-columns: auto 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; }
.tr-admin-card .thumb { width: 64px; height: 64px; border-radius: 32px 32px 12px 12px; object-fit: cover; background: var(--grad-brand); display: grid; place-items: center; color: var(--gold-3); }
.tr-admin-card h3 { margin: 0; font-size: 1rem; }
.tr-admin-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.drag-handle { cursor: grab; color: var(--muted); display: grid; place-items: center; }
.sortable-item.dragging { opacity: .5; }
@media (max-width: 700px) { .tr-admin-card { grid-template-columns: auto minmax(0, 1fr); } .tr-admin-card .thumb { display: none; } .tr-admin-card .actions { grid-column: 1 / -1; } }
