* {
    box-sizing: border-box;
}

:root {
    --landing-ink: #111827;
    --landing-muted: #5e687b;
    --landing-line: rgba(17, 24, 39, 0.1);
    --landing-accent: #b84d19;
    --landing-accent-soft: #f6d9c8;
    --landing-paper: #f6f1e8;
    --landing-deep: #11161f;
    --studio-bg: #090b12;
    --studio-surface: #10131d;
    --studio-surface-soft: #151927;
    --studio-line: rgba(138, 149, 187, 0.16);
    --studio-text: #eef2ff;
    --studio-muted: #8e96b2;
    --studio-accent: #6f68ff;
    --studio-accent-2: #7f87ff;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f3f6fb;
    color: #18212f;
}

body.chat-page,
body.auth-page {
    background: #f6f7fb;
    color: #111827;
}

body.is-locked {
    overflow: visible;
}

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

.page-shell {
    min-height: 100vh;
}

.chat-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 292px 1fr;
    background: #ffffff;
}

.chat-sidebar {
    padding: 18px;
    border-right: 1px solid #e8ebf2;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #fff;
    font-weight: 800;
}

.chat-brand strong {
    display: block;
    font-size: 15px;
}

.chat-brand small {
    color: #6b7280;
}

.chat-new-button {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.chat-session-list {
    display: grid;
    gap: 8px;
    overflow: auto;
    flex: 1;
}

.chat-session-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: grid;
    gap: 4px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.chat-session-item strong {
    font-size: 14px;
}

.chat-session-item span {
    color: #6b7280;
    font-size: 12px;
}

.chat-session-item.is-active {
    border-color: #d1d5db;
    background: #f4f6fa;
}

.chat-session-item:hover,
.chat-new-button:hover {
    transform: translateY(-1px);
    border-color: #cfd5df;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.chat-sidebar-footer {
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    color: #374151;
}

.chat-main {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    padding: 18px 22px 22px;
    gap: 14px;
    background: #ffffff;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    padding-top: 6px;
}

.chat-eyebrow {
    color: #6b7280;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chat-header h1 {
    margin: 6px 0 8px;
    font-size: 26px;
    line-height: 1.1;
    color: #111827;
}

.chat-header p {
    margin: 0;
    color: #6b7280;
    max-width: 720px;
}

.chat-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chat-thread {
    overflow: auto;
    display: grid;
    gap: 12px;
    align-content: start;
    justify-items: stretch;
    padding-right: 8px;
    min-height: calc(100vh - 300px);
}

.chat-bubble {
    width: min(760px, 100%);
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.chat-bubble-user {
    margin-left: auto;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.chat-bubble-assistant {
    background: #ffffff;
}

.chat-bubble-role {
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 12px;
}

.chat-bubble-content {
    white-space: pre-wrap;
    line-height: 1.7;
}

.chat-empty {
    width: min(760px, 100%);
    padding: 26px;
    border: 1px dashed #d9dee8;
    border-radius: 18px;
    color: #6b7280;
    background: #ffffff;
    text-align: center;
}

.chat-composer {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.chat-composer textarea,
.auth-form input {
    width: 100%;
    min-height: 56px;
    border: 1px solid #e5e7eb;
    background: #fbfcfe;
    color: #111827;
    border-radius: 20px;
    padding: 15px 16px;
    resize: vertical;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.chat-composer textarea:focus,
.auth-form input:focus {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.chat-composer textarea {
    min-height: 76px;
}

.chat-composer-actions {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(111, 104, 255, 0.12), transparent 28%),
        #f6f7fb;
}

.auth-panel {
    width: min(520px, 100%);
    padding: 28px;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.auth-panel h1 {
    margin: 18px 0 8px;
    font-size: 34px;
}

.auth-note {
    color: #6b7280;
}

.auth-form {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #d8dee8;
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
    border-color: #cfd5df;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.button-primary {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.button-muted {
    background: #ffffff;
}

.button-pill {
    border-radius: 999px;
    padding-inline: 18px;
}

.button-soft {
    background: #f8fafc;
}

.auth-links {
    display: flex;
    gap: 16px;
    color: #4b5563;
    font-size: 13px;
}

.auth-stage {
    width: min(1180px, 100%);
    display: grid;
    gap: 22px;
}

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(207, 213, 223, 0.8);
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(16px);
}

.auth-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.auth-mini-button {
    min-height: 40px;
    padding-inline: 16px;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    gap: 24px;
    align-items: stretch;
}

.auth-intro {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    padding: 34px 34px 30px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 18%, rgba(87, 113, 255, 0.24), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(56, 189, 248, 0.16), transparent 24%),
        linear-gradient(145deg, #161b28 0%, #111827 54%, #182033 100%);
    color: #f8fafc;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 26px;
}

.auth-intro::after {
    content: "";
    position: absolute;
    inset: auto -80px -90px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
    pointer-events: none;
}

.auth-intro-brand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.auth-intro .chat-brand strong,
.auth-intro .chat-brand small {
    color: #f8fafc;
}

.auth-intro .chat-brand small {
    color: rgba(226, 232, 240, 0.72);
}

.auth-intro .chat-brand-mark {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-intro-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(241, 245, 249, 0.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.auth-intro-copy {
    display: grid;
    gap: 14px;
    max-width: 540px;
}

.auth-eyebrow {
    color: rgba(191, 219, 254, 0.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-intro-copy h1 {
    margin: 0;
    font-size: clamp(46px, 6vw, 74px);
    line-height: 0.95;
    letter-spacing: -0.08em;
    color: #ffffff;
}

.auth-intro-copy .auth-note {
    margin: 0;
    max-width: 520px;
    color: rgba(226, 232, 240, 0.84);
    font-size: 16px;
    line-height: 1.85;
}

.auth-intro-grid {
    align-self: end;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.auth-intro-card {
    display: grid;
    gap: 8px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.auth-intro-card strong {
    font-size: 15px;
    color: #ffffff;
}

.auth-intro-card span {
    color: rgba(226, 232, 240, 0.78);
    font-size: 13px;
    line-height: 1.75;
}

.auth-panel.auth-panel-rich {
    width: 100%;
    min-height: 680px;
    padding: 30px 30px 24px;
    border-radius: 30px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
    display: grid;
    align-content: start;
    gap: 20px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

.auth-panel-head {
    display: grid;
    gap: 14px;
}

.auth-panel-kicker {
    display: inline-flex;
    color: #8a93a5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-panel-head h2 {
    margin: 4px 0 0;
    color: #111827;
    font-size: 34px;
    letter-spacing: -0.05em;
}

.auth-switch {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
    background: #eef2f7;
}

.auth-switch a {
    min-height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.auth-switch a.is-active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.auth-form.auth-form-rich {
    gap: 14px;
    margin-top: 0;
}

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

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field span {
    color: #475467;
    font-size: 13px;
    font-weight: 700;
}

.auth-form-rich input,
.auth-form-rich textarea {
    width: 100%;
    min-height: 56px;
    border: 1px solid #d9e0ea;
    background: #fbfcff;
    color: #111827;
    border-radius: 18px;
    padding: 15px 16px;
    outline: none;
    resize: vertical;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auth-form-rich textarea {
    min-height: 128px;
    font: inherit;
    line-height: 1.7;
}

.auth-form-rich input:focus,
.auth-form-rich textarea:focus {
    border-color: rgba(79, 99, 255, 0.42);
    box-shadow: 0 0 0 4px rgba(79, 99, 255, 0.08);
    transform: translateY(-1px);
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    font-size: 15px;
}

.auth-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
    padding-top: 18px;
    border-top: 1px solid #e8ecf3;
    color: #667085;
    font-size: 13px;
    line-height: 1.7;
}

.auth-panel-foot a,
.auth-links a {
    color: #2563eb;
    font-weight: 600;
}

.studio-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 224px 1fr;
    background:
        radial-gradient(circle at top right, rgba(111, 104, 255, 0.08), transparent 22%),
        linear-gradient(180deg, #090b12 0%, #0b0e16 100%);
    color: var(--studio-text);
    animation: studioFadeIn 0.45s ease;
}

.studio-sidebar {
    position: relative;
    padding: 16px 14px 14px;
    background:
        linear-gradient(180deg, rgba(18, 22, 35, 0.98) 0%, rgba(11, 14, 24, 0.98) 100%);
    border-right: 1px solid rgba(144, 153, 186, 0.12);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.studio-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 2px 10px;
}

.studio-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(145deg, rgba(111, 104, 255, 0.36) 0%, rgba(80, 137, 255, 0.16) 100%);
    border: 1px solid rgba(128, 138, 255, 0.3);
    font-weight: 800;
    color: #f4f6ff;
}

.studio-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.studio-brand-copy strong {
    font-size: 15px;
    font-weight: 800;
}

.studio-brand-copy small {
    color: var(--studio-muted);
    font-size: 11px;
}

.studio-nav {
    display: grid;
    gap: 8px;
}

.studio-nav-item {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #d8ddf4;
    transition: background 0.28s ease, transform 0.28s ease, color 0.28s ease;
}

.studio-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(2px);
}

.studio-nav-item.is-active {
    background:
        linear-gradient(135deg, rgba(111, 104, 255, 0.96) 0%, rgba(92, 132, 255, 0.94) 100%);
    box-shadow: 0 18px 34px rgba(87, 96, 255, 0.24);
}

.studio-nav-glyph {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.studio-nav-label {
    font-size: 14px;
    font-weight: 700;
}

.studio-side-card {
    margin-top: auto;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(144, 153, 186, 0.14);
}

.studio-side-card-title {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
}

.studio-side-card p {
    margin: 0;
    color: var(--studio-muted);
    font-size: 12px;
    line-height: 1.7;
}

.studio-side-button {
    width: 100%;
    margin-top: 12px;
}

.studio-help-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 10px;
    color: #dbe1f5;
    font-size: 13px;
}

.studio-main {
    padding: 14px 16px 16px;
}

.studio-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.studio-search {
    flex: 1;
    max-width: 460px;
    height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--studio-line);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 12px;
}

.studio-search input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--studio-text);
    font-size: 14px;
}

.studio-search input::placeholder,
.studio-search-icon {
    color: var(--studio-muted);
}

.studio-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.studio-account-chip {
    min-width: 138px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--studio-line);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    color: var(--studio-ink);
}

.studio-account-chip span {
    color: var(--studio-muted);
    font-size: 12px;
}

.studio-account-chip strong {
    font-size: 13px;
}

.studio-stat-chip {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--studio-line);
    background: rgba(255, 255, 255, 0.03);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.studio-stat-chip span {
    color: var(--studio-muted);
    font-size: 12px;
}

.studio-stat-chip strong {
    font-size: 13px;
}

.studio-user-badge {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(145deg, rgba(111, 104, 255, 0.92) 0%, rgba(91, 134, 255, 0.9) 100%);
    font-weight: 800;
}

.studio-titlebar {
    margin-top: 16px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.studio-titlebar h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -1px;
}

.studio-titlebar p {
    margin: 0;
    color: var(--studio-muted);
    max-width: 640px;
    font-size: 14px;
    line-height: 1.65;
}

.studio-engine-chip {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--studio-line);
    color: #cdd5f7;
    font-size: 12px;
    white-space: nowrap;
}

.studio-workbench {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
    gap: 14px;
}

.studio-preview-column {
    display: grid;
    gap: 14px;
}

.studio-panel {
    border-radius: 18px;
    border: 1px solid var(--studio-line);
    background:
        linear-gradient(180deg, rgba(19, 23, 36, 0.98) 0%, rgba(16, 19, 31, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.studio-preview-panel,
.studio-control-panel,
.studio-gallery-panel {
    padding: 14px;
}

.studio-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #cfd7f5;
    font-size: 12px;
}

.studio-panel-head a {
    color: #aeb7db;
}

.studio-canvas-frame {
    margin-top: 12px;
    height: 420px;
    padding: 12px;
    border-radius: 14px;
    background: #0b0e16;
    border: 1px solid rgba(136, 148, 194, 0.14);
    overflow: hidden;
}

.studio-canvas-art {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 12%, rgba(255, 244, 218, 0.92), transparent 18%),
        radial-gradient(circle at 14% 10%, rgba(170, 32, 24, 0.86), transparent 22%),
        radial-gradient(circle at 84% 20%, rgba(248, 195, 121, 0.46), transparent 20%),
        linear-gradient(180deg, #f5e8c4 0%, #fff3d7 22%, #e2c391 44%, #832017 78%, #450f11 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.is-hidden {
    display: none !important;
}

.studio-canvas-art::before,
.studio-canvas-art::after {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    height: 110px;
    background:
        radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.12), transparent 14%),
        linear-gradient(90deg, #7b0e11 0%, #d84425 18%, #99171d 48%, #dd5636 76%, #6f0a0d 100%);
    filter: blur(0.2px);
}

.studio-canvas-art::before {
    top: 0;
    border-bottom-left-radius: 90px;
    border-bottom-right-radius: 120px;
    transform: skewY(-5deg);
}

.studio-canvas-art::after {
    bottom: 0;
    border-top-left-radius: 120px;
    border-top-right-radius: 80px;
    transform: skewY(4deg);
}

.studio-art-badge,
.studio-art-caption,
.studio-art-number {
    position: relative;
    z-index: 1;
}

.studio-art-badge {
    margin-bottom: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(128, 17, 13, 0.1);
    color: #8d1f14;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.8px;
}

.studio-art-number {
    font-size: clamp(88px, 10vw, 150px);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -5px;
    color: #b22b1c;
    text-shadow:
        0 10px 18px rgba(149, 33, 17, 0.24),
        0 2px 0 rgba(255, 225, 177, 0.7);
}

.studio-art-caption {
    margin-top: 10px;
    color: #6e1a11;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.studio-canvas-tools {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.studio-preview-hit {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.studio-icon-button {
    min-width: 56px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--studio-line);
    background: rgba(255, 255, 255, 0.03);
    color: #dce2f8;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.studio-icon-button:hover,
.studio-option-card:hover,
.studio-tag:hover {
    transform: translateY(-2px);
    border-color: rgba(137, 146, 255, 0.34);
}

.studio-gallery-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.studio-gallery-card {
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(136, 148, 194, 0.1);
}

.studio-gallery-preview {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.studio-gallery-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    margin-bottom: 10px;
}

.studio-gallery-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(145deg, rgba(45, 52, 80, 0.92), rgba(18, 22, 34, 0.96));
    color: #dce3ff;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(136, 148, 194, 0.14);
}

.studio-gallery-thumb-image {
    width: 100%;
    object-fit: cover;
    display: block;
    background: #0b0e16;
}

.thumb-1 {
    background:
        linear-gradient(145deg, rgba(90, 118, 255, 0.92), rgba(31, 46, 88, 0.88)),
        linear-gradient(180deg, #1b2133, #080b11);
}

.thumb-2 {
    background:
        linear-gradient(145deg, rgba(255, 157, 85, 0.92), rgba(101, 49, 28, 0.9)),
        linear-gradient(180deg, #241820, #0b0d13);
}

.thumb-3 {
    background:
        linear-gradient(145deg, rgba(215, 72, 112, 0.92), rgba(63, 18, 34, 0.9)),
        linear-gradient(180deg, #241820, #0b0d13);
}

.thumb-4 {
    background:
        linear-gradient(145deg, rgba(89, 216, 189, 0.86), rgba(21, 57, 61, 0.9)),
        linear-gradient(180deg, #171d25, #090b11);
}

.studio-gallery-card h3 {
    margin: 0 0 6px;
    font-size: 13px;
}

.studio-gallery-card p {
    margin: 0;
    color: var(--studio-muted);
    font-size: 11px;
}

.studio-gallery-status {
    display: block;
    margin-top: 8px;
    color: #cfd7f5;
    font-size: 11px;
}

.studio-gallery-status-pending,
.studio-gallery-status-processing {
    color: #95a7ff;
}

.studio-gallery-status-success {
    color: #7ee0bb;
}

.studio-gallery-status-failed {
    color: #ff8f8f;
}

.studio-gallery-fail {
    display: block;
    margin-top: 6px;
    color: #d88c8c;
    font-size: 11px;
    line-height: 1.6;
}

.studio-gallery-empty {
    grid-column: 1 / -1;
    padding: 18px;
    border-radius: 14px;
    border: 1px dashed rgba(136, 148, 194, 0.18);
    color: var(--studio-muted);
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.02);
}

.studio-textarea-wrap {
    margin-top: 12px;
}

.studio-canvas-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 14px;
    background: #0b0e16;
}

.studio-textarea-wrap textarea {
    width: 100%;
    min-height: 170px;
    padding: 14px;
    resize: vertical;
    border-radius: 14px;
    border: 1px solid rgba(136, 148, 194, 0.14);
    background: #0b0e16;
    color: var(--studio-text);
    outline: none;
    font-size: 14px;
    line-height: 1.7;
}

.studio-textarea-wrap textarea::placeholder {
    color: #757f9d;
}

.studio-subsection {
    margin-top: 16px;
}

.studio-subsection-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.studio-subsection-head span {
    font-size: 13px;
    font-weight: 700;
}

.studio-subsection-head small {
    color: var(--studio-muted);
    font-size: 12px;
}

.studio-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.studio-tag {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(136, 148, 194, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #d9e0f8;
    font-size: 12px;
}

.studio-option-grid {
    display: grid;
    gap: 10px;
}

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

.studio-option-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.studio-option-card {
    min-height: 86px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(136, 148, 194, 0.14);
    background: rgba(255, 255, 255, 0.02);
    color: #edf1ff;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

.studio-option-card strong {
    font-size: 16px;
}

.studio-option-card span,
.studio-option-card em {
    color: var(--studio-muted);
    font-style: normal;
    font-size: 12px;
}

.studio-option-card.is-active {
    background:
        linear-gradient(180deg, rgba(111, 104, 255, 0.28) 0%, rgba(48, 56, 98, 0.32) 100%);
    border-color: rgba(129, 140, 255, 0.54);
    box-shadow: inset 0 0 0 1px rgba(129, 140, 255, 0.2);
}

.studio-option-card-ratio {
    min-height: 74px;
}

.studio-hidden-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.studio-upload-box {
    margin-top: 16px;
    min-height: 90px;
    padding: 16px;
    border-radius: 14px;
    border: 1px dashed rgba(139, 151, 205, 0.28);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.studio-upload-title {
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 800;
}

.studio-upload-box p {
    margin: 0;
    color: var(--studio-muted);
    font-size: 12px;
    line-height: 1.6;
}

.studio-submit-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.studio-mini-button {
    min-width: 110px;
}

.studio-generate-button {
    flex: 1;
    min-height: 48px;
    font-size: 17px;
    font-weight: 800;
    background:
        linear-gradient(135deg, rgba(111, 104, 255, 0.98) 0%, rgba(99, 128, 255, 0.98) 100%);
    box-shadow: 0 16px 28px rgba(93, 105, 255, 0.22);
}

@keyframes studioFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-shell {
    min-height: 100vh;
    padding: 22px 22px 40px;
    background:
        radial-gradient(circle at 8% 8%, rgba(184, 77, 25, 0.18), transparent 20%),
        radial-gradient(circle at 90% 16%, rgba(42, 73, 127, 0.16), transparent 18%),
        linear-gradient(180deg, #f6f1e8 0%, #f1ebe1 48%, #ece6dc 100%);
    color: var(--landing-ink);
}

.landing-topbar {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0 26px;
}

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

.landing-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #171d28 0%, #32415d 100%);
    color: #f7f1e8;
    font-weight: 800;
    letter-spacing: 1px;
}

.landing-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.landing-brand-text strong {
    font-size: 17px;
    font-weight: 800;
}

.landing-brand-text small {
    color: var(--landing-muted);
    font-size: 12px;
}

.landing-nav {
    display: inline-flex;
    align-items: center;
    gap: 22px;
}

.landing-nav a {
    color: rgba(17, 24, 39, 0.8);
    font-size: 14px;
}

.landing-actions {
    display: flex;
    gap: 10px;
}

.landing-hero {
    max-width: 1380px;
    min-height: calc(100svh - 104px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 30px;
    align-items: center;
}

.landing-hero-copy {
    padding: 30px 0 30px 6px;
}

.landing-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(17, 24, 39, 0.08);
    color: rgba(17, 24, 39, 0.84);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.landing-kicker {
    color: var(--landing-accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.landing-title {
    margin: 14px 0 18px;
    max-width: 760px;
    font-size: clamp(44px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -2.4px;
    font-weight: 900;
}

.landing-summary {
    max-width: 600px;
    margin: 0;
    color: var(--landing-muted);
    font-size: 17px;
    line-height: 1.85;
}

.landing-hero-actions,
.landing-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.button-large {
    min-height: 50px;
    padding: 0 24px;
}

.button-outline {
    background: transparent;
    border-color: rgba(17, 24, 39, 0.18);
    color: var(--landing-ink);
}

.button-ghost-dark {
    background: rgba(17, 24, 39, 0.04);
    border-color: rgba(17, 24, 39, 0.08);
    color: var(--landing-ink);
}

.landing-status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.landing-status-block {
    padding: 16px 0 0;
    border-top: 1px solid rgba(17, 24, 39, 0.14);
}

.landing-status-block span {
    display: block;
    margin-bottom: 8px;
    color: var(--landing-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.landing-status-block strong {
    font-size: 17px;
}

.landing-hero-visual {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(17, 22, 31, 0.98) 0%, rgba(20, 28, 42, 0.96) 100%);
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
}

.visual-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 92%);
}

.visual-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.85;
}

.visual-orb-a {
    width: 240px;
    height: 240px;
    right: -20px;
    top: 30px;
    background: radial-gradient(circle, rgba(244, 138, 84, 0.92) 0%, rgba(244, 138, 84, 0) 70%);
}

.visual-orb-b {
    width: 220px;
    height: 220px;
    left: 40px;
    bottom: 40px;
    background: radial-gradient(circle, rgba(88, 145, 255, 0.62) 0%, rgba(88, 145, 255, 0) 72%);
}

.visual-stage {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 42px 34px 36px;
    display: grid;
    grid-template-columns: 1.1fr 0.78fr;
    gap: 20px;
}

.visual-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
}

.visual-column-wide {
    padding-top: 28px;
}

.visual-frame,
.visual-floating-panel {
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.visual-frame:hover,
.visual-floating-panel:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

.visual-frame {
    padding: 14px;
}

.visual-frame-tall {
    min-height: 540px;
}

.visual-frame-mid {
    min-height: 320px;
}

.visual-frame-note {
    padding: 18px 20px;
}

.visual-frame-head,
.visual-frame-foot,
.visual-mini-line,
.visual-mini-strong,
.visual-panel-title,
.visual-panel-list li {
    color: rgba(241, 244, 250, 0.9);
}

.visual-frame-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 12px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.visual-frame-foot {
    margin-top: 14px;
    color: rgba(241, 244, 250, 0.72);
    font-size: 13px;
}

.visual-image {
    border-radius: 18px;
    width: 100%;
    height: 100%;
    min-height: 240px;
    background-size: cover;
    background-position: center;
}

.visual-image-a {
    min-height: 456px;
    background:
        radial-gradient(circle at 50% 22%, rgba(255, 244, 228, 0.94), transparent 20%),
        radial-gradient(circle at 52% 34%, rgba(255, 172, 136, 0.78), transparent 30%),
        radial-gradient(circle at 48% 52%, rgba(72, 85, 121, 0.78), transparent 42%),
        linear-gradient(180deg, #d3d6db 0%, #8b7f78 24%, #2f3548 68%, #121722 100%);
}

.visual-image-b {
    min-height: 250px;
    background:
        radial-gradient(circle at 58% 34%, rgba(255, 211, 123, 0.92), transparent 16%),
        linear-gradient(135deg, rgba(255, 120, 61, 0.95) 0%, rgba(79, 44, 18, 0.36) 38%, rgba(22, 28, 38, 0.98) 100%),
        linear-gradient(180deg, #ffcf9f 0%, #d46931 34%, #251a18 100%);
}

.visual-mini-line {
    color: rgba(241, 244, 250, 0.68);
    font-size: 13px;
    line-height: 1.7;
}

.visual-mini-strong {
    margin: 10px 0;
    font-size: 22px;
    font-weight: 800;
}

.visual-floating-panel {
    position: absolute;
    right: 26px;
    bottom: 28px;
    width: 280px;
    padding: 20px 22px;
}

.visual-panel-title {
    margin-bottom: 14px;
    font-size: 13px;
    color: rgba(241, 244, 250, 0.72);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visual-panel-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.visual-panel-list li {
    position: relative;
    padding-left: 16px;
    color: rgba(241, 244, 250, 0.9);
    line-height: 1.6;
}

.visual-panel-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #f48a54;
}

.landing-feature-band,
.landing-workflow,
.landing-detail,
.landing-final-cta {
    max-width: 1380px;
    margin: 0 auto;
}

.landing-feature-band,
.landing-workflow,
.landing-detail {
    padding-top: 84px;
}

.landing-section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.68fr) minmax(0, 1fr);
    gap: 26px;
    align-items: end;
}

.landing-section-head h2 {
    margin: 10px 0 0;
    max-width: 880px;
    font-size: clamp(28px, 3.3vw, 54px);
    line-height: 1.06;
    letter-spacing: -1.4px;
}

.landing-feature-list {
    margin-top: 38px;
    border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.feature-line {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 26px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.feature-line h3 {
    margin: 0;
    font-size: 24px;
}

.feature-line p {
    margin: 0;
    max-width: 760px;
    color: var(--landing-muted);
    font-size: 16px;
    line-height: 1.9;
}

.workflow-track {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.workflow-item {
    min-height: 260px;
    padding: 22px 20px 26px;
    border-top: 1px solid rgba(17, 24, 39, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 100%);
    transition: transform 0.28s ease, background 0.28s ease;
}

.workflow-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.54) 0%, rgba(255, 255, 255, 0.16) 100%);
}

.workflow-index {
    margin-bottom: 20px;
    color: var(--landing-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.workflow-item h3 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.12;
}

.workflow-item p {
    margin: 0;
    color: var(--landing-muted);
    line-height: 1.82;
}

.landing-detail {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 32px;
    align-items: start;
}

.detail-copy h2 {
    margin: 12px 0 14px;
    font-size: clamp(30px, 3.3vw, 56px);
    line-height: 1.04;
    letter-spacing: -1.3px;
}

.detail-copy p {
    margin: 0;
    max-width: 520px;
    color: var(--landing-muted);
    line-height: 1.9;
}

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

.detail-list-block {
    min-height: 100%;
    padding: 22px 0 0;
    border-top: 1px solid rgba(17, 24, 39, 0.18);
}

.detail-list-title {
    display: block;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 800;
    color: var(--landing-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-list-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.detail-list-block li {
    position: relative;
    padding-left: 18px;
    line-height: 1.75;
    color: rgba(17, 24, 39, 0.88);
}

.detail-list-block li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #202634;
}

.landing-final-cta {
    padding-top: 92px;
}

.landing-final-panel {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 0 0;
    border-top: 1px solid rgba(17, 24, 39, 0.18);
}

.landing-final-panel h2 {
    margin: 10px 0 0;
    max-width: 820px;
    font-size: clamp(28px, 3vw, 50px);
    line-height: 1.06;
    letter-spacing: -1px;
}

.hero-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(39, 110, 241, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(26, 179, 148, 0.18), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
    padding: 28px;
}

.hero-card,
.account-card,
.install-card,
.panel,
.stat-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(24, 33, 47, 0.08);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(18, 37, 63, 0.08);
}

.topbar {
    max-width: 1240px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    color: #152033;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2458df 0%, #1ab394 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    letter-spacing: 1px;
}

.topbar-actions {
    display: flex;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(24, 33, 47, 0.12);
    background: #fff;
    color: #152033;
    font-weight: 600;
    transition: 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(26, 43, 68, 0.08);
}

.button-primary {
    background: linear-gradient(135deg, #2458df 0%, #1f74ff 100%);
    border-color: #2458df;
    color: #fff;
}

.button-muted {
    background: rgba(255, 255, 255, 0.76);
}

.button-danger {
    background: linear-gradient(135deg, #d94848 0%, #c93434 100%);
    border-color: #d94848;
    color: #fff;
}

.button-disabled {
    background: #eef2f8;
    border-color: rgba(24, 33, 47, 0.08);
    color: #95a0b2;
    cursor: not-allowed;
    pointer-events: none;
}

.hero-main {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
}

.hero-card {
    padding: 36px;
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(36, 88, 223, 0.1);
    color: #2458df;
    font-size: 13px;
    font-weight: 700;
}

.hero-title {
    margin: 18px 0 16px;
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -1px;
}

.hero-text {
    font-size: 16px;
    line-height: 1.85;
    color: #526074;
    max-width: 720px;
}

.hero-grid,
.link-grid,
.install-grid,
.stats-grid,
.info-grid,
.module-grid {
    display: grid;
    gap: 16px;
}

.hero-grid {
    margin-top: 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.hero-feature {
    padding: 18px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid rgba(36, 88, 223, 0.08);
}

.hero-feature h3,
.link-card h3,
.stat-card h3,
.panel h3,
.module-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.hero-feature p,
.link-card p,
.account-note,
.module-card p,
.muted {
    margin: 0;
    color: #5b6678;
    line-height: 1.75;
}

.link-card {
    padding: 22px;
}

.link-card small,
.meta-line {
    display: block;
    margin-top: 10px;
    color: #7b8697;
}

.account-shell,
.install-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 0 40px;
}

.member-shell {
    max-width: 1380px;
    margin: 0 auto;
    padding: 12px 0 40px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
}

.member-sidebar {
    display: grid;
    gap: 16px;
    align-content: start;
}

.member-main {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.member-profile-card {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(24, 33, 47, 0.08);
    box-shadow: 0 20px 50px rgba(18, 37, 63, 0.08);
}

.member-profile-card h2 {
    margin: 14px 0 10px;
}

.member-profile-meta {
    margin: 8px 0 0;
    color: #6b7588;
    line-height: 1.7;
}

.member-nav {
    display: grid;
    gap: 10px;
}

.member-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(24, 33, 47, 0.08);
    color: #18212f;
}

.member-nav-link small {
    color: #7b8697;
}

.member-nav-link.is-active {
    background: linear-gradient(135deg, #2458df 0%, #1f74ff 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(36, 88, 223, 0.2);
}

.member-nav-link.is-active small {
    color: rgba(255, 255, 255, 0.76);
}

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

.member-task-grid {
    display: grid;
    gap: 16px;
}

.member-work-card {
    border-radius: 20px;
    background: #f8fbff;
    border: 1px solid rgba(36, 88, 223, 0.08);
    overflow: hidden;
}

.member-task-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    padding: 16px;
    border-radius: 20px;
    background: #f8fbff;
    border: 1px solid rgba(36, 88, 223, 0.08);
}

.member-task-preview {
    min-width: 0;
}

.member-task-thumb {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #eef3f9;
}

.member-task-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.member-task-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7588;
    font-weight: 700;
}

.member-task-body {
    min-width: 0;
}

.member-task-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.member-task-head h3 {
    margin: 0;
    color: #18212f;
    font-size: 18px;
}

.member-task-body p {
    margin: 10px 0 0;
    color: #6b7588;
    line-height: 1.7;
}

.member-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
    color: #6b7588;
    font-size: 13px;
}

.member-task-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.member-task-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.member-task-status-success {
    background: rgba(26, 179, 148, 0.14);
    color: #0e7d61;
}

.member-task-status-failed {
    background: rgba(217, 72, 72, 0.14);
    color: #b23838;
}

.member-task-status-pending,
.member-task-status-processing {
    background: rgba(36, 88, 223, 0.12);
    color: #2458df;
}

.member-work-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    background: #eef3f9;
}

.member-work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-work-body {
    padding: 16px;
}

.member-work-body h3 {
    margin: 0 0 10px;
}

.member-work-body p {
    margin: 0;
    color: #6b7588;
    line-height: 1.7;
}

.member-work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    color: #6b7588;
    font-size: 13px;
}

.member-work-actions {
    margin-top: 14px;
}

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

.promotion-card {
    padding: 18px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid rgba(36, 88, 223, 0.08);
}

.promotion-card strong {
    display: block;
    margin-bottom: 10px;
    color: #18212f;
}

.promotion-card p {
    margin: 0;
    color: #6b7588;
    line-height: 1.7;
}

.promotion-share-box {
    margin-top: 18px;
}

.promotion-share-box label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.promotion-share-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(24, 33, 47, 0.1);
    background: #fff;
    color: #18212f;
    outline: none;
}

.promotion-share-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.member-work-body h3 {
    margin: 0 0 10px;
    color: #18212f;
    font-size: 16px;
}

.member-work-body p {
    margin: 0;
    color: #6b7588;
    line-height: 1.7;
}

.member-work-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: #6b7588;
    font-size: 13px;
}

.member-work-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.account-card,
.install-card {
    padding: 30px;
}

.account-form,
.install-form {
    margin-top: 22px;
}

.form-section {
    margin: 26px 0 14px;
    padding-top: 22px;
    border-top: 1px solid rgba(24, 33, 47, 0.08);
}

.form-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.form-section h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

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

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

.field-span-2 {
    grid-column: span 2;
}

.field label {
    font-size: 14px;
    font-weight: 700;
    color: #293344;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(24, 33, 47, 0.12);
    background: #fff;
    color: #152033;
    outline: none;
}

.field textarea {
    min-height: 96px;
    resize: vertical;
}

.install-grid {
    grid-template-columns: 0.9fr 1.1fr;
}

.step-list,
.check-list {
    display: grid;
    gap: 12px;
}

.step-item,
.check-item,
.module-card,
.stat-card,
.panel {
    padding: 18px;
    border-radius: 18px;
}

.step-item,
.check-item,
.module-card {
    border: 1px solid rgba(24, 33, 47, 0.08);
    background: #fff;
}

.check-status {
    display: inline-flex;
    align-items: center;
    min-width: 74px;
    justify-content: center;
    height: 28px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.check-status.ok {
    background: rgba(26, 179, 148, 0.14);
    color: #118768;
}

.check-status.fail {
    background: rgba(217, 72, 72, 0.14);
    color: #b23838;
}

.install-summary {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #0f1725;
    color: #eef4ff;
}

.notice {
    margin-top: 18px;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    line-height: 1.7;
}

.notice-error {
    border-color: rgba(217, 72, 72, 0.2);
    background: rgba(217, 72, 72, 0.08);
    color: #9e2f2f;
}

.notice-success {
    border-color: rgba(26, 179, 148, 0.2);
    background: rgba(26, 179, 148, 0.08);
    color: #0e7d61;
}

.notice-info {
    border-color: rgba(111, 104, 255, 0.2);
    background: rgba(111, 104, 255, 0.08);
    color: #bfc8ff;
}

.studio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
}

.studio-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 15, 0.82);
    backdrop-filter: blur(8px);
}

.studio-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    max-height: calc(100vh - 52px);
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    border: 1px solid rgba(136, 148, 194, 0.18);
    background: linear-gradient(180deg, rgba(18, 22, 35, 0.98) 0%, rgba(9, 12, 20, 0.98) 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.studio-lightbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(136, 148, 194, 0.12);
}

.studio-lightbox-head strong {
    display: block;
    color: #f0f4ff;
    font-size: 16px;
}

.studio-lightbox-head small {
    color: var(--studio-muted);
    font-size: 12px;
}

.studio-lightbox-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-lightbox-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(136, 148, 194, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #e7ecff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.studio-lightbox-body {
    padding: 18px;
    overflow: auto;
    background: #090b12;
}

.studio-lightbox-body img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    background: #0b0e16;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #edf1f7;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    background: linear-gradient(180deg, #162033 0%, #1d2a42 100%);
    color: #d9e2f2;
    padding: 12px 12px 18px;
    border-right: 1px solid rgba(17, 24, 39, 0.18);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 14px;
    color: #fff;
}

.sidebar-brand-main {
    display: grid;
    gap: 3px;
}

.sidebar-brand-main strong {
    font-size: 20px;
    font-weight: 800;
}

.sidebar-brand-main small {
    color: #8fa0bc;
    font-size: 12px;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.menu-group {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-group-title {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 14px;
    color: #dce6f6;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.menu-group-title::-webkit-details-marker {
    display: none;
}

.menu-group-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.menu-group-arrow {
    color: #7f8ead;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.menu-group[open] .menu-group-arrow {
    transform: rotate(180deg);
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 8px;
    display: grid;
    gap: 4px;
}

.menu-link {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: #bfcce4;
    transition: 0.2s ease;
    font-size: 13px;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.menu-link.is-active {
    background: linear-gradient(135deg, rgba(44, 106, 232, 0.95) 0%, rgba(35, 87, 194, 0.95) 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
    margin-top: 14px;
    padding: 12px 10px 0;
    color: #8fa0bc;
    font-size: 12px;
    line-height: 1.7;
}

.sidebar-toggle {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #e7ecff;
    cursor: pointer;
    white-space: nowrap;
}

.admin-shell.is-collapsed {
    grid-template-columns: 92px 1fr;
}

.admin-shell.is-collapsed .sidebar-brand-main,
.admin-shell.is-collapsed .menu-group-arrow,
.admin-shell.is-collapsed .menu-link,
.admin-shell.is-collapsed .sidebar-footer {
    display: none;
}

.admin-shell.is-collapsed .menu-group-title {
    justify-content: center;
    padding-inline: 0;
}

.admin-shell.is-collapsed .menu-group-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: transparent;
    position: relative;
}

.admin-shell.is-collapsed .menu-group-label::before {
    content: attr(data-short);
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #eaf0ff;
    font-size: 13px;
    font-weight: 800;
}

.admin-shell.is-collapsed .sidebar {
    padding-inline: 10px;
}

.admin-shell.is-collapsed .menu-list {
    padding-inline: 0;
}

.admin-shell.is-collapsed .sidebar-toggle {
    width: 100%;
}

.admin-main {
    padding: 18px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(24, 33, 47, 0.08);
}

.admin-title h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.admin-user-chip {
    min-width: 140px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(24, 33, 47, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}

.admin-user-chip strong {
    font-size: 14px;
}

.admin-user-chip span {
    color: #667384;
    font-size: 12px;
}

.stats-grid { margin-bottom: 20px; }

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

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

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

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #18212f;
}

.panel h3,
.install-card h2,
.account-card h2 {
    margin: 0 0 12px;
}

.panel + .panel {
    margin-top: 16px;
}

.list-table {
    width: 100%;
    border-collapse: collapse;
}

.list-table td {
    padding: 12px 10px 12px 0;
    border-bottom: 1px solid rgba(24, 33, 47, 0.08);
    color: #556174;
}

.list-table tr:first-child td {
    font-size: 12px;
    color: #7a8598;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.provider-table td {
    vertical-align: top;
}

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

.panel-toolbar h3 {
    margin: 0;
}

.panel-toolbar-meta {
    color: #6b7588;
    font-size: 13px;
}

.cms-table {
    width: 100%;
    border-collapse: collapse;
}

.cms-table input,
.cms-table textarea,
.cms-table select {
    width: 100%;
}

.cms-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(24, 33, 47, 0.08);
    vertical-align: top;
}

.button-small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.admin-image-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.admin-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-action-group form {
    margin: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-pill-success {
    background: rgba(26, 179, 148, 0.14);
    color: #0e7d61;
}

.status-pill-info {
    background: rgba(36, 88, 223, 0.12);
    color: #2458df;
}

.status-pill-muted {
    background: rgba(85, 97, 116, 0.12);
    color: #556174;
}

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

.diagnostic-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(24, 33, 47, 0.08);
    background: #f8fbff;
}

.diagnostic-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.diagnostic-kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(24, 33, 47, 0.08);
    color: #556174;
}

.diagnostic-kv:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.diagnostic-kv span {
    color: #7a8598;
    font-size: 13px;
}

.diagnostic-kv strong {
    color: #18212f;
    font-weight: 700;
    text-align: right;
    word-break: break-all;
}

.diagnostic-output {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(24, 33, 47, 0.08);
    color: #344055;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}

.diagnostic-usage {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 12px;
    color: #6b7588;
    font-size: 13px;
}

.empty-state {
    padding: 18px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px dashed rgba(36, 88, 223, 0.18);
    color: #556174;
    line-height: 1.75;
}

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

.announcement-item {
    padding: 14px;
    border: 1px solid rgba(24, 33, 47, 0.08);
    border-radius: 14px;
    background: #fff;
}

.announcement-item h4 {
    margin: 0 0 8px;
}

.announcement-item p {
    margin: 0;
    color: #556174;
    line-height: 1.7;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(24, 33, 47, 0.08);
}

.admin-pagination-meta {
    color: #667384;
    font-size: 13px;
}

.admin-pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 65;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 27, 0.72);
    backdrop-filter: blur(8px);
}

.admin-detail-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(12, 18, 27, 0.28);
}

.admin-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 0;
}

.admin-detail-head strong {
    display: block;
    color: #18212f;
    font-size: 22px;
}

.admin-detail-head small {
    color: #667384;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    padding: 24px;
}

.admin-detail-preview {
    display: grid;
    gap: 14px;
    align-content: start;
}

.admin-detail-preview img {
    width: 100%;
    border-radius: 20px;
    background: #f3f6fb;
    object-fit: contain;
    max-height: 420px;
}

.admin-detail-body {
    min-width: 0;
}

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

.admin-detail-list div {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid rgba(36, 88, 223, 0.08);
}

.admin-detail-list div.is-block {
    grid-column: 1 / -1;
}

.admin-detail-list dt {
    margin-bottom: 8px;
    color: #6b7588;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.admin-detail-list dd {
    margin: 0;
    color: #18212f;
    line-height: 1.75;
    word-break: break-word;
    white-space: pre-wrap;
}

/* Admin / Member Console Rebuild */
.admin-shell {
    --console-bg: #f5f7fb;
    --console-surface: rgba(255, 255, 255, 0.96);
    --console-line: #e8edf5;
    --console-line-strong: #dde5f0;
    --console-text: #1b2431;
    --console-muted: #7d8898;
    --console-accent: #34b46a;
    --console-accent-soft: #eef9f2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    background:
        radial-gradient(circle at top left, rgba(52, 180, 106, 0.08), transparent 20%),
        linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    padding: 18px 16px 20px;
    background: rgba(255, 255, 255, 0.92);
    border-right: 1px solid var(--console-line);
    backdrop-filter: blur(18px);
    box-shadow: 12px 0 30px rgba(15, 23, 42, 0.03);
    color: var(--console-text);
}

.sidebar-brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    gap: 12px;
    padding: 4px 4px 18px;
}

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

.sidebar-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #44c172 0%, #7ed7a1 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 12px 24px rgba(68, 193, 114, 0.26);
}

.sidebar-brand-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.sidebar-brand-main strong {
    color: var(--console-text);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sidebar-brand-main small {
    color: var(--console-muted);
    font-size: 12px;
}

.sidebar-section-label {
    padding: 10px 8px 12px;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-nav {
    display: grid;
    gap: 10px;
}

.menu-group {
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    overflow: hidden;
}

.menu-group[open],
.menu-group.is-group-active {
    background: rgba(248, 250, 252, 0.9);
    border-color: var(--console-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.menu-group-title {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    cursor: pointer;
}

.menu-group-title::-webkit-details-marker {
    display: none;
}

.menu-group-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.menu-group-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f4f7fb;
    border: 1px solid var(--console-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 auto;
}

.menu-group-icon::before {
    content: attr(data-short);
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.menu-group-text {
    color: var(--console-text);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.menu-group-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #b0b8c7;
    border-bottom: 2px solid #b0b8c7;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
    margin-right: 4px;
}

.menu-group[open] .menu-group-arrow {
    transform: rotate(225deg);
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0 10px 10px 58px;
    display: grid;
    gap: 4px;
}

.menu-link {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.menu-link:hover {
    background: #f3f6fa;
    color: var(--console-text);
    transform: translateX(2px);
}

.menu-link-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #c0c8d5;
    flex: 0 0 auto;
}

.menu-link.is-active {
    background: var(--console-accent-soft);
    color: #1b7e46;
}

.menu-link.is-active .menu-link-dot {
    background: var(--console-accent);
    box-shadow: 0 0 0 5px rgba(52, 180, 106, 0.12);
}

.sidebar-footer {
    margin-top: 16px;
    padding: 16px 10px 0;
    border-top: 1px solid var(--console-line);
    color: var(--console-muted);
    font-size: 12px;
    line-height: 1.7;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--console-line);
    border-radius: 12px;
    background: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.sidebar-toggle span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #8b95a7;
}

.admin-shell.is-collapsed {
    grid-template-columns: 94px minmax(0, 1fr);
}

.admin-shell.is-collapsed .sidebar-brand-main,
.admin-shell.is-collapsed .menu-group-text,
.admin-shell.is-collapsed .menu-group-arrow,
.admin-shell.is-collapsed .menu-list,
.admin-shell.is-collapsed .sidebar-footer,
.admin-shell.is-collapsed .sidebar-section-label {
    display: none;
}

.admin-shell.is-collapsed .sidebar {
    padding-inline: 12px;
}

.admin-shell.is-collapsed .sidebar-brand {
    grid-template-columns: 1fr;
    justify-items: center;
}

.admin-shell.is-collapsed .sidebar-brand-identity {
    justify-content: center;
}

.admin-shell.is-collapsed .menu-group {
    border-color: transparent;
    background: transparent;
}

.admin-shell.is-collapsed .menu-group-title {
    justify-content: center;
    padding: 8px 0;
}

.admin-shell.is-collapsed .menu-group-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
}

.admin-main {
    min-width: 0;
    padding: 18px 22px 28px;
    display: grid;
    gap: 18px;
    align-content: start;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
    padding: 16px 18px;
    border-radius: 20px;
    background: var(--console-surface);
    border: 1px solid var(--console-line);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.04);
}

.admin-title {
    min-width: 0;
}

.admin-title h1 {
    margin: 8px 0 6px;
    color: var(--console-text);
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.admin-title .muted {
    max-width: 760px;
    color: var(--console-muted);
    font-size: 14px;
    line-height: 1.7;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f3f6fa;
    color: #7b8698;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-header-search {
    width: min(340px, 100%);
    position: relative;
}

.admin-header-search::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid #a8b1c0;
    border-radius: 999px;
    transform: translateY(-58%);
}

.admin-header-search::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 30px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: #a8b1c0;
    transform: rotate(45deg);
}

.admin-header-search input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px 0 40px;
    border-radius: 14px;
    border: 1px solid var(--console-line);
    background: #fbfcfe;
    color: var(--console-text);
    font-size: 13px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.admin-header-search input.is-miss {
    border-color: #e88d88;
    background: #fff6f5;
}

.admin-user-chip {
    min-width: 150px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--console-line);
    background: #fff;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-user-chip strong {
    color: var(--console-text);
    font-size: 14px;
    font-weight: 700;
}

.admin-user-chip span {
    color: var(--console-muted);
    font-size: 12px;
}

.button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--console-line-strong);
    background: #fff;
    color: var(--console-text);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.03);
}

.button-primary {
    background: linear-gradient(135deg, #42c074 0%, #2ea864 100%);
    border-color: #38b26b;
    color: #fff;
    box-shadow: 0 12px 22px rgba(52, 180, 106, 0.22);
}

.button-muted {
    background: #fff;
}

.button-danger {
    background: linear-gradient(135deg, #ef6a62 0%, #de4d47 100%);
    border-color: #df5650;
    color: #fff;
}

.button-disabled {
    background: #f3f5f8;
    color: #a0a9b8;
    border-color: var(--console-line);
    box-shadow: none;
}

.panel,
.stat-card,
.member-profile-card,
.member-nav-link,
.hero-card,
.account-card,
.install-card {
    background: var(--console-surface);
    border: 1px solid var(--console-line);
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.04);
}

.panel {
    padding: 22px 24px;
}

.panel + .panel {
    margin-top: 0;
}

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

.panel-toolbar h3,
.panel h3 {
    margin: 0;
    color: var(--console-text);
    font-size: 18px;
    letter-spacing: -0.02em;
}

.panel-toolbar-meta,
.meta-line,
.muted,
.link-card p,
.hero-feature p,
.account-note,
.module-card p {
    color: var(--console-muted);
    font-size: 13px;
    line-height: 1.7;
}

.stats-grid,
.info-grid,
.module-grid {
    display: grid;
    gap: 16px;
}

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

.admin-hero-banner {
    min-height: 158px;
    padding: 26px 28px;
    border-radius: 22px;
    border: 1px solid var(--console-line);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.95) 64%, rgba(238, 249, 242, 0.98) 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.04);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: center;
    gap: 20px;
}

.admin-hero-copy h2 {
    margin: 14px 0 10px;
    color: var(--console-text);
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.admin-hero-copy p {
    margin: 0;
    max-width: 660px;
    color: var(--console-muted);
    line-height: 1.8;
}

.admin-hero-visual {
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.admin-hero-orb {
    position: absolute;
    right: 40px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(126, 215, 161, 0.3) 0%, rgba(126, 215, 161, 0) 68%);
    filter: blur(4px);
}

.admin-hero-device {
    position: relative;
    width: 250px;
    height: 118px;
    border-radius: 18px;
    border: 1px solid rgba(52, 180, 106, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
    box-shadow: 0 26px 40px rgba(52, 180, 106, 0.08);
    overflow: hidden;
}

.admin-hero-device span {
    position: absolute;
    border-radius: 999px;
}

.admin-hero-device span:nth-child(1) {
    top: 18px;
    left: 18px;
    width: 84px;
    height: 10px;
    background: #edf2f7;
}

.admin-hero-device span:nth-child(2) {
    bottom: 26px;
    left: 18px;
    width: 214px;
    height: 42px;
    background:
        linear-gradient(180deg, rgba(235, 240, 247, 0.7) 0%, rgba(235, 240, 247, 0.18) 100%);
}

.admin-hero-device span:nth-child(3) {
    right: 22px;
    top: 24px;
    width: 78px;
    height: 56px;
    background:
        linear-gradient(135deg, rgba(68, 193, 114, 0.22) 0%, rgba(126, 215, 161, 0.38) 100%);
}

.info-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
}

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

.module-card {
    min-height: 128px;
    padding: 70px 18px 18px;
    border-radius: 18px;
    border: 1px solid var(--console-line);
    background: #fbfcfe;
    display: grid;
    align-content: center;
    gap: 8px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}

.module-card:hover {
    transform: translateY(-2px);
    border-color: #d6e3da;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.05);
}

.module-card h3 {
    margin: 0;
    color: var(--console-text);
    font-size: 16px;
}

.module-card p {
    margin: 0;
}

.module-card::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 18px;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff8f2 0%, #f8fcf9 100%);
    border: 1px solid #e0ecdf;
}

.stat-card {
    padding: 20px 22px;
    display: grid;
    gap: 10px;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
}

.stat-card::before {
    content: "";
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 45%), linear-gradient(135deg, #eff7f2 0%, #f7fbf8 100%);
    border: 1px solid #e3efe7;
    grid-row: span 4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.stat-card h3 {
    margin: 0;
    color: #7d8898;
    font-size: 14px;
    font-weight: 600;
}

.stat-card strong,
.stat-value {
    color: var(--console-text);
    font-size: 33px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.stat-card > small,
.stat-card > strong,
.stat-card > h3,
.stat-card > p,
.stat-card > .stat-value {
    grid-column: 2;
}

.stats-grid .stat-card:nth-child(2)::before {
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 45%), linear-gradient(135deg, #fff3e8 0%, #fffaf3 100%);
    border-color: #f1e4d3;
}

.stats-grid .stat-card:nth-child(3)::before {
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 45%), linear-gradient(135deg, #eef9f2 0%, #f8fcf9 100%);
}

.stats-grid .stat-card:nth-child(4)::before {
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 45%), linear-gradient(135deg, #f4f7fb 0%, #fbfcfe 100%);
    border-color: #e4ebf4;
}

.cms-table,
.list-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.cms-table tr:first-child td,
.list-table tr:first-child td {
    padding-top: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--console-line);
    color: #95a0b0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cms-table td,
.list-table td {
    padding: 15px 12px 15px 0;
    border-bottom: 1px solid #edf1f6;
    color: #556070;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.7;
}

.cms-table tr:hover td,
.list-table tr:hover td {
    background: rgba(247, 250, 252, 0.72);
}

.cms-table tr:first-child:hover td,
.list-table tr:first-child:hover td {
    background: transparent;
}

.cms-table tr:last-child td,
.list-table tr:last-child td {
    border-bottom: 0;
}

.cms-table strong,
.list-table strong {
    color: var(--console-text);
}

.cms-table input,
.cms-table textarea,
.cms-table select,
.form-grid input,
.form-grid textarea,
.form-grid select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--console-line-strong);
    background: #fbfcfe;
    color: var(--console-text);
    font-size: 14px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.cms-table textarea,
.form-grid textarea {
    min-height: 120px;
    padding-top: 12px;
    padding-bottom: 12px;
}

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

.field-span-2 {
    grid-column: span 2;
}

.install-form,
.panel-stack {
    display: grid;
    gap: 16px;
}

.form-section {
    padding-top: 2px;
}

.form-section h3 {
    margin: 0;
    color: var(--console-text);
    font-size: 18px;
}

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

.diagnostic-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--console-line);
    background: #fbfcfe;
}

.diagnostic-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.diagnostic-card-head strong {
    color: var(--console-text);
}

.diagnostic-kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f6;
}

.diagnostic-kv:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.diagnostic-kv span {
    color: var(--console-muted);
    font-size: 13px;
}

.diagnostic-kv strong {
    color: var(--console-text);
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    word-break: break-word;
}

.diagnostic-output {
    padding: 14px 16px;
    border-radius: 16px;
    background: #fbfcfe;
    border: 1px solid var(--console-line);
    color: #465266;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}

.diagnostic-usage {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--console-muted);
    font-size: 13px;
}

.empty-state {
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed var(--console-line-strong);
    background: #fbfcfe;
    color: var(--console-muted);
    line-height: 1.75;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #6e7888;
    font-size: 13px;
    font-weight: 700;
}

.admin-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-pill {
    min-height: 28px;
    padding: 0 10px;
    margin-left: 0;
    border-radius: 999px;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--console-line);
}

.admin-pagination-meta {
    color: var(--console-muted);
    font-size: 13px;
}

.hero-shell {
    min-height: 100vh;
    padding: 18px 22px 28px;
    background:
        radial-gradient(circle at top left, rgba(52, 180, 106, 0.08), transparent 22%),
        linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
}

.topbar {
    max-width: 1440px;
    margin: 0 auto 16px;
    min-height: 76px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 20px;
    background: var(--console-surface);
    border: 1px solid var(--console-line);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.04);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--console-text);
    font-weight: 700;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #44c172 0%, #7ed7a1 100%);
    box-shadow: 0 12px 22px rgba(52, 180, 106, 0.24);
}

.member-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 18px;
}

.member-sidebar {
    display: grid;
    gap: 16px;
    align-content: start;
    position: sticky;
    top: 18px;
    height: fit-content;
}

.member-profile-card {
    padding: 22px;
}

.member-profile-card h2 {
    margin: 14px 0 10px;
    color: var(--console-text);
    font-size: 24px;
    letter-spacing: -0.03em;
}

.member-profile-meta {
    margin: 8px 0 0;
    color: var(--console-muted);
    font-size: 13px;
    line-height: 1.7;
}

.member-nav {
    display: grid;
    gap: 10px;
}

.member-nav-link {
    padding: 16px 18px;
    display: grid;
    gap: 4px;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.member-nav-link strong {
    color: var(--console-text);
    font-size: 15px;
}

.member-nav-link small {
    color: var(--console-muted);
    font-size: 12px;
}

.member-nav-link:hover {
    transform: translateY(-1px);
    border-color: var(--console-line-strong);
}

.member-nav-link.is-active {
    background: var(--console-accent-soft);
    border-color: rgba(52, 180, 106, 0.18);
}

.member-main {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.member-page-banner {
    min-height: 146px;
    padding: 24px 26px;
    border-radius: 22px;
    border: 1px solid var(--console-line);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.94) 68%, rgba(239, 249, 242, 0.98) 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.04);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 260px;
    align-items: center;
    gap: 18px;
}

.member-page-banner h1 {
    margin: 12px 0 8px;
    color: var(--console-text);
    font-size: 32px;
    letter-spacing: -0.04em;
}

.member-page-banner p {
    margin: 0;
    color: var(--console-muted);
    line-height: 1.8;
}

.member-page-banner-side {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.member-page-badge {
    min-width: 180px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #e6edf7;
    background: rgba(255, 255, 255, 0.78);
    text-align: left;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
}

.member-page-badge strong {
    display: block;
    color: var(--console-text);
    font-size: 20px;
    margin-top: 4px;
}

.member-page-badge small {
    color: var(--console-muted);
    font-size: 12px;
}

.notice {
    border-radius: 16px;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at top, rgba(36, 88, 223, 0.18), transparent 28%),
        #edf3fb;
}

.login-card {
    width: min(520px, 100%);
    padding: 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 50px rgba(15, 28, 49, 0.1);
    border: 1px solid rgba(24, 33, 47, 0.08);
}

.footer-note {
    margin-top: 22px;
    color: #7b8697;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .studio-shell,
    .landing-topbar,
    .landing-hero,
    .landing-section-head,
    .landing-detail,
    .landing-final-panel,
    .hero-main,
    .member-shell,
    .install-grid,
    .stats-grid,
    .info-grid,
    .module-grid,
    .hero-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-span-2 {
        grid-column: auto;
    }

    .studio-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(144, 153, 186, 0.12);
    }

    .studio-workbench,
    .studio-gallery-grid,
    .studio-option-grid-3,
    .studio-option-grid-4,
    .studio-status-strip {
        grid-template-columns: 1fr;
    }

    .studio-titlebar,
    .studio-topbar,
    .studio-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .studio-topbar-right {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .landing-nav {
        display: none;
    }

    .landing-status-strip,
    .workflow-track,
    .detail-columns,
    .feature-line,
    .member-task-card,
    .member-work-grid,
    .promotion-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        min-height: auto;
    }

    .landing-hero-visual {
        min-height: 620px;
    }

    .visual-stage {
        grid-template-columns: 1fr;
    }

    .visual-floating-panel {
        position: static;
        width: 100%;
        margin-top: 18px;
    }

    .admin-shell,
    .member-shell,
    .stats-grid,
    .info-grid,
    .module-grid,
    .form-grid,
    .diagnostic-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .member-sidebar {
        position: static;
        height: auto;
    }

    .admin-pagination,
    .panel-toolbar,
    .admin-detail-grid,
    .admin-detail-list {
        grid-template-columns: 1fr;
    }

    .admin-pagination,
    .panel-toolbar,
    .admin-detail-head,
    .topbar,
    .admin-header {
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .studio-main {
        padding: 12px;
    }

    .studio-sidebar {
        padding: 14px 12px;
    }

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

    .studio-nav-item {
        min-height: 44px;
        padding: 0 10px;
    }

    .studio-titlebar h1 {
        font-size: 28px;
    }

    .studio-canvas-frame {
        height: 300px;
    }

    .hero-shell,
    .admin-main {
        padding: 14px;
    }

    .topbar,
    .admin-header {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
    }

    .sidebar {
        padding: 14px 12px 16px;
    }

    .panel,
    .member-profile-card {
        padding: 18px;
    }

    .member-page-banner {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .member-page-banner-side {
        justify-items: stretch;
    }

    .member-page-badge {
        min-width: 0;
        width: 100%;
    }

    .topbar-actions {
        justify-content: stretch;
    }

    .topbar-actions .button,
    .topbar-actions .admin-user-chip {
        width: 100%;
    }

    .admin-detail-dialog {
        max-height: calc(100vh - 20px);
    }

    .admin-detail-grid {
        padding: 16px;
    }

    .admin-detail-head {
        padding: 18px 16px 0;
    }

    .studio-canvas-art {
        min-height: 0;
    }

    .studio-art-number {
        letter-spacing: -2px;
    }

    .studio-art-caption {
        font-size: 16px;
        padding: 0 18px;
    }

    .studio-search {
        max-width: none;
    }

    .studio-lightbox {
        padding: 14px;
    }

    .studio-lightbox-head {
        flex-direction: column;
        align-items: stretch;
    }

    .studio-lightbox-actions {
        justify-content: space-between;
    }

    .landing-shell {
        padding: 18px 16px 30px;
    }

    .landing-topbar {
        flex-wrap: wrap;
        padding-bottom: 18px;
    }

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

    .landing-actions .button,
    .landing-hero-actions .button,
    .landing-final-actions .button {
        flex: 1 1 auto;
    }

    .landing-title {
        letter-spacing: -1.3px;
    }

    .landing-summary,
    .feature-line p,
    .workflow-item p,
    .detail-copy p {
        font-size: 15px;
    }

    .landing-status-strip {
        gap: 16px;
    }

    .landing-hero-visual {
        min-height: 560px;
        border-radius: 28px;
    }

    .visual-stage {
        padding: 24px 18px 22px;
    }

    .visual-frame-tall {
        min-height: 420px;
    }

    .visual-image-a {
        min-height: 330px;
    }

    .feature-line h3,
    .workflow-item h3 {
        font-size: 22px;
    }
}
/* modern chat overrides */
body.chat-page,
body.auth-page {
    background: #f6f7fb;
    color: #111827;
}

.chat-shell.chat-shell-modern {
    min-height: 100vh;
    grid-template-columns: 304px 1fr;
    background: #ffffff;
}

.chat-sidebar.chat-sidebar-modern {
    padding: 16px 14px;
    background: #f7f8fb;
    border-right: 1px solid #e6e9f1;
}

.chat-brand.chat-brand-modern {
    margin-bottom: 8px;
}

.chat-brand-modern .chat-brand-mark {
    background: #111827;
    border-radius: 14px;
}

.chat-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-brand-copy strong {
    color: #111827;
}

.chat-sidebar-tools {
    display: grid;
    gap: 8px;
    margin: 4px 0 2px;
}

.chat-sidebar-search {
    height: 40px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9aa3b2;
}

.chat-sidebar-search input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    color: #111827;
    font-size: 14px;
}

.chat-new-button.chat-new-button-modern {
    height: 42px;
    border-radius: 12px;
    border: 1px solid #e7eaf0;
    background: #fff;
    color: #111827;
    justify-content: flex-start;
    gap: 10px;
    padding-inline: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.chat-new-button-modern span {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.chat-new-button-modern em {
    font-style: normal;
}

.chat-session-list-modern {
    gap: 8px;
}

.chat-session-item.chat-session-item-modern {
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e7eaf0;
    display: grid;
    grid-template-columns: 1fr 28px;
    align-items: start;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.chat-session-item-modern:hover,
.chat-new-button-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    border-color: #d7dce7;
}

.chat-session-item.is-active {
    background: #eef2ff;
    border-color: #d8ddff;
}

.chat-session-link {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.chat-session-link strong,
.chat-session-link span {
    display: block;
}

.chat-session-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-session-delete-form {
    margin: 0;
}

.chat-session-delete {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #9aa3b2;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.chat-session-delete:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #111827;
}

.chat-sidebar-footer-modern {
    padding-top: 12px;
    border-top: 1px solid #e6e9f1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
}

.chat-user-meta {
    display: grid;
    gap: 3px;
}

.chat-user-meta strong {
    color: #111827;
    font-size: 14px;
}

.chat-user-meta span,
.chat-sidebar-footer-modern,
.chat-session-item span,
.chat-header p,
.chat-eyebrow,
.chat-composer-hint,
.chat-empty-text {
    color: #6b7280;
}

.chat-footer-link {
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
}

.chat-main.chat-main-modern {
    padding: 18px 24px 24px;
    background:
        radial-gradient(circle at 55% 0%, rgba(99, 102, 241, 0.06), transparent 22%),
        #ffffff;
}

.chat-header-modern {
    align-items: start;
    padding-top: 4px;
}

.chat-header-copy {
    max-width: 720px;
}

.chat-header-copy h1 {
    margin: 6px 0 6px;
    font-size: 28px;
    letter-spacing: -0.04em;
    color: #111827;
}

.chat-header-actions-modern {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.button.button-modern {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 13px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.button.button-pill {
    border-radius: 999px;
}

.button.button-soft {
    background: #fff;
}

.chat-thread-modern {
    min-height: calc(100vh - 314px);
    align-content: start;
    justify-items: center;
    padding-top: 8px;
    gap: 12px;
}

.chat-bubble.chat-bubble-modern {
    width: min(760px, 100%);
    border-radius: 16px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.chat-bubble-user.chat-bubble-modern {
    background: #f8fafc;
}

.chat-empty.chat-empty-modern {
    width: min(760px, 100%);
    border-radius: 18px;
    background: #ffffff;
    border: 1px dashed #d9dee8;
    padding: 22px 22px;
    text-align: left;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.chat-empty-title {
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.chat-empty-text {
    line-height: 1.7;
}

.chat-composer.chat-composer-modern {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid #e6e9f1;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.chat-composer-inner {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 8px;
    align-items: end;
}

.chat-composer-send {
    width: 44px;
    height: 44px;
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.chat-composer textarea {
    min-height: 76px;
    border-radius: 16px;
    background: #fbfcfe;
    border: 1px solid #e5e7eb;
    color: #111827;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.chat-composer-ghost {
    min-height: 76px;
    border-radius: 16px;
    border: 1px dashed #d9dee8;
    background: #fbfcfe;
    color: #6b7280;
    display: flex;
    align-items: center;
    padding: 0 16px;
    line-height: 1.6;
}

.chat-composer textarea:focus,
.chat-sidebar-search input:focus,
.auth-form input:focus {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.chat-composer-hint {
    margin-top: 8px;
    padding-left: 4px;
    font-size: 12px;
}

.chat-session-empty {
    border: 1px dashed #d9dee8;
    background: rgba(255, 255, 255, 0.74);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 3px;
}

.chat-session-empty strong {
    color: #111827;
    font-size: 13px;
}

.chat-session-empty span {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.auth-panel {
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #d8dee8;
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
    border-color: #cfd5df;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.button-primary {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.button-muted {
    background: #fff;
}

.notice.notice-error,
.notice.notice-success,
.notice.notice-info {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Chat workspace refresh */
.chat-shell.chat-shell-modern {
    grid-template-columns: 280px 1fr;
}

.chat-shell.chat-shell-modern.is-guest {
    grid-template-columns: 272px 1fr;
}

.chat-sidebar.chat-sidebar-modern {
    padding: 18px 16px;
    background:
        linear-gradient(180deg, #f8f9fc 0%, #f4f6fb 100%);
}

.chat-brand.chat-brand-modern {
    margin-bottom: 10px;
}

.chat-sidebar-tools {
    gap: 10px;
    margin: 2px 0 6px;
}

.chat-sidebar-section-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a8295;
    padding: 0 2px;
}

.chat-sidebar-guest-panel {
    flex: 1;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 12px 2px 0;
}

.chat-sidebar-guest-panel p {
    margin: 0;
    color: #667085;
    line-height: 1.75;
    font-size: 13px;
}

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

.chat-guest-item {
    display: grid;
    gap: 5px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e5eaf2;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.chat-guest-item strong {
    color: #111827;
    font-size: 14px;
}

.chat-guest-item span {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.65;
}

.chat-session-list-modern {
    padding-right: 2px;
}

.chat-sidebar-footer-modern {
    padding-top: 14px;
}

.chat-shell.is-guest .chat-sidebar-footer-modern {
    flex-direction: column;
    align-items: flex-start;
}

.chat-main.chat-main-modern {
    padding: 22px 30px 24px;
    background:
        radial-gradient(circle at 52% 0%, rgba(99, 102, 241, 0.05), transparent 22%),
        #ffffff;
}

.chat-header-modern {
    align-items: flex-start;
    gap: 18px;
}

.chat-header-copy {
    max-width: 760px;
}

.chat-header-copy h1 {
    margin: 8px 0 8px;
    font-size: 32px;
    letter-spacing: -0.05em;
}

.chat-header-copy p {
    line-height: 1.7;
}

.chat-header-actions-modern {
    gap: 12px;
}

.chat-header-guest {
    align-items: center;
    min-height: 84px;
}

.site-announcement-strip {
    display: grid;
    gap: 12px;
    margin-bottom: 6px;
    padding: 14px 16px;
    border: 1px solid #e8ecf3;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.04);
}

.site-announcement-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-announcement-strip-head span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7d8798;
}

.site-announcement-strip-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.site-announcement-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #edf1f6;
    background: #ffffff;
}

.site-announcement-item strong {
    color: #111827;
    font-size: 14px;
}

.site-announcement-item span {
    color: #6b7280;
    line-height: 1.65;
    font-size: 13px;
}

.chat-thread-modern {
    width: min(760px, 100%);
    margin-inline: auto;
    min-height: calc(100vh - 286px);
    padding-top: 10px;
    padding-bottom: 26px;
    gap: 4px;
}

.chat-bubble.chat-bubble-modern {
    width: 100%;
    border: 0;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.chat-bubble + .chat-bubble-assistant {
    margin-top: 8px;
}

.chat-bubble-assistant + .chat-bubble-user {
    margin-top: 20px;
}

.chat-bubble-text {
    white-space: pre-wrap;
    line-height: 1.8;
    color: #1f2937;
    word-break: break-word;
    font-size: 15px;
}

.chat-bubble-text p,
.chat-bubble-text ul,
.chat-bubble-text blockquote,
.chat-bubble-text h1,
.chat-bubble-text h2,
.chat-bubble-text h3,
.chat-bubble-text hr {
    margin: 0;
}

.chat-bubble-text p + p,
.chat-bubble-text p + ul,
.chat-bubble-text p + blockquote,
.chat-bubble-text p + h1,
.chat-bubble-text p + h2,
.chat-bubble-text p + h3,
.chat-bubble-text ul + p,
.chat-bubble-text blockquote + p,
.chat-bubble-text ul + blockquote,
.chat-bubble-text blockquote + ul,
.chat-bubble-text h1 + p,
.chat-bubble-text h2 + p,
.chat-bubble-text h3 + p,
.chat-bubble-text hr + p {
    margin-top: 10px;
}

.chat-bubble-text h1,
.chat-bubble-text h2,
.chat-bubble-text h3 {
    color: #111827;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.chat-bubble-text h1 {
    font-size: 24px;
    line-height: 1.25;
}

.chat-bubble-text h2 {
    font-size: 20px;
    line-height: 1.3;
}

.chat-bubble-text h3 {
    font-size: 17px;
    line-height: 1.35;
}

.chat-bubble-text ul {
    padding-left: 20px;
}

.chat-bubble-text li + li {
    margin-top: 6px;
}

.chat-bubble-text blockquote {
    padding-left: 14px;
    border-left: 3px solid #c8d1de;
    color: #374151;
}

.chat-bubble-text hr {
    height: 1px;
    border: 0;
    background: #e5e7eb;
}

.chat-bubble-text code {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 6px;
    background: #eef2f7;
    font-size: 13px;
}

.chat-usage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chat-usage-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f5f7fb;
    border: 1px solid #e5e7eb;
    color: #5f6b7d;
    font-size: 12px;
}

.chat-image-card {
    display: grid;
    gap: 0;
    margin-top: 0;
    width: min(360px, 100%);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
}

.chat-image-card:hover {
    border-color: transparent;
    box-shadow: none;
}

.chat-image-card-head {
    display: none !important;
}

.chat-image-card-head strong {
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.chat-task-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.chat-task-status-pending {
    background: #fff4df;
    color: #9a6700;
}

.chat-task-status-processing {
    background: #eaf2ff;
    color: #2257c2;
}

.chat-task-status-success {
    background: #eaf8ef;
    color: #18794e;
}

.chat-task-status-expired {
    background: #f3f4f6;
    color: #6b7280;
}

.chat-task-status-failed {
    background: #fff1f1;
    color: #c2410c;
}

.chat-image-card-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
}

.chat-image-preview-link {
    display: block;
    width: 100%;
    cursor: zoom-in;
}

.chat-image-card img {
    display: block;
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    background: #eef2f7;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.chat-image-placeholder {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    border-radius: 24px;
    border: 0;
    background: linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%);
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    padding: 20px;
}

.chat-image-placeholder::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle, rgba(148, 163, 184, 0.48) 1.4px, transparent 1.8px);
    background-size: 14px 14px;
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 68%);
    opacity: 0.92;
    animation: chatImagePulse 2.6s ease-in-out infinite;
}

.chat-image-placeholder span {
    position: relative;
    z-index: 1;
}

.chat-image-meta {
    display: none !important;
}

.chat-image-meta strong {
    color: #111827;
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-image-meta span,
.chat-image-meta small {
    color: #6b7280;
    line-height: 1.6;
}

.chat-image-note {
    color: #6b7280;
    font-size: 13px;
}

.chat-image-meta [data-task-source] {
    display: none !important;
}

.chat-task-error {
    color: #b42318;
}

.chat-image-card-actions {
    display: none !important;
}

.chat-task-action {
    min-width: 0;
    padding-inline: 18px;
    justify-content: center;
}

.chat-image-card[data-task-status="pending"] .chat-image-card-head strong,
.chat-image-card[data-task-status="processing"] .chat-image-card-head strong {
    color: #505866;
}

.chat-image-card[data-task-status="pending"] .chat-task-status,
.chat-image-card[data-task-status="processing"] .chat-task-status {
    display: none;
}

.chat-image-card[data-task-status="pending"] [data-task-title],
.chat-image-card[data-task-status="processing"] [data-task-title],
.chat-image-card[data-task-status="pending"] [data-task-meta],
.chat-image-card[data-task-status="processing"] [data-task-meta] {
    display: none;
}

.chat-image-card[data-task-status="pending"] .chat-image-card-actions,
.chat-image-card[data-task-status="processing"] .chat-image-card-actions {
    display: none;
}

.chat-image-card[data-task-status="failed"] .chat-image-placeholder {
    background: linear-gradient(180deg, #fff4f4 0%, #fff8f8 100%);
    color: #b42318;
}

.chat-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.chat-image-lightbox[hidden] {
    display: none !important;
}

.chat-image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    cursor: zoom-out;
}

.chat-image-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1120px, 100%);
    max-height: calc(100vh - 48px);
}

.chat-image-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.chat-image-lightbox-dialog img {
    display: block;
    max-width: min(1120px, 100%);
    max-height: calc(100vh - 48px);
    width: auto;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    background: #ffffff;
}

@keyframes chatImagePulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.96);
        opacity: 0.68;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.02);
        opacity: 1;
    }
}

.chat-empty.chat-empty-modern {
    width: min(840px, 100%);
    padding: 8px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.chat-empty-eyebrow {
    margin-bottom: 12px;
    color: #8a93a5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chat-empty-title {
    margin-bottom: 10px;
    font-size: 44px;
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.chat-empty-text {
    max-width: 760px;
    font-size: 15px;
    line-height: 1.8;
}

.chat-empty-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.chat-empty-suggestion {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.chat-composer.chat-composer-modern {
    position: relative;
    z-index: 6;
    width: min(760px, 100%);
    padding: 0;
    border-radius: 24px;
    border: 1px solid #e8ebf2;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    overflow: visible;
}

.chat-composer textarea {
    min-height: 58px;
    max-height: 180px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.55;
    resize: none;
    display: block;
}

.chat-composer textarea::placeholder {
    color: #98a1b2;
}

.chat-composer-send {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    border: 0;
    background: #111827;
    color: #fff;
    box-shadow: none;
    transition: background 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.chat-composer-send:hover:not(:disabled) {
    background: #0f172a;
    transform: translateY(-1px);
}

.chat-composer-send:disabled {
    background: #d7dde8;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.92;
    transform: none;
    box-shadow: none;
}

.chat-composer-send-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(-1px);
}

.chat-composer-input-shell {
    position: relative;
    min-height: 108px;
    padding: 16px 16px 12px;
    border-radius: 0;
    background: transparent;
    cursor: text;
}

.chat-composer-input-shell.is-dragover {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.9) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.chat-composer-file-input {
    display: none;
}

.chat-composer-entry {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-composer-upload-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

.chat-composer-upload-trigger {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #dbe5dc;
    border-radius: 14px;
    background: #f5fbf7;
    color: #23543a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.chat-composer-upload-trigger:hover:not(:disabled) {
    background: #eef8f1;
    border-color: #cdddcf;
    transform: translateY(-1px);
}

.chat-composer-upload-trigger:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    transform: none;
}

.chat-composer-upload-trigger-plus {
    font-size: 22px;
    line-height: 1;
    transform: translateY(-1px);
}

.chat-composer-upload-tooltip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    z-index: 18;
    min-width: 220px;
    max-width: 280px;
    padding: 10px 12px;
    border: 1px solid #dde7df;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.chat-composer-upload-tooltip::before {
    content: "";
    position: absolute;
    left: 14px;
    bottom: -6px;
    width: 12px;
    height: 12px;
    border-right: 1px solid #dde7df;
    border-bottom: 1px solid #dde7df;
    background: rgba(255, 255, 255, 0.98);
    transform: rotate(45deg);
}

.chat-composer-upload-tooltip strong {
    display: block;
    color: #111827;
    font-size: 12px;
    line-height: 1.2;
}

.chat-composer-upload-tooltip span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.45;
}

.chat-composer-upload-row:hover .chat-composer-upload-tooltip,
.chat-composer-upload-row:focus-within .chat-composer-upload-tooltip {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-composer-upload-feedback {
    margin: 8px 0 0 52px;
    color: #c2410c;
    font-size: 12px;
    line-height: 1.45;
}

.chat-composer-attachment-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.chat-composer-attachment-item {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.chat-composer-attachment-thumb {
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #dfe6df;
    background: #f4f7f4;
}

.chat-composer-attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-composer-attachment-remove {
    position: absolute;
    right: -5px;
    top: -5px;
    z-index: 2;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(107, 114, 128, 0.92);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}

.chat-composer-attachment-remove:hover {
    background: rgba(31, 41, 55, 0.96);
    color: #ffffff;
}

.chat-composer textarea {
    flex: 1;
    min-width: 0;
    padding-top: 11px;
}

.chat-composer-input-shell.has-attachments .chat-composer-entry {
    flex-wrap: wrap;
    align-items: flex-start;
}

.chat-composer-input-shell.has-attachments .chat-composer-attachment-list {
    order: 2;
}

.chat-composer-input-shell.has-attachments .chat-composer textarea {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    padding-top: 0;
    margin-top: 6px;
}

.chat-composer-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.chat-composer-options {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chat-composer-picker {
    position: relative;
}

.chat-composer-picker-trigger-shape {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #667085;
    flex-shrink: 0;
}

.chat-composer-picker-trigger-shape::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    border: 1.8px solid currentColor;
    border-radius: 4px;
    box-sizing: border-box;
}

.chat-composer-picker[data-picker-name="image_ratio"][data-current-value="3:4"] .chat-composer-picker-trigger-shape::before {
    width: 12px;
    height: 16px;
}

.chat-composer-picker[data-picker-name="image_ratio"][data-current-value="16:9"] .chat-composer-picker-trigger-shape::before {
    width: 16px;
    height: 10px;
}

.chat-composer-picker[data-picker-name="image_ratio"][data-current-value="9:16"] .chat-composer-picker-trigger-shape::before {
    width: 10px;
    height: 16px;
    border-radius: 5px;
}

.chat-composer-picker-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #e3e8f2;
    border-radius: 999px;
    background: #ffffff;
    color: #101828;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.chat-composer-picker[data-open="1"] .chat-composer-picker-trigger,
.chat-composer-picker-trigger:hover:not(:disabled) {
    border-color: #cfd8e7;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.chat-composer-picker-trigger:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    box-shadow: none;
}

.chat-composer-picker-trigger-label {
    color: #667085;
    white-space: nowrap;
}

.chat-composer-picker-trigger-value {
    color: #101828;
    font-weight: 600;
    white-space: nowrap;
}

.chat-composer-picker-trigger-arrow {
    width: 8px;
    height: 8px;
    margin-left: 2px;
    border-right: 1.8px solid #1f2937;
    border-bottom: 1.8px solid #1f2937;
    transform: translateY(-1px) rotate(45deg);
    transition: transform 0.18s ease;
}

.chat-composer-picker[data-open="1"] .chat-composer-picker-trigger-arrow {
    transform: translateY(2px) rotate(-135deg);
}

.chat-composer-picker-menu {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1600;
    min-width: 116px;
    max-width: min(320px, calc(100vw - 24px));
    max-height: min(360px, calc(100vh - 24px));
    padding: 8px;
    border-radius: 18px;
    border: 1px solid #e6eaf2;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
    overflow-y: auto;
    overflow-x: hidden;
}

.chat-composer-picker-menu[hidden] {
    display: none !important;
}

.chat-composer-picker-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    gap: 10px;
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #344054;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.chat-composer-picker-item:hover {
    background: #f5f7fb;
}

.chat-composer-picker-item.is-active {
    background: linear-gradient(180deg, #eef2ff 0%, #e8edff 100%);
    color: #3155ff;
    font-weight: 700;
}

.chat-composer-picker-item-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.chat-composer-picker-item-title {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.chat-composer-picker-item-meta {
    color: #7b8496;
    font-size: 12px;
    line-height: 1.2;
}

.chat-composer-picker-item.is-active .chat-composer-picker-item-title,
.chat-composer-picker-item.is-active .chat-composer-picker-item-meta {
    color: inherit;
}

.chat-composer-ratio-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #475467;
    flex-shrink: 0;
}

.chat-composer-ratio-icon::before {
    content: "";
    display: block;
    border: 1.7px solid currentColor;
    border-radius: 4px;
    box-sizing: border-box;
}

.chat-composer-ratio-icon.is-square::before {
    width: 14px;
    height: 14px;
}

.chat-composer-ratio-icon.is-portrait::before {
    width: 11px;
    height: 15px;
}

.chat-composer-ratio-icon.is-landscape::before {
    width: 15px;
    height: 10px;
}

.chat-composer-ratio-icon.is-mobile::before {
    width: 10px;
    height: 16px;
    border-radius: 5px;
}

.chat-composer-resolution-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ecefff 0%, #e7ecff 100%);
    color: #4c54ff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.chat-composer-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.chat-composer-price {
    color: #6b7280;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

.chat-bubble-role {
    display: none;
}

.chat-bubble-user .chat-bubble-content {
    display: inline-flex;
    align-self: flex-end;
    width: auto;
    max-width: min(560px, calc(100% - 120px));
    margin-left: auto;
    margin-right: 0;
    padding: 7px 13px;
    border-radius: 16px;
    background: #edf2fc;
}

.chat-bubble-assistant .chat-bubble-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.chat-bubble-assistant[data-has-task="1"] .chat-bubble-content {
    width: min(360px, 100%);
    gap: 0;
}

.chat-bubble-assistant .chat-bubble-text {
    color: #202736;
    white-space: normal;
}

.chat-bubble[data-has-task="1"] .chat-bubble-text {
    display: none;
}

.chat-bubble-thinking .chat-bubble-text {
    color: #7b8496;
}

.chat-bubble-thinking .chat-bubble-text p::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-radius: 999px;
    background: #9ca3af;
    vertical-align: middle;
    animation: thinkingPulse 1s ease-in-out infinite;
}

.chat-bubble-user .chat-bubble-text {
    color: #18212f;
    white-space: pre-wrap;
    line-height: 1.5;
}

.chat-bubble-user .chat-bubble-text p {
    margin: 0;
}

.ds-thread,
.ds-sidebar-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

.ds-thread::-webkit-scrollbar,
.ds-sidebar-body::-webkit-scrollbar {
    width: 8px;
}

.ds-thread::-webkit-scrollbar-track,
.ds-sidebar-body::-webkit-scrollbar-track {
    background: transparent;
}

.ds-thread::-webkit-scrollbar-thumb,
.ds-sidebar-body::-webkit-scrollbar-thumb {
    background: rgba(203, 213, 225, 0.92);
    border-radius: 999px;
}

.ds-thread::-webkit-scrollbar-thumb:hover,
.ds-sidebar-body::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.92);
}

@keyframes thinkingPulse {
    0%,
    100% {
        opacity: 0.25;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-composer textarea:focus {
    border: 0;
    box-shadow: none;
    transform: none;
}

.chat-composer-guest {
    display: grid;
    gap: 12px;
}

.chat-composer-ghost {
    min-height: 0;
    padding: 16px 18px;
    border-style: solid;
    display: grid;
    gap: 6px;
    align-items: start;
}

.chat-composer-ghost strong {
    color: #111827;
    font-size: 15px;
}

.chat-composer-ghost span {
    color: #6b7280;
    line-height: 1.7;
    font-size: 14px;
}

.chat-composer-guest-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.chat-composer-login,
.chat-composer-register {
    min-width: 122px;
}

.chat-composer-hint {
    margin-top: 10px;
    padding-left: 2px;
}

.chat-composer-warning {
    color: #b42318;
    font-weight: 600;
}

.guest-home {
    display: grid;
    gap: 18px;
    align-content: start;
}

.guest-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.guest-home-hero-copy {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 12px 0;
}

.guest-home-eyebrow {
    color: #8a93a5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.guest-home-hero-copy h2 {
    margin: 0;
    font-size: 52px;
    line-height: 1.02;
    letter-spacing: -0.06em;
    color: #111827;
    max-width: 820px;
}

.guest-home-hero-copy p {
    margin: 0;
    max-width: 720px;
    font-size: 16px;
    line-height: 1.8;
    color: #5f6b7d;
}

.guest-home-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.guest-home-tag {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.guest-home-visual {
    display: flex;
    align-items: stretch;
}

.guest-home-window {
    width: 100%;
    min-height: 520px;
    padding: 14px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(73, 94, 255, 0.14), transparent 28%),
        linear-gradient(180deg, #111625 0%, #0f1421 100%);
    border: 1px solid rgba(152, 165, 204, 0.18);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

.guest-home-window-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.guest-home-window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.guest-home-window-body {
    display: grid;
    gap: 14px;
}

.guest-home-msg {
    max-width: 88%;
    padding: 14px 16px;
    border-radius: 18px;
    line-height: 1.7;
    font-size: 14px;
}

.guest-home-msg-user {
    justify-self: end;
    background: #eef2ff;
    color: #1f2937;
}

.guest-home-msg-ai {
    justify-self: start;
    background: rgba(255, 255, 255, 0.08);
    color: #e9eefc;
    border: 1px solid rgba(165, 178, 212, 0.16);
}

.guest-home-preview {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(165, 178, 212, 0.14);
}

.guest-home-preview-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 214, 130, 0.88), transparent 18%),
        linear-gradient(180deg, #24336a 0%, #19264c 22%, #0e1630 52%, #41204e 76%, #171324 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.guest-home-preview-copy strong {
    color: #f8fbff;
    font-size: 16px;
}

.guest-home-preview-copy span {
    color: #b7c0d9;
    line-height: 1.75;
    font-size: 13px;
}

.guest-home-prompt-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid #e8ecf3;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.guest-home-prompt-copy {
    display: grid;
    gap: 6px;
}

.guest-home-prompt-copy strong {
    color: #111827;
    font-size: 16px;
}

.guest-home-prompt-copy span {
    color: #6b7280;
    line-height: 1.7;
}

.guest-home-prompt-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.guest-home-feature {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #e9edf4;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.guest-home-feature strong {
    color: #111827;
    font-size: 16px;
}

.guest-home-feature p {
    margin: 0;
    color: #667085;
    line-height: 1.75;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .chat-shell.chat-shell-modern,
    .chat-shell.chat-shell-modern.is-guest {
        grid-template-columns: 1fr;
    }

    .chat-sidebar.chat-sidebar-modern {
        border-right: 0;
        border-bottom: 1px solid #e6e9f1;
    }

    .chat-sidebar-guest-panel {
        padding-bottom: 6px;
    }

    .chat-main.chat-main-modern {
        padding-top: 18px;
    }

    .guest-home-hero,
    .guest-home-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .chat-image-card-body {
        grid-template-columns: 1fr;
    }

    .chat-main.chat-main-modern {
        padding: 16px 14px 18px;
    }

    .chat-sidebar.chat-sidebar-modern {
        padding: 14px 12px;
    }

    .chat-header-modern,
    .chat-header-actions-modern,
    .chat-composer-guest-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-empty-title {
        font-size: 34px;
    }

    .chat-empty-text {
        font-size: 14px;
    }

    .chat-composer.chat-composer-modern {
        padding: 12px;
        border-radius: 22px;
    }

    .chat-composer-inner {
        grid-template-columns: 1fr;
    }

    .chat-composer-send,
    .chat-composer-login,
    .chat-composer-register {
        width: 100%;
        min-width: 0;
    }

    .site-announcement-strip-list,
    .guest-home-prompt-shell,
    .guest-home-preview,
    .guest-home-prompt-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .guest-home-hero-copy h2 {
        font-size: 38px;
    }

    .guest-home-window {
        min-height: 420px;
        padding: 12px;
    }

    .guest-home-prompt-shell {
        padding: 16px;
    }
}

/* minimal guest homepage */
.guest-shell {
    min-height: 100vh;
    padding: 18px 24px 28px;
    background: #ffffff;
}

.guest-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.guest-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #fff;
    font-weight: 800;
}

.guest-brand-text {
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.guest-topbar-actions {
    display: flex;
    gap: 10px;
}

.guest-announcement {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.guest-announcement-item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #e8ecf3;
    border-radius: 16px;
    background: #fbfcff;
}

.guest-announcement-item strong {
    color: #111827;
    font-size: 14px;
}

.guest-announcement-item span {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.65;
}

.guest-main {
    width: min(860px, 100%);
    margin: 64px auto 0;
    display: grid;
    gap: 20px;
}

.guest-hero {
    display: grid;
    gap: 12px;
    text-align: center;
}

.guest-hero-eyebrow {
    color: #8a93a5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.guest-hero h1 {
    margin: 0;
    color: #111827;
    font-size: 56px;
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.guest-hero p {
    margin: 0 auto;
    max-width: 720px;
    color: #667085;
    font-size: 16px;
    line-height: 1.8;
}

.guest-hero-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.guest-entry {
    display: grid;
    gap: 10px;
}

.guest-entry-box {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border: 1px solid #e8ecf3;
    border-radius: 22px;
    background: #fbfcff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.04);
}

.guest-entry-label {
    color: #8a93a5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guest-entry-text {
    color: #111827;
    font-size: 18px;
    line-height: 1.7;
}

.guest-entry-note {
    text-align: center;
    color: #7c8699;
    font-size: 13px;
}

@media (max-width: 720px) {
    .guest-shell {
        padding: 14px 14px 22px;
    }

    .guest-topbar,
    .guest-topbar-actions,
    .guest-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .guest-main {
        margin-top: 36px;
    }

    .guest-hero h1 {
        font-size: 38px;
    }
}

/* ds chat app layout */
.ds-shell {
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100svh;
    position: relative;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #ffffff;
    transition: grid-template-columns 0.22s ease;
    overflow-x: clip;
}

.ds-mobile-overlay {
    display: none;
}

.ds-sidebar {
    position: relative;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    border-right: 1px solid #eceff4;
    background: #f8f9fc;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    padding: 12px;
    transition: transform 0.22s ease, opacity 0.22s ease;
    overflow: hidden;
}

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

.ds-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ds-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4f63ff;
    color: #fff;
    font-weight: 800;
}

.ds-brand-text {
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.ds-icon-button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
}

.ds-toggle-bars,
.ds-toggle-bars::before,
.ds-toggle-bars::after {
    display: block;
    width: 14px;
    height: 2px;
    background: #111827;
    border-radius: 999px;
    margin: 0 auto;
    content: "";
}

.ds-toggle-bars::before {
    transform: translateY(-5px);
}

.ds-toggle-bars::after {
    transform: translateY(3px);
}

.ds-sidebar-primary {
    padding-top: 14px;
}

.ds-new-chat {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.ds-sidebar-body {
    padding-top: 16px;
    overflow: auto;
}

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

.ds-session-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 28px;
    gap: 8px;
    align-items: start;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #e7eaf0;
    background: #ffffff;
}

.ds-session-item.is-active {
    background: #eef2ff;
    border-color: #d8ddff;
}

.ds-session-link {
    min-width: 0;
    display: grid;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.ds-session-link strong {
    color: #111827;
    font-size: 14px;
}

.ds-session-link span {
    color: #6b7280;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-session-delete-form {
    margin: 0;
    position: relative;
    z-index: 3;
}

.ds-session-delete {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #98a2b3;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    z-index: 4;
    pointer-events: auto;
}

.ds-session-delete:hover {
    background: #eef2f7;
    color: #475467;
}

.ds-sidebar-empty {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    border: 1px dashed #d8deea;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.72);
}

.ds-sidebar-empty strong {
    color: #111827;
    font-size: 14px;
}

.ds-sidebar-foot {
    padding-top: 14px;
}

.ds-user-card {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    position: relative;
}

.ds-user-card.is-guest {
    grid-template-columns: 34px 1fr;
}

.ds-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4f63ff;
    font-weight: 700;
}

.ds-user-copy {
    display: grid;
    gap: 2px;
}

.ds-user-copy strong {
    color: #111827;
    font-size: 14px;
}

.ds-user-copy span {
    color: #6b7280;
    font-size: 12px;
}

.ds-user-menu {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
}

.ds-user-menu a {
    color: #5b6474;
    font-size: 12px;
}

.ds-main {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    padding: 14px 34px 18px;
    transition: padding 0.22s ease;
    overflow: visible;
}

.ds-main-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
    position: relative;
}

.ds-open-sidebar {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.ds-main-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.ds-main-session-label {
    color: #6b7280;
    font-size: 13px;
}

.ds-notice-bar {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.ds-notice-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e9edf4;
    background: #fbfcff;
}

.ds-notice-item strong {
    color: #111827;
    font-size: 13px;
}

.ds-notice-item span {
    color: #6b7280;
    font-size: 13px;
}

.ds-error-notice {
    margin-top: 12px;
}

.ds-stage {
    display: grid;
    place-items: center;
    min-height: 0;
    height: 100%;
}

.ds-stage-inner {
    width: min(880px, 100%);
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
}

.ds-stage-kicker {
    color: #8a93a5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ds-stage-inner h1 {
    margin: 0;
    color: #111827;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.ds-stage-inner p {
    margin: 0;
    max-width: 760px;
    color: #667085;
    line-height: 1.75;
    font-size: 15px;
}

.ds-stage-note {
    max-width: 760px;
    color: #7a8496;
    font-size: 13px;
    line-height: 1.7;
}

.ds-stage-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: min(760px, 100%);
}

.ds-stage-tag {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #475467;
    font-size: 13px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.ds-stage-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ds-stage-intro {
    max-width: 760px;
    color: #667085;
}

.ds-guest-composer {
    width: min(780px, 100%);
    margin-top: 10px;
}

.ds-guest-input {
    display: grid;
    gap: 18px;
    min-height: 156px;
    padding: 24px 26px 20px;
    border-radius: 28px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
    color: #98a2b3;
    text-align: left;
    font-size: 16px;
}

.ds-guest-placeholder {
    color: #98a2b3;
    line-height: 1.7;
}

.ds-guest-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 6px;
    border-top: 1px solid #eef1f6;
}

.ds-guest-tip {
    color: #98a2b3;
    font-size: 13px;
}

.ds-guest-action-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ds-thread-shell {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: visible;
}

.ds-thread {
    min-height: 0;
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.ds-composer {
    width: min(760px, 100%);
    margin-inline: auto;
}

.ds-composer-center {
    margin-top: 8px;
}

.ds-composer-docked {
    margin-top: 14px;
}

.ds-shell[data-sidebar-state="closed"] .ds-sidebar {
    transform: translateX(calc(-100% - 18px));
    opacity: 0;
    pointer-events: none;
}

.ds-shell[data-sidebar-state="closed"] {
    grid-template-columns: 0 1fr;
}

.ds-shell[data-sidebar-state="closed"] .ds-open-sidebar {
    display: inline-flex;
}

.ds-shell[data-sidebar-state="closed"] .ds-main {
    padding-left: 14px;
}

.ds-shell[data-sidebar-state="closed"] .ds-main-top {
    justify-content: flex-end;
}

.ds-shell[data-sidebar-state="closed"] .ds-open-sidebar {
    position: absolute;
    left: 0;
    top: 0;
}

@media (max-width: 960px) {
    .ds-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        z-index: 20;
        box-shadow: 20px 0 40px rgba(15, 23, 42, 0.16);
    }

    .ds-shell {
        grid-template-columns: 1fr;
    }

    .ds-mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 19;
        border: 0;
        padding: 0;
        background: rgba(15, 23, 42, 0.14);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
    }

    .ds-shell[data-sidebar-state="open"] .ds-mobile-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .ds-shell[data-sidebar-state="closed"] .ds-sidebar {
        transform: translateX(-100%);
        opacity: 1;
        pointer-events: none;
    }

    .ds-shell[data-sidebar-state="open"] .ds-sidebar {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
        z-index: 30;
    }

    .ds-shell[data-sidebar-state="open"] .ds-open-sidebar {
        opacity: 0;
        pointer-events: none;
    }

    .ds-shell[data-sidebar-state="closed"] {
        grid-template-columns: 1fr;
    }

    .ds-open-sidebar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .ds-shell[data-sidebar-state="closed"] .ds-main {
        padding-left: 12px;
    }

    .ds-main-top {
        min-height: 28px;
    }

    .ds-main-actions {
        gap: 8px;
    }

    .ds-shell[data-sidebar-state="closed"] .ds-sidebar .ds-icon-button {
        display: inline-flex;
    }

    .ds-shell[data-sidebar-state="closed"] .ds-open-sidebar .ds-toggle-bars,
    .ds-shell[data-sidebar-state="closed"] .ds-open-sidebar .ds-toggle-bars::before,
    .ds-shell[data-sidebar-state="closed"] .ds-open-sidebar .ds-toggle-bars::after {
        width: 12px;
        background: #1f2937;
    }

    .ds-shell[data-sidebar-state="closed"] .ds-open-sidebar .ds-toggle-bars::before {
        transform: translateY(-4px);
    }

    .ds-shell[data-sidebar-state="closed"] .ds-open-sidebar .ds-toggle-bars::after {
        transform: translateY(2px);
    }
}

@media (max-width: 720px) {
    .ds-main {
        padding: 8px 12px 12px;
    }

    .ds-stage-inner h1 {
        font-size: 28px;
    }

    .ds-stage-inner {
        gap: 10px;
    }

    .ds-stage-inner p {
        font-size: 14px;
        line-height: 1.7;
    }

    .ds-stage-note,
    .ds-stage-intro {
        font-size: 13px;
    }

    .ds-guest-input {
        min-height: 132px;
        padding: 18px;
        font-size: 15px;
        border-radius: 24px;
    }

    .ds-guest-actions,
    .ds-guest-action-group {
        flex-direction: column;
        align-items: stretch;
    }

    .ds-guest-tip {
        text-align: center;
    }

    .ds-stage-inner {
        gap: 12px;
    }

    .ds-stage-inner p {
        font-size: 14px;
        line-height: 1.7;
    }

    .ds-shell[data-sidebar-state="closed"] .ds-main {
        padding-left: 10px;
    }

    .chat-composer.chat-composer-modern {
        padding: 0;
        border-radius: 22px;
    }

    .chat-thread-modern {
        padding-bottom: 20px;
        width: 100%;
        margin-inline: 0;
    }

    .ds-thread {
        width: 100%;
        padding-inline: 0;
    }

    .ds-composer {
        width: 100%;
    }

    .chat-composer-input-shell {
        min-height: 118px;
        padding: 14px 14px 12px;
        border-radius: 0;
    }

    .chat-composer-entry {
        align-items: flex-start;
        gap: 10px;
    }

    .chat-composer-upload-row {
        align-items: flex-start;
    }

    .chat-composer-upload-tooltip {
        min-width: 200px;
        max-width: min(240px, calc(100vw - 36px));
        padding: 9px 11px;
    }

    .chat-composer-upload-tooltip strong,
    .chat-composer-upload-tooltip span {
        font-size: 11px;
    }

    .chat-composer-upload-trigger {
        width: 34px;
        min-width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .chat-composer-upload-feedback {
        margin-left: 44px;
        font-size: 11px;
    }

    .chat-composer-attachment-item {
        width: 42px;
        height: 42px;
    }

    .chat-composer-attachment-thumb {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .chat-composer-footer {
        align-items: stretch;
        gap: 10px;
    }

    .chat-composer-options {
        gap: 8px;
    }

    .chat-composer-picker-trigger {
        min-height: 34px;
        padding-inline: 12px;
        font-size: 13px;
    }

    .chat-composer-picker-item {
        min-height: 34px;
        font-size: 13px;
    }

    .chat-composer-picker-menu {
        min-width: 108px;
    }

    .chat-composer-picker-item-title {
        font-size: 13px;
    }

    .chat-composer-picker-item-meta {
        font-size: 11px;
    }

    .chat-composer-resolution-badge {
        min-width: 38px;
        height: 28px;
        padding-inline: 8px;
        font-size: 12px;
    }

    .chat-composer-toolbar {
        align-items: center;
        gap: 8px;
    }

    .chat-composer-price {
        font-size: 12px;
    }

    .chat-composer-send {
        width: 32px;
        min-width: 32px;
        height: 32px;
        padding: 0;
    }
}

/* Admin console refinements */
.admin-shell {
    --console-bg: #f3f5f7;
    --console-surface: #ffffff;
    --console-line: #e4e9ee;
    --console-line-strong: #d7dde5;
    --console-text: #1f2a37;
    --console-muted: #6f7b8a;
    --console-accent: #4e9a69;
    --console-accent-soft: #edf6ef;
    grid-template-columns: 236px minmax(0, 1fr);
    background: #f3f5f7;
}

.admin-shell .sidebar {
    padding: 14px 12px 18px;
    background: #ffffff;
    border-right: 1px solid var(--console-line);
    backdrop-filter: none;
    box-shadow: none;
}

.admin-shell .sidebar-brand {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 10px;
    padding: 2px 2px 14px;
}

.admin-shell .sidebar-brand-identity {
    gap: 10px;
}

.admin-shell .sidebar-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f4f8f5;
    border: 1px solid #d9e6dc;
    box-shadow: none;
    color: #557563;
    font-size: 13px;
    font-weight: 700;
}

.admin-shell .sidebar-brand-main strong {
    font-size: 16px;
    letter-spacing: 0;
}

.admin-shell .sidebar-brand-main small {
    font-size: 11px;
}

.admin-shell .sidebar-section-label {
    padding: 8px 8px 10px;
    color: #8e98a6;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.admin-shell .sidebar-nav {
    gap: 8px;
}

.admin-shell .menu-group {
    border-radius: 12px;
}

.admin-shell .menu-group[open],
.admin-shell .menu-group.is-group-active {
    background: #fafbfc;
    border-color: var(--console-line);
    box-shadow: none;
}

.admin-shell .menu-group-title {
    padding: 11px 12px;
}

.admin-shell .menu-group-label {
    gap: 10px;
}

.admin-shell .menu-group-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f7f9fb;
    border-color: #e1e7ed;
}

.admin-shell .menu-group-icon::before {
    color: #708090;
    font-size: 12px;
}

.admin-shell .menu-group-text {
    font-size: 13px;
}

.admin-shell .menu-list {
    padding: 0 8px 8px 46px;
    gap: 2px;
}

.admin-shell .menu-list-caption {
    display: none;
}

.admin-shell .menu-link {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
}

.admin-shell .menu-link:hover {
    transform: none;
    background: #f3f6f8;
}

.admin-shell .menu-link.is-active {
    background: #eef5f0;
    color: #2e6e48;
}

.admin-shell .menu-link.is-active .menu-link-dot {
    box-shadow: none;
}

.admin-shell .sidebar-footer {
    margin-top: 12px;
    padding: 12px 8px 0;
    font-size: 11px;
    line-height: 1.65;
}

.admin-shell .sidebar-toggle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    box-shadow: none;
}

.admin-shell .admin-main {
    padding: 14px 18px 22px;
    gap: 14px;
}

.admin-shell .admin-header {
    min-height: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--console-line);
    box-shadow: none;
}

.admin-shell .admin-title h1 {
    margin: 6px 0 4px;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.admin-shell .admin-title .muted {
    max-width: 820px;
    font-size: 13px;
    line-height: 1.65;
}

.admin-shell .section-eyebrow {
    min-height: 24px;
    padding: 0 10px;
    background: #f5f7f9;
    color: #7b8794;
    font-size: 11px;
}

.admin-shell .topbar-actions {
    gap: 8px;
}

.admin-shell .admin-header-search {
    width: min(300px, 100%);
}

.admin-shell .admin-header-search input {
    min-height: 38px;
    border-radius: 10px;
    font-size: 12px;
}

.admin-shell .admin-user-chip {
    min-width: 132px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    box-shadow: none;
}

.admin-shell .admin-user-chip strong {
    font-size: 13px;
}

.admin-shell .admin-user-chip span {
    font-size: 11px;
}

.admin-shell .button {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    box-shadow: none;
    font-size: 12px;
}

.admin-shell .button-primary {
    background: #5aa172;
    border-color: #5aa172;
}

.admin-shell .button-danger {
    background: #d95f57;
    border-color: #d95f57;
}

.admin-shell .panel,
.admin-shell .stat-card {
    border-radius: 12px;
    box-shadow: none;
    background: #ffffff;
}

.admin-shell .panel {
    padding: 16px 18px;
}

.admin-shell .panel-toolbar {
    margin-bottom: 14px;
    gap: 10px;
}

.admin-shell .panel-toolbar h3,
.admin-shell .panel h3 {
    font-size: 15px;
    letter-spacing: 0;
}

.admin-shell .panel-toolbar-meta,
.admin-shell .meta-line,
.admin-shell .muted {
    font-size: 12px;
    line-height: 1.65;
}

.admin-shell .panel-toolbar-plain {
    margin-top: 12px;
    margin-bottom: 0;
}

.admin-shell .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-shell .stat-card {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.admin-shell .stat-card::before {
    content: none;
    display: none;
}

.admin-shell .stat-card > * {
    grid-column: auto;
}

.admin-shell .stat-card strong,
.admin-shell .stat-card .stat-value {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-shell .stat-card h3 {
    font-size: 13px;
    color: #495665;
}

.admin-shell .info-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
    gap: 14px;
}

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

.admin-dashboard-grid .panel {
    min-width: 0;
}

.admin-dashboard-grid .panel.is-span-2 {
    grid-column: 1 / -1;
}

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

.admin-shell .cms-table,
.admin-shell .list-table {
    border: 1px solid var(--console-line);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.admin-shell .cms-table tr:first-child td,
.admin-shell .list-table tr:first-child td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--console-line);
    background: #f7f9fb;
    color: #5f6e7c;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.admin-shell .cms-table td,
.admin-shell .list-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf1f4;
    color: #546171;
    vertical-align: top;
    font-size: 13px;
    line-height: 1.65;
}

.admin-shell .cms-table tr:hover td,
.admin-shell .list-table tr:hover td {
    background: #fafcfd;
}

.admin-shell .cms-table input,
.admin-shell .cms-table textarea,
.admin-shell .cms-table select,
.admin-shell .form-grid input,
.admin-shell .form-grid textarea,
.admin-shell .form-grid select {
    min-height: 40px;
    border-radius: 10px;
    font-size: 13px;
}

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

.admin-shell .field label {
    font-size: 12px;
    margin-bottom: 6px;
}

.admin-shell .diagnostic-output,
.admin-shell .empty-state {
    border-radius: 12px;
}

.admin-shell .status-pill {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
}

.admin-shell .status-pill-warning {
    background: #fff5df;
    color: #9a6a08;
}

.admin-shell .status-pill-danger {
    background: #feebea;
    color: #b74742;
}

.admin-shell .admin-pagination {
    margin-top: 14px;
    padding-top: 14px;
}

.admin-shell .admin-pagination-meta {
    font-size: 12px;
}

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

.admin-summary-item {
    padding: 12px 14px;
    border: 1px solid var(--console-line);
    border-radius: 12px;
    background: #ffffff;
    display: grid;
    gap: 4px;
}

.admin-summary-item span {
    color: var(--console-muted);
    font-size: 12px;
}

.admin-summary-item strong {
    color: var(--console-text);
    font-size: 18px;
}

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

.admin-link-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--console-line);
    border-radius: 10px;
    background: #fafbfc;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.admin-link-item:hover {
    border-color: #d0d9e1;
    background: #f5f8fa;
}

.admin-link-item strong {
    color: var(--console-text);
    font-size: 13px;
}

.admin-link-item span {
    color: var(--console-muted);
    font-size: 12px;
    line-height: 1.6;
}

.admin-command-box {
    padding: 12px 14px;
    border: 1px dashed #d7dde4;
    border-radius: 10px;
    background: #f8fafb;
    color: #425164;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.admin-shell.is-collapsed {
    grid-template-columns: 72px minmax(0, 1fr);
}

.admin-shell.is-collapsed .sidebar {
    padding-inline: 8px;
}

.admin-shell.is-collapsed .sidebar-brand {
    justify-items: center;
}

.admin-shell.is-collapsed .sidebar-brand-identity {
    justify-content: center;
}

.admin-shell.is-collapsed .menu-group {
    position: relative;
    overflow: visible;
}

.admin-shell.is-collapsed .menu-group-title {
    justify-content: center;
    padding: 8px 0;
}

.admin-shell.is-collapsed .menu-group-icon {
    width: 36px;
    height: 36px;
}

.admin-shell.is-collapsed .menu-list {
    display: none;
    position: absolute;
    left: calc(100% + 8px);
    top: -2px;
    min-width: 180px;
    padding: 8px;
    border: 1px solid var(--console-line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    z-index: 30;
}

.admin-shell.is-collapsed .menu-list-caption {
    display: block;
    padding: 6px 8px 8px;
    color: #667381;
    font-size: 11px;
    font-weight: 700;
    border-bottom: 1px solid #eef2f5;
    margin-bottom: 6px;
}

.admin-shell.is-collapsed .menu-group:hover .menu-list,
.admin-shell.is-collapsed .menu-group:focus-within .menu-list,
.admin-shell.is-collapsed .menu-group[open] .menu-list {
    display: grid;
}

.admin-shell.is-collapsed .menu-group:hover,
.admin-shell.is-collapsed .menu-group[open] {
    background: transparent;
    border-color: transparent;
}

@media (max-width: 1100px) {
    .admin-shell .info-grid,
    .admin-summary-bar,
    .admin-dashboard-grid,
    .admin-shell .stats-grid,
    .admin-shell .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-shell .sidebar {
        position: static;
        height: auto;
    }

    .admin-shell .info-grid,
    .admin-summary-bar,
    .admin-dashboard-grid,
    .admin-shell .stats-grid,
    .admin-shell .form-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell .admin-main {
        padding: 12px;
    }

    .admin-shell .admin-header {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Admin CMS refresh */
.admin-shell {
    --console-bg: #f4f6f9;
    --console-surface: #ffffff;
    --console-surface-soft: #f8fafc;
    --console-line: #dde5ed;
    --console-line-strong: #ced8e3;
    --console-text: #1a2d42;
    --console-muted: #66788a;
    --console-accent: #5aa172;
    --console-accent-soft: #edf8f0;
    grid-template-columns: 236px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--console-bg);
}

.admin-shell .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 14px 12px 16px;
    overflow-x: visible;
    overflow-y: auto;
    background: linear-gradient(180deg, #18242d 0%, #141e26 100%);
    border-right: 1px solid #243440;
}

.admin-shell .sidebar::-webkit-scrollbar,
.admin-shell .admin-main::-webkit-scrollbar {
    width: 8px;
}

.admin-shell .sidebar::-webkit-scrollbar-thumb,
.admin-shell .admin-main::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: #d6dfe6;
}

.admin-shell .sidebar-brand {
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
    padding: 0 2px 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(222, 233, 242, 0.12);
}

.admin-shell .sidebar-brand-identity {
    gap: 10px;
    min-width: 0;
}

.admin-shell .sidebar-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(90, 161, 114, 0.16);
    border: 1px solid rgba(132, 201, 155, 0.22);
    color: #dff5e5;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.admin-shell .sidebar-brand-main strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
    color: #f3f8fc;
}

.admin-shell .sidebar-brand-main small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.55;
    color: #8ca1b2;
}

.admin-shell .sidebar-section-label {
    padding: 2px 6px 10px;
    color: #8397a8;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.admin-shell .sidebar-nav {
    display: grid;
    gap: 6px;
}

.admin-shell .menu-group {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    overflow: visible;
}

.admin-shell .menu-group[open],
.admin-shell .menu-group.is-group-active {
    border-color: rgba(120, 145, 164, 0.18);
    background: rgba(255, 255, 255, 0.045);
}

.admin-shell .menu-group-title {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.admin-shell .menu-group-title:hover {
    background: rgba(255, 255, 255, 0.06);
}

.admin-shell .menu-group-title::-webkit-details-marker {
    display: none;
}

.admin-shell .menu-group-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-shell .menu-group-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(182, 201, 217, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.admin-shell .menu-group-icon::before {
    content: attr(data-short);
    color: #d6e1ea;
    font-size: 12px;
    font-weight: 700;
}

.admin-shell .menu-group-text {
    min-width: 0;
    color: #edf5fb;
    font-size: 13px;
    font-weight: 700;
}

.admin-shell .menu-group-arrow {
    width: 10px;
    height: 10px;
    border-right: 1.5px solid #8ea2b4;
    border-bottom: 1.5px solid #8ea2b4;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.admin-shell .menu-group[open] .menu-group-arrow {
    transform: rotate(225deg);
    margin-top: 4px;
}

.admin-shell .menu-list {
    display: grid;
    gap: 4px;
    padding: 0 8px 10px 42px;
    margin: 0;
    list-style: none;
}

.admin-shell .menu-list::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 42px;
    bottom: 14px;
    width: 1px;
    background: rgba(160, 181, 197, 0.16);
}

.admin-shell .menu-list-caption {
    display: none;
}

.admin-shell .menu-link {
    position: relative;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a7bac8;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
}

.admin-shell .menu-link-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6f8597;
    flex: 0 0 auto;
}

.admin-shell .menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #eef6fc;
    transform: none;
}

.admin-shell .menu-link.is-active {
    background: rgba(90, 161, 114, 0.18);
    color: #effbf2;
}

.admin-shell .menu-link.is-active .menu-link-dot {
    background: #9fdab0;
}

.admin-shell .sidebar-footer {
    margin-top: 12px;
    padding: 12px 8px 0;
    border-top: 1px solid rgba(222, 233, 242, 0.1);
    color: #7f94a6;
    font-size: 11px;
    line-height: 1.7;
}

.admin-shell .sidebar-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(172, 193, 208, 0.18);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.admin-shell .sidebar-toggle span {
    background: #d8e4ec;
}

.admin-shell .admin-main {
    min-width: 0;
    padding: 14px 16px 22px;
    display: grid;
    gap: 12px;
    align-content: start;
    overflow: auto;
}

.admin-shell .admin-header {
    min-height: 0;
    padding: 4px 0 14px;
    border: none;
    border-bottom: 1px solid var(--console-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.admin-shell .admin-title h1 {
    margin: 8px 0 4px;
    color: var(--console-text);
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.admin-shell .section-eyebrow {
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid #dbe5dd;
    background: #f6fbf7;
    color: #62856f;
    font-size: 11px;
    font-weight: 700;
}

.admin-shell .admin-title .muted,
.admin-shell .muted,
.admin-shell .meta-line,
.admin-shell .panel-toolbar-meta {
    color: var(--console-muted);
    font-size: 12px;
    line-height: 1.7;
}

.admin-shell .topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.admin-shell .admin-header-search {
    width: min(300px, 100%);
}

.admin-shell .admin-header-search input,
.admin-shell .admin-user-chip,
.admin-shell .button,
.admin-shell .cms-table input,
.admin-shell .cms-table textarea,
.admin-shell .cms-table select,
.admin-shell .form-grid input,
.admin-shell .form-grid textarea,
.admin-shell .form-grid select {
    border-radius: 8px;
}

.admin-shell .admin-header-search input {
    min-height: 38px;
    border: 1px solid var(--console-line);
    background: #ffffff;
    color: var(--console-text);
}

.admin-shell .admin-user-chip {
    min-width: 136px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--console-line);
    background: #ffffff;
    box-shadow: none;
}

.admin-shell .admin-user-chip strong {
    font-size: 13px;
}

.admin-shell .admin-user-chip span {
    color: var(--console-muted);
    font-size: 11px;
}

.admin-shell .button {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--console-line);
    background: #ffffff;
    box-shadow: none;
    color: #324252;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-shell .button:hover {
    transform: none;
}

.admin-shell .button-primary {
    background: var(--console-accent);
    border-color: var(--console-accent);
    color: #ffffff;
}

.admin-shell .button-muted {
    background: #ffffff;
    color: #425261;
}

.admin-shell .button-danger {
    background: #d86159;
    border-color: #d86159;
    color: #ffffff;
}

.admin-shell .panel,
.admin-shell .stat-card {
    background: var(--console-surface);
    border: 1px solid var(--console-line);
    border-radius: 8px;
    box-shadow: none;
}

.admin-shell .panel {
    padding: 16px 18px;
}

.admin-shell .panel-toolbar {
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.admin-shell .panel-toolbar h3,
.admin-shell .panel h3 {
    margin: 0;
    color: var(--console-text);
    font-size: 15px;
    font-weight: 700;
}

.admin-shell .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-shell .stat-card {
    padding: 14px 16px;
    display: grid;
    gap: 4px;
}

.admin-shell .stat-card::before {
    content: none;
}

.admin-shell .stat-card strong,
.admin-shell .stat-card .stat-value {
    color: var(--console-text);
    font-size: 24px;
    line-height: 1.1;
}

.admin-shell .stat-card h3 {
    color: #45515e;
    font-size: 13px;
}

.admin-shell .cms-table,
.admin-shell .list-table {
    width: 100%;
    border: 1px solid var(--console-line);
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #ffffff;
}

.admin-shell .cms-table tr:first-child td,
.admin-shell .list-table tr:first-child td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--console-line);
    background: #f7f9fb;
    color: #60707f;
    font-size: 12px;
    font-weight: 700;
}

.admin-shell .cms-table td,
.admin-shell .list-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf1f4;
    color: #4f5d6b;
    font-size: 13px;
    line-height: 1.7;
    vertical-align: top;
}

.admin-shell .cms-table tr:last-child td,
.admin-shell .list-table tr:last-child td {
    border-bottom: none;
}

.admin-shell .cms-table tr:hover td,
.admin-shell .list-table tr:hover td {
    background: #fbfcfd;
}

.admin-shell .cms-table strong,
.admin-shell .list-table strong {
    color: var(--console-text);
}

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

.admin-shell .field label {
    display: block;
    margin-bottom: 6px;
    color: #5f6d7b;
    font-size: 12px;
    font-weight: 700;
}

.admin-shell .field-span-2 {
    grid-column: span 2;
}

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

.admin-shell .diagnostic-card {
    padding: 14px;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    background: var(--console-surface-soft);
}

.admin-shell .diagnostic-card-head,
.admin-shell .diagnostic-kv {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.admin-shell .diagnostic-card-head {
    margin-bottom: 10px;
}

.admin-shell .diagnostic-kv {
    padding: 8px 0;
    border-top: 1px solid #edf2f5;
}

.admin-shell .diagnostic-kv span {
    color: var(--console-muted);
    font-size: 12px;
}

.admin-shell .diagnostic-kv strong {
    color: var(--console-text);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    word-break: break-all;
}

.admin-shell .diagnostic-output,
.admin-shell .empty-state {
    padding: 12px 14px;
    border: 1px dashed #d8e0e7;
    border-radius: 8px;
    background: #f9fbfc;
    color: #566575;
}

.admin-shell .diagnostic-usage {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.admin-shell .diagnostic-usage span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f3f6f9;
    color: #5d6a79;
    font-size: 12px;
}

.admin-shell .status-pill {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
}

.admin-shell .status-pill-warning {
    background: #fff4dc;
    color: #986708;
}

.admin-shell .status-pill-danger {
    background: #feeceb;
    color: #b54743;
}

.admin-shell .admin-pagination {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf1f4;
}

.admin-shell .admin-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-console-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) 360px;
    gap: 14px;
    align-items: start;
}

.admin-console-main,
.admin-console-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.admin-console-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #ffffff;
    border: 1px solid var(--console-line);
    border-radius: 8px;
    overflow: hidden;
}

.admin-console-strip-item {
    padding: 12px 14px;
    border-right: 1px solid #edf1f4;
    display: grid;
    gap: 4px;
}

.admin-console-strip-item:last-child {
    border-right: none;
}

.admin-console-strip-item span {
    color: var(--console-muted);
    font-size: 12px;
}

.admin-console-strip-item strong {
    color: var(--console-text);
    font-size: 18px;
}

.admin-workspace-panel {
    padding: 16px 18px;
}

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

.admin-link-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    background: #fafcfd;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.admin-link-item:hover {
    background: #f4f8f5;
    border-color: #d7e6db;
}

.admin-link-item strong {
    color: var(--console-text);
    font-size: 13px;
}

.admin-link-item span {
    color: var(--console-muted);
    font-size: 12px;
    line-height: 1.65;
}

.admin-command-box {
    padding: 12px 14px;
    border: 1px dashed #d2dbe3;
    border-radius: 8px;
    background: #f8fafb;
    color: #435261;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.7;
    word-break: break-all;
}

.admin-inline-note {
    margin-top: 10px;
    color: var(--console-muted);
    font-size: 12px;
    line-height: 1.7;
}

.admin-shell.is-collapsed {
    grid-template-columns: 72px minmax(0, 1fr);
}

.admin-shell.is-collapsed .sidebar {
    padding-inline: 8px;
    overflow: visible;
}

.admin-shell.is-collapsed .sidebar-brand {
    grid-template-columns: 1fr;
    justify-items: center;
}

.admin-shell.is-collapsed .sidebar-brand-identity {
    justify-content: center;
}

.admin-shell.is-collapsed .sidebar-brand-main,
.admin-shell.is-collapsed .menu-group-text,
.admin-shell.is-collapsed .menu-group-arrow,
.admin-shell.is-collapsed .sidebar-section-label,
.admin-shell.is-collapsed .sidebar-footer {
    display: none;
}

.admin-shell.is-collapsed .menu-group {
    border-color: transparent;
    background: transparent;
}

.admin-shell.is-collapsed .menu-group-title {
    justify-content: center;
    padding: 8px 0;
}

.admin-shell.is-collapsed .menu-group-icon {
    width: 36px;
    height: 36px;
}

.admin-shell.is-collapsed .menu-list {
    display: none;
    position: absolute;
    top: -2px;
    left: calc(100% + 10px);
    min-width: 212px;
    padding: 8px;
    border: 1px solid var(--console-line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    z-index: 50;
}

.admin-shell.is-collapsed .menu-list::before {
    content: none;
}

.admin-shell.is-collapsed .menu-list li {
    list-style: none;
}

.admin-shell.is-collapsed .menu-link {
    display: inline-flex;
    width: 100%;
}

.admin-shell.is-collapsed .menu-list-caption {
    display: block;
    padding: 6px 8px 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid #edf1f4;
    color: #667483;
    font-size: 11px;
    font-weight: 700;
}

.admin-shell.is-collapsed .menu-group:hover .menu-list,
.admin-shell.is-collapsed .menu-group:focus-within .menu-list,
.admin-shell.is-collapsed .menu-group.is-flyout-open .menu-list {
    display: grid;
}

.admin-shell.is-collapsed .menu-group.is-flyout-open .menu-group-title {
    background: #f3f7f4;
}

.admin-shell .admin-page-head {
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--console-line);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.admin-shell .admin-page-head-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.admin-shell .admin-page-head-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
}

.admin-shell .admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #7d8a99;
    font-size: 12px;
    line-height: 1.6;
}

.admin-shell .admin-breadcrumb a {
    color: #5f7185;
}

.admin-shell .admin-breadcrumb strong {
    color: var(--console-text);
}

.admin-shell .admin-page-head-actions,
.admin-shell .admin-toolbar-actions,
.admin-shell .admin-side-form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-shell .admin-page-head-actions > *,
.admin-shell .admin-toolbar-actions > *,
.admin-shell .admin-side-form-actions > * {
    flex: 0 0 auto;
}

.admin-shell .admin-page-head-actions form,
.admin-shell .admin-toolbar-actions form,
.admin-shell .admin-action-row form {
    margin: 0;
}

.admin-shell .admin-page-tabs,
.admin-shell .admin-tabs-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 2px;
    border-top: 1px solid #eef2f6;
}

.admin-shell .admin-page-tabs a,
.admin-shell .admin-tabs-secondary a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #d9e2ec;
    background: #ffffff;
    color: #47586b;
    font-size: 12px;
    font-weight: 700;
}

.admin-shell .admin-page-tabs a.is-active,
.admin-shell .admin-tabs-secondary a.is-active,
.admin-shell .admin-page-tabs a:hover,
.admin-shell .admin-tabs-secondary a:hover {
    border-color: #c2d4c7;
    background: #f3faf5;
    color: #346a48;
}

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

.admin-shell .admin-summary-card {
    min-height: 100px;
    padding: 14px 16px;
    border: 1px solid var(--console-line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.02);
}

.admin-shell .admin-summary-card span {
    color: #748494;
    font-size: 12px;
    font-weight: 700;
}

.admin-shell .admin-summary-card strong {
    color: var(--console-text);
    font-size: 18px;
    line-height: 1.15;
}

.admin-shell .admin-summary-card small {
    color: #8a98a6;
    font-size: 11px;
    line-height: 1.6;
}

.admin-shell .admin-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 360px;
    gap: 14px;
    align-items: start;
}

.admin-shell .admin-workbench-main,
.admin-shell .admin-workbench-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

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

.admin-shell .admin-table-card,
.admin-shell .admin-form-card,
.admin-shell .danger-zone {
    padding: 16px 18px;
}

.admin-shell .admin-toolbar {
    margin-bottom: 12px;
}

.admin-shell .admin-toolbar h3 {
    margin: 0;
}

.admin-shell .admin-toolbar p,
.admin-shell .admin-inline-note {
    margin: 4px 0 0;
    color: #7c8b99;
    font-size: 12px;
    line-height: 1.7;
}

.admin-shell .admin-table-scroll {
    overflow: auto;
    border: 1px solid #e1e8ef;
    border-radius: 12px;
}

.admin-shell .admin-table-scroll::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.admin-shell .admin-table-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #ccd7e2;
}

.admin-shell .admin-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

.admin-shell .admin-side-form textarea {
    min-height: 88px;
    resize: vertical;
}

.admin-shell .permission-panel {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e4ebf2;
    border-radius: 12px;
    background: #fbfcfe;
}

.admin-shell .permission-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-shell .permission-clusters {
    display: grid;
    gap: 12px;
}

.admin-shell .permission-cluster {
    padding: 12px;
    border: 1px solid #e6edf3;
    border-radius: 12px;
    background: #ffffff;
}

.admin-shell .permission-cluster-head {
    margin-bottom: 10px;
}

.admin-shell .permission-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
}

.admin-shell .admin-check-item {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #e1e8ef;
    border-radius: 8px;
    background: #fbfcfe;
    color: #415365;
    font-size: 12px;
}

.admin-shell .admin-check-item.is-parent {
    background: #f5f8fb;
    border-color: #d8e2eb;
    font-weight: 700;
}

.admin-shell .admin-kv-list > div {
    padding: 10px 0;
}

.admin-shell .danger-zone {
    border-color: #ecd8d3;
    background: linear-gradient(180deg, #fffefe 0%, #fff8f6 100%);
}

.admin-shell .admin-filter-bar {
    display: grid;
    gap: 12px;
}

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

@media (max-width: 1180px) {
    .admin-shell .admin-workbench {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 980px) {
    .admin-shell .admin-summary-grid,
    .admin-shell .admin-filter-grid,
    .admin-shell .permission-checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-shell .admin-page-head-top,
    .admin-shell .admin-page-head-main {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width: 720px) {
    .admin-shell .admin-summary-grid,
    .admin-shell .admin-filter-grid,
    .admin-shell .permission-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell .admin-page-tabs a,
    .admin-shell .admin-tabs-secondary a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1260px) {
    .admin-console-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 1100px) {
    .admin-shell .stats-grid,
    .admin-shell .form-grid,
    .admin-shell .diagnostic-grid,
    .admin-shell .info-grid,
    .admin-console-strip,
    .admin-console-side {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-shell .sidebar {
        position: static;
        height: auto;
        overflow: visible;
    }

    .admin-shell .admin-main {
        padding: 14px 12px 20px;
    }

    .admin-shell .admin-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .admin-shell .topbar-actions {
        justify-content: flex-start;
    }

    .admin-shell .stats-grid,
    .admin-shell .form-grid,
    .admin-shell .diagnostic-grid,
    .admin-shell .info-grid,
    .admin-console-strip,
    .admin-console-side {
        grid-template-columns: 1fr;
    }
}

body.member-console-page {
    background: #f4f8f4;
    color: #213129;
}

.member-console-page .hero-shell {
    min-height: 100vh;
    padding: 16px 18px 24px;
    background: transparent;
}

.member-console-page .topbar {
    max-width: 1240px;
    margin: 0 auto 12px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #dde8df;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
}

.member-console-page .brand {
    gap: 10px;
}

.member-console-page .brand > div > div {
    font-size: 14px;
    font-weight: 700;
}

.member-console-page .brand .meta-line {
    color: #7c8b81;
    font-size: 12px;
}

.member-console-page .brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #d8e5db;
    background: #f7faf7;
    box-shadow: none;
    color: #507361;
    font-size: 13px;
    font-weight: 700;
}

.member-console-page .topbar-actions {
    gap: 10px;
}

.member-console-page .topbar .button {
    min-height: 38px;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 13px;
    box-shadow: none;
}

.member-console-page .topbar .button.button-muted {
    border-color: #d7e7dc;
    background: #f7fbf8;
    color: #315541;
}

.member-console-page .topbar .button.button-primary {
    border-color: #65b883;
    background: #69bd86;
    color: #ffffff;
}

.member-console-page .member-shell {
    max-width: 1240px;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
}

.member-console-page .member-sidebar {
    gap: 12px;
    top: 16px;
}

.member-console-page .member-profile-card,
.member-console-page .member-nav,
.member-console-page .panel,
.member-console-page .stat-card,
.member-console-page .member-page-banner {
    border-color: #dce9df;
    box-shadow: none;
}

.member-console-page .member-profile-card {
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
}

.member-console-page .member-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.member-console-page .section-eyebrow {
    color: #5b9a71;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.member-console-page .member-profile-card h2 {
    margin: 8px 0 6px;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.member-console-page .member-profile-meta {
    margin-top: 6px;
    color: #728579;
    font-size: 12px;
    line-height: 1.65;
}

.member-console-page .member-profile-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid #d8eadf;
    background: #f6faf7;
    color: #4d8661;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.member-console-page .member-profile-list {
    display: grid;
    gap: 0;
    margin-top: 12px;
}

.member-console-page .member-profile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px dashed #e3eee6;
}

.member-console-page .member-profile-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.member-console-page .member-profile-item span {
    color: #7a8d80;
    font-size: 12px;
}

.member-console-page .member-profile-item strong {
    color: #22352b;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.member-console-page .member-profile-link {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e3eee6;
    color: #4a6f5a;
    font-size: 12px;
    line-height: 1.7;
    word-break: break-all;
}

.member-console-page .member-nav {
    gap: 4px;
    padding: 6px;
    border: 1px solid #dce9df;
    border-radius: 12px;
    background: #ffffff;
}

.member-console-page .member-nav-caption {
    padding: 6px 8px 8px;
    color: #839688;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.member-console-page .member-nav-link {
    position: relative;
    gap: 2px;
    padding: 10px 12px 10px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    color: #23352c;
}

.member-console-page .member-nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 999px;
    background: #63bb80;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.member-console-page .member-nav-link strong {
    font-size: 13px;
    font-weight: 700;
    color: #24342c;
}

.member-console-page .member-nav-link small {
    display: none;
}

.member-console-page .member-nav-link:hover {
    transform: none;
    border-color: #d8e8dd;
    background: #f6faf7;
}

.member-console-page .member-nav-link:hover::before,
.member-console-page .member-nav-link.is-active::before {
    opacity: 1;
}

.member-console-page .member-nav-link.is-active {
    border-color: #d7eadc;
    background: #f0f8f2;
    color: #1d6c3a;
}

.member-console-page .member-nav-link.is-active strong,
.member-console-page .member-nav-link.is-active small {
    color: #1d6c3a;
}

.member-console-page .member-main {
    gap: 12px;
}

.member-console-page .member-page-banner {
    min-height: 0;
    padding: 14px 16px;
    border-radius: 12px;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 12px;
    background: #ffffff;
}

.member-console-page .member-page-banner h1 {
    margin: 4px 0;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.member-console-page .member-page-banner-copy {
    max-width: 760px;
}

.member-console-page .member-page-banner p {
    color: #708277;
    font-size: 12px;
    line-height: 1.65;
}

.member-console-page .member-page-banner-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    justify-content: center;
}

.member-console-page .member-page-badge {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ddebe0;
    background: #f8fbf8;
    box-shadow: none;
}

.member-console-page .member-page-badge strong {
    margin-top: 2px;
    font-size: 14px;
    color: #244432;
}

.member-console-page .member-page-badge small {
    color: #79907f;
    font-size: 11px;
}

.member-console-page .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.member-console-page .stat-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #ffffff;
}

.member-console-page .stat-card::before {
    content: none;
    display: none;
}

.member-console-page .stat-card > * {
    grid-column: auto;
}

.member-console-page .stat-card .meta-line,
.member-console-page .stat-card > small {
    color: #7a8f81;
    font-size: 11px;
}

.member-console-page .stat-card .stat-value,
.member-console-page .stat-card > strong {
    color: #203028;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

.member-console-page .stat-card h3 {
    margin-top: 0;
    font-size: 13px;
    color: #24362d;
}

.member-console-page .stat-card p {
    color: #73877a;
    font-size: 12px;
    line-height: 1.55;
}

.member-console-page .panel-stack {
    gap: 12px;
}

.member-console-page .panel {
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
}

.member-console-page .panel-toolbar {
    gap: 10px;
}

.member-console-page .panel-toolbar h3 {
    font-size: 15px;
    color: #22352b;
}

.member-console-page .panel-toolbar-meta {
    color: #7a8d81;
    font-size: 12px;
}

.member-console-page .member-table-shell {
    overflow-x: auto;
    border-radius: 16px;
}

.member-console-page .member-table-shell::-webkit-scrollbar {
    height: 8px;
}

.member-console-page .member-table-shell::-webkit-scrollbar-thumb {
    background: #c9ddcf;
    border-radius: 999px;
}

.member-console-page .member-table {
    min-width: 100%;
}

.member-console-page .list-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dfeae2;
}

.member-console-page .list-table tr:first-child td {
    background: #f3faf5;
    color: #466857;
    font-size: 12px;
    font-weight: 700;
}

.member-console-page .list-table td {
    border-bottom-color: #e7f0ea;
    color: #2a3c33;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.96);
    padding: 12px 14px;
}

.member-console-page .list-table tr:not(:first-child):hover td {
    background: #f9fcfa;
}

.member-console-page .member-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.member-console-page .member-inline-input {
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
}

.member-console-page .member-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
}

.member-console-page .member-pagination-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.member-console-page .member-work-preview,
.member-console-page .member-work-placeholder {
    width: 92px;
    height: 92px;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #dfeae2;
    background: #f7fbf8;
}

.member-console-page .member-work-placeholder {
    display: grid;
    place-items: center;
    color: #8aa08f;
    border-style: dashed;
    font-size: 12px;
}

.member-console-page .member-work-title {
    color: #24352d;
    font-weight: 600;
    line-height: 1.65;
}

.member-console-page .member-work-meta {
    margin-top: 6px;
    color: #7a8d81;
    font-size: 12px;
}

.member-console-page .member-work-error {
    margin-top: 10px;
}

.member-console-page .member-empty-state {
    padding: 16px 18px;
}

.member-console-page input[type="text"],
.member-console-page input[type="password"],
.member-console-page input[type="email"],
.member-console-page select,
.member-console-page textarea {
    border-color: #d7e7dc;
    background: #fbfefc;
    color: #22332b;
}

.member-console-page input[type="text"]:focus,
.member-console-page input[type="password"]:focus,
.member-console-page input[type="email"]:focus,
.member-console-page select:focus,
.member-console-page textarea:focus {
    border-color: #72c58d;
    box-shadow: 0 0 0 4px rgba(108, 192, 134, 0.14);
}

.member-console-page .button {
    min-height: 38px;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 13px;
}

.member-console-page .button.button-muted {
    border-color: #d6e7dc;
    background: #f5fbf7;
    color: #2e5540;
}

.member-console-page .button.button-primary {
    border-color: #69bd86;
    background: #69bd86;
    color: #ffffff;
}

.member-console-page .notice {
    border-radius: 14px;
}

.member-console-page .notice-info {
    border-color: #d8eadf;
    background: #f4fbf6;
    color: #35614a;
}

.member-console-page .notice-success {
    border-color: #cfe8d8;
    background: #eef9f2;
    color: #215b37;
}

.member-console-page .notice-error {
    background: #fff8f6;
}

@media (max-width: 1100px) {
    .member-console-page .member-shell {
        grid-template-columns: 1fr;
    }

    .member-console-page .member-sidebar {
        position: static;
    }

    .member-console-page .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-console-page .member-page-banner {
        grid-template-columns: 1fr;
    }

    .member-console-page .member-page-banner-side {
        justify-items: stretch;
    }

    .member-console-page .member-inline-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .member-console-page .hero-shell {
        padding: 12px 12px 20px;
    }

    .member-console-page .topbar {
        padding: 12px;
        border-radius: 16px;
    }

    .member-console-page .member-profile-card,
    .member-console-page .member-nav,
    .member-console-page .member-page-banner,
    .member-console-page .panel,
    .member-console-page .stat-card {
        border-radius: 16px;
    }

    .member-console-page .stats-grid {
        grid-template-columns: 1fr;
    }

    .member-console-page .member-page-banner,
    .member-console-page .panel,
    .member-console-page .member-profile-card {
        padding: 16px;
    }

    .member-console-page .member-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-console-page .member-work-preview,
    .member-console-page .member-work-placeholder {
        width: 88px;
        height: 88px;
    }
}

.admin-shell .admin-page-head {
    gap: 14px;
    padding: 22px 24px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.admin-shell .admin-page-head-top,
.admin-shell .admin-page-head-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-shell .admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    color: #7d8b9d;
    font-size: 12px;
}

.admin-shell .admin-breadcrumb a {
    color: #5d6d82;
}

.admin-shell .admin-breadcrumb strong {
    color: #1e293b;
    font-weight: 700;
}

.admin-shell .admin-page-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-shell .admin-page-tabs,
.admin-shell .admin-tabs-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px solid #e7edf4;
}

.admin-shell .admin-page-tabs a,
.admin-shell .admin-tabs-secondary a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #dde6f0;
    background: #f8fafc;
    color: #4b5b72;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.admin-shell .admin-page-tabs a.is-active,
.admin-shell .admin-tabs-secondary a.is-active,
.admin-shell .admin-page-tabs a:hover,
.admin-shell .admin-tabs-secondary a:hover {
    border-color: #becde0;
    background: #eef4fb;
    color: #213147;
}

.admin-shell .admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-shell .admin-summary-card {
    display: grid;
    gap: 6px;
    min-height: 116px;
    padding: 16px 18px;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.admin-shell .admin-summary-card span {
    color: #77869a;
    font-size: 12px;
    font-weight: 700;
}

.admin-shell .admin-summary-card strong {
    color: #172233;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 700;
}

.admin-shell .admin-summary-card small {
    color: #8b98aa;
    font-size: 12px;
    line-height: 1.6;
}

.admin-shell .admin-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 360px;
    gap: 16px;
}

.admin-shell .admin-workbench-main,
.admin-shell .admin-workbench-side {
    display: grid;
    gap: 16px;
    align-content: start;
}

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

.admin-shell .admin-table-card,
.admin-shell .admin-form-card,
.admin-shell .danger-zone {
    padding: 18px 18px 16px;
}

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

.admin-shell .admin-toolbar h3 {
    margin: 0;
}

.admin-shell .admin-toolbar p,
.admin-shell .admin-inline-note {
    margin: 6px 0 0;
    color: #7b8797;
    font-size: 12px;
    line-height: 1.7;
}

.admin-shell .admin-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-shell .admin-table-scroll {
    overflow: auto;
    border: 1px solid #e1e9f2;
    border-radius: 14px;
}

.admin-shell .admin-table-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.admin-shell .admin-table-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c8d4e3;
}

.admin-shell .admin-data-table {
    min-width: 100%;
}

.admin-shell .admin-data-table td,
.admin-shell .admin-kv-table td {
    vertical-align: top;
}

.admin-shell .admin-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-shell .admin-action-row form {
    margin: 0;
}

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

.admin-shell .admin-side-form .field {
    margin: 0;
}

.admin-shell .admin-side-form textarea {
    min-height: 84px;
    resize: vertical;
}

.admin-shell .admin-side-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.admin-shell .admin-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-shell .admin-status-badge.is-success {
    background: #edf8f1;
    color: #21613b;
}

.admin-shell .admin-status-badge.is-danger {
    background: #fff1ef;
    color: #b23a2f;
}

.admin-shell .admin-status-badge.is-neutral {
    background: #f1f5f9;
    color: #556274;
}

.admin-shell .admin-status-badge.is-info {
    background: #eef5ff;
    color: #335f9d;
}

.admin-shell .permission-panel {
    display: grid;
    gap: 12px;
    margin-top: 2px;
    padding: 14px;
    border: 1px solid #dfe7f1;
    border-radius: 14px;
    background: #fbfdff;
}

.admin-shell .permission-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-shell .permission-toolbar strong {
    color: #1d2b3f;
    font-size: 14px;
}

.admin-shell .permission-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-shell .permission-clusters {
    display: grid;
    gap: 12px;
}

.admin-shell .permission-cluster {
    padding: 12px;
    border: 1px solid #e2e9f2;
    border-radius: 12px;
    background: #ffffff;
}

.admin-shell .permission-cluster-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-shell .permission-cluster-head small {
    color: #8491a3;
    font-size: 11px;
}

.admin-shell .permission-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
}

.admin-shell .admin-check-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #e1e8f1;
    border-radius: 10px;
    background: #fbfcfe;
    color: #334155;
    font-size: 12px;
}

.admin-shell .admin-check-item.is-parent {
    border-color: #d4e0ee;
    background: #f4f8fc;
    font-weight: 700;
}

.admin-shell .admin-check-item input {
    margin: 0;
}

.admin-shell .admin-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.admin-shell .admin-check-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #dce7d8;
    border-radius: 16px;
    background: #f7fcf5;
    color: #1f2937;
    cursor: pointer;
}

.admin-shell .admin-check-card input {
    margin: 0;
}

.admin-shell .admin-check-card-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.admin-shell .admin-check-card small {
    color: #617266;
    line-height: 1.6;
}

.admin-shell .admin-kv-list {
    display: grid;
    gap: 0;
}

.admin-shell .admin-kv-list > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px dashed #dde6ef;
}

.admin-shell .admin-kv-list > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.admin-shell .admin-kv-list span {
    color: #7c8899;
    font-size: 12px;
}

.admin-shell .admin-kv-list strong {
    color: #1e293b;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    line-height: 1.7;
}

.admin-shell .danger-zone {
    border-color: #edd9d5;
    background: linear-gradient(180deg, #fffefe 0%, #fff8f7 100%);
}

.admin-shell .admin-filter-bar {
    display: grid;
    gap: 14px;
}

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

.admin-shell .admin-kv-table {
    border-radius: 14px;
}

.admin-shell .admin-kv-table tr td:last-child {
    font-weight: 700;
}

.admin-shell .admin-config-form {
    display: grid;
    gap: 18px;
}

.admin-shell .admin-tab-panel {
    display: none;
}

.admin-shell .admin-tab-panel.is-active {
    display: block;
}

.admin-shell .admin-tab-panel-stack {
    display: none;
    gap: 16px;
}

.admin-shell .admin-tab-panel-stack.is-active {
    display: grid;
}

@media (max-width: 1360px) {
    .admin-shell .admin-workbench {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 1080px) {
    .admin-shell .admin-summary-grid,
    .admin-shell .admin-filter-grid,
    .admin-shell .permission-checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .admin-shell .admin-page-head-top,
    .admin-shell .admin-page-head-main,
    .admin-shell .admin-toolbar,
    .admin-shell .permission-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-shell .admin-summary-grid,
    .admin-shell .admin-filter-grid,
    .admin-shell .permission-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell .admin-page-tabs a,
    .admin-shell .admin-tabs-secondary a {
        width: 100%;
        justify-content: center;
    }
}

/* Admin CMS final override */
.admin-shell.admin-cms-shell {
    --console-bg: #f4f6f9;
    --console-surface: #ffffff;
    --console-line: #dde5ed;
    --console-text: #1a2d42;
    --console-muted: #6d7f91;
    --console-accent: #5aa172;
    --console-accent-soft: #edf8f0;
    grid-template-columns: 236px minmax(0, 1fr);
    background: var(--console-bg);
}

.admin-shell.admin-cms-shell > .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 14px 0 16px;
    background: linear-gradient(180deg, #18242d 0%, #141e26 100%);
    border-right: 1px solid #243440;
}

.admin-shell.admin-cms-shell .sidebar-brand {
    padding: 0 14px 14px;
    border-bottom: 1px solid rgba(220, 232, 242, 0.12);
}

.admin-shell.admin-cms-shell .sidebar-brand-mark {
    background: rgba(90, 161, 114, 0.16);
    border-color: rgba(132, 201, 155, 0.22);
    color: #def3e4;
}

.admin-shell.admin-cms-shell .sidebar-brand-main strong,
.admin-shell.admin-cms-shell .menu-group-text {
    color: #eef5fb;
}

.admin-shell.admin-cms-shell .sidebar-brand-main small,
.admin-shell.admin-cms-shell .sidebar-section-label,
.admin-shell.admin-cms-shell .sidebar-footer {
    color: #8398aa;
}

.admin-shell.admin-cms-shell .sidebar-section-label {
    padding: 12px 14px 8px;
}

.admin-shell.admin-cms-shell .sidebar-nav {
    gap: 0;
}

.admin-shell.admin-cms-shell .menu-group {
    margin: 0;
    border: none;
    border-bottom: 1px solid rgba(220, 232, 242, 0.08);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.admin-shell.admin-cms-shell .menu-group[open],
.admin-shell.admin-cms-shell .menu-group.is-group-active {
    border-bottom-color: rgba(120, 145, 164, 0.2);
    background: transparent;
}

.admin-shell.admin-cms-shell .menu-group-title {
    min-height: 52px;
    padding: 0 14px;
    border-radius: 0;
}

.admin-shell.admin-cms-shell .menu-group-title:hover {
    background: rgba(255, 255, 255, 0.04);
}

.admin-shell.admin-cms-shell .menu-group-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(182, 201, 217, 0.1);
}

.admin-shell.admin-cms-shell .menu-group-icon::before {
    color: #d6e1ea;
}

.admin-shell.admin-cms-shell .menu-group-arrow {
    border-right-color: #8ea2b4;
    border-bottom-color: #8ea2b4;
}

.admin-shell.admin-cms-shell .menu-list {
    padding: 4px 0 10px 52px;
}

.admin-shell.admin-cms-shell .menu-list::before {
    left: 27px;
    top: 8px;
    bottom: 12px;
    background: rgba(160, 181, 197, 0.12);
}

.admin-shell.admin-cms-shell .menu-link {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 6px;
    color: #a7bac8;
}

.admin-shell.admin-cms-shell .menu-link-dot {
    background: #6f8597;
}

.admin-shell.admin-cms-shell .menu-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-shell.admin-cms-shell .menu-link.is-active {
    background: rgba(90, 161, 114, 0.15);
    color: #eefbf1;
    box-shadow: inset 2px 0 0 #8fd3a4;
}

.admin-shell.admin-cms-shell .menu-link.is-active .menu-link-dot {
    background: #9fdab0;
}

.admin-shell.admin-cms-shell .sidebar-toggle {
    border-color: rgba(172, 193, 208, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.admin-shell.admin-cms-shell .sidebar-toggle span {
    background: #d8e4ec;
}

.admin-shell.admin-cms-shell > .admin-main {
    padding: 14px 16px 22px;
    gap: 12px;
    min-width: 0;
}

.admin-shell.admin-cms-shell .admin-page-head {
    padding: 4px 0 12px;
    border: none;
    border-bottom: 1px solid #dfe8f0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.admin-shell.admin-cms-shell .admin-page-head-top,
.admin-shell.admin-cms-shell .admin-page-head-main {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: flex-start;
    min-width: 0;
}

.admin-shell.admin-cms-shell .admin-page-head-main {
    align-items: flex-start;
    padding-top: 2px;
}

.admin-shell.admin-cms-shell .admin-page-head-top > *,
.admin-shell.admin-cms-shell .admin-page-head-main > *,
.admin-shell.admin-cms-shell .admin-workbench > *,
.admin-shell.admin-cms-shell .admin-split-grid > * {
    min-width: 0;
}

.admin-shell.admin-cms-shell .admin-page-head-top > .admin-breadcrumb {
    flex: 1 1 280px;
    max-width: 100%;
}

.admin-shell.admin-cms-shell .admin-page-head-main > .admin-title {
    flex: 1 1 560px;
    min-width: 0;
}

.admin-shell.admin-cms-shell .admin-page-head-actions,
.admin-shell.admin-cms-shell .admin-toolbar-actions,
.admin-shell.admin-cms-shell .admin-side-form-actions,
.admin-shell.admin-cms-shell .admin-action-row,
.admin-shell.admin-cms-shell .topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-shell.admin-cms-shell .admin-page-head-actions > *,
.admin-shell.admin-cms-shell .admin-toolbar-actions > *,
.admin-shell.admin-cms-shell .admin-side-form-actions > *,
.admin-shell.admin-cms-shell .admin-action-row > * {
    flex: 0 0 auto;
}

.admin-shell.admin-cms-shell .topbar-actions {
    flex: 0 1 auto;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
}

.admin-shell.admin-cms-shell .admin-page-head-actions {
    flex: 0 1 auto;
    margin-left: auto;
    justify-content: flex-end;
    align-self: center;
}

.admin-shell.admin-cms-shell .admin-page-head-actions form,
.admin-shell.admin-cms-shell .admin-toolbar-actions form,
.admin-shell.admin-cms-shell .admin-action-row form {
    margin: 0;
}

.admin-shell.admin-cms-shell .admin-page-head-actions .button,
.admin-shell.admin-cms-shell .admin-toolbar-actions .button,
.admin-shell.admin-cms-shell .topbar-actions .button {
    min-height: 30px;
    padding: 0 11px;
    white-space: nowrap;
    border-radius: 6px;
    font-size: 12px;
}

.admin-shell.admin-cms-shell .admin-page-tabs,
.admin-shell.admin-cms-shell .admin-tabs-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: none;
}

.admin-shell.admin-cms-shell .admin-page-tabs {
    display: none;
}

.admin-shell.admin-cms-shell .admin-page-tabs a,
.admin-shell.admin-cms-shell .admin-tabs-secondary a {
    min-height: 30px;
    padding: 0 11px;
    border-radius: 6px;
    border: 1px solid #d7e1ea;
    background: #f8fbfd;
    color: #516172;
    font-size: 12px;
    font-weight: 700;
}

.admin-shell.admin-cms-shell .admin-page-tabs a.is-active,
.admin-shell.admin-cms-shell .admin-tabs-secondary a.is-active,
.admin-shell.admin-cms-shell .admin-page-tabs a:hover,
.admin-shell.admin-cms-shell .admin-tabs-secondary a:hover {
    border-color: #c4d8cb;
    background: #f2faf4;
    color: #346a48;
}

.admin-shell.admin-cms-shell .admin-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-shell.admin-cms-shell .admin-summary-card {
    min-height: 82px;
    padding: 12px 15px;
    border-radius: 10px;
    box-shadow: none;
}

.admin-shell.admin-cms-shell .admin-summary-card strong {
    font-size: 18px;
}

.admin-shell.admin-cms-shell .admin-workbench {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.admin-shell.admin-cms-shell .admin-workbench-main,
.admin-shell.admin-cms-shell .admin-workbench-side {
    display: grid;
    gap: 14px;
    align-content: start;
    min-width: 0;
    grid-column: 1 / -1;
}

.admin-shell.admin-cms-shell .admin-split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
}

.admin-shell.admin-cms-shell .admin-workbench.admin-workbench-stack-lg {
    grid-template-columns: 1fr;
}

.admin-shell.admin-cms-shell .admin-workbench.admin-dashboard-workbench {
    grid-template-columns: 1fr;
}

.admin-shell.admin-cms-shell .admin-table-card,
.admin-shell.admin-cms-shell .admin-form-card,
.admin-shell.admin-cms-shell .danger-zone {
    padding: 16px 18px;
}

.admin-shell.admin-cms-shell .admin-toolbar {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f6;
}

.admin-shell.admin-cms-shell .admin-table-scroll {
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
}

.admin-shell.admin-cms-shell .admin-table-scroll .cms-table,
.admin-shell.admin-cms-shell .admin-table-scroll .list-table,
.admin-shell.admin-cms-shell .admin-table-scroll .admin-data-table {
    width: max-content;
    min-width: 100%;
}

.admin-shell.admin-cms-shell .admin-table-scroll .cms-table tr:first-child td,
.admin-shell.admin-cms-shell .admin-table-scroll .list-table tr:first-child td,
.admin-shell.admin-cms-shell .admin-table-scroll .admin-data-table tr:first-child td {
    white-space: nowrap;
}

.admin-shell.admin-cms-shell .admin-cleanup-layout {
    display: grid;
    gap: 14px;
}

.admin-shell.admin-cms-shell .admin-cleanup-main {
    padding-bottom: 12px;
}

.admin-shell.admin-cms-shell .admin-cleanup-head {
    align-items: flex-start;
    gap: 14px;
}

.admin-shell.admin-cms-shell .admin-cleanup-head-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-shell.admin-cms-shell .admin-cleanup-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #d9e6dd;
    border-radius: 999px;
    background: #f5fbf7;
    color: #4e6a57;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-shell.admin-cms-shell .admin-cleanup-form {
    display: grid;
    gap: 12px;
}

.admin-shell.admin-cms-shell .admin-cleanup-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e3ebf2;
    border-radius: 10px;
    background: #f9fbfd;
}

.admin-shell.admin-cms-shell .admin-cleanup-toolbar-left,
.admin-shell.admin-cms-shell .admin-cleanup-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-shell.admin-cms-shell .admin-cleanup-toolbar-right label,
.admin-shell.admin-cms-shell .admin-cleanup-inline-note {
    color: #667789;
    font-size: 12px;
}

.admin-shell.admin-cms-shell .admin-cleanup-toolbar-right select {
    min-width: 148px;
}

.admin-shell.admin-cms-shell .admin-cleanup-table tr td {
    vertical-align: top;
    line-height: 1.7;
}

.admin-shell.admin-cms-shell .admin-cleanup-table tr td strong {
    color: #1f3142;
}

.admin-shell.admin-cms-shell .admin-cleanup-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f6274;
    font-size: 12px;
    font-weight: 700;
}

.admin-shell.admin-cms-shell .admin-cleanup-check input {
    margin: 0;
}

.admin-shell.admin-cms-shell .admin-cleanup-section {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.admin-shell.admin-cms-shell .admin-cleanup-section + .admin-cleanup-section {
    padding-top: 14px;
    border-top: 1px solid #edf2f6;
}

.admin-shell.admin-cms-shell .admin-cleanup-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-shell.admin-cms-shell .admin-cleanup-section-head h4 {
    margin: 0;
    color: #203246;
    font-size: 14px;
}

.admin-shell.admin-cms-shell .admin-cleanup-section-head span {
    color: #6e8093;
    font-size: 12px;
}

.admin-shell.admin-cms-shell .permission-panel {
    padding: 12px;
    border-radius: 12px;
}

.admin-shell.admin-cms-shell .permission-cluster,
.admin-shell.admin-cms-shell .admin-check-item {
    border-radius: 8px;
}

.admin-shell.admin-cms-shell .permission-checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-shell.admin-cms-shell.is-collapsed {
    grid-template-columns: 72px minmax(0, 1fr);
}

.admin-shell.admin-cms-shell[data-sidebar-state="collapsed"] {
    grid-template-columns: 72px minmax(0, 1fr);
}

.admin-shell.admin-cms-shell.is-collapsed > .sidebar {
    padding-inline: 8px;
}

.admin-shell.admin-cms-shell[data-sidebar-state="collapsed"] > .sidebar {
    padding-inline: 8px;
}

.admin-shell.admin-cms-shell.is-collapsed .sidebar-brand-main,
.admin-shell.admin-cms-shell.is-collapsed .menu-group-text,
.admin-shell.admin-cms-shell.is-collapsed .menu-group-arrow,
.admin-shell.admin-cms-shell.is-collapsed .sidebar-section-label,
.admin-shell.admin-cms-shell.is-collapsed .sidebar-footer {
    display: none;
}

.admin-shell.admin-cms-shell[data-sidebar-state="collapsed"] .sidebar-brand-main,
.admin-shell.admin-cms-shell[data-sidebar-state="collapsed"] .menu-group-text,
.admin-shell.admin-cms-shell[data-sidebar-state="collapsed"] .menu-group-arrow,
.admin-shell.admin-cms-shell[data-sidebar-state="collapsed"] .sidebar-section-label,
.admin-shell.admin-cms-shell[data-sidebar-state="collapsed"] .sidebar-footer {
    display: none;
}

.admin-shell.admin-cms-shell.is-collapsed .menu-list {
    position: absolute;
    top: -2px;
    left: calc(100% + 10px);
    min-width: 212px;
    padding: 8px;
    border: 1px solid var(--console-line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.admin-shell.admin-cms-shell[data-sidebar-state="collapsed"] .menu-list {
    position: absolute;
    top: -2px;
    left: calc(100% + 10px);
    min-width: 212px;
    padding: 8px;
    border: 1px solid var(--console-line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.admin-shell.admin-cms-shell.is-collapsed .menu-group,
.admin-shell.admin-cms-shell[data-sidebar-state="collapsed"] .menu-group {
    border-bottom: none;
}

.admin-shell.admin-cms-shell.is-collapsed .menu-list-caption {
    display: block;
}

.admin-shell.admin-cms-shell[data-sidebar-state="collapsed"] .menu-list-caption {
    display: block;
}

.admin-shell.admin-cms-shell.is-collapsed .menu-group:hover .menu-list,
.admin-shell.admin-cms-shell.is-collapsed .menu-group:focus-within .menu-list,
.admin-shell.admin-cms-shell.is-collapsed .menu-group.is-flyout-open .menu-list {
    display: grid;
}

.admin-shell.admin-cms-shell[data-sidebar-state="collapsed"] .menu-group:hover .menu-list,
.admin-shell.admin-cms-shell[data-sidebar-state="collapsed"] .menu-group:focus-within .menu-list,
.admin-shell.admin-cms-shell[data-sidebar-state="collapsed"] .menu-group.is-flyout-open .menu-list {
    display: grid;
}

.admin-shell.admin-cms-shell > .admin-main > .admin-header:not(.admin-page-head) .section-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
}

.admin-shell.admin-cms-shell .admin-page-head .admin-breadcrumb {
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.admin-shell.admin-cms-shell .admin-page-head-top > .admin-breadcrumb {
    padding-right: 0;
}

.admin-shell.admin-cms-shell .admin-page-head .admin-breadcrumb::-webkit-scrollbar {
    display: none;
}

.admin-shell.admin-cms-shell .admin-user-chip {
    min-width: 0;
    flex: 0 1 auto;
    min-height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 4px;
}

.admin-shell.admin-cms-shell .admin-page-head .admin-user-chip {
    display: none;
}

.admin-shell.admin-cms-shell .admin-inline-forms {
    display: grid;
    gap: 12px;
}

.admin-shell.admin-cms-shell .admin-compact-form {
    display: grid;
    gap: 8px;
}

.admin-shell.admin-cms-shell .admin-compact-form textarea {
    min-height: 74px;
}

.admin-shell.admin-cms-shell .admin-user-chip strong,
.admin-shell.admin-cms-shell .admin-user-chip span {
    line-height: 1.4;
}

.admin-shell.admin-cms-shell .admin-user-chip strong {
    font-size: 12px;
    color: #516172;
}

.admin-shell.admin-cms-shell .admin-user-chip span {
    font-size: 11px;
    color: #8a99aa;
}

.admin-shell.admin-cms-shell .admin-title {
    display: grid;
    gap: 5px;
}

.admin-shell.admin-cms-shell .admin-title h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.12;
}

.admin-shell.admin-cms-shell .admin-title .muted {
    max-width: 760px;
    font-size: 13px;
    line-height: 1.6;
}

.admin-shell.admin-cms-shell .section-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f3faf5;
    color: #62856f;
    border: 1px solid #dbe9df;
    font-size: 11px;
}

.admin-shell.admin-cms-shell .panel,
.admin-shell.admin-cms-shell .stat-card,
.admin-shell.admin-cms-shell .admin-summary-card {
    box-shadow: none;
}

.admin-shell.admin-cms-shell .admin-anchor-tabs {
    margin-top: -2px;
    margin-bottom: 2px;
}

.admin-shell.admin-cms-shell .admin-link-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-shell.admin-cms-shell .admin-link-item {
    min-height: 84px;
    padding: 14px 15px;
    border-radius: 10px;
    border: 1px solid #dbe5ee;
    background: #fbfdff;
}

@media (max-width: 1360px) {
    .admin-shell.admin-cms-shell .admin-page-head-top,
    .admin-shell.admin-cms-shell .admin-page-head-main {
        gap: 12px;
    }

    .admin-shell.admin-cms-shell .topbar-actions,
    .admin-shell.admin-cms-shell .admin-page-head-actions {
        flex-basis: 100%;
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
}

@media (max-width: 1180px) {
    .admin-shell.admin-cms-shell .admin-workbench,
    .admin-shell.admin-cms-shell .admin-split-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell.admin-cms-shell .admin-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-shell.admin-cms-shell .admin-cleanup-head,
    .admin-shell.admin-cms-shell .admin-cleanup-toolbar,
    .admin-shell.admin-cms-shell .admin-cleanup-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-shell.admin-cms-shell .admin-cleanup-head-tags {
        justify-content: flex-start;
    }
}

@media (max-width: 980px) {
    .admin-shell.admin-cms-shell .admin-summary-grid,
    .admin-shell.admin-cms-shell .admin-filter-grid,
    .admin-shell.admin-cms-shell .permission-checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .admin-shell.admin-cms-shell .admin-summary-grid,
    .admin-shell.admin-cms-shell .admin-filter-grid,
    .admin-shell.admin-cms-shell .permission-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell.admin-cms-shell .admin-link-list {
        grid-template-columns: 1fr;
    }

    .admin-shell.admin-cms-shell .admin-page-tabs a,
    .admin-shell.admin-cms-shell .admin-tabs-secondary a {
        width: 100%;
        justify-content: center;
    }
}

/* Admin CMS legacy page compatibility */
.admin-shell.admin-cms-shell > .admin-main > .admin-header:not(.admin-page-head) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 18px 20px;
    border: 1px solid var(--console-line);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.admin-shell.admin-cms-shell > .admin-main > .admin-header:not(.admin-page-head) .admin-title {
    display: grid;
    gap: 8px;
}

.admin-shell.admin-cms-shell > .admin-main > .admin-header:not(.admin-page-head) .admin-title h1 {
    margin: 0;
    color: var(--console-text);
    font-size: 26px;
    line-height: 1.2;
}

.admin-shell.admin-cms-shell > .admin-main > .admin-header:not(.admin-page-head) .topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-shell.admin-cms-shell > .admin-main > .panel,
.admin-shell.admin-cms-shell > .admin-main > .notice,
.admin-shell.admin-cms-shell > .admin-main > .stats-grid,
.admin-shell.admin-cms-shell > .admin-main > .info-grid {
    margin-top: 0;
}

.admin-shell.admin-cms-shell > .admin-main > .info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 360px;
    gap: 14px;
    align-items: start;
}

.admin-shell.admin-cms-shell > .admin-main > .info-grid > .panel:first-child:last-child {
    grid-column: 1 / -1;
}

.admin-shell.admin-cms-shell > .admin-main > .info-grid > .panel {
    min-width: 0;
}

.admin-shell.admin-cms-shell > .admin-main > .panel,
.admin-shell.admin-cms-shell > .admin-main > .info-grid > .panel,
.admin-shell.admin-cms-shell > .admin-main > .stats-grid > .stat-card {
    border: 1px solid var(--console-line);
    border-radius: 14px;
    background: var(--console-surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.admin-shell.admin-cms-shell .panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #edf2f6;
}

.admin-shell.admin-cms-shell .panel-toolbar h3 {
    margin: 0;
    color: var(--console-text);
    font-size: 19px;
}

.admin-shell.admin-cms-shell .panel-toolbar-meta {
    color: var(--console-muted);
}

.admin-shell.admin-cms-shell .list-table,
.admin-shell.admin-cms-shell .cms-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #d9e4ef;
    border-radius: 12px;
    background: #fff;
}

.admin-shell.admin-cms-shell .list-table tr:first-child td,
.admin-shell.admin-cms-shell .cms-table tr:first-child td {
    padding: 13px 14px;
    background: #f7fafc;
    color: #516579;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid #d9e4ef;
}

.admin-shell.admin-cms-shell .list-table td,
.admin-shell.admin-cms-shell .cms-table td {
    padding: 14px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
}

.admin-shell.admin-cms-shell .list-table tr:last-child td,
.admin-shell.admin-cms-shell .cms-table tr:last-child td {
    border-bottom: 0;
}

.admin-shell.admin-cms-shell .list-table tr:not(:first-child):hover td,
.admin-shell.admin-cms-shell .cms-table tr:not(:first-child):hover td {
    background: #fbfdfc;
}

.admin-shell.admin-cms-shell .install-form,
.admin-shell.admin-cms-shell .admin-side-form {
    display: grid;
    gap: 14px;
}

.admin-shell.admin-cms-shell .form-section {
    display: grid;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f6;
}

.admin-shell.admin-cms-shell .form-section h3 {
    margin: 0;
    color: var(--console-text);
    font-size: 16px;
}

.admin-shell.admin-cms-shell .form-section + .form-grid,
.admin-shell.admin-cms-shell .form-grid + .form-section {
    margin-top: 4px;
}

.admin-shell.admin-cms-shell .admin-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-shell.admin-cms-shell .admin-action-group form {
    margin: 0;
}

.admin-shell.admin-cms-shell .button-small {
    min-height: 34px;
    padding: 0 12px;
}

.admin-shell.admin-cms-shell .admin-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #d9e4ef;
    border-radius: 12px;
    overflow: hidden;
}

.admin-shell.admin-cms-shell .admin-detail-list > div {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
}

.admin-shell.admin-cms-shell .admin-detail-list > div:nth-child(odd) {
    border-right: 1px solid #edf2f7;
}

.admin-shell.admin-cms-shell .admin-detail-list > div:last-child,
.admin-shell.admin-cms-shell .admin-detail-list > div:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
}

.admin-shell.admin-cms-shell .admin-detail-list dt {
    color: var(--console-muted);
    font-size: 12px;
}

.admin-shell.admin-cms-shell .admin-detail-list dd {
    margin: 0;
    color: var(--console-text);
    font-weight: 700;
}

@media (max-width: 1180px) {
    .admin-shell.admin-cms-shell > .admin-main > .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .admin-shell.admin-cms-shell > .admin-main > .admin-header:not(.admin-page-head) {
        grid-template-columns: 1fr;
    }

    .admin-shell.admin-cms-shell .admin-detail-list {
        grid-template-columns: 1fr;
    }

    .admin-shell.admin-cms-shell .admin-detail-list > div:nth-child(odd) {
        border-right: 0;
    }
}

/* auth refresh */
body.auth-page {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 12% 14%, rgba(126, 211, 170, 0.20), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(171, 236, 214, 0.54), transparent 22%),
        linear-gradient(180deg, #f4fbf7 0%, #eef7f2 100%);
    color: #163127;
}

body.auth-page .auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

body.auth-page .auth-stage {
    width: min(1160px, 100%);
    display: grid;
    gap: 22px;
}

body.auth-page .auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

body.auth-page .auth-topbar-link {
    text-decoration: none;
}

body.auth-page .auth-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 18px 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(180, 215, 196, 0.95);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 32px rgba(33, 72, 53, 0.07);
    backdrop-filter: blur(16px);
}

body.auth-page .auth-topbar-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e6b47, #5dbb84);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 22px rgba(30, 107, 71, 0.26);
}

body.auth-page .auth-topbar-brand-copy {
    display: grid;
    gap: 1px;
}

body.auth-page .auth-topbar-brand-copy strong {
    color: #163127;
    font-size: 15px;
    line-height: 1.2;
}

body.auth-page .auth-topbar-brand-copy small {
    color: #648372;
    font-size: 12px;
    line-height: 1.3;
}

body.auth-page .auth-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

body.auth-page .button {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid #d3e6d9;
    background: rgba(255, 255, 255, 0.86);
    color: #173629;
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.auth-page .button:hover {
    transform: translateY(-1px);
    border-color: #b8d9c4;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(33, 72, 53, 0.08);
}

body.auth-page .button-primary {
    background: linear-gradient(135deg, #1f6d49 0%, #3f9768 100%);
    border-color: #1f6d49;
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(31, 109, 73, 0.18);
}

body.auth-page .button-primary:hover {
    border-color: #1a5d3f;
    box-shadow: 0 20px 34px rgba(31, 109, 73, 0.24);
}

body.auth-page .auth-mini-button {
    min-height: 42px;
    padding-inline: 16px;
}

body.auth-page .auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 468px);
    gap: clamp(28px, 4vw, 68px);
    align-items: stretch;
}

body.auth-page .auth-intro {
    min-height: 690px;
    padding: 24px 0;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 26px;
    background: transparent;
    color: #163127;
    box-shadow: none;
}

body.auth-page .auth-intro::after {
    display: none;
}

body.auth-page .auth-intro-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

body.auth-page .auth-intro-chip {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(116, 177, 141, 0.34);
    background: rgba(255, 255, 255, 0.52);
    color: #2a6a48;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.auth-page .auth-intro-copy {
    display: grid;
    gap: 16px;
    max-width: 560px;
}

body.auth-page .auth-eyebrow {
    color: #5f8c73;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.auth-page .auth-intro-copy h1 {
    margin: 0;
    color: #163127;
    font-size: clamp(54px, 7vw, 96px);
    line-height: 0.92;
    letter-spacing: -0.08em;
}

body.auth-page .auth-intro-copy .auth-note {
    margin: 0;
    max-width: 500px;
    color: #557565;
    font-size: 17px;
    line-height: 1.9;
}

body.auth-page .auth-intro-grid {
    align-self: end;
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

body.auth-page .auth-intro-card {
    display: grid;
    gap: 8px;
    padding: 0 0 18px;
    border: 0;
    border-bottom: 1px solid rgba(151, 190, 166, 0.48);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
}

body.auth-page .auth-intro-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

body.auth-page .auth-intro-card strong {
    color: #1a3b2d;
    font-size: 17px;
    font-weight: 700;
}

body.auth-page .auth-intro-card span {
    color: #678372;
    font-size: 14px;
    line-height: 1.85;
}

body.auth-page .auth-panel.auth-panel-rich {
    width: 100%;
    min-height: 690px;
    padding: 34px 34px 28px;
    border-radius: 30px;
    border: 1px solid rgba(207, 228, 215, 0.96);
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 26px 60px rgba(32, 68, 49, 0.08);
    display: grid;
    align-content: start;
    gap: 22px;
}

body.auth-page .auth-panel-head {
    display: grid;
    gap: 16px;
}

body.auth-page .auth-panel-kicker {
    display: inline-flex;
    color: #7a9687;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.auth-page .auth-panel-head h2 {
    margin: 6px 0 0;
    color: #173629;
    font-size: 34px;
    letter-spacing: -0.05em;
}

body.auth-page .auth-switch {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 4px;
    border-radius: 14px;
    background: #eff6f1;
    border: 1px solid #d9ebe0;
}

body.auth-page .auth-switch a {
    min-height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #678372;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease;
}

body.auth-page .auth-switch a.is-active {
    background: #ffffff;
    color: #173629;
    box-shadow: 0 8px 20px rgba(24, 58, 41, 0.08);
}

body.auth-page .auth-form.auth-form-rich {
    display: grid;
    gap: 14px;
    margin-top: 0;
}

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

body.auth-page .auth-field {
    display: grid;
    gap: 8px;
}

body.auth-page .auth-field span {
    color: #4f6d5d;
    font-size: 13px;
    font-weight: 700;
}

body.auth-page .auth-form-rich input,
body.auth-page .auth-form-rich textarea {
    width: 100%;
    min-height: 54px;
    border: 1px solid #d8e9de;
    border-radius: 16px;
    padding: 14px 16px;
    background: #fbfefc;
    color: #173629;
    outline: none;
    resize: vertical;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

body.auth-page .auth-form-rich textarea {
    min-height: 124px;
    font: inherit;
    line-height: 1.8;
}

body.auth-page .auth-form-rich input::placeholder,
body.auth-page .auth-form-rich textarea::placeholder {
    color: #93a99b;
}

body.auth-page .auth-form-rich input:focus,
body.auth-page .auth-form-rich textarea:focus {
    border-color: #8fc5a3;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(95, 163, 121, 0.12);
    transform: translateY(-1px);
}

body.auth-page .auth-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 6px;
    border-radius: 16px;
    font-size: 15px;
}

body.auth-page .auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
}

body.auth-page .auth-links a,
body.auth-page .auth-panel-foot a {
    color: #2d7a51;
    font-weight: 700;
}

body.auth-page .auth-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
    padding-top: 18px;
    border-top: 1px solid #e2efe7;
    color: #688070;
    font-size: 13px;
    line-height: 1.7;
}

body.auth-page .notice {
    border-radius: 14px;
}

@media (max-width: 980px) {
    body.auth-page .auth-shell {
        padding: 18px;
    }

    body.auth-page .auth-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    body.auth-page .auth-intro,
    body.auth-page .auth-panel.auth-panel-rich {
        min-height: auto;
    }

    body.auth-page .auth-intro {
        padding: 6px 0 2px;
    }
}

@media (max-width: 720px) {
    body.auth-page .auth-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    body.auth-page .auth-topbar-actions {
        justify-content: flex-start;
    }

    body.auth-page .auth-intro-copy h1 {
        font-size: clamp(42px, 16vw, 64px);
    }

    body.auth-page .auth-panel.auth-panel-rich {
        padding: 24px 20px 22px;
        border-radius: 24px;
    }

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

    body.auth-page .auth-panel-foot {
        flex-direction: column;
        align-items: flex-start;
    }
}
