:root {
    color-scheme: dark;
    --bg: #06100b;
    --panel: rgba(15, 31, 22, 0.88);
    --panel-strong: #10251a;
    --line: rgba(188, 255, 203, 0.12);
    --text: #f4fff6;
    --muted: #9ab4a2;
    --green: #3ee36f;
    --green-strong: #17c94f;
    --green-soft: rgba(62, 227, 111, 0.13);
    --yellow: #ffd66b;
    --danger: #ff8c8c;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
    --scrollbar-track: #07130c;
    --scrollbar-thumb: #2a6040;
    --scrollbar-thumb-hover: #3b8f59;
    --scrollbar-thumb-active: #3ee36f;
    --scrollbar-size: 11px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    scrollbar-width: thin;
}

* {
    box-sizing: border-box;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    scrollbar-width: thin;
}

html.theme-public,
html.theme-user {
    color-scheme: light;
    --bg: #f7f8f4;
    --scrollbar-track: #f2f5f2;
    --scrollbar-thumb: #b4d0be;
    --scrollbar-thumb-hover: #72b78e;
    --scrollbar-thumb-active: #20aa63;
}

*::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
    min-width: 44px;
    min-height: 44px;
    border: 3px solid var(--scrollbar-track);
    border-radius: 999px;
    background: var(--scrollbar-thumb);
    background-clip: padding-box;
}

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

*::-webkit-scrollbar-thumb:active {
    background-color: var(--scrollbar-thumb-active);
}

*::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

*::-webkit-scrollbar-corner {
    background: var(--scrollbar-track);
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--bg);
    scrollbar-gutter: stable;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 85% -10%, rgba(50, 226, 105, 0.2), transparent 34rem),
        radial-gradient(circle at -8% 20%, rgba(32, 124, 69, 0.18), transparent 28rem),
        linear-gradient(180deg, #07150d 0%, #050b08 100%);
}

button,
input {
    font: inherit;
}

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

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    padding: 54px 0 28px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #b8f7c8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.platform-dot,
.sync-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(62, 227, 111, 0.1), 0 0 18px rgba(62, 227, 111, 0.8);
}

.hero__main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.hero__main p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.refresh-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 18px;
    color: #03220d;
    border: 0;
    border-radius: 14px;
    background: var(--green);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(62, 227, 111, 0.2);
    transition: transform 160ms ease, background 160ms ease;
}

.refresh-button:hover {
    transform: translateY(-2px);
    background: #65f28d;
}

.refresh-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.refresh-button.is-loading .refresh-icon {
    animation: spin 800ms linear infinite;
}

.sync-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.sync-indicator {
    width: 7px;
    height: 7px;
    box-shadow: none;
}

.sync-indicator.error {
    background: var(--danger);
}

.sync-spacer {
    flex: 1;
}

.platform-switch {
    display: flex;
    justify-content: center;
    margin: 0 0 18px;
}

.platform-tabs {
    position: relative;
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(9, 22, 15, 0.9);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.platform-tabs::before {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: var(--platform-slider-width, 0px);
    height: var(--platform-slider-height, 0px);
    border-radius: var(--platform-slider-radius, 12px);
    background: var(--platform-slider-color, var(--green));
    box-shadow: 0 8px 22px var(--platform-slider-shadow, rgba(62, 227, 111, 0.2));
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translate3d(var(--platform-slider-x, 0px), var(--platform-slider-y, 0px), 0);
    will-change: transform, width, height;
}

.platform-tabs.has-platform-slider::before {
    opacity: 1;
}

.platform-tabs.platform-slider-ready::before {
    transition:
        width 320ms cubic-bezier(0.2, 0.8, 0.25, 1),
        height 320ms cubic-bezier(0.2, 0.8, 0.25, 1),
        border-radius 280ms ease,
        background-color 240ms ease,
        box-shadow 240ms ease,
        transform 380ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

.platform-tab {
    --platform-active-shadow: rgba(62, 227, 111, 0.2);
    --platform-slider-color: var(--green);
    --platform-slider-shadow: var(--platform-active-shadow);
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    color: var(--muted);
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    transform: translateY(0) scale(1);
    transition:
        color 220ms ease,
        background-color 260ms ease,
        box-shadow 260ms ease,
        transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
    will-change: transform;
}

.platform-tab span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #08240f;
    border-radius: 8px;
    background: rgba(62, 227, 111, 0.55);
    font-size: 12px;
    transform: rotate(0deg) scale(1);
    transition:
        color 220ms ease,
        background-color 260ms ease,
        transform 260ms cubic-bezier(0.2, 0.8, 0.25, 1.2);
}

.platform-tab:hover:not(.active) {
    transform: translateY(-2px);
}

.platform-tab:focus-visible {
    outline: 2px solid var(--platform-active-shadow);
    outline-offset: 2px;
}

.platform-tab.is-activating {
    animation: platform-tab-activate 420ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

.platform-tab.is-activating span {
    animation: platform-mark-activate 460ms cubic-bezier(0.2, 0.8, 0.25, 1.15);
}

.platform-tab.active {
    color: #06220d;
    background: var(--green);
    box-shadow: 0 8px 22px var(--platform-active-shadow);
}

.platform-tab.active span {
    background: rgba(5, 34, 13, 0.12);
}

.platform-tab[data-platform="tencent"] span {
    color: #06233c;
    background: rgba(57, 167, 255, 0.72);
}

.platform-tab[data-platform="tencent"] {
    --platform-active-shadow: rgba(57, 167, 255, 0.24);
    --platform-slider-color: #53b4ff;
}

.platform-tab[data-platform="mgtv"] span {
    color: #341600;
    background: rgba(255, 151, 50, 0.82);
}

.platform-tab[data-platform="mgtv"] {
    --platform-active-shadow: rgba(255, 151, 50, 0.26);
    --platform-slider-color: #ff9f43;
}

.platform-tab[data-platform="youku"] span {
    color: #310626;
    background: rgba(255, 91, 168, 0.82);
}

.platform-tab[data-platform="youku"] {
    --platform-active-shadow: rgba(132, 107, 217, 0.24);
    --platform-slider-color: #ff5ba8;
}

.platform-tab[data-platform="tencent"].active {
    color: #061e33;
    background: #53b4ff;
}

.platform-tab[data-platform="mgtv"].active {
    color: #321500;
    background: #ff9f43;
}

.platform-tab[data-platform="youku"].active {
    color: #310626;
    background: #ff5ba8;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.summary-card {
    position: relative;
    min-height: 142px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(18, 39, 27, 0.9), rgba(9, 22, 15, 0.88));
    box-shadow: var(--shadow);
}

.summary-card::after {
    position: absolute;
    right: -22px;
    bottom: -42px;
    width: 100px;
    height: 100px;
    border: 18px solid rgba(255, 255, 255, 0.025);
    border-radius: 50%;
    content: "";
}

.summary-card--accent {
    border-color: rgba(62, 227, 111, 0.25);
    background: linear-gradient(145deg, rgba(32, 94, 50, 0.9), rgba(12, 40, 22, 0.92));
}

.summary-card__label {
    display: block;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.summary-card strong {
    position: relative;
    z-index: 1;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.summary-card small {
    position: relative;
    z-index: 1;
    margin-left: 5px;
    color: var(--muted);
}

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

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(420px, 100%);
    min-height: 46px;
    padding: 0 16px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(10, 24, 16, 0.88);
}

.search-box:focus-within {
    border-color: rgba(62, 227, 111, 0.5);
    box-shadow: 0 0 0 4px rgba(62, 227, 111, 0.08);
}

.search-box input {
    width: 100%;
    color: var(--text);
    border: 0;
    outline: 0;
    background: transparent;
}

.search-box input::placeholder {
    color: #718477;
}

.filter-tabs {
    display: flex;
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(9, 22, 15, 0.84);
}

.filter-tab {
    min-height: 34px;
    padding: 0 14px;
    color: var(--muted);
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.filter-tab.active {
    color: #07220e;
    background: var(--green);
}

.event-list {
    display: grid;
    gap: 18px;
    transform-origin: top center;
    transition:
        opacity 160ms ease,
        filter 180ms ease,
        transform 180ms cubic-bezier(0.4, 0, 1, 1);
}

.event-list.is-platform-leaving {
    opacity: 0;
    filter: blur(2px);
    pointer-events: none;
}

.event-list.is-platform-leaving.to-left {
    transform: translate3d(-18px, 0, 0) scale(0.992);
}

.event-list.is-platform-leaving.to-right {
    transform: translate3d(18px, 0, 0) scale(0.992);
}

.event-list.is-platform-entering.from-right {
    animation: platform-content-from-right 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.event-list.is-platform-entering.from-left {
    animation: platform-content-from-left 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.event-list.is-platform-entering .drama-section {
    animation: platform-section-settle 440ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.event-list.is-platform-entering .drama-section:nth-child(2) { animation-delay: 35ms; }
.event-list.is-platform-entering .drama-section:nth-child(3) { animation-delay: 70ms; }
.event-list.is-platform-entering .drama-section:nth-child(n + 4) { animation-delay: 95ms; }

@keyframes platform-tab-activate {
    0% { transform: translateY(1px) scale(0.94); }
    58% { transform: translateY(-2px) scale(1.045); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes platform-mark-activate {
    0% { transform: rotate(-12deg) scale(0.78); }
    62% { transform: rotate(5deg) scale(1.14); }
    100% { transform: rotate(0deg) scale(1); }
}

@keyframes platform-content-from-right {
    from { opacity: 0; filter: blur(2px); transform: translate3d(24px, 0, 0) scale(0.992); }
    to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes platform-content-from-left {
    from { opacity: 0; filter: blur(2px); transform: translate3d(-24px, 0, 0) scale(0.992); }
    to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes platform-section-settle {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.drama-section {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.drama-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 0 0, rgba(62, 227, 111, 0.12), transparent 22rem),
        linear-gradient(90deg, rgba(62, 227, 111, 0.06), transparent 62%);
}

.drama-mark {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #08240f;
    border-radius: 14px;
    background: var(--green);
    font-size: 18px;
    font-weight: 900;
}

.drama-mark.is-platform-tencent {
    color: #061e33;
    background: #53b4ff;
    box-shadow: 0 10px 28px rgba(83, 180, 255, 0.18);
}

.drama-mark.is-platform-mgtv {
    color: #321500;
    background: #ff9f43;
    box-shadow: 0 10px 28px rgba(255, 159, 67, 0.18);
}

.drama-mark.is-platform-youku {
    color: #310626;
    background: #ff5ba8;
    box-shadow: 0 10px 28px rgba(255, 91, 168, 0.18);
}

.readonly-chip {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #b9c8bd;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.readonly-chip.is-platform-tencent {
    color: #bfe3ff;
    border-color: rgba(83, 180, 255, 0.25);
    background: rgba(83, 180, 255, 0.08);
}

.readonly-chip.is-platform-mgtv {
    color: #ffd1a3;
    border-color: rgba(255, 159, 67, 0.25);
    background: rgba(255, 159, 67, 0.08);
}

.readonly-chip.is-platform-youku {
    color: #ffc4e0;
    border-color: rgba(255, 91, 168, 0.25);
    background: rgba(255, 91, 168, 0.08);
}

.drama-title-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.drama-title {
    color: var(--text);
    text-decoration: none;
    font-size: 20px;
    font-weight: 850;
}

.drama-title:hover {
    color: #8bf3a9;
}

.drama-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.drama-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.drama-meta__item + .drama-meta__item::before {
    color: #506358;
    content: "·";
}

.drama-meta__item.is-open {
    color: #91f4ad;
    font-weight: 700;
}

.drama-header__summary {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.drama-header__remaining {
    text-align: right;
    white-space: nowrap;
}

.drama-header__remaining span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.drama-header__remaining strong {
    color: #b9facb;
    font-size: 25px;
    line-height: 1;
}

.drama-header__remaining small {
    margin-left: 4px;
    color: var(--muted);
    font-size: 11px;
}

.drama-header__actions {
    display: flex;
    gap: 7px;
}

.event-table-head,
.event-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.78fr) minmax(180px, 1.15fr) minmax(145px, 0.9fr) minmax(220px, 1.35fr);
    align-items: center;
    gap: 18px;
    padding: 0 24px;
}

.event-table-head {
    min-height: 46px;
    color: #738a7a;
    border-bottom: 1px solid var(--line);
    background: rgba(4, 15, 9, 0.24);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.event-row {
    position: relative;
    min-height: 118px;
    border-bottom: 1px solid var(--line);
    transition: background 150ms ease;
}

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

.event-row:hover {
    background: rgba(255, 255, 255, 0.024);
}

.event-row.is-open {
    background: linear-gradient(90deg, rgba(62, 227, 111, 0.055), transparent 45%);
    box-shadow: inset 3px 0 0 rgba(62, 227, 111, 0.75);
}

.cell-label {
    display: none;
}

.event-time,
.seat-number,
.booker-cell,
.event-status {
    min-width: 0;
}

.time-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.time-main strong {
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.025em;
}

.time-main span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.duration-chip {
    display: inline-flex;
    margin-top: 10px;
    padding: 4px 7px;
    color: #9db3a4;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 10px;
}

.seat-value {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.seat-value strong {
    color: #d8ffe2;
    font-size: 25px;
    line-height: 1;
}

.seat-value span,
.seat-total {
    color: var(--muted);
    font-size: 10px;
}

.seat-total {
    display: block;
    margin-top: 5px;
}

.seat-progress {
    display: block;
    width: min(90px, 100%);
    height: 3px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.075);
}

.seat-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

.booker-name {
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 780;
    white-space: nowrap;
}

.booker-source {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: #6f8575;
    text-overflow: ellipsis;
    font-size: 10px;
    white-space: nowrap;
}

.countdown {
    display: block;
    margin-top: 8px;
    color: var(--yellow);
    font-size: 10px;
    font-weight: 700;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 7px 10px;
    color: #c5fbd2;
    border: 1px solid rgba(62, 227, 111, 0.22);
    border-radius: 999px;
    background: var(--green-soft);
    font-size: 11px;
    font-weight: 800;
}

.status-pill::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.status-pill.upcoming {
    color: #ffe197;
    border-color: rgba(255, 214, 107, 0.2);
    background: rgba(255, 214, 107, 0.08);
}

.event-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
}

.event-actions__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.action-link.monitor-action[data-submitted="true"] {
    color: #9fe6b1;
    border-color: rgba(62, 227, 111, 0.35);
    background: rgba(62, 227, 111, 0.08);
}

.action-link.prestart-monitor-action {
    color: #ffe9a8;
    border-color: rgba(255, 202, 88, 0.34);
    background: rgba(255, 184, 48, 0.1);
}

.action-link.prestart-monitor-action[data-submitted="true"] {
    color: #9fe6b1;
    border-color: rgba(62, 227, 111, 0.35);
    background: rgba(62, 227, 111, 0.08);
}

.action-link.report-action {
    color: #d7ecff;
    border-color: rgba(120, 180, 255, 0.28);
    background: rgba(80, 140, 220, 0.08);
}

.action-link.report-max-action {
    color: #ffe9a8;
    border-color: rgba(255, 202, 88, 0.34);
    background: rgba(255, 184, 48, 0.1);
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    color: #d6e8db;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: border 150ms ease, transform 150ms ease;
}

button.action-link {
    cursor: pointer;
    font-family: inherit;
}

button.action-link:disabled {
    cursor: wait;
    opacity: 0.62;
}

.action-link[hidden] {
    display: none;
}

.action-link:hover {
    transform: translateY(-1px);
    border-color: rgba(62, 227, 111, 0.5);
}

.action-link.primary {
    color: #05210c;
    border-color: var(--green);
    background: var(--green);
}

.action-link.header-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
}

.action-link[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.45;
}

.participation-status {
    display: block;
    min-height: 28px;
    color: #819587;
    font-size: 10px;
    line-height: 1.4;
    text-align: right;
}

.participation-status.is-watching,
.participation-status.is-claimable,
.participation-status.is-claimed {
    color: #9fe6b1;
}

.participation-status.is-error {
    color: #ff9f96;
}

.participation-status.is-loading {
    color: var(--yellow);
}

.claim-result {
    display: grid;
    gap: 6px;
    padding: 9px 10px;
    overflow: hidden;
    color: #a8b9ad;
    border: 1px solid rgba(255, 214, 107, 0.18);
    border-radius: 10px;
    background: rgba(255, 214, 107, 0.055);
    font-size: 10px;
    line-height: 1.45;
}

.claim-result[hidden] {
    display: none;
}

.claim-result.is-success {
    color: #bff5cc;
    border-color: rgba(62, 227, 111, 0.22);
    background: rgba(62, 227, 111, 0.07);
}

.claim-result__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.action-link.claim-link {
    min-height: 28px;
    padding: 0 8px;
    font-size: 9px;
}

.claim-result details {
    min-width: 0;
}

.claim-result summary {
    cursor: pointer;
    color: inherit;
}

.claim-result pre {
    max-height: 150px;
    margin: 7px 0 0;
    padding: 8px;
    overflow: auto;
    color: #b7c8bc;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.2);
    font: 9px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

.state-panel {
    display: grid;
    min-height: 310px;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 24px;
    background: rgba(10, 24, 16, 0.5);
    text-align: center;
}

.state-panel strong {
    color: var(--text);
}

.state-panel span {
    font-size: 12px;
}

.loader {
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    border: 3px solid rgba(62, 227, 111, 0.14);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

.empty-icon {
    color: var(--green);
    font-size: 32px;
}

.warning-panel {
    margin-bottom: 14px;
    padding: 14px 16px;
    color: #ffe4a5;
    border: 1px solid rgba(255, 214, 107, 0.22);
    border-radius: 14px;
    background: rgba(255, 214, 107, 0.07);
    font-size: 12px;
    line-height: 1.7;
}

footer {
    padding: 30px 0 54px;
    color: #5f7465;
    text-align: center;
    font-size: 11px;
}

.link-dialog {
    width: min(560px, calc(100% - 28px));
    padding: 28px;
    color: var(--text);
    border: 1px solid rgba(62, 227, 111, 0.25);
    border-radius: 24px;
    background: #0d1f15;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6);
}

.link-dialog::backdrop {
    background: rgba(1, 7, 4, 0.76);
    backdrop-filter: blur(8px);
}

.dialog-close {
    position: absolute;
    top: 15px;
    right: 16px;
    color: var(--muted);
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 24px;
}

.dialog-kicker {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.link-dialog h2 {
    margin: 0 0 22px;
    font-size: 25px;
}

.link-dialog dl,
.link-dialog dd {
    margin: 0;
}

.link-dialog dl {
    display: grid;
    gap: 10px;
}

.link-dialog dl > div {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.018);
}

.link-dialog dt {
    margin-bottom: 5px;
    font-weight: 800;
}

.link-dialog dd {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

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

.account-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 17px;
    color: #c8f7d3;
    border: 1px solid rgba(62, 227, 111, 0.28);
    border-radius: 14px;
    background: rgba(62, 227, 111, 0.09);
    cursor: pointer;
    font-weight: 800;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.account-add-button:hover {
    transform: translateY(-2px);
    border-color: rgba(62, 227, 111, 0.55);
    background: rgba(62, 227, 111, 0.15);
}

.account-add-button--compact {
    min-height: 40px;
    font-size: 12px;
}

.accounts-panel {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid rgba(62, 227, 111, 0.17);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(62, 227, 111, 0.1), transparent 24rem),
        rgba(10, 24, 16, 0.76);
    box-shadow: var(--shadow);
}

.accounts-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
}

.section-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--green);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.accounts-panel h2 {
    margin: 0;
    font-size: 24px;
}

.accounts-panel__header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}

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

.account-empty {
    display: grid;
    grid-column: 1 / -1;
    min-height: 130px;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--muted);
    border: 1px dashed rgba(188, 255, 203, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.018);
    text-align: center;
}

.account-empty strong {
    color: var(--text);
}

.account-empty span {
    margin-bottom: 7px;
    font-size: 12px;
}

.account-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.025);
}

.account-card.is-selected {
    border-color: rgba(62, 227, 111, 0.35);
    background: linear-gradient(145deg, rgba(62, 227, 111, 0.09), rgba(255, 255, 255, 0.018));
}

.account-card > header {
    display: flex;
    align-items: center;
    gap: 11px;
}

.account-avatar {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #06220d;
    border-radius: 13px;
    background: var(--green);
    font-weight: 900;
}

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

.account-identity strong,
.account-identity span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-identity strong {
    font-size: 15px;
}

.account-identity span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.account-selected-badge {
    margin-left: auto;
    padding: 5px 8px;
    color: #b7f8c8;
    border: 1px solid rgba(62, 227, 111, 0.24);
    border-radius: 999px;
    background: rgba(62, 227, 111, 0.1);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.account-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.account-field {
    min-width: 0;
    padding: 10px;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.14);
}

.account-field span,
.account-field strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-field span {
    color: #718477;
    font-size: 9px;
}

.account-field strong {
    margin-top: 5px;
    font-size: 11px;
}

.account-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 14px;
}

.account-card__action {
    min-height: 32px;
    padding: 0 10px;
    font-size: 10px;
}

.account-card__action.danger {
    color: #ffb5b5;
    border-color: rgba(255, 140, 140, 0.2);
}

.account-notice {
    margin-bottom: 13px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
    font-size: 11px;
}

.account-notice.is-success {
    color: #bcf8ca;
    border-color: rgba(62, 227, 111, 0.2);
    background: rgba(62, 227, 111, 0.08);
}

.account-notice.is-warning,
.account-notice.is-error {
    color: #ffe0a0;
    border-color: rgba(255, 214, 107, 0.2);
    background: rgba(255, 214, 107, 0.07);
}

.account-dialog {
    width: min(760px, calc(100% - 28px));
    max-height: min(850px, calc(100vh - 28px));
    padding: 28px;
    overflow: auto;
    color: var(--text);
    border: 1px solid rgba(62, 227, 111, 0.25);
    border-radius: 24px;
    background: #0d1f15;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6);
}

.account-dialog::backdrop {
    background: rgba(1, 7, 4, 0.8);
    backdrop-filter: blur(8px);
}

.account-dialog h2 {
    margin: 0;
    font-size: 27px;
}

.account-dialog__lead {
    margin: 8px 34px 20px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 16px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
}

.login-tab {
    min-height: 40px;
    color: var(--muted);
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.login-tab.active {
    color: #05210c;
    background: var(--green);
}

.login-panel {
    min-height: 330px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 10, 6, 0.36);
}

.qr-login-box {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: center;
    gap: 24px;
    min-height: 330px;
    padding: 24px;
}

.qr-image-wrap {
    display: grid;
    width: 280px;
    height: 280px;
    place-items: center;
    overflow: hidden;
    border: 10px solid #fff;
    border-radius: 18px;
    background: #fff;
}

.qr-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: #486151;
    font-size: 11px;
}

.qr-login-copy strong {
    font-size: 18px;
}

.qr-login-copy ol {
    margin: 14px 0 20px;
    padding-left: 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 2;
}

.sms-login-launch {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-content: center;
    gap: 22px 24px;
    min-height: 330px;
    padding: 34px;
}

.sms-login-launch__mark {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    color: #05210c;
    border-radius: 24px;
    background: var(--green);
    box-shadow: 0 16px 42px rgba(62, 227, 111, 0.18);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.sms-login-launch__copy strong {
    display: block;
    font-size: 20px;
}

.sms-login-launch__copy p {
    max-width: 520px;
    margin: 9px 0 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.sms-login-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    color: #05210c;
    border-radius: 12px;
    background: var(--green);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.sms-login-button[aria-disabled="true"] {
    cursor: wait;
    opacity: 0.45;
}

.sms-login-steps {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px 20px 18px 38px;
    color: #c5d6ca;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 11px;
    line-height: 2;
}

.login-status {
    margin-top: 13px;
    padding: 11px 13px;
    color: #d9e8dd;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 11px;
}

.login-status.is-scanned,
.login-status.is-success {
    color: #bdf8cb;
    border-color: rgba(62, 227, 111, 0.2);
    background: rgba(62, 227, 111, 0.08);
}

.login-status.is-error {
    color: #ffb9b9;
    border-color: rgba(255, 140, 140, 0.2);
    background: rgba(255, 140, 140, 0.06);
}

.login-security-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.login-security-note strong {
    flex: 0 0 auto;
    color: #a9edba;
}

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

@media (max-width: 980px) {
    .event-table-head {
        display: none;
    }

    .event-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "time seat"
            "booker status"
            "actions actions";
        gap: 22px 18px;
        min-height: 0;
        padding: 20px;
    }

    .event-time { grid-area: time; }
    .seat-number { grid-area: seat; }
    .booker-cell { grid-area: booker; }
    .event-status { grid-area: status; }

    .event-actions {
        grid-area: actions;
        justify-content: stretch;
        padding-top: 16px;
        border-top: 1px solid var(--line);
    }

    .participation-status {
        text-align: left;
    }

    .cell-label {
        display: block;
        margin-bottom: 9px;
        color: #718477;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.08em;
    }

    .event-actions .action-link {
        flex: 1;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 22px, 1180px);
    }

    .hero {
        padding-top: 34px;
    }

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

    .hero__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .refresh-button {
        width: 100%;
        justify-content: center;
    }

    .accounts-panel {
        padding: 17px;
    }

    .accounts-panel__header {
        align-items: stretch;
        flex-direction: column;
    }

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

    .account-add-button--compact {
        width: 100%;
    }

    .sync-line {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .sync-spacer {
        display: none;
    }

    #updatedAt {
        width: 100%;
        padding-left: 17px;
    }

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

    .summary-card {
        min-height: 122px;
        padding: 18px;
    }

    .summary-card strong {
        font-size: 34px;
    }

    .platform-tabs {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }

    .platform-tab {
        justify-content: center;
        padding: 0 10px;
    }

    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .filter-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .drama-header {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 18px;
    }

    .drama-title-wrap {
        padding-top: 2px;
    }

    .drama-header__summary {
        width: calc(100% - 58px);
        justify-content: space-between;
        margin-left: 58px;
        padding-top: 15px;
        border-top: 1px solid var(--line);
    }

    .drama-header__remaining {
        text-align: left;
    }

    .drama-header__remaining strong {
        font-size: 18px;
    }

    .account-dialog {
        padding: 22px 16px;
    }

    .qr-login-box {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        padding: 18px;
    }

    .qr-login-copy {
        width: min(100%, 320px);
    }

    .qr-image-wrap {
        width: min(280px, 100%);
        height: auto;
        aspect-ratio: 1;
    }
}

@media (max-width: 500px) {
    h1 {
        font-size: 42px;
    }

    .hero__main p {
        font-size: 13px;
    }

    .summary-card__label {
        margin-bottom: 15px;
    }

    .drama-mark {
        display: none;
    }

    .drama-header__summary {
        width: 100%;
        margin-left: 0;
    }

    .drama-title {
        font-size: 18px;
    }

    .event-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "time"
            "seat"
            "booker"
            "status"
            "actions";
    }

    .event-actions {
        grid-column: auto;
    }

    .drama-header__actions {
        gap: 5px;
    }

    .action-link.header-link {
        padding: 0 8px;
    }

    .account-dialog {
        padding: 22px 16px;
    }

    .qr-login-box {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        padding: 18px;
    }

    .qr-login-copy {
        width: min(100%, 320px);
    }

    .sms-login-launch {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 26px 18px;
        text-align: center;
    }

    .sms-login-launch__copy p {
        margin-right: auto;
        margin-left: auto;
    }

    .sms-login-steps {
        text-align: left;
    }
}

@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;
    }
}

.public-login-button {
    text-decoration: none;
}

.auth-dialog {
    width: min(560px, calc(100% - 28px));
}

.auth-tabs {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 20px;
}

.login-tab:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.auth-form {
    display: grid;
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 10, 6, 0.36);
}

.auth-form label {
    display: grid;
    gap: 7px;
    color: #b7c9bc;
    font-size: 11px;
    font-weight: 800;
}

.auth-form input {
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    background: rgba(0, 0, 0, 0.2);
}

.auth-form input:focus {
    border-color: rgba(62, 227, 111, 0.5);
}

.code-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.code-field button {
    min-width: 112px;
    color: #bff5cc;
    border: 1px solid rgba(62, 227, 111, 0.28);
    border-radius: 11px;
    background: rgba(62, 227, 111, 0.09);
    cursor: pointer;
    font-weight: 800;
}

.code-field button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.user-logout {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(255, 100, 100, 0.06);
}

.cloud-task-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cloud-task-card {
    display: grid;
    gap: 9px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.022);
}

.cloud-task-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cloud-task-card p,
.cloud-task-card small {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.cloud-task-card .account-card__action {
    justify-self: end;
}

.cloud-task-error {
    padding: 8px 10px;
    color: #ffc0b8;
    border-radius: 9px;
    background: rgba(255, 120, 100, 0.08);
    font-size: 10px;
}

@media (max-width: 720px) {
    .cloud-task-list { grid-template-columns: 1fr; }
    .auth-tabs { grid-template-columns: 1fr; }
    .code-field { grid-template-columns: 1fr; }
    .code-field button { min-height: 42px; }
}

/* Public homepage — light editorial theme */
body.public-home {
    color-scheme: light;
    --public-bg: #f7f8f4;
    --public-surface: #ffffff;
    --public-ink: #17372b;
    --public-muted: #718378;
    --public-line: #dfe7e1;
    --public-green: #20aa63;
    --public-green-strong: #15864c;
    --public-green-soft: #e8f7ee;
    --public-amber: #b7771d;
    --public-shadow: 0 20px 60px rgba(36, 79, 57, 0.08);
    color: var(--public-ink);
    background:
        radial-gradient(circle at 82% 7%, rgba(99, 224, 154, 0.18), transparent 25rem),
        linear-gradient(90deg, rgba(35, 92, 64, 0.025) 1px, transparent 1px),
        var(--public-bg);
    background-size: auto, 70px 70px, auto;
}

body.public-home a,
body.public-home button,
body.public-home input {
    outline-color: var(--public-green);
}

body.public-home .page-shell.public-page-shell {
    width: min(1324px, calc(100% - 64px));
}

.public-nav {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(32, 80, 57, 0.1);
    background: rgba(252, 253, 250, 0.92);
    backdrop-filter: blur(18px);
}

.public-nav__inner {
    display: flex;
    align-items: center;
    width: min(1324px, calc(100% - 64px));
    min-height: 76px;
    margin: 0 auto;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--public-ink);
    text-decoration: none;
}

.public-brand > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    border-radius: 13px;
    background: linear-gradient(145deg, #2bc675, #169353);
    box-shadow: 0 10px 22px rgba(30, 170, 99, 0.18);
    font-size: 16px;
    font-weight: 900;
}

.public-brand strong {
    font-size: 21px;
    letter-spacing: -0.04em;
}

.public-nav__links {
    display: flex;
    gap: 30px;
    margin-left: 68px;
}

.public-nav__links a {
    position: relative;
    padding: 28px 0 25px;
    color: #64766b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
}

.public-nav__links a:hover,
.public-nav__links a:focus-visible {
    color: var(--public-green-strong);
}

.public-nav__links a:first-child {
    color: var(--public-ink);
}

.public-nav__links a:first-child::after {
    position: absolute;
    right: 28%;
    bottom: 18px;
    left: 28%;
    height: 2px;
    border-radius: 2px;
    background: var(--public-green);
    content: "";
}

.public-nav__status {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    margin-left: auto;
    padding: 8px 11px;
    color: #52705f;
    border: 1px solid var(--public-line);
    border-radius: 999px;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
}

.public-nav__status #syncText {
    max-width: 245px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.public-home .sync-indicator,
body.public-home .platform-dot {
    flex: 0 0 auto;
    background: var(--public-green);
    box-shadow: 0 0 0 4px rgba(32, 170, 99, 0.11);
}

body.public-home .sync-indicator.error {
    background: #df5f5f;
    box-shadow: 0 0 0 4px rgba(223, 95, 95, 0.1);
}

.public-nav__actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: 12px;
}

body.public-home .public-nav__actions .account-add-button {
    min-height: 40px;
    padding: 0 15px;
    color: var(--public-ink);
    border: 1px solid #d7e2da;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    font-size: 13px;
}

body.public-home .public-nav__actions .account-add-button:hover {
    border-color: #b8d8c5;
    background: #f8fcf9;
}

body.public-home .public-nav__actions .refresh-button {
    min-height: 40px;
    padding: 0 16px;
    color: #fff;
    border-radius: 12px;
    background: #173f31;
    box-shadow: 0 10px 24px rgba(23, 63, 49, 0.14);
    font-size: 13px;
}

body.public-home .public-nav__actions .refresh-button:hover {
    background: #245743;
}

.public-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 370px;
    margin-top: 30px;
    overflow: hidden;
    border: 1px solid var(--public-line);
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--public-shadow);
    scroll-margin-top: 20px;
}

.public-hero__copy {
    align-self: center;
    padding: 52px 56px;
}

body.public-home .hero__eyebrow {
    margin: 0 0 17px;
    color: var(--public-green-strong);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: none;
}

.public-hero h1 {
    margin: 0;
    color: var(--public-ink);
    font-size: clamp(46px, 5vw, 66px);
    line-height: 0.96;
    letter-spacing: -0.075em;
}

.public-hero h1 em {
    color: var(--public-green);
    font-style: normal;
}

.public-hero p {
    max-width: 470px;
    margin: 20px 0 0;
    color: var(--public-muted);
    font-size: 15px;
    line-height: 1.75;
}

.public-hero__actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
}

.public-hero__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
}

.public-hero__primary {
    padding: 0 20px;
    color: #fff;
    border-radius: 13px;
    background: #173f31;
    box-shadow: 0 12px 28px rgba(23, 63, 49, 0.15);
}

.public-hero__primary:hover {
    background: #245743;
}

.public-hero__secondary {
    color: #536d5e;
}

.featured-stage {
    position: relative;
    display: grid;
    min-width: 0;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #ecf9f1, #dff5e9);
}

.featured-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.featured-orb--top {
    top: -130px;
    right: -55px;
    width: 350px;
    height: 350px;
    background: rgba(73, 211, 133, 0.16);
}

.featured-orb--bottom {
    bottom: -145px;
    left: -105px;
    width: 300px;
    height: 300px;
    border: 48px solid rgba(255, 255, 255, 0.38);
}

.featured-event {
    position: relative;
    z-index: 2;
    width: min(330px, calc(100% - 80px));
    padding: 23px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 64px rgba(35, 105, 68, 0.14);
    transform: rotate(1.2deg);
    backdrop-filter: blur(14px);
}

.featured-event.is-loading {
    opacity: 0.72;
}

.featured-event.is-empty {
    transform: none;
}

.featured-event header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #70877a;
    font-size: 11px;
    font-weight: 750;
}

.featured-event header strong {
    color: var(--public-green-strong);
    font-size: 11px;
}

.featured-event__time {
    margin-top: 18px;
    color: #173f30;
    font-size: 42px;
    font-weight: 880;
    letter-spacing: -0.055em;
}

.featured-event__title {
    margin-top: 7px;
    overflow: hidden;
    color: #244b39;
    text-overflow: ellipsis;
    font-size: 17px;
    font-weight: 850;
    white-space: nowrap;
}

.featured-event__booker {
    margin-top: 5px;
    overflow: hidden;
    color: #7b9083;
    text-overflow: ellipsis;
    font-size: 12px;
    white-space: nowrap;
}

.featured-event__progress {
    height: 5px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 99px;
    background: #e3ece7;
}

.featured-event__progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--public-green);
    transition: width 280ms ease;
}

.featured-event__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
}

.featured-event__meta strong {
    color: var(--public-green-strong);
    font-size: 11px;
}

.featured-event__meta span {
    color: #61796b;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.featured-event__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    margin-top: 20px;
    color: #fff;
    border-radius: 12px;
    background: var(--public-green);
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
}

.featured-event__link:hover {
    background: var(--public-green-strong);
}

.featured-event__link[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.45;
}

body.public-home .platform-switch {
    margin: 14px 0;
}

body.public-home .platform-tabs {
    width: 100%;
    justify-content: center;
    padding: 7px;
    border: 1px solid var(--public-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(36, 79, 57, 0.05);
}

body.public-home .platform-tab {
    --platform-slider-color: #1d9f5e;
    --platform-slider-shadow: rgba(29, 159, 94, 0.22);
    min-height: 44px;
    color: #6b7f73;
    border-radius: 12px;
    font-size: 13px;
}

body.public-home .platform-tab span {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    color: #fff;
    background: #64bd8d;
    font-size: 13px;
}

body.public-home .platform-tab.active {
    color: #fff;
    background: #1d9f5e;
}

body.public-home .platform-tab.active span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

body.public-home .platform-tab[data-platform="tencent"].active {
    color: #fff;
    background: #379eea;
}

body.public-home .platform-tab[data-platform="tencent"] {
    --platform-slider-color: #379eea;
    --platform-slider-shadow: rgba(55, 158, 234, 0.22);
}

body.public-home .platform-tab[data-platform="mgtv"].active {
    color: #fff;
    background: #ef8c32;
}

body.public-home .platform-tab[data-platform="mgtv"] {
    --platform-slider-color: #ef8c32;
    --platform-slider-shadow: rgba(239, 140, 50, 0.22);
}

body.public-home .platform-tab[data-platform="youku"] span {
    color: #fff;
    background: #846bd9;
}

body.public-home .platform-tab[data-platform="youku"].active {
    color: #fff;
    background: #7257cf;
}

body.public-home .platform-tab[data-platform="youku"] {
    --platform-slider-color: #7257cf;
    --platform-slider-shadow: rgba(114, 87, 207, 0.22);
}

.overview-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 30px;
    scroll-margin-top: 20px;
}

body.public-home .summary-grid {
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--public-line);
    border-radius: 20px;
    background: var(--public-line);
    box-shadow: 0 14px 40px rgba(36, 79, 57, 0.05);
}

body.public-home .summary-card {
    min-height: 104px;
    padding: 20px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

body.public-home .summary-card::after {
    display: none;
}

body.public-home .summary-card--accent {
    background: #f3fbf6;
}

body.public-home .summary-card__label {
    margin-bottom: 10px;
    color: #788b80;
    font-size: 12px;
}

body.public-home .summary-card strong {
    color: var(--public-ink);
    font-size: 31px;
}

body.public-home .summary-card--accent strong {
    color: var(--public-green-strong);
}

body.public-home .summary-card small {
    color: #7f9187;
    font-size: 11px;
}

.event-browser {
    scroll-margin-top: 20px;
}

.event-browser__head {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 14px;
}

.event-browser__head > div:first-child {
    flex: 0 0 auto;
}

.event-browser__head h2 {
    margin: 0;
    color: var(--public-ink);
    font-size: 27px;
    letter-spacing: -0.045em;
}

.event-browser__head p {
    margin: 6px 0 0;
    color: #86958d;
    font-size: 12px;
}

body.public-home .toolbar {
    margin: 0 0 0 auto;
}

body.public-home .search-box {
    width: 310px;
    min-height: 46px;
    color: #89978f;
    border: 1px solid var(--public-line);
    border-radius: 12px;
    background: #fff;
}

body.public-home .search-box > span {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
}

body.public-home .search-box:focus-within {
    border-color: rgba(32, 170, 99, 0.45);
    box-shadow: 0 0 0 4px rgba(32, 170, 99, 0.08);
}

body.public-home .search-box input {
    color: var(--public-ink);
    font-size: 13px;
}

body.public-home .search-box input::placeholder {
    color: #97a49c;
}

body.public-home .filter-tabs {
    border: 1px solid var(--public-line);
    border-radius: 12px;
    background: #fff;
}

body.public-home .filter-tab {
    min-height: 38px;
    padding: 0 15px;
    color: #73857a;
    font-size: 13px;
}

body.public-home .filter-tab.active {
    color: #fff;
    background: var(--public-green);
}

body.public-home .event-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

body.public-home .drama-section {
    border: 1px solid var(--public-line);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 15px 44px rgba(36, 79, 57, 0.06);
    backdrop-filter: none;
}

body.public-home .drama-header {
    min-height: 104px;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid #ebefec;
    background: #fff;
}

body.public-home .drama-mark {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    aspect-ratio: 1;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(145deg, #58cc8e, #178f54);
    box-shadow: 0 12px 26px rgba(29, 159, 94, 0.16);
    font-size: 22px;
}

body.public-home .drama-mark.is-platform-tencent {
    color: #fff;
    background: linear-gradient(145deg, #65bdf6, #2688d0);
}

body.public-home .drama-mark.is-platform-mgtv {
    color: #fff;
    background: linear-gradient(145deg, #ffb15f, #e67624);
}

body.public-home .drama-mark.is-platform-youku {
    color: #fff;
    background: linear-gradient(145deg, #9b83ed, #6249bd);
}

body.public-home .drama-title {
    color: var(--public-ink);
    font-size: 19px;
}

body.public-home .drama-title:hover {
    color: var(--public-green-strong);
}

body.public-home .drama-meta {
    color: #809188;
    font-size: 13px;
    line-height: 1.45;
}

.drama-status-chip {
    flex: 0 0 auto;
    padding: 6px 10px;
    color: var(--public-amber);
    border-radius: 999px;
    background: #fff7e9;
    font-size: 11px;
    font-weight: 850;
}

.drama-status-chip.is-open {
    color: var(--public-green-strong);
    background: var(--public-green-soft);
}

body.public-home .event-row {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr) 118px;
    grid-template-areas:
        "time booker seat"
        ". actions actions";
    gap: 14px 16px;
    min-height: 148px;
    padding: 18px;
    border-bottom: 1px solid #edf1ee;
    background: #fff;
    box-shadow: none;
}

body.public-home .event-row:hover {
    background: #fbfdfb;
}

body.public-home .event-row.is-open {
    background: linear-gradient(90deg, rgba(32, 170, 99, 0.045), transparent 55%);
    box-shadow: inset 3px 0 0 rgba(32, 170, 99, 0.65);
}

body.public-home .event-time { grid-area: time; }
body.public-home .seat-number { grid-area: seat; }
body.public-home .booker-cell { grid-area: booker; }
body.public-home .event-actions { grid-area: actions; }

body.public-home .time-main {
    display: block;
}

body.public-home .time-main strong {
    color: var(--public-ink);
    font-size: 22px;
}

body.public-home .time-main span {
    display: block;
    margin-top: 5px;
    color: #87968d;
    font-size: 11px;
}

body.public-home .duration-chip {
    margin-top: 0;
    padding: 0;
    color: #84938a;
    background: transparent;
    font-size: 11px;
    line-height: 1.35;
}

body.public-home .seat-value strong {
    color: var(--public-ink);
    font-size: 21px;
    line-height: 1.1;
}

body.public-home .seat-value span,
body.public-home .seat-total {
    color: #84948b;
    font-size: 11px;
}

body.public-home .seat-progress {
    background: #e5ece8;
}

body.public-home .seat-progress i {
    background: var(--public-green);
}

body.public-home .booker-name {
    color: var(--public-ink);
    font-size: 13px;
}

body.public-home .booker-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 9px;
    margin-top: 9px;
}

body.public-home .status-pill {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: var(--public-green-strong);
    border: 0;
    background: var(--public-green-soft);
    font-size: 11px;
    white-space: nowrap;
}

body.public-home .status-pill::before {
    flex: 0 0 6px;
}

body.public-home .status-pill.upcoming {
    color: var(--public-amber);
    background: #fff7e9;
}

body.public-home .countdown {
    margin: 0;
    color: #7a8b81;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.public-home .event-actions__buttons {
    justify-content: flex-end;
}

body.public-home .action-link {
    min-height: 36px;
    padding: 0 12px;
    color: #48705a;
    border: 1px solid #d5e5dc;
    border-radius: 9px;
    background: #f5fbf7;
    font-size: 11px;
}

body.public-home .action-link:hover {
    border-color: #9fd0b3;
    background: #ecf8f0;
}

body.public-home .action-link.primary {
    color: #fff;
    border-color: var(--public-green);
    background: var(--public-green);
}

body.public-home .readonly-chip {
    min-height: 36px;
    color: #6e7f75;
    border: 1px solid #dce5df;
    background: #f7f9f7;
}

.drama-footer {
    display: flex;
    justify-content: center;
    padding: 13px 16px;
    border-top: 1px solid #edf1ee;
    background: #fbfdfb;
}

.drama-expand {
    min-height: 36px;
    padding: 0 16px;
    color: var(--public-green-strong);
    border: 0;
    border-radius: 9px;
    background: var(--public-green-soft);
    cursor: pointer;
    font-size: 11px;
    font-weight: 850;
}

body.public-home .state-panel {
    min-height: 280px;
    color: #7d8e84;
    border: 1px dashed #cfdcd4;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
}

body.public-home .state-panel strong {
    color: var(--public-ink);
}

body.public-home .loader {
    border-color: rgba(32, 170, 99, 0.14);
    border-top-color: var(--public-green);
}

body.public-home .empty-icon {
    color: var(--public-green);
}

body.public-home .warning-panel {
    color: #9b681e;
    border-color: #efd8b4;
    background: #fff8ec;
}

body.public-home .public-page-shell > footer {
    color: #87968d;
}

body.public-home .auth-dialog {
    width: min(520px, calc(100% - 28px));
    padding: 30px;
    color: var(--public-ink);
    border: 1px solid #dce5df;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 36px 100px rgba(24, 64, 46, 0.22);
}

body.public-home .auth-dialog::backdrop {
    background: rgba(23, 55, 42, 0.34);
    backdrop-filter: blur(8px);
}

body.public-home .auth-dialog .dialog-close {
    color: #829188;
}

body.public-home .auth-dialog .dialog-kicker {
    color: var(--public-green);
}

body.public-home .auth-dialog h2 {
    color: var(--public-ink);
}

body.public-home .auth-tabs {
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--public-line);
    border-radius: 14px;
    background: #f5f8f6;
}

body.public-home .auth-tabs .login-tab {
    color: #718278;
    border: 0;
    background: transparent;
}

body.public-home .auth-tabs .login-tab.active {
    color: #fff;
    background: var(--public-green);
    box-shadow: 0 8px 20px rgba(32, 170, 99, 0.16);
}

body.public-home .auth-form {
    border-color: var(--public-line);
    background: #fafcfb;
}

body.public-home .auth-form label {
    color: #516c5c;
}

body.public-home .auth-form input {
    color: var(--public-ink);
    border-color: #d9e3dc;
    background: #fff;
}

body.public-home .auth-form input:focus {
    border-color: rgba(32, 170, 99, 0.55);
    box-shadow: 0 0 0 4px rgba(32, 170, 99, 0.08);
}

body.public-home .code-field button {
    color: var(--public-green-strong);
    border-color: #bfe0cc;
    background: #edf8f1;
}

body.public-home .sms-login-button {
    color: #fff;
    border: 0;
    background: var(--public-green);
}

body.public-home .login-status {
    color: #6f8276;
    border-color: var(--public-line);
    background: #f7faf8;
}

body.public-home .login-status.is-error {
    color: #b64f4f;
    border-color: #efcccc;
    background: #fff5f5;
}

body.public-home .login-status.is-success {
    color: var(--public-green-strong);
    border-color: #c9e6d4;
    background: #f0faf4;
}

@media (max-width: 1120px) {
    .public-nav__status { display: none; }
    .public-nav__links { margin-left: 42px; }
    body.public-home .event-list { grid-template-columns: 1fr; }
    body.public-home .event-row { grid-template-columns: 110px minmax(0, 1fr) 130px; }
}

@media (max-width: 900px) {
    .public-hero { grid-template-columns: 1fr; }
    .featured-stage { min-height: 350px; }
    .event-browser__head { align-items: stretch; flex-direction: column; }
    body.public-home .toolbar { width: 100%; margin-left: 0; }
    body.public-home .search-box { width: 100%; }
}

@media (max-width: 720px) {
    body.public-home .page-shell.public-page-shell,
    .public-nav__inner { width: min(100% - 24px, 1324px); }

    .public-nav__inner { min-height: 66px; }
    .public-brand > span { flex-basis: 34px; width: 34px; height: 34px; border-radius: 11px; }
    .public-brand strong { font-size: 17px; }
    .public-nav__links { display: none; }
    .public-nav__actions { margin-left: auto; }

    body.public-home .public-nav__actions .account-add-button,
    body.public-home .public-nav__actions .refresh-button {
        min-height: 36px;
        padding: 0 11px;
        border-radius: 10px;
        font-size: 10px;
    }

    .public-hero { margin-top: 18px; border-radius: 23px; }
    .public-hero__copy { padding: 38px 28px; }
    .public-hero h1 { font-size: 48px; }
    .public-hero p { font-size: 13px; }
    .public-hero__actions { align-items: flex-start; flex-direction: column; gap: 12px; }
    .public-hero__primary { width: 100%; }
    .featured-stage { min-height: 330px; }
    .featured-event { width: min(330px, calc(100% - 44px)); }

    body.public-home .platform-switch { justify-content: flex-start; overflow: hidden; }
    body.public-home .platform-tabs { display: flex; grid-template-columns: none; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
    body.public-home .platform-tabs::-webkit-scrollbar { display: none; }
    body.public-home .platform-tab { flex: 0 0 auto; padding: 0 14px; }

    body.public-home .summary-grid { grid-template-columns: 1fr 1fr; }
    body.public-home .summary-card { min-height: 96px; padding: 16px; }
    .event-browser__head h2 { font-size: 21px; }
    body.public-home .toolbar { flex-direction: column; }
    body.public-home .filter-tabs { grid-template-columns: repeat(3, 1fr); }

    body.public-home .drama-header { flex-wrap: nowrap; }
    body.public-home .drama-header__summary { width: auto; margin-left: auto; padding: 0; border: 0; }
    body.public-home .event-row { grid-template-columns: 96px minmax(0, 1fr) 118px; padding: 16px; }

    body.public-home .auth-dialog { padding: 26px 20px; }
    body.public-home .auth-tabs { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
    .public-brand strong { display: none; }
    body.public-home .public-nav__actions .refresh-button span:last-child { display: none; }
    body.public-home .public-nav__actions .refresh-button { width: 38px; padding: 0; }

    .public-hero__copy { padding: 34px 22px; }
    .public-hero h1 { font-size: 41px; }
    .featured-event__time { font-size: 34px; }

    body.public-home .summary-card strong { font-size: 25px; }
    body.public-home .drama-mark { display: grid; flex-basis: 48px; width: 48px; height: 48px; border-radius: 13px; }
    body.public-home .drama-status-chip { align-self: flex-start; }
    body.public-home .event-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "time seat"
            "booker booker"
            "actions actions";
        gap: 14px;
    }
    body.public-home .seat-number { justify-self: end; text-align: right; }
    body.public-home .seat-value { justify-content: flex-end; }
    body.public-home .seat-progress { margin-left: auto; }
    body.public-home .event-actions { padding-top: 10px; border-top: 1px solid #edf1ee; }
    body.public-home .event-actions__buttons { justify-content: stretch; }
    body.public-home .action-link,
    body.public-home .readonly-chip { flex: 1; }

    body.public-home .auth-tabs .login-tab { padding: 0 5px; font-size: 10px; }
    body.public-home .code-field { grid-template-columns: 1fr; }
}

/* User center — light editorial theme */
body.user-center {
    color-scheme: light;
    --bg: #f7f8f4;
    --panel: #ffffff;
    --panel-strong: #ffffff;
    --line: #dfe7e1;
    --text: #17372b;
    --muted: #718378;
    --green: #20aa63;
    --green-strong: #15864c;
    --green-soft: #e8f7ee;
    --yellow: #b7771d;
    --danger: #c95757;
    --shadow: 0 20px 60px rgba(36, 79, 57, 0.08);
    --public-bg: #f7f8f4;
    --public-surface: #ffffff;
    --public-ink: #17372b;
    --public-muted: #718378;
    --public-line: #dfe7e1;
    --public-green: #20aa63;
    --public-green-strong: #15864c;
    --public-green-soft: #e8f7ee;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 84% 5%, rgba(99, 224, 154, 0.16), transparent 25rem),
        linear-gradient(90deg, rgba(35, 92, 64, 0.025) 1px, transparent 1px),
        var(--bg);
    background-size: auto, 70px 70px, auto;
}

body.user-center a,
body.user-center button,
body.user-center input {
    outline-color: var(--green);
}

body.user-center .page-shell.user-center-shell {
    width: min(1324px, calc(100% - 64px));
}

.user-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(32, 80, 57, 0.1);
    background: rgba(252, 253, 250, 0.94);
    backdrop-filter: blur(18px);
}

.user-nav__inner {
    display: flex;
    align-items: center;
    width: min(1324px, calc(100% - 64px));
    min-height: 76px;
    margin: 0 auto;
}

body.user-center .public-brand {
    flex: 0 0 auto;
}

.user-nav__links {
    display: flex;
    align-self: stretch;
    gap: 30px;
    margin-left: 68px;
}

.user-nav__links a {
    position: relative;
    display: flex;
    align-items: center;
    color: #64766b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
}

.user-nav__links a:hover,
.user-nav__links a:focus-visible,
.user-nav__links a.is-active {
    color: var(--text);
}

.user-nav__links a.is-active::after {
    position: absolute;
    right: 25%;
    bottom: 17px;
    left: 25%;
    height: 2px;
    border-radius: 2px;
    background: var(--green);
    content: "";
}

.user-nav__status {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 8px 11px;
    color: #50675a;
    border: 1px solid #dce6df;
    border-radius: 12px;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
}

.user-nav__status #syncText {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-nav__status #updatedAt {
    padding-left: 8px;
    color: #87978e;
    border-left: 1px solid #e2e9e4;
    font-weight: 500;
}

body.user-center .sync-indicator,
body.user-center .platform-dot {
    flex: 0 0 auto;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(32, 170, 99, 0.11);
}

body.user-center .sync-indicator.error {
    background: #df5f5f;
    box-shadow: 0 0 0 4px rgba(223, 95, 95, 0.1);
}

.user-nav__actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: 9px;
}

.user-nav__identity {
    display: block;
    max-width: 180px;
    min-height: 40px;
    padding: 0 14px;
    overflow: hidden;
    color: var(--text);
    border: 1px solid #d7e2da;
    border-radius: 12px;
    background: #fff;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 750;
    line-height: 38px;
    white-space: nowrap;
}

body.user-center .user-nav__actions .refresh-button {
    min-height: 40px;
    padding: 0 15px;
    color: #fff;
    border-radius: 12px;
    background: #173f31;
    box-shadow: 0 10px 24px rgba(23, 63, 49, 0.14);
    font-size: 12px;
}

body.user-center .user-nav__actions .refresh-button:hover {
    background: #245743;
}

.user-heading {
    position: relative;
    display: flex;
    min-height: 126px;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    padding: 28px 30px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.user-heading__copy,
.user-heading .hero__actions {
    position: relative;
    z-index: 2;
}

body.user-center .user-heading .hero__eyebrow {
    margin: 0 0 9px;
    color: var(--green-strong);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.user-heading h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(32px, 4vw, 46px);
    letter-spacing: -0.065em;
}

.user-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.user-heading .hero__actions {
    margin-left: auto;
}

body.user-center .account-add-button {
    min-height: 40px;
    padding: 0 14px;
    color: var(--green-strong);
    border: 1px solid #b7dac4;
    border-radius: 12px;
    background: #f5fbf7;
    box-shadow: none;
    text-decoration: none;
    font-size: 12px;
}

body.user-center .account-add-button:hover {
    border-color: #88c8a0;
    background: #edf8f1;
}

body.user-center .user-admin-link {
    color: #466557;
    border-color: #d7e2da;
    background: #fff;
}

body.user-center .user-logout {
    min-height: auto;
    padding: 8px 0;
    color: #778980;
    border: 0;
    border-bottom: 1px solid #ccd8d0;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
}

.user-heading__orb {
    position: absolute;
    border-radius: 50%;
    background: #dff6e8;
    pointer-events: none;
}

.user-heading__orb--large {
    top: -120px;
    right: 72px;
    width: 210px;
    height: 210px;
    opacity: 0.78;
}

.user-heading__orb--small {
    right: 240px;
    bottom: -80px;
    width: 105px;
    height: 105px;
    opacity: 0.62;
}

.user-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr);
    gap: 16px;
    margin-top: 16px;
}

body.user-center .accounts-panel {
    min-width: 0;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

body.user-center .accounts-panel__header {
    gap: 16px;
    margin-bottom: 15px;
}

body.user-center .section-kicker {
    margin-bottom: 5px;
    color: var(--green);
    font-size: 10px;
    letter-spacing: 0.1em;
}

body.user-center .accounts-panel h2 {
    color: var(--text);
    font-size: 20px;
    letter-spacing: -0.025em;
}

body.user-center .accounts-panel__header p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.user-security-badge {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 0 9px;
    color: var(--green-strong);
    border-radius: 999px;
    background: var(--green-soft);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.user-account-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 13px;
}

body.user-center .account-list {
    grid-template-columns: 1fr;
    gap: 10px;
}

body.user-center .account-list:not(.is-empty) {
    max-height: 270px;
    padding-right: 2px;
    overflow: auto;
}

body.user-center .account-card {
    padding: 14px;
    border: 1px solid #e0e8e2;
    border-radius: 17px;
    background: #fbfdfb;
}

body.user-center .account-card.is-selected {
    border-color: #a9d8bb;
    background: linear-gradient(145deg, #f2fbf5, #fff);
    box-shadow: inset 3px 0 0 var(--green);
}

body.user-center .account-card > header {
    gap: 10px;
}

body.user-center .account-avatar {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 13px;
    background: linear-gradient(145deg, #3ccb7f, #159651);
    font-size: 16px;
}

body.user-center .account-identity strong {
    color: var(--text);
    font-size: 14px;
}

body.user-center .account-identity span {
    color: #84958b;
    font-size: 10px;
}

body.user-center .account-selected-badge {
    color: var(--green-strong);
    border: 0;
    background: var(--green-soft);
    font-size: 10px;
}

body.user-center .account-fields {
    gap: 8px;
    margin-top: 12px;
}

body.user-center .account-field {
    padding: 8px 9px;
    border-left: 2px solid #e0ebe4;
    border-radius: 0;
    background: transparent;
}

body.user-center .account-field span {
    color: #89998f;
    font-size: 10px;
}

body.user-center .account-field strong {
    margin-top: 4px;
    color: #244537;
    font-size: 11px;
}

body.user-center .account-card__actions {
    gap: 6px;
    margin-top: 11px;
}

body.user-center .account-card__action {
    min-height: 29px;
    color: #4a6a58;
    border: 1px solid #d2e2d8;
    border-radius: 9px;
    background: #f6fbf8;
    font-size: 10px;
}

body.user-center .account-card__action.primary {
    color: #fff;
    border-color: var(--green);
    background: var(--green);
}

body.user-center .account-card__action.danger {
    color: #b95252;
    border-color: #eccaca;
    background: #fff7f7;
}

body.user-center .account-empty {
    min-height: 120px;
    color: var(--muted);
    border-color: #bcd8c7;
    background: #fafcfb;
}

body.user-center .account-empty strong {
    color: var(--text);
    font-size: 13px;
}

body.user-center .account-empty span {
    font-size: 11px;
}

.user-account-add {
    display: flex;
    min-height: 134px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #557061;
    border: 1px dashed #b5d5c1;
    border-radius: 17px;
    background: #f8fcf9;
    cursor: pointer;
}

.user-account-add > span {
    display: grid;
    width: 31px;
    height: 31px;
    margin-bottom: 8px;
    place-items: center;
    color: var(--green-strong);
    border-radius: 50%;
    background: #e3f6ea;
    font-size: 18px;
}

.user-account-add strong {
    font-size: 11px;
}

.user-account-add small {
    margin-top: 5px;
    color: #91a097;
    font-size: 10px;
}

body.user-center .account-notice {
    color: #526c5d;
    border-color: #dce5df;
    background: #f8faf9;
}

body.user-center .account-notice.is-success {
    color: var(--green-strong);
    border-color: #c9e6d4;
    background: #eff9f3;
}

body.user-center .account-notice.is-warning,
body.user-center .account-notice.is-error {
    color: #a26b1e;
    border-color: #edd8b8;
    background: #fff8ec;
}

body.user-center .cloud-task-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

body.user-center .cloud-task-list > .account-empty,
body.user-center .cloud-task-list > .account-notice {
    grid-column: 1 / -1;
}

body.user-center .cloud-task-card {
    gap: 8px;
    padding: 12px;
    border-color: #e0e8e2;
    border-radius: 15px;
    background: #fafcfb;
}

body.user-center .cloud-task-card > header strong {
    color: var(--text);
    font-size: 12px;
}

.cloud-task-status {
    display: inline-flex;
    min-height: 20px;
    align-items: center;
    padding: 0 7px;
    color: #64776b;
    border-radius: 999px;
    background: #edf1ee;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.cloud-task-status.is-active,
.cloud-task-status.is-waiting_first_report,
.cloud-task-status.is-claimable,
.cloud-task-status.is-claimed {
    color: var(--green-strong);
    background: var(--green-soft);
}

.cloud-task-status.is-scheduled {
    color: #986414;
    background: #fff4d8;
}

.cloud-task-status.is-needs_login,
.cloud-task-status.is-expired,
.cloud-task-status.is-register_retry,
.cloud-task-status.is-claim_blocked,
.cloud-task-status.is-sold_out {
    color: #a66a17;
    background: #fff2dd;
}

.cloud-task-progress__meta,
.cloud-task-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cloud-task-progress__meta span {
    color: #83948a;
    font-size: 10px;
}

.cloud-task-progress__meta strong {
    color: #27483a;
    font-size: 10px;
}

.cloud-task-progress {
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: #e3ebe6;
}

.cloud-task-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

body.user-center .cloud-task-card p,
body.user-center .cloud-task-card small {
    color: #87968d;
    font-size: 10px;
}

body.user-center .cloud-task-card__footer .account-card__action {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 0 7px;
}

body.user-center .cloud-task-error {
    color: #b45149;
    background: #fff0ef;
}

.user-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

body.user-center .user-summary-strip .summary-card {
    min-height: 92px;
    padding: 18px 20px;
    border: 0;
    border-right: 1px solid #e1e8e3;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

body.user-center .user-summary-strip .summary-card:last-child {
    border-right: 0;
}

body.user-center .user-summary-strip .summary-card::after {
    display: none;
}

body.user-center .user-summary-strip .summary-card--accent {
    background: #edf8f1;
}

body.user-center .summary-card__label {
    margin-bottom: 9px;
    color: #7c8e83;
    font-size: 12px;
}

body.user-center .summary-card strong {
    color: var(--text);
    font-size: 30px;
}

body.user-center .summary-card--accent strong {
    color: var(--green-strong);
}

body.user-center .summary-card small {
    color: #819288;
    font-size: 12px;
}

body.user-center .link-rule-button {
    min-height: 40px;
    padding: 0 13px;
    color: var(--green-strong);
    border: 1px solid #bcdcc8;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.user-event-browser {
    margin-top: 16px;
    scroll-margin-top: 92px;
}

body.user-center .user-event-browser .platform-switch {
    justify-content: flex-start;
    margin: 0 0 12px;
}

body.user-center .platform-tabs {
    gap: 4px;
    padding: 4px;
    border-color: var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}

body.user-center .platform-tab {
    --platform-slider-color: var(--green);
    --platform-slider-shadow: rgba(32, 170, 99, 0.2);
    min-height: 38px;
    gap: 6px;
    padding: 0 12px;
    color: #718278;
    border-radius: 10px;
    font-size: 12px;
}

body.user-center .platform-tab span {
    width: 22px;
    height: 22px;
    color: #0d6f3b;
    border-radius: 6px;
    background: #c4ead3;
    font-size: 12px;
}

body.user-center .platform-tab.active {
    color: #fff;
    background: var(--green);
}

body.user-center .platform-tab.active span {
    color: #08713b;
    background: rgba(255, 255, 255, 0.82);
}

.platform-tabs.has-platform-slider .platform-tab.active {
    background: transparent;
    box-shadow: none;
}

body.user-center .event-browser__head {
    align-items: flex-end;
    margin-bottom: 12px;
}

body.user-center .event-browser__head h2 {
    color: var(--text);
    font-size: 25px;
}

body.user-center .toolbar {
    width: auto;
    margin: 0 0 0 auto;
}

body.user-center .search-box {
    width: 270px;
    min-height: 40px;
    color: #819188;
    border-color: var(--line);
    border-radius: 12px;
    background: #fff;
}

body.user-center .search-box > span {
    font-size: 15px;
}

body.user-center .search-box:focus-within {
    border-color: rgba(32, 170, 99, 0.5);
    box-shadow: 0 0 0 4px rgba(32, 170, 99, 0.08);
}

body.user-center .search-box input {
    color: var(--text);
    font-size: 12px;
}

body.user-center .filter-tabs {
    border-color: var(--line);
    border-radius: 12px;
    background: #fff;
}

body.user-center .filter-tab {
    min-height: 30px;
    padding: 0 10px;
    color: #718278;
    border-radius: 8px;
    font-size: 12px;
}

body.user-center .filter-tab.active {
    color: #fff;
    background: var(--green);
}

body.user-center .event-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

body.user-center .drama-section {
    border-color: var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    backdrop-filter: none;
}

body.user-center .drama-header {
    min-height: 72px;
    padding: 14px 18px;
    border-bottom-color: #e7ece8;
    background: linear-gradient(90deg, #f3faf6, #fff 58%);
}

body.user-center .drama-mark {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 13px;
    background: linear-gradient(145deg, #48cf86, #1a9d59);
    box-shadow: none;
}

body.user-center .drama-mark.is-platform-tencent {
    color: #fff;
    background: linear-gradient(145deg, #65bdf6, #2688d0);
}

body.user-center .drama-mark.is-platform-mgtv {
    color: #fff;
    background: linear-gradient(145deg, #ffb15f, #e67624);
}

body.user-center .drama-mark.is-platform-youku {
    color: #fff;
    background: linear-gradient(145deg, #9b83ed, #6249bd);
}

body.user-center .drama-title {
    color: var(--text);
    font-size: 20px;
}

body.user-center .drama-title:hover {
    color: var(--green-strong);
}

body.user-center .drama-meta {
    color: #819188;
    font-size: 12px;
}

body.user-center .drama-meta__item.is-open {
    color: var(--green-strong);
}

body.user-center .drama-header__summary {
    gap: 14px;
}

body.user-center .drama-header__remaining span {
    color: #819188;
    font-size: 12px;
}

body.user-center .drama-header__remaining strong {
    color: var(--green-strong);
    font-size: 28px;
}

body.user-center .drama-header__remaining small {
    color: #7d8e84;
    font-size: 12px;
}

body.user-center .event-table-head,
body.user-center .event-row {
    grid-template-columns: 165px minmax(175px, 1fr) 205px 180px minmax(340px, 1.45fr);
    gap: 16px;
    padding: 0 18px;
}

body.user-center .event-table-head {
    min-height: 40px;
    color: #819188;
    border-bottom-color: #e9eeea;
    background: #fbfcfb;
    font-size: 14px;
}

body.user-center .event-table-head > span:last-child {
    text-align: center;
}

body.user-center .event-row {
    min-height: 158px;
    border-bottom-color: #edf1ee;
    background: #fff;
}

body.user-center .event-row:hover {
    background: #fbfdfb;
}

body.user-center .event-row.is-open {
    background: linear-gradient(90deg, rgba(32, 170, 99, 0.045), transparent 48%);
    box-shadow: inset 3px 0 0 rgba(32, 170, 99, 0.65);
}

body.user-center .time-main strong {
    color: var(--text);
    font-size: 24px;
}

body.user-center .time-main span {
    color: #84958b;
    font-size: 14px;
}

body.user-center .duration-chip {
    margin-top: 7px;
    padding: 0;
    color: #6f8177;
    background: transparent;
    font-size: 14px;
    line-height: 1.45;
}

.event-seat-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
}

body.user-center .event-seat-summary .seat-value {
    gap: 3px;
}

body.user-center .event-seat-summary .seat-value strong {
    color: var(--green-strong);
    font-size: 18px;
}

body.user-center .event-seat-summary .seat-value span {
    color: #84958b;
    font-size: 13px;
}

body.user-center .event-seat-summary .seat-progress {
    width: 52px;
    height: 3px;
    margin: 0;
    background: #e3ebe6;
}

body.user-center .booker-name {
    color: var(--text);
    font-size: 16px;
}

.booker-event-meta {
    display: grid;
    gap: 7px;
    margin-top: 8px;
}

body.user-center .booker-event-meta .duration-chip,
body.user-center .booker-event-meta .event-seat-summary {
    margin-top: 0;
}

.participation-progress,
.participation-stage-cell {
    min-width: 0;
}

.participation-progress__text {
    display: block;
    overflow: hidden;
    color: #65796d;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.6;
}

.participation-progress__text.is-watching,
.participation-progress__text.is-claimable,
.participation-progress__text.is-claimed {
    color: var(--green-strong);
}

.participation-progress__text.is-loading {
    color: #a66a17;
}

.participation-progress__text.is-error {
    color: #b95050;
}

.participation-progress__track {
    display: block;
    width: min(125px, 100%);
    height: 4px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: #e3ebe6;
}

.participation-progress__track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
    transition: width 220ms ease;
}

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

body.user-center .status-pill {
    min-height: 30px;
    padding: 0 11px;
    color: var(--green-strong);
    border: 0;
    background: var(--green-soft);
    font-size: 13px;
}

body.user-center .status-pill.upcoming {
    color: #a66a17;
    background: #fff3dd;
}

body.user-center .countdown {
    margin: 0;
    color: #819188;
    font-size: 13px;
    line-height: 1.45;
}

body.user-center .participation-status {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    align-items: center;
    margin-top: 7px;
    padding: 0 10px;
    color: #65796d;
    border-radius: 999px;
    background: #eef2ef;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

body.user-center .participation-status.is-watching,
body.user-center .participation-status.is-claimable,
body.user-center .participation-status.is-claimed {
    color: var(--green-strong);
    background: var(--green-soft);
}

body.user-center .participation-status.is-loading {
    color: #a66a17;
    background: #fff3dd;
}

body.user-center .participation-status.is-error {
    color: #b95050;
    background: #fff0f0;
}

body.user-center .event-actions {
    gap: 6px;
}

body.user-center .event-actions__buttons {
    justify-content: center;
    gap: 7px;
}

body.user-center .action-link,
body.user-center .readonly-chip {
    min-height: 42px;
    padding: 0 15px;
    color: #47705a;
    border-color: #d1e2d7;
    border-radius: 9px;
    background: #f6fbf8;
    font-size: 14px;
}

body.user-center .action-link:hover {
    border-color: #9acdad;
    background: #edf8f1;
}

body.user-center .action-link.primary {
    color: #fff;
    border-color: var(--green);
    background: var(--green);
}

body.user-center .action-link.report-action {
    color: #3970a0;
    border-color: #c8dced;
    background: #f3f8fc;
}

body.user-center .action-link.prestart-monitor-action {
    color: #986414;
    border-color: #ebd39d;
    background: #fff9e9;
}

body.user-center .action-link.prestart-monitor-action[data-submitted="true"] {
    color: var(--green-strong);
    border-color: #b8dec7;
    background: var(--green-soft);
}

body.user-center .action-link.report-max-action {
    color: #986414;
    border-color: #ebd39d;
    background: #fff9e9;
}

body.user-center .action-link.monitor-action[data-submitted="true"] {
    color: var(--green-strong);
    border-color: #b8dec7;
    background: var(--green-soft);
}

body.user-center .readonly-chip.is-platform-tencent {
    color: #3977a8;
    border-color: #c8e1f2;
    background: #f2f8fc;
}

body.user-center .readonly-chip.is-platform-mgtv {
    color: #a4601d;
    border-color: #f0d4b5;
    background: #fff8ef;
}

body.user-center .readonly-chip.is-platform-youku {
    color: #7d519d;
    border-color: #dfcdec;
    background: #faf6fc;
}

body.user-center .claim-result {
    color: #8c651e;
    border-color: #ecd7b5;
    background: #fff9ef;
}

body.user-center .claim-result.is-success {
    color: var(--green-strong);
    border-color: #c5e4d1;
    background: #eff9f3;
}

body.user-center .claim-result pre {
    color: #435c4e;
    background: #f1f5f2;
}

body.user-center .state-panel {
    min-height: 280px;
    color: #7d8e84;
    border-color: #cfdcd4;
    background: rgba(255, 255, 255, 0.82);
}

body.user-center .state-panel strong {
    color: var(--text);
}

body.user-center .loader {
    border-color: rgba(32, 170, 99, 0.14);
    border-top-color: var(--green);
}

body.user-center .warning-panel {
    color: #9b681e;
    border-color: #efd8b4;
    background: #fff8ec;
}

body.user-center footer {
    color: #819188;
}

body.user-center .link-dialog,
body.user-center .account-dialog {
    color: var(--text);
    border: 1px solid #dce5df;
    background: #fff;
    box-shadow: 0 36px 100px rgba(24, 64, 46, 0.22);
}

body.user-center .link-dialog::backdrop,
body.user-center .account-dialog::backdrop {
    background: rgba(23, 55, 42, 0.34);
    backdrop-filter: blur(8px);
}

body.user-center .dialog-close {
    color: #829188;
}

body.user-center .dialog-kicker {
    color: var(--green);
}

body.user-center .link-dialog dl > div,
body.user-center .login-panel,
body.user-center .qr-login-box,
body.user-center .sms-login-launch {
    border-color: var(--line);
    background: #fafcfb;
}

body.user-center .link-dialog dd,
body.user-center .account-dialog__lead,
body.user-center .qr-login-copy ol,
body.user-center .sms-login-launch__copy p,
body.user-center .sms-login-steps,
body.user-center .login-security-note {
    color: var(--muted);
}

body.user-center .login-tabs {
    border-color: var(--line);
    background: #f4f7f5;
}

body.user-center .login-tab {
    color: #6e8076;
    border-color: transparent;
    background: transparent;
}

body.user-center .login-tab.active {
    color: #fff;
    border-color: var(--green);
    background: var(--green);
}

body.user-center .qr-image-wrap {
    border-color: #dce5df;
    background: #fff;
}

body.user-center .qr-login-copy strong,
body.user-center .sms-login-launch__copy strong {
    color: var(--text);
}

body.user-center .sms-login-launch__mark {
    color: var(--green-strong);
    border-color: #c2dfcc;
    background: var(--green-soft);
}

body.user-center .sms-login-button {
    color: #fff;
    border-color: var(--green);
    background: var(--green);
}

body.user-center .login-status {
    color: #6f8276;
    border-color: var(--line);
    background: #f7faf8;
}

body.user-center .login-status.is-scanned,
body.user-center .login-status.is-success {
    color: var(--green-strong);
    border-color: #c9e6d4;
    background: #f0faf4;
}

body.user-center .login-status.is-error {
    color: #b64f4f;
    border-color: #efcccc;
    background: #fff5f5;
}

body.user-center .login-security-note strong {
    color: var(--green-strong);
}

@media (max-width: 1120px) {
    .user-nav__status #updatedAt { display: none; }
    .user-nav__status #syncText { max-width: 130px; }
    .user-nav__links { margin-left: 42px; }
    .user-dashboard { grid-template-columns: 1fr; }
    body.user-center .cloud-task-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .user-summary-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    body.user-center .event-table-head,
    body.user-center .event-row { grid-template-columns: 150px minmax(130px, 1fr) 170px 150px minmax(285px, 1.25fr); }
    body.user-center .event-table-head { display: none; }
    body.user-center .event-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "time booker"
            "progress stage"
            "actions actions";
        gap: 22px 26px;
        min-height: 0;
        padding: 22px;
    }
    body.user-center .event-time { grid-area: time; }
    body.user-center .booker-cell { grid-area: booker; }
    body.user-center .participation-progress { grid-area: progress; }
    body.user-center .participation-stage-cell { grid-area: stage; }
    body.user-center .event-actions { grid-area: actions; padding-top: 17px; border-top: 1px solid #e8eeea; }
    body.user-center .cell-label { display: block; margin-bottom: 9px; color: #819188; font-size: 13px; }
    body.user-center .event-actions__buttons { justify-content: center; }
}

@media (max-width: 900px) {
    .user-nav__status { display: none; }
    .user-nav__identity { max-width: 145px; }
    body.user-center .page-shell.user-center-shell,
    .user-nav__inner { width: min(100% - 32px, 1324px); }
    .user-heading { align-items: flex-start; flex-direction: column; }
    .user-heading .hero__actions { margin-left: 0; }
    body.user-center .cloud-task-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.user-center .event-browser__head { align-items: stretch; flex-direction: column; }
    body.user-center .toolbar { width: 100%; margin-left: 0; }
    body.user-center .search-box { width: 100%; }
    body.user-center .event-table-head { display: none; }
    body.user-center .event-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "time booker"
            "progress stage"
            "actions actions";
        gap: 18px 22px;
        min-height: 0;
        padding: 18px;
    }
    body.user-center .event-time { grid-area: time; }
    body.user-center .booker-cell { grid-area: booker; }
    body.user-center .participation-progress { grid-area: progress; }
    body.user-center .participation-stage-cell { grid-area: stage; }
    body.user-center .event-actions { grid-area: actions; padding-top: 14px; border-top: 1px solid #e8eeea; }
    body.user-center .cell-label { display: block; margin-bottom: 8px; color: #819188; font-size: 13px; }
    body.user-center .event-actions__buttons { justify-content: center; }
}

@media (max-width: 720px) {
    .user-nav__inner { min-height: 66px; }
    .user-nav__links { display: none; }
    .user-nav__actions { margin-left: auto; }
    .user-nav__identity { display: none; }
    body.user-center .user-nav__actions .refresh-button { min-height: 36px; padding: 0 11px; }
    .user-heading { min-height: 0; margin-top: 18px; padding: 24px 20px; border-radius: 22px; }
    .user-heading h1 { font-size: 36px; }
    .user-heading .hero__actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    body.user-center .user-admin-link { grid-column: 1 / -1; }
    body.user-center .user-logout { align-self: center; }
    body.user-center .accounts-panel { padding: 17px; }
    body.user-center .accounts-panel__header { align-items: flex-start; flex-direction: row; }
    .user-account-content { grid-template-columns: 1fr; }
    .user-account-add { min-height: 96px; }
    body.user-center .account-list:not(.is-empty) { max-height: none; }
    body.user-center .cloud-task-list { grid-template-columns: 1fr; }
    .user-summary-strip { grid-template-columns: 1fr 1fr; }
    body.user-center .user-summary-strip .summary-card { min-height: 84px; border-bottom: 1px solid #e1e8e3; }
    body.user-center .user-summary-strip .summary-card:nth-child(2n) { border-right: 0; }
    body.user-center .platform-switch { overflow: hidden; }
    body.user-center .platform-tabs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
    body.user-center .platform-tabs::-webkit-scrollbar { display: none; }
    body.user-center .platform-tab { flex: 0 0 auto; }
    body.user-center .toolbar { flex-direction: column; }
    body.user-center .filter-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
    body.user-center .link-rule-button { width: 100%; }
    body.user-center .drama-header { align-items: flex-start; flex-wrap: wrap; }
    body.user-center .drama-header__summary { width: calc(100% - 58px); justify-content: space-between; margin-left: 58px; padding-top: 12px; border-top: 1px solid #e3ebe6; }
    body.user-center .drama-header__remaining { text-align: left; }
    body.user-center .account-dialog { padding: 24px 18px; }
}

@media (max-width: 520px) {
    body.user-center .page-shell.user-center-shell,
    .user-nav__inner { width: min(100% - 22px, 1324px); }
    body.user-center .public-brand strong { font-size: 17px; }
    body.user-center .user-nav__actions .refresh-button span:last-child { display: none; }
    body.user-center .user-nav__actions .refresh-button { width: 38px; padding: 0; }
    .user-heading h1 { font-size: 32px; }
    .user-heading p { font-size: 13px; }
    body.user-center .accounts-panel__header { flex-direction: column; }
    body.user-center .account-fields { grid-template-columns: 1fr; }
    body.user-center .account-field { padding: 6px 8px; }
    body.user-center .event-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "time"
            "booker"
            "progress"
            "stage"
            "actions";
        gap: 15px;
    }
    body.user-center .event-actions__buttons { display: grid; grid-template-columns: 1fr 1fr; }
    body.user-center .action-link,
    body.user-center .readonly-chip { width: 100%; }
    body.user-center .drama-mark { width: 48px; height: 50px; }
    body.user-center .drama-header__summary { width: 100%; margin-left: 0; }
    body.user-center .drama-header__actions { gap: 5px; }
}
