:root {
    --bg: #f5f7fa;
    --bg-deep: #eef2f6;
    --bg-ink: #1f2023;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-strong: #ffffff;
    --surface-dark: #2a2c31;
    --surface-dark-soft: #23252a;
    --line: #f0f2f5;
    --line-strong: #e5e6eb;
    --text: #1d2129;
    --muted: #86909c;
    --muted-strong: #4e5969;
    --brand: #1677ff;
    --brand-strong: #0e5fd8;
    --brand-soft: rgba(22, 119, 255, 0.10);
    --teal: #00b42a;
    --teal-soft: rgba(0, 180, 42, 0.12);
    --danger: #b8452e;
    --danger-soft: rgba(184, 69, 46, 0.12);
    --success: #2d7a52;
    --success-soft: rgba(45, 122, 82, 0.12);
    --shadow-xl: 0 12px 32px rgba(31, 35, 41, 0.08);
    --shadow-lg: 0 4px 12px rgba(31, 35, 41, 0.08);
    --shadow-md: 0 2px 8px rgba(31, 35, 41, 0.06);
    --shadow-sm: 0 1px 3px rgba(31, 35, 41, 0.06);
    --focus-ring: 0 0 0 4px rgba(22, 119, 255, 0.12);
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --sidebar-width: 286px;
    --sidebar-collapsed-width: 108px;
    --network-banner-offset: 0px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    position: relative;
    overflow-x: hidden;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    color: var(--text);
    background: var(--bg);
}

body.modal-open {
    overflow: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: -2;
}

body::before {
    top: -180px;
    right: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 119, 255, 0.10), rgba(22, 119, 255, 0) 68%);
    filter: blur(8px);
    opacity: 0.2;
}

body::after {
    bottom: -220px;
    left: -160px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 42, 0.08), rgba(0, 180, 42, 0) 70%);
    filter: blur(18px);
    opacity: 0.12;
}

[hidden] {
    display: none !important;
}

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

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

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

button {
    cursor: pointer;
}

button,
input,
select,
textarea {
    border: 0;
    outline: none;
}

textarea,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="file"],
select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--text);
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.editor-panel [data-auto-field-width] {
    max-width: 100%;
}

textarea {
    min-height: 124px;
    resize: vertical;
}

input[type="color"] {
    width: 100%;
    min-height: 46px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="file"]:focus,
input[type="color"]:focus,
select:focus {
    border-color: rgba(22, 119, 255, 0.52);
    box-shadow: var(--focus-ring), 0 1px 3px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.password-field-wrap {
    position: relative;
}

.password-field-wrap input[type="password"],
.password-field-wrap input[type="text"] {
    padding-right: 88px;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--muted-strong);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
    z-index: 1;
}

.password-toggle-btn:hover {
    transform: translateY(calc(-50% - 1px));
    box-shadow: var(--shadow-md);
}

.password-toggle-btn:focus-visible {
    box-shadow: var(--focus-ring), var(--shadow-sm);
}

.password-toggle-btn[aria-pressed="true"] {
    background: rgba(22, 119, 255, 0.08);
    border-color: rgba(22, 119, 255, 0.2);
    color: var(--brand);
}

.password-toggle-btn span {
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

label {
    display: block;
}

label > span,
.upload-row strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.global-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.backdrop-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.14;
}

.backdrop-orb.orb-one {
    top: 80px;
    left: 16%;
    width: 180px;
    height: 180px;
    background: rgba(203, 102, 40, 0.12);
}

.backdrop-orb.orb-two {
    top: 34%;
    right: 10%;
    width: 220px;
    height: 220px;
    background: rgba(15, 107, 104, 0.10);
}

.backdrop-orb.orb-three {
    bottom: 10%;
    left: 42%;
    width: 160px;
    height: 160px;
    background: rgba(203, 102, 40, 0.08);
}

.hero-chip,
.hero-tag,
.status-pill,
.filter-chip,
.device-btn,
.upload-btn,
.table-actions a {
    -webkit-tap-highlight-color: transparent;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand);
    border: 1px solid rgba(22, 119, 255, 0.14);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-actions,
.preview-actions,
.device-switch,
.inline-actions,
.table-actions,
.status-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-actions.wrap,
.inline-actions,
.table-actions,
.status-filter,
.device-switch {
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.text-link,
.filter-chip,
.device-btn,
.upload-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.text-link,
.device-btn,
.upload-btn,
.mobile-nav-toggle,
.table-actions a {
    gap: 8px;
}

.primary-btn {
    color: #fff;
    background: var(--brand);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.14);
}

.secondary-btn,
.danger-btn,
.device-btn,
.upload-btn,
.filter-chip {
    color: var(--text);
    background: #ffffff;
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.danger-btn {
    color: var(--danger);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(184, 69, 46, 0.24);
}

.text-link {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    color: var(--brand-strong);
    background: transparent;
    border: 0;
    font-weight: 700;
}

.text-link::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0.4);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.danger-btn:hover,
.device-btn:hover,
.upload-btn:hover,
.filter-chip:hover,
.table-actions a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.text-link:hover::after {
    transform: scaleX(1);
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.danger-btn:focus-visible,
.device-btn:focus-visible,
.upload-btn:focus-visible,
.filter-chip:focus-visible,
.text-link:focus-visible {
    box-shadow: var(--focus-ring), var(--shadow-sm);
}

button:disabled,
.primary-btn:disabled,
.secondary-btn:disabled,
.danger-btn:disabled,
.upload-btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.disabled-btn {
    opacity: 0.56;
    pointer-events: none;
}

.danger-text-link {
    color: var(--danger);
}

.danger-text-link::after {
    background: currentColor;
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    line-height: 1.6;
}

.flash .ui-icon {
    margin-top: 2px;
}

.flash-content {
    min-width: 0;
    flex: 1 1 auto;
}

.flash-success {
    background: var(--success-soft);
    color: var(--success);
    border-color: rgba(45, 122, 82, 0.20);
}

.flash-error {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: rgba(184, 69, 46, 0.20);
}

.network-status-banner {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    left: 50%;
    z-index: 70;
    width: min(calc(100% - 24px), 720px);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 28px));
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.network-status-banner.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.network-status-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    text-align: left;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(16px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.network-status-banner-inner:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(31, 35, 41, 0.12);
}

.network-status-banner-inner:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring), var(--shadow-xl);
}

.network-status-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    flex: 0 0 auto;
}

.network-status-banner-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 3px;
}

.network-status-banner-copy strong {
    font-size: 14px;
    line-height: 1.35;
}

.network-status-banner-copy small {
    color: inherit;
    opacity: 0.88;
    font-size: 12px;
    line-height: 1.5;
}

.network-status-banner-cta {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex: 0 0 auto;
}

.network-status-banner[data-state="offline"] .network-status-banner-inner {
    background: linear-gradient(180deg, rgba(255, 246, 244, 0.98), rgba(255, 238, 235, 0.98));
    color: var(--danger);
    border-color: rgba(184, 69, 46, 0.18);
}

.network-status-banner[data-state="offline"] .network-status-banner-icon,
.network-status-banner[data-state="offline"] .network-status-banner-cta {
    background: rgba(255, 255, 255, 0.82);
}

.network-status-banner[data-state="online"] .network-status-banner-inner {
    background: linear-gradient(180deg, rgba(239, 252, 245, 0.98), rgba(229, 248, 237, 0.98));
    color: var(--success);
    border-color: rgba(45, 122, 82, 0.18);
}

.network-status-banner[data-state="online"] .network-status-banner-icon,
.network-status-banner[data-state="online"] .network-status-banner-cta {
    background: rgba(255, 255, 255, 0.78);
}

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 24px;
    min-height: 100vh;
    padding: 20px;
    align-items: stretch;
    transition: grid-template-columns 0.24s ease;
}

.sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    height: calc(100vh - 40px);
    padding: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line-strong);
    overflow: auto;
    transition: padding 0.24s ease, border-radius 0.24s ease;
}

.sidebar-top {
    display: grid;
    gap: 16px;
}

.sidebar-desktop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-desktop-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-toggle-btn {
    flex: 0 0 auto;
    transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.sidebar-mobile-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-mobile-head strong {
    font-size: 16px;
    line-height: 1.35;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), #5ba6ff);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 6px 16px rgba(22, 119, 255, 0.20);
}

.sidebar-brand strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    line-height: 1.3;
}

.brand-kicker {
    display: block;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sidebar-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-note span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f7f8fa;
    color: var(--muted-strong);
    font-size: 12px;
}

.sidebar-nav {
    display: grid;
    gap: 10px;
    margin: 28px 0 auto;
}

.sidebar-nav a {
    position: relative;
    display: grid;
    grid-template-columns: 20px 1fr;
    column-gap: 12px;
    row-gap: 4px;
    min-height: 68px;
    padding: 14px 18px;
    border-radius: 12px;
    color: var(--muted-strong);
    background: transparent;
    border: 1px solid transparent;
    transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.sidebar-nav a::after {
    content: "";
    position: absolute;
    inset: 12px auto 12px 0;
    width: 4px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.24s ease;
}

.nav-icon {
    grid-row: 1 / span 2;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.sidebar-nav a span {
    font-size: 16px;
    font-weight: 700;
}

.sidebar-nav a small {
    color: var(--muted);
    font-size: 12px;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    transform: translateX(0);
    background: #f2f7ff;
    border-color: #dbeafe;
    color: var(--brand);
}

.sidebar-nav a.active::after,
.sidebar-nav a:hover::after {
    background: linear-gradient(180deg, var(--brand), var(--brand-strong));
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
    box-shadow: 0 8px 20px rgba(22, 119, 255, 0.18);
}

.sidebar-nav a.active small {
    color: rgba(255, 255, 255, 0.74);
}

.sidebar-user {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f7f8fa;
    border: 1px solid var(--line-strong);
}

.sidebar-user small,
.sidebar-user span {
    color: var(--muted);
}

.sidebar-user-name {
    font-size: 18px;
    font-weight: 700;
}

.sidebar-user-email {
    color: var(--muted-strong);
    word-break: break-all;
}

.sidebar-user-actions {
    margin-top: 6px;
}

.main-content {
    min-width: 0;
    min-height: 0;
    height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 4px 6px 32px 0;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

.main-content-inner {
    max-width: 1520px;
    display: grid;
    gap: 20px;
    padding-bottom: 4px;
}

@media (min-width: 821px) {
    body.app-body:not(.modal-open) {
        overflow: hidden;
    }

    .app-topbar {
        position: sticky;
        top: var(--network-banner-offset, 0px);
        z-index: 12;
        backdrop-filter: blur(14px);
        transition: top 0.24s ease;
    }

    body.sidebar-collapsed .app-shell {
        grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
    }

    body.sidebar-collapsed .sidebar {
        padding: 18px 12px;
    }

    body.sidebar-collapsed .sidebar-desktop-head {
        justify-content: center;
    }

    body.sidebar-collapsed .sidebar-desktop-label,
    body.sidebar-collapsed .sidebar-brand > div,
    body.sidebar-collapsed .sidebar-note,
    body.sidebar-collapsed .sidebar-nav a > span:not(.nav-icon),
    body.sidebar-collapsed .sidebar-nav a small,
    body.sidebar-collapsed .sidebar-user small,
    body.sidebar-collapsed .sidebar-user-name,
    body.sidebar-collapsed .sidebar-user-email,
    body.sidebar-collapsed .sidebar-user > span {
        display: none;
    }

    body.sidebar-collapsed .sidebar-top {
        gap: 14px;
        justify-items: center;
    }

    body.sidebar-collapsed .sidebar-brand {
        justify-content: center;
        width: 100%;
    }

    body.sidebar-collapsed .sidebar-nav {
        width: 100%;
        gap: 8px;
    }

    body.sidebar-collapsed .sidebar-nav a {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 60px;
        padding: 14px 12px;
    }

    body.sidebar-collapsed .sidebar-nav a::after {
        inset: auto 12px 0 12px;
        width: auto;
        height: 4px;
    }

    body.sidebar-collapsed .nav-icon {
        grid-row: auto;
    }

    body.sidebar-collapsed .sidebar-user {
        justify-items: center;
        padding: 12px 10px;
    }

    body.sidebar-collapsed .sidebar-user-actions {
        margin-top: 0;
    }

    body.sidebar-collapsed .sidebar-user-actions .secondary-btn {
        min-width: 0;
        padding: 0 10px;
    }

    body.sidebar-collapsed .sidebar-user-actions .secondary-btn span {
        display: none;
    }

    body.sidebar-collapsed .sidebar-toggle-btn {
        transform: rotate(180deg);
    }
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
    box-shadow: var(--shadow-sm);
}

.app-topbar-copy {
    display: grid;
    gap: 4px;
}

.app-topbar-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.app-topbar-copy strong {
    font-size: 20px;
    line-height: 1.3;
}

.app-topbar-actions,
.mobile-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.theme-mode-switch {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.theme-mode-btn {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: transparent;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-mode-btn.active {
    background: var(--brand-soft);
    color: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.08);
}

.page-header,
.page-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.86fr);
    gap: 20px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.96));
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-xl);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 119, 255, 0.08), rgba(22, 119, 255, 0) 68%);
}

.page-hero-main,
.page-hero-side {
    position: relative;
    z-index: 1;
}

.page-hero h1,
.auth-card h1,
.setup-card h1 {
    margin: 12px 0 12px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-family: "STZhongsong", "Songti SC", "Times New Roman", serif;
}

.page-hero p,
.auth-card p,
.setup-card p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.72;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f7f8fa;
    color: var(--muted-strong);
    border: 1px solid var(--line-strong);
    font-size: 13px;
    font-weight: 700;
}

.page-hero-side {
    display: flex;
}

.hero-side-card {
    position: relative;
    width: 100%;
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line-strong);
}

.hero-side-card .page-actions {
    margin-top: 2px;
}

.side-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-side-card > strong {
    font-size: 26px;
    line-height: 1.22;
    font-family: "STZhongsong", "Songti SC", "Times New Roman", serif;
}

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

.hero-side-list > div {
    padding: 14px;
    border-radius: 12px;
    background: #f7f8fa;
    border: 1px solid var(--line-strong);
}

.hero-side-list span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.hero-side-list strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
    line-height: 1;
    font-family: "STZhongsong", "Songti SC", serif;
}

.stats-grid,
.dashboard-grid,
.report-ticket-grid {
    display: grid;
    gap: 18px;
}

.quick-entry-grid,
.verify-summary-grid,
.verify-check-grid {
    display: grid;
    gap: 16px;
}

.quick-entry-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quick-entry-card {
    display: grid;
    gap: 10px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 253, 0.96));
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-entry-card strong {
    font-size: 18px;
    line-height: 1.35;
}

.quick-entry-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.quick-entry-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(22, 119, 255, 0.18);
}

.dashboard-filter-form {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.dashboard-mobile-toolbar {
    display: none;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 253, 0.98));
}

.dashboard-mobile-search {
    display: grid;
    gap: 10px;
}

.dashboard-mobile-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 10px;
}

.dashboard-mobile-toolbar-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-mobile-filter-trigger {
    flex: 0 0 auto;
    width: auto;
}

.dashboard-filter-summary {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(22, 119, 255, 0.16);
    background: linear-gradient(180deg, rgba(232, 243, 255, 0.72), rgba(255, 255, 255, 0.98));
}

.mobile-project-list {
    display: none;
}

.batch-export-toolbar {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 125, 0, 0.18);
    background: linear-gradient(180deg, rgba(255, 244, 232, 0.72), rgba(255, 255, 255, 0.98));
}

.batch-export-toolbar-copy {
    display: grid;
    gap: 6px;
}

.batch-export-toolbar-copy strong {
    font-size: 16px;
    line-height: 1.35;
}

.batch-export-toolbar-copy span,
.batch-export-selection-preview {
    color: var(--muted);
    line-height: 1.7;
}

.batch-export-modal-card {
    width: min(760px, 100%);
}

.batch-export-modal-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.batch-export-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.batch-export-choice {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 253, 0.98));
    text-align: left;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.batch-export-choice strong {
    font-size: 17px;
    line-height: 1.35;
}

.batch-export-choice span {
    color: var(--muted);
    line-height: 1.7;
}

.batch-export-choice:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(22, 119, 255, 0.18);
}

.batch-export-choice:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    box-shadow: none;
}

.batch-export-selection-preview {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.98));
}

.export-filename-modal-card {
    width: min(720px, 100%);
}

.export-filename-field {
    display: grid;
    gap: 10px;
}

.export-filename-field > span {
    margin: 0;
}

.export-filename-field input {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.inline-field-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-bottom: 16px;
}

.inline-field-strip-basic {
    margin-bottom: 14px;
}

.filing-inline-strip {
    margin-top: 4px;
}

.inline-field-strip label:not(.checkbox-row) {
    display: grid;
    grid-template-columns: auto auto;
    gap: 14px;
    align-items: center;
    width: fit-content;
    max-width: 100%;
}

.inline-field-strip label:not(.checkbox-row) > span {
    margin: 0;
    white-space: nowrap;
}

.inline-field-strip label:not(.checkbox-row) .field-feedback {
    grid-column: 2;
}

.inline-field-strip .editor-advanced-field:not(.field-inline-auto) {
    min-width: 280px;
}

.inline-field-strip [data-auto-field-width] {
    width: auto;
    justify-self: start;
}

.dashboard-filter-sheet-copy {
    display: grid;
    gap: 6px;
}

.dashboard-filter-sheet-copy span {
    color: var(--muted);
    line-height: 1.65;
}

.dashboard-filter-sheet-actions {
    margin-top: 2px;
}

.batch-import-form {
    gap: 16px;
}

.batch-import-dropzone {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed rgba(22, 119, 255, 0.28);
    background: linear-gradient(180deg, rgba(232, 243, 255, 0.72), rgba(255, 255, 255, 0.98));
}

.batch-import-dropzone-copy {
    display: grid;
    gap: 6px;
}

.batch-import-dropzone-copy strong {
    font-size: 16px;
    line-height: 1.35;
}

.batch-import-dropzone-copy span {
    color: var(--muted);
    line-height: 1.7;
}

.batch-import-file-meta {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.98));
}

.batch-import-summary {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(22, 119, 255, 0.16);
    background: linear-gradient(180deg, rgba(232, 243, 255, 0.72), rgba(255, 255, 255, 0.98));
}

.project-mobile-card,
.archived-project-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 253, 0.96));
    box-shadow: var(--shadow-sm);
}

.project-mobile-swipe {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    --mobile-swipe-actions-width: 156px;
}

.project-mobile-swipe-actions {
    display: none;
    position: absolute;
    inset: 0 0 0 auto;
    width: var(--mobile-swipe-actions-width);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 250, 0.98));
}

.project-mobile-swipe-actions form {
    display: flex;
    min-width: 0;
    margin: 0;
}

.project-mobile-swipe-content {
    position: relative;
    z-index: 1;
    transition: transform 0.22s ease;
    will-change: transform;
}

.mobile-swipe-action {
    width: 100%;
    min-height: 100%;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 14px;
    border: 1px solid transparent;
    color: #ffffff;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.mobile-swipe-action-archive {
    background: linear-gradient(180deg, var(--brand), var(--brand-strong));
}

.mobile-swipe-action-restore {
    background: linear-gradient(180deg, var(--success), #1f8b5a);
}

.mobile-swipe-action-restore .ui-icon,
.mobile-swipe-action-archive .ui-icon,
.mobile-swipe-action-delete .ui-icon {
    opacity: 0.96;
}

.mobile-swipe-action-delete {
    background: linear-gradient(180deg, #d96a52, var(--danger));
}

.project-mobile-swipe-hint {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.project-select-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f7f8fa;
    border: 1px solid var(--line-strong);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 700;
}

.project-select-toggle input,
.table-select-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.project-mobile-meta {
    display: grid;
    gap: 10px;
}

.project-mobile-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted-strong);
}

.project-mobile-meta strong {
    font-size: 13px;
    color: var(--muted);
}

.project-mobile-meta span {
    text-align: right;
    word-break: break-word;
}

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

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

.stat-card,
.dashboard-panel,
.auth-card,
.setup-card,
.form-section,
.preview-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, var(--surface-strong), var(--surface));
    box-shadow: var(--shadow-lg);
}

.stat-card::before,
.dashboard-panel::before,
.form-section::before,
.preview-panel::before,
.auth-card::before,
.setup-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.18));
}

.stat-card {
    padding: 20px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--brand), rgba(22, 119, 255, 0.18));
}

.stat-card:hover,
.dashboard-panel:hover,
.form-section:hover,
.preview-panel:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    margin-top: 14px;
    font-size: clamp(30px, 2.4vw, 40px);
    line-height: 1;
    font-family: "STZhongsong", "Songti SC", serif;
}

.stat-card-foot {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

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

.dashboard-panel,
.preview-panel,
.form-section,
.auth-card,
.setup-card {
    padding: 22px;
}

.span-12 { grid-column: 1 / -1; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }

.panel-header,
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.panel-header h2,
.section-head h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    font-family: "STZhongsong", "Songti SC", serif;
}

.panel-header span,
.section-head span,
.empty-state,
.table-subtext,
.upload-hint,
.report-summary,
.preview-frame-caption {
    color: var(--muted);
    font-size: 14px;
}

.panel-chip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: -4px 0 16px;
}

.panel-chip,
.mini-chip,
.mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.panel-chip {
    background: #f7f8fa;
    color: var(--muted-strong);
    border-color: var(--line-strong);
}

.panel-chip-neutral,
.mini-pill-neutral {
    background: #f2f3f5;
    color: #4e5969;
    border-color: #e6e8eb;
}

.panel-chip-info,
.mini-pill-info {
    background: #e8f3ff;
    color: #1677ff;
    border-color: #cfe4ff;
}

.panel-chip-success,
.mini-pill-success,
.mini-pill-low {
    background: #e7f7ed;
    color: #00b42a;
    border-color: #cdeed6;
}

.panel-chip-warning,
.mini-pill-warning,
.mini-pill-medium,
.mini-pill-high {
    background: #fff4e8;
    color: #ff7d00;
    border-color: #ffe4c4;
}

.mini-chip {
    background: #f7f8fa;
    color: var(--muted-strong);
    border-color: var(--line-strong);
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.panel-header-spaced {
    margin-top: 26px;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
}

.data-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.data-table thead th {
    padding: 14px 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
    background: #fafbfc;
}

.data-table td {
    padding: 16px 12px;
    border-top: 1px solid var(--line);
    vertical-align: top;
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: #f7faff;
}

.table-subtext {
    margin-top: 6px;
}

.table-project,
.table-template,
.table-domain {
    display: grid;
    gap: 8px;
}

.table-project strong,
.table-template strong,
.table-domain strong {
    line-height: 1.45;
}

.table-project-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-actions {
    color: var(--brand-strong);
}

.table-select-col,
.table-select-cell {
    width: 92px;
    text-align: center;
}

.table-select-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f7f8fa;
    border: 1px solid var(--line-strong);
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 700;
}

.table-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.08);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 107, 104, 0.12);
    color: var(--teal);
    border: 1px solid rgba(15, 107, 104, 0.16);
    font-size: 13px;
    font-weight: 700;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.template-card {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.template-card::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--brand), rgba(22, 119, 255, 0.14));
}

.template-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(22, 119, 255, 0.18);
}

.template-card h3 {
    margin: 2px 0 0;
    font-size: 20px;
    font-family: "STZhongsong", "Songti SC", serif;
}

.template-card-top,
.template-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.template-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.report-list {
    display: grid;
    gap: 12px;
}

.dashboard-collapse-copy {
    display: grid;
    gap: 6px;
}

.dashboard-collapse-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--muted-strong);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
    flex-shrink: 0;
}

.dashboard-collapse-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dashboard-collapse-toggle:focus-visible {
    box-shadow: var(--focus-ring), var(--shadow-sm);
}

.dashboard-collapse-toggle-label {
    color: inherit;
    font-size: 13px;
    line-height: 1;
}

.dashboard-collapse-toggle .ui-icon {
    transition: transform 0.2s ease;
}

.dashboard-collapsible-section:not(.is-collapsed) .dashboard-collapse-toggle .ui-icon {
    transform: rotate(90deg);
}

.export-record-caption {
    margin-bottom: 16px;
}

.report-item {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
}

.report-item strong,
.report-item div {
    display: block;
}

.report-item small {
    color: var(--muted);
}

.seo-preview-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.seo-preview-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.96));
}

.seo-preview-kicker {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.seo-preview-title {
    display: block;
    margin: 0;
    color: #1558d6;
    font-size: 20px;
    line-height: 1.45;
    word-break: break-word;
}

.seo-preview-url {
    color: #16803c;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
}

.seo-preview-description {
    color: var(--muted-strong);
    line-height: 1.72;
}

.seo-social-card {
    display: grid;
    gap: 14px;
}

.seo-social-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 164px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.16), rgba(15, 107, 104, 0.08));
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 700;
}

.seo-social-image.is-empty {
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.08), rgba(15, 107, 104, 0.04));
}

.seo-social-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seo-social-copy {
    display: grid;
    gap: 6px;
}

.seo-social-copy strong {
    display: block;
    font-size: 18px;
    line-height: 1.5;
    word-break: break-word;
}

.seo-social-copy div {
    color: var(--muted-strong);
    line-height: 1.7;
}

.seo-social-copy small {
    color: var(--muted);
    word-break: break-all;
}

.export-record-item {
    gap: 8px;
}

.export-record-file {
    font-size: 13px;
    line-height: 1.7;
    word-break: break-all;
}

.export-record-actions {
    margin-top: 4px;
}

.export-modal-card {
    width: min(760px, 100%);
}

.export-modal-hero {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(232, 243, 255, 0.7), rgba(255, 255, 255, 0.98));
}

.export-modal-hero strong {
    font-size: 22px;
    line-height: 1.4;
    word-break: break-all;
}

.export-modal-copy {
    color: var(--muted);
    line-height: 1.72;
}

.export-progress-copy {
    margin: 10px 0 16px;
}

.export-modal-actions {
    justify-content: space-between;
}

.export-modal-actions .primary-btn,
.export-modal-actions .secondary-btn {
    flex: 1 1 180px;
}

.report-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.report-item-risk-high {
    border-color: rgba(255, 125, 0, 0.24);
    background: linear-gradient(180deg, #ffffff, #fff8f1);
}

.report-item-risk-medium {
    border-color: rgba(22, 119, 255, 0.18);
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.report-item-risk-low,
.version-item.is-latest {
    border-color: rgba(0, 180, 42, 0.18);
    background: linear-gradient(180deg, #ffffff, #f4fbf6);
}

.version-restore-note {
    margin-bottom: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.version-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.version-item-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.version-action-form {
    margin: 0;
}

.version-item-note {
    color: var(--muted);
    font-size: 12px;
}

.quick-fill-block {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.quick-fill-group {
    display: grid;
    gap: 10px;
}

.quick-fill-group strong {
    font-size: 14px;
    line-height: 1.4;
}

.quick-fill-row,
.quick-target-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

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

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

.toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    box-shadow: var(--shadow-sm);
}

.toggle-card-copy {
    display: grid;
    gap: 6px;
}

.toggle-card-copy strong {
    font-size: 16px;
    line-height: 1.35;
}

.toggle-card-copy small {
    color: var(--muted);
    line-height: 1.65;
}

.toggle-card-control {
    flex: 0 0 auto;
}

.toggle-card-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 58px;
    height: 32px;
    padding: 4px;
    border-radius: 999px;
    background: #dfe4ea;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.toggle-switch span {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease;
}

.toggle-card-control input:checked + .toggle-switch {
    background: rgba(22, 119, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.12);
}

.toggle-card-control input:checked + .toggle-switch span {
    transform: translateX(26px);
}

.detail-preset-strip {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, #ffffff, #fafcff);
}

.detail-preset-copy {
    display: grid;
    gap: 6px;
}

.detail-preset-copy span {
    color: var(--muted);
    line-height: 1.65;
}

.verify-target-url {
    word-break: break-all;
    font-weight: 700;
}

.verify-submit-progress {
    position: relative;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
    border: 1px solid var(--line-strong);
}

.verify-submit-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--teal));
    transition: width 0.22s ease;
}

.verify-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

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

.verify-action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.verify-match-card {
    margin-bottom: 16px;
}

.verify-check-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 4px;
}

.verify-check-detail {
    display: grid;
    gap: 12px;
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px dashed var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 253, 0.96));
}

.empty-state {
    padding: 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px dashed var(--line-strong);
}

.empty-state.empty-illustrated {
    display: grid;
    gap: 12px;
    justify-items: start;
    padding: 22px;
    border-style: solid;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.empty-state-visual {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(180deg, #f3f8ff, #ebf3ff);
    color: var(--brand);
    border: 1px solid #dceafe;
    box-shadow: var(--shadow-sm);
}

.empty-state-title {
    color: var(--text);
    font-size: 18px;
    line-height: 1.35;
}

.empty-state-copy {
    max-width: 520px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.72;
}

.status-filter {
    gap: 12px;
}

.filter-chip {
    min-height: 42px;
    border-radius: 999px;
    padding: 0 16px;
}

.filter-chip.active {
    color: var(--brand);
    border-color: #cfe4ff;
    background: #e8f3ff;
    box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.04);
}

.device-btn.active {
    color: var(--brand);
    border-color: rgba(22, 119, 255, 0.32);
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.10), var(--shadow-sm);
}

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

.report-ticket-card {
    display: grid;
    gap: 18px;
}

.ticket-chip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: -4px;
}

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

.ticket-meta > div,
.ticket-message {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
}

.ticket-meta strong,
.ticket-message strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.ticket-meta span,
.ticket-message p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.7;
}

.ticket-message-primary {
    border-color: rgba(22, 119, 255, 0.12);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.ticket-action-form {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    box-shadow: var(--shadow-sm);
}

.ticket-form-head {
    display: grid;
    gap: 6px;
    margin-bottom: 4px;
}

.ticket-form-head strong {
    font-size: 16px;
    line-height: 1.4;
}

.ticket-form-head span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.stack-form,
.auth-form,
.setup-messages {
    display: grid;
    gap: 14px;
}

.profile-modal-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
}

.profile-modal-save {
    display: grid;
    gap: 14px;
    align-content: start;
}

.profile-modal-list {
    display: grid;
    gap: 14px;
}

.common-profile-list {
    display: grid;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.profile-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.profile-card-meta {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.modal-card-wide {
    width: min(920px, 100%);
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.editor-mode-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
    box-shadow: var(--shadow-sm);
}

.editor-mode-copy {
    display: grid;
    gap: 6px;
}

.editor-mode-copy strong {
    color: var(--text);
    font-size: 16px;
    line-height: 1.4;
}

.editor-mode-copy span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.simple-access-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.simple-step-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: stretch;
}

.simple-step-btn {
    display: grid;
    gap: 6px;
    justify-items: start;
    min-height: 96px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.simple-step-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.simple-step-btn strong {
    color: var(--text);
    font-size: 16px;
    line-height: 1.4;
}

.simple-step-btn small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.simple-step-btn:hover,
.simple-step-btn.active {
    transform: translateY(-1px);
    border-color: rgba(22, 119, 255, 0.2);
    background: linear-gradient(180deg, #ffffff, #f3f8ff);
    box-shadow: var(--shadow-md);
}

.simple-step-actions {
    display: grid;
    align-content: stretch;
    gap: 10px;
}

.editor-panel {
    display: grid;
    gap: 16px;
}

.editor-panel.is-simple-mode .editor-advanced-section,
.editor-panel.is-simple-mode .editor-advanced-field,
.editor-panel.is-simple-mode .editor-advanced-only {
    display: none !important;
}

.editor-panel.is-simple-mode .editor-advanced-section.is-temporary-open {
    display: block !important;
}

.editor-panel.is-simple-mode .editor-advanced-field.is-temporary-open {
    display: block !important;
}

.editor-panel.is-simple-mode label.checkbox-row.editor-advanced-field.is-temporary-open {
    display: flex !important;
}

.editor-panel.is-simple-mode .editor-advanced-only.is-temporary-open {
    display: grid !important;
}

.editor-panel.is-simple-mode[data-simple-step="1"] .form-section[data-simple-step]:not([data-simple-step="1"]),
.editor-panel.is-simple-mode[data-simple-step="2"] .form-section[data-simple-step]:not([data-simple-step="2"]),
.editor-panel.is-simple-mode[data-simple-step="3"] .form-section[data-simple-step]:not([data-simple-step="3"]) {
    display: none;
}

.form-section {
    padding: 22px;
}

.form-grid {
    display: grid;
    gap: 14px;
}

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

.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.full-span {
    grid-column: 1 / -1;
}

.label-with-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.label-with-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.checkbox-row span {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
}

.upload-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 12px;
    border: 1px dashed var(--line-strong);
    background: #fafbfc;
}

.upload-row > div {
    display: grid;
    gap: 4px;
}

.upload-hint {
    word-break: break-all;
}

.credential-material-trigger-row {
    margin-top: 16px;
}

.credential-material-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.credential-material-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    box-shadow: var(--shadow-sm);
}

.credential-material-top {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.credential-material-thumb {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: #f5f7fa;
    min-height: 148px;
}

.credential-material-thumb img {
    display: block;
    width: 100%;
    height: 148px;
    object-fit: cover;
}

.credential-material-meta {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.credential-material-fields {
    gap: 14px;
}

.credential-material-actions {
    justify-content: flex-start;
}

.editor-tools {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.editor-preset-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #cfe4ff;
    background: linear-gradient(135deg, rgba(232, 243, 255, 0.92), rgba(245, 251, 255, 0.96));
    box-shadow: var(--shadow-sm);
}

.editor-preset-copy {
    display: grid;
    gap: 6px;
    max-width: 620px;
}

.editor-preset-copy strong {
    font-size: 16px;
    line-height: 1.4;
    color: var(--text);
}

.editor-preset-copy span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.content-preset-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.content-template-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.content-template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-height: min(62vh, 640px);
    overflow-y: auto;
    padding-right: 4px;
}

.content-template-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    box-shadow: var(--shadow-sm);
}

.content-template-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.content-template-card-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.content-template-card-copy strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1.45;
}

.content-template-card-copy small {
    color: var(--muted);
    line-height: 1.65;
}

.content-template-card-preview {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed var(--line-strong);
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.7;
}

.content-preset-modal-card {
    width: min(980px, 100%);
}

.module-list {
    display: grid;
    gap: 12px;
}

.module-item {
    display: grid;
    grid-template-columns: 24px 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.module-item:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 119, 255, 0.18);
    box-shadow: var(--shadow-sm);
}

.module-item small {
    color: var(--muted);
}

.module-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.module-copy strong {
    font-size: 15px;
    line-height: 1.45;
}

.module-copy small {
    line-height: 1.65;
}

.module-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.module-handle {
    color: var(--muted);
    font-size: 18px;
    cursor: grab;
    user-select: none;
}

.module-item.dragging {
    opacity: 0.55;
    transform: scale(0.98);
}

.preview-panel {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 18px;
    padding: 20px;
}

.preview-toolbar {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
}

.preview-toolbar-copy {
    display: grid;
    gap: 8px;
}

.preview-toolbar-copy .hero-chip {
    background: #f2f7ff;
    border-color: #dbeafe;
    color: var(--brand);
    justify-self: start;
}

.preview-toolbar-copy strong {
    font-size: 22px;
    font-family: "STZhongsong", "Songti SC", serif;
}

.preview-link-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, #ffffff, #fafcff);
}

.preview-link-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.preview-link-copy span {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.preview-link-copy strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-actions {
    justify-content: flex-end;
}

.preview-font-size-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, #ffffff, #fafcff);
}

.preview-font-size-copy {
    display: grid;
    gap: 4px;
}

.preview-font-size-copy strong {
    font-size: 15px;
}

.preview-font-size-copy span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.preview-font-size-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.preview-toolbar .secondary-btn {
    background: #ffffff;
    color: var(--text);
    border-color: var(--line-strong);
}

.preview-toolbar .secondary-btn:hover {
    background: #f7f8fa;
}

.secondary-btn.active,
.preview-toolbar .secondary-btn.active {
    background: #e8f3ff;
    color: var(--brand);
    border-color: #cfe4ff;
    box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.06);
}

.preview-frame-wrap {
    position: relative;
    padding: 24px;
    min-height: 720px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, #eef3fa, #edf2f7);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line-strong);
}

.preview-frame-wrap::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 12px;
    border: 1px solid rgba(22, 119, 255, 0.12);
}

.preview-frame-wrap iframe {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 680px;
    margin: 0 auto;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: width 0.3s ease, height 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
}

.preview-frame-caption {
    text-align: center;
    margin-top: -2px;
}

.preview-frame-wrap.device-desktop iframe {
    width: 100%;
    height: 680px;
}

.preview-frame-wrap.device-tablet iframe {
    width: min(860px, 100%);
    height: 760px;
}

.preview-frame-wrap.device-mobile iframe {
    width: min(390px, 100%);
    height: 780px;
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(17, 23, 31, 0.18);
}

.preview-frame-wrap.device-fold iframe {
    width: min(540px, 100%);
    height: 760px;
}

.preview-report {
    padding: 20px;
}

.version-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.version-preview-wrap {
    position: relative;
    margin-top: 16px;
    padding: 20px;
    min-height: 620px;
    border-radius: 16px;
    background: linear-gradient(180deg, #eef3fa, #edf2f7);
    border: 1px solid var(--line-strong);
    overflow: auto;
    touch-action: pan-x pan-y pinch-zoom;
}

.version-preview-wrap iframe {
    display: block;
    width: min(390px, 100%);
    height: 760px;
    margin: 0 auto;
    border: 0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(17, 23, 31, 0.18);
    transition: width 0.24s ease, height 0.24s ease, transform 0.24s ease;
}

.version-preview-wrap.device-tablet iframe {
    width: min(860px, 100%);
    height: 760px;
    border-radius: 16px;
}

.version-preview-wrap.device-desktop iframe {
    width: 100%;
    height: 680px;
    border-radius: 16px;
}

.version-preview-actions {
    margin-top: 16px;
    justify-content: space-between;
}

.onsite-preview-actions {
    margin-top: 16px;
    justify-content: space-between;
}

.report-findings {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.finding-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
}

.finding-item strong {
    font-size: 15px;
}

.finding-item small {
    color: var(--muted);
}

.finding-item.high {
    border-color: rgba(184, 69, 46, 0.24);
    background: rgba(184, 69, 46, 0.08);
}

.finding-item.medium {
    border-color: rgba(203, 102, 40, 0.24);
    background: rgba(203, 102, 40, 0.08);
}

.finding-item.low {
    border-color: rgba(45, 122, 82, 0.24);
    background: rgba(45, 122, 82, 0.08);
}

.auth-shell-page,
.setup-shell {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 28px;
}

.auth-shell-page {
    align-items: flex-start;
}

.setup-shell {
    align-items: center;
}

.auth-shell-stack {
    width: min(1180px, 100%);
    display: grid;
    gap: 20px;
}

.auth-card,
.setup-card {
    width: min(1180px, 100%);
}

.auth-content-card {
    padding: 28px;
    display: grid;
    gap: 18px;
}

.auth-content-card .report-list {
    gap: 14px;
}

.auth-split-card,
.setup-split-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    padding: 0;
}

.auth-showcase,
.setup-showcase {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 20px;
    padding: 34px;
    background:
        radial-gradient(circle at top right, rgba(22, 119, 255, 0.12), rgba(22, 119, 255, 0) 34%),
        linear-gradient(180deg, #fbfdff, #f3f7fc);
    color: var(--text);
    border-right: 1px solid var(--line-strong);
}

.auth-showcase::after,
.setup-showcase::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 119, 255, 0.14), rgba(22, 119, 255, 0) 68%);
}

.auth-showcase .hero-chip,
.setup-showcase .hero-chip {
    justify-self: start;
    background: #e8f3ff;
    border-color: #cfe4ff;
    color: var(--brand);
}

.auth-showcase p,
.setup-showcase p {
    color: var(--muted);
}

.auth-panel,
.setup-panel {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: 34px;
}

.auth-feature-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-feature {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.auth-feature strong {
    display: block;
    font-size: 16px;
}

.auth-feature span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.auth-tip {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(22, 28, 35, 0.08);
    background: rgba(255, 255, 255, 0.74);
    color: var(--muted);
}

.auth-showcase .empty-state.empty-illustrated,
.setup-showcase .empty-state.empty-illustrated {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--line-strong);
}

.auth-showcase .empty-state-title,
.setup-showcase .empty-state-title {
    color: var(--text);
}

.auth-showcase .empty-state-copy,
.setup-showcase .empty-state-copy {
    color: var(--muted);
}

.auth-showcase .empty-state-visual,
.setup-showcase .empty-state-visual {
    background: #eef4ff;
    border-color: #dceafe;
    color: var(--brand);
}

.step-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.step-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--line-strong);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.step-pill.active {
    background: #e8f3ff;
    border-color: #cfe4ff;
    color: var(--brand);
}

.auth-panel-header {
    display: grid;
    gap: 6px;
}

.auth-panel-header h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-family: "STZhongsong", "Songti SC", serif;
}

.auth-panel-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.credential-card,
.setup-status-summary {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, #ffffff, #fafcff);
    box-shadow: var(--shadow-sm);
}

.credential-card strong,
.setup-status-summary strong {
    color: var(--text);
    font-size: 16px;
}

.credential-card p,
.setup-status-summary p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

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

.credential-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7f8fa;
    border: 1px solid var(--line);
}

.credential-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.credential-value {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    word-break: break-all;
    text-align: right;
}

.setup-status-summary.ok {
    border-color: rgba(45, 122, 82, 0.18);
    background: linear-gradient(180deg, #ffffff, #f4fbf6);
}

.setup-status-summary.pending {
    border-color: rgba(255, 125, 0, 0.18);
    background: linear-gradient(180deg, #ffffff, #fff8f1);
}

.status-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.status-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.setup-status-summary.ok .status-summary-badge {
    background: #e7f7ed;
    color: #00b42a;
}

.setup-status-summary.pending .status-summary-badge {
    background: #fff4e8;
    color: #ff7d00;
}

.auth-actions-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-actions-inline .primary-btn,
.auth-actions-inline .secondary-btn {
    min-width: 160px;
}

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

.setup-grid > div {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(22, 28, 35, 0.08);
}

.setup-grid strong {
    display: block;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.setup-grid p {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 16px;
    word-break: break-all;
}

.setup-grid small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.install-status-panel {
    padding: 22px;
}

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

.install-check {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(22, 28, 35, 0.08);
    background: rgba(255, 255, 255, 0.76);
}

.install-check strong {
    font-size: 15px;
}

.install-check span {
    color: var(--muted);
}

.install-check.ok {
    border-color: rgba(45, 122, 82, 0.24);
    background: rgba(45, 122, 82, 0.08);
}

.install-check.fail {
    border-color: rgba(184, 69, 46, 0.24);
    background: rgba(184, 69, 46, 0.08);
}

.setup-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.setup-progress-panel {
    gap: 12px;
}

.setup-progress-copy {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.setup-progress-chips {
    margin-top: -2px;
}

.setup-error-guide {
    gap: 12px;
}

.setup-error-guide strong {
    color: var(--text);
    font-size: 14px;
}

.setup-hint-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.setup-success-modal-card {
    width: min(560px, 100%);
    display: grid;
    gap: 16px;
}

.setup-success-modal-copy {
    display: grid;
    gap: 6px;
}

.setup-success-modal-copy strong {
    font-size: 20px;
    color: var(--text);
}

.setup-success-modal-copy span {
    color: var(--muted);
    line-height: 1.7;
}

.ui-icon {
    flex: 0 0 auto;
}

.mobile-topbar,
.sidebar-overlay,
.breadcrumb-back,
.mobile-action-bar,
.modal-backdrop,
.scroll-top-btn {
    display: none;
}

.scroll-top-btn {
    position: fixed;
    display: inline-flex;
    right: 20px;
    bottom: 22px;
    z-index: 44;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s, box-shadow 0.22s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s, box-shadow 0.22s ease;
}

.scroll-top-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.breadcrumb-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb-link,
.breadcrumb-current,
.breadcrumb-sep {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-link {
    color: var(--muted-strong);
}

.breadcrumb-current {
    color: var(--brand);
    font-weight: 700;
}

.editor-quick-nav {
    position: sticky;
    top: 18px;
    z-index: 18;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.quick-nav-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--line-strong);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.quick-nav-chip:hover,
.quick-nav-chip.active {
    background: #e8f3ff;
    border-color: #cfe4ff;
    color: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.05);
}

.progress-inline,
.hero-progress {
    display: grid;
    gap: 8px;
}

.hero-progress {
    padding: 14px;
    border-radius: 12px;
    background: #f7f8fa;
    border: 1px solid var(--line-strong);
}

.hero-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hero-progress-head span {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-progress-head strong,
.progress-inline strong {
    color: var(--brand);
    font-size: 13px;
}

.progress-track {
    position: relative;
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #edf1f5;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), #69a8ff);
    transition: width 0.22s ease;
}

.progress-track-strong {
    height: 10px;
}

.progress-inline {
    margin-top: 8px;
}

.progress-inline strong {
    justify-self: end;
}

.status-pill.status-draft {
    background: #f2f3f5;
    color: #4e5969;
    border-color: #f2f3f5;
}

.status-pill.status-reviewing,
.status-pill.status-processing {
    background: #e8f3ff;
    color: #1677ff;
    border-color: #cfe4ff;
}

.status-pill.status-published,
.status-pill.status-resolved {
    background: #e7f7ed;
    color: #00b42a;
    border-color: #cdeed6;
}

.status-pill.status-rectifying,
.status-pill.status-rejected,
.status-pill.status-new {
    background: #fff4e8;
    color: #ff7d00;
    border-color: #ffe4c4;
}

.status-pill.status-archived {
    background: #f2f3f5;
    color: #4e5969;
    border-color: #d9dde4;
}

.device-btn {
    flex: 1 1 96px;
    min-height: 72px;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: none;
}

.device-btn span {
    font-weight: 700;
}

.preview-toolbar-meta {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.preview-frame-wrap.is-updating iframe {
    opacity: 0.72;
    transform: scale(0.995);
}

.preview-frame-wrap::after {
    content: "仅供备案核验使用，禁止商用";
    position: absolute;
    inset: auto 26px 18px auto;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: rgba(78, 89, 105, 0.72);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.report-summary-card {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f7f8fa;
    border: 1px solid var(--line-strong);
}

.report-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.report-summary-score {
    color: var(--brand);
    font-size: 22px;
    font-weight: 800;
}

.report-summary-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-strong);
}

.finding-item-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.finding-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f7f8fa;
}

.finding-item .text-link {
    margin-top: 4px;
    justify-self: start;
}

.finding-item .mini-pill {
    min-height: 28px;
    padding: 0 10px;
}

.required-field > span::before {
    content: "*";
    color: #f53f3f;
    font-size: 16px;
    font-weight: 800;
}

.hint-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--brand);
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    cursor: help;
}

.hint-trigger::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    min-width: 220px;
    max-width: 280px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(29, 33, 41, 0.96);
    color: #fff;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: none;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-lg);
}

.hint-trigger:hover::after,
.hint-trigger:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.editor-panel label:not(.checkbox-row) {
    position: relative;
}

.editor-panel label.has-feedback {
    padding-right: 36px;
}

.editor-panel label.has-feedback::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    border-radius: 50%;
    opacity: 0;
}

.editor-panel label.is-valid::after {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e7f7ed;
    color: #00b42a;
    opacity: 1;
}

.editor-panel label.is-invalid::after {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff1f0;
    color: #f53f3f;
    opacity: 1;
}

.editor-panel label.is-invalid input,
.editor-panel label.is-invalid textarea,
.editor-panel label.is-invalid select {
    border-color: #f53f3f;
    box-shadow: 0 0 0 4px rgba(245, 63, 63, 0.08);
}

.field-feedback {
    margin-top: 8px;
    color: #f53f3f;
    font-size: 12px;
    line-height: 1.5;
}

.field-feedback.success {
    color: #00b42a;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--muted-strong);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.32);
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-card {
    width: min(720px, 100%);
    padding: 22px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--line-strong);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.modal-card-version {
    width: min(1100px, 100%);
}

.qr-preview-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.qr-preview-box {
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: #f8fafc;
}

.qr-preview-box svg {
    width: 100%;
    height: auto;
}

.qr-preview-meta {
    display: grid;
    gap: 16px;
}

.preview-panel.is-collapsed .preview-frame-wrap,
.preview-panel.is-collapsed .preview-frame-caption,
.preview-panel.is-collapsed .preview-report {
    display: none;
}

.mobile-action-bar {
    position: sticky;
    bottom: 12px;
    z-index: 30;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line-strong);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
}

.mobile-action-bar .primary-btn,
.mobile-action-bar .secondary-btn {
    min-height: 44px;
}

.app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 18px 0 8px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.auth-footer {
    padding: 0 20px 28px;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
}

.footer-legal-links a {
    color: var(--accent);
    text-decoration: none;
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

.footer-trust-note {
    max-width: 920px;
    line-height: 1.6;
    color: var(--muted);
}

.footer-compact {
    display: none;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body:not(.is-ready) .sidebar,
body:not(.is-ready) .page-hero,
body:not(.is-ready) .stat-card,
body:not(.is-ready) .dashboard-panel,
body:not(.is-ready) .form-section,
body:not(.is-ready) .preview-panel,
body:not(.is-ready) .auth-card,
body:not(.is-ready) .setup-card {
    opacity: 0;
}

body.is-ready .sidebar {
    animation: revealLeft 0.72s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

body.is-ready .page-hero,
body.is-ready .auth-card,
body.is-ready .setup-card,
body.is-ready .preview-panel {
    animation: revealUp 0.72s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

body.is-ready .stats-grid .stat-card,
body.is-ready .dashboard-grid .dashboard-panel,
body.is-ready .editor-panel .form-section,
body.is-ready .report-ticket-grid .dashboard-panel {
    animation: revealUp 0.72s cubic-bezier(0.2, 0.9, 0.2, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
}

body.is-ready .page-hero .hero-side-card,
body.is-ready .preview-frame-wrap {
    animation: revealUp 0.72s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@media (min-width: 821px) {
    .editor-panel .form-grid label:not(.checkbox-row) {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }

    .editor-panel .form-grid label:not(.checkbox-row) > span {
        margin: 0;
        padding-top: 16px;
    }

    .editor-panel .form-grid label:not(.checkbox-row) .field-feedback {
        grid-column: 2;
    }

    .editor-panel .form-grid label.field-inline-auto:not(.checkbox-row) [data-auto-field-width] {
        width: auto;
        justify-self: start;
    }

    .editor-panel label.has-feedback::after {
        top: 27px;
        transform: none;
    }
}

@media (max-width: 1380px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quick-entry-grid,
    .verify-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-hero,
    .page-header {
        grid-template-columns: 1fr;
    }

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

    .preview-panel {
        position: static;
    }

    .mobile-action-bar {
        display: grid;
    }
}

@media (max-width: 1140px) {
    .hero-side-list,
    .ticket-meta,
    .install-checks,
    .report-ticket-grid,
    .setup-grid,
    .auth-feature-list,
    .stats-grid,
    .form-grid.three,
    .form-grid.two {
        grid-template-columns: 1fr 1fr;
    }

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

    .quick-entry-grid,
    .verify-check-grid,
    .quick-action-grid,
    .detail-toggle-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .archived-project-grid {
        grid-template-columns: 1fr;
    }

    .span-8,
    .span-7,
    .span-5,
    .span-4 {
        grid-column: span 6;
    }
}

@media (max-width: 820px) {
    .network-status-banner {
        top: calc(env(safe-area-inset-top, 0px) + 8px);
        width: calc(100% - 12px);
    }

    .network-status-banner-inner {
        gap: 10px;
        padding: 12px;
        border-radius: 14px;
    }

    .network-status-banner-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .network-status-banner-copy strong {
        font-size: 13px;
    }

    .network-status-banner-copy small {
        font-size: 11px;
    }

    .network-status-banner-cta {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11px;
    }

    body.nav-open {
        overflow: hidden;
    }

    .app-shell {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: auto;
    }

    .sidebar-desktop-head {
        display: none;
    }

    body:not(.mobile-nav-ready) .sidebar-overlay {
        display: none !important;
    }

    body:not(.mobile-nav-ready) .sidebar {
        transform: translateX(-110%) !important;
    }

    .app-topbar {
        display: none;
    }

    .mobile-topbar {
        position: sticky;
        top: calc(env(safe-area-inset-top, 0px) + var(--network-banner-offset, 0px));
        z-index: 45;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0 14px 12px;
        padding: 12px 14px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--line-strong);
        box-shadow: var(--shadow-lg);
        transition: top 0.24s ease, background 0.2s ease, border-color 0.2s ease;
    }

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

    .mobile-brand strong {
        font-size: 14px;
    }

    .mobile-topbar-actions {
        justify-content: flex-end;
    }

    .theme-mode-btn {
        min-height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 14px;
        border-radius: 10px;
        border: 1px solid var(--line-strong);
        background: #ffffff;
        color: var(--muted-strong);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 39;
        background: rgba(15, 23, 42, 0.24);
    }

    body.nav-open .sidebar-overlay {
        display: block;
    }

    .app-shell,
    .auth-shell-page,
    .setup-shell {
        padding: 14px;
    }

    .main-content {
        width: 100%;
        height: auto;
        overflow: visible;
        padding-right: 0;
        padding-bottom: 18px;
    }

    .main-content-inner {
        width: 100%;
        max-width: none;
    }

    .sidebar {
        position: fixed;
        left: 14px;
        right: 14px;
        top: 72px;
        bottom: 14px;
        z-index: 40;
        min-height: auto;
        padding: 18px;
        border-radius: 18px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-110%);
        transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s linear 0.22s;
        overflow-y: auto;
        will-change: transform, opacity;
    }

    body.is-ready .sidebar {
        animation: none;
    }

    body.nav-open .sidebar {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
        transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s linear 0s;
    }

    .scroll-top-btn {
        right: 14px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
        min-height: 44px;
        padding: 0 12px;
    }

    .sidebar-mobile-head {
        display: flex;
    }

    .sidebar-brand strong {
        font-size: 16px;
    }

    .quick-entry-grid,
    .verify-summary-grid,
    .verify-check-grid,
    .quick-action-grid,
    .detail-toggle-grid {
        grid-template-columns: 1fr;
    }

    .mobile-project-list {
        display: grid;
        gap: 14px;
        margin-bottom: 14px;
    }

    .project-mobile-swipe {
        z-index: 0;
    }

    .project-mobile-swipe-actions {
        display: grid;
    }

    .project-mobile-swipe.is-open {
        z-index: 2;
    }

    .project-mobile-swipe.is-open .project-mobile-swipe-content {
        transform: translateX(calc(-1 * var(--mobile-swipe-actions-width)));
    }

    .project-mobile-swipe-content {
        touch-action: pan-y;
    }

    .project-mobile-swipe-hint {
        display: inline-flex;
    }

    .dashboard-mobile-toolbar {
        display: grid;
    }

    .dashboard-filter-form-desktop {
        display: none;
    }

    .dashboard-mobile-search-row {
        grid-template-columns: minmax(0, 1fr) 92px;
    }

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

    .dashboard-filter-sheet-backdrop {
        align-items: flex-end;
        padding: 14px 14px 0;
    }

    .dashboard-filter-sheet-card {
        width: 100%;
        max-height: min(84vh, 720px);
        overflow-y: auto;
        border-radius: 22px 22px 0 0;
        padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
        transform: translateY(28px);
        opacity: 0;
        transition: transform 0.22s ease, opacity 0.22s ease;
    }

    .dashboard-filter-sheet-backdrop.is-open .dashboard-filter-sheet-card {
        transform: translateY(0);
        opacity: 1;
    }

    #recentProjects .table-wrap {
        display: none;
    }

    .dashboard-collapse-header {
        align-items: center;
    }

    .dashboard-collapse-toggle {
        display: inline-flex;
        width: auto;
    }

    .dashboard-collapsible-section.is-collapsed .dashboard-collapse-content {
        display: none;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .dashboard-panel,
    .form-section,
    .preview-panel,
    .auth-panel,
    .setup-panel,
    .auth-showcase,
    .setup-showcase,
    .stat-card {
        padding: 18px;
    }

    .page-hero h1,
    .auth-card h1,
    .setup-card h1 {
        font-size: clamp(28px, 8vw, 42px);
    }

    .page-hero p,
    .auth-card p,
    .setup-card p {
        font-size: 15px;
    }

    .hero-side-list,
    .auth-feature-list,
    .ticket-meta,
    .install-checks,
    .setup-grid,
    .stats-grid,
    .report-ticket-grid,
    .form-grid.two,
    .form-grid.three {
        grid-template-columns: 1fr;
    }

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

    .span-8,
    .span-7,
    .span-5,
    .span-4,
    .span-12 {
        grid-column: 1 / -1;
    }

    .preview-toolbar {
        gap: 12px;
    }

    .preview-font-size-strip,
    .version-preview-toolbar,
    .version-preview-actions {
        align-items: stretch;
    }

    .module-item {
        grid-template-columns: 24px 20px minmax(0, 1fr);
    }

    .editor-panel .form-grid label.field-inline-auto:not(.checkbox-row) [data-auto-field-width] {
        width: 100% !important;
        justify-self: stretch;
    }

    .inline-field-strip {
        display: grid;
        gap: 14px;
    }

    .batch-export-choice-grid {
        grid-template-columns: 1fr;
    }

    .export-filename-field input {
        font-size: 17px;
    }

    .inline-field-strip label:not(.checkbox-row) {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .inline-field-strip label:not(.checkbox-row) > span {
        margin-bottom: 10px;
        white-space: normal;
    }

    .inline-field-strip label:not(.checkbox-row) .field-feedback {
        grid-column: auto;
    }

    .inline-field-strip .editor-advanced-field:not(.field-inline-auto) {
        min-width: 0;
    }

    .inline-field-strip [data-auto-field-width] {
        width: 100% !important;
        justify-self: stretch;
    }

    .batch-export-toolbar .page-actions .primary-btn,
    .batch-export-toolbar .page-actions .secondary-btn {
        flex: 1 1 100%;
    }

    .module-meta {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }

    .editor-quick-nav {
        top: 66px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .editor-quick-nav::-webkit-scrollbar {
        display: none;
    }

    .quick-nav-chip {
        flex: 0 0 auto;
    }

    .preview-actions {
        justify-content: flex-start;
    }

    .breadcrumb-link,
    .breadcrumb-sep {
        display: none;
    }

    .breadcrumb-back {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 36px;
        padding: 0 10px;
        border-radius: 999px;
        background: #ffffff;
        border: 1px solid var(--line-strong);
        color: var(--muted-strong);
    }

    .preview-panel {
        position: static;
    }

    .preview-panel.is-collapsed .preview-report,
    .preview-panel.is-collapsed .preview-frame-wrap,
    .preview-panel.is-collapsed .preview-frame-caption {
        display: none;
    }

    .credential-material-top {
        grid-template-columns: 1fr;
    }

    .credential-material-thumb,
    .credential-material-thumb img {
        min-height: 220px;
        height: 220px;
    }

    .preview-frame-wrap {
        min-height: 620px;
        padding: 16px;
    }

    .preview-frame-wrap iframe,
    .preview-frame-wrap.device-tablet iframe,
    .preview-frame-wrap.device-mobile iframe,
    .preview-frame-wrap.device-fold iframe {
        width: 100%;
        height: 620px;
    }

    .version-preview-wrap {
        min-height: 520px;
        padding: 14px;
    }

    .version-preview-wrap iframe,
    .version-preview-wrap.device-tablet iframe,
    .version-preview-wrap.device-desktop iframe {
        width: 100%;
        height: 620px;
        border-radius: 18px;
    }

    .auth-split-card,
    .setup-split-card {
        grid-template-columns: 1fr;
    }

    .table-wrap {
        border-radius: 18px;
    }
}

@media (max-width: 560px) {
    .mobile-topbar {
        margin-inline: 10px;
        padding: 10px 12px;
    }

    .mobile-topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .theme-mode-switch {
        width: 100%;
        justify-content: space-between;
    }

    .theme-mode-btn {
        flex: 1 1 0;
        justify-content: center;
    }

    .hero-chip,
    .hero-tag,
    .status-pill,
    .filter-chip,
    .device-btn,
    .upload-btn,
    .table-actions a {
        min-height: 42px;
    }

    .page-actions,
    .preview-actions,
    .device-switch,
    .inline-actions,
    .table-actions,
    .status-filter {
        gap: 8px;
    }

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

    .template-card-footer,
    .report-item-top,
    .table-project-meta {
        align-items: flex-start;
    }

    .editor-quick-nav {
        margin-top: -2px;
        border-radius: 14px;
    }

    .device-btn .ui-icon,
    .sidebar-nav .ui-icon,
    .mobile-topbar .ui-icon {
        width: 24px;
        height: 24px;
    }

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

    .primary-btn,
    .secondary-btn,
    .upload-btn {
        width: 100%;
    }

    .mobile-action-bar {
        display: grid;
        margin-top: 10px;
    }

    .page-actions .secondary-btn,
    .page-actions .primary-btn,
    .stack-form .secondary-btn,
    .stack-form .primary-btn,
    .setup-actions .secondary-btn,
    .setup-actions .primary-btn {
        width: 100%;
    }

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

    .batch-import-dropzone,
    .batch-import-summary,
    .batch-import-file-meta {
        padding: 14px;
    }

    .toggle-card {
        align-items: flex-start;
        padding: 14px;
    }

    .toggle-card-copy strong {
        font-size: 15px;
    }

    .checkbox-row {
        align-items: flex-start;
    }

    .footer-full {
        display: none;
    }

    .footer-compact {
        display: inline;
    }

    .qr-preview-grid {
        grid-template-columns: 1fr;
    }

    .preview-link-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .editor-mode-strip {
        padding: 16px;
    }

    .simple-access-strip {
        display: grid;
        grid-template-columns: 1fr;
    }

    .simple-step-strip {
        grid-template-columns: 1fr;
    }

    .credential-material-card {
        padding: 16px;
    }

    .content-preset-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .content-template-filter-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-template-grid {
        grid-template-columns: 1fr;
        max-height: none;
        padding-right: 0;
    }

    .editor-preset-box {
        padding: 16px;
    }

    .preview-link-copy strong {
        white-space: normal;
        word-break: break-all;
    }

    .preview-frame-wrap::after {
        right: 16px;
        bottom: 14px;
        transform: scale(0.92);
        transform-origin: right bottom;
    }

    .required-field > span::before {
        font-size: 18px;
    }

    #contentPresetModal {
        align-items: flex-end;
        padding: 0;
    }

    .content-preset-modal-card {
        width: 100%;
        max-height: min(84vh, 820px);
        overflow-y: auto;
        border-radius: 24px 24px 0 0;
        padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0px));
        border-bottom: 0;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(180deg, #23262d 0%, #1f2023 100%);
        color: #f2f3f5;
    }

    .mobile-topbar,
    .sidebar,
    .page-hero,
    .dashboard-panel,
    .form-section,
    .preview-panel,
    .auth-card,
    .setup-card,
    .modal-card,
    .report-item,
    .ticket-meta > div,
    .ticket-message,
    .module-item,
    .upload-row,
    .table-wrap,
    .hero-side-card,
    .hero-side-list > div,
    .hero-progress,
    .report-summary-card,
    .icon-btn,
    .qr-preview-box,
    .preview-link-strip,
    .preview-font-size-strip,
    .dashboard-filter-summary,
    .toggle-card,
    .detail-preset-strip,
    .version-preview-wrap,
    .editor-quick-nav,
    .ticket-action-form,
    .credential-card,
    .setup-status-summary,
    .credential-row,
    .step-pill,
    .setup-grid > div,
    .install-check,
    .auth-tip,
    .checkbox-row {
        background: #2a2c31;
        color: #f2f3f5;
        border-color: rgba(255, 255, 255, 0.08);
    }

    .data-table thead th,
    .sidebar-note span,
    .hero-tag,
    .panel-chip,
    .mini-chip,
    .mini-pill,
    .quick-nav-chip,
    .filter-chip,
    .device-btn,
    .auth-showcase,
    .setup-showcase,
    .secondary-btn,
    textarea,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    input[type="color"] {
        background: #2a2c31;
        color: #f2f3f5;
        border-color: rgba(255, 255, 255, 0.08);
    }

    .page-hero p,
    .panel-header span,
    .section-head span,
    .empty-state,
    .table-subtext,
    .stat-card-foot,
    .upload-hint,
    .report-summary,
    .preview-frame-caption,
    .auth-tip,
    .breadcrumb-bar,
    .ticket-meta span,
    .ticket-message p,
    .ticket-form-head span,
    .report-item small,
    .hero-side-list span,
    .side-label,
    .brand-kicker,
    .sidebar-user small,
    .sidebar-user span,
    .setup-grid strong,
    .install-check span,
    .preview-font-size-copy span,
    .detail-preset-copy span,
    .toggle-card-copy small {
        color: #c9cdd4;
    }

    .preview-toolbar {
        background: #2a2c31;
    }

    .editor-mode-strip {
        background: #2a2c31;
        border-color: rgba(255, 255, 255, 0.08);
    }

    .simple-access-strip .secondary-btn {
        background: #2a2c31;
        border-color: rgba(255, 255, 255, 0.08);
    }

    .simple-step-btn,
    .simple-step-actions .secondary-btn,
    .simple-step-actions .primary-btn {
        background: #2a2c31;
        border-color: rgba(255, 255, 255, 0.08);
    }

    .simple-step-btn span {
        background: rgba(22, 119, 255, 0.16);
        color: #8dbcff;
    }

    .simple-step-btn small {
        color: #c9cdd4;
    }

    .content-preset-row .secondary-btn {
        background: #2a2c31;
        border-color: rgba(255, 255, 255, 0.08);
    }

    .editor-mode-copy span {
        color: #c9cdd4;
    }

    .editor-preset-box {
        background: rgba(22, 119, 255, 0.12);
        border-color: rgba(22, 119, 255, 0.18);
    }

    .editor-preset-copy span {
        color: #c9cdd4;
    }

    .auth-showcase,
    .setup-showcase {
        border-color: rgba(255, 255, 255, 0.08);
    }

    .preview-frame-wrap {
        background: linear-gradient(180deg, #1f2023, #25272c);
    }

    .version-preview-wrap {
        background: linear-gradient(180deg, #1f2023, #25272c);
    }

    .preview-frame-wrap::before {
        border-color: rgba(255, 255, 255, 0.08);
    }

    .app-footer {
        color: #c9cdd4;
    }

    .step-pill.active,
    .quick-nav-chip.active,
    .secondary-btn.active,
    .preview-toolbar .secondary-btn.active {
        background: rgba(22, 119, 255, 0.18);
        border-color: rgba(22, 119, 255, 0.24);
        color: #8dbcff;
    }

    .panel-chip-neutral,
    .mini-pill-neutral {
        background: rgba(78, 89, 105, 0.18);
        border-color: rgba(78, 89, 105, 0.22);
        color: #d7dbe2;
    }

    .panel-chip-success,
    .mini-pill-success,
    .mini-pill-low {
        background: rgba(0, 180, 42, 0.16);
        border-color: rgba(0, 180, 42, 0.2);
        color: #7be2a3;
    }

    .panel-chip-warning,
    .mini-pill-warning,
    .mini-pill-medium,
    .mini-pill-high {
        background: rgba(255, 125, 0, 0.16);
        border-color: rgba(255, 125, 0, 0.2);
        color: #ffbf74;
    }
}

body.theme-light {
    --bg: #f5f7fa;
    --bg-deep: #eef2f6;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-strong: #ffffff;
    --line: #f0f2f5;
    --line-strong: #e5e6eb;
    --text: #1d2129;
    --muted: #86909c;
    --muted-strong: #4e5969;
    --brand: #1677ff;
    --brand-strong: #0e5fd8;
    --brand-soft: rgba(22, 119, 255, 0.10);
}

body.theme-eye {
    --bg: #f0f8f2;
    --bg-deep: #e8f2ea;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-strong: #ffffff;
    --line: #e4ede5;
    --line-strong: #d7e3d8;
    --text: #333333;
    --muted: #6c7f70;
    --muted-strong: #4b5d4f;
    --brand: #4d8a63;
    --brand-strong: #3c7651;
    --brand-soft: rgba(77, 138, 99, 0.12);
}

body.theme-dark {
    --bg: #1f2023;
    --bg-deep: #23262d;
    --surface: rgba(42, 44, 49, 0.96);
    --surface-strong: #2a2c31;
    --line: rgba(255, 255, 255, 0.06);
    --line-strong: rgba(255, 255, 255, 0.08);
    --text: #f2f3f5;
    --muted: #c9cdd4;
    --muted-strong: #e3e7ec;
    --brand: #5d94ff;
    --brand-strong: #8dbcff;
    --brand-soft: rgba(93, 148, 255, 0.16);
}

body.theme-eye {
    background: linear-gradient(180deg, #f4fbf5 0%, #edf6ef 100%);
}

body.theme-dark {
    background: linear-gradient(180deg, #23262d 0%, #1f2023 100%);
}

body.theme-eye .network-status-banner[data-state="offline"] .network-status-banner-inner {
    background: linear-gradient(180deg, rgba(255, 247, 244, 0.98), rgba(255, 240, 236, 0.98));
}

body.theme-eye .network-status-banner[data-state="online"] .network-status-banner-inner {
    background: linear-gradient(180deg, rgba(241, 252, 244, 0.98), rgba(231, 247, 236, 0.98));
}

body.theme-dark .network-status-banner[data-state="offline"] .network-status-banner-inner {
    background: linear-gradient(180deg, rgba(79, 42, 37, 0.98), rgba(62, 33, 30, 0.98));
    color: #ffd3cb;
    border-color: rgba(255, 156, 128, 0.24);
}

body.theme-dark .network-status-banner[data-state="online"] .network-status-banner-inner {
    background: linear-gradient(180deg, rgba(32, 70, 52, 0.98), rgba(28, 57, 45, 0.98));
    color: #d6f9e6;
    border-color: rgba(126, 213, 166, 0.22);
}

body.theme-dark .network-status-banner-icon,
body.theme-dark .network-status-banner-cta {
    background: rgba(255, 255, 255, 0.08);
}

body.theme-eye .mobile-topbar,
body.theme-eye .sidebar,
body.theme-eye .page-hero,
body.theme-eye .dashboard-panel,
body.theme-eye .form-section,
body.theme-eye .preview-panel,
body.theme-eye .auth-card,
body.theme-eye .setup-card,
body.theme-eye .modal-card,
body.theme-eye .report-item,
body.theme-eye .ticket-meta > div,
body.theme-eye .ticket-message,
body.theme-eye .module-item,
body.theme-eye .upload-row,
body.theme-eye .table-wrap,
body.theme-eye .hero-side-card,
body.theme-eye .hero-side-list > div,
body.theme-eye .hero-progress,
body.theme-eye .report-summary-card,
body.theme-eye .icon-btn,
body.theme-eye .qr-preview-box,
body.theme-eye .preview-link-strip,
body.theme-eye .preview-font-size-strip,
body.theme-eye .dashboard-filter-summary,
body.theme-eye .editor-quick-nav,
body.theme-eye .ticket-action-form,
body.theme-eye .credential-card,
body.theme-eye .setup-status-summary,
body.theme-eye .credential-row,
body.theme-eye .step-pill,
body.theme-eye .setup-grid > div,
body.theme-eye .install-check,
body.theme-eye .auth-tip,
body.theme-eye .checkbox-row,
body.theme-eye .app-topbar,
body.theme-eye .quick-entry-card,
body.theme-eye .profile-card,
body.theme-eye .credential-material-card,
body.theme-eye .content-template-card,
body.theme-eye .quick-fill-block,
body.theme-eye .toggle-card,
body.theme-eye .detail-preset-strip,
body.theme-eye .version-preview-wrap,
body.theme-eye .verify-check-detail,
body.theme-eye .export-modal-hero,
body.theme-eye .project-mobile-card,
body.theme-eye .archived-project-card,
body.theme-eye .dashboard-mobile-toolbar,
body.theme-eye .batch-import-dropzone,
body.theme-eye .batch-import-summary,
body.theme-eye .batch-import-file-meta,
body.theme-eye .seo-preview-card,
body.theme-eye .seo-social-image {
    background: var(--surface-strong);
    color: var(--text);
    border-color: var(--line-strong);
}

body.theme-dark .mobile-topbar,
body.theme-dark .sidebar,
body.theme-dark .page-hero,
body.theme-dark .dashboard-panel,
body.theme-dark .form-section,
body.theme-dark .preview-panel,
body.theme-dark .auth-card,
body.theme-dark .setup-card,
body.theme-dark .modal-card,
body.theme-dark .report-item,
body.theme-dark .ticket-meta > div,
body.theme-dark .ticket-message,
body.theme-dark .module-item,
body.theme-dark .upload-row,
body.theme-dark .table-wrap,
body.theme-dark .hero-side-card,
body.theme-dark .hero-side-list > div,
body.theme-dark .hero-progress,
body.theme-dark .report-summary-card,
body.theme-dark .icon-btn,
body.theme-dark .qr-preview-box,
body.theme-dark .preview-link-strip,
body.theme-dark .preview-font-size-strip,
body.theme-dark .dashboard-filter-summary,
body.theme-dark .editor-quick-nav,
body.theme-dark .ticket-action-form,
body.theme-dark .credential-card,
body.theme-dark .setup-status-summary,
body.theme-dark .credential-row,
body.theme-dark .step-pill,
body.theme-dark .setup-grid > div,
body.theme-dark .install-check,
body.theme-dark .auth-tip,
body.theme-dark .checkbox-row,
body.theme-dark .app-topbar,
body.theme-dark .quick-entry-card,
body.theme-dark .profile-card,
body.theme-dark .credential-material-card,
body.theme-dark .content-template-card,
body.theme-dark .quick-fill-block,
body.theme-dark .toggle-card,
body.theme-dark .detail-preset-strip,
body.theme-dark .version-preview-wrap,
body.theme-dark .verify-check-detail,
body.theme-dark .export-modal-hero,
body.theme-dark .project-mobile-card,
body.theme-dark .archived-project-card,
body.theme-dark .dashboard-mobile-toolbar,
body.theme-dark .batch-import-dropzone,
body.theme-dark .batch-import-summary,
body.theme-dark .batch-import-file-meta,
body.theme-dark .seo-preview-card,
body.theme-dark .seo-social-image {
    background: var(--surface-strong);
    color: var(--text);
    border-color: var(--line-strong);
}

body.theme-eye .data-table thead th,
body.theme-eye .sidebar-note span,
body.theme-eye .hero-tag,
body.theme-eye .panel-chip,
body.theme-eye .mini-chip,
body.theme-eye .mini-pill,
body.theme-eye .quick-nav-chip,
body.theme-eye .filter-chip,
body.theme-eye .dashboard-collapse-toggle,
body.theme-eye .password-toggle-btn,
body.theme-eye .device-btn,
body.theme-eye .danger-btn,
body.theme-eye .scroll-top-btn,
body.theme-eye .auth-showcase,
body.theme-eye .setup-showcase,
body.theme-eye .secondary-btn,
body.theme-eye textarea,
body.theme-eye input[type="text"],
body.theme-eye input[type="email"],
body.theme-eye input[type="password"],
body.theme-eye input[type="number"],
body.theme-eye input[type="date"],
body.theme-eye select,
body.theme-eye input[type="color"],
body.theme-eye .theme-mode-switch,
body.theme-eye .mobile-nav-toggle {
    background: var(--surface-strong);
    color: var(--text);
    border-color: var(--line-strong);
}

body.theme-dark .data-table thead th,
body.theme-dark .sidebar-note span,
body.theme-dark .hero-tag,
body.theme-dark .panel-chip,
body.theme-dark .mini-chip,
body.theme-dark .mini-pill,
body.theme-dark .quick-nav-chip,
body.theme-dark .filter-chip,
body.theme-dark .dashboard-collapse-toggle,
body.theme-dark .password-toggle-btn,
body.theme-dark .device-btn,
body.theme-dark .danger-btn,
body.theme-dark .scroll-top-btn,
body.theme-dark .auth-showcase,
body.theme-dark .setup-showcase,
body.theme-dark .secondary-btn,
body.theme-dark textarea,
body.theme-dark input[type="text"],
body.theme-dark input[type="email"],
body.theme-dark input[type="password"],
body.theme-dark input[type="number"],
body.theme-dark input[type="date"],
body.theme-dark select,
body.theme-dark input[type="color"],
body.theme-dark .theme-mode-switch,
body.theme-dark .mobile-nav-toggle {
    background: var(--surface-strong);
    color: var(--text);
    border-color: var(--line-strong);
}

body.theme-eye .page-hero p,
body.theme-eye .panel-header span,
body.theme-eye .section-head span,
body.theme-eye .empty-state,
body.theme-eye .table-subtext,
body.theme-eye .stat-card-foot,
body.theme-eye .upload-hint,
body.theme-eye .report-summary,
body.theme-eye .preview-frame-caption,
body.theme-eye .auth-tip,
body.theme-eye .breadcrumb-bar,
body.theme-eye .ticket-meta span,
body.theme-eye .ticket-message p,
body.theme-eye .ticket-form-head span,
body.theme-eye .report-item small,
body.theme-eye .hero-side-list span,
body.theme-eye .side-label,
body.theme-eye .brand-kicker,
body.theme-eye .sidebar-user small,
body.theme-eye .sidebar-user span,
body.theme-eye .setup-grid strong,
body.theme-eye .install-check span,
body.theme-eye .profile-card-meta,
body.theme-eye .content-template-card-copy small,
body.theme-eye .content-template-card-preview,
body.theme-eye .app-topbar-copy small,
body.theme-eye .preview-font-size-copy span,
body.theme-eye .detail-preset-copy span,
body.theme-eye .toggle-card-copy small,
body.theme-eye .export-modal-copy,
body.theme-eye .batch-import-dropzone-copy span,
body.theme-eye .dashboard-filter-sheet-copy span,
body.theme-eye .seo-preview-kicker,
body.theme-eye .seo-social-copy small {
    color: var(--muted);
}

body.theme-eye .dashboard-collapse-toggle-label {
    color: var(--text);
}

body.theme-dark .page-hero p,
body.theme-dark .panel-header span,
body.theme-dark .section-head span,
body.theme-dark .empty-state,
body.theme-dark .table-subtext,
body.theme-dark .stat-card-foot,
body.theme-dark .upload-hint,
body.theme-dark .report-summary,
body.theme-dark .preview-frame-caption,
body.theme-dark .auth-tip,
body.theme-dark .breadcrumb-bar,
body.theme-dark .ticket-meta span,
body.theme-dark .ticket-message p,
body.theme-dark .ticket-form-head span,
body.theme-dark .report-item small,
body.theme-dark .hero-side-list span,
body.theme-dark .side-label,
body.theme-dark .brand-kicker,
body.theme-dark .sidebar-user small,
body.theme-dark .sidebar-user span,
body.theme-dark .setup-grid strong,
body.theme-dark .install-check span,
body.theme-dark .profile-card-meta,
body.theme-dark .content-template-card-copy small,
body.theme-dark .content-template-card-preview,
body.theme-dark .app-topbar-copy small,
body.theme-dark .preview-font-size-copy span,
body.theme-dark .detail-preset-copy span,
body.theme-dark .toggle-card-copy small,
body.theme-dark .export-modal-copy,
body.theme-dark .batch-import-dropzone-copy span,
body.theme-dark .dashboard-filter-sheet-copy span,
body.theme-dark .seo-preview-kicker,
body.theme-dark .seo-social-copy small {
    color: var(--muted);
}

body.theme-eye .seo-preview-title,
body.theme-dark .seo-preview-title {
    color: var(--brand);
}

body.theme-eye .seo-preview-url,
body.theme-dark .seo-preview-url {
    color: var(--teal);
}

body.theme-eye .seo-preview-description,
body.theme-eye .seo-social-copy div,
body.theme-dark .seo-preview-description,
body.theme-dark .seo-social-copy div {
    color: var(--muted-strong);
}

body.theme-dark .dashboard-collapse-toggle-label {
    color: var(--text);
}

body.theme-dark .preview-frame-wrap {
    background: linear-gradient(180deg, #1f2023, #25272c);
}

body.theme-dark .version-preview-wrap {
    background: linear-gradient(180deg, #1f2023, #25272c);
}

body.theme-eye .editor-preset-box {
    background: rgba(77, 138, 99, 0.08);
    border-color: rgba(77, 138, 99, 0.18);
}

body.theme-dark .editor-preset-box {
    background: rgba(93, 148, 255, 0.12);
    border-color: rgba(93, 148, 255, 0.18);
}

body.theme-eye .step-pill.active,
body.theme-eye .quick-nav-chip.active,
body.theme-eye .secondary-btn.active,
body.theme-eye .preview-toolbar .secondary-btn.active {
    background: rgba(77, 138, 99, 0.12);
    border-color: rgba(77, 138, 99, 0.22);
    color: var(--brand);
}

body.theme-dark .step-pill.active,
body.theme-dark .quick-nav-chip.active,
body.theme-dark .secondary-btn.active,
body.theme-dark .preview-toolbar .secondary-btn.active {
    background: rgba(93, 148, 255, 0.18);
    border-color: rgba(93, 148, 255, 0.24);
    color: var(--brand-strong);
}

body.theme-eye .danger-btn,
body.theme-dark .danger-btn {
    color: var(--danger);
    border-color: rgba(184, 69, 46, 0.26);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
