/* ═══════════════════════════════════════════════════════════════
   shared.css — единая дизайн-система ewrazi4.ru
   Подключай на всех сервисах. Шрифты — через /assets/css/fonts.css
   на каждом поддомене (или Google CDN до запуска download_fonts.sh).

   Темы: light | dark | black  (data-theme на <html>)
   По умолчанию — системная (prefers-color-scheme).
═══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   ТОКЕНЫ: LIGHT (по умолчанию)
   Синяя M3-палитра — как на schedule.ewrazi4.ru
────────────────────────────────────────────────────────────── */
:root {
    /* Основные цвета */
    --md-primary:          #0063B0;
    --md-on-primary:       #FFFFFF;
    --md-primary-con:      #D1E4FF;
    --md-on-primary-con:   #001D36;
    --md-secondary:        #535F70;
    --md-on-secondary:     #FFFFFF;
    --md-secondary-con:    #D7E3F8;
    --md-on-secondary-con: #0F1D2B;
    --md-error:            #BA1A1A;
    --md-error-con:        #FFDAD6;
    --md-on-error-con:     #410002;

    /* Фоны и поверхности */
    --md-bg:               #F8F9FF;
    --md-surface:          #F8F9FF;
    --md-surf-con-low:     #F2F3F9;
    --md-surf-con:         #ECEDFA;
    --md-surf-con-high:    #E7E8EE;
    --md-on-surface:       #191C20;
    --md-on-surf-var:      #43474E;
    --md-outline:          #73777F;
    --md-outline-var:      #C3C7CF;

    /* Elevation (tinted surfaces) */
    --md-elev1: color-mix(in srgb, var(--md-primary)  5%, var(--md-surface));
    --md-elev2: color-mix(in srgb, var(--md-primary)  8%, var(--md-surface));
    --md-elev3: color-mix(in srgb, var(--md-primary) 11%, var(--md-surface));

    /* Тени */
    --shadow-1: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    --shadow-2: 0 1px 2px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
    --shadow-3: 0 4px 8px rgba(0,0,0,.10), 0 8px 24px rgba(0,0,0,.08);

    /* Семантические алиасы (для совместимости со старым кодом) */
    --bg:           var(--md-bg);
    --surface:      var(--md-surface);
    --on-surface:   var(--md-on-surface);
    --on-surf-var:  var(--md-on-surf-var);
    --outline:      var(--md-outline);
    --outline-var:  var(--md-outline-var);
    --primary:      var(--md-primary);
    --on-primary:   var(--md-on-primary);
    --pri-con:      var(--md-primary-con);
    --on-pri-con:   var(--md-on-primary-con);
    --err-con:      var(--md-error-con);
    --on-err-con:   var(--md-on-error-con);
    --shadow:       rgba(0,0,0,.08);
    --shadow-md:    rgba(0,0,0,.14);
    --tint:         color-mix(in srgb, var(--md-primary) 4%, transparent);
    --surf-var:     var(--md-surf-con);

    /* Статусные цвета */
    --ok-bg:   #D6F5E3; --ok-on:   #0D3D22; --ok-stripe:   #2E7D32;
    --warn-bg: #FFF0CC; --warn-on: #3D2800; --warn-stripe: #C07000;
    --err-bg:  #FFDAD6; --err-on:  #410002; --err-stripe:  #BA1A1A;
    /* Алиасы для solves */
    --dl-ok-bg: var(--ok-bg); --dl-ok-on: var(--ok-on);
    --dl-warn-bg: var(--warn-bg); --dl-warn-on: var(--warn-on);
    --dl-past-bg: var(--err-bg); --dl-past-on: var(--err-on);
    --dl-ok-stripe: var(--ok-stripe); --dl-warn-stripe: var(--warn-stripe); --dl-past-stripe: var(--err-stripe);
}

/* ──────────────────────────────────────────────────────────────
   ТОКЕНЫ: DARK (системная)
────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    :root {
        --md-primary:          #A0C9FF;
        --md-on-primary:       #003258;
        --md-primary-con:      #004A80;
        --md-on-primary-con:   #D1E4FF;
        --md-secondary:        #BBD0E8;
        --md-on-secondary:     #253140;
        --md-secondary-con:    #3B4858;
        --md-on-secondary-con: #D7E3F8;
        --md-error:            #FFB4AB;
        --md-error-con:        #93000A;
        --md-on-error-con:     #FFDAD6;
        --md-bg:               #111318;
        --md-surface:          #111318;
        --md-surf-con-low:     #191C20;
        --md-surf-con:         #1D2025;
        --md-surf-con-high:    #282A2F;
        --md-on-surface:       #E1E2E8;
        --md-on-surf-var:      #C4C7CF;
        --md-outline:          #8E9199;
        --md-outline-var:      #43474E;
        --shadow:       rgba(0,0,0,.40);
        --shadow-md:    rgba(0,0,0,.60);
        --shadow-1: 0 1px 3px rgba(0,0,0,.40);
        --shadow-2: 0 2px 6px rgba(0,0,0,.50);
        --shadow-3: 0 4px 12px rgba(0,0,0,.60);
        --ok-bg:   #0D3D22; --ok-on:   #A8E6BF; --ok-stripe:   #4CAF72;
        --warn-bg: #3D2800; --warn-on: #FFD680; --warn-stripe: #D4900A;
        --err-bg:  #5C1A17; --err-on:  #FFCDD2; --err-stripe:  #E53935;
    }
}

/* ──────────────────────────────────────────────────────────────
   ТОКЕНЫ: ПРИНУДИТЕЛЬНАЯ СВЕТЛАЯ
────────────────────────────────────────────────────────────── */
[data-theme="light"] {
    color-scheme: light;
    --md-primary:          #0063B0; --md-on-primary:       #FFFFFF;
    --md-primary-con:      #D1E4FF; --md-on-primary-con:   #001D36;
    --md-secondary:        #535F70; --md-on-secondary:     #FFFFFF;
    --md-secondary-con:    #D7E3F8; --md-on-secondary-con: #0F1D2B;
    --md-error:            #BA1A1A; --md-error-con:        #FFDAD6; --md-on-error-con: #410002;
    --md-bg:               #F8F9FF; --md-surface:          #F8F9FF;
    --md-surf-con-low:     #F2F3F9; --md-surf-con:         #ECEDFA; --md-surf-con-high: #E7E8EE;
    --md-on-surface:       #191C20; --md-on-surf-var:      #43474E;
    --md-outline:          #73777F; --md-outline-var:      #C3C7CF;
    --md-elev1: color-mix(in srgb, #0063B0 5%,  #F8F9FF);
    --md-elev2: color-mix(in srgb, #0063B0 8%,  #F8F9FF);
    --md-elev3: color-mix(in srgb, #0063B0 11%, #F8F9FF);
    --shadow:   rgba(0,0,0,.08); --shadow-md: rgba(0,0,0,.14);
    --shadow-1: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    --shadow-2: 0 1px 2px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
    --shadow-3: 0 4px 8px rgba(0,0,0,.10), 0 8px 24px rgba(0,0,0,.08);
    --ok-bg:   #D6F5E3; --ok-on:   #0D3D22; --ok-stripe:   #2E7D32;
    --warn-bg: #FFF0CC; --warn-on: #3D2800; --warn-stripe: #C07000;
    --err-bg:  #FFDAD6; --err-on:  #410002; --err-stripe:  #BA1A1A;
}

/* ──────────────────────────────────────────────────────────────
   ТОКЕНЫ: ПРИНУДИТЕЛЬНАЯ ТЁМНАЯ
────────────────────────────────────────────────────────────── */
[data-theme="dark"] {
    color-scheme: dark;
    --md-primary:          #A0C9FF; --md-on-primary:       #003258;
    --md-primary-con:      #004A80; --md-on-primary-con:   #D1E4FF;
    --md-secondary:        #BBD0E8; --md-on-secondary:     #253140;
    --md-secondary-con:    #3B4858; --md-on-secondary-con: #D7E3F8;
    --md-error:            #FFB4AB; --md-error-con:        #93000A; --md-on-error-con: #FFDAD6;
    --md-bg:               #111318; --md-surface:          #111318;
    --md-surf-con-low:     #191C20; --md-surf-con:         #1D2025; --md-surf-con-high: #282A2F;
    --md-on-surface:       #E1E2E8; --md-on-surf-var:      #C4C7CF;
    --md-outline:          #8E9199; --md-outline-var:      #43474E;
    --md-elev1: #191C20; --md-elev2: #1D2025; --md-elev3: #282A2F;
    --shadow:   rgba(0,0,0,.40); --shadow-md: rgba(0,0,0,.60);
    --shadow-1: 0 1px 3px rgba(0,0,0,.40);
    --shadow-2: 0 2px 6px rgba(0,0,0,.50);
    --shadow-3: 0 4px 12px rgba(0,0,0,.60);
    --ok-bg:   #0D3D22; --ok-on:   #A8E6BF; --ok-stripe:   #4CAF72;
    --warn-bg: #3D2800; --warn-on: #FFD680; --warn-stripe: #D4900A;
    --err-bg:  #5C1A17; --err-on:  #FFCDD2; --err-stripe:  #E53935;
}

/* ──────────────────────────────────────────────────────────────
   ТОКЕНЫ: ЧЁРНАЯ / AMOLED
────────────────────────────────────────────────────────────── */
[data-theme="black"] {
    color-scheme: dark;
    --md-primary:          #A0C9FF; --md-on-primary:       #003258;
    --md-primary-con:      #003F6B; --md-on-primary-con:   #D1E4FF;
    --md-secondary:        #B0C8E0; --md-on-secondary:     #1A2D3D;
    --md-secondary-con:    #2B3F52; --md-on-secondary-con: #C8DCF0;
    --md-error:            #FFB4AB; --md-error-con:        #7A000A; --md-on-error-con: #FFDAD6;
    --md-bg:               #000000; --md-surface:          #000000;
    --md-surf-con-low:     #080808; --md-surf-con:         #0F0F0F; --md-surf-con-high: #161616;
    --md-on-surface:       #E8E9EF; --md-on-surf-var:      #B8BCC6;
    --md-outline:          #6A6E78; --md-outline-var:      #2A2D34;
    --md-elev1: #0D0D0D; --md-elev2: #111111; --md-elev3: #161616;
    --shadow:   rgba(0,0,0,.80); --shadow-md: rgba(0,0,0,.95);
    --shadow-1: 0 1px 3px rgba(0,0,0,.80);
    --shadow-2: 0 2px 6px rgba(0,0,0,.90);
    --shadow-3: 0 4px 12px rgba(0,0,0,.95);
    --ok-bg:   #071A0F; --ok-on:   #8AD4A8; --ok-stripe:   #2E7D32;
    --warn-bg: #1A1000; --warn-on: #FFD070; --warn-stripe: #B8860B;
    --err-bg:  #1C0505; --err-on:  #FFCDD2; --err-stripe:  #C62828;
}

/* ──────────────────────────────────────────────────────────────
   RESET
────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: none; }

body {
    font-family: 'Roboto', sans-serif;
    background: var(--md-bg);
    color: var(--md-on-surface);
    min-height: 100vh;
}

/* ──────────────────────────────────────────────────────────────
   ТИПОГРАФИКА
────────────────────────────────────────────────────────────── */
.display-small {
    font-family: 'Google Sans Display', sans-serif;
    font-size: 36px; font-weight: 400; line-height: 1.2;
}
.headline {
    font-family: 'Google Sans Display', sans-serif;
    font-size: 22px; font-weight: 400; line-height: 1.3;
}
.title-lg {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px; font-weight: 500; line-height: 1.4;
}
.title {
    font-family: 'Google Sans', sans-serif;
    font-size: 16px; font-weight: 500; line-height: 1.4;
}
.label-lg {
    font-family: 'Google Sans', sans-serif;
    font-size: 14px; font-weight: 500;
}
.body-lg  { font-size: 16px; line-height: 1.6; }
.body     { font-size: 14px; line-height: 1.6; color: var(--md-on-surf-var); }

/* ──────────────────────────────────────────────────────────────
   ICON BUTTON
────────────────────────────────────────────────────────────── */
.icon-btn {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 50%; border: none; background: transparent;
    cursor: pointer; text-decoration: none;
    display: flex; align-items: center; justify-content: center;
    color: var(--md-on-surf-var);
    position: relative; overflow: hidden;
}
.icon-btn::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: currentColor; opacity: 0;
    transition: opacity .15s cubic-bezier(.2,0,0,1);
}
.icon-btn:hover::before  { opacity: .08; }
.icon-btn:active::before { opacity: .12; }
.icon-btn .material-symbols-rounded { position: relative; z-index: 1; }

/* ──────────────────────────────────────────────────────────────
   TOP BAR / APP BAR
────────────────────────────────────────────────────────────── */
.top-bar, .app-bar {
    position: sticky; top: 0; z-index: 20;
    height: 56px;
    background: var(--md-elev2);
    box-shadow: var(--shadow-2);
    display: flex; align-items: center;
    padding: 0 8px 0 4px; gap: 2px;
}
.top-bar-title, .app-bar-title {
    font-family: 'Google Sans Display', sans-serif;
    font-size: 20px; font-weight: 400;
    color: var(--md-on-surface); flex: 1;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────────
   DRAWER (мобильный overlay)
────────────────────────────────────────────────────────────── */
.drawer-backdrop {
    visibility: hidden; position: fixed; inset: 0; z-index: 30;
    background: rgba(0,0,0,.4); backdrop-filter: blur(2px);
    opacity: 0; transition: opacity .25s ease, visibility 0s .25s;
}
.drawer-backdrop.open {
    visibility: visible; opacity: 1; transition: opacity .25s ease, visibility 0s 0s;
}
.drawer {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 280px; z-index: 40;
    background: var(--md-elev1);
    box-shadow: var(--shadow-3);
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
    border-radius: 0 16px 16px 0; overflow: hidden;
}
.drawer.open { transform: translateX(0); }
.drawer-header {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 8px 16px 20px;
    border-bottom: 1px solid var(--md-outline-var);
}
.drawer-title {
    flex: 1; font-family: 'Google Sans Display', sans-serif;
    font-size: 18px; font-weight: 400; color: var(--md-on-surface);
}
.drawer-items {
    flex: 1; display: flex; flex-direction: column;
    padding: 8px 12px; gap: 2px; overflow-y: auto;
}
.drawer-item {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 16px; border-radius: 28px;
    text-decoration: none; color: var(--md-on-surf-var);
    font-size: 14px; font-weight: 500;
    transition: background .15s; position: relative; overflow: hidden;
}
.drawer-item::before {
    content: ''; position: absolute; inset: 0; border-radius: 28px;
    background: var(--md-primary); opacity: 0; transition: opacity .15s;
}
.drawer-item:hover::before  { opacity: .06; }
.drawer-item:active::before { opacity: .12; }
.drawer-item .material-symbols-rounded,
.drawer-item span { position: relative; z-index: 1; }
.drawer-item.active {
    background: var(--md-primary-con); color: var(--md-on-primary-con);
}
.drawer-item.active .material-symbols-rounded {
    font-variation-settings: 'FILL' 1,'wght' 400,'GRAD' 0,'opsz' 24;
}

/* ──────────────────────────────────────────────────────────────
   NAV RAIL (десктоп)
────────────────────────────────────────────────────────────── */
.nav-rail {
    position: fixed; top: 0; left: 0; bottom: 0; width: 80px; z-index: 15;
    background: var(--md-elev1);
    border-right: 1px solid var(--md-outline-var);
    display: flex; flex-direction: column;
    align-items: center; padding: 12px 0; gap: 4px;
}
.rail-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; padding: 6px 0; width: 72px; border-radius: 16px;
    text-decoration: none; color: var(--md-on-surf-var);
    font-size: 11px; cursor: pointer;
    transition: background .15s;
}
.rail-item:hover { background: color-mix(in srgb, var(--md-primary) 8%, transparent); }
.rail-item.active { background: var(--md-primary-con); color: var(--md-on-primary-con); }
.rail-item.active .material-symbols-rounded {
    font-variation-settings: 'FILL' 1,'wght' 400,'GRAD' 0,'opsz' 24;
}

/* ──────────────────────────────────────────────────────────────
   CARD
────────────────────────────────────────────────────────────── */
.card {
    background: var(--md-surface);
    background-image: linear-gradient(var(--tint), var(--tint));
    border-radius: 20px;
    box-shadow: var(--shadow-1);
    padding: 24px 24px 24px 28px;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 14px;
    transition: box-shadow .2s, transform .2s;
    animation: fadeUp .35s cubic-bezier(.2,0,0,1) both;
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0; width: 4px;
    border-radius: 20px 0 0 20px;
    background: var(--card-stripe, var(--md-primary));
}
/* stagger до 20 */
.card:nth-child(1){animation-delay:0ms}   .card:nth-child(2){animation-delay:45ms}
.card:nth-child(3){animation-delay:90ms}  .card:nth-child(4){animation-delay:135ms}
.card:nth-child(5){animation-delay:180ms} .card:nth-child(6){animation-delay:225ms}
.card:nth-child(7){animation-delay:270ms} .card:nth-child(8){animation-delay:315ms}
.card:nth-child(9){animation-delay:360ms} .card:nth-child(10){animation-delay:405ms}
.card:nth-child(11){animation-delay:450ms}.card:nth-child(12){animation-delay:495ms}
.card:nth-child(13){animation-delay:540ms}.card:nth-child(14){animation-delay:585ms}
.card:nth-child(15){animation-delay:630ms}.card:nth-child(16){animation-delay:675ms}
.card:nth-child(17){animation-delay:720ms}.card:nth-child(18){animation-delay:765ms}
.card:nth-child(19){animation-delay:810ms}.card:nth-child(20){animation-delay:855ms}

.card-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 17px; font-weight: 500; line-height: 1.4;
    color: var(--md-on-surface);
}
.card-body {
    font-size: 14px; line-height: 1.6; color: var(--md-on-surf-var);
}

/* ──────────────────────────────────────────────────────────────
   SECTION LABEL (разделитель секций с линией)
────────────────────────────────────────────────────────────── */
.section-label {
    font-family: 'Google Sans', sans-serif;
    font-size: 12px; font-weight: 500;
    text-transform: uppercase; letter-spacing: .8px;
    color: var(--md-on-surf-var);
    padding: 0 4px;
    display: flex; align-items: center; gap: 12px;
}
.section-label::after {
    content: ''; flex: 1; height: 1px; background: var(--md-outline-var);
}

/* ──────────────────────────────────────────────────────────────
   BUTTONS
────────────────────────────────────────────────────────────── */
.btn-filled, .btn-tonal, .btn-outlined {
    height: 44px; padding: 0 24px; border-radius: 100px; border: none;
    font-family: 'Google Sans', sans-serif;
    font-size: 15px; font-weight: 500; letter-spacing: .1px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer; text-decoration: none;
    position: relative; overflow: hidden;
    transition: box-shadow .2s;
    -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn-filled  { background: var(--md-primary); color: var(--md-on-primary); }
.btn-tonal   { background: var(--md-primary-con); color: var(--md-on-primary-con); }
.btn-outlined {
    background: transparent; color: var(--md-primary);
    border: 1.5px solid var(--md-outline-var);
}
.btn-filled::after, .btn-tonal::after, .btn-outlined::after {
    content: ''; position: absolute; inset: 0;
    background: currentColor; opacity: 0; transition: opacity .15s;
}
.btn-filled:hover  { box-shadow: var(--shadow-2); }
.btn-tonal:hover   { box-shadow: var(--shadow-2); }
.btn-filled:hover::after,   .btn-tonal:hover::after,   .btn-outlined:hover::after  { opacity: .08; }
.btn-filled:active::after,  .btn-tonal:active::after,  .btn-outlined:active::after { opacity: .14; }

/* ──────────────────────────────────────────────────────────────
   TEXT FIELD
────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--md-on-surf-var); }
.field input, .field textarea, .field select {
    padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--md-outline-var);
    background: var(--md-bg); color: var(--md-on-surface);
    font-family: 'Roboto', sans-serif; font-size: 15px;
    outline: none; width: 100%;
    transition: border-color .2s, box-shadow .2s;
}
.field input { height: 48px; }
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--md-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-primary) 18%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--md-outline); }

/* ──────────────────────────────────────────────────────────────
   BADGE
────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 8px;
    background: var(--md-primary-con); color: var(--md-on-primary-con);
    font-family: 'Google Sans', sans-serif;
    font-size: 12px; font-weight: 500; width: fit-content;
}

/* ──────────────────────────────────────────────────────────────
   SNACKBAR
────────────────────────────────────────────────────────────── */
.snackbar {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--md-surf-con-high); color: var(--md-on-surface);
    padding: 14px 20px; border-radius: 4px;
    font-size: 14px; box-shadow: var(--shadow-3);
    z-index: 999; white-space: nowrap;
    transition: transform .25s cubic-bezier(.2,0,0,1), opacity .25s;
    opacity: 0; pointer-events: none;
}
.snackbar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1; pointer-events: auto;
}

/* ──────────────────────────────────────────────────────────────
   RESULT BOX
────────────────────────────────────────────────────────────── */
.result-box {
    padding: 14px 16px; border-radius: 12px;
    background: var(--ok-bg); color: var(--ok-on);
    font-family: 'Google Sans', sans-serif;
    font-size: 18px; font-weight: 500; text-align: center;
    min-height: 52px; display: flex; align-items: center; justify-content: center;
    transition: background .3s, color .3s;
}
.result-box:empty { background: var(--md-surf-con); color: var(--md-on-surf-var); }

/* ──────────────────────────────────────────────────────────────
   SHARE SHEET
────────────────────────────────────────────────────────────── */
#_shareSheet { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
#_shareSheet.open { pointer-events: auto; }
._ss-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,.4);
    opacity: 0; transition: opacity .25s ease;
}
#_shareSheet.open ._ss-backdrop { opacity: 1; }
._ss-panel {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: var(--md-elev3);
    border-radius: 28px 28px 0 0;
    padding: 8px 20px 32px; box-shadow: var(--shadow-3);
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
#_shareSheet.open ._ss-panel { transform: translateY(0); }
._ss-handle {
    width: 32px; height: 4px; border-radius: 2px;
    background: var(--md-outline-var); margin: 4px auto 16px;
}
._ss-title {
    font-family: 'Google Sans Display', sans-serif;
    font-size: 16px; font-weight: 500; color: var(--md-on-surface);
    text-align: center; margin-bottom: 20px;
}
._ss-row { display: flex; gap: 12px; justify-content: center; }
._ss-btn {
    flex: 1; max-width: 140px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 12px;
    background: var(--md-surf-con); border: none; border-radius: 20px;
    cursor: pointer; color: var(--md-on-surface);
    font-family: 'Google Sans', sans-serif; font-size: 13px; font-weight: 500;
    transition: background .15s, transform .1s;
}
._ss-btn:hover  { background: var(--md-surf-con-high); }
._ss-btn:active { transform: scale(.96); }
._ss-btn .material-symbols-rounded { font-size: 28px; color: var(--md-primary); }

/* ──────────────────────────────────────────────────────────────
   АНИМАЦИИ
────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes skel-pulse {
    0%, 100% { opacity: .5; }
    50%       { opacity: 1; }
}
.skel {
    height: 72px; border-radius: 16px;
    background: var(--md-surf-con-high);
    animation: skel-pulse 1.4s ease-in-out infinite;
}
