/* ═══════════════════════════════════════════════════════════════════════════
   HAJDUK THEME „Зора над Балкана" — ПРОФИЛЪТ (page styles)
   ───────────────────────────────────────────────────────────────────────────
   Production port of the owner-approved mockup.
   Visual SOT: prototype/hajduk-profil.html  (markup here stays 1:1 with it)

   SCOPING CONTRACT:
     The mockup uses bare generic class names (.tsk-card, .plaque, .niz, .cherga,
     .tab, .medal, .rb2-*, .tm-*, .st-* …) that WOULD collide with the 40 other
     stylesheets this app loads. The profile view is wrapped in <div class="haj-scope">,
     so EVERY rule below is nested under `.haj-scope` (native CSS nesting prepends
     `.haj-scope ` to each nested selector). Nothing leaks out; nothing collides.

   WHAT IS NOT HERE (already in css/hajduk-shared.css — do NOT duplicate):
     · the --haj-* / --font-* / --ink token block (KEPT here: page-only --wool-* tokens)
     · .icon-btn base + parts (::before, :active, i, .badge)   ← page-only modifiers
       like .icon-btn.sm and .tm-close .icon-btn ARE kept below
     · .section-head / .section-head .shev-line / .section-title
     · the universal reset and the reduced-motion `animation:none` block

   NOTE: this mockup defines no @keyframes, no @font-face and no @media — nothing to
   rename or hoist. Fonts are loaded via <link> on the page; Ruslan Display is used
   inline as 'Ruslan Display' with var(--font-display) fallback.
   ═══════════════════════════════════════════════════════════════════════════ */

.haj-scope {

    /* ── page-only tokens: the вълна на чергата, отъ пепель до жарава.
       (--haj-*/--font-*/--ink live in hajduk-shared.css — not repeated here)
       NB: these MUST be direct declarations of .haj-scope, NOT wrapped in a
       nested `& { }` — a bare-ampersand nested block does not reliably apply
       custom properties to the parent, which left every --wool-* undefined and
       the чергата cells transparent (background:var(--wool) → invalid). ── */
    --wool-0: #322d24;
    --wool-1: #5c3b26;
    --wool-2: #8f4b28;
    --wool-3: #c25d28;
    --wool-4: #ef8138;

    /* base surface — the mockup set these on html/body; the dark-green сукно
       background + page min-height land on the scope root itself. */
    background: #16291b;
    min-height: 100vh;

    /* ═══ СУКНОТО — тъкан, гънки, светлина ═══ */
    .sukno {
        position: fixed; inset: 0; z-index: 0;
        pointer-events: none;
        background:
            radial-gradient(ellipse 120% 60% at 50% 22%, rgba(236, 215, 160, 0.09), transparent 60%),
            linear-gradient(112deg, transparent 20%, rgba(0, 0, 0, 0.20) 33%, transparent 45%),
            linear-gradient(74deg, transparent 55%, rgba(0, 0, 0, 0.16) 70%, transparent 84%),
            linear-gradient(160deg, rgba(255, 255, 255, 0.03) 8%, transparent 30%),
            linear-gradient(180deg, #1a3020, #142718 55%, #102013);
    }
    .sukno::before {
        content: '';
        position: absolute; inset: 0;
        background:
            repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
            repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px);
    }
    .sukno::after {
        content: '';
        position: absolute; inset: 0;
        background: radial-gradient(ellipse 105% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
    }

    .ui {
        position: relative;
        z-index: 1;
        max-width: 430px;
        margin: 0 auto;
        padding: 14px 16px 90px;
    }

    /* ═══ ХЕДЪР — назад + настройки (ковани копчета живеят в shared) ═══ */
    .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 2px 14px;
    }
    .hdr-left { display: flex; align-items: center; gap: 11px; }
    .hdr-back-label {
        font-family: var(--font-hand);
        font-size: 18px;
        color: var(--haj-smoke);
        letter-spacing: 0.02em;
    }

    /* ═══════════════════════════════════════════════════════════
       РАЗТВОРЕНОТО ТЕСКЕРЕ — сукнена корица, пергаментов лист
       ═══════════════════════════════════════════════════════════ */
    .tsk-open {
        position: relative;
        background:
            linear-gradient(170deg, rgba(51,87,60,0.4), rgba(27,42,30,0) 42%),
            repeating-linear-gradient(45deg, rgba(0,0,0,0.09) 0 1px, transparent 1px 4px),
            repeating-linear-gradient(-45deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 4px),
            var(--haj-moss);
        border: 1px solid rgba(207,166,45,0.5);
        border-radius: 10px;
        padding: 13px;
        box-shadow: 0 14px 34px rgba(0,0,0,0.45), inset 0 1px 0 rgba(240,205,130,0.14);
    }
    .tsk-open::before {
        content: '';
        position: absolute;
        inset: 4px;
        border: 1px solid rgba(207,166,45,0.24);
        border-radius: 7px;
        pointer-events: none;
    }

    /* листът */
    .tsk-sheet {
        position: relative;
        padding: 16px 15px 14px;
        border-radius: 3px;
        overflow: hidden;
        transform: rotate(-0.4deg);
        background:
            radial-gradient(140% 90% at 50% 0%, rgba(255,246,220,0.55), rgba(214,190,140,0.25) 70%),
            radial-gradient(ellipse 40% 26% at 84% 88%, rgba(120,90,40,0.14), transparent 70%),
            var(--haj-parchment);
        box-shadow:
            inset 0 0 0 1px rgba(120,90,40,0.35),
            inset 0 0 24px rgba(120,90,40,0.22),
            0 5px 12px rgba(0,0,0,0.38);
        color: #38301d;
    }
    .tsk-sheet .inner-rule {
        position: absolute; inset: 5px;
        border: 1px solid rgba(120,90,40,0.4);
        pointer-events: none;
    }
    /* гънките — листът е бил сгънат на три */
    .tsk-sheet .creases {
        position: absolute; inset: 0;
        pointer-events: none;
        background:
            linear-gradient(180deg, transparent calc(34% - 2px), rgba(58,42,24,0.12) calc(34% - 1px), rgba(58,42,24,0.12) 34%, rgba(255,250,235,0.5) calc(34% + 1px), transparent calc(34% + 4px)),
            linear-gradient(180deg, transparent calc(67% - 2px), rgba(58,42,24,0.10) calc(67% - 1px), rgba(58,42,24,0.10) 67%, rgba(255,250,235,0.45) calc(67% + 1px), transparent calc(67% + 4px));
    }
    /* водният знак: лъвът и клетвата */
    .tsk-water {
        position: absolute;
        left: 50%; top: 54%;
        width: 216px; height: 226px;
        transform: translate(-50%, -50%) rotate(-4deg);
        opacity: 0.13;
        filter: sepia(0.4) brightness(0.5);
        pointer-events: none;
    }

    .tsk-no {
        position: absolute; top: 9px; right: 14px;
        font-family: var(--font-hand);
        font-size: 15px;
        color: #7a5c30;
    }
    .tsk-title {
        position: relative;
        font-family: 'Ruslan Display', var(--font-display);
        font-size: 21px;
        font-weight: 400;
        letter-spacing: 0.16em;
        text-align: center;
        color: #4a3216;
        text-shadow: 0 1px 0 rgba(255,246,220,0.6);
    }
    .tsk-sub {
        position: relative;
        text-align: center;
        font-family: var(--font-hand);
        font-size: 15.5px;
        color: #7a5c30;
        margin-top: 1px;
    }

    .tsk-body {
        position: relative;
        display: flex;
        gap: 15px;
        margin-top: 13px;
        align-items: flex-start;
    }
    /* снимката — залепена с ъгълчета като в стар албум */
    .tsk-photo-wrap {
        position: relative;
        flex-shrink: 0;
        transform: rotate(-2.4deg);
        filter: drop-shadow(0 3px 5px rgba(58,42,24,0.4));
    }
    .tsk-photo {
        width: 88px; height: 104px;
        border: 4px solid #f5ecd6;
        outline: 1px solid rgba(120,90,40,0.4);
        background:
            radial-gradient(circle at 50% 30%, rgba(233,199,84,0.16), transparent 60%),
            radial-gradient(ellipse 120% 100% at 50% 108%, rgba(20,12,4,0.55), transparent 55%),
            linear-gradient(160deg, #4a3a26, #241a0e);
        display: flex; align-items: center; justify-content: center;
        font-family: var(--font-display);
        font-size: 40px;
        color: #d9c9a8;
    }
    .tsk-corner {
        position: absolute;
        width: 0; height: 0;
        border-style: solid;
    }
    .tsk-corner.c1 { top: -3px; left: -3px; border-width: 15px 15px 0 0; border-color: #2a1c10 transparent transparent transparent; }
    .tsk-corner.c2 { top: -3px; right: -3px; border-width: 0 15px 15px 0; border-color: transparent #2a1c10 transparent transparent; }
    .tsk-corner.c3 { bottom: -3px; left: -3px; border-width: 15px 0 0 15px; border-color: transparent transparent transparent #2a1c10; }
    .tsk-corner.c4 { bottom: -3px; right: -3px; border-width: 0 0 15px 15px; border-color: transparent transparent #2a1c10 transparent; }
    .level-seal {
        position: absolute;
        bottom: -9px; right: -9px;
        width: 32px; height: 32px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 30%, #e9c754, var(--haj-brass) 55%, #7d671f);
        border: 1px solid #5e4d18;
        box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 0 0 2.5px rgba(77,63,16,0.4), inset 0 1px 1px rgba(255,240,190,0.5);
        display: flex; align-items: center; justify-content: center;
        font-family: var(--font-display);
        font-size: 15px;
        color: #241c07;
    }

    /* попълнените полета */
    .tsk-fields { flex: 1; min-width: 0; padding-top: 2px; }
    .tsk-field { margin-bottom: 9px; }
    .tf-label {
        display: block;
        font-size: 9.5px;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: #7a5c30;
    }
    .tf-value {
        display: block;
        font-family: var(--font-hand);
        font-size: 22px;
        line-height: 1.1;
        color: #33261a;
        border-bottom: 1px solid rgba(120,90,40,0.4);
        padding: 0 2px 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .tf-value.sm { font-size: 19px; }

    /* паласката, положена върху листа */
    .tsk-sheet .palaska { margin-top: 11px; position: relative; }
    .tsk-sheet .palaska-label { color: #7a5c30; }
    .tsk-sheet .palaska-value { color: #5d4322; }
    .tsk-sheet .palaska-belt { box-shadow: inset 0 1px 0 rgba(240,229,204,0.08), inset 0 -1px 0 rgba(0,0,0,0.4), 0 3px 7px rgba(58,42,24,0.4); }
    .tsk-xp-note {
        text-align: right;
        font-family: var(--font-hand);
        font-size: 15px;
        color: #7a5c30;
        margin-top: 4px;
    }

    .tsk-sheet .member-footer {
        border-top: 1px solid rgba(120,90,40,0.35);
        color: #5d4322;
    }
    .tsk-sheet .member-footer i { color: #8a6d1b; }

    /* ═══ паласка + наниз ═══ */
    .palaska-head {
        display: flex; justify-content: space-between; align-items: baseline;
        margin-bottom: 7px;
    }
    .palaska-label {
        font-size: 11.5px;
        letter-spacing: 0.24em;
        text-transform: uppercase;
        color: var(--haj-smoke);
    }
    .palaska-value { font-size: 13.5px; color: var(--haj-brass); font-weight: 700; }
    .palaska-belt {
        position: relative;
        display: flex; justify-content: space-between;
        padding: 9px 12px 7px 20px;
        background:
            repeating-linear-gradient(180deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 4px),
            linear-gradient(180deg, var(--haj-leather-hi), var(--haj-leather));
        border: 1px solid rgba(0,0,0,0.55);
        border-radius: 5px;
        box-shadow: inset 0 1px 0 rgba(240,229,204,0.08), inset 0 -1px 0 rgba(0,0,0,0.4);
    }
    .palaska-belt::before {
        content: '';
        position: absolute;
        left: 5px; top: 50%;
        transform: translateY(-50%);
        width: 8px; height: 32px;
        border-radius: 2px;
        background: linear-gradient(180deg, #e9c754, #b98f24 55%, #8d711d);
        box-shadow: inset 0 0 0 2px rgba(38,28,17,0.75), 0 1px 3px rgba(0,0,0,0.45);
    }
    .palaska-belt svg.patron { display: block; width: 21px; height: 30px; }
    .palaska-belt svg.patron.loading { filter: hue-rotate(-28deg) saturate(1.6) brightness(0.95); }

    .niz-head { margin-top: 12px; }
    .niz { position: relative; display: flex; justify-content: space-between; padding: 4px 2px 2px; }
    .niz::before {
        content: '';
        position: absolute;
        left: 2px; right: 2px; top: 50%;
        height: 2.2px;
        transform: translateY(1px);
        border-radius: 2px;
        background: linear-gradient(90deg, rgba(110,36,31,0.9), #93312b 18%, #a84139 50%, #93312b 82%, rgba(110,36,31,0.9));
        box-shadow: 0 1px 1px rgba(0,0,0,0.5);
    }
    .niz svg { position: relative; display: block; width: 26px; height: 26px; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.45)); }
    .niz svg.loading { filter: hue-rotate(-28deg) saturate(1.5) drop-shadow(0 2px 2px rgba(0,0,0,0.45)); }

    .member-footer {
        display: flex; justify-content: space-between; align-items: center;
        margin-top: 13px;
        padding-top: 11px;
        border-top: 1px solid rgba(207,166,45,0.18);
        font-size: 12.5px;
        color: var(--haj-smoke);
    }
    .member-footer i { margin-right: 5px; color: var(--haj-brass-dim); }
    .rank-stamp {
        padding: 3px 10px;
        border: 1px solid var(--haj-blood);
        border-radius: 3px;
        color: #a3453c;
        font-weight: 700;
        letter-spacing: 0.08em;
        transform: rotate(-2deg);
        background: rgba(147,49,43,0.08);
        box-shadow: inset 0 0 0 1px rgba(147,49,43,0.3);
    }

    /* ═══ СТАТИСТИКИ — дърворезбени плочки ═══ */
    .stats-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
        margin-top: 14px;
    }
    .plaque {
        background:
            radial-gradient(circle 2.5px at 9px 9px, #d9b23e 0 45%, #6a5514 55% 70%, transparent 75%),
            radial-gradient(circle 2.5px at calc(100% - 9px) 9px, #d9b23e 0 45%, #6a5514 55% 70%, transparent 75%),
            repeating-linear-gradient(92deg, rgba(0,0,0,0.13) 0 2px, transparent 2px 6px),
            repeating-linear-gradient(88deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 9px),
            linear-gradient(175deg, #312415, var(--haj-walnut));
        border: 1px solid rgba(0,0,0,0.6);
        border-radius: 7px;
        box-shadow: inset 0 0 0 1px rgba(207,166,45,0.16), inset 0 1px 0 rgba(240,220,170,0.06), 0 8px 18px rgba(0,0,0,0.35);
        padding: 13px 8px 11px;
        text-align: center;
        position: relative;
    }
    .plaque::before {
        content: '';
        position: absolute;
        top: 4px; left: 10px; right: 10px;
        height: 5px;
        background: rgba(207,166,45,0.3);
        clip-path: polygon(0 100%, 4% 0, 8% 100%, 12% 0, 16% 100%, 20% 0, 24% 100%, 28% 0, 32% 100%, 36% 0, 40% 100%, 44% 0, 48% 100%, 52% 0, 56% 100%, 60% 0, 64% 100%, 68% 0, 72% 100%, 76% 0, 80% 100%, 84% 0, 88% 100%, 92% 0, 96% 100%, 100% 0);
    }
    .plaque i {
        font-size: 21px; display: block; margin: 6px 0 4px;
        background: linear-gradient(172deg, #f7e491 4%, #e9c754 30%, #cfa62d 58%, #7a5f16 96%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        filter: drop-shadow(0 1.5px 1px rgba(0,0,0,0.65)) drop-shadow(0 -0.5px 0 rgba(255,240,190,0.28));
    }
    .plaque-value {
        font-family: var(--font-display);
        font-size: 27px;
        color: var(--haj-bone);
        line-height: 1.1;
        text-shadow: 0 -1px 0 rgba(0,0,0,0.75), 0 1px 0 rgba(240,220,170,0.08);
    }
    .plaque-label {
        font-size: 10px;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--haj-smoke);
        margin-top: 3px;
    }

    /* ═══ ТАБОВЕ — механски табели на греда (3 табели) ═══ */
    .tabs-rail {
        height: 9px;
        margin-top: 26px;
        border-radius: 4px;
        background:
            radial-gradient(circle 2px at 12px 50%, #d9b23e 0 45%, #6a5514 55% 70%, transparent 75%),
            radial-gradient(circle 2px at calc(100% - 12px) 50%, #d9b23e 0 45%, #6a5514 55% 70%, transparent 75%),
            repeating-linear-gradient(90deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 7px),
            linear-gradient(180deg, #3d2c17, #241a0e);
        border: 1px solid rgba(0,0,0,0.6);
        box-shadow: 0 2px 4px rgba(0,0,0,0.45), inset 0 1px 0 rgba(240,220,170,0.1);
    }
    .tabs-row { display: flex; gap: 12px; padding: 0 8px; }
    .tab {
        position: relative;
        flex: 1;
        margin-top: 13px;
        padding: 10px 4px 9px;
        border: 1px solid rgba(0,0,0,0.6);
        border-radius: 6px;
        cursor: pointer;
        font-family: var(--font-body);
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 0.11em;
        text-transform: uppercase;
        color: var(--haj-smoke);
        display: flex; flex-direction: column; align-items: center; gap: 4px;
        background:
            repeating-linear-gradient(91deg, rgba(0,0,0,0.13) 0 2px, transparent 2px 6px),
            repeating-linear-gradient(88deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 9px),
            linear-gradient(175deg, #312415, #221910);
        box-shadow: inset 0 0 0 1px rgba(207,166,45,0.14), inset 0 1px 0 rgba(240,220,170,0.06), 0 6px 12px rgba(0,0,0,0.4);
        transform-origin: 50% -13px;
    }
    .tab i { font-size: 17px; }
    /* ремъчетата към гредата */
    .tab::before, .tab::after {
        content: '';
        position: absolute;
        top: -13px;
        width: 7px; height: 15px;
        border-radius: 2px;
        background: linear-gradient(90deg, #3a2b18, #241a0e);
        box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5), inset 1px 0 0 rgba(240,229,204,0.07);
    }
    .tab::before { left: 17%; }
    .tab::after { right: 17%; }
    .tab.tilt-r { transform: rotate(1.3deg); }
    .tab.tilt-l { transform: rotate(-1.2deg); }
    .tab.dim { filter: brightness(0.78) saturate(0.85); }
    .tab.active {
        color: var(--haj-brass);
        box-shadow: inset 0 0 0 1px rgba(207,166,45,0.45), inset 0 0 14px rgba(226,102,42,0.10), inset 0 1px 0 rgba(240,220,170,0.1), 0 6px 12px rgba(0,0,0,0.4);
    }
    .tab.active i { color: var(--haj-ember-hi); }

    /* ═══ съдържание на табовете (идва елемент по елемент) ═══ */
    .tab-pane { display: none; }
    .tab-pane.active { display: block; }
    .pane-note {
        font-family: var(--font-hand);
        font-size: 17px;
        color: var(--haj-smoke);
        text-align: center;
        padding: 30px 14px;
        opacity: 0.85;
    }

    /* ═══ СМЕТКИТЕ — етикети отъ дюкяна (числата на дружинника) ═══ */
    .rb2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 14px;
        padding-top: 10px;
    }
    .rb2-unit { position: relative; }
    .rb2-nail {
        position: absolute;
        top: -9px; left: 50%;
        transform: translateX(-50%);
        width: 7px; height: 7px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 30%, #f0d269, #b98f24 60%, #8a6a1a);
        box-shadow: 0 1px 2px rgba(0,0,0,0.7);
        z-index: 2;
    }
    .rb2-twine {
        position: absolute;
        top: -6px; left: 50%;
        width: 2px; height: 22px;
        background: linear-gradient(180deg, #b6a678, #8f7f52);
        box-shadow: 1px 0 1px rgba(0,0,0,0.4);
        z-index: 1;
    }
    .rb2-twine.l { transform: translateX(-50%) rotate(14deg); transform-origin: top center; }
    .rb2-twine.r { transform: translateX(-50%) rotate(-14deg); transform-origin: top center; }
    .rb2-tag {
        position: relative;
        margin-top: 10px;
        padding: 22px 12px 12px;
        text-align: center;
        clip-path: polygon(11px 0, 100% 0, 100% 100%, 0 100%, 0 11px);
        background:
            radial-gradient(120% 80% at 50% 0%, rgba(255,246,220,0.6), rgba(214,190,140,0.2) 70%),
            radial-gradient(ellipse 50% 30% at 80% 92%, rgba(120,90,40,0.13), transparent 70%),
            var(--haj-parchment);
        box-shadow:
            inset 0 0 0 1px rgba(120,90,40,0.35),
            inset 0 0 16px rgba(120,90,40,0.2),
            0 5px 11px rgba(0,0,0,0.42);
        color: #2f2415;
    }
    .rb2-unit:nth-child(1) .rb2-tag { transform: rotate(-1.6deg); }
    .rb2-unit:nth-child(2) .rb2-tag { transform: rotate(1.2deg); }
    .rb2-unit:nth-child(3) .rb2-tag { transform: rotate(0.9deg); }
    .rb2-unit:nth-child(4) .rb2-tag { transform: rotate(-1.1deg); }
    .rb2-grommet {
        position: absolute;
        top: 7px; left: 50%;
        transform: translateX(-50%);
        width: 13px; height: 13px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 30%, #f0d269, #b98f24 60%, #7c5f18);
        box-shadow: 0 1px 1px rgba(0,0,0,0.35), inset 0 1px 1px rgba(255,246,210,0.7);
    }
    .rb2-grommet::after {
        content: '';
        position: absolute;
        inset: 3.5px;
        border-radius: 50%;
        background: #d9cba6;
        box-shadow: inset 0 1px 2px rgba(60,40,8,0.55);
    }
    .rb2-ico {
        position: absolute;
        top: 10px; right: 10px;
        font-size: 15px;
        color: rgba(122,92,48,0.75);
    }
    .rb2-value {
        font-family: var(--font-display);
        font-size: 34px;
        line-height: 1;
        color: #2a1c0e;
    }
    .rb2-value small { font-size: 19px; }
    .rb2-label {
        margin-top: 4px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: #7a5c30;
    }
    .rb2-tally {
        margin-top: 7px;
        font-family: var(--font-hand);
        font-size: 15px;
        letter-spacing: 0.06em;
        color: rgba(74,50,22,0.8);
        transform: rotate(-1deg);
    }

    /* ═══ ЧЕРГАТА-КАЛЕНДАРЬ — пътека на летва ═══ */
    .rod {
        position: relative;
        height: 9px;
        margin: 0 2px;
        border-radius: 4.5px;
        background: linear-gradient(180deg, #6b5028, #4a3720 55%, #392a15);
        box-shadow: inset 0 1px 0 rgba(240,205,130,0.35), 0 2px 3px rgba(0,0,0,0.5);
        z-index: 2;
    }
    .rod::before, .rod::after {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 15px; height: 15px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 30%, #e9c754, var(--haj-brass) 55%, #7d671f);
        box-shadow: 0 1px 3px rgba(0,0,0,0.55), inset 0 1px 1px rgba(255,240,190,0.5);
    }
    .rod::before { left: -6px; }
    .rod::after { right: -6px; }
    .loops { display: flex; justify-content: space-around; padding: 0 30px; height: 12px; }
    .loops span {
        width: 14px; height: 12px;
        border-radius: 0 0 3px 3px;
        background: linear-gradient(180deg, #6e2f27, #93312b);
        box-shadow: inset 0 -1px 0 rgba(0,0,0,0.4), inset 1px 0 0 rgba(240,220,170,0.12);
    }
    .cherga {
        position: relative;
        padding: 11px 12px;
        background:
            repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 3px),
            repeating-linear-gradient(90deg, rgba(255,235,190,0.028) 0 1px, transparent 1px 4px),
            linear-gradient(178deg, #292018, #211a12);
        border: 1px solid rgba(0,0,0,0.6);
        box-shadow: inset 0 1px 0 rgba(240,220,170,0.08), 0 10px 22px rgba(0,0,0,0.45);
    }
    .cherga::before, .cherga::after {
        content: '';
        position: absolute;
        left: 0; right: 0;
        height: 7px;
        background:
            repeating-linear-gradient(90deg,
                #93312b 0 8px, #b6a678 8px 11px, #26422f 11px 19px, #b6a678 19px 22px);
        box-shadow: inset 0 1px 1px rgba(0,0,0,0.4);
    }
    .cherga::before { top: 0; }
    .cherga::after { bottom: 0; }
    .fringe {
        height: 13px;
        margin: 0 10px;
        background:
            repeating-linear-gradient(90deg,
                #b6a678 0 2px, transparent 2px 5px,
                #a89868 5px 7px, transparent 7px 10px);
        -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
        mask-image: linear-gradient(180deg, #000 55%, transparent);
        filter: drop-shadow(0 2px 2px rgba(0,0,0,0.35));
    }
    .ch2 { max-width: 250px; margin: 0 auto; }
    .ch2-head {
        display: flex;
        gap: 3.5px;
        padding: 10px 0 4px;
    }
    .ch2-head span {
        flex: 1;
        font-size: 9.5px;
        font-weight: 700;
        color: var(--haj-smoke);
        text-align: center;
    }
    .ch2-grid { padding-bottom: 8px; }
    .ch2-row { display: flex; gap: 3.5px; margin: 3.5px 0; }
    .cell {
        flex: 1;
        height: 13px;
        border-radius: 2.5px;
        box-shadow: inset 0 1px 0 rgba(255,235,190,0.14), inset 0 -1px 1px rgba(0,0,0,0.35);
    }
    .cell.v0 { background: repeating-linear-gradient(90deg, rgba(0,0,0,0.2) 0 1px, transparent 1px 3px), var(--wool-0); }
    .cell.v1 { background: repeating-linear-gradient(90deg, rgba(0,0,0,0.2) 0 1px, transparent 1px 3px), var(--wool-1); }
    .cell.v2 { background: repeating-linear-gradient(90deg, rgba(0,0,0,0.2) 0 1px, transparent 1px 3px), var(--wool-2); }
    .cell.v3 { background: repeating-linear-gradient(90deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px), var(--wool-3); }
    .cell.v4 {
        background: repeating-linear-gradient(90deg, rgba(0,0,0,0.15) 0 1px, transparent 1px 3px), var(--wool-4);
        box-shadow: inset 0 1px 0 rgba(255,235,190,0.3), inset 0 -1px 1px rgba(0,0,0,0.3), 0 0 7px rgba(239,129,56,0.25);
    }
    .legend {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin-top: 12px;
        font-size: 10.5px;
        letter-spacing: 0.08em;
        color: var(--haj-smoke);
    }
    .legend .sw {
        width: 15px; height: 11px;
        border-radius: 2px;
        box-shadow: inset 0 1px 0 rgba(255,235,190,0.14), inset 0 -1px 1px rgba(0,0,0,0.35);
    }
    .legend-cap {
        text-align: center;
        font-family: var(--font-hand);
        font-size: 15.5px;
        color: var(--haj-smoke);
        margin-top: 6px;
        opacity: 0.9;
    }

    /* ═══ ПЪТНИЯТЪ ДНЕВНИКЪ — тефтерчето съ походите ═══ */
    .live-stamp {
        display: inline-block;
        padding: 2px 8px;
        border: 1px solid var(--haj-blood);
        border-radius: 3px;
        color: #a3453c;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.14em;
        transform: rotate(-3deg);
        background: rgba(147,49,43,0.07);
        box-shadow: inset 0 0 0 1px rgba(147,49,43,0.28);
    }
    .ember-dot {
        display: inline-block;
        width: 8px; height: 8px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 30%, #ffb877, var(--haj-ember) 60%, #a34415);
        box-shadow: 0 0 6px rgba(239,129,56,0.7);
        vertical-align: 1px;
    }
    .wx { white-space: nowrap; color: #7a5c30; font-size: 12px; }
    .wx i { font-size: 13px; vertical-align: -1.5px; margin-right: 3px; }
    .dn1-cover {
        padding: 12px 11px;
        border-radius: 9px;
        background:
            repeating-linear-gradient(115deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 7px),
            linear-gradient(170deg, var(--haj-leather-hi), var(--haj-leather));
        border: 1px solid rgba(0,0,0,0.65);
        box-shadow:
            inset 0 0 0 1px rgba(207,166,45,0.14),
            inset 0 1px 0 rgba(240,229,204,0.09),
            0 12px 26px rgba(0,0,0,0.45);
    }
    .dn1-page {
        position: relative;
        padding: 4px 13px 10px 50px;
        background:
            linear-gradient(90deg, transparent 40px, rgba(147,49,43,0.45) 40px, rgba(147,49,43,0.45) 41.5px, transparent 41.5px),
            repeating-linear-gradient(180deg, transparent 0 25px, rgba(120,90,40,0.22) 25px 26px),
            radial-gradient(130% 80% at 50% 0%, rgba(255,246,220,0.5), rgba(214,190,140,0.18) 70%),
            var(--haj-parchment);
        box-shadow:
            inset 0 0 0 1px rgba(120,90,40,0.3),
            inset 0 0 20px rgba(120,90,40,0.18),
            0 3px 8px rgba(0,0,0,0.3);
        color: #38301d;
    }
    .dn1-entry { position: relative; padding: 11px 0 10px; }
    .dn1-entry + .dn1-entry { border-top: 1px solid rgba(120,90,40,0.28); }
    .dn1-date {
        position: absolute;
        left: -44px; top: 13px;
        width: 38px;
        text-align: center;
        font-family: var(--font-hand);
        font-size: 15.5px;
        line-height: 0.95;
        color: #93312b;
        transform: rotate(-2deg);
    }
    .dn1-date b { display: block; font-size: 19px; }
    .dn1-times { font-size: 13px; color: #4a3a22; }
    .dn1-times .arr { color: #7a5c30; }
    .dn1-dur-row {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
        margin-top: 3px;
    }
    .dn1-dur {
        font-family: var(--font-display);
        font-size: 19px;
        color: #2a1c0e;
    }
    .dn1-dur small { font-size: 12.5px; color: #7a5c30; font-family: var(--font-body); }
    .dn1-bar {
        height: 3px;
        margin-top: 6px;
        border-radius: 2px;
        background: linear-gradient(90deg, #3a2a18, var(--haj-ember) 55%, rgba(226,102,42,0));
        opacity: 0.75;
    }
    .dn1-quote {
        margin-top: 6px;
        font-family: var(--font-hand);
        font-size: 16.5px;
        color: #4a3216;
    }
    .dn1-live-head { display: flex; align-items: center; gap: 8px; }
    .dn1-live-text { font-size: 13.5px; font-weight: 700; color: #38301d; }
    .dn1-hint {
        text-align: center;
        font-size: 10.5px;
        font-style: italic;
        color: rgba(168,179,154,0.65);
        margin-top: 10px;
    }

    /* ═══ МЕДАЛИТЕ — колодка на летва ═══ */
    .medal {
        position: relative;
        width: 46px; height: 46px;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 19px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,246,210,0.6), inset 0 -2px 3px rgba(0,0,0,0.35);
    }
    .medal::before {
        content: '';
        position: absolute;
        inset: 4px;
        border-radius: 50%;
        pointer-events: none;
        box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,246,210,0.4);
    }
    .m-gold   { background: radial-gradient(circle at 35% 30%, #f6e29b, #dcb84a 45%, #a5821f 80%, #7c5f18); color: #3a2508; }
    .m-silver { background: radial-gradient(circle at 35% 30%, #f2f5f7, #c3cbd2 45%, #8a949c 80%, #5f6a72); color: #2b3238; }
    .m-copper { background: radial-gradient(circle at 35% 30%, #e8ac72, #c07840 50%, #8a4a28 85%, #5f3016); color: #2f180a; }
    .m-tin    { background: radial-gradient(circle at 35% 30%, #d9d6c9, #a5a294 50%, #6e6c60 85%, #4a483e); color: #26251e; }
    .m-lion { width: 26px; height: 30px; filter: brightness(0.45) saturate(1.2); }
    .ribbon {
        width: 27px; height: 25px;
        margin: 0 auto -4px;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
        box-shadow: inset 0 -2px 3px rgba(0,0,0,0.35);
        position: relative;
        z-index: 1;
    }
    .r-leg  { background: repeating-linear-gradient(90deg, #94382e 0 6px, #e3d5b4 6px 9px, #31543a 9px 15px, #e3d5b4 15px 18px, #94382e 18px 27px); }
    .r-epic { background: repeating-linear-gradient(90deg, #4e6b7d 0 6px, #c3cbd2 6px 9px, #34495a 9px 18px, #c3cbd2 18px 21px, #4e6b7d 21px 27px); }
    .r-rare { background: repeating-linear-gradient(90deg, #6e4a26 0 7px, #94382e 7px 13px, #6e4a26 13px 20px, #94382e 20px 27px); }
    .r-com  { background: linear-gradient(180deg, #4a3a24, #33240f); }
    .m-name {
        margin-top: 7px;
        font-size: 8.5px;
        font-weight: 700;
        letter-spacing: 0.13em;
        text-transform: uppercase;
        color: var(--haj-bone);
        text-align: center;
        line-height: 1.35;
    }
    .m-date {
        font-family: var(--font-hand);
        font-size: 12.5px;
        color: var(--haj-smoke);
        text-align: center;
        margin-top: 1px;
    }
    .md1-row {
        display: flex;
        justify-content: center;
        gap: 4px;
        padding-top: 0;
    }
    .md1-unit { flex: 1; min-width: 0; text-align: center; }
    .md1-unit .medal { margin: 0 auto; }
    .md1-unit:nth-child(2) { transform: rotate(0.8deg); }
    .md1-unit:nth-child(4) { transform: rotate(-0.7deg); }

    /* ═══ КЛАСАЦИЯТА — рабошите на дружината ═══ */
    .rk {
        flex-shrink: 0;
        width: 24px; height: 24px;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-family: var(--font-display);
        font-size: 12.5px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,246,210,0.55), inset 0 -1px 2px rgba(0,0,0,0.3);
    }
    .rk-1 { background: radial-gradient(circle at 35% 30%, #f6e29b, #dcb84a 45%, #a5821f 82%); color: #3a2508; }
    .rk-2 { background: radial-gradient(circle at 35% 30%, #f2f5f7, #c3cbd2 45%, #8a949c 82%); color: #2b3238; }
    .rk-3 { background: radial-gradient(circle at 35% 30%, #e8ac72, #c07840 50%, #8a4a28 85%); color: #2f180a; }
    .rk-n {
        background: none;
        box-shadow: none;
        color: var(--haj-smoke);
        font-size: 13px;
    }
    .me-dot {
        display: inline-block;
        width: 7px; height: 7px;
        border-radius: 50%;
        margin-right: 5px;
        background: radial-gradient(circle at 35% 30%, #ffb877, var(--haj-ember) 60%, #a34415);
        box-shadow: 0 0 5px rgba(239,129,56,0.7);
        vertical-align: 1px;
    }
    .kl1 { display: flex; flex-direction: column; gap: 9px; }
    .kl1-row { display: flex; align-items: center; gap: 9px; }
    .kl1-stick {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        height: 40px;
        padding: 0 10px 0 11px;
        border-radius: 20px 7px 7px 20px / 50% 9px 9px 50%;
        background:
            repeating-linear-gradient(178deg, rgba(0,0,0,0.10) 0 1.5px, transparent 1.5px 5px),
            linear-gradient(170deg, #6e5433, #4a3620 62%, #3d2c17);
        border: 1px solid rgba(0,0,0,0.62);
        box-shadow:
            inset 0 1px 0 rgba(240,220,170,0.14),
            inset 0 -2px 3px rgba(0,0,0,0.35),
            0 5px 11px rgba(0,0,0,0.4);
    }
    .kl1-hole {
        flex-shrink: 0;
        width: 8px; height: 8px;
        border-radius: 50%;
        background: radial-gradient(circle at 40% 35%, #241608, #0e0702 70%);
        box-shadow: 0 1px 0 rgba(240,220,170,0.18), inset 0 1px 2px rgba(0,0,0,0.9);
    }
    .kl1-name {
        font-size: 11.5px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(240,229,204,0.95);
        text-shadow: 0 1px 1px rgba(0,0,0,0.7);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .kl1-plate {
        flex-shrink: 0;
        margin-left: auto;
        min-width: 30px;
        padding: 2px 7px 1px;
        text-align: center;
        border-radius: 3px;
        background: radial-gradient(circle at 30% 25%, #f2dc8c, #dcb84a 40%, #b98f24 72%, #8a6a1a);
        box-shadow: inset 0 1px 1px rgba(255,246,210,0.8), inset 0 -1px 2px rgba(60,40,8,0.5), 0 1px 3px rgba(0,0,0,0.45);
        font-family: var(--font-display);
        font-size: 15px;
        color: #33200a;
    }

    /* ═══ ДЕТАЙЛИ — месецъ, месечни числа, рекорди ═══ */
    .month-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        margin-top: 24px;
    }
    .icon-btn.sm { width: 32px; height: 32px; font-size: 13px; }
    .month-title {
        min-width: 150px;
        text-align: center;
        font-family: var(--font-display);
        font-size: 23px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--haj-bone);
        text-shadow: 0 1px 3px rgba(10,12,8,0.8);
    }
    .month-title span {
        display: block;
        font-family: var(--font-hand);
        font-size: 14.5px;
        letter-spacing: 0.04em;
        text-transform: none;
        color: var(--haj-smoke);
        margin-top: -2px;
    }
    .rb2-month { padding-top: 4px; }
    .rb2-month .rb2-value { font-size: 30px; }
    .rb2-month .rb2-value small { font-size: 17px; }

    /* рекордите — кондиченъ листъ */
    .rec-sheet {
        padding: 6px 13px;
        background:
            radial-gradient(140% 90% at 50% 0%, rgba(255,246,220,0.5), rgba(214,190,140,0.2) 70%),
            var(--haj-parchment);
        box-shadow:
            inset 0 0 0 1px rgba(120,90,40,0.35),
            inset 0 0 18px rgba(120,90,40,0.2),
            0 5px 11px rgba(0,0,0,0.4);
        color: #38301d;
    }
    .rec-row {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 10px 2px;
    }
    .rec-row + .rec-row { border-top: 1px solid rgba(120,90,40,0.25); }
    .rec-ico {
        flex-shrink: 0;
        width: 28px; height: 28px;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 13px;
        color: #3a2508;
        background: radial-gradient(circle at 33% 27%, #f6e29b, #dcb84a 45%, #a5821f 80%, #7c5f18);
        box-shadow: inset 0 1px 1px rgba(255,246,210,0.8), inset 0 -1px 2px rgba(60,40,8,0.5), 0 1px 2px rgba(0,0,0,0.3);
    }
    .rec-body { flex: 1; min-width: 0; }
    .rec-name { font-size: 12.5px; font-weight: 700; color: #38301d; letter-spacing: 0.03em; }
    .rec-when { font-family: var(--font-hand); font-size: 13.5px; color: #7a5c30; margin-top: 0; }
    .rec-value {
        flex-shrink: 0;
        font-family: var(--font-display);
        font-size: 19px;
        color: #2a1c0e;
        white-space: nowrap;
    }
    .rec-value small { font-size: 13px; }

    /* ═══ ВОЙВОДСКИЯТЪ ПАНЕЛЪ (само за войводата) ═══ */
    .admin-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin-top: 28px;
        padding: 12px 14px;
        border: 1px solid rgba(147,49,43,0.55);
        border-radius: 8px;
        cursor: pointer;
        text-align: left;
        font-family: var(--font-body);
        background:
            repeating-linear-gradient(115deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 7px),
            linear-gradient(170deg, #3a2019, #26120d);
        box-shadow: inset 0 0 0 1px rgba(147,49,43,0.25), inset 0 1px 0 rgba(240,229,204,0.07), 0 8px 18px rgba(0,0,0,0.4);
    }
    .admin-btn i {
        font-size: 21px;
        color: #c4534a;
        text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    }
    .admin-title {
        font-size: 12.5px;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: #d8968d;
    }
    .admin-sub { font-family: var(--font-hand); font-size: 14px; color: rgba(216,150,141,0.7); margin-top: 1px; }

    /* ═══ ЛИСТЪ ОТЪ ПОХОДА — модалътъ на записа ═══ */
    .tm-overlay {
        position: fixed; inset: 0;
        z-index: 50;
        background: rgba(8,12,9,0.74);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s;
    }
    .tm-overlay.open { opacity: 1; pointer-events: auto; }
    .tm {
        position: fixed;
        left: 50%; top: 50%;
        z-index: 51;
        width: min(342px, calc(100% - 36px));
        transform: translate(-50%, -50%) rotate(-0.6deg) scale(0.96);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s, transform 0.22s;
    }
    .tm.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) rotate(-0.6deg) scale(1); }
    .tm-sheet {
        position: relative;
        padding: 20px 17px 14px;
        overflow: hidden;
        background:
            radial-gradient(140% 90% at 50% 0%, rgba(255,246,220,0.55), rgba(214,190,140,0.25) 70%),
            var(--haj-parchment);
        box-shadow:
            inset 0 0 0 1px rgba(120,90,40,0.35),
            inset 0 0 24px rgba(120,90,40,0.22),
            0 22px 50px rgba(0,0,0,0.6);
        color: #38301d;
    }
    .tm-sheet::before {
        content: '';
        position: absolute;
        inset: 5px;
        border: 1px solid rgba(120,90,40,0.4);
        pointer-events: none;
    }
    .tm-lion {
        position: absolute;
        right: -16px; bottom: -24px;
        width: 140px; height: 148px;
        opacity: 0.11;
        filter: sepia(0.4) brightness(0.55);
        transform: rotate(-4deg);
        pointer-events: none;
    }
    .tm-title {
        position: relative;
        font-family: 'Ruslan Display', var(--font-display);
        font-size: 17px;
        letter-spacing: 0.11em;
        text-align: center;
        color: #4a3216;
        text-shadow: 0 1px 0 rgba(255,246,220,0.6);
    }
    .tm-date {
        position: relative;
        width: max-content;
        margin: 8px auto 0;
        font-family: var(--font-hand);
        font-size: 16px;
        color: #5d4322;
        padding: 1px 14px;
        border: 1px solid rgba(120,90,40,0.45);
        border-radius: 12px;
        background: rgba(255,246,220,0.4);
    }
    .tm-grid {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin-top: 14px;
    }
    .tm-cell {
        display: flex; align-items: center; gap: 9px;
        padding: 8px 9px;
        background: rgba(255,246,220,0.45);
        border: 1px solid rgba(120,90,40,0.3);
        border-radius: 4px;
    }
    .tm-ico {
        flex-shrink: 0;
        width: 26px; height: 26px;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 12px;
        color: #3a2508;
        background: radial-gradient(circle at 33% 27%, #f6e29b, #dcb84a 45%, #a5821f 80%, #7c5f18);
        box-shadow: inset 0 1px 1px rgba(255,246,210,0.8), inset 0 -1px 2px rgba(60,40,8,0.5), 0 1px 2px rgba(0,0,0,0.3);
    }
    .tm-cell-label { display: block; font-size: 9px; letter-spacing: 0.09em; text-transform: uppercase; color: #7a5c30; }
    .tm-cell-value { display: block; font-size: 14px; font-weight: 700; color: #38301d; margin-top: 1px; line-height: 1.15; }
    .tm-quote {
        position: relative;
        margin-top: 12px;
        text-align: center;
        font-family: var(--font-hand);
        font-size: 17px;
        color: #4a3216;
    }
    .tm-foot {
        position: relative;
        margin-top: 12px;
        padding-top: 9px;
        border-top: 1px solid rgba(120,90,40,0.3);
        text-align: center;
        font-family: var(--font-hand);
        font-size: 14px;
        color: #7a5c30;
    }
    .tm-close {
        position: absolute;
        top: -13px; right: -11px;
        z-index: 2;
    }
    .tm-close .icon-btn { width: 34px; height: 34px; font-size: 14px; }

    /* ═══ НАСТРОЙКИТЕ — коженъ bottom sheet ═══ */
    .st-overlay {
        position: fixed; inset: 0;
        z-index: 60;
        background: rgba(8,12,9,0.7);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s;
    }
    .st-overlay.open { opacity: 1; pointer-events: auto; }
    .st-sheet {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 61;
        max-width: 430px;
        margin: 0 auto;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 16px 16px 0 0;
        padding: 9px 18px 30px;
        background:
            repeating-linear-gradient(115deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 7px),
            linear-gradient(175deg, #45351f, #2b1f12);
        border: 1px solid rgba(0,0,0,0.7);
        border-bottom: none;
        box-shadow:
            inset 0 0 0 1px rgba(207,166,45,0.16),
            inset 0 1px 0 rgba(240,229,204,0.1),
            0 -14px 40px rgba(0,0,0,0.55);
        transform: translateY(105%);
        transition: transform 0.28s ease;
    }
    .st-sheet.open { transform: translateY(0); }
    .st-handle {
        width: 46px; height: 5px;
        margin: 4px auto 2px;
        border-radius: 3px;
        background: linear-gradient(180deg, #e9c754, #b98f24);
        box-shadow: 0 1px 2px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,246,210,0.5);
    }
    .st-head {
        text-align: center;
        font-family: var(--font-display);
        font-size: 19px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--haj-bone);
        margin-top: 10px;
        text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    }
    .st-sect { margin-top: 18px; }
    .st-title {
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--haj-brass);
        padding-bottom: 6px;
        border-bottom: 1px solid rgba(207,166,45,0.22);
    }
    .st-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 11px 2px;
        border-bottom: 1px solid rgba(240,229,204,0.07);
        font-size: 13.5px;
        color: var(--haj-bone);
    }
    .st-row-sub { display: block; font-family: var(--font-hand); font-size: 13px; color: var(--haj-smoke); margin-top: 1px; }
    .st-value { font-family: var(--font-hand); font-size: 16px; color: var(--haj-smoke); }
    .st-link {
        font-family: var(--font-hand);
        font-size: 16px;
        color: var(--haj-brass);
        background: none;
        border: none;
        cursor: pointer;
    }
    /* токата-ключе */
    .tgl {
        flex-shrink: 0;
        position: relative;
        width: 42px; height: 22px;
        border-radius: 11px;
        border: 1px solid rgba(0,0,0,0.6);
        background: linear-gradient(180deg, #1c1309, #241a0e);
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.7), inset 0 -1px 0 rgba(240,229,204,0.06);
        cursor: pointer;
        transition: background 0.15s;
    }
    .tgl::after {
        content: '';
        position: absolute;
        top: 2px; left: 2px;
        width: 16px; height: 16px;
        border-radius: 50%;
        background: radial-gradient(circle at 33% 27%, #b8b0a0, #8a8272 55%, #5f594c);
        box-shadow: 0 1px 2px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,246,210,0.4);
        transition: left 0.16s;
    }
    .tgl.on {
        background: linear-gradient(180deg, rgba(226,102,42,0.4), rgba(147,72,20,0.3));
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.55), inset 0 0 8px rgba(226,102,42,0.3);
    }
    .tgl.on::after {
        left: 22px;
        background: radial-gradient(circle at 33% 27%, #f6e29b, #dcb84a 55%, #8a6a1a);
    }
    .st-danger { color: #d8968d; }
    .st-danger .st-row-sub { color: rgba(216,150,141,0.6); }

    /* settings controls not present in the mockup markup (reuse existing logic) */
    .st-inp {
        background: rgba(20,14,8,0.5);
        border: 1px solid rgba(207,166,45,0.3);
        border-radius: 6px;
        color: var(--haj-bone);
        font-family: var(--font-hand);
        font-size: 18px;
        padding: 3px 10px;
        max-width: 52%;
        text-align: right;
    }
    .st-inp:focus { outline: none; border-color: var(--haj-brass); }
    .st-avatars { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 62%; }
    .st-avatars button {
        width: 36px; height: 36px;
        border-radius: 8px;
        border: 1px solid rgba(207,166,45,0.25);
        background: rgba(20,14,8,0.5);
        font-size: 18px; cursor: pointer;
    }
    .st-avatars button.sel {
        border-color: var(--haj-brass);
        box-shadow: 0 0 8px rgba(207,166,45,0.5);
        background: rgba(207,166,45,0.15);
    }
    .st-bio {
        width: 100%; margin-top: 8px; min-height: 58px;
        background: rgba(20,14,8,0.5);
        border: 1px solid rgba(207,166,45,0.3);
        border-radius: 6px;
        color: var(--haj-bone);
        font-family: var(--font-body); font-size: 14px;
        padding: 8px 10px; resize: vertical;
    }
    .st-pill {
        min-width: 44px; padding: 5px 10px; margin-left: 6px;
        border-radius: 6px;
        border: 1px solid rgba(207,166,45,0.3);
        background: rgba(20,14,8,0.5);
        color: var(--haj-smoke);
        font-family: var(--font-body); font-weight: 700; font-size: 12px;
        cursor: pointer;
    }
    .st-pill.on {
        background: linear-gradient(180deg, #e9c754, #cfa62d 55%, #8d711d);
        color: #2a1c0a; border-color: #8d711d;
    }

}
