:root {
    --bg: #070708;
    --bg-soft: #0c0c0f;
    --surface: rgba(18, 18, 22, 0.82);
    --surface-solid: #111115;
    --surface-raised: #17171c;
    --surface-hover: #1c1c22;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.15);
    --text: #f7f7f8;
    --text-soft: #b5b5bd;
    --muted: #777781;
    --red: #f1232d;
    --red-bright: #ff4a53;
    --red-deep: #8c0610;
    --success: #71e7a5;
    --danger: #ff5f68;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 11px;
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 5%, rgba(181, 0, 13, 0.09), transparent 27rem),
        radial-gradient(circle at 93% 58%, rgba(230, 20, 30, 0.06), transparent 30rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

img,
svg {
    display: block;
    max-width: 100%;
}

button {
    border: 0;
}

::selection {
    color: #fff;
    background: rgba(241, 35, 45, 0.65);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #08080a;
}

::-webkit-scrollbar-thumb {
    border: 3px solid #08080a;
    border-radius: 20px;
    background: #35353d;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}

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

.ambient {
    position: fixed;
    z-index: -3;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    opacity: 0.18;
}

.ambient-one {
    top: 16rem;
    left: -24rem;
    background: var(--red);
}

.ambient-two {
    right: -25rem;
    bottom: 3rem;
    background: #8a0009;
}

.ambient-login-one {
    top: -17rem;
    right: -10rem;
    width: 44rem;
    height: 44rem;
    background: #c8000d;
    opacity: 0.24;
}

.ambient-login-two {
    bottom: -25rem;
    left: -16rem;
    width: 48rem;
    height: 48rem;
    background: #690007;
    opacity: 0.22;
}

.noise-layer {
    position: fixed;
    z-index: -2;
    inset: 0;
    pointer-events: none;
    opacity: 0.13;
    background-image:
        repeating-radial-gradient(circle at 40% 30%, transparent 0 1px, rgba(255, 255, 255, 0.04) 1px 2px);
    background-size: 5px 5px;
    mask-image: linear-gradient(to bottom, #000, transparent 94%);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
}

.brand-mark {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    width: 27px;
    height: 27px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 48%),
        linear-gradient(135deg, #27272d, #101014);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
}

.brand-mark::after {
    position: absolute;
    inset: -8px;
    content: "";
    background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.22) 50%, transparent 68%);
    transform: translateX(-120%);
    animation: mark-shine 5s ease-in-out infinite;
}

.brand-mark span {
    display: block;
    flex: 1;
    border-radius: 2px 2px 1px 1px;
    background: linear-gradient(to top, #950610, var(--red-bright));
    box-shadow: 0 0 8px rgba(241, 35, 45, 0.35);
}

.brand-mark span:nth-child(1) {
    height: 48%;
}

.brand-mark span:nth-child(2) {
    height: 90%;
}

.brand-mark span:nth-child(3) {
    height: 66%;
}

.brand-word {
    color: #f9f9fa;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-plus,
.installer-brand span {
    display: inline-block;
    color: transparent;
    background: linear-gradient(120deg, #fff 8%, #fff 25%, #ffb7ba 43%, #ff303a 68%, #bd0713 94%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255, 48, 58, 0.28));
    animation: plus-gradient 4.5s ease-in-out infinite;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #d7d7dc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow i {
    width: 7px;
    height: 7px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(241, 35, 45, 0.13), 0 0 18px var(--red);
    background: var(--red);
}

.section-kicker,
.panel-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--red-bright);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 48px;
    padding: 0 21px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.16) 48%, transparent 68%);
    transform: translateX(-120%);
    transition: transform 600ms ease;
}

.button:hover::before {
    transform: translateX(120%);
}

.button:hover {
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
}

.button b {
    position: relative;
    font-size: 17px;
    font-weight: 500;
}

.button-primary {
    color: #fff;
    border-color: rgba(255, 115, 121, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent 36%),
        linear-gradient(135deg, #f52b35, #b30611);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), 0 10px 30px rgba(191, 3, 15, 0.25);
}

.button-primary:hover {
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 14px 38px rgba(225, 11, 23, 0.36);
}

.button-ghost {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}

.button-ghost:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.065);
}

.button-full {
    width: 100%;
}

.button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.8);
    opacity: 0.45;
    transform: none;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    transition: color 180ms ease;
}

.text-link span {
    color: var(--red-bright);
    font-size: 17px;
}

.text-link:hover {
    color: #fff;
}

.back-link {
    display: inline-flex;
    margin-bottom: 36px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    transition: color 180ms ease, transform 180ms ease;
}

.back-link:hover {
    color: #fff;
    transform: translateX(-3px);
}

/* Login */

.login-page {
    background:
        linear-gradient(100deg, rgba(5, 5, 6, 0.97) 0 46%, rgba(10, 10, 12, 0.84) 100%),
        radial-gradient(circle at 90% 15%, rgba(199, 3, 16, 0.27), transparent 36rem),
        #070708;
}

.login-page::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    gap: clamp(50px, 8vw, 130px);
    align-items: center;
    width: min(1440px, 100%);
    min-height: 100svh;
    margin: 0 auto;
    padding: 50px clamp(34px, 6vw, 100px);
}

.login-story {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.brand-login {
    margin-bottom: clamp(70px, 13vh, 140px);
}

.brand-login .brand-word {
    font-size: 20px;
}

.login-story h1 {
    max-width: 720px;
    margin: 22px 0 25px;
    font-size: clamp(54px, 6vw, 94px);
    font-weight: 900;
    line-height: 0.93;
    letter-spacing: -0.072em;
}

.login-story h1 span,
.dashboard-hero h1 span,
.page-hero h1 span,
.admin-heading h1 span {
    color: transparent;
    background: linear-gradient(105deg, #fff 2%, #cfcfd4 33%, #ff4b54 70%, #9c0711);
    -webkit-background-clip: text;
    background-clip: text;
}

.login-lead {
    max-width: 610px;
    margin: 0;
    color: var(--text-soft);
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.75;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: min(610px, 100%);
    margin-top: clamp(48px, 7vh, 80px);
}

.feature-row > div {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr;
    padding: 18px 16px;
    border-top: 1px solid var(--line-strong);
}

.feature-index {
    grid-row: span 2;
    color: var(--red-bright);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.feature-row strong {
    font-size: 13px;
}

.feature-row small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.login-panel-wrap {
    width: 100%;
    min-width: 0;
    max-width: 510px;
    justify-self: end;
}

.login-panel {
    position: relative;
    padding: clamp(28px, 4vw, 48px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.075), transparent 27%),
        linear-gradient(145deg, rgba(19, 19, 23, 0.96), rgba(10, 10, 12, 0.96));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 45px 110px rgba(0, 0, 0, 0.5);
}

.login-panel::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    content: "";
    border-top: 1px solid rgba(255, 57, 67, 0.4);
    border-right: 1px solid rgba(255, 57, 67, 0.4);
    border-radius: 0 28px 0 100%;
    opacity: 0.5;
}

.panel-shine {
    position: absolute;
    top: -170px;
    right: -150px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: rgba(220, 8, 20, 0.12);
    filter: blur(60px);
}

.login-panel-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.login-panel-head h2 {
    margin: 0;
    font-size: clamp(24px, 2.3vw, 31px);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.secure-orbit {
    position: relative;
    display: grid;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
}

.secure-orbit::before {
    position: absolute;
    inset: 5px;
    content: "";
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: inherit;
    animation: orbit-spin 9s linear infinite;
}

.secure-orbit i {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: linear-gradient(135deg, #fff, var(--red));
    box-shadow: 0 0 16px rgba(241, 35, 45, 0.65);
    transform: rotate(45deg);
}

.command-box {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.35);
}

.command-prompt {
    margin-right: 2px;
    color: var(--red-bright);
    font-size: 22px;
    font-weight: 500;
}

.command-box code {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 15px;
    font-weight: 700;
}

.command-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.command-status i,
.live-pulse,
.footer-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 9px rgba(113, 231, 165, 0.7);
    animation: status-pulse 2s ease-in-out infinite;
}

.login-steps {
    display: grid;
    gap: 12px;
    margin: 25px 0 28px;
    padding: 0;
    list-style: none;
}

.login-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-steps li > span {
    display: grid;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.03);
    font-size: 9px;
    font-weight: 900;
}

.login-steps p {
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
}

.login-form > label {
    display: block;
    margin-bottom: 9px;
    color: #dadae0;
    font-size: 11px;
    font-weight: 800;
}

.code-input-wrap {
    position: relative;
}

.code-input-wrap input {
    width: 100%;
    height: 66px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 13px;
    outline: 0;
    color: #fff;
    background: rgba(4, 4, 5, 0.5);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.code-input-wrap input::placeholder {
    color: #484850;
}

.code-input-wrap input:focus {
    border-color: rgba(255, 65, 74, 0.72);
    background: rgba(8, 8, 10, 0.78);
    box-shadow: 0 0 0 4px rgba(241, 35, 45, 0.1), 0 18px 40px rgba(0, 0, 0, 0.24);
}

.code-input-wrap.has-error input {
    border-color: rgba(255, 84, 94, 0.7);
}

.input-corner {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    border-right: 2px solid var(--red);
    border-bottom: 2px solid var(--red);
    border-radius: 0 0 12px;
    pointer-events: none;
}

.input-help,
.form-error {
    margin: 8px 0 17px;
    color: var(--muted);
    font-size: 10px;
}

.form-error {
    margin-bottom: 4px;
    color: var(--danger);
    font-weight: 700;
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 21px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
}

.security-icon {
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    color: var(--red-bright);
    font-size: 9px;
}

.security-note p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.security-note strong {
    color: var(--text-soft);
}

.login-footer-note {
    margin: 18px 0 0;
    color: #57575f;
    font-size: 10px;
    text-align: center;
}

/* App shell and navigation */

.topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(7, 7, 8, 0.82);
    backdrop-filter: blur(22px) saturate(140%);
}

.topbar::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(241, 35, 45, 0.32), transparent);
}

.topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(var(--max-width), calc(100% - 48px));
    height: 76px;
    margin: 0 auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.main-nav a {
    position: relative;
    padding: 8px 13px;
    border-radius: 8px;
    color: #8e8e98;
    font-size: 11px;
    font-weight: 750;
    transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover {
    color: #dddde1;
}

.main-nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.main-nav a.is-active::after {
    position: absolute;
    right: 25%;
    bottom: -6px;
    left: 25%;
    height: 2px;
    content: "";
    border-radius: 4px;
    background: var(--red);
    box-shadow: 0 0 9px var(--red);
}

.account-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
    min-width: 175px;
    padding: 5px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.pixel-avatar {
    position: relative;
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 45%),
        linear-gradient(145deg, #cc111c, #570007);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    font-weight: 900;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.pixel-avatar::after {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 4px;
    height: 4px;
    content: "";
    background: rgba(255, 255, 255, 0.65);
}

.pixel-avatar.small {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    font-size: 11px;
}

.account-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    line-height: 1.25;
}

.account-copy strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
}

.account-copy span {
    margin-top: 3px;
    color: var(--red-bright);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logout-form {
    margin: 0;
}

.logout-link {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 7px;
    cursor: pointer;
    color: #7f7f87;
    background: transparent;
    font-size: 14px;
    transition: color 180ms ease, background 180ms ease;
}

.logout-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.nav-toggle {
    display: none;
}

.page-shell {
    width: min(var(--max-width), calc(100% - 48px));
    min-height: calc(100vh - 170px);
    margin: 0 auto;
    padding: 54px 0 95px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(5, 5, 6, 0.72);
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 35px;
    width: min(var(--max-width), calc(100% - 48px));
    min-height: 100px;
    margin: 0 auto;
}

.brand-small .brand-word {
    font-size: 14px;
}

.footer-inner p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: #777780;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.toast-stack {
    position: fixed;
    z-index: 100;
    top: 94px;
    right: 24px;
    display: grid;
    gap: 10px;
    width: min(390px, calc(100% - 32px));
}

.login-page .toast-stack {
    top: 24px;
}

.toast {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 11px;
    align-items: center;
    padding: 14px 14px 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(18, 18, 22, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    font-size: 11px;
    font-weight: 650;
    animation: toast-in 350ms ease both;
}

.toast-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.toast-success .toast-dot {
    background: var(--success);
    box-shadow: 0 0 10px rgba(113, 231, 165, 0.65);
}

.toast-error .toast-dot {
    background: var(--danger);
    box-shadow: 0 0 10px rgba(255, 95, 104, 0.65);
}

.toast button {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    cursor: pointer;
    color: var(--muted);
    background: transparent;
    font-size: 18px;
}

.toast.is-leaving {
    animation: toast-out 250ms ease both;
}

/* Dashboard */

.dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 55px;
    align-items: center;
    min-height: 475px;
    padding: clamp(38px, 5vw, 70px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 82% 26%, rgba(224, 17, 28, 0.16), transparent 22rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 32%),
        linear-gradient(140deg, #131317, #0a0a0c);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), var(--shadow);
}

.dashboard-hero::after {
    position: absolute;
    top: -1px;
    right: 12%;
    width: 32%;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, transparent, #ff6670, transparent);
    box-shadow: 0 0 16px rgba(241, 35, 45, 0.8);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.23;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.dashboard-hero h1 {
    margin: 21px 0 23px;
    font-size: clamp(46px, 5vw, 72px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.062em;
}

.dashboard-hero .hero-copy > p {
    max-width: 650px;
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 31px;
}

.member-pass {
    position: relative;
    z-index: 2;
    min-height: 350px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.11), transparent 32%),
        linear-gradient(145deg, rgba(27, 27, 33, 0.94), rgba(10, 10, 12, 0.96));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.09), 0 35px 70px rgba(0, 0, 0, 0.4);
    transform: rotate(1.25deg);
    transition: transform 300ms ease;
}

.member-pass:hover {
    transform: rotate(0deg) translateY(-5px);
}

.member-pass::after {
    position: absolute;
    right: -40px;
    bottom: -72px;
    content: "+";
    color: rgba(255, 255, 255, 0.025);
    font-size: 260px;
    font-weight: 900;
    line-height: 1;
}

.pass-glow {
    position: absolute;
    top: -90px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(232, 20, 31, 0.22);
    filter: blur(45px);
}

.pass-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pass-head > span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.pass-avatar {
    position: relative;
    display: grid;
    width: 75px;
    height: 75px;
    margin-top: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 40%),
        linear-gradient(145deg, #d41a25, #5c0008);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 15px 30px rgba(0, 0, 0, 0.33);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 26px;
    font-weight: 900;
}

.member-pass > strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 17px;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.rank-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 7px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 78, 87, 0.25);
    border-radius: 6px;
    color: #ff9298;
    background: rgba(220, 15, 26, 0.1);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rank-badge.small {
    margin-top: 0;
    white-space: nowrap;
}

.pass-meta {
    position: absolute;
    z-index: 1;
    right: 25px;
    bottom: 25px;
    left: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.pass-meta span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.pass-meta b {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.pass-code {
    position: absolute;
    right: 23px;
    bottom: 55px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 29px;
}

.pass-code i {
    width: 2px;
    background: rgba(255, 255, 255, 0.25);
}

.pass-code i:nth-child(1),
.pass-code i:nth-child(5) { height: 15px; }
.pass-code i:nth-child(2),
.pass-code i:nth-child(7) { height: 25px; }
.pass-code i:nth-child(3),
.pass-code i:nth-child(8) { height: 20px; }
.pass-code i:nth-child(4),
.pass-code i:nth-child(6) { height: 29px; }

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 24px 0 90px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
}

.metric-strip > div {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 0 24px;
}

.metric-strip > div + div {
    border-left: 1px solid var(--line);
}

.metric-icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(255, 81, 90, 0.22);
    border-radius: 8px;
    color: var(--red-bright);
    background: rgba(241, 35, 45, 0.07);
    font-size: 9px;
    font-weight: 900;
}

.metric-strip p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.metric-strip strong {
    margin-right: 4px;
    color: var(--text);
    font-size: 18px;
    letter-spacing: -0.04em;
}

.content-section + .content-section {
    margin-top: 90px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 26px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 39px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.news-card {
    position: relative;
    min-height: 310px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 40%),
        rgba(15, 15, 18, 0.8);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.news-card::after {
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 140px;
    height: 140px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
}

.news-card:hover {
    border-color: rgba(255, 255, 255, 0.17);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 40%),
        rgba(19, 19, 23, 0.92);
    transform: translateY(-5px);
}

.news-card.is-featured {
    border-color: rgba(243, 44, 54, 0.22);
    background:
        radial-gradient(circle at 100% 100%, rgba(204, 5, 16, 0.11), transparent 14rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 40%),
        rgba(16, 16, 19, 0.88);
}

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

.card-topline time {
    margin-left: auto;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.category-badge,
.pinned-label,
.voted-badge {
    display: inline-flex;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    color: #bdbdc5;
    background: rgba(255, 255, 255, 0.035);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pinned-label {
    color: #ff9499;
    border-color: rgba(241, 35, 45, 0.22);
    background: rgba(241, 35, 45, 0.08);
}

.voted-badge {
    color: var(--success);
    border-color: rgba(113, 231, 165, 0.18);
    background: rgba(113, 231, 165, 0.06);
}

.news-number {
    display: block;
    margin-top: 37px;
    color: rgba(255, 255, 255, 0.12);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
}

.news-card h3 {
    position: relative;
    z-index: 1;
    margin: 13px 0 11px;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.news-card > p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.news-card > a {
    position: absolute;
    z-index: 2;
    right: 25px;
    bottom: 22px;
    left: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: #c7c7cd;
    font-size: 10px;
    font-weight: 800;
}

.news-card > a span {
    color: var(--red-bright);
    font-size: 15px;
}

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

.poll-preview-card {
    display: flex;
    min-height: 235px;
    flex-direction: column;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 100% 0, rgba(231, 19, 30, 0.09), transparent 13rem),
        rgba(15, 15, 18, 0.82);
    transition: transform 220ms ease, border-color 220ms ease;
}

.poll-preview-card:hover {
    border-color: rgba(241, 35, 45, 0.26);
    transform: translateY(-4px);
}

.poll-preview-head,
.poll-preview-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.poll-preview-head > span:last-child,
.poll-preview-foot span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
}

.poll-preview-card h3 {
    margin: 30px 0 8px;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.poll-preview-card > p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.poll-preview-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.poll-preview-foot b {
    color: var(--red-bright);
    font-size: 18px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #a6a6ae;
    background: rgba(255, 255, 255, 0.035);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.status-badge i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status-success {
    color: var(--success);
    border-color: rgba(113, 231, 165, 0.17);
    background: rgba(113, 231, 165, 0.055);
}

.status-success i {
    box-shadow: 0 0 8px rgba(113, 231, 165, 0.65);
}

.status-muted {
    color: #85858d;
}

.empty-state {
    display: grid;
    min-height: 250px;
    padding: 35px;
    place-items: center;
    align-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.018);
    text-align: center;
}

.empty-state.large {
    min-height: 400px;
}

.empty-state.standalone {
    min-height: 60vh;
}

.empty-symbol {
    display: grid;
    min-width: 50px;
    height: 50px;
    margin-bottom: 17px;
    padding: 0 10px;
    place-items: center;
    border: 1px solid rgba(241, 35, 45, 0.2);
    border-radius: 13px;
    color: var(--red-bright);
    background: rgba(241, 35, 45, 0.07);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    font-weight: 900;
}

.empty-state h1,
.empty-state h2,
.empty-state h3 {
    margin: 0 0 6px;
    letter-spacing: -0.04em;
}

.empty-state p {
    max-width: 450px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.empty-state .button {
    margin-top: 23px;
}

/* News and shared page hero */

.page-hero {
    position: relative;
    display: flex;
    min-height: 315px;
    align-items: center;
    padding: 48px 55px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(130deg, rgba(255, 255, 255, 0.055), transparent 34%),
        radial-gradient(circle at 90% 50%, rgba(214, 11, 22, 0.13), transparent 22rem),
        #101013;
}

.page-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent, #000);
}

.page-hero > div:first-child {
    position: relative;
    z-index: 2;
    max-width: 690px;
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(46px, 6vw, 70px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.page-hero p {
    max-width: 660px;
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

.hero-watermark {
    position: absolute;
    right: -20px;
    bottom: -55px;
    color: rgba(255, 255, 255, 0.028);
    font-size: 160px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.1em;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 24px 0 38px;
}

.filter-row a {
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    font-size: 10px;
    font-weight: 800;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.filter-row a:hover {
    color: #fff;
    border-color: var(--line-strong);
}

.filter-row a.is-active {
    color: #fff;
    border-color: rgba(241, 35, 45, 0.28);
    background: rgba(241, 35, 45, 0.09);
}

.news-list {
    display: grid;
    gap: 11px;
}

.news-list-card {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr) 48px;
    gap: 22px;
    align-items: center;
    min-height: 160px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 35%),
        rgba(14, 14, 17, 0.82);
    transition: border-color 200ms ease, transform 200ms ease;
}

.news-list-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateX(3px);
}

.news-list-card.is-pinned {
    border-color: rgba(241, 35, 45, 0.19);
}

.news-list-index {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-right: 1px solid var(--line);
    color: #4f4f57;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 900;
}

.news-list-body h2 {
    margin: 12px 0 7px;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.news-list-body > p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.circle-link {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--red-bright);
    background: rgba(255, 255, 255, 0.02);
    font-size: 17px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.circle-link:hover {
    border-color: rgba(241, 35, 45, 0.28);
    background: rgba(241, 35, 45, 0.08);
    transform: rotate(10deg);
}

.article-layout,
.poll-detail {
    width: min(920px, 100%);
    margin: 0 auto;
}

.article-header {
    padding: 0 20px;
}

.article-meta {
    display: flex;
    gap: 8px;
}

.article-header h1,
.poll-detail-header h1 {
    margin: 24px 0 17px;
    font-size: clamp(42px, 6vw, 70px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.article-header > p,
.poll-detail-header > p {
    max-width: 750px;
    margin: 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.75;
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 30px;
}

.article-byline div {
    display: flex;
    flex-direction: column;
}

.article-byline strong {
    font-size: 10px;
}

.article-byline span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.article-rule {
    position: relative;
    height: 1px;
    margin: 50px 0;
    background: var(--line);
}

.article-rule span {
    position: absolute;
    left: 0;
    width: 130px;
    height: 1px;
    background: linear-gradient(90deg, var(--red), transparent);
}

.article-content {
    padding: 0 20px;
    color: #c9c9cf;
    font-size: 16px;
    line-height: 2;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 60px;
    padding: 27px;
    border: 1px solid rgba(241, 35, 45, 0.15);
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 0 100%, rgba(241, 35, 45, 0.1), transparent 16rem),
        rgba(255, 255, 255, 0.025);
}

.article-footer strong {
    display: block;
    font-size: 13px;
}

/* Polls */

.polls-hero {
    justify-content: space-between;
}

.hero-vote-orbit {
    position: relative;
    z-index: 2;
    display: grid;
    flex: 0 0 180px;
    width: 180px;
    height: 180px;
    margin-right: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero-vote-orbit::before,
.hero-vote-orbit::after {
    position: absolute;
    content: "";
    border: 1px dashed rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}

.hero-vote-orbit::before {
    inset: 20px;
    animation: orbit-spin 16s linear infinite;
}

.hero-vote-orbit::after {
    inset: 48px;
    border-style: solid;
    border-color: rgba(241, 35, 45, 0.18);
}

.hero-vote-orbit > span {
    color: transparent;
    background: linear-gradient(135deg, #fff, var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 70px;
    font-weight: 800;
    filter: drop-shadow(0 0 20px rgba(241, 35, 45, 0.38));
}

.hero-vote-orbit i {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 12px var(--red);
}

.hero-vote-orbit i:nth-of-type(1) { top: 22px; left: 45px; }
.hero-vote-orbit i:nth-of-type(2) { right: 4px; bottom: 60px; }
.hero-vote-orbit i:nth-of-type(3) { bottom: 12px; left: 47px; }

.poll-list {
    display: grid;
    gap: 13px;
}

.poll-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 180px auto;
    gap: 28px;
    align-items: center;
    min-height: 175px;
    padding: 25px 27px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.035), transparent 33%),
        rgba(14, 14, 17, 0.84);
    transition: border-color 200ms ease, transform 200ms ease;
}

.poll-card:hover {
    border-color: rgba(255, 255, 255, 0.17);
    transform: translateY(-3px);
}

.poll-card-state {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
}

.poll-card-copy h2 {
    margin: 0 0 7px;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.poll-card-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.poll-card-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.poll-card-meta div {
    display: flex;
    flex-direction: column;
}

.poll-card-meta strong {
    font-size: 18px;
    letter-spacing: -0.04em;
}

.poll-card-meta span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.poll-detail-header {
    padding: 0 15px;
}

.poll-detail-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.poll-detail-state > span:not(.status-badge) {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.vote-form {
    margin-top: 45px;
    padding: 28px;
    border: 1px solid rgba(241, 35, 45, 0.18);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 100% 0, rgba(241, 35, 45, 0.09), transparent 17rem),
        rgba(15, 15, 18, 0.88);
}

.vote-form fieldset,
.installer-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.vote-form legend,
.installer-form legend {
    margin-bottom: 16px;
    color: #d8d8dd;
    font-size: 11px;
    font-weight: 850;
}

.vote-options {
    display: grid;
    gap: 9px;
}

.vote-option {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 13px;
    align-items: center;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.vote-option:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.045);
    transform: translateX(3px);
}

.vote-option.is-selected {
    border-color: rgba(241, 35, 45, 0.42);
    background: rgba(241, 35, 45, 0.075);
}

.vote-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-radio {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.21);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
}

.custom-radio i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    transform: scale(0.4);
}

.vote-option input:checked + .custom-radio {
    border-color: var(--red-bright);
}

.vote-option input:checked + .custom-radio i {
    background: var(--red-bright);
    box-shadow: 0 0 10px rgba(241, 35, 45, 0.8);
    transform: scale(1);
}

.vote-option-label {
    font-size: 12px;
    font-weight: 750;
}

.vote-option-count {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.vote-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
}

.vote-submit-row p {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--muted);
    font-size: 9px;
}

.vote-submit-row p span {
    color: var(--red-bright);
    font-size: 8px;
}

.poll-closed-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 20px 23px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
}

.poll-closed-notice > span {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 50%;
    color: var(--success);
    background: rgba(113, 231, 165, 0.08);
}

.poll-closed-notice strong {
    display: block;
    font-size: 11px;
}

.poll-closed-notice p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.results-section {
    margin-top: 70px;
}

.results-total {
    color: var(--muted);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
}

.result-list {
    display: grid;
    gap: 11px;
}

.result-card {
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.022);
}

.result-card.is-your-vote {
    border-color: rgba(241, 35, 45, 0.25);
    background:
        linear-gradient(90deg, rgba(241, 35, 45, 0.055), transparent 50%),
        rgba(255, 255, 255, 0.022);
}

.result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.result-head > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-head strong {
    font-size: 13px;
}

.result-head > div span {
    padding: 3px 6px;
    border: 1px solid rgba(241, 35, 45, 0.2);
    border-radius: 5px;
    color: #ff8a91;
    background: rgba(241, 35, 45, 0.07);
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
}

.result-head > p {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
}

.result-head p b {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 15px;
}

.result-head p span {
    color: var(--muted);
    font-size: 8px;
}

.result-track {
    height: 6px;
    margin: 15px 0 17px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.result-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #970710, var(--red-bright), #ff8b91);
    box-shadow: 0 0 12px rgba(241, 35, 45, 0.4);
    transition: width 900ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.voter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.voter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 9px 4px 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #b7b7bf;
    background: rgba(255, 255, 255, 0.03);
    font-size: 8px;
    font-weight: 800;
}

.voter-chip i {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(145deg, #c71924, #590007);
    font-size: 7px;
    font-style: normal;
}

.no-voters {
    color: #5e5e66;
    font-size: 8px;
}

/* Admin */

.admin-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 35px;
}

.admin-heading.compact {
    align-items: center;
}

.admin-heading h1 {
    margin: 16px 0 9px;
    font-size: clamp(45px, 6vw, 68px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.065em;
}

.admin-heading.compact h1 {
    margin-top: 8px;
    font-size: clamp(38px, 5vw, 55px);
}

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

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

.admin-tabs {
    display: flex;
    gap: 7px;
    margin-bottom: 28px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
}

.admin-tabs a {
    min-width: max-content;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    transition: color 180ms ease, background 180ms ease;
}

.admin-tabs a.is-active {
    color: #fff;
    background: rgba(241, 35, 45, 0.1);
    box-shadow: inset 0 0 0 1px rgba(241, 35, 45, 0.14);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;
    margin-bottom: 24px;
}

.admin-stat-grid article {
    position: relative;
    min-height: 155px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 40%),
        rgba(15, 15, 18, 0.8);
}

.admin-stat-grid article::after {
    position: absolute;
    right: -30px;
    bottom: -55px;
    width: 110px;
    height: 110px;
    content: "";
    border: 1px solid rgba(241, 35, 45, 0.08);
    border-radius: 50%;
}

.admin-stat-grid article > span {
    color: #595961;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
}

.admin-stat-grid strong {
    display: block;
    margin-top: 20px;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.admin-stat-grid p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
}

.admin-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-panel,
.admin-table-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(14, 14, 17, 0.78);
}

.admin-panel {
    padding: 24px;
}

.panel-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.panel-title-row h2 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -0.04em;
}

.panel-title-row > a {
    color: var(--red-bright);
    font-size: 9px;
    font-weight: 800;
}

.member-mini-list,
.activity-list {
    display: grid;
}

.member-mini-list > div,
.activity-list > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 55px;
    border-top: 1px solid var(--line);
}

.member-mini-list p,
.activity-list p {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    margin: 0;
    line-height: 1.4;
}

.member-mini-list strong,
.activity-list strong {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
}

.member-mini-list p span,
.activity-list p span {
    color: var(--muted);
    font-size: 8px;
}

.member-mini-list time,
.activity-list time {
    color: #686870;
    font-size: 8px;
}

.activity-list > div > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(241, 35, 45, 0.8);
    box-shadow: 0 0 8px rgba(241, 35, 45, 0.45);
}

.panel-empty {
    color: var(--muted);
    font-size: 10px;
}

.admin-filterbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.admin-filterbar .filter-row {
    margin: 0;
}

.admin-filterbar > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
}

.admin-table-panel {
    overflow: hidden;
}

.admin-table {
    width: 100%;
    overflow-x: auto;
}

.admin-table-head,
.admin-table-row {
    display: grid;
    gap: 20px;
    align-items: center;
    min-width: 900px;
    padding: 0 22px;
}

.news-columns {
    grid-template-columns: minmax(310px, 1fr) 120px 120px 145px 110px;
}

.poll-columns {
    grid-template-columns: minmax(310px, 1fr) 105px 80px 145px 150px;
}

.member-columns {
    grid-template-columns: minmax(310px, 1fr) 120px 110px 120px 110px;
}

.admin-table-head {
    min-height: 48px;
    border-bottom: 1px solid var(--line);
    color: #62626a;
    background: rgba(255, 255, 255, 0.018);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.admin-table-row {
    min-height: 82px;
    border-bottom: 1px solid var(--line);
    color: #aaaab2;
    font-size: 9px;
}

.admin-table-row:last-child {
    border-bottom: 0;
}

.admin-table-row:hover {
    background: rgba(255, 255, 255, 0.018);
}

.table-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.table-symbol {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(241, 35, 45, 0.16);
    border-radius: 9px;
    color: var(--red-bright);
    background: rgba(241, 35, 45, 0.055);
    font-size: 9px;
    font-weight: 900;
}

.table-title p {
    display: flex;
    min-width: 0;
    flex-direction: column;
    margin: 0;
}

.table-title strong {
    overflow: hidden;
    color: #e8e8ec;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-title p span {
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.table-actions a,
.table-actions button {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    cursor: pointer;
    color: #898991;
    background: rgba(255, 255, 255, 0.025);
    font-size: 12px;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.table-actions a:hover,
.table-actions button:hover {
    color: #fff;
    border-color: rgba(241, 35, 45, 0.24);
    background: rgba(241, 35, 45, 0.07);
}

.table-actions form {
    margin: 0;
}

.member-search {
    position: relative;
    width: min(320px, 100%);
}

.member-search input {
    width: 100%;
    height: 46px;
    padding: 0 46px 0 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    background: rgba(255, 255, 255, 0.028);
    font-size: 10px;
}

.member-search input:focus {
    border-color: rgba(241, 35, 45, 0.4);
}

.member-search button {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    background: rgba(241, 35, 45, 0.14);
}

/* Editors and fields */

.editor-layout {
    width: min(920px, 100%);
    margin: 0 auto;
}

.editor-heading {
    margin-bottom: 30px;
}

.editor-heading .back-link {
    display: flex;
    margin-bottom: 30px;
}

.editor-heading h1 {
    margin: 7px 0 8px;
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.editor-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.editor-form,
.installer-form {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 15, 18, 0.84);
}

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

.field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.field-wide {
    grid-column: 1 / -1;
}

.field > span {
    color: #c8c8ce;
    font-size: 10px;
    font-weight: 800;
}

.field > span small {
    margin-left: 6px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 500;
}

.field input,
.field textarea,
.field select,
.member-search input {
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    outline: 0;
    color: #e8e8eb;
    background: rgba(4, 4, 5, 0.35);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input,
.field select {
    height: 48px;
    padding: 0 14px;
}

.field textarea {
    min-height: 105px;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.65;
}

.field textarea[readonly] {
    color: #85858d;
    background: rgba(255, 255, 255, 0.015);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.member-search input:focus {
    border-color: rgba(241, 35, 45, 0.5);
    background: rgba(8, 8, 10, 0.7);
    box-shadow: 0 0 0 3px rgba(241, 35, 45, 0.07);
}

.field-note {
    color: var(--muted);
    font-size: 8px;
}

.check-field {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.check-field > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check-field > span {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 20px;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.045);
    transition: border-color 180ms ease, background 180ms ease;
}

.check-field > span i {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #71717a;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.check-field input:checked + span {
    border-color: rgba(241, 35, 45, 0.35);
    background: rgba(241, 35, 45, 0.12);
}

.check-field input:checked + span i {
    background: var(--red-bright);
    box-shadow: 0 0 9px rgba(241, 35, 45, 0.6);
    transform: translateX(14px);
}

.check-field p {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.check-field strong {
    font-size: 10px;
}

.check-field small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
}

.editor-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.form-alert {
    margin-bottom: 18px;
    padding: 15px 17px;
    border: 1px solid rgba(255, 95, 104, 0.25);
    border-radius: 11px;
    color: #e6a8ac;
    background: rgba(255, 58, 68, 0.055);
    font-size: 10px;
}

.form-alert strong {
    color: #ffd5d7;
}

.form-alert p {
    margin: 5px 0 0;
}

.form-alert ul {
    margin: 7px 0 0;
    padding-left: 17px;
}

/* Installer */

.installer-page {
    background:
        radial-gradient(circle at 82% 0, rgba(192, 5, 17, 0.19), transparent 34rem),
        #08080a;
}

.installer-shell {
    width: min(780px, calc(100% - 32px));
    margin: 0 auto;
    padding: 45px 0 80px;
}

.installer-shell.centered {
    display: grid;
    min-height: 100svh;
    place-content: center;
}

.installer-brand {
    width: max-content;
    margin: 0 auto 26px;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.installer-card {
    position: relative;
    padding: clamp(25px, 5vw, 42px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 30%),
        rgba(15, 15, 18, 0.94);
    box-shadow: var(--shadow);
}

.installer-card::after {
    position: absolute;
    top: -90px;
    right: -90px;
    width: 210px;
    height: 210px;
    content: "";
    border-radius: 50%;
    background: rgba(241, 35, 45, 0.08);
    filter: blur(30px);
    pointer-events: none;
}

.installer-intro {
    position: relative;
    z-index: 1;
}

.installer-card h1 {
    margin: 6px 0 10px;
    font-size: clamp(34px, 6vw, 48px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.installer-intro > p:last-child,
.success-card > p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.requirement-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 24px 0;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.2);
}

.requirement-row span {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 8px;
    font-weight: 850;
}

.requirement-row .is-good {
    color: var(--success);
    border-color: rgba(113, 231, 165, 0.16);
    background: rgba(113, 231, 165, 0.05);
}

.requirement-row .is-bad {
    color: var(--danger);
    border-color: rgba(255, 95, 104, 0.2);
    background: rgba(255, 95, 104, 0.055);
}

.installer-form {
    padding: 0;
    border: 0;
    background: none;
}

.installer-form fieldset + fieldset {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.installer-form fieldset > .field + .field,
.installer-form fieldset > .form-grid {
    margin-top: 0;
}

.secret-field {
    position: relative;
}

.secret-field input {
    width: 100%;
    padding-right: 86px;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
}

.secret-field button,
.install-result-list button {
    border: 1px solid var(--line);
    border-radius: 7px;
    cursor: pointer;
    color: #b8b8bf;
    background: rgba(255, 255, 255, 0.05);
    font-size: 8px;
    font-weight: 800;
}

.secret-field button {
    position: absolute;
    top: 7px;
    right: 7px;
    height: 34px;
    padding: 0 10px;
}

.install-checks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 27px 0;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.success-card {
    text-align: center;
}

.install-success-icon {
    display: grid;
    width: 60px;
    height: 60px;
    margin: 0 auto 22px;
    place-items: center;
    border: 1px solid rgba(113, 231, 165, 0.25);
    border-radius: 50%;
    color: var(--success);
    background: rgba(113, 231, 165, 0.07);
    box-shadow: 0 0 35px rgba(113, 231, 165, 0.09);
    font-size: 22px;
}

.success-card > p {
    max-width: 570px;
    margin: 0 auto;
}

.install-result-list {
    display: grid;
    gap: 10px;
    margin: 28px 0;
    text-align: left;
}

.install-result-list > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.24);
}

.install-result-list span {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.install-result-list code {
    overflow: hidden;
    color: #dddde2;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.install-result-list button {
    padding: 5px 9px;
}

.success-card .security-note {
    margin-bottom: 24px;
    text-align: left;
}

.success-card .field {
    margin: 18px 0;
    text-align: left;
}

/* Member levels and events */

.member-pass {
    min-height: 405px;
}

.member-pass .pass-avatar {
    margin-top: 27px;
}

.pass-level {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
}

.pass-level span {
    color: #bdbdc5;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.pass-level strong {
    color: #fff;
    font-size: 9px;
}

.pass-level-track,
.level-progress-track {
    position: relative;
    overflow: hidden;
    height: 7px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.34);
}

.pass-level-track {
    position: relative;
    z-index: 1;
    margin-top: 8px;
}

.pass-level-track > span,
.level-progress-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #9f0711, var(--red-bright), #fff);
    box-shadow: 0 0 14px rgba(241, 35, 45, 0.55);
    transition: width 850ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.metric-strip {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 24px;
}

.dashboard-progress-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 14px;
    margin-bottom: 90px;
}

.dashboard-level-card,
.dashboard-event-card {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 36%),
        rgba(14, 14, 17, 0.84);
}

.dashboard-level-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 40px;
    gap: 23px;
    align-items: center;
    padding: 24px;
}

.dashboard-level-card::after,
.level-panel::after {
    position: absolute;
    right: -70px;
    bottom: -110px;
    width: 190px;
    height: 190px;
    content: "";
    border: 1px solid rgba(241, 35, 45, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.dashboard-level-number {
    display: grid;
    width: 100px;
    height: 100px;
    place-content: center;
    border: 1px solid rgba(241, 35, 45, 0.27);
    border-radius: 50%;
    text-align: center;
    background:
        radial-gradient(circle, rgba(241, 35, 45, 0.16), transparent 64%),
        rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 25px rgba(241, 35, 45, 0.08);
}

.dashboard-level-number span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.dashboard-level-number strong {
    margin-top: 3px;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.08em;
}

.dashboard-level-card h2,
.dashboard-event-card h2 {
    margin: 2px 0 5px;
    font-size: 20px;
    letter-spacing: -0.04em;
}

.dashboard-level-card p,
.dashboard-event-card p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
}

.dashboard-level-card .level-progress-track {
    height: 6px;
    margin-top: 14px;
}

.dashboard-level-card small {
    display: block;
    margin-top: 6px;
    color: #696971;
    font-size: 7px;
}

.dashboard-level-card > a {
    position: relative;
    z-index: 1;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(241, 35, 45, 0.2);
    border-radius: 50%;
    color: #fff;
    background: rgba(241, 35, 45, 0.08);
}

.dashboard-event-card {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
}

.dashboard-event-head {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-event-card .text-link {
    margin-top: 18px;
}

.xp-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 83, 93, 0.25);
    border-radius: 7px;
    color: #ff9ba1;
    background: rgba(241, 35, 45, 0.09);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.level-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 55px;
    align-items: center;
    min-height: 455px;
    padding: 55px 65px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 86% 50%, rgba(241, 35, 45, 0.17), transparent 19rem),
        linear-gradient(142deg, rgba(255, 255, 255, 0.055), transparent 34%),
        rgba(14, 14, 17, 0.88);
}

.level-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.26;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.level-hero-copy {
    position: relative;
    z-index: 1;
}

.level-title {
    display: inline-block;
    margin-top: 25px;
    color: #ff8990;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.level-hero h1 {
    margin: 7px 0 14px;
    font-size: clamp(58px, 7vw, 88px);
    line-height: 0.92;
    letter-spacing: -0.075em;
}

.level-hero h1 span {
    color: transparent;
    background: linear-gradient(120deg, #fff 2%, #ff9ca2 38%, var(--red) 78%);
    -webkit-background-clip: text;
    background-clip: text;
}

.level-hero-copy > p {
    max-width: 620px;
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
}

.level-progress-card {
    max-width: 650px;
    margin-top: 28px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.25);
}

.level-progress-head,
.level-progress-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.level-progress-head {
    margin-bottom: 11px;
    color: var(--muted);
    font-size: 8px;
}

.level-progress-head strong {
    color: #fff;
    font-size: 11px;
}

.level-progress-track {
    height: 9px;
}

.level-progress-track.compact {
    height: 6px;
}

.level-progress-foot {
    margin-top: 7px;
    color: #5f5f67;
    font-size: 7px;
    font-weight: 800;
}

.level-emblem {
    position: relative;
    z-index: 1;
    display: grid;
    width: 280px;
    height: 280px;
    justify-self: center;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    text-align: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.11), transparent 28%),
        radial-gradient(circle, rgba(241, 35, 45, 0.22), rgba(36, 2, 5, 0.46) 55%, rgba(4, 4, 5, 0.6) 72%);
    box-shadow:
        inset 0 0 60px rgba(241, 35, 45, 0.12),
        0 25px 60px rgba(0, 0, 0, 0.38);
}

.level-emblem-ring {
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    animation: orbit-spin 28s linear infinite;
}

.level-emblem > span {
    color: #92929a;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.25em;
}

.level-emblem > strong {
    font-size: 94px;
    line-height: 0.95;
    letter-spacing: -0.1em;
    text-shadow: 0 0 28px rgba(241, 35, 45, 0.35);
}

.level-emblem > small {
    margin-top: 9px;
    color: #ff9da3;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.level-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;
    margin: 18px 0 65px;
}

.level-stat-grid article {
    position: relative;
    min-height: 122px;
    padding: 21px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
}

.level-stat-grid article > span {
    position: absolute;
    top: 16px;
    right: 17px;
    color: rgba(241, 35, 45, 0.4);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-weight: 900;
}

.level-stat-grid strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.level-stat-grid p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
}

.level-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
    gap: 14px;
    align-items: start;
}

.level-main-column,
.level-side-column {
    display: grid;
    gap: 14px;
}

.level-panel,
.attendance-panel {
    position: relative;
    overflow: hidden;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(14, 14, 17, 0.8);
}

.xp-history {
    display: grid;
}

.xp-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    border-top: 1px solid var(--line);
}

.xp-type-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(241, 35, 45, 0.2);
    border-radius: 9px;
    color: #ff8087;
    background: rgba(241, 35, 45, 0.07);
    font-size: 9px;
    font-weight: 900;
}

.xp-type-icon.is-event {
    color: #e5e5e8;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.045);
}

.xp-history-item p,
.leaderboard-list p,
.milestone-list p,
.event-participant-grid p,
.event-action-status p,
.attendance-list p,
.attendance-note p {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    margin: 0;
}

.xp-history-item p strong {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xp-history-item p span {
    color: var(--muted);
    font-size: 8px;
}

.xp-history-item > b {
    color: #ff9ca2;
    font-size: 9px;
    white-space: nowrap;
}

.xp-rule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}

.xp-rule-grid > div {
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.022);
}

.xp-rule-value {
    color: #ff8f95;
    font-size: 11px;
    font-weight: 900;
}

.xp-rule-grid h3 {
    margin: 8px 0 5px;
    font-size: 17px;
}

.xp-rule-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
}

.xp-rule-grid a {
    display: inline-block;
    margin-top: 14px;
    color: var(--red-bright);
    font-size: 8px;
    font-weight: 850;
}

.leaderboard-list,
.milestone-list {
    display: grid;
}

.leaderboard-list > div {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 59px;
    padding: 0 7px;
    border-top: 1px solid var(--line);
    border-radius: 9px;
}

.leaderboard-list > div.is-you {
    margin: 3px 0;
    border: 1px solid rgba(241, 35, 45, 0.18);
    background: rgba(241, 35, 45, 0.055);
}

.leaderboard-position {
    width: 18px;
    color: #777780;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    text-align: center;
}

.leaderboard-list p strong {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
}

.leaderboard-list p span {
    color: var(--muted);
    font-size: 7px;
}

.leaderboard-list > div > b {
    color: #d6d6db;
    font-size: 8px;
    white-space: nowrap;
}

.milestone-panel h2 {
    margin: 1px 0 17px;
    font-size: 19px;
}

.milestone-list > div {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 52px;
    border-top: 1px solid var(--line);
    opacity: 0.45;
}

.milestone-list > div.is-unlocked {
    opacity: 1;
}

.milestone-list > div > span {
    display: grid;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 8px;
    font-weight: 900;
}

.milestone-list .is-unlocked > span {
    color: #ff9aa0;
    border-color: rgba(241, 35, 45, 0.2);
    background: rgba(241, 35, 45, 0.06);
}

.milestone-list p strong {
    font-size: 9px;
}

.milestone-list p small {
    color: var(--muted);
    font-size: 7px;
}

.milestone-list > div > b {
    color: var(--red-bright);
    font-size: 10px;
}

.events-hero {
    background:
        radial-gradient(circle at 84% 50%, rgba(241, 35, 45, 0.14), transparent 17rem),
        linear-gradient(140deg, rgba(255, 255, 255, 0.04), transparent 36%),
        rgba(14, 14, 17, 0.86);
}

.event-hero-mark {
    position: relative;
    display: grid;
    width: 180px;
    height: 180px;
    margin-right: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 28px;
    transform: rotate(8deg);
}

.event-hero-mark::before {
    position: absolute;
    inset: 18px;
    content: "";
    border: 1px dashed rgba(241, 35, 45, 0.25);
    border-radius: 20px;
}

.event-hero-mark span {
    color: transparent;
    background: linear-gradient(135deg, #fff, var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 72px;
    font-weight: 900;
}

.event-hero-mark i {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
}

.event-hero-mark i:nth-of-type(1) { top: 15px; right: 40px; }
.event-hero-mark i:nth-of-type(2) { right: 7px; bottom: 42px; }
.event-hero-mark i:nth-of-type(3) { bottom: 9px; left: 42px; }

.event-list {
    display: grid;
    gap: 13px;
}

.event-card {
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr) auto;
    gap: 25px;
    align-items: center;
    min-height: 190px;
    padding: 25px 27px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(142deg, rgba(255, 255, 255, 0.04), transparent 35%),
        rgba(14, 14, 17, 0.84);
    transition: border-color 200ms ease, transform 200ms ease;
}

.event-card:hover {
    border-color: rgba(255, 255, 255, 0.17);
    transform: translateY(-3px);
}

.event-card.is-registered {
    border-color: rgba(241, 35, 45, 0.2);
}

.event-date-block {
    display: grid;
    width: 88px;
    height: 110px;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 15px;
    text-align: center;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 38%),
        rgba(255, 255, 255, 0.025);
}

.event-date-block span {
    color: #ff8088;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.event-date-block strong {
    font-size: 37px;
    line-height: 1;
    letter-spacing: -0.08em;
}

.event-date-block small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 7px;
}

.event-card-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.event-card-body h2 {
    margin: 12px 0 6px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.event-card-body > p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.event-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 13px 20px;
    margin-top: 16px;
    color: #8b8b94;
    font-size: 8px;
    font-weight: 700;
}

.event-meta-row b {
    margin-right: 4px;
    color: var(--red-bright);
}

.event-detail {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.event-detail > .back-link {
    display: inline-flex;
    margin-bottom: 32px;
}

.event-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 60px;
    align-items: start;
    padding: 18px 20px 35px;
}

.event-detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(46px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.event-detail-copy > p {
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.9;
}

.event-ticket {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 32%),
        rgba(20, 20, 24, 0.92);
    box-shadow: var(--shadow);
}

.event-ticket::after {
    position: absolute;
    right: -30px;
    bottom: -65px;
    content: "+";
    color: rgba(255, 255, 255, 0.025);
    font-size: 180px;
    font-weight: 900;
    line-height: 1;
}

.event-ticket-label {
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
    color: #ff8990;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.event-ticket > div {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.event-ticket small {
    color: var(--muted);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.event-ticket strong {
    margin-top: 3px;
    font-size: 11px;
}

.event-ticket .event-ticket-xp {
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.event-ticket-xp strong {
    color: #ff979d;
    font-size: 18px;
}

.event-action-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 15px 0 70px;
    padding: 22px 24px;
    border: 1px solid rgba(241, 35, 45, 0.16);
    border-radius: var(--radius-md);
    background: rgba(241, 35, 45, 0.04);
}

.event-action-status,
.attendance-note {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.event-action-status > span,
.attendance-note > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(241, 35, 45, 0.2);
    border-radius: 10px;
    color: #ff9298;
    background: rgba(241, 35, 45, 0.07);
    font-size: 11px;
    font-weight: 900;
}

.event-action-status p strong,
.attendance-note p strong {
    font-size: 10px;
}

.event-action-status p small,
.attendance-note p small {
    color: var(--muted);
    font-size: 8px;
}

.event-action-status.is-confirmed > span {
    color: var(--success);
    border-color: rgba(113, 231, 165, 0.2);
    background: rgba(113, 231, 165, 0.06);
}

.event-action-status.is-closed {
    opacity: 0.7;
}

.event-participant-section {
    padding: 0 20px;
}

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

.event-participant-grid > div {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 68px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.022);
}

.event-participant-grid > div.is-you {
    border-color: rgba(241, 35, 45, 0.2);
    background: rgba(241, 35, 45, 0.045);
}

.event-participant-grid p strong {
    font-size: 10px;
}

.event-participant-grid p span {
    color: var(--muted);
    font-size: 8px;
}

.event-participant-grid > div > b {
    color: var(--muted);
    font-size: 8px;
    white-space: nowrap;
}

.event-participant-grid .participant-confirmed {
    color: var(--success);
}

.event-columns {
    grid-template-columns: minmax(260px, 1fr) 145px 65px 105px 135px 105px;
    min-width: 980px;
}

.admin-table-row.event-columns > span {
    display: flex;
    flex-direction: column;
}

.admin-table-row.event-columns > span small {
    color: var(--muted);
    font-size: 7px;
}

.member-columns {
    grid-template-columns: minmax(280px, 1fr) 105px 80px 105px 115px 105px;
    min-width: 980px;
}

.member-level-cell {
    display: flex;
    flex-direction: column;
}

.member-level-cell strong {
    color: #e7e7eb;
    font-size: 9px;
}

.member-level-cell small {
    color: var(--muted);
    font-size: 7px;
}

.admin-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

.attendance-panel {
    width: min(1120px, 100%);
    margin: 40px auto 0;
}

.attendance-note {
    margin-bottom: 17px;
    padding: 14px;
    border: 1px solid rgba(241, 35, 45, 0.13);
    border-radius: 11px;
    background: rgba(241, 35, 45, 0.035);
}

.attendance-note > span {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
}

.attendance-list {
    display: grid;
}

.attendance-list > div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 85px auto;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
}

.attendance-list > div.is-confirmed {
    background: linear-gradient(90deg, rgba(113, 231, 165, 0.025), transparent);
}

.attendance-list p strong {
    font-size: 10px;
}

.attendance-list p span {
    color: var(--muted);
    font-size: 8px;
}

.attendance-xp {
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
}

.attendance-list .is-confirmed .attendance-xp {
    color: var(--success);
}

.attendance-list .button {
    min-height: 36px;
    padding: 0 13px;
    font-size: 8px;
}

/* Reveal and motion */

.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translateY(14px);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

@keyframes plus-gradient {
    0%, 100% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes mark-shine {
    0%, 64% { transform: translateX(-140%); }
    84%, 100% { transform: translateX(140%); }
}

@keyframes orbit-spin {
    to { transform: rotate(360deg); }
}

@keyframes status-pulse {
    0%, 100% { opacity: 0.7; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateX(20px) scale(0.97); }
}

/* Responsive */

@media (max-width: 1080px) {
    .login-layout {
        grid-template-columns: 1fr 430px;
        gap: 45px;
        padding: 40px;
    }

    .login-story h1 {
        font-size: 58px;
    }

    .dashboard-hero {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 35px;
        padding: 45px;
    }

    .poll-card {
        grid-template-columns: 120px minmax(0, 1fr) 150px;
    }

    .poll-card > .button {
        grid-column: 2 / -1;
        justify-self: end;
        margin-top: -5px;
    }

    .event-card {
        grid-template-columns: 95px minmax(0, 1fr);
    }

    .event-card > .button {
        grid-column: 2;
        justify-self: start;
    }

    .level-hero {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 30px;
        padding: 45px;
    }

    .level-emblem {
        width: 245px;
        height: 245px;
    }
}

@media (max-width: 900px) {
    .topbar-inner {
        grid-template-columns: 1fr auto auto;
    }

    .nav-toggle {
        display: grid;
        width: 38px;
        height: 38px;
        margin-right: 9px;
        place-content: center;
        gap: 5px;
        border: 1px solid var(--line);
        border-radius: 9px;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.03);
    }

    .nav-toggle span {
        display: block;
        width: 15px;
        height: 1px;
        background: #c6c6cc;
        transition: transform 180ms ease;
    }

    .nav-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(3px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-3px) rotate(-45deg);
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 24px;
        left: 24px;
        display: grid;
        padding: 8px;
        visibility: hidden;
        border-color: var(--line-strong);
        background: rgba(13, 13, 16, 0.97);
        box-shadow: var(--shadow);
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }

    .main-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav a {
        padding: 11px 13px;
    }

    .main-nav a.is-active::after {
        top: 25%;
        right: auto;
        bottom: 25%;
        left: -2px;
        width: 2px;
        height: auto;
    }

    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .member-pass {
        width: min(360px, 100%);
        justify-self: center;
    }

    .dashboard-progress-row {
        grid-template-columns: 1fr;
    }

    .level-hero {
        grid-template-columns: 1fr;
    }

    .level-emblem {
        margin-top: 10px;
    }

    .level-layout {
        grid-template-columns: 1fr;
    }

    .event-detail-header {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .event-ticket {
        width: min(420px, 100%);
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .admin-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-two-column {
        grid-template-columns: 1fr;
    }

    .hero-vote-orbit {
        margin-right: 0;
        transform: scale(0.8);
    }

    .event-hero-mark {
        margin-right: 0;
        transform: scale(0.8) rotate(8deg);
    }
}

@media (max-width: 760px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 28px 18px 45px;
    }

    .login-story {
        align-items: center;
        text-align: center;
    }

    .brand-login {
        margin-bottom: 58px;
    }

    .login-story h1 {
        margin-top: 17px;
        font-size: clamp(41px, 13vw, 58px);
    }

    .login-lead {
        font-size: 15px;
    }

    .feature-row {
        margin-top: 38px;
        text-align: left;
    }

    .login-panel-wrap {
        min-width: 0;
        max-width: 540px;
        justify-self: center;
    }

    .topbar-inner,
    .page-shell,
    .footer-inner {
        width: min(100% - 30px, var(--max-width));
    }

    .topbar-inner {
        height: 67px;
    }

    .account-chip {
        min-width: 0;
    }

    .account-copy {
        display: none;
    }

    .page-shell {
        padding-top: 30px;
    }

    .dashboard-hero {
        min-height: auto;
        padding: 34px 24px;
        border-radius: 23px;
    }

    .dashboard-hero h1 {
        font-size: clamp(43px, 13vw, 62px);
    }

    .metric-strip {
        grid-template-columns: 1fr;
        margin-bottom: 65px;
    }

    .metric-strip > div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .dashboard-progress-row {
        margin-bottom: 65px;
    }

    .dashboard-level-card {
        grid-template-columns: 90px minmax(0, 1fr) 36px;
        gap: 16px;
        padding: 20px;
    }

    .dashboard-level-number {
        width: 82px;
        height: 82px;
    }

    .dashboard-level-number strong {
        font-size: 34px;
    }

    .level-hero {
        min-height: auto;
        padding: 38px 25px;
        border-radius: 23px;
    }

    .level-hero h1 {
        font-size: clamp(55px, 17vw, 76px);
    }

    .level-emblem {
        width: 225px;
        height: 225px;
    }

    .level-emblem > strong {
        font-size: 78px;
    }

    .level-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 50px;
    }

    .xp-rule-grid {
        grid-template-columns: 1fr;
    }

    .news-grid,
    .poll-preview-grid {
        grid-template-columns: 1fr;
    }

    .news-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .content-section + .content-section {
        margin-top: 65px;
    }

    .page-hero {
        min-height: 290px;
        padding: 35px 25px;
        border-radius: 23px;
    }

    .page-hero h1 {
        font-size: clamp(44px, 14vw, 64px);
    }

    .hero-watermark {
        font-size: 105px;
    }

    .hero-vote-orbit {
        display: none;
    }

    .event-hero-mark {
        display: none;
    }

    .news-list-card {
        grid-template-columns: 1fr 42px;
        gap: 13px;
        padding: 21px;
    }

    .news-list-index {
        display: none;
    }

    .card-topline {
        flex-wrap: wrap;
    }

    .article-header,
    .article-content,
    .poll-detail-header {
        padding: 0;
    }

    .article-header h1,
    .poll-detail-header h1 {
        font-size: clamp(39px, 12vw, 57px);
    }

    .article-footer,
    .vote-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .article-footer .button,
    .vote-submit-row .button {
        width: 100%;
    }

    .poll-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px;
    }

    .poll-card-state {
        align-items: center;
        flex-direction: row;
    }

    .poll-card-meta {
        padding: 14px 0;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .poll-card > .button {
        grid-column: auto;
        justify-self: stretch;
        margin-top: 0;
    }

    .event-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 17px;
        padding: 21px;
    }

    .event-date-block {
        width: 70px;
        height: 92px;
    }

    .event-date-block strong {
        font-size: 31px;
    }

    .event-card > .button {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .event-detail-header,
    .event-participant-section {
        padding-right: 0;
        padding-left: 0;
    }

    .event-action-panel {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 55px;
    }

    .event-action-panel .button,
    .event-action-panel form {
        width: 100%;
    }

    .event-participant-grid {
        grid-template-columns: 1fr;
    }

    .attendance-list > div {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 14px 0;
    }

    .attendance-xp,
    .attendance-list form {
        grid-column: 2;
    }

    .attendance-list form .button {
        width: 100%;
    }

    .vote-form {
        padding: 20px;
    }

    .vote-option {
        grid-template-columns: 27px 1fr;
        padding: 11px 13px;
    }

    .vote-option-count {
        grid-column: 2;
    }

    .result-head > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-heading-actions,
    .admin-heading-actions .button {
        width: 100%;
    }

    .admin-heading.compact {
        align-items: flex-start;
    }

    .member-search {
        width: 100%;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-stat-grid article {
        min-height: 135px;
        padding: 19px;
    }

    .admin-stat-grid strong {
        font-size: 32px;
    }

    .admin-filterbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-wide {
        grid-column: auto;
    }

    .editor-form {
        padding: 20px;
    }

    .editor-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .editor-actions .button {
        width: 100%;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 25px 0;
    }

    .footer-status {
        margin-left: 0;
        margin-top: 8px;
    }

    .install-checks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .login-panel {
        padding: 23px 18px;
        border-radius: 22px;
    }

    .feature-row {
        grid-template-columns: 1fr;
    }

    .feature-row > div {
        padding: 14px;
    }

    .command-status {
        display: none;
    }

    .code-input-wrap input {
        font-size: 18px;
        letter-spacing: 0.15em;
    }

    .brand-word {
        font-size: 16px;
    }

    .account-chip {
        padding: 3px;
    }

    .dashboard-hero {
        padding: 30px 20px;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .member-pass {
        min-height: 395px;
        padding: 21px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-hero {
        padding: 31px 21px;
    }

    .page-hero h1 {
        font-size: 44px;
    }

    .news-list-card {
        grid-template-columns: 1fr;
    }

    .news-list-card .circle-link {
        width: 100%;
        height: 38px;
        border-radius: 9px;
    }

    .article-footer {
        padding: 21px;
    }

    .poll-detail-state {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-level-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .dashboard-level-number {
        width: 68px;
        height: 68px;
    }

    .dashboard-level-number strong {
        font-size: 28px;
    }

    .dashboard-level-card > a {
        display: none;
    }

    .level-progress-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .level-stat-grid {
        grid-template-columns: 1fr;
    }

    .level-panel,
    .attendance-panel {
        padding: 20px;
    }

    .xp-history-item p strong {
        white-space: normal;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-date-block {
        width: 100%;
        height: 72px;
        grid-auto-flow: column;
        gap: 8px;
        align-items: center;
    }

    .event-date-block strong {
        font-size: 27px;
    }

    .event-card > .button {
        grid-column: auto;
    }

    .event-participant-grid > div {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .event-participant-grid > div > b {
        width: 100%;
        padding-left: 47px;
    }

    .toast-stack {
        top: 77px;
        right: 15px;
    }

    .login-page .toast-stack {
        top: 15px;
    }

    .install-result-list > div {
        grid-template-columns: 1fr;
    }

    .install-result-list code {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .install-result-list button {
        justify-self: start;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
