/* AKSO Utility — utility.akso.online
   Та же тёмно-фиолетовая гамма и шрифты, что на akso.online (Unbounded + Manrope),
   чтобы утилиты выглядели частью одного сайта. */
:root {
    --bg: #0f0a1a;
    --s1: #171026;
    --s2: #1f1633;
    --s3: #281c40;
    --line: #2b1f42;
    --line-2: #3d2c5c;
    --text: #efe9f7;
    --muted: #a596bd;
    --dim: #7a6b93;
    --vio: #b84fd6;
    --vio2: #7c3aed;
    --grad: linear-gradient(135deg, var(--vio), var(--vio2));
    --blurple: #5865f2;
    --sky: #38bdf8;
    --rose: #ec4899;
    --sun: #fbbf24;
    --ok: #4ade80;
    --warn: #fbbf24;
    --bad: #f87171;
    --r: 22px;
    --r-sm: 14px;
    --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
    --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--vio); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
p { margin: 0; }

/* ---------- шапка ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; height: 74px; padding: 0 max(20px, calc((100vw - 1180px) / 2));
       background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--display); flex: none; }
.logo img { width: 32px; height: 32px; border-radius: 9px; }
.logo b { font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); border-color: var(--vio); }
.me { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.me img, .me .ava { width: 38px; height: 38px; border-radius: 50%; background: var(--s2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; object-fit: cover; }
.back-home { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.back-home:hover { color: var(--text); }

main { overflow-x: clip; max-width: 1180px; margin: 0 auto; padding: 18px 20px 80px; }
.foot { max-width: 1180px; margin: 0 auto; padding: 28px 20px 40px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--dim); font-size: 14px; border-top: 1px solid var(--line); }
.foot a { text-decoration: none; } .foot a:hover { color: var(--text); }

/* ---------- кнопки, поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--line);
       background: var(--s2); color: var(--text); font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter .15s, border-color .15s; }
.btn:hover { border-color: var(--line-2); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.violet, .btn.primary { background: var(--grad); border-color: transparent; color: #fff; }
.btn.violet:hover, .btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; }
.btn.blurple { background: var(--blurple); border-color: var(--blurple); color: #fff; }
.btn.blurple:hover { filter: brightness(1.1); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn.danger { background: #3a1520; border-color: #5c2131; color: #fecaca; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); outline: none; }
select.input option, select.input optgroup { background: var(--s1); }
textarea.input { min-height: 90px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--vio); }
input[type=color].input { padding: 4px; height: 46px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 700; font-size: 14px; }
.field small, .hint { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle:last-child { border-bottom: 0; }
.toggle span { display: flex; flex-direction: column; }
.toggle small { color: var(--muted); font-size: 13px; }
.toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--s3); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.toggle input:checked { background: var(--grad); border-color: transparent; }
.toggle input:checked::after { transform: translateX(20px); background: #fff; }

/* ---------- главная ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 40px 0 64px; }
.hero h1 { font: 700 clamp(34px, 5.4vw, 64px)/1.05 var(--display); letter-spacing: -.03em; }
.hero p { font-size: 19px; color: var(--muted); max-width: 40ch; margin: 22px 0 28px; }
.stack { position: relative; height: 520px; }
.story-card { position: absolute; width: 270px; height: 380px; border-radius: 26px; padding: 26px; color: #fff; display: flex; flex-direction: column-reverse; justify-content: space-between;
              box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .12); }
.story-card b { font: 700 46px/1 var(--display); letter-spacing: -.03em; }
.story-card span { font-weight: 800; font-size: 17px; }
.story-card small { opacity: .75; font-size: 13px; }
.story-card.c1 { background: linear-gradient(160deg, #9b5cf6, #6d28d9); left: 4%; top: 10px; transform: rotate(-7deg); }
.story-card.c2 { background: linear-gradient(160deg, #d36bea, #a21caf); left: 24%; top: 120px; transform: rotate(3deg); }
.story-card.c3 { background: linear-gradient(160deg, #3b2a63, #1f1633); left: 44%; top: 225px; transform: rotate(9deg); height: 280px; }
.story-card .emo { font-size: 64px; line-height: 1; }
@media (prefers-reduced-motion: no-preference) {
    .stack .story-card { animation: deal .7s cubic-bezier(.2, .9, .2, 1.1) both; }
    .stack .c2 { animation-delay: .12s; }
    .stack .c3 { animation-delay: .24s; }
    @keyframes deal { from { opacity: 0; transform: translateY(60px) rotate(0); } }
}
.band { border-radius: 28px; padding: 40px; margin-bottom: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; border: 1px solid var(--line); }
.band h2 { font: 700 clamp(26px, 3.2vw, 40px)/1.08 var(--display); letter-spacing: -.02em; }
.band p { color: var(--muted); font-size: 17px; max-width: 46ch; margin: 14px 0 22px; }
.band.discord { background: linear-gradient(150deg, #1d1a4a, var(--s1) 60%); }
.mods { display: flex; flex-wrap: wrap; gap: 8px; }
.mods span { padding: 8px 14px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--muted); }
.privacy { display: flex; gap: 14px; align-items: flex-start; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.privacy .lock { font-size: 26px; }

/* ---------- Wrapped: подготовка ---------- */
.w-head { padding: 20px 0 26px; }
.w-head h1 { font: 700 clamp(32px, 4.6vw, 54px)/1.05 var(--display); letter-spacing: -.03em; }
.w-head p { color: var(--muted); font-size: 18px; max-width: 56ch; margin-top: 14px; }
.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; background: var(--s1); border: 1px solid var(--line); border-radius: 18px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 15px; width: 30px; height: 30px; border-radius: 10px; background: var(--grad); color: #fff;
                    display: grid; place-items: center; font: 700 13px var(--display); }
.steps b { display: block; }
.steps small { color: var(--muted); }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 320px; padding: 30px; text-align: center;
        border: 2px dashed var(--line-2); border-radius: 26px; background: radial-gradient(circle at 50% 0%, #2a1748, var(--s1) 70%); cursor: pointer; transition: border-color .15s, transform .15s; }
.drop:hover, .drop.over { border-color: var(--vio); }
.drop.over { transform: scale(1.01); }
.drop .big { font: 700 24px/1.15 var(--display); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .prog { width: 100%; max-width: 280px; height: 8px; border-radius: 99px; background: var(--s3); overflow: hidden; }
.drop .prog i { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 99px; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.err { color: var(--bad); font-weight: 700; }
.pick { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.pick button { padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--s2); cursor: pointer; font-weight: 800; text-align: left; }
.pick button small { display: block; font-weight: 500; color: var(--muted); }
.pick button:hover:not([disabled]) { border-color: var(--vio); }
.pick button[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Wrapped: истории ---------- */
.stories { position: fixed; inset: 0; z-index: 50; background: rgba(8, 5, 15, .94); display: grid; place-items: center; }
.story { position: relative; width: min(440px, 100vw); height: min(780px, 100dvh); overflow: hidden; color: #fff; display: flex; flex-direction: column; padding: 56px 28px 34px;
         border-radius: 28px; user-select: none; box-shadow: 0 40px 100px -30px rgba(124, 58, 237, .5); }
@media (max-width: 480px) { .story { border-radius: 0; } }
.story .bars { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 4px; }
.story .bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.story .bars i b { display: block; height: 100%; width: 0; background: #fff; }
.story .bars i.done b { width: 100%; }
.story .bars i.now b { animation: fill var(--dur, 6s) linear forwards; }
@keyframes fill { to { width: 100%; } }
.story .close { position: absolute; top: 26px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .25); color: #fff; font-size: 18px; cursor: pointer; z-index: 3; }
.story .tap { position: absolute; top: 70px; bottom: 0; width: 35%; z-index: 2; background: none; border: 0; cursor: pointer; }
.story .tap.prev { left: 0; }
.story .tap.next { right: 0; width: 65%; }
.story .kicker { font-weight: 800; font-size: 17px; opacity: .85; }
.story .huge { font: 700 clamp(56px, 17vw, 92px)/.95 var(--display); margin: 14px 0 12px; letter-spacing: -.04em; word-break: break-word; }
.story .mid { font: 700 30px/1.08 var(--display); margin: 10px 0; letter-spacing: -.02em; word-break: break-word; }
.story .sub { font-size: 19px; line-height: 1.4; opacity: .92; }
.story .fill { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.story .list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.story .list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; font-weight: 800; font-size: 17px; }
.story .list li em { font-style: normal; font: 700 16px var(--display); opacity: .6; }
.story .list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .hours { display: flex; align-items: flex-end; gap: 3px; height: 150px; margin-top: 18px; }
.story .hours i { flex: 1; background: rgba(255, 255, 255, .3); border-radius: 4px 4px 0 0; min-height: 3px; }
.story .hours i.pk { background: #fff; }
.story .hours-l { display: flex; justify-content: space-between; font-size: 12px; opacity: .7; margin-top: 6px; }
.story .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.story .chips span { padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .16); font-weight: 700; }
.story .emoji-big { font-size: 120px; line-height: 1; margin: 10px 0; }
.story .split { display: flex; height: 18px; border-radius: 99px; overflow: hidden; margin: 18px 0 8px; background: rgba(255, 255, 255, .25); }
.story .split i { background: #fff; }
.story .legend { display: flex; justify-content: space-between; font-weight: 800; }
.story .cta { position: relative; z-index: 4; display: flex; flex-direction: column; gap: 10px; }
.story .cta .btn { background: #fff; color: #1f1633; border-color: #fff; }
.story .cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
/* слайды — оттенки фиолетового с парой контрастных акцентов */
.s-violet { background: linear-gradient(165deg, #8b5cf6, #5b21b6); }
.s-sky { background: linear-gradient(165deg, #6366f1, #3730a3); }
.s-rose { background: linear-gradient(165deg, #d946ef, #9d174d); }
.s-ink { background: linear-gradient(165deg, #2a1d45, #0f0a1a); }
.s-mint { background: linear-gradient(165deg, #b84fd6, #6d28d9); }
.s-blurple { background: linear-gradient(165deg, #7c3aed, #312e81); }
.s-sun { background: linear-gradient(165deg, #fbbf24, #f472b6); color: #1f1633; }
.s-sun .bars i { background: rgba(31, 22, 51, .25); } .s-sun .bars i b { background: #1f1633; } .s-sun .close { color: #1f1633; background: rgba(31, 22, 51, .12); }
.s-sun .hours i { background: rgba(31, 22, 51, .25); } .s-sun .hours i.pk { background: #1f1633; }
.s-sun .chips span { background: rgba(31, 22, 51, .12); }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 18px; }
.summary div b { display: block; font: 700 26px/1.05 var(--display); letter-spacing: -.02em; }
.summary div small { opacity: .8; font-weight: 700; }

/* ---------- Discord: список серверов и панель ---------- */
.d-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0 24px; }
.d-head h1 { font: 700 clamp(28px, 3.8vw, 42px)/1.05 var(--display); letter-spacing: -.03em; }
.d-head .hint { margin-top: 8px; }
.guilds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.guild { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--s1); text-decoration: none; border: 1px solid var(--line); transition: border-color .15s; }
.guild:hover { border-color: var(--vio); }
.guild .gi { width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; font: 700 20px var(--display); overflow: hidden; flex: none; }
.guild .gi img { width: 100%; height: 100%; object-fit: cover; }
.guild b { display: block; }
.guild small { color: var(--muted); }
.empty { text-align: center; padding: 60px 20px; background: var(--s1); border: 1px solid var(--line); border-radius: 26px; }
.empty h2 { font: 700 24px var(--display); margin-bottom: 12px; }
.empty p { color: var(--muted); max-width: 50ch; margin: 0 auto 22px; }

.dash { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.side { position: sticky; top: 90px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.side .gname { display: flex; align-items: center; gap: 10px; padding: 8px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.side .gname .gi { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; overflow: hidden; flex: none; font: 700 16px var(--display); }
.side .gname .gi img { width: 100%; height: 100%; object-fit: cover; }
.side .gname b { font-size: 15px; line-height: 1.2; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--muted); }
.side a:hover { background: var(--s2); color: var(--text); }
.side a.on { background: var(--s3); color: var(--text); box-shadow: inset 3px 0 0 var(--vio); }
.side .dot { color: var(--sun); }
.side .grp { font-size: 12px; color: var(--dim); font-weight: 800; padding: 12px 10px 4px; }
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 18px; }
.panel > h2, .panel h2 { font: 700 21px var(--display); letter-spacing: -.02em; margin-bottom: 6px; }
.panel > .hint:first-of-type { margin-bottom: 18px; }
.panel h3 { font-size: 17px; margin: 22px 0 10px; }
.state { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; font-size: 13px; font-weight: 800; background: var(--s2); color: var(--muted); }
.state.ok { background: #0f2417; color: var(--ok); }
.state.wait { background: #2a1d07; color: var(--warn); }
.state.bad { background: #2c1219; color: var(--bad); }
.save-bar { position: sticky; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px 10px 20px; border-radius: 18px;
            background: var(--s3); border: 1px solid var(--line-2); margin-top: 18px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8); font-weight: 700; }
.save-bar .btn { background: var(--grad); color: #fff; border-color: transparent; }
.save-bar .btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.items { display: flex; flex-direction: column; gap: 10px; }
.item { border: 1px solid var(--line); background: var(--bg); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.item .x { justify-self: end; }
.chips-sel { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-sel label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 14px; font-weight: 700; color: var(--muted); }
.chips-sel input { position: absolute; opacity: 0; pointer-events: none; }
.chips-sel label:has(input:checked) { border-color: var(--vio); background: #2a1748; color: var(--text); }
.chips-sel label:has(input:focus-visible) { outline: 2px solid var(--vio); }
.chips-sel i { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.kpi { background: var(--s2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.kpi b { display: block; font: 700 24px/1.1 var(--display); }
.kpi small { color: var(--muted); font-weight: 700; }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; margin-top: 16px; }
.chart i { flex: 1; background: linear-gradient(180deg, var(--vio), var(--vio2)); border-radius: 6px 6px 0 0; min-height: 2px; position: relative; }
.chart i:hover { filter: brightness(1.25); }
.chart i:hover::after { content: attr(data-t); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--s3); border: 1px solid var(--line-2); color: var(--text);
                        padding: 4px 8px; border-radius: 8px; font-size: 12px; white-space: nowrap; font-style: normal; z-index: 2; }
.actions-log { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.actions-log div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--s2); font-size: 14px; }
.preview { border-left: 4px solid var(--blurple); background: #2b2d31; color: #dbdee1; border-radius: 6px; padding: 12px 14px; font-size: 14px; }
.preview b { color: #fff; display: block; margin-bottom: 4px; }
.preview img { margin-top: 10px; border-radius: 6px; max-height: 200px; }

/* ---------- топ сервера ---------- */
.lb { display: flex; flex-direction: column; gap: 8px; }
.lb-row { display: grid; grid-template-columns: 48px 44px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 16px; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; }
.lb-row .rk { font: 700 18px var(--display); color: var(--dim); text-align: center; }
.lb-row:nth-child(1) { background: linear-gradient(90deg, #3a2a10, var(--s1) 50%); } .lb-row:nth-child(1) .rk { color: #fbbf24; }
.lb-row:nth-child(2) .rk { color: #cbd5e1; } .lb-row:nth-child(3) .rk { color: #fb923c; }
.lb-row img, .lb-row .av { width: 44px; height: 44px; border-radius: 50%; background: var(--s2); object-fit: cover; }
.lb-row .lv { font: 700 16px var(--display); }
.lb-row small { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--s3); border: 1px solid var(--line-2); color: var(--text); padding: 12px 20px; border-radius: 14px; font-weight: 700; max-width: calc(100vw - 32px); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .8); }
.toast.bad { background: #3a1520; border-color: #5c2131; color: #fecaca; }
.skeleton { height: 120px; border-radius: var(--r); background: linear-gradient(90deg, var(--s1) 30%, var(--s2) 50%, var(--s1) 70%); background-size: 300% 100%; animation: sk 1.3s infinite; }
@keyframes sk { to { background-position: -300% 0; } }
#mod-form > .field, #mod-form .item .field { margin: 12px 0; }
#mod-form .grid2 .field { margin: 0; }

@media (max-width: 900px) {
    .hero, .band, .w-grid { grid-template-columns: 1fr; }
    .dash { grid-template-columns: 1fr; }
    .side { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
    .side .gname, .side .grp { display: none; }
    .side a { flex: none; }
    .side a.on { box-shadow: inset 0 -2px 0 var(--vio); }
    .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .bar { gap: 14px; height: 64px; }
    .nav { gap: 14px; margin-left: 0; }
    .nav a { font-size: 14px; }
    .logo span, .back-home { display: none; }
    .band { padding: 26px 20px; border-radius: 24px; }
    .grid2 { grid-template-columns: 1fr; }
    .stack { height: 440px; }
    .story-card { width: 200px; height: 260px; padding: 20px; }
    .story-card.c2 { top: 100px; } .story-card.c3 { top: 190px; height: 230px; left: 40%; }
    .story-card b { font-size: 32px; }
    .story-card .emo { font-size: 46px; }
    .lb-row { grid-template-columns: 36px 40px 1fr auto; }
    .lb-row .hide-m { display: none; }
    .me .btn.blurple { font-size: 0; padding: 0 14px; } .me .btn.blurple::after { content: 'Войти'; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.back-home { margin-left: auto; }
