@font-face { font-family: 'Unbounded'; font-weight: 200 900; font-display: swap; src: url(/fonts/unbounded-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 200 900; font-display: swap; src: url(/fonts/unbounded-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --bg: #140a2e; --bg2: #1c0f40; --bg3: #251552;
  --card: rgba(255, 255, 255, .055); --card2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .12); --line2: rgba(255, 255, 255, .2);
  --text: #f7f3ff; --muted: #b9acdc; --dim: #8678b3;
  --pink: #ff3d9a; --violet: #8a5cff; --lime: #c8ff3d; --cyan: #3de0ff; --amber: #ffb547; --red: #ff5a6a;
  --grad: linear-gradient(135deg, #ff3d9a 0%, #b14dff 55%, #8a5cff 100%);
  --r: 18px; --r2: 12px;
  --head: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); scrollbar-color: #5b3ca8 transparent; scrollbar-width: thin; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 500 15px/1.45 var(--body); background: var(--bg);
  background-image: radial-gradient(800px 500px at 110% -10%, rgba(255, 61, 154, .18), transparent 60%),
    radial-gradient(700px 500px at -20% 30%, rgba(138, 92, 255, .2), transparent 60%),
    radial-gradient(600px 400px at 50% 120%, rgba(61, 224, 255, .08), transparent 60%);
  background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #4a3190; border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #6a48c4; }
::selection { background: rgba(255, 61, 154, .45); }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 600; }
a { color: var(--cyan); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13px; }
.nowrap { white-space: nowrap; }

/* ---------- загрузка ---------- */
.splash { position: fixed; inset: 0; display: grid; place-items: center; align-content: center; gap: 0; background: var(--bg); z-index: 100; }
.splash-ball { width: 46px; height: 46px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 30px rgba(200, 255, 61, .5); animation: bounce .9s cubic-bezier(.3, 0, .3, 1) infinite alternate; }
.splash-tramp { width: 130px; height: 26px; border-radius: 50%; border: 6px solid var(--pink); margin-top: 8px; box-shadow: 0 0 30px rgba(255, 61, 154, .4); animation: squash .9s cubic-bezier(.3, 0, .3, 1) infinite alternate; }
.splash-name { font: 700 18px var(--head); margin-top: 22px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@keyframes bounce { from { transform: translateY(-90px); } to { transform: translateY(0); } }
@keyframes squash { from { transform: scaleY(1); } 92% { transform: scaleY(1); } to { transform: scaleY(.7) translateY(4px); } }

/* ---------- каркас ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); background: rgba(20, 10, 46, .6); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 20px; }
.brand img { width: 44px; height: 44px; border-radius: 13px; }
.brand b { font: 700 15px/1.2 var(--head); display: block; }
.brand span { font-size: 12px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; border: 0; background: none; color: var(--muted); font-weight: 650; text-align: left; cursor: pointer; width: 100%; }
.nav svg { width: 22px; height: 22px; flex: none; }
.nav:hover { background: var(--card); color: var(--text); }
.nav.on { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(255, 61, 154, .25); }
.nav .badge { margin-left: auto; }
.side-foot { margin-top: auto; font-size: 12px; color: var(--dim); padding: 8px; }
.main { min-width: 0; padding: 26px 34px 60px; max-width: 980px; width: 100%; }
.topbar { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.topbar .grow { flex: 1; min-width: 0; }
.topbar .lead { color: var(--muted); margin-top: 6px; font-size: 14px; }
.tabbar { display: none; }
.mob-head { display: none; }

@media (max-width: 760px) {
  .shell { display: block; }
  .side { display: none; }
  .main { padding: 14px 14px calc(96px + var(--safe-b)); }
  .mob-head { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 10px; position: sticky; top: 0; z-index: 20; background: rgba(20, 10, 46, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .mob-head img { width: 34px; height: 34px; border-radius: 10px; }
  .mob-head b { font: 700 14px var(--head); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 6px 6px calc(6px + var(--safe-b)); background: rgba(24, 12, 54, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border: 0; background: none; color: var(--dim); font-size: 11px; font-weight: 700; border-radius: 12px; cursor: pointer; position: relative; min-height: 52px; }
  .tabbar button svg { width: 24px; height: 24px; }
  .tabbar button.on { color: var(--text); }
  .tabbar button.on svg { color: var(--pink); filter: drop-shadow(0 0 8px rgba(255, 61, 154, .6)); }
  .tabbar .badge { position: absolute; top: 2px; left: 55%; }
  .topbar { margin-bottom: 14px; }
  h1 { font-size: 20px; }
}

/* ---------- элементы ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card + .card, .stack > * + * { margin-top: 12px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.section-head .grow { flex: 1; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); font-weight: 750; cursor: pointer; transition: transform .12s, filter .15s, background .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 26px rgba(255, 61, 154, .3); }
.btn.lime { background: var(--lime); color: #1a0d3a; border-color: transparent; box-shadow: 0 6px 22px rgba(200, 255, 61, .25); }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(255, 90, 106, .14); border-color: rgba(255, 90, 106, .45); color: #ffc2c8; }
.btn.small { min-height: 36px; padding: 6px 12px; border-radius: 11px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.off { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; flex: none; position: relative; color: var(--text); }
.icon-btn:hover { background: var(--card2); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .badge { position: absolute; top: -5px; right: -5px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 750; background: var(--card2); border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { background: rgba(200, 255, 61, .14); border-color: rgba(200, 255, 61, .4); color: var(--lime); }
.chip.warn { background: rgba(255, 181, 71, .14); border-color: rgba(255, 181, 71, .45); color: var(--amber); }
.chip.bad { background: rgba(255, 90, 106, .14); border-color: rgba(255, 90, 106, .45); color: #ff9aa5; }
.chip.info { background: rgba(61, 224, 255, .12); border-color: rgba(61, 224, 255, .4); color: var(--cyan); }
.chip.pink { background: rgba(255, 61, 154, .15); border-color: rgba(255, 61, 154, .45); color: #ff9ccb; }
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty b { display: block; color: var(--text); font: 650 15px var(--head); margin-bottom: 6px; }
.hint { font-size: 13px; color: var(--muted); }
.hr { height: 1px; background: var(--line); margin: 14px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }

/* поля */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(10, 4, 28, .5); color: var(--text); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--dim); opacity: 1; }
.input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 154, .2); }
textarea.input { min-height: 80px; resize: vertical; }
.input.big { font: 700 22px var(--head); letter-spacing: .04em; text-align: center; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-height: 40px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font-weight: 700; cursor: pointer; }
.seg button:hover { background: var(--card2); }
.seg button svg { width: 18px; height: 18px; vertical-align: middle; }
.seg button.on { background: var(--grad); border-color: transparent; color: #fff; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch i { width: 48px; height: 28px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line2); position: relative; flex: none; transition: background .2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch.on i { background: rgba(200, 255, 61, .25); border-color: var(--lime); }
.switch.on i::after { transform: translateX(20px); background: var(--lime); }
.code-boxes { display: flex; gap: 10px; justify-content: center; }
.code-boxes input { width: 58px; height: 66px; text-align: center; font: 700 26px var(--head); border-radius: 16px; border: 1px solid var(--line2); background: rgba(10, 4, 28, .5); color: var(--text); outline: none; }
.code-boxes input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 154, .2); }
.dataline { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.dataline .k { color: var(--muted); font-size: 13px; width: 130px; flex: none; }
.dataline .v { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pencil { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; flex: none; }
.pencil:hover { background: var(--card2); color: var(--text); }
.pencil svg { width: 17px; height: 17px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }

/* ---------- вход ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 18px calc(24px + var(--safe-b)); }
.login-box { width: 100%; max-width: 400px; }
.login-hero { text-align: center; margin-bottom: 26px; }
.login-hero img { width: 92px; height: 92px; border-radius: 26px; box-shadow: 0 20px 60px rgba(255, 61, 154, .35); animation: float 3s ease-in-out infinite; }
.login-hero h1 { font-size: 26px; margin-top: 18px; }
.login-hero p { color: var(--muted); margin: 8px 0 0; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }
.login .card { padding: 22px; }
.err { color: #ff9aa5; font-size: 14px; margin-top: 10px; min-height: 0; }

/* ---------- расписание ---------- */
.day { margin-top: 22px; }
.day:first-child { margin-top: 0; }
.day-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.day-title h2 { font-size: 15px; }
.day-title h2::first-letter { text-transform: uppercase; }
.day-title .dim { font-size: 13px; }
.cls { display: grid; grid-template-columns: 104px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.cls + .cls { margin-top: 10px; }
.cls.mine { border-color: rgba(200, 255, 61, .55); background: linear-gradient(90deg, rgba(200, 255, 61, .1), var(--card) 60%); }
.cls.res { border-color: rgba(61, 224, 255, .5); }
.cls.cancelled { opacity: .55; }
.cls.click { cursor: pointer; } .cls.click:hover { background: var(--card2); }
.cls-time { font: 700 26px/1 var(--head); letter-spacing: -.02em; }
.cls-time small { display: block; font: 600 12px var(--body); color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.cls-info { min-width: 0; }
.cls-info .t { font-weight: 800; font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cls-info .s { font-size: 13px; color: var(--muted); margin-top: 6px; }
.cls-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tramps { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tramp { width: 16px; height: 16px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .22); background: transparent; flex: none; }
.tramp.taken { border-color: var(--pink); background: rgba(255, 61, 154, .75); box-shadow: 0 0 8px rgba(255, 61, 154, .5); }
.tramp.me { border-color: var(--lime); background: rgba(200, 255, 61, .45); box-shadow: 0 0 10px rgba(200, 255, 61, .6); }
@media (max-width: 760px) {
  .cls { grid-template-columns: 74px 1fr; padding: 14px; gap: 10px 10px; }
  .cls-time { font-size: 19px; }
  .cls-act { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
  .cls-act .btn { flex: 1; }
  .tramp { width: 15px; height: 15px; }
}

/* абонемент */
.pass-card { position: relative; overflow: hidden; padding: 20px; border-radius: 22px; background: linear-gradient(135deg, rgba(255, 61, 154, .3), rgba(138, 92, 255, .3)); border: 1px solid rgba(255, 255, 255, .18); }
.pass-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .07); }
.pass-num { font: 800 44px/1 var(--head); }
.pass-num small { font: 600 15px var(--body); color: var(--muted); margin-left: 6px; }
.pass-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); margin-top: 14px; overflow: hidden; }
.pass-bar i { display: block; height: 100%; background: var(--lime); border-radius: 8px; box-shadow: 0 0 12px rgba(200, 255, 61, .6); }
.pass-card.empty-pass { background: linear-gradient(135deg, rgba(255, 90, 106, .2), rgba(138, 92, 255, .2)); }

/* списки */
.list { border-radius: var(--r); border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); min-height: 60px; }
.li:last-child { border-bottom: 0; }
.li.click { cursor: pointer; } .li.click:hover { background: var(--card2); }
.li .ava { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font: 700 15px var(--head); background: var(--grad); flex: none; }
.li .ava.c2 { background: linear-gradient(135deg, #3de0ff, #8a5cff); }
.li .ava.c3 { background: linear-gradient(135deg, #c8ff3d, #3de0ff); color: #1a0d3a; }
.li .ava.c4 { background: linear-gradient(135deg, #ffb547, #ff3d9a); }
.li .main-t { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .sub { font-size: 13px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.search .input { padding-left: 42px; }

/* сводка */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); cursor: default; }
.tile b { display: block; font: 750 26px/1.1 var(--head); }
.tile span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .tiles { gap: 8px; } .tile { padding: 12px; } .tile b { font-size: 20px; } .tile span { font-size: 11.5px; } }
.next-class { padding: 22px; border-radius: 24px; background: linear-gradient(135deg, rgba(255, 61, 154, .22), rgba(138, 92, 255, .22)); border: 1px solid rgba(255, 255, 255, .16); }
.next-class .big { font: 800 40px/1 var(--head); }
.people { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.person { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); font-weight: 700; font-size: 13px; cursor: pointer; color: var(--text); }
.person:hover { background: rgba(0, 0, 0, .4); }
.person i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: var(--grad); }
.person.res i { background: linear-gradient(135deg, #3de0ff, #8a5cff); }

/* ---------- шторка справа ---------- */
.panel-wrap { position: fixed; inset: 0; z-index: 50; }
.panel-shade { position: absolute; inset: 0; background: rgba(8, 3, 22, .55); backdrop-filter: blur(2px); animation: fade .2s; cursor: pointer; }
.panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw - 60px); background: var(--bg2); border-left: 1px solid var(--line2); box-shadow: -30px 0 80px rgba(0, 0, 0, .5); display: flex; flex-direction: column; animation: slide .25s cubic-bezier(.2, .8, .2, 1); }
.panel.under { transform: translateX(-34px); filter: brightness(.7); }
.panel-head { display: flex; align-items: center; gap: 10px; padding: calc(14px + var(--safe-t)) 18px 14px; border-bottom: 1px solid var(--line); }
.panel-head h2 { flex: 1; min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-body { flex: 1; overflow-y: auto; padding: 18px 18px calc(30px + var(--safe-b)); overscroll-behavior: contain; }
@keyframes slide { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
@media (max-width: 760px) { .panel { width: calc(100vw - 18px); } .panel.under { transform: translateX(-10px); } }

/* ---------- окна, подсказки, всплывашки ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(8, 3, 22, .6); backdrop-filter: blur(3px); animation: fade .15s; }
.modal { width: 100%; max-width: 440px; max-height: calc(100vh - 36px); overflow-y: auto; background: var(--bg3); border: 1px solid var(--line2); border-radius: 22px; padding: 22px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); animation: pop .2s cubic-bezier(.2, .8, .2, 1); }
.modal h2 { margin-bottom: 8px; }
.modal p { color: var(--muted); margin: 0 0 16px; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
@media (max-width: 760px) { .modal-wrap { align-items: end; padding: 0; } .modal { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: calc(22px + var(--safe-b)); animation: up .22s cubic-bezier(.2, .8, .2, 1); } }
@keyframes up { from { transform: translateY(100%); } }
.tip { position: fixed; z-index: 120; max-width: 280px; padding: 9px 12px; border-radius: 12px; background: #0b0420; border: 1px solid var(--line2); color: var(--text); font-size: 13px; line-height: 1.4; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); pointer-events: none; animation: fade .12s; }
.toasts { position: fixed; z-index: 130; left: 50%; transform: translateX(-50%); bottom: calc(90px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 28px); max-width: 440px; }
.toast { padding: 12px 18px; border-radius: 14px; background: #0b0420; border: 1px solid var(--line2); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); font-weight: 700; animation: up .2s; text-align: center; }
.toast.ok { border-color: rgba(200, 255, 61, .55); }
.toast.bad { border-color: rgba(255, 90, 106, .6); }
@media (min-width: 761px) { .toasts { bottom: 28px; } }
.pop-list { max-height: 50vh; overflow-y: auto; margin: 0 -6px; }
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-head b { flex: 1; text-align: center; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid span { text-align: center; font-size: 11px; color: var(--dim); padding: 4px 0; }
.cal-grid button { aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: var(--card); cursor: pointer; font-weight: 700; color: var(--text); }
.cal-grid button:hover { background: var(--card2); }
.cal-grid button.on { background: var(--grad); }
.cal-grid button.today { border-color: var(--lime); }
.cal-grid button.out { opacity: .3; }
.notice { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notice.unread { background: rgba(255, 61, 154, .08); }
.notice b { display: block; }
.notice small { color: var(--dim); }
.install { display: flex; gap: 14px; align-items: center; }
.install img { width: 52px; height: 52px; border-radius: 15px; flex: none; }

.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200, 255, 61, .6); animation: pulse 1.2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(200, 255, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0); } }
@media (max-width: 760px) {
  .li { flex-wrap: wrap; }
  .li .main-t, .li .sub { white-space: normal; }
  .li > .grow { flex-basis: 55%; }
}
