@font-face {
    font-family: 'Manrope';
    src: url('/fonts/manrope-cyrillic.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Manrope';
    src: url('/fonts/manrope-latin.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Unbounded';
    src: url('/fonts/unbounded-cyrillic.woff2') format('woff2');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Unbounded';
    src: url('/fonts/unbounded-latin.woff2') format('woff2');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    --bg: #f6efe4;
    --bg-deep: #efe4d5;
    --surface: #fffaf3;
    --surface-2: #f3eadf;
    --surface-3: #ede0d2;
    --ink: #24170e;
    --ink-soft: #3d2b1f;
    --muted: #766457;
    --muted-2: #958273;
    --line: rgba(68, 41, 23, .13);
    --line-strong: rgba(68, 41, 23, .22);
    --accent: #ee631f;
    --accent-bright: #ff7b36;
    --accent-ink: #2a1307;
    --accent-text: #b8420b;
    --accent-soft: #ffe6d4;
    --accent-soft-2: #fff0e5;
    --success: #18794e;
    --success-soft: #e1f5ea;
    --danger: #b42318;
    --danger-soft: #fee9e7;
    --focus-bg: #21150d;
    --focus-bg-2: #2f1d11;
    --focus-text: #fff6eb;
    --focus-muted: #d8c4b2;
    --nav-bg: rgba(255, 250, 243, .88);
    --nav-active: #ffe9da;
    --overlay: rgba(28, 16, 8, .48);
    --shadow-sm: 0 2px 3px rgba(71, 39, 16, .04), 0 8px 20px rgba(71, 39, 16, .05);
    --shadow-md: 0 6px 12px rgba(71, 39, 16, .06), 0 22px 50px rgba(71, 39, 16, .09);
    --shadow-lg: 0 20px 80px rgba(48, 24, 8, .22);
    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 19px;
    --radius-lg: 26px;
    --radius-xl: 32px;
    --content: 720px;
    --body-pad: clamp(16px, 4.6vw, 28px);
    --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

:root[data-theme='dark'] {
    color-scheme: dark;
    --bg: #120d09;
    --bg-deep: #0d0906;
    --surface: #1c1510;
    --surface-2: #251b14;
    --surface-3: #30231a;
    --ink: #fff4e7;
    --ink-soft: #f1dfcf;
    --muted: #baa897;
    --muted-2: #978473;
    --line: rgba(255, 238, 223, .12);
    --line-strong: rgba(255, 238, 223, .22);
    --accent: #ff7a36;
    --accent-bright: #ff995f;
    --accent-ink: #211006;
    --accent-text: #ff9b65;
    --accent-soft: rgba(255, 122, 54, .15);
    --accent-soft-2: rgba(255, 122, 54, .08);
    --success: #6ed5a5;
    --success-soft: rgba(56, 184, 126, .14);
    --danger: #ff9c92;
    --danger-soft: rgba(255, 114, 100, .14);
    --focus-bg: #24170f;
    --focus-bg-2: #372216;
    --focus-text: #fff7ee;
    --focus-muted: #d6c2b0;
    --nav-bg: rgba(26, 18, 13, .86);
    --nav-active: rgba(255, 122, 54, .13);
    --overlay: rgba(0, 0, 0, .62);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, .16), 0 10px 26px rgba(0, 0, 0, .16);
    --shadow-md: 0 8px 18px rgba(0, 0, 0, .2), 0 24px 60px rgba(0, 0, 0, .24);
    --shadow-lg: 0 24px 90px rgba(0, 0, 0, .54);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --bg: #120d09;
        --bg-deep: #0d0906;
        --surface: #1c1510;
        --surface-2: #251b14;
        --surface-3: #30231a;
        --ink: #fff4e7;
        --ink-soft: #f1dfcf;
        --muted: #baa897;
        --muted-2: #978473;
        --line: rgba(255, 238, 223, .12);
        --line-strong: rgba(255, 238, 223, .22);
        --accent: #ff7a36;
        --accent-bright: #ff995f;
        --accent-ink: #211006;
        --accent-text: #ff9b65;
        --accent-soft: rgba(255, 122, 54, .15);
        --accent-soft-2: rgba(255, 122, 54, .08);
        --success: #6ed5a5;
        --success-soft: rgba(56, 184, 126, .14);
        --danger: #ff9c92;
        --danger-soft: rgba(255, 114, 100, .14);
        --focus-bg: #24170f;
        --focus-bg-2: #372216;
        --focus-text: #fff7ee;
        --focus-muted: #d6c2b0;
        --nav-bg: rgba(26, 18, 13, .86);
        --nav-active: rgba(255, 122, 54, .13);
        --overlay: rgba(0, 0, 0, .62);
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, .16), 0 10px 26px rgba(0, 0, 0, .16);
        --shadow-md: 0 8px 18px rgba(0, 0, 0, .2), 0 24px 60px rgba(0, 0, 0, .24);
        --shadow-lg: 0 24px 90px rgba(0, 0, 0, .54);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100dvh;
    margin: 0;
    background:
        radial-gradient(120% 54% at 88% -6%, rgba(255, 119, 47, .16), transparent 64%),
        radial-gradient(90% 42% at -14% 28%, rgba(255, 179, 112, .1), transparent 60%),
        var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at center, var(--line) .7px, transparent .85px);
    background-size: 23px 23px;
    opacity: .5;
    mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .3) 58%, transparent 92%);
}

body.is-locked {
    overflow: hidden;
    touch-action: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

button:disabled {
    cursor: default;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

p,
h1,
h2,
h3,
h4 {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.eyebrow {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: .15em;
    text-transform: uppercase;
    line-height: 1.3;
}

.display-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 10vw, 46px);
    font-weight: 650;
    line-height: 1.04;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(31px, 8.7vw, 42px);
    font-weight: 620;
    line-height: 1.05;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 54px;
    padding: 0 20px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 750;
    font-size: 14.5px;
    line-height: 1;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}

.button:active {
    transform: scale(.982);
}

.button--primary {
    background: linear-gradient(135deg, var(--accent-bright), var(--accent) 66%);
    color: var(--accent-ink);
    box-shadow: 0 10px 24px rgba(222, 87, 23, .19);
}

.button--primary .icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.1;
}

.button--wide {
    width: 100%;
}

.button--ghost {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--ink);
}

.button--ghost:hover {
    border-color: var(--line-strong);
}

.button.is-loading {
    pointer-events: none;
    opacity: .72;
}

.button.is-loading span {
    opacity: .5;
}

.button.is-loading .icon {
    animation: spin .8s linear infinite;
}

.button:disabled {
    opacity: .5;
}

.small-button:disabled {
    opacity: .6;
}

.small-button.is-loading .icon {
    animation: spin .8s linear infinite;
}

.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 8px;
    color: var(--accent-text);
    font-size: 13px;
    font-weight: 750;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.small-button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 12px;
    font-weight: 750;
    transition: border-color .18s ease, background .18s ease;
}

.small-button:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.icon-button:hover {
    background: var(--surface-2);
    border-color: var(--line-strong);
}

.icon-button:active {
    transform: scale(.95);
}

.icon-button--subtle {
    width: 38px;
    height: 38px;
    background: transparent;
}

.icon-button.is-loading .icon {
    animation: spin .8s linear infinite;
}

/* Boot */
.boot {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background:
        radial-gradient(54% 36% at 50% 39%, rgba(255, 129, 59, .17), transparent 72%),
        var(--bg);
    transition: opacity .4s ease, visibility .4s ease;
}

.boot.is-hiding {
    opacity: 0;
    visibility: hidden;
}

.boot__mark {
    position: relative;
    margin-bottom: 15px;
}

.boot__mark img {
    position: relative;
    z-index: 1;
    border-radius: 23px;
    box-shadow: 0 20px 42px rgba(218, 81, 16, .26);
    animation: bootFloat 2.6s ease-in-out infinite;
}

.boot__halo {
    position: absolute;
    inset: -22px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238, 99, 31, .2), transparent 66%);
    animation: breathe 2.6s ease-in-out infinite;
}

.boot__brand {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 620;
    letter-spacing: .11em;
    line-height: 1.2;
}

.boot__caption {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.boot__loader {
    display: block;
    width: 74px;
    height: 3px;
    margin-top: 23px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line);
}

.boot__loader i {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    animation: bootLoad 1.25s cubic-bezier(.6, .05, .3, 1) infinite;
}

/* Standalone screens */
.standalone-screen {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: calc(24px + var(--safe-top)) var(--body-pad) calc(24px + var(--safe-bottom));
    overflow: hidden;
}

.standalone-screen__glow {
    position: absolute;
    top: -18%;
    right: -30%;
    width: 95vw;
    max-width: 760px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 120, 47, .24), rgba(255, 120, 47, .03) 48%, transparent 70%);
    pointer-events: none;
}

.gate-card,
.error-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    animation: rise .55s cubic-bezier(.22, .9, .24, 1) both;
}

.gate-card__brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 34px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 570;
    letter-spacing: -.02em;
}

.gate-card__brand img {
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(218, 81, 16, .2);
}

.gate-card .display-title {
    margin: 9px 0 14px;
}

.gate-card__lead {
    max-width: 34ch;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
}

.channel-list {
    display: grid;
    gap: 9px;
    margin-bottom: 19px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    text-align: left;
    transition: border-color .18s ease, transform .18s ease;
}

.channel-item:hover {
    border-color: var(--line-strong);
}

.channel-item:active {
    transform: scale(.99);
}

.channel-item__num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
}

.channel-item__text {
    min-width: 0;
    flex: 1;
}

.channel-item__text strong {
    display: block;
    font-size: 13.5px;
    font-weight: 750;
    line-height: 1.3;
}

.channel-item__text span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 550;
}

.channel-item__status {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: var(--muted);
    background: var(--surface);
}

.channel-item__status .icon {
    width: 15px;
    height: 15px;
    stroke-width: 2.4;
}

.channel-item.is-subscribed .channel-item__status {
    background: var(--success-soft);
    color: var(--success);
}

.channel-item__external {
    color: var(--muted-2);
}

.channel-item__external .icon {
    width: 17px;
    height: 17px;
}

.gate-card__hint {
    margin-top: 13px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
    text-align: center;
}

.gate-card__hint.is-error {
    color: var(--danger);
}

.gate-card__support {
    display: flex;
    margin: 2px auto 0;
    font-size: 12px;
    text-decoration: none;
    color: var(--muted);
}

.gate-card__support:hover {
    color: var(--accent-text);
}

.error-card {
    max-width: 390px;
    text-align: center;
}

.error-card__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 25px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--accent-text);
}

.error-card__icon .icon {
    width: 29px;
    height: 29px;
}

.error-card .eyebrow {
    margin-bottom: 7px;
}

.error-card__lead {
    max-width: 33ch;
    margin: 14px auto 23px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.error-card .text-button {
    margin: 8px 0 0;
    text-decoration: none;
    color: var(--muted);
    font-size: 12px;
}

.error-card__tech {
    margin-top: 19px;
    color: var(--muted-2);
    font-size: 10px;
    line-height: 1.4;
    word-break: break-word;
}

.noscript {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 30px;
    background: var(--bg);
    color: var(--ink);
    text-align: center;
}

/* Shell / topbar */
.app {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--content);
    min-height: 100dvh;
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(67px + var(--safe-top));
    padding: calc(12px + var(--safe-top)) var(--body-pad) 10px;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 94%, transparent) 0 70%, transparent);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: border-color .2s ease;
}

.topbar.is-scrolled {
    border-bottom-color: var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border-radius: 14px;
}

.brand img {
    border-radius: 12px;
    box-shadow: 0 5px 14px rgba(218, 81, 16, .2);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand__text strong {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .055em;
}

.brand__text span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sync-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface) 64%, transparent);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.sync-state i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 16%, transparent);
}

.sync-state.is-offline {
    color: var(--danger);
}

.sync-state.is-offline i {
    background: var(--danger);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 14%, transparent);
}

.sync-state.is-syncing i {
    background: var(--accent);
    animation: pulse 1s ease-in-out infinite;
}

.avatar {
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .27), transparent 50%),
        linear-gradient(135deg, var(--accent-bright), #cf4b0d);
    color: #fff8ef;
    font-family: var(--font-display);
    font-weight: 560;
    letter-spacing: -.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.avatar--top {
    width: 38px;
    height: 38px;
    border: 2px solid color-mix(in srgb, var(--surface) 78%, transparent);
    font-size: 13px;
}

.avatar--large {
    width: 64px;
    height: 64px;
    font-size: 21px;
    box-shadow: 0 12px 26px rgba(215, 78, 13, .22);
}

.main {
    padding: 12px var(--body-pad) calc(118px + var(--safe-bottom));
}

.view {
    display: none;
    animation: viewIn .28s cubic-bezier(.22, .8, .26, 1) both;
}

.view.is-active {
    display: block;
}

.view-head {
    padding: 17px 0 21px;
}

.view-head .page-title {
    margin-top: 5px;
}

.view-head .view-sub {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 550;
}

.view-head--profile {
    padding-bottom: 18px;
}

/* Day intro */
.day-intro {
    padding: 14px 0 5px;
}

#day-kicker {
    margin-bottom: 11px;
    color: var(--accent-text);
}

.group-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 13px;
}

.group-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-align: left;
    border-radius: 20px;
    transition: transform .18s ease;
}

.group-switch:active {
    transform: scale(.99);
}

.group-switch:hover .group-switch__icon {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}

.group-emoji {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: none;
    border: 1px solid color-mix(in srgb, var(--accent) 19%, var(--line));
    border-radius: 16px;
    background: var(--accent-soft);
    font-size: 22px;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.group-names {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.group-code {
    display: block;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: clamp(33px, 9.8vw, 44px);
    font-weight: 610;
    line-height: 1.08;
    letter-spacing: -.05em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-sub {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-switch__icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--muted);
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.group-switch__icon .icon {
    width: 15px;
    height: 15px;
    stroke-width: 2;
}

.date-stamp {
    display: flex;
    width: 57px;
    min-height: 64px;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(to bottom, var(--accent-soft) 0 21px, var(--surface) 21px);
    box-shadow: var(--shadow-sm);
    line-height: 1;
}

.date-stamp span {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -.06em;
}

.date-stamp small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Date rail */
.date-rail-wrap {
    position: relative;
    margin: 18px calc(var(--body-pad) * -1) 2px;
    padding: 0 var(--body-pad);
}

.date-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 1px 9px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--body-pad);
}

.date-rail::-webkit-scrollbar {
    display: none;
}

.date-pill {
    position: relative;
    display: flex;
    width: 58px;
    min-height: 75px;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    color: var(--ink);
    scroll-snap-align: center;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.date-pill:hover {
    border-color: var(--line-strong);
    background: var(--surface);
}

.date-pill:active {
    transform: scale(.97);
}

.date-pill__weekday {
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.date-pill strong {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 590;
    line-height: 1.1;
    letter-spacing: -.06em;
}

.date-pill__month {
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.date-pill.is-today::after {
    content: '';
    position: absolute;
    bottom: 7px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.date-pill.is-selected {
    border-color: var(--accent);
    background: linear-gradient(145deg, var(--accent-bright), var(--accent));
    color: var(--accent-ink);
    box-shadow: 0 8px 19px rgba(216, 78, 12, .2);
}

.date-pill.is-selected .date-pill__weekday,
.date-pill.is-selected .date-pill__month {
    color: color-mix(in srgb, var(--accent-ink) 68%, transparent);
}

.date-pill.is-selected.is-today::after {
    background: var(--accent-ink);
}

.today-jump {
    position: absolute;
    top: 50%;
    right: calc(var(--body-pad) - 4px);
    min-height: 36px;
    padding: 0 12px;
    transform: translateY(calc(-50% - 4px));
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    color: var(--accent-text);
    box-shadow: var(--shadow-sm);
    font-size: 10.5px;
    font-weight: 750;
    backdrop-filter: blur(8px);
    animation: fadeIn .2s ease both;
}

.data-note {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin: 9px 0 0;
    padding: 9px 11px;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
    border-radius: 12px;
    background: var(--accent-soft-2);
    color: var(--accent-text);
    font-size: 11.5px;
    line-height: 1.4;
}

.data-note::before {
    content: '';
    width: 5px;
    height: 5px;
    margin-top: 5px;
    flex: none;
    border-radius: 50%;
    background: currentColor;
}

/* Focus card */
#focus-slot {
    margin-top: 14px;
}

.focus-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 20px 20px 18px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(95% 115% at 100% -12%, rgba(255, 121, 50, .3), transparent 57%),
        linear-gradient(135deg, var(--focus-bg), var(--focus-bg-2));
    color: var(--focus-text);
    box-shadow: 0 16px 38px rgba(44, 21, 8, .16);
    animation: rise .42s cubic-bezier(.2, .8, .25, 1) both;
}

.focus-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -42px;
    right: -31px;
    width: 138px;
    height: 138px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    box-shadow:
        0 0 0 19px rgba(255, 255, 255, .025),
        0 0 0 45px rgba(255, 255, 255, .018);
}

.focus-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 36px;
    height: 2px;
    border-radius: 0 0 4px 4px;
    background: var(--accent);
}

.focus-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.focus-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--focus-text);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.focus-label i {
    position: relative;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.focus-label i::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(255, 123, 54, .55);
    border-radius: 50%;
    animation: breathe 2s ease-in-out infinite;
}

.focus-card--static .focus-label i {
    background: var(--focus-muted);
}

.focus-card--static .focus-label i::after {
    display: none;
}

.focus-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: var(--focus-muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .055em;
    white-space: nowrap;
    text-transform: uppercase;
}

.focus-title {
    max-width: 24ch;
    font-size: clamp(20px, 5.7vw, 27px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.028em;
    text-wrap: balance;
}

.focus-title--plain {
    font-family: var(--font-display);
    font-size: clamp(22px, 6.2vw, 29px);
    font-weight: 560;
    letter-spacing: -.045em;
}

.focus-sub {
    max-width: 43ch;
    margin-top: 9px;
    color: var(--focus-muted);
    font-size: 12.5px;
    font-weight: 550;
    line-height: 1.5;
}

.focus-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 15px;
    margin-top: 15px;
    color: var(--focus-muted);
    font-size: 11.5px;
    font-weight: 600;
}

.focus-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.focus-meta .icon {
    width: 15px;
    height: 15px;
    opacity: .75;
}

.focus-bar {
    height: 3px;
    margin-top: 17px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.focus-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width .4s ease;
}

.focus-card--empty .focus-title {
    max-width: 16ch;
}

/* Section head */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin: 27px 0 13px;
}

.section-head h2 {
    margin-top: 3px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 590;
    line-height: 1.15;
    letter-spacing: -.045em;
}

.section-summary {
    max-width: 22ch;
    padding-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
    text-align: right;
}

/* Subgroup */
.subgroup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 11px 12px 11px 15px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: color-mix(in srgb, var(--surface) 65%, transparent);
}

.subgroup-row__label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.subgroup-row__label span {
    font-size: 12px;
    font-weight: 750;
}

.subgroup-row__label small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.segmented {
    display: inline-flex;
    flex: none;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.segmented button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 33px;
    padding: 0 10px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 750;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.segmented button[aria-pressed='true'] {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 2px 7px rgba(216, 78, 12, .17);
}

.segmented--wide {
    display: flex;
    width: 100%;
}

.segmented--wide button {
    flex: 1;
    min-height: 38px;
}

/* Lessons */
.lesson-list {
    display: grid;
    gap: 10px;
}

.lesson-item {
    position: relative;
    display: grid;
    grid-template-columns: 49px 17px minmax(0, 1fr);
    column-gap: 10px;
    animation: rise .4s cubic-bezier(.2, .8, .25, 1) both;
    animation-delay: calc(var(--i, 0) * 36ms);
}

.lesson-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 14px;
    line-height: 1;
}

.lesson-time__start {
    font-size: 12.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

.lesson-time__end {
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 9.5px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.lesson-rail {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 19px;
}

.lesson-rail::before {
    content: '';
    position: absolute;
    top: 29px;
    bottom: -13px;
    left: 50%;
    width: 1px;
    background: var(--line);
    transform: translateX(-50%);
}

.lesson-item:last-child .lesson-rail::before {
    display: none;
}

.lesson-rail::after {
    content: '';
    position: relative;
    z-index: 1;
    width: 7px;
    height: 7px;
    border: 2px solid var(--bg);
    border-radius: 50%;
    background: var(--muted-2);
    box-shadow: 0 0 0 1px var(--line-strong);
}

.lesson-item.is-current .lesson-rail::after,
.lesson-item.is-next .lesson-rail::after {
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.lesson-card {
    padding: 14px 15px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.lesson-card:hover {
    border-color: var(--line-strong);
}

.lesson-card__top {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
}

.lesson-number {
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.lesson-subgroup {
    display: inline-flex;
    min-height: 19px;
    align-items: center;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .02em;
}

.lesson-distance {
    display: inline-flex;
    min-height: 19px;
    align-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-size: 9px;
    font-weight: 750;
}

.lesson-subject {
    overflow-wrap: anywhere;
    font-size: 15.5px;
    font-weight: 750;
    line-height: 1.32;
    letter-spacing: -.017em;
}

.lesson-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.lesson-info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lesson-info .icon {
    width: 14px;
    height: 14px;
    opacity: .72;
}

.lesson-info .room-value {
    color: var(--ink-soft);
    font-weight: 750;
}

.lesson-item.is-current .lesson-card {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    background:
        linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--surface) 88%, transparent));
    box-shadow: 0 7px 20px rgba(217, 80, 12, .09);
}

.lesson-item.is-past .lesson-card {
    opacity: .62;
}

.lesson-item.is-past .lesson-time {
    opacity: .65;
}

.lesson-item.is-next .lesson-card {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.lesson-item.is-current .lesson-number,
.lesson-item.is-current .lesson-subgroup {
    color: var(--accent-text);
}

.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 55%, transparent), transparent);
    animation: shimmer 1.4s infinite;
}

.lesson-skeleton {
    height: 112px;
    margin-left: 76px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 27px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface) 48%, transparent);
    text-align: center;
}

.empty-state__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 15px;
    border-radius: 19px;
    background: var(--accent-soft);
    color: var(--accent-text);
}

.empty-state__icon .icon {
    width: 26px;
    height: 26px;
}

.empty-state strong {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 560;
    letter-spacing: -.035em;
}

.empty-state p {
    max-width: 30ch;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.empty-state .button,
.empty-state .small-button {
    margin-top: 17px;
}

.after-list {
    margin-top: 18px;
}

.week-teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 67px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: border-color .18s ease, transform .18s ease;
}

.week-teaser:hover {
    border-color: var(--line-strong);
}

.week-teaser:active {
    transform: scale(.99);
}

.week-teaser__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.week-teaser__text small {
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.week-teaser__text strong {
    font-size: 13.5px;
    font-weight: 750;
}

.week-teaser__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-text);
}

.week-teaser__icon .icon {
    width: 17px;
    height: 17px;
}

/* Week */
.week-list {
    display: grid;
    gap: 10px;
}

.week-day {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    animation: rise .4s cubic-bezier(.2, .8, .25, 1) both;
    animation-delay: calc(var(--i, 0) * 35ms);
}

.week-day.is-today {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
}

.week-day__head {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 13px;
    padding: 13px 15px;
    text-align: left;
}

.week-day__date {
    display: flex;
    width: 45px;
    min-height: 48px;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--surface-2);
    line-height: 1;
}

.week-day.is-today .week-day__date {
    background: linear-gradient(145deg, var(--accent-bright), var(--accent));
    color: var(--accent-ink);
}

.week-day__date strong {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 580;
    letter-spacing: -.06em;
}

.week-day__date small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.week-day.is-today .week-day__date small {
    color: color-mix(in srgb, var(--accent-ink) 64%, transparent);
}

.week-day__title {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.week-day__title strong {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 750;
}

.today-tag {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.week-day__title small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.week-day__chevron {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--muted);
    transition: transform .22s ease, background .22s ease;
}

.week-day__chevron .icon {
    width: 15px;
    height: 15px;
}

.week-day.is-open .week-day__chevron {
    transform: rotate(180deg);
    background: var(--accent-soft);
    color: var(--accent-text);
}

.week-day__body {
    padding: 0 15px 14px 15px;
}

.week-day__body-inner {
    padding-top: 3px;
    border-top: 1px solid var(--line);
}

.week-lesson {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.week-lesson:last-child {
    border-bottom: 0;
    padding-bottom: 4px;
}

.week-lesson__time {
    padding-top: 1px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}

.week-lesson__time strong {
    display: block;
    color: var(--ink-soft);
    font-size: 11.5px;
    font-weight: 800;
}

.week-lesson__body strong {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.week-lesson__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 9px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 600;
}

.week-empty {
    color: var(--muted);
    font-size: 11.5px;
    padding: 13px 0 3px;
}

.week-day__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
}

.week-open-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 33px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-size: 10.5px;
    font-weight: 750;
}

.week-open-button .icon {
    width: 14px;
    height: 14px;
}

.week-loading {
    display: grid;
    gap: 10px;
}

.week-loading .skeleton {
    height: 74px;
}

/* Bells */
.bell-tabs {
    display: flex;
    gap: 7px;
    margin: 3px calc(var(--body-pad) * -1) 16px;
    padding: 1px var(--body-pad);
    overflow-x: auto;
    scrollbar-width: none;
}

.bell-tabs::-webkit-scrollbar {
    display: none;
}

.bell-tab {
    display: inline-flex;
    min-height: 39px;
    flex: none;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.bell-tab.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}

.bell-hero {
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(95% 130% at 100% -20%, rgba(255, 126, 54, .21), transparent 58%),
        var(--focus-bg);
    color: var(--focus-text);
    box-shadow: var(--shadow-sm);
}

.bell-hero::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -43px;
    width: 132px;
    height: 132px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(255, 255, 255, .025), 0 0 0 42px rgba(255, 255, 255, .018);
}

.bell-hero__kicker {
    color: var(--focus-muted);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.bell-hero__time {
    margin-top: 9px;
    font-family: var(--font-display);
    font-size: clamp(30px, 9vw, 42px);
    font-weight: 550;
    line-height: 1.08;
    letter-spacing: -.055em;
    font-variant-numeric: tabular-nums;
}

.bell-hero__label {
    margin-top: 5px;
    color: var(--focus-muted);
    font-size: 12.5px;
    font-weight: 600;
}

.bell-hero__aside {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    color: var(--focus-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bell-list {
    display: grid;
    gap: 7px;
    margin-top: 17px;
}

.bell-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    transition: border-color .18s ease, background .18s ease;
}

.bell-row__index {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
}

.bell-row__main {
    min-width: 0;
    flex: 1;
}

.bell-row__main strong {
    display: block;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.3;
}

.bell-row__main span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
}

.bell-row__duration {
    flex: none;
    color: var(--muted-2);
    font-size: 9.5px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.bell-row.is-extra {
    border-style: dashed;
}

.bell-row.is-extra .bell-row__index {
    background: var(--accent-soft);
    color: var(--accent-text);
}

.bell-row.is-current {
    border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
    background: linear-gradient(135deg, var(--accent-soft), var(--surface));
}

.bell-row.is-current .bell-row__index {
    background: var(--accent);
    color: var(--accent-ink);
}

.bell-row.is-next {
    border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}

.bell-row.is-past {
    opacity: .55;
}

.bell-now-tag {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .07em;
    vertical-align: 1px;
    text-transform: uppercase;
}

/* Profile */
.profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(90% 140% at 100% -30%, var(--accent-soft), transparent 62%),
        var(--surface);
    box-shadow: var(--shadow-sm);
    animation: rise .4s cubic-bezier(.2, .8, .25, 1) both;
}

.profile-card__text {
    min-width: 0;
    flex: 1;
}

.profile-card__text h2 {
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 570;
    line-height: 1.17;
    letter-spacing: -.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-card__text p {
    overflow: hidden;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-badge {
    flex: none;
    padding: 5px 8px;
    border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.panel {
    margin-top: 12px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    box-shadow: var(--shadow-sm);
    animation: rise .42s cubic-bezier(.2, .8, .25, 1) both;
}

.panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.panel__title {
    margin-top: 3px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 570;
    letter-spacing: -.04em;
}

.panel__note {
    margin-top: 11px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.45;
}

.panel__note.is-warning {
    color: var(--danger);
}

.profile-group {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface-2);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease;
}

.profile-group:hover {
    border-color: var(--line-strong);
}

.profile-group__emoji {
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    flex: none;
    border-radius: 13px;
    background: var(--accent-soft);
    font-size: 19px;
}

.profile-group__text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.profile-group strong {
    display: block;
    overflow: hidden;
    max-width: 100%;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 570;
    letter-spacing: -.03em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-group__text > span {
    display: block;
    overflow: hidden;
    max-width: 100%;
    color: var(--muted);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-group__chevron {
    width: 17px;
    height: 17px;
    color: var(--muted-2);
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    padding-top: 14px;
}

.setting-row--stack {
    margin-top: 14px;
    border-top: 1px solid var(--line);
}

.setting-row__text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.setting-row__text strong {
    font-size: 12px;
    font-weight: 750;
}

.setting-row__text span {
    color: var(--muted);
    font-size: 10px;
}

.setting-row .segmented {
    max-width: 158px;
}

.channel-list--compact {
    margin-bottom: 0;
}

.channel-list--compact .channel-item {
    min-height: 56px;
    padding: 8px 10px;
    background: var(--surface-2);
}

.channel-list--compact .channel-item__num {
    width: 30px;
    height: 30px;
    font-size: 10px;
}

.channel-list--compact .channel-item__text strong {
    font-size: 12px;
}

.channel-list--compact .channel-item__text span {
    font-size: 10px;
}

.support-list {
    display: grid;
    gap: 7px;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-2);
    transition: border-color .18s ease;
}

.support-link:hover {
    border-color: var(--line-strong);
}

.support-link__icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-text);
}

.support-link__icon .icon {
    width: 15px;
    height: 15px;
}

.support-link__text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.support-link__text strong {
    font-size: 11.5px;
    font-weight: 750;
}

.support-link__text span {
    color: var(--muted);
    font-size: 10px;
}

.support-link > .icon {
    width: 15px;
    height: 15px;
    color: var(--muted-2);
}

.admin-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 74px;
    margin-top: 12px;
    padding: 13px 15px;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
    border-radius: var(--radius-lg);
    background:
        radial-gradient(90% 130% at 100% -30%, var(--accent-soft), transparent 62%),
        var(--surface);
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, border-color .18s ease;
}

.admin-entry:hover {
    border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
}

.admin-entry:active {
    transform: scale(.99);
}

.admin-entry__icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex: none;
    border-radius: 14px;
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 7px 15px rgba(216, 78, 12, .18);
}

.admin-entry__icon .icon {
    width: 21px;
    height: 21px;
    stroke-width: 1.9;
}

.admin-entry__text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.admin-entry__text strong {
    font-size: 13px;
    font-weight: 750;
}

.admin-entry__text span {
    color: var(--muted);
    font-size: 10.5px;
}

.admin-entry > .icon {
    width: 17px;
    height: 17px;
    color: var(--muted-2);
}

.app-footer {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 24px 4px 5px;
    color: var(--muted-2);
    font-size: 9.5px;
    font-weight: 550;
    line-height: 1.5;
    text-align: center;
}

/* Tabbar */
.tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    padding: 17px 14px calc(10px + var(--safe-bottom));
    background: linear-gradient(to top, var(--bg) 38%, color-mix(in srgb, var(--bg) 80%, transparent) 72%, transparent);
    pointer-events: none;
}

.tabbar__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--nav-bg);
    box-shadow: 0 12px 38px rgba(45, 24, 8, .13), inset 0 1px 0 rgba(255, 255, 255, .1);
    backdrop-filter: blur(20px) saturate(1.25);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
    pointer-events: auto;
}

.tab {
    display: flex;
    min-width: 0;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 16px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .01em;
    transition: background .2s ease, color .2s ease;
}

.tab__icon {
    display: grid;
    place-items: center;
    width: 27px;
    height: 26px;
    border-radius: 9px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.tab__icon .icon {
    width: 20px;
    height: 20px;
    stroke-width: 1.9;
}

.tab.is-active {
    background: var(--nav-active);
    color: var(--ink);
}

.tab.is-active .tab__icon {
    background: var(--accent);
    color: var(--accent-ink);
    transform: translateY(-1px);
}

.tab:active .tab__icon {
    transform: scale(.92);
}

/* Group sheet */
.sheet-layer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.sheet-backdrop {
    position: absolute;
    inset: 0;
    background: var(--overlay);
    backdrop-filter: blur(3px);
    animation: fadeIn .2s ease both;
}

.sheet {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 720px;
    max-height: 92dvh;
    flex-direction: column;
    padding: 0 var(--body-pad) calc(9px + var(--safe-bottom));
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 27px 27px 0 0;
    background: var(--bg);
    box-shadow: 0 -22px 70px rgba(27, 13, 4, .28);
    animation: sheetIn .34s cubic-bezier(.2, .85, .25, 1) both;
}

.sheet__handle {
    width: 37px;
    height: 4px;
    flex: none;
    margin: 9px auto 4px;
    border-radius: 99px;
    background: var(--line-strong);
}

.sheet__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex: none;
    padding: 10px 0 14px;
}

.sheet__head h2 {
    margin-top: 3px;
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 570;
    line-height: 1.15;
    letter-spacing: -.045em;
}

.sheet__tools {
    flex: none;
    padding-bottom: 11px;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 49px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.search-field:focus-within {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-field > .icon {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--muted);
}

.search-field input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    font-weight: 550;
}

.search-field input::placeholder {
    color: var(--muted-2);
}

.search-field__clear {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: none;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--muted);
}

.search-field__clear .icon {
    width: 13px;
    height: 13px;
}

.catalog-filters {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 9px;
    min-width: 0;
}

.chip-row {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}

.chip-row::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    flex: none;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.filter-chip.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
}

.select-field {
    position: relative;
    display: flex;
    align-items: center;
    flex: none;
    max-width: 154px;
}

.select-field select {
    width: 100%;
    max-width: 154px;
    height: 34px;
    padding: 0 27px 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    appearance: none;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    cursor: pointer;
}

.select-field .icon {
    position: absolute;
    right: 9px;
    width: 13px;
    height: 13px;
    pointer-events: none;
    color: var(--muted);
}

.results-line {
    margin-top: 10px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

.sheet__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 2px 0 13px;
    overscroll-behavior: contain;
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.group-card {
    position: relative;
    display: flex;
    min-height: 112px;
    flex-direction: column;
    align-items: stretch;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
    text-align: left;
    transition: border-color .18s ease, background .18s ease, transform .16s ease;
    overflow: hidden;
}

.group-card:hover {
    border-color: var(--line-strong);
}

.group-card:active {
    transform: scale(.98);
}

.group-card.is-current {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    background:
        linear-gradient(145deg, var(--accent-soft), color-mix(in srgb, var(--surface) 76%, transparent));
}

.group-card__accent {
    width: 18px;
    height: 3px;
    margin-bottom: 10px;
    border-radius: 99px;
    background: var(--group-accent, var(--accent));
}

.group-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;
}

.group-card__emoji {
    font-size: 16px;
    line-height: 1;
}

.group-card__check {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
}

.group-card__check .icon {
    width: 11px;
    height: 11px;
    stroke-width: 2.6;
}

.group-card__code {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: clamp(16px, 4.6vw, 19px);
    font-weight: 580;
    letter-spacing: -.055em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-card__specialty {
    display: -webkit-box;
    min-height: 27px;
    margin-top: 5px;
    overflow: hidden;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.group-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 9px;
    color: var(--muted-2);
    font-size: 8.5px;
    font-weight: 650;
}

.group-card__footer .icon {
    width: 12px;
    height: 12px;
}

.catalog-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 43px 20px 28px;
    text-align: center;
}

.catalog-empty__icon {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    margin-bottom: 14px;
    border-radius: 19px;
    background: var(--surface-2);
    color: var(--muted);
}

.catalog-empty__icon .icon {
    width: 24px;
    height: 24px;
}

.catalog-empty strong {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 560;
    letter-spacing: -.035em;
}

.catalog-empty p {
    max-width: 29ch;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
}

.catalog-empty .small-button {
    margin-top: 15px;
}

/* Dialog / toast */
.confirm-dialog {
    width: calc(100% - 30px);
    max-width: 370px;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.confirm-dialog::backdrop {
    background: var(--overlay);
    backdrop-filter: blur(4px);
}

.confirm-dialog__icon {
    display: grid;
    place-items: center;
    width: 51px;
    height: 51px;
    margin: 0 auto 15px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent-text);
}

.confirm-dialog__icon .icon {
    width: 24px;
    height: 24px;
}

.confirm-dialog h2 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 570;
    letter-spacing: -.04em;
}

.confirm-dialog p {
    max-width: 34ch;
    margin: 7px auto 19px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.confirm-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.confirm-dialog__actions .button {
    min-height: 47px;
    font-size: 12.5px;
}

.toast {
    position: fixed;
    right: 16px;
    bottom: calc(93px + var(--safe-bottom));
    left: 16px;
    z-index: 140;
    display: flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    max-width: min(430px, calc(100% - 32px));
    min-height: 45px;
    margin: 0 auto;
    padding: 9px 14px 9px 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: color-mix(in srgb, var(--focus-bg) 96%, transparent);
    color: var(--focus-text);
    box-shadow: var(--shadow-lg);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    backdrop-filter: blur(16px);
    animation: toastIn .25s cubic-bezier(.2, .85, .25, 1) both;
}

.toast.is-leaving {
    animation: toastOut .2s ease both;
}

.toast__icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 12px;
    font-weight: 800;
}

.toast__icon .icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.3;
}

.toast.is-error .toast__icon {
    background: var(--danger);
    color: #fff;
}

/* Admin */
.admin-screen {
    position: fixed;
    inset: 0;
    z-index: 80;
    overflow-y: auto;
    background:
        radial-gradient(100% 38% at 100% -4%, rgba(255, 121, 50, .14), transparent 60%),
        var(--bg);
    animation: viewIn .28s ease both;
    overscroll-behavior: contain;
}

.admin-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: calc(11px + var(--safe-top)) var(--body-pad) 12px;
    background: color-mix(in srgb, var(--bg) 91%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}

.admin-bar__title {
    min-width: 0;
    flex: 1;
}

.admin-bar__title h1 {
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 580;
    line-height: 1.2;
    letter-spacing: -.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-bar__title .eyebrow {
    font-size: 8.5px;
    margin-bottom: 3px;
}

.admin-main {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 7px var(--body-pad) calc(35px + var(--safe-bottom));
}

.admin-loading {
    display: grid;
    gap: 10px;
    padding-top: 7px;
}

.admin-loading .skeleton {
    height: 118px;
}

.admin-error {
    margin-top: 10px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}

.admin-error p {
    margin: 8px 0 15px;
    color: var(--muted);
    font-size: 12px;
}

.admin-overview {
    display: grid;
    grid-template-columns: 1.24fr .76fr;
    gap: 9px;
    animation: rise .35s ease both;
}

.admin-total {
    display: flex;
    min-height: 139px;
    flex-direction: column;
    justify-content: space-between;
    padding: 17px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(100% 120% at 100% -10%, rgba(255, 121, 50, .29), transparent 60%),
        var(--focus-bg);
    color: var(--focus-text);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-total__label {
    color: var(--focus-muted);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.admin-total__value {
    margin-top: 9px;
    font-family: var(--font-display);
    font-size: clamp(40px, 11vw, 54px);
    font-weight: 560;
    line-height: 1;
    letter-spacing: -.07em;
}

.admin-total__aside {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 11px;
    margin-top: 9px;
    color: var(--focus-muted);
    font-size: 9.5px;
    font-weight: 600;
}

.admin-mini-stats {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 9px;
}

.admin-mini {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.admin-mini__value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 570;
    line-height: 1.1;
    letter-spacing: -.06em;
}

.admin-mini__label {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.3;
}

.admin-section {
    margin-top: 11px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: var(--shadow-sm);
    animation: rise .4s ease both;
}

.admin-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.admin-section__title {
    margin-top: 3px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 570;
    letter-spacing: -.035em;
}

.admin-section__hint {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.admin-section__badge {
    flex: none;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 8.5px;
    font-weight: 750;
    white-space: nowrap;
}

.distribution-list {
    display: grid;
    gap: 10px;
}

.distribution-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
}

.distribution-row__top {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.distribution-row__top span:first-child {
    font-size: 10px;
    line-height: 1.2;
}

.distribution-row__top strong {
    overflow: hidden;
    font-size: 10.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.distribution-row__count {
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.distribution-bar {
    grid-column: 1 / -1;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-2);
}

.distribution-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.recent-list {
    display: grid;
    gap: 1px;
}

.recent-user {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 45px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
}

.recent-user:last-child {
    border-bottom: 0;
}

.recent-user__avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-size: 10px;
    font-weight: 800;
}

.recent-user__text {
    min-width: 0;
    flex: 1;
}

.recent-user__text strong {
    display: block;
    overflow: hidden;
    font-size: 10.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-user__text span {
    display: block;
    overflow: hidden;
    margin-top: 1px;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-user__date {
    flex: none;
    color: var(--muted-2);
    font-size: 8.5px;
    font-variant-numeric: tabular-nums;
}

.broadcast-form {
    display: grid;
    gap: 9px;
}

.broadcast-form textarea {
    width: 100%;
    min-height: 126px;
    padding: 12px 13px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: var(--surface);
    color: var(--ink);
    font-size: 12px;
    line-height: 1.5;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.broadcast-form textarea:focus {
    border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.broadcast-form textarea::placeholder {
    color: var(--muted-2);
}

.broadcast-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.broadcast-form__count {
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.broadcast-form__count.is-over {
    color: var(--danger);
}

.broadcast-form .button {
    min-height: 42px;
    padding: 0 15px;
    font-size: 11.5px;
}

.broadcast-progress {
    margin-top: 12px;
    padding: 11px;
    border-radius: 13px;
    background: var(--surface-2);
}

.broadcast-progress__top {
    display: flex;
    justify-content: space-between;
    gap: 9px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 650;
}

.broadcast-progress__top strong {
    color: var(--ink);
    font-weight: 750;
}

.broadcast-progress__bar {
    height: 5px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line);
}

.broadcast-progress__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width .35s ease;
}

.broadcast-progress__errors {
    margin-top: 5px;
    color: var(--danger);
    font-size: 9px;
}

.history-list {
    display: grid;
    gap: 8px;
}

.history-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.history-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.history-item__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 8.5px;
}

.history-item__top strong {
    color: var(--ink-soft);
    font-weight: 700;
}

.history-item p {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 10.5px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.history-item__stats {
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 8.5px;
}

.schedule-status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-bottom: 12px;
}

.schedule-status__cell {
    padding: 9px;
    border-radius: 12px;
    background: var(--surface-2);
}

.schedule-status__cell span {
    display: block;
    color: var(--muted);
    font-size: 8.5px;
    font-weight: 650;
    line-height: 1.3;
}

.schedule-status__cell strong {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    font-size: 11px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-actions .small-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-actions .small-button .icon {
    width: 14px;
    height: 14px;
}

.admin-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 9.5px;
    line-height: 1.45;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes bootFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes bootLoad {
    0% { transform: translateX(-105%); }
    55%, 100% { transform: translateX(255%); }
}
@keyframes breathe {
    0%, 100% { opacity: .65; transform: scale(.88); }
    50% { opacity: 1; transform: scale(1.08); }
}
@keyframes pulse {
    0%, 100% { opacity: .45; }
    50% { opacity: 1; }
}
@keyframes shimmer {
    100% { transform: translateX(100%); }
}
@keyframes viewIn {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes sheetIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(9px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateY(6px) scale(.98); }
}

/* Responsive */
@media (max-width: 560px) {
    .catalog-filters {
        align-items: stretch;
        flex-direction: column;
    }
    .chip-row {
        flex: none;
        width: 100%;
    }
    .select-field,
    .select-field select {
        width: 100%;
        max-width: none;
    }
    .date-stamp {
        display: none;
    }
    .group-code {
        font-size: clamp(30px, 8.8vw, 40px);
    }
}

@media (max-width: 380px) {
    :root {
        --body-pad: 14px;
    }
    .group-emoji {
        width: 43px;
        height: 43px;
        border-radius: 14px;
        font-size: 20px;
    }
    .group-code {
        font-size: 31px;
    }
    .date-stamp {
        width: 51px;
        min-height: 59px;
    }
    .date-stamp span {
        font-size: 20px;
    }
    .sync-state {
        display: none;
    }
    .subgroup-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .subgroup-row .segmented {
        align-self: stretch;
        justify-content: space-between;
    }
    .subgroup-row .segmented button {
        flex: 1;
    }
    .lesson-item {
        grid-template-columns: 44px 14px minmax(0, 1fr);
        column-gap: 8px;
    }
    .lesson-card {
        padding: 13px;
    }
    .lesson-subject {
        font-size: 14.5px;
    }
    .setting-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .setting-row .segmented {
        max-width: none;
        width: 100%;
    }
    .gate-card,
    .error-card {
        padding: 22px;
    }
    .tabbar {
        padding-right: 10px;
        padding-left: 10px;
    }
    .tab {
        font-size: 9px;
    }
    .catalog-filters {
        align-items: flex-start;
        flex-direction: column;
    }
    .select-field,
    .select-field select {
        width: 100%;
        max-width: none;
    }
}

@media (min-width: 620px) {
    .main {
        padding-top: 18px;
    }
    .group-code {
        font-size: 48px;
    }
    .focus-card {
        padding: 24px 25px 21px;
    }
    .lesson-item {
        grid-template-columns: 56px 19px minmax(0, 1fr);
        column-gap: 13px;
    }
    .lesson-card {
        padding: 17px 19px;
    }
    .lesson-subject {
        font-size: 16.5px;
    }
    .group-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .sheet {
        border-radius: 30px 30px 0 0;
    }
}

@media (min-width: 900px) {
    :root {
        --content: 780px;
    }
    body {
        background:
            radial-gradient(46% 58% at 84% 4%, rgba(255, 119, 47, .16), transparent 68%),
            radial-gradient(40% 45% at 8% 70%, rgba(255, 163, 89, .09), transparent 70%),
            var(--bg-deep);
    }
    .app {
        margin-top: 18px;
        margin-bottom: 18px;
        border: 1px solid var(--line);
        border-radius: 30px;
        background: var(--bg);
        box-shadow: 0 30px 100px rgba(41, 20, 5, .14);
        overflow: clip;
    }
    .topbar {
        border-radius: 30px 30px 0 0;
    }
    .tabbar {
        max-width: var(--content);
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: 18px;
        border-radius: 0 0 30px 30px;
        background: linear-gradient(to top, var(--bg) 45%, transparent);
    }
    .app {
        padding-bottom: 1px;
    }
    .main {
        padding-bottom: 115px;
    }
    .focus-title {
        font-size: 30px;
    }
    .bell-hero__time {
        font-size: 46px;
    }
    .sheet {
        margin-bottom: 18px;
        border-bottom: 1px solid var(--line);
        border-radius: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
