@layer vendor,tokens,reset,layout,components,utilities; @layer tokens {
    :root {
        --bg: #f5f6f3;
        --panel: #fff;
        --panel-soft: #f0f3ee;
        --text: #202522;
        --muted: #5c665d;
        --line: #dce2dc;
        --line-strong: #c8d0c9;
        --accent: #c3da57;
        --accent-soft: #eff6cf;
        --accent-ink: #31410d;
        --accent-soft-ink: #31410d;
        --chart-1: #5a8f29;
        --chart-2: #2f7d99;
        --chart-grid: rgba(32, 37, 34, 0.12);
        --danger: #ac392e;
        --warn: #8a590e;
        --ok: #2f7844;
        --shadow: 0 10px 30px rgba(30,38,33,.07);
        --radius: 12px;
        --sidebar: 248px;
        /* RC17 Presentation Foundation host-shell metrics. */
        --pf-host-action-h: 40px;
        --pf-host-action-size: 40px;
        --pf-host-action-mobile: 38px;
        --pf-host-radius-mobile: 8px;
        --primary: #202522;
        --surface: var(--panel);
        --border: var(--line);
        --personal: #315b7d;
        --merchant: #72511b;
        --safe-top: env(safe-area-inset-top, 0px);
        --safe-right: env(safe-area-inset-right, 0px);
        --safe-bottom: env(safe-area-inset-bottom, 0px);
        --safe-left: env(safe-area-inset-left, 0px);
        color-scheme: light
    }

    html[data-theme="dark"] {
        --bg: #171b18;
        --panel: #222824;
        --panel-soft: #2b332d;
        --text: #f1f4f1;
        --muted: #adb7af;
        --line: #3b463e;
        --line-strong: #4b584f;
        --accent: #c3da57;
        --accent-soft: #39441f;
        --accent-ink: #f1f7d1;
        --accent-soft-ink: #e6f2b3;
        --chart-1: #b4d448;
        --chart-2: #58b8d6;
        --chart-grid: rgba(241, 244, 241, 0.14);
        /* Semantic text remains readable on panel and tinted status surfaces. */
        --danger: #ff958b;
        --warn: #e8bb68;
        --ok: #82cf96;
        --shadow: 0 12px 34px rgba(0,0,0,.28);
        --primary: #f1f4f1;
        --personal: #8abbe0;
        --merchant: #e1bd72;
        color-scheme: dark
    }
}

@layer reset {
    * {
        box-sizing: border-box;
    }

    html,body {
        margin: 0;
        min-height: 100%;
        background: var(--bg);
        color: var(--text)
    }

    body {
        font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
        font-size: 14px;
        line-height: 1.5
    }

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

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

    button {
        cursor: pointer
    }

    [hidden] {
        display: none!important
    }

    svg {
        display: block
    }

    input,select,textarea {
        width: 100%;
        border: 1px solid var(--line);
        background: var(--panel);
        border-radius: 9px;
        min-height: 42px;
        padding: 9px 12px;
        outline: none;
        line-height: normal
    }

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

    select {
        appearance: none;
        padding-inline-end: 38px;
        background-image: linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
        background-position: calc(100% - 17px) 50%,calc(100% - 12px) 50%;
        background-size: 5px 5px,5px 5px;
        background-repeat: no-repeat
    }

    html[dir="rtl"] select {
        background-position: 12px 50%,17px 50%
    }

    input:focus,select:focus,textarea:focus {
        border-color:var(--accent);
        box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)
    }

    select:disabled,input:disabled,textarea:disabled {
        opacity:.72;
        background: var(--panel-soft);
        color: var(--muted)
    }
}

@layer layout {
    .topbar {
        height: 72px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 0 18px;
        background: var(--panel);
        border-bottom: 1px solid var(--line);
        position: sticky;
        top: 0;
        z-index: 60
    }

    .brand-wrap,.brand,.top-actions {
        display: flex;
        align-items: center
    }

    .brand-wrap {
        gap: 12px;
        min-width: 0
    }

    .brand {
        gap: 11px;
        min-width: 0
    }

    .brand .logo {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        background: #202622;
        color: #fff;
        font-weight: 850;
        font-size: 18px;
        flex: 0 0 42px
    }

    .brand strong {
        display: block;
        font-size: 18px;
        line-height: 1.15
    }

    .brand small {
        display: block;
        margin-top: 3px;
        color: var(--muted);
        font-size: 11px;
        white-space: nowrap
    }

    .top-actions {
        gap: 8px
    }

    .layout {
        display: grid;
        grid-template-columns: var(--sidebar) minmax(0,1fr);
        height: calc(100vh - 72px);
        height: calc(100dvh - 72px - var(--safe-top));
        min-height: 0
    }

    .sidebar {
        overflow: auto;
        background: var(--panel);
        border-inline-end: 1px solid var(--line);
        padding: 18px 12px
    }

    .main {
        min-width: 0;
        min-height: 0;
        overflow: auto;
        background: var(--bg)
    }

    .container {
        width: min(1180px,calc(100% - 40px));
        margin: 0 auto;
        padding: 26px 0 44px
    }

    body.sidebar-collapsed .layout {
        grid-template-columns: 72px minmax(0,1fr)
    }

    body.sidebar-collapsed .sidebar {
        padding-inline: 10px
    }

    body.sidebar-collapsed .nav-title,body.sidebar-collapsed .nav-label,body.sidebar-collapsed .nav-section-chevron {
        display: none
    }

    body.sidebar-collapsed .nav-link,body.sidebar-collapsed .nav-section-toggle {
        justify-content: center;
        padding-inline:9px}

    body.sidebar-collapsed .nav-section-items {
        padding-inline-start: 0
    }

    @media(max-width: 800px) {
        .topbar {
            height:64px;
            padding: 0 12px
        }

        .brand small {
            display: none
        }

        .layout {
            display: block;
            height: auto
        }

        .sidebar {
            position: fixed;
            top: 64px;
            bottom: 0;
            inset-inline-start: 0;
            width: 270px;
            z-index: 55;
            transform: translateX(-100%);
            transition: transform .2s ease;
            box-shadow: var(--shadow)
        }

        html[dir="rtl"] .sidebar {
            transform: translateX(100%)
        }

        body.mobile-sidebar-open .sidebar,
        html[dir="rtl"] body.mobile-sidebar-open .sidebar {
            transform: translateX(0)
        }

        .container {
            width: min(100% - 24px,1180px);
            padding-top: 18px
        }
    }
}

@layer components {
    .icon-btn {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: var(--panel);
        color: var(--text);
        padding: 0
    }

    .icon-btn:hover {
        background: var(--panel-soft);
        border-color: var(--line-strong)
    }

    .sidebar-toggle {
        display: grid
    }

    .nav {
        display: flex;
        flex-direction: column;
        gap: 4px
    }

    .nav-title {
        margin: 3px 10px 12px;
        font-size: 10px;
        font-weight: 850;
        letter-spacing: .16em;
        text-transform: uppercase;
        color: var(--muted)
    }

    .nav-link,.nav-section-toggle {
        width: 100%;
        min-height: 40px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        border: 1px solid transparent;
        border-radius: 8px;
        background: transparent;
        color: var(--text);
        font-size: 13px;
        font-weight: 680;
        text-align: left;
        box-shadow: none
    }

    .nav-link:hover,.nav-section-toggle:hover {
        background: var(--panel-soft)
    }

    .nav-link.active {
        background: var(--accent-soft);
        border-color: color-mix(in srgb,var(--accent) 62%,var(--line));
        box-shadow: inset 3px 0 0 var(--accent)
    }

    .nav-icon {
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
        display: grid;
        place-items: center;
        color: var(--muted)
    }

    .nav-icon svg {
        width: 17px;
        height: 17px;
        stroke-width: 1.8
    }

    .nav-link.active .nav-icon {
        color: var(--text)
    }

    .nav-section {
        display: block
    }

    .nav-section-toggle {
        justify-content: space-between
    }

    .nav-section-title {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 10px
    }

    .nav-section-chevron {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
        color: var(--muted);
        transition: transform .16s ease
    }

    .nav-section.is-open .nav-section-chevron,
    html[dir="rtl"] .nav-section.is-open .nav-section-chevron {
        transform: rotate(90deg)
    }

    html[dir="rtl"] .nav-section-chevron {
        transform: rotate(180deg)
    }

    .nav-section-items {
        display: none;
        flex-direction: column;
        gap: 2px;
        padding-block: 2px 5px;
        padding-inline: 17px 0
    }

    .nav-section.is-open .nav-section-items {
        display: flex
    }

    .nav-link.nav-child {
        min-height: 36px;
        padding: 7px 9px;
        font-size: 12px
    }

    .language-menu,.user-menu {
        position: relative;
        max-height: 38px;
        margin: 0;
        border: 0;
        background: transparent
    }

    .language-menu>summary,.user-menu>summary {
        list-style: none
    }

    .language-menu>summary::marker,.user-menu>summary::marker,.language-menu>summary::-webkit-details-marker,.user-menu>summary::-webkit-details-marker {
        display:none;
        content: ""
    }

    .language-menu>summary::after,.user-menu>summary::after {
        content:none!important;
        display: none!important
    }

    .language-summary {
        width: 60px;
        min-width: 60px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0 10px;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: var(--panel)
    }

    .language-summary .globe-icon,.language-summary .globe-icon svg {
        width: 18px;
        height: 18px
    }

    .language-chevron {
        width: 14px;
        height: 14px;
        color: var(--muted);
        transition: transform .16s ease
    }

    .language-menu[open] .language-chevron {
        transform: rotate(180deg)
    }

    .language-menu-panel,.user-menu-panel {
        position: absolute;
        inset-inline-end: 0;
        top: calc(100% + 8px);
        z-index: 90;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--shadow);
        padding: 7px
    }

    .language-menu-panel {
        display: grid;
        grid-template-columns: max-content;
        width: max-content;
        min-width: 0
    }

    .user-menu-panel {
        width: 230px
    }

    .language-option,.user-menu-panel a {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 9px 10px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 680
    }

    .language-option {
        justify-content: space-between
    }

    .language-option:hover,.user-menu-panel a:hover {
        background:var(--panel-soft)
    }

    .language-option small {
        color: var(--muted)
    }

    .language-option.disabled {
        opacity: .48;
        cursor: not-allowed
    }

    .user-chip {
        min-width: 220px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 7px 11px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--panel)
    }

    .user-chip-copy {
        min-width: 0
    }

    .user-chip-copy strong,.user-chip-copy small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .user-chip-copy strong {
        font-size: 13px
    }

    .user-chip-copy small {
        font-size: 10px;
        color: var(--muted);
        margin-top: 2px
    }

    .user-chip-chevron {
        width: 15px;
        height: 15px;
        color: var(--muted)
    }

    .file-picker {
        display: grid;
        grid-template-columns: auto minmax(0,1fr);
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 46px;
        padding: 5px;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: var(--panel)
    }

    .file-picker-button {
        display:inline-flex;
        align-items:center;
        justify-content:center;
        min-width:92px;
        height:36px;
        padding:0 14px;
        border:1px solid var(--line-strong);
        border-radius:9px;
        background:var(--panel-soft);
        color:var(--text);
        font-weight:750;
        cursor:pointer;
        transition:border-color .16s ease,background-color .16s ease,color .16s ease,transform .16s ease
    }
    .file-picker-button:hover {
        border-color:color-mix(in srgb,var(--accent) 58%,var(--line-strong));
        background:color-mix(in srgb,var(--accent) 9%,var(--panel-soft));
        color:var(--text);
        transform:translateY(-1px)
    }
    .file-picker-button:active { transform:translateY(0) }

    .file-picker-name {
        min-width: 0;
        color: var(--muted);
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .file-picker-input {
        position: absolute!important;
        width: 1px!important;
        height: 1px!important;
        overflow: hidden!important;
        clip: rect(0,0,0,0)!important;
        white-space: nowrap!important;
        opacity: 0!important
    }

    .paste-upload {
        min-height: 116px;
        padding: 12px;
        border: 1px dashed color-mix(in srgb,var(--accent) 72%,var(--line));
        border-radius: 10px;
        background: color-mix(in srgb,var(--accent-soft) 28%,var(--panel))
    }

    @media(max-width: 800px) {
        .user-chip {
            min-width:48px;
            width: 48px;
            justify-content: center
        }

        .user-chip-copy {
            display: none
        }

        .language-summary {
            width: 54px;
            min-width: 54px
        }
    }

    h1 {
        font-size: 30px;
        margin: 0 0 8px
    }

    h2 {
        font-size: 20px;
        margin: 0 0 12px
    }

    h3 {
        font-size: 15px;
        margin: 0 0 10px
    }

    table {
        width: 100%;
        border-collapse: collapse;
        min-width: 760px
    }

    th,td {
        padding: 11px 12px;
        border-bottom: 1px solid var(--line);
        text-align: left;
        font-size: 13px;
        vertical-align: top
    }

    th {
        background: var(--panel-soft);
        color: var(--muted);
        font-size: 12px;
        position: sticky;
        top: 0
    }

    input[name="activation_code"], input[name="code"], input[name="makerworld_prefix"] {
        text-transform: uppercase;
        letter-spacing: .08em
    }

    input[type="email"] {
        text-transform: lowercase
    }

    html[data-daft-preset="b3REd6hhg"] :is(button,a).with-lucide {
        display:inline-flex;
        align-items: center;
        gap: 7px
    }

    html[data-daft-preset="b3REd6hhg"] .lucide-icon {
        width: 17px;
        height: 17px;
        flex: none;
        stroke-width: 2
    }

    html[data-daft-preset="b3REd6hhg"] .globe-icon svg {
        width: 18px;
        height: 18px;
        display: block
    }

    html[data-daft-preset="b3REd6hhg"] table {
        border-collapse: separate;
        border-spacing: 0
    }

    html[data-daft-preset="b3REd6hhg"] th {
        font-size: 12px;
        letter-spacing: .02em
    }

    html[data-daft-preset="b3REd6hhg"] body {
        font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
        letter-spacing: -.006em;
        background: var(--bg);
        color: var(--text)
    }

    html[data-daft-preset="b3REd6hhg"] :is(th,.table-filter-row th,.project-cover,.project-hero,.model-thumb,.preset-account) {
        background:var(--panel-soft);
        color: var(--text)
    }

    html[data-daft-preset="b3REd6hhg"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),select,textarea) {
        min-height:40px;
        background: var(--panel);
        color: var(--text);
        border: 1px solid var(--line);
        box-shadow: none;
        color-scheme: inherit
    }

    html[data-daft-preset="b3REd6hhg"] :is(input,select,textarea):focus {
        border-color:var(--accent);
        box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)
    }

    html[data-daft-preset="b3REd6hhg"] .asset-project-selector {
        align-items: end
    }

    html[data-daft-preset="b3REd6hhg"] .asset-project-selector .field {
        min-width: 0
    }

    html[data-daft-preset="b3REd6hhg"] .asset-section-tabs {
        align-items: center;
        padding-bottom: 1px
    }

    html[data-daft-preset="b3REd6hhg"] .table-pager {
        min-height: 56px;
        display: grid;
        grid-template-columns: minmax(120px,1fr) auto auto;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
        padding: 10px 2px 2px
    }

    html[data-daft-preset="b3REd6hhg"] .table-count {
        margin: 0
    }

    html[data-daft-preset="b3REd6hhg"] .table-size-label {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        line-height: 1
    }

    html[data-daft-preset="b3REd6hhg"] .table-size-label>span {
        display: inline-block;
        white-space: nowrap
    }

    html[data-daft-preset="b3REd6hhg"] .table-size-select {
        width: 68px;
        height: 34px;
        min-height: 34px;
        padding: 4px 24px 4px 8px
    }

    html[data-daft-preset="b3REd6hhg"] .table-page-nav {
        white-space: nowrap
    }

    html[data-daft-preset="b3REd6hhg"] .btn {
        box-shadow: none
    }

    html[data-daft-preset="b3REd6hhg"] .btn.primary {
        background: var(--accent);
        border-color: var(--accent);
        color: #1e251a
    }

    html[data-daft-preset="b3REd6hhg"] option {
        padding: 8px 12px;
        line-height: 1.45
    }

    option {
        line-height: 1.45;
        background: var(--panel);
        color: var(--text)
    }

    .auth-wrap {
        min-height: calc(100vh - 76px);
        min-height: calc(100dvh - 76px - var(--safe-top));
        display: grid;
        place-items: center;
        padding: 30px
    }

    .page-head,.page-heading,.project-heading,.section-heading,.toolbar {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: wrap
    }
    .page-head { margin-bottom: 18px; }
    .page-head h1, .page-heading h1 { margin: 0 0 6px; }

    .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px
    }

    .two-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(6,minmax(0,1fr));
        gap: 12px;
        margin-bottom: 18px
    }

    .project-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 20px
    }

    .project-card {
        display: grid;
        grid-template-columns: 280px 1fr;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 22px;
        overflow: hidden;
        box-shadow: var(--shadow);
        min-height: 210px
    }

    .project-card:hover {
        transform: translateY(-2px)
    }

    .project-hero {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 34px;
        border-radius: 24px;
        border: 1px solid var(--line);
        margin-bottom: 24px
    }

    .project-hero p {
        max-width: 720px;
        line-height: 1.7
    }

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

    .app-toast {
        position: fixed;
        left: 50%;
        bottom: 28px;
        z-index: 220;
        max-width: min(560px,calc(100vw - 32px));
        padding: 12px 16px;
        border-radius: 14px;
        background: #2f3639;
        color: #fff;
        box-shadow: 0 18px 48px rgba(20,25,27,.25);
        font-size: 13px;
        line-height: 1.55;
        opacity: 0;
        transform: translate(-50%,16px);
        transition: opacity .2s ease,transform .2s ease;
        pointer-events: none
    }

    .app-toast.show {
        opacity: 1;
        transform: translate(-50%,0)
    }

    .app-toast.error {
        background: #9d3c35
    }

    .app-toast.ok {
        background: #2f7650
    }

    .app-toast.info {
        background: #354f63
    }

    .editor-hostbar {
        height: 62px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 0 10px;
        background: color-mix(in srgb,var(--panel) 95%,transparent);
        border-bottom: 1px solid var(--line);
        z-index: 5
    }

    .editor-host-left,.editor-host-actions {
        display: flex;
        align-items: center;
        gap: 9px;
        min-width: 0;
    }

    .editor-host-left>div {
        min-width: 0
    }

    .editor-host-left strong {
        display: block;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .editor-host-left small {
        display: block;
        color: var(--muted);
        font-size: 10px;
        margin-top: 2px;
        white-space: nowrap
    }

    .editor-host-logo {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        background: var(--primary);
        color: var(--panel);
        display: grid;
        place-items: center;
        font-weight: 900;
        flex: none
    }

    .editor-host-main {
        min-height: 0;
        position: relative;
        background: var(--bg)
    }

    .editor-workbench-body[data-editor-mode="standalone"] .editor-hostbar {
        background: var(--panel)
    }

    .asset-migration-card .toolbar {
        align-items: center
    }

    .asset-migration-card .toolbar>div {
        max-width: 820px
    }

    .editor-host-undo {
        min-width: 44px;
        font-size: 22px;
        line-height: 1
    }

    .editor-host-export {
        background: #a6f757;
        color: #173000;
        border-color: #a6f757
    }

    .editor-host-export:hover {
        filter: brightness(.93)
    }

    .compact-form .row {
        gap: 10px
    }

    .editor-host-back {
        min-height: 40px;
        padding: 8px 12px;
        border-radius: 8px;
        background: var(--panel);
        border: 1px solid var(--line);
        box-shadow: none;
        white-space: nowrap
    }

    .editor-host-brand .logo {
        width: 38px;
        height: 38px;
        border-radius: 9px
    }

    .editor-host-title {
        font-size: 15px
    }

    .editor-host-subtitle {
        font-size: 10px;
        color: var(--muted)
    }

    .editor-host-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 7px
    }

    .editor-host-actions .btn,.editor-host-actions .icon-btn {
        height: 40px;
        min-height: 40px;
        border-radius: 8px
    }

    .editor-host-actions .btn.primary {
        background: var(--accent);
        color: #1e251a
    }

    .editor-host-frame {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
        background: var(--bg)
    }

    .main {
        overflow-y: auto;
        padding: 28px 30px;
        background: var(--bg)
    }

    .card,.stat,.table-wrap,.project-card,.empty-state,.auth-card {
        box-shadow: var(--shadow)
    }

    .editor-host-topbar {
        padding: 0 14px;
        height: 68px;
        background: var(--panel);
        border-bottom: 1px solid var(--line);
        box-shadow: none
    }

    .auth-card {
        width: min(520px,100%);
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 24px;
        padding: 28px;
        box-shadow: var(--shadow)
    }

    .lead {
        color: var(--muted);
        line-height: 1.7;
        margin: 0 0 22px
    }

    .field {
        margin: 14px 0
    }

    .field label {
        display: block;
        font-size: 13px;
        font-weight: 750;
        margin-bottom: 6px
    }

    .actions {
        display: flex;
        gap: 9px;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 18px
    }

    .actions.align-end {
        align-self: end
    }

    .btn.danger {
        background: color-mix(in srgb,var(--danger) 8%,var(--panel));
        border-color: color-mix(in srgb,var(--danger) 35%,var(--line));
        color: var(--danger)
    }

    .btn.small {
        padding: 7px 10px;
        font-size: 12px
    }

    .btn.link {
        border: 0;
        background: transparent;
        padding: 6px;
        color: var(--muted)
    }

    .alert.ok {
        background: color-mix(in srgb,var(--ok) 10%,var(--panel));
        border-color: color-mix(in srgb,var(--ok) 35%,var(--line));
        color: var(--ok)
    }

    .alert.error {
        background: color-mix(in srgb,var(--danger) 9%,var(--panel));
        border-color: color-mix(in srgb,var(--danger) 35%,var(--line));
        color: var(--danger)
    }

    .alert.warn {
        background: color-mix(in srgb,var(--warn) 9%,var(--panel));
        border-color: color-mix(in srgb,var(--warn) 32%,var(--line));
        color: var(--warn)
    }

    .card {
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 20px;
        box-shadow: 0 10px 28px rgba(40,45,48,.05);
        margin-bottom: 18px
    }

    .info-card {
        border-inline-start: 4px solid var(--accent)
    }

    .stat {
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 17px
    }

    .stat .num {
        font-size: 26px;
        font-weight: 850
    }

    .stat .label {
        font-size: 12px;
        color: var(--muted);
        margin-top: 5px
    }

    .table-wrap {
        overflow: auto;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--panel)
    }

    tr:last-child td {
        border-bottom:0
    }

    .badge {
        display: inline-flex;
        align-items: center;
        padding: 4px 8px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        background: var(--panel-soft);
        color: var(--muted);
        margin: 1px 3px 1px 0
    }

    .badge.ok {
        background: color-mix(in srgb,var(--ok) 13%,var(--panel));
        color: var(--ok)
    }

    .badge.warn {
        background: color-mix(in srgb,var(--warn) 12%,var(--panel));
        color: var(--warn)
    }

    .badge.danger {
        background: color-mix(in srgb,var(--danger) 11%,var(--panel));
        color: var(--danger)
    }

    .badge.personal {
        background: color-mix(in srgb,var(--personal) 14%,var(--panel));
        color: var(--personal)
    }

    .badge.merchant {
        background: color-mix(in srgb,var(--merchant) 18%,var(--panel));
        color: var(--merchant)
    }

    .inline-form {
        display: inline-flex;
        gap: 6px;
        align-items: center;
        margin: 2px 2px 2px 0
    }

    .muted {
        color: var(--muted)
    }

    .small {
        font-size: 12px
    }

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

    .divider {
        height: 1px;
        background: var(--line);
        margin: 22px 0
    }

    .footer-note {
        font-size: 12px;
        color: var(--muted);
        line-height: 1.65;
        margin-top: 16px
    }

    .preset-accounts {
        display: grid;
        grid-template-columns: repeat(4,1fr);
        gap: 8px
    }

    .preset-account {
        border: 1px solid var(--line);
        border-radius: 11px;
        padding: 10px;
        background: var(--panel-soft);
        font-weight: 800
    }

    .project-cover {
        display: grid;
        place-items: center;
        font-size: 72px
    }

    .project-content {
        padding: 26px
    }

    .project-content p {
        color: var(--muted);
        line-height: 1.7
    }

    .project-meta {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        color: var(--muted);
        font-size: 12px
    }

    .empty-state {
        text-align: center;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 22px;
        padding: 46px 24px;
        box-shadow: var(--shadow);
        margin-bottom: 18px
    }

    .empty-icon {
        width: 64px;
        height: 64px;
        border-radius: 20px;
        background: var(--panel-soft);
        display: grid;
        place-items: center;
        font-size: 28px;
        margin: 0 auto 14px
    }

    .back-link {
        display: inline-block;
        color: var(--muted);
        margin-bottom: 14px
    }

    .hero-emoji {
        font-size: 84px
    }

    .eyebrow {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .12em;
        color: var(--muted);
        font-weight: 850
    }

    .model-card {
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 17px;
        padding: 14px;
        min-height: 188px
    }

    .model-thumb {
        height: 82px;
        border-radius: 13px;
        background: var(--panel-soft);
        display: grid;
        place-items: center;
        font-size: 28px;
        font-weight: 900;
        color: var(--muted);
        margin-bottom: 12px
    }

    .model-card p {
        font-size: 12px;
        color: var(--muted);
        line-height: 1.6
    }

    .binding-status {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        align-items: center;
        border: 1px solid color-mix(in srgb,var(--ok) 34%,var(--line));
        background: color-mix(in srgb,var(--ok) 7%,var(--panel));
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 16px
    }

    .binding-status p {
        margin: 4px 0 0;
        color: var(--muted)
    }

    .kv {
        display: grid;
        grid-template-columns: 170px 1fr;
        gap: 9px 14px;
        font-size: 13px
    }

    .kv div:nth-child(odd) {
        color:var(--muted)
    }

    .filter-bar {
        display: grid;
        grid-template-columns: minmax(280px,1fr) minmax(220px,380px) auto;
        gap: 14px;
        align-items: end
    }

    .filter-bar .field {
        margin: 0
    }

    .access-chip {
        display: flex;
        align-items: center;
        gap: 5px;
        flex-wrap: wrap;
        margin: 3px 0
    }

    .access-chip strong {
        font-size: 12px
    }

    .badge.admin-source {
        background: color-mix(in srgb,#6f61c9 13%,var(--panel));
        color: #6558b8
    }

    .badge.blue {
        background: color-mix(in srgb,#3978c4 12%,var(--panel));
        color: #3978c4
    }

    .modal-backdrop {
        position: fixed;
        inset: 0;
        z-index: 100;
        background: rgba(28,33,35,.48);
        display: grid;
        place-items: center;
        padding: 24px
    }

    .modal-backdrop[hidden] {
        display: none
    }

    .modal-card {
        position: relative;
        width: min(680px,100%);
        max-height: calc(100vh - 48px);
        max-height: calc(100dvh - 32px - var(--safe-top) - var(--safe-bottom));
        overflow: auto;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 26px;
        padding: 30px;
        box-shadow: 0 30px 90px rgba(20,25,27,.28)
    }

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

    .modal-actions {
        justify-content: flex-end
    }

    .modal-open {
        overflow: hidden
    }

    .active-filter {
        background: var(--primary);
        border-color: var(--primary);
        color: var(--panel)
    }

    .message-preview {
        max-width: 280px
    }

    .message-preview summary {
        cursor: pointer;
        font-size: 12px;
        font-weight: 750;
        color: var(--muted)
    }

    .message-preview pre {
        white-space: pre-wrap;
        word-break: break-word;
        background: var(--panel-soft);
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 10px;
        font-size: 11px;
        line-height: 1.5;
        max-height: 260px;
        overflow: auto
    }

    .blocked-access {
        border-color: #efb0aa;
        background: #fff5f4
    }

    .blocked-access strong {
        color: #9d342b
    }

    .alert {
        margin: 12px 0;
        font-size: 13px;
        line-height: 1.6;
        border: 1px solid;
        border-radius: 14px;
        padding: 13px 14px;
        display: grid;
        grid-template-columns: 34px minmax(0,1fr) 30px;
        gap: 10px;
        align-items: start;
        box-shadow: 0 8px 22px rgba(37,43,46,.06)
    }

    .alert-icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        font-weight: 900;
        background: color-mix(in srgb,currentColor 13%,transparent)
    }

    .alert-content {
        min-width: 0
    }

    .alert-content strong {
        display: block;
        margin-bottom: 3px;
        color: var(--text);
        font-size: 13px
    }

    .alert-content div {
        word-break: break-word
    }

    .alert-close {
        border: 0;
        background: transparent;
        color: currentColor;
        font-size: 22px;
        line-height: 1;
        padding: 2px;
        cursor: pointer;
        opacity: .62;
        border-radius: 8px
    }

    .alert-close:hover {
        opacity: 1;
        background: color-mix(in srgb,currentColor 8%,transparent)
    }

    .user-summary {
        min-width: 220px
    }

    .user-summary strong {
        display: block;
        font-size: 13px;
        margin-bottom: 3px
    }

    .user-summary .muted {
        word-break: break-all
    }

    .user-access-table {
        min-width: 1220px
    }

    .field-feedback {
        margin-top: 7px;
        font-size: 12px;
        line-height: 1.5
    }

    .field-feedback.error,.field-feedback.server-feedback {
        color: var(--danger)
    }

    .alert.field-feedback {
        margin: 7px 0 0;
        padding: 9px 11px
    }

    .input-invalid {
        background: color-mix(in srgb,var(--danger) 3%,var(--panel));
        border-color: var(--danger);
        box-shadow: 0 0 0 3px color-mix(in srgb,var(--danger) 16%,transparent)
    }

    .captcha-row {
        display: grid;
        grid-template-columns: 130px minmax(0,1fr);
        gap: 10px;
        align-items: center
    }

    .captcha-image {
        width: 130px;
        height: 50px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--panel-soft)
    }

    .captcha-input {
        text-transform: uppercase;
        letter-spacing: .16em;
        font-weight: 800
    }

    .captcha-refresh {
        display: inline-block;
        margin-top: 6px;
        color: var(--muted);
        font-size: 12px
    }

    .auth-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        margin: 16px 0
    }

    .auth-tab {
        border: 1px solid var(--line);
        background: var(--panel-soft);
        padding: 10px;
        border-radius: 11px;
        font-weight: 800
    }

    .auth-tab.active {
        background: var(--primary);
        border-color: var(--primary);
        color: var(--panel)
    }

    .table-filter-row th {
        top: 38px;
        padding: 6px 8px;
        background: var(--panel-soft)
    }

    .table-column-search {
        width: 100%;
        min-width: 78px;
        border: 1px solid var(--line);
        background: var(--panel);
        border-radius: 8px;
        padding: 6px 7px;
        font-size: 11px;
        color: var(--text);
        outline: none
    }

    .table-column-search:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 2px color-mix(in srgb,var(--accent) 20%,transparent)
    }

    .table-count {
        margin-right: auto
    }

    .table-page-nav {
        display: flex;
        align-items: center;
        gap: 8px
    }

    .table-page-label {
        min-width: 54px;
        text-align: center
    }

    .table-page-nav .btn:disabled {
        opacity: .45;
        cursor: not-allowed;
        transform: none;
        box-shadow: none
    }

    .captcha-instruction {
        margin: 0 0 10px;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.55
    }

    .captcha-instruction strong {
        color: var(--text)
    }

    .captcha-grid {
        display: grid;
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 9px;
        max-width: 390px
    }

    .captcha-tile {
        position: relative;
        border: 2px solid var(--line);
        background: var(--panel);
        border-radius: 13px;
        padding: 4px;
        overflow: hidden;
        aspect-ratio: 1.15/1;
        transition: .15s ease;
        box-shadow: none
    }

    .captcha-tile:hover {
        border-color: var(--accent);
        transform: translateY(-1px)
    }

    .captcha-tile img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 9px
    }

    .captcha-tile.selected {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)
    }

    .captcha-tile-check {
        position: absolute;
        right: 7px;
        top: 7px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: var(--accent);
        color: var(--accent-ink,#202621);
        font-weight: 900;
        opacity: 0;
        transform: scale(.7);
        transition: .15s ease
    }

    .captcha-tile.selected .captcha-tile-check {
        opacity: 1;
        transform: scale(1)
    }

    .captcha-invalid .captcha-grid {
        border-radius: 14px;
        box-shadow: 0 0 0 3px color-mix(in srgb,var(--danger) 14%,transparent)
    }

    .email-code-summary {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        margin: 8px 0 14px;
        padding: 12px 13px;
        border: 1px solid var(--line);
        border-radius: 13px;
        background: var(--panel-soft)
    }

    .email-code-summary strong {
        word-break: break-all
    }

    [data-email-captcha-stage] {
        margin-top: 10px
    }

    [data-email-next-actions] {
        margin-top: 8px
    }

    .asset-release-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 20px 24px;
        margin: 18px 0;
        border-radius: 20px;
        background: linear-gradient(135deg,#284c3b,#4f7551);
        color: #fff;
        box-shadow: 0 14px 34px rgba(25,60,43,.18)
    }

    .asset-release-banner strong {
        display: block;
        margin-top: 7px;
        font-size: 16px;
        word-break: break-all
    }

    .asset-release-banner .eyebrow {
        color: #dceecb
    }

    .check-card {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 62px;
        padding: 11px 14px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--surface);
        cursor: pointer
    }

    .check-card input {
        width: 18px;
        height: 18px;
        flex: none
    }

    .check-card span {
        display: flex;
        flex-direction: column;
        gap: 3px
    }

    .check-card small {
        color: var(--muted)
    }

    .validation-summary {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        padding: 18px 20px;
        margin: 16px 0;
        border-radius: 16px;
        border: 1px solid var(--line);
        background: var(--surface)
    }

    .validation-summary.ok {
        border-color: #9fc986;
        background: #f2faed
    }

    .validation-summary.error {
        border-color: #e6a5a5;
        background: #fff2f2
    }

    .validation-summary h4 {
        width: 100%;
        margin: 6px 0 0
    }

    .validation-summary ul {
        width: 100%;
        margin: 0;
        padding-left: 22px
    }

    .asset-component-table input[type="text"],.asset-component-table input:not([type]),.asset-component-table select {
        min-width:130px
    }

    .asset-component-table input[type="color"] {
        width: 54px;
        height: 38px;
        padding: 3px
    }

    .switch-inline {
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap
    }

    .switch-inline input {
        width: 17px;
        height: 17px
    }

    .model-card.featured-editor {
        border: 2px solid #a9ca58;
        background: linear-gradient(180deg,#fbfff4,#f1f8e5);
        box-shadow: 0 12px 28px rgba(94,133,40,.13)
    }

    .model-card.featured-editor .model-thumb {
        background: linear-gradient(135deg,#c3da57,#8fc46c);
        color: #24361f;
        font-weight: 800
    }

    .asset-stats-grid {
        grid-template-columns: repeat(6,minmax(130px,1fr))
    }

    .asset-upload-card summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        cursor: pointer;
        list-style: none
    }

    .asset-upload-card summary::-webkit-details-marker {
        display:none
    }

    .asset-upload-card[open] summary {
        padding-bottom: 12px;
        border-bottom: 1px solid var(--line);
        margin-bottom: 14px
    }

    .asset-view-switch {
        display: flex;
        gap: 7px;
        flex-wrap: wrap
    }

    .asset-style-preview-link {
        display: inline-block;
        text-decoration: none;
        color: inherit
    }

    .asset-style-preview {
        width: 124px;
        min-height: 58px;
        border-radius: 16px;
        background: linear-gradient(145deg,#eee8da,#e7e1d2);
        border: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,.04)
    }

    .asset-style-preview>span {
        font-weight: 900;
        font-size: 16px;
        letter-spacing: .02em;
        color: #252a30
    }

    .asset-style-preview>div {
        display: flex;
        max-width: 50px;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: flex-end
    }

    .asset-color-dot {
        display: inline-block;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        border: 2px solid var(--panel);
        box-shadow: 0 0 0 1px color-mix(in srgb,var(--text) 20%,transparent);
        vertical-align: middle
    }

    .path-cell {
        max-width: 310px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .asset-catalog-card table {
        min-width: 1320px
    }

    .asset-catalog-card [data-asset-view-panel="files"] table {
        min-width: 1680px
    }

    .editor-workbench-body {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        background: var(--bg);
        display: grid;
        grid-template-rows: 62px minmax(0,1fr);
    }

    .editor-save-status {
        font-size: 12px;
        color: var(--muted);
        min-width: 78px;
        text-align: right
    }

    .editor-save-status.saving {
        color: var(--warn)
    }

    .editor-save-status.saved {
        color: var(--ok)
    }

    .asset-migration-card {
        border-inline-start: 4px solid var(--accent);
        background: linear-gradient(135deg,var(--panel),color-mix(in srgb,var(--accent-soft) 45%,var(--panel)))
    }

    .asset-migration-card form {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid var(--line)
    }

    .asset-import-row {
        grid-template-columns: minmax(0,1fr) auto;
        align-items: end
    }

    .asset-import-row .actions {
        margin: 0 0 14px
    }

    .asset-import-row .field {
        margin: 0
    }

    .btn:disabled {
        opacity: .45;
        cursor: not-allowed;
        transform: none;
        box-shadow: none
    }

    .bug-ticket-card {
        margin-bottom: 18px
    }

    .bug-description {
        white-space: pre-wrap;
        background: var(--panel-soft);
        padding: 14px;
        border-radius: 10px;
        line-height: 1.7
    }

    .bug-thread {
        display: grid;
        gap: 10px;
        margin: 14px 0
    }

    .bug-message {
        padding: 12px 14px;
        border-radius: 10px;
        background: var(--panel-soft)
    }

    .bug-message.admin {
        border-inline-start: 4px solid #a6f757
    }

    .bug-message.user {
        border-inline-start: 4px solid var(--muted)
    }

    .bug-message-head {
        display: flex;
        justify-content: space-between;
        gap: 10px
    }

    .bug-message p {
        white-space: pre-wrap;
        margin: 8px 0 0
    }

    .bug-status-form {
        display: flex;
        gap: 8px;
        align-items: center;
        margin-top: 10px
    }

    .bug-status-form select {
        min-width: 150px
    }

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

    .color-role-card {
        background: var(--panel-soft);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 16px
    }

    .color-role-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px
    }

    .color-role-heading strong {
        display: block
    }

    .color-role-heading small {
        display: block;
        color: var(--muted);
        margin-top: 4px
    }

    .color-role-controls {
        display: grid;
        grid-template-columns: 44px minmax(120px,1fr) minmax(130px,180px);
        gap: 10px;
        align-items: center
    }

    .round-color-input {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        overflow: hidden;
        display: block;
        border: 2px solid #dddddd;
        background: #fff;
        cursor: pointer
    }

    .round-color-input input[type="color"] {
        width: 52px;
        height: 52px;
        border: 0;
        padding: 0;
        margin: -7px;
        cursor: pointer;
        background: transparent
    }

    .color-hex-value {
        min-width: 0
    }

    .discord-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 20px 22px;
        margin-bottom: 18px;
        border-radius: 18px;
        background: linear-gradient(135deg,#5865f2,#7781ff);
        color: #fff;
        box-shadow: 0 14px 34px rgba(88,101,242,.28)
    }

    .discord-hero>div {
        display: flex;
        align-items: center;
        gap: 14px
    }

    .discord-hero strong,.discord-hero small {
        display: block
    }

    .discord-hero strong {
        font-size: 17px
    }

    .discord-hero small {
        margin-top: 4px;
        opacity: .88
    }

    .discord-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: rgba(255,255,255,.18);
        font-size: 24px
    }

    .discord-hero>b {
        font-size: 24px
    }

    .feedback-create-card>summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        list-style: none
    }

    .feedback-create-card>summary::-webkit-details-marker {
        display:none
    }

    .feedback-create-card[open]>summary {
        padding-bottom: 12px;
        border-bottom: 1px solid var(--line);
        margin-bottom: 12px
    }

    .feedback-upload-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px
    }

    .attachment-preview {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 10px
    }

    .attachment-preview-item {
        width: 74px
    }

    .attachment-preview-item img {
        display: block;
        width: 74px;
        height: 60px;
        object-fit: contain;
        border-radius: 9px;
        background: var(--panel);
        border: 1px solid var(--line)
    }

    .attachment-preview-item small {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 3px;
        color: var(--muted)
    }

    .feedback-table {
        min-width: 1450px
    }

    .feedback-table.admin {
        min-width: 1750px
    }

    .table-title-link {
        font-weight: 800;
        color: var(--text)
    }

    .table-title-link:hover {
        color: var(--text);
        text-decoration-color: var(--accent);
        text-decoration: underline
    }

    .feedback-detail-head h1 {
        font-size: 25px;
        margin-top: 5px
    }

    .feedback-meta {
        display: flex;
        gap: 8px 18px;
        flex-wrap: wrap;
        color: var(--muted);
        font-size: 12px;
        margin: 14px 0
    }

    .feedback-thread {
        display: flex;
        flex-direction: column;
        gap: 13px;
        margin-bottom: 18px
    }

    .feedback-message {
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 7px 22px rgba(40,45,48,.04)
    }

    .feedback-message.admin {
        border-inline-start: 4px solid var(--ok)
    }

    .feedback-message.user {
        border-inline-start: 4px solid var(--accent)
    }

    .feedback-message.system {
        background: var(--panel-soft)
    }

    .feedback-message header {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px
    }

    .feedback-message header span {
        color: var(--muted);
        font-size: 11px
    }

    .feedback-message-text {
        line-height: 1.7;
        font-size: 13px
    }

    .feedback-attachments {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 14px
    }

    .feedback-image {
        width: 140px;
        background: var(--panel-soft);
        border-radius: 11px;
        overflow: hidden
    }

    .feedback-image img {
        display: block;
        width: 140px;
        height: 100px;
        object-fit: contain
    }

    .feedback-image span {
        display: block;
        padding: 6px 8px;
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .feedback-file {
        min-width: 220px;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: center;
        background: var(--panel-soft);
        padding: 11px 12px;
        border-radius: 11px
    }

    .feedback-file small {
        color: var(--muted)
    }

    .feedback-admin-actions {
        align-items: start
    }

    .browser-info summary {
        cursor: pointer;
        color: var(--muted);
        font-size: 12px
    }

    .browser-info pre {
        white-space: pre-wrap;
        word-break: break-word;
        background: var(--panel-soft);
        border-radius: 10px;
        padding: 10px;
        font-size: 11px
    }

    .compact-actions {
        align-items: flex-start;
        margin: 0;
        display: flex;
        gap: 6px;
        flex-wrap: wrap
    }

    .feedback-page-switch,.feedback-heading-actions {
        display: flex;
        gap: 9px;
        align-items: center;
        flex-wrap: wrap
    }

    .feedback-list-toolbar {
        align-items: center
    }

    .feedback-filter-form {
        display: flex;
        align-items: center;
        gap: 8px
    }

    .feedback-filter-form label {
        font-size: 12px;
        font-weight: 800;
        color: var(--muted)
    }

    .feedback-filter-form select {
        min-width: 142px;
        padding: 9px 34px 9px 11px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--panel);
        color: var(--text)
    }

    .feedback-table td,.feedback-table th {
        white-space: nowrap
    }

    .feedback-table td:nth-child(2),.feedback-table th:nth-child(2) {
        white-space:normal;
        min-width: 170px
    }

    .audit-table {
        min-width: 1250px
    }

    .audit-details {
        max-width: 360px;
        white-space: normal;
        word-break: break-word
    }

    .feedback-detail-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 18px
    }

    .feedback-detail-actions form {
        margin: 0
    }

    .feedback-detail-actions .btn {
        min-width: 116px
    }

    .feedback-filter-form select:focus {
        outline:2px solid color-mix(in srgb,var(--accent) 75%,transparent);
        outline-offset: 1px
    }

    .inline-details {
        position: relative;
        display: inline-block
    }

    .inline-details>summary {
        list-style: none;
        cursor: pointer
    }

    .inline-details>summary::-webkit-details-marker {
        display:none
    }

    .inline-details[open] .compact-form {
        position: absolute;
        inset-inline-end: 0;
        top: calc(100% + 8px);
        z-index: 60;
        width: min(380px,80vw);
        max-height: 72vh;
        overflow: auto;
        padding: 16px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 10px;
        box-shadow: 0 18px 45px rgba(0,0,0,.18)
    }

    .compact-form .field {
        margin-bottom: 10px
    }

    .compact-form .actions {
        margin-top: 10px
    }

    .filter-tabs {
        margin-top: 10px;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin: 0 0 18px
    }

    .filter-tabs .active-filter {
        background: var(--text);
        color: var(--panel)
    }

    .asset-inline-edit-table {
        min-width: 1160px
    }

    .asset-inline-edit-table .asset-style-preview {
        width: 92px;
        min-height: 58px
    }

    .asset-inline-color-list,.asset-inline-role-list {
        display: grid;
        gap: 7px;
        min-width: 180px
    }

    .asset-inline-color,.asset-inline-role {
        display: grid;
        grid-template-columns: minmax(80px,1fr) auto;
        align-items: center;
        gap: 8px;
        font-size: 11px
    }

    .asset-inline-color>span,.asset-inline-role>span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .asset-inline-color input[type=color] {
        width: 34px;
        height: 34px;
        padding: 2px;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: var(--panel)
    }

    .asset-inline-role select {
        min-width: 88px;
        height: 32px;
        padding: 4px 7px;
        font-size: 11px
    }

    .asset-inline-role-list+.btn {
        margin-top: 8px
    }

    .asset-optional-col {
        display: none
    }

    .asset-catalog-card.show-optional-columns .asset-optional-col {
        display: table-cell
    }

    .asset-upload-card small {
        display: block;
        margin-top: 6px;
        color: var(--muted);
        line-height: 1.45
    }

    .inherit-option-grid,.inherit-confirm-grid {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px;
        margin: 14px 0
    }

    .inherit-option-grid .check-card,.inherit-confirm-grid .check-card {
        min-height: 88px
    }

    .inherit-option-grid .check-card span,.inherit-confirm-grid .check-card span {
        display: flex;
        flex-direction: column;
        gap: 4px
    }

    .inherit-option-grid .check-card small,.inherit-confirm-grid .check-card small {
        color: var(--muted);
        font-size: 11px;
        font-weight: 500
    }

    .inherit-confirm-grid:has(.check-card:only-child) {
        grid-template-columns: minmax(0,520px)
    }

    .asset-project-selector {
        display: grid;
        grid-template-columns: minmax(260px,420px) 1fr;
        align-items: end;
        gap: 18px
    }

    .asset-project-selector .field {
        margin: 0
    }

    .asset-section-tabs {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        flex-wrap: wrap
    }

    .asset-module-grid {
        display: grid;
        grid-template-columns: repeat(3,minmax(220px,1fr));
        gap: 14px;
        margin-top: 18px
    }

    .asset-module-card {
        position: relative;
        display: flex;
        min-height: 128px;
        flex-direction: column;
        gap: 8px;
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--panel);
        color: var(--text);
        box-shadow: 0 8px 24px rgba(30,35,38,.045);
        transition: .18s ease
    }

    .asset-module-card:hover {
        transform: translateY(-2px);
        border-color: var(--accent);
        box-shadow: 0 12px 30px rgba(30,35,38,.08)
    }

    .asset-module-card strong {
        font-size: 17px
    }

    .asset-module-card small {
        max-width: 90%;
        color: var(--muted);
        line-height: 1.55
    }

    .asset-module-card>span {
        position: absolute;
        right: 18px;
        bottom: 16px;
        font-size: 22px
    }

    .asset-inline-hidden-form {
        display: none
    }

    .btn {
        border: 1px solid var(--line);
        background: var(--panel);
        color: var(--text);
        border-radius: 11px;
        padding: 10px 14px;
        font-weight: 750;
        cursor: pointer;
        box-shadow: none
    }

    .btn.primary {
        background: var(--accent);
        border-color: var(--accent);
        color: #1e251a
    }

    .btn:hover {
        transform: none;
        box-shadow: none;
        filter: brightness(.985)
    }

    .field textarea,textarea {
        min-height: auto;
        padding: 11px 12px
    }

    .table-pager {
        display: flex;
        justify-content: flex-end;
        gap: 14px;
        flex-wrap: wrap;
        padding: 10px 2px 2px;
        align-items: center
    }

    .table-size-label {
        font-size: 12px;
        color: var(--muted);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap
    }

    .table-size-label>span {
        white-space: nowrap
    }

    .table-size-select {
        border: 1px solid var(--line);
        background: var(--panel);
        border-radius: 8px;
        padding: 6px 8px;
        width: 72px;
        min-width: 72px;
        height: 36px;
        min-height: 36px;
        padding-inline: 9px 28px
    }

    html[data-theme="dark"] .btn.primary {
        color: #222
    }

    html[data-theme="dark"] .active-filter {
        color: #222
    }

    html[data-theme="dark"] .auth-tab.active {
        color: #222
    }

    html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder {
        color:#899297
    }

    html[data-theme="dark"] .discord-hero {
        background: #5865f2
    }

    html[data-theme="light"] .field input::placeholder,html[data-theme="light"] .field textarea::placeholder {
        color:#8a9297
    }

    html[data-daft-preset="b3REd6hhg"] .theme-toggle .lucide-icon {
        width: 18px;
        height: 18px
    }

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

        .model-grid {
            grid-template-columns: repeat(3,1fr)
        }

        .project-card {
            grid-template-columns: 220px 1fr
        }

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

    @media (max-width: 800px) {
        .main {
            padding:18px
        }

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

        .stats-grid {
            grid-template-columns: 1fr 1fr
        }

        .model-grid {
            grid-template-columns: 1fr 1fr
        }

        .project-card {
            grid-template-columns: 1fr
        }

        .project-hero {
            align-items: flex-start
        }

        .app-toast {
            bottom: 18px
        }

        .project-cover {
            min-height: 150px
        }

        .hero-emoji {
            font-size: 54px
        }

        .preset-accounts {
            grid-template-columns: 1fr 1fr
        }

        .auth-card {
            padding: 22px
        }

        .kv {
            grid-template-columns: 1fr
        }

        .user-access-table {
            min-width: 1080px
        }

        .table-pager {
            grid-template-columns: 1fr;
            justify-items: start
        }

        .table-page-nav {
            justify-self: start
        }
    }

    @media (max-width: 980px) {
        .editor-hostbar {
            height:auto;
            min-height: 62px;
            padding: 8px 10px
        }

        .editor-host-actions .badge {
            display: none
        }

        .editor-host-left small {
            display: none
        }

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

        .editor-workbench-body {
            grid-template-rows: auto minmax(0,1fr)
        }
    }

    @media (max-width: 680px) {
        .editor-host-left .btn {
            font-size:0
        }

        .editor-host-left .btn::after {
            content: none;
            font-size: 14px
        }

        .editor-host-actions a.btn {
            display: none
        }

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

        .editor-save-status {
            display: none
        }
    }

    @media (max-width: 900px) {
        .filter-bar {
            grid-template-columns:1fr
        }

        .modal-card {
            padding: 24px
        }

        .user-access-table {
            min-width: 1180px
        }

        .color-role-grid {
            grid-template-columns: 1fr
        }

        .color-role-controls {
            grid-template-columns: 44px 1fr
        }

        .color-role-controls select {
            grid-column: 1/-1
        }

        .feedback-upload-grid,.feedback-admin-actions {
            grid-template-columns: 1fr
        }

        .feedback-table,.feedback-table.admin {
            min-width: 1200px
        }
    }

    @media (max-width: 700px) {
        .captcha-row {
            grid-template-columns:1fr
        }

        .captcha-image {
            width: 130px
        }

        .table-pager {
            justify-content: flex-start
        }

        .table-count {
            width: 100%;
            margin-right: 0
        }
    }

    @media (max-width: 520px) {
        .captcha-grid {
            gap:7px
        }

        .captcha-tile {
            border-radius: 11px;
            padding: 3px
        }

        .captcha-tile-check {
            width: 21px;
            height: 21px;
            right: 5px;
            top: 5px
        }

        .email-code-summary {
            align-items: flex-start
        }
    }

    @media (max-width: 820px) {
        .asset-release-banner {
            align-items:flex-start;
            flex-direction: column
        }

        .asset-component-table {
            min-width: 1100px
        }
    }

    @media (max-width: 760px) {
        .asset-import-row {
            grid-template-columns:1fr
        }

        .asset-import-row .actions {
            margin: 0
        }

        .feedback-page-switch,.feedback-heading-actions {
            width: 100%
        }

        .feedback-page-switch .btn {
            flex: 1;
            text-align: center
        }

        .feedback-filter-form {
            width: 100%
        }

        .feedback-filter-form select {
            flex: 1
        }

        .inherit-option-grid,.inherit-confirm-grid {
            grid-template-columns: 1fr
        }
    }

    @media (max-width: 1000px) {
        .asset-project-selector {
            grid-template-columns:1fr
        }

        .asset-section-tabs {
            justify-content: flex-start
        }

        .asset-module-grid {
            grid-template-columns: repeat(2,minmax(200px,1fr))
        }
    }

    @media (max-width: 650px) {
        .asset-module-grid {
            grid-template-columns:1fr
        }

        .asset-stats-grid {
            grid-template-columns: repeat(2,minmax(120px,1fr))
        }
    }
}

@layer utilities {
    .muted {
        color: var(--muted)
    }

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

/* V4.12.3 critical language-menu isolation.
   Kept outside cascade layers so it wins over any vendor button preset in
   Chromium, Safari and Firefox without relying on selector specificity. */
.language-menu button.language-option {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    height: auto;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background-color: transparent;
    color: var(--text);
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    font-weight: 680;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    appearance: none;
    cursor: pointer
}

.language-menu button.language-option:hover {
    background-color: var(--panel-soft);
    border-color: var(--line)
}

.language-menu button.language-option.active {
    background-color: var(--accent-soft);
    border-color: var(--accent);
    color: var(--text)
}

.language-menu button.language-option:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px
}

.language-menu button.language-option[aria-checked="true"] {
    background-color: var(--accent-soft);
    border-color: var(--accent)
}

.language-menu .language-option.disabled,.language-menu button.language-option:disabled {
    background-color: transparent;
    color: var(--muted);
    border-color: transparent;
    box-shadow: none;
    opacity: .58;
    cursor: not-allowed
}

.language-menu .language-option.active {
    background-color: var(--accent-soft);
    color: var(--text)
}


.editor-hostbar .language-menu-panel {
    max-height: calc(100vh - 78px);
    max-height: calc(100dvh - 78px - var(--safe-top) - var(--safe-bottom));
    overflow: auto;
    overscroll-behavior: contain
}

/* V4.13.0 editor host action redesign */
.editor-host-actions {
    gap: 8px;
}

.editor-host-actions>.btn,.editor-host-actions>.language-menu {
    margin: 0
}

.editor-host-animation,.editor-host-theme,.editor-host-undo,.editor-host-redo {
    min-width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center
}

.editor-host-actions svg {
    width: 19px;
    height: 19px
}

.editor-host-export {
}

.editor-host-actions .language-summary {
    height: var(--pf-host-action-h);
    grid-template-columns:18px 12px!important;
    justify-content:center!important;
    gap:1px!important;
}

.editor-host-actions button:disabled {
    opacity: .42;
    cursor: not-allowed
}

/* ===== V4.14.0 MoooLab + Taste audit: presentation-only system =====
   Scope: typography, hierarchy, surfaces, states, responsive layout and a11y.
   No route, field, API, database or business behavior is changed here. */
:root {
    --font-ui: "Avenir Next","Segoe UI Variable","Segoe UI","PingFang SC","Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif;
    --font-data: "SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
    --radius-shell: 18px;
    --radius-card: 14px;
    --radius-control: 9px;
    --radius-chip: 7px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 22px;
    --space-6: 30px;
    --motion-fast: 140ms;
    --motion-base: 200ms;
    --ease-ui: cubic-bezier(.2,.75,.25,1);
    --shadow-card: 0 1px 2px rgba(38,52,42,.035),0 10px 28px rgba(46,66,51,.045);
    --shadow-float: 0 16px 48px rgba(34,50,39,.14);
    --focus-ring: 0 0 0 3px color-mix(in srgb,var(--accent) 34%,transparent);
    --z-base: 0;
    --z-sticky: 40;
    --z-nav: 55;
    --z-menu: 90;
    --z-modal: 100;
    --z-toast: 220;
}

html[data-theme="dark"] {
    --shadow-card: 0 1px 2px rgba(0,0,0,.16),0 12px 30px rgba(0,0,0,.16);
    --shadow-float: 0 18px 54px rgba(0,0,0,.38);
}

html {
    scroll-behavior: smooth
}

body,html[data-daft-preset="b3REd6hhg"] body {
    font-family: var(--font-ui);
    letter-spacing: -.004em;
    text-rendering: optimizeLegibility
}

.mono,html[data-daft-preset="b3REd6hhg"] .mono {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0
}

:where(.num,td,th,input[type="number"],input[inputmode="numeric"],.badge) {
    font-variant-numeric: tabular-nums
}

::selection {
    background: color-mix(in srgb,var(--accent) 52%,transparent);
    color: var(--text)
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

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

*::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border: 3px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

*::-webkit-scrollbar-track {
    background: transparent
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 300;
    transform: translateY(-160%);
    padding: 9px 13px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-control);
    background: var(--panel);
    color: var(--text);
    font-weight: 750;
    box-shadow: var(--shadow-float);
    transition: transform var(--motion-fast) var(--ease-ui)
}

.skip-link:focus {
    transform: translateY(0)
}

:where(a,button,summary,[tabindex]:not([tabindex="-1"]),input,select,textarea):focus-visible {
    outline: 2px solid color-mix(in srgb,var(--accent) 88%,var(--text));
    outline-offset: 2px;
    box-shadow: var(--focus-ring)
}

:where(button,.btn,.icon-btn,.nav-link,.nav-section-toggle,.project-card,.asset-module-card,.preset-account,.captcha-tile) {
    transition: background-color var(--motion-fast) var(--ease-ui),border-color var(--motion-fast) var(--ease-ui),color var(--motion-fast) var(--ease-ui),box-shadow var(--motion-fast) var(--ease-ui),transform var(--motion-fast) var(--ease-ui),opacity var(--motion-fast) var(--ease-ui)
}

:where(button,.btn,.icon-btn,.nav-link,.nav-section-toggle,.preset-account):active:not(:disabled) {
    transform: translateY(1px) scale(.99)
}

:where(button,.btn,.icon-btn):disabled,[aria-disabled="true"] {
    cursor: not-allowed;
    filter: saturate(.55)
}

.topbar {
    z-index: var(--z-sticky);
    box-shadow: 0 1px 0 color-mix(in srgb,var(--line) 76%,transparent);
    backdrop-filter: saturate(1.1) blur(12px)
}

.brand .logo {
    border-radius: 11px;
    background: linear-gradient(145deg,#252c27,#171d19);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08)
}

.brand strong {
    font-weight: 760;
    letter-spacing: -.025em
}

.brand small {
    font-size: 10.5px;
    letter-spacing: .01em
}

.top-actions {
    min-width: 0
}

.user-chip {
    min-width: clamp(48px,16vw,210px);
    max-width: 240px;
    border-radius: var(--radius-control)
}

.user-menu-panel,.language-menu-panel {
    box-shadow: var(--shadow-float);
    border-color: color-mix(in srgb,var(--line-strong) 78%,transparent);
    padding: 8px
}

.user-menu-panel a,.language-option {
    min-height: 40px
}

.user-menu-divider {
    height: 1px;
    background: var(--line);
    margin: 6px 4px
}

.icon-btn,.language-summary {
    border-radius: var(--radius-control)
}

.icon-btn:hover,.language-summary:hover {
    background: var(--panel-soft);
    border-color: var(--line-strong)
}


.layout>.main {
    padding: 0;
    scroll-padding-top: 24px
}

.container {
    width: min(1240px,calc(100% - 48px));
    padding: 30px 0 56px
}

.container:has(.asset-catalog-card),.container:has(.user-access-table),.container:has(.feedback-table),.container:has(.audit-table) {
    width: min(1520px,calc(100% - 48px))
}

.sidebar {
    z-index: var(--z-nav);
    padding: 18px 10px 24px;
    overscroll-behavior: contain
}

.sidebar-scrim {
    display: none
}

.nav {
    gap: 3px
}

.nav-title {
    margin: 4px 10px 10px;
    font-size: 10px;
    font-weight: 720;
    letter-spacing: .035em;
    text-transform: none;
    color: var(--muted)
}

.nav-link,.nav-section-toggle {
    border-radius: var(--radius-control);
    font-weight: 630;
    letter-spacing: -.003em
}

.nav-link:hover,.nav-section-toggle:hover {
    background: color-mix(in srgb,var(--panel-soft) 78%,var(--panel));
    border-color: color-mix(in srgb,var(--line) 72%,transparent)
}

.nav-link.active {
    background: var(--accent-soft);
    border-color: color-mix(in srgb,var(--accent) 58%,var(--line));
    box-shadow: inset 3px 0 0 var(--accent)
}

.nav-section-items {
    display: flex;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height var(--motion-base) var(--ease-ui),opacity var(--motion-fast) var(--ease-ui),padding var(--motion-base) var(--ease-ui)
}

.nav-section.is-open .nav-section-items {
    max-height: 460px;
    opacity: 1;
    padding-top: 3px;
    padding-bottom: 6px
}

.nav-link.nav-child {
    color: color-mix(in srgb,var(--text) 88%,var(--muted));
    font-weight: 590
}

body.sidebar-collapsed .nav-section-items {
    max-height: 0!important;
    opacity: 0!important;
    padding-block:0!important}

h1,h2,h3 {
    font-family: var(--font-ui);
    text-wrap: balance;
    color: var(--text)
}

h1 {
    font-size: clamp(27px,2.3vw,34px);
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 770;
    margin-bottom: 10px
}

h2 {
    font-size: clamp(19px,1.65vw,23px);
    line-height: 1.22;
    letter-spacing: -.022em;
    font-weight: 730
}

h3 {
    font-size: 15px;
    line-height: 1.32;
    letter-spacing: -.012em;
    font-weight: 700
}

.lead {
    max-width: 72ch;
    color: var(--muted);
    line-height: 1.72;
    text-wrap: pretty;
    margin-bottom: 24px
}

.page-heading,.project-heading,.section-heading,.toolbar {
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px
}

.page-heading>div:first-child,.section-heading>div:first-child {
    max-width: 82ch
}

.page-heading .lead,.section-heading p {
    margin-bottom: 0
}

.eyebrow {
    font-size: 10.5px;
    text-transform: none;
    letter-spacing: .055em;
    font-weight: 720
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    margin-bottom: 16px;
    padding: 5px 2px;
    color: var(--muted);
    font-weight: 650
}

.back-link:hover {
    color: var(--text)
}

.back-link svg {
    width: 16px;
    height: 16px
}

.card,.stat,.table-wrap,.project-card,.empty-state,.auth-card {
    box-shadow: none
}

.card {
    border-color: color-mix(in srgb,var(--line) 88%,transparent);
    border-radius: var(--radius-card);
    padding: 22px;
    margin-bottom: 20px;
    background: var(--panel)
}

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

#workspaceCards {
    margin-block-start: 16px
}

.stat {
    position: relative;
    overflow: hidden;
    border-color: color-mix(in srgb,var(--line) 84%,transparent);
    border-radius: var(--radius-card);
    padding: 18px 17px 17px;
    background: linear-gradient(180deg,color-mix(in srgb,var(--panel-soft) 34%,var(--panel)),var(--panel))
}

.stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: color-mix(in srgb,var(--accent) 72%,var(--line))
}

.stat .num {
    font-size: 27px;
    line-height: 1;
    font-weight: 760;
    letter-spacing: -.04em
}

.stat .label {
    margin-top: 8px;
    font-size: 11.5px;
    line-height: 1.4
}

.stats-grid {
    gap: 10px;
    margin-bottom: 22px
}

.info-card {
    border-left-width: 3px
}

.project-card {
    border-color: color-mix(in srgb,var(--line) 88%,transparent);
    border-radius: var(--radius-shell);
    box-shadow: var(--shadow-card);
    transition: transform var(--motion-base) var(--ease-ui),box-shadow var(--motion-base) var(--ease-ui),border-color var(--motion-base) var(--ease-ui)
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: 0 16px 38px rgba(46,66,51,.08)
}

.project-content {
    padding: 28px 30px 32px
}

.project-hero {
    border-radius: var(--radius-shell);
    border-color: color-mix(in srgb,var(--line) 78%,transparent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.48)
}

.model-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-card);
    border-color: color-mix(in srgb,var(--line) 84%,transparent);
    padding: 15px;
    background: var(--panel)
}

.model-card .btn {
    margin-top: auto;
    align-self: flex-start
}

.model-thumb {
    border-radius: 11px
}

.asset-module-grid {
    gap: 12px
}

.asset-module-card {
    min-height: 136px;
    border-radius: var(--radius-card);
    box-shadow: none;
    background: linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--panel-soft) 48%,var(--panel)))
}

.asset-module-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb,var(--accent) 62%,var(--line));
    box-shadow: var(--shadow-card)
}

.asset-release-banner,.discord-hero {
    border-radius: var(--radius-shell);
    box-shadow: var(--shadow-card)
}

.btn {
    min-height: 40px;
    border-radius: var(--radius-control);
    padding: 9px 14px;
    font-weight: 680;
    letter-spacing: -.004em
}

.btn:hover:not(:disabled) {
    filter: none;
    background: var(--panel-soft);
    border-color: var(--line-strong);
    box-shadow: 0 5px 16px rgba(44,60,48,.055)
}

.btn.primary:hover:not(:disabled) {
    background: color-mix(in srgb,var(--accent) 90%,#fff);
    border-color: color-mix(in srgb,var(--accent) 88%,var(--text));
    box-shadow: 0 7px 18px color-mix(in srgb,var(--accent) 24%,transparent);
}

.btn.link:hover:not(:disabled) {
    background: var(--panel-soft);
    color: var(--text);
    box-shadow: none
}

.btn.danger:hover:not(:disabled) {
    background: color-mix(in srgb,var(--danger) 14%,var(--panel));
    border-color: color-mix(in srgb,var(--danger) 48%,var(--line))
}

.btn.small {
    /* min-height: 34px; */
    max-height: 38px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
}

.icon-btn {
    min-width: 38px;
    max-height: 38px;
}

input,select,textarea,html[data-daft-preset="b3REd6hhg"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),select,textarea) {
    min-height: 42px;
    border-radius: var(--radius-control);
    border-color: var(--line);
    padding: 9px 12px;
    transition: border-color var(--motion-fast) var(--ease-ui),box-shadow var(--motion-fast) var(--ease-ui),background-color var(--motion-fast) var(--ease-ui)
}

input:hover:not(:disabled),select:hover:not(:disabled),textarea:hover:not(:disabled) {
    border-color: var(--line-strong)
}

input:focus,select:focus,textarea:focus {
    border-color: color-mix(in srgb,var(--accent) 82%,var(--line-strong));
    box-shadow: var(--focus-ring)
}

input:disabled,select:disabled,textarea:disabled,input[readonly],textarea[readonly] {
    opacity: 1;
    background: color-mix(in srgb,var(--panel-soft) 82%,var(--panel));
    color: var(--muted);
    border-style: solid
}

.field {
    margin: 16px 0
}

.field label {
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 680
}

.field small {
    line-height: 1.55
}

.actions {
    gap: 8px;
    margin-top: 20px
}

.file-picker {
    border-radius: var(--radius-control)
}

.file-picker-button {
    border-radius: 7px
}

.check-card {
    border-radius: var(--radius-card)
}

.auth-wrap {
    min-height: calc(100dvh - 72px);
    padding: 36px 20px 56px;
    background: radial-gradient(circle at 12% 12%,color-mix(in srgb,var(--accent-soft) 54%,transparent),transparent 28%),var(--bg)
}

.auth-card {
    width: min(536px,100%);
    border-radius: var(--radius-shell);
    padding: 32px;
    border-color: color-mix(in srgb,var(--line) 88%,transparent);
    box-shadow: var(--shadow-card)
}

.auth-tabs {
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: stretch;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft)
}

.auth-tab {
    min-width: 0;
    min-height: 38px;
    height: auto;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-weight: 680;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    display: grid;
    place-items: center
}

.auth-tab.active {
    box-shadow: 0 2px 8px rgba(33,45,36,.1)
}

.divider {
    margin: 26px 0
}

.preset-accounts {
    gap: 7px
}

.preset-account {
    min-height: 38px;
    border-radius: var(--radius-control);
    padding: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650
}

.preset-account:hover {
    background: var(--panel-soft);
    color: var(--text);
    border-color: var(--line-strong)
}

.footer-note {
    max-width: 68ch;
    line-height: 1.7
}

.table-wrap {
    position: relative;
    overflow: auto;
    border-color: color-mix(in srgb,var(--line) 92%,transparent);
    border-radius: var(--radius-card);
    background: var(--panel);
    overscroll-behavior: contain
}

.table-wrap.is-scrollable:not(.is-scrolled-end)::after {
    content: "";
    position: sticky;
    inset-inline-end: 0;
    display: block;
    float: inline-end;
    width: 22px;
    height: 0;
    box-shadow: -12px 0 20px 10px color-mix(in srgb,var(--text) 10%,transparent);
    pointer-events: none
}

html[dir="rtl"] .table-wrap.is-scrollable:not(.is-scrolled-end)::after {
    box-shadow: 12px 0 20px 10px color-mix(in srgb,var(--text) 10%,transparent)
}

table {
    font-variant-numeric: tabular-nums
}

th,td {
    padding: 12px 13px;
    line-height: 1.45
}

th {
    z-index: 2;
    background: color-mix(in srgb,var(--panel-soft) 86%,var(--panel));
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .012em;
    color: color-mix(in srgb,var(--muted) 88%,var(--text))
}

tbody tr {
    transition: background-color var(--motion-fast) var(--ease-ui)
}

tbody tr:hover {
    background: color-mix(in srgb,var(--accent-soft) 18%,var(--panel))
}

.table-filter-row th {
    top: 41px;
    padding: 7px 8px;
    background: color-mix(in srgb,var(--panel-soft) 94%,var(--panel))
}

.table-column-search {
    min-height: 32px!important;
    border-radius: 7px;
    font-size: 11px;
    background: var(--panel)
}

.table-pager,html[data-daft-preset="b3REd6hhg"] .table-pager {
    padding: 13px 2px 1px;
    gap: 10px
}

.table-page-nav {
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel)
}

.table-page-nav .btn {
    min-height: 32px;
    border: 0;
    background: transparent
}

.table-page-label {
    font-size: 11.5px;
    color: var(--muted)
}

.table-size-select {
    border-radius: 8px
}

.badge {
    min-height: 23px;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 720;
    letter-spacing: .005em
}

.alert {
    border-radius: var(--radius-card);
    box-shadow: none;
    padding: 13px 14px;
    grid-template-columns: 32px minmax(0,1fr) 32px
}

.alert-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px
}

.alert-close {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0
}

.alert-close svg {
    width: 16px;
    height: 16px
}

.validation-summary,.binding-status {
    border-radius: var(--radius-card)
}

html[data-theme="dark"] .validation-summary.ok {
    border-color: color-mix(in srgb,var(--ok) 55%,var(--line));
    background: color-mix(in srgb,var(--ok) 11%,var(--panel))
}

html[data-theme="dark"] .validation-summary.error {
    border-color: color-mix(in srgb,var(--danger) 55%,var(--line));
    background: color-mix(in srgb,var(--danger) 11%,var(--panel))
}

html[data-theme="dark"] .blocked-access {
    border-color: color-mix(in srgb,var(--danger) 48%,var(--line));
    background: color-mix(in srgb,var(--danger) 9%,var(--panel))
}

html[data-theme="dark"] .blocked-access strong {
    color: #f0a39a
}

.empty-state {
    max-width: 760px;
    margin: 0 auto 20px;
    text-align: left;
    border-radius: var(--radius-shell);
    padding: 30px;
    box-shadow: none;
    background: linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--panel-soft) 55%,var(--panel)))
}

.empty-icon {
    margin: 0 0 16px;
    border-radius: 14px
}

.modal-backdrop {
    background: color-mix(in srgb,#182019 54%,transparent);
    backdrop-filter: blur(4px)
}

.modal-card {
    border-radius: var(--radius-shell);
    box-shadow: var(--shadow-float);
    padding: 30px 32px 34px
}

.modal-close {
    right: 16px;
    top: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    font-size: 0
}

.modal-close:hover {
    background: var(--panel-soft);
    border-color: var(--line)
}

.modal-close svg {
    width: 18px;
    height: 18px
}

.inline-details[open] .compact-form {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-float)
}

.message-preview summary,.browser-info summary,.feedback-create-card>summary,.inline-details>summary {
    border-radius: var(--radius-control)
}

.message-preview summary:hover,.browser-info summary:hover,.feedback-create-card>summary:hover,.inline-details>summary:hover {
    color: var(--text)
}

details>summary[aria-expanded="true"] {
    color: var(--text)
}

.asset-color-dot,.color-dot,.round-color-input {
    border-radius: 7px
}

.asset-inline-color input[type=color] {
    border-radius: 7px
}

.round-color-input {
    border-width: 1px;
    border-color: var(--line)
}

.feedback-message {
    border-radius: var(--radius-card);
    box-shadow: none
}

.feedback-image,.feedback-file {
    border-radius: var(--radius-control)
}

.app-toast {
    z-index: var(--z-toast);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    box-shadow: var(--shadow-float)
}

.editor-hostbar {
    box-shadow: none;
    backdrop-filter: saturate(1.08) blur(12px);
}

.editor-host-logo {
    border-radius: 9px
}

.editor-host-actions .btn,.editor-host-actions .icon-btn,.editor-host-actions .language-summary {
    border-radius: var(--radius-control);
    height: var(--pf-host-action-h)!important;
    min-height: var(--pf-host-action-h)!important;
    max-height: var(--pf-host-action-h);
    border: 0!important;
    box-shadow: none!important;
}

.editor-host-main {
    background: var(--bg)
}

@media(max-width: 1100px) {
    .container {
        width:min(100% - 36px,1240px)
    }

    .container:has(.asset-catalog-card),.container:has(.user-access-table),.container:has(.feedback-table),.container:has(.audit-table) {
        width: calc(100% - 36px)
    }

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

    .user-chip {
        min-width: 48px;
        width: 48px;
        max-height: 38px;
        justify-content: center
    }

    .user-chip-copy {
        display: none
    }
}

@media(max-width: 800px) {
    body.mobile-nav-locked {
        overflow:hidden
    }

    .topbar {
        box-shadow: 0 1px 0 var(--line)
    }

    .sidebar {
        top: 64px;
        width: min(286px,calc(100vw - 48px));
        box-shadow: var(--shadow-float);
        transition: transform var(--motion-base) var(--ease-ui)
    }

    .sidebar-scrim {
        position: fixed;
        inset: 64px 0 0;
        z-index: 54;
        display: block;
        border: 0;
        border-radius: 0;
        background: rgba(20,27,22,.42);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity var(--motion-base) var(--ease-ui),visibility var(--motion-base) var(--ease-ui)
    }

    body.mobile-sidebar-open .sidebar-scrim {
        opacity: 1;
        visibility: visible;
        pointer-events: auto
    }

    .layout>.main {
        min-height: calc(100dvh - 64px)
    }

    .container,.container:has(.asset-catalog-card),.container:has(.user-access-table),.container:has(.feedback-table),.container:has(.audit-table) {
        width: min(100% - 24px,1240px);
        padding: 22px 0 44px
    }

    .main {
        padding: 0
    }

    .page-heading,.project-heading,.section-heading,.toolbar {
        gap: 12px
    }

    .auth-wrap {
        min-height: calc(100dvh - 64px);
        padding: 24px 12px 42px
    }

    .auth-card {
        padding: 24px 20px
    }

    .project-content {
        padding: 22px
    }

    .project-hero {
        padding: 24px
    }

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

    .table-pager,html[data-daft-preset="b3REd6hhg"] .table-pager {
        display: flex;
        align-items: center;
        justify-content: flex-start
    }

    .table-count {
        width: 100%
    }

    .table-page-nav {
        order: 3
    }
}

@media(max-width: 520px) {
    h1 {
        font-size:27px
    }

    .top-actions {
        gap: 5px
    }

    .top-actions>.btn:not(.primary) {
        display: none
    }

    .language-summary {
        width: 48px;
        min-width: 48px
    }

    .stats-grid {
        grid-template-columns: 1fr
    }

    .row,.two-column {
        grid-template-columns: 1fr
    }

    .preset-accounts {
        grid-template-columns: repeat(2,1fr)
    }

    .modal-card {
        padding: 26px 20px 28px
    }
}

@media(min-width: 1600px) {
    :root {
        --sidebar:260px
    }

    .container {
        width: min(1360px,calc(100% - 64px))
    }

    .container:has(.asset-catalog-card),.container:has(.user-access-table),.container:has(.feedback-table),.container:has(.audit-table) {
        width: min(1640px,calc(100% - 64px))
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,*::before,*::after {
        animation-duration: .001ms!important;
        animation-iteration-count: 1!important;
        transition-duration: .001ms!important;
        scroll-behavior: auto!important
    }

    :where(.project-card,.asset-module-card,.captcha-tile):hover {
        transform: none!important
    }
}

/* Optional content-loading primitives for future asynchronous cards and tables. */
.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 7px;
    background: color-mix(in srgb,var(--line) 54%,var(--panel-soft));
    color: transparent!important;
    pointer-events: none
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg,transparent,color-mix(in srgb,var(--panel) 76%,transparent),transparent);
    animation: mooolab-skeleton 1.35s ease-in-out infinite
}

.skeleton-line {
    height: 12px
}

.skeleton-line+.skeleton-line {
    margin-top: 8px
}

.skeleton-line.short {
    width: 58%
}

.skeleton-block {
    min-height: 92px
}

@keyframes mooolab-skeleton {
    to {
        transform: translateX(100%)
    }
}

@media(prefers-reduced-motion:reduce) {
    .skeleton::after {
        display: none
    }
}


/* V4.21.0 editor-host language menu: one visible name column only. */
[data-editor-language-menu] .language-menu-panel { width: max-content; min-width: 0; }
[data-editor-language-menu] .language-option {
  display: flex;
  grid-template-columns: minmax(0,1fr);
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}
[data-editor-language-menu] .language-option > small,
[data-editor-language-menu] .language-option > b { display: none !important; }

/* ===== V4.21.0 platform shell runtime-state contract =====
   Runtime state rules must remain unlayered. The visual baseline below is also
   unlayered, so keeping only the older @layer layout collapse rule allowed the
   later .layout declaration to win and left the desktop navigation rail wide.
   A single effective-width variable now controls every authenticated page. */
body {
    --mooolab-sidebar-effective: var(--sidebar);
}

body.sidebar-collapsed {
    --mooolab-sidebar-effective: 72px;
}

.layout {
    grid-template-columns: var(--mooolab-sidebar-effective) minmax(0, 1fr);
    transition: grid-template-columns var(--motion-base, .2s) var(--ease-ui, ease);
}

@media (min-width: 801px) {
    body.sidebar-collapsed .sidebar {
        padding-inline: 10px;
    }

    body.sidebar-collapsed .nav-title,
    body.sidebar-collapsed .nav-label,
    body.sidebar-collapsed .nav-section-chevron {
        display: none !important;
    }

    body.sidebar-collapsed .nav-link,
    body.sidebar-collapsed .nav-section-toggle {
        justify-content: center;
        padding-inline: 9px;
    }

    body.sidebar-collapsed .nav-section-items {
        max-height: 0 !important;
        opacity: 0 !important;
        padding: 0 !important;
        pointer-events: none;
    }
}

@media (max-width: 800px) {
    body,
    body.sidebar-collapsed {
        --mooolab-sidebar-effective: var(--sidebar);
    }

    .layout {
        display: block;
        height: auto;
        transition: none;
    }
}


/* ===== V4.21.0 hosted GLB test entry hotfix ===== */
.editor-host-glb-test{gap:7px;white-space:nowrap}
.editor-host-glb-test.active,.editor-host-glb-test[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--text)}
@media(max-width:1180px){.editor-host-glb-test>span:last-child{display:none}.editor-host-glb-test{width:38px;min-width:38px;padding:0;display:grid;place-items:center}}

.editor-host-glb-test.warning{border-color:#c47b24;background:rgba(196,123,36,.12)}

/* ===== V4.25.9 explicit three-slot color mapping ===== */
.color-slot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 20px}
.color-slot-card{display:grid;grid-template-columns:34px minmax(0,1fr) minmax(140px,.8fr);align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}
.color-slot-card .color-slot-number{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--accent-soft);font-weight:800}
.color-slot-card span:nth-child(2){display:grid;gap:3px}.color-slot-card small{color:var(--muted)}
.asset-inline-slot-list,.asset-inline-component-list{display:grid;gap:6px;min-width:210px}
.asset-inline-slot,.asset-inline-component{display:grid;grid-template-columns:minmax(78px,1fr) minmax(110px,1.2fr);align-items:center;gap:7px}
.asset-inline-component{grid-template-columns:minmax(84px,1fr) 40px minmax(100px,1.2fr)}
.asset-inline-component input[type=color]{width:36px;height:30px;padding:2px;border-radius:8px}
.actions.compact{margin-top:8px;gap:6px}
@media(max-width:1100px){.color-slot-grid{grid-template-columns:1fr}.color-slot-card{grid-template-columns:34px minmax(0,1fr) minmax(130px,.8fr)}}

/* ===== Catalog color-slot administration ===== */
.asset-color-slot-table th:first-child,.asset-color-slot-table td:first-child{position:sticky;inset-inline-start:0;z-index:3;background:var(--surface);min-width:250px;width:250px}
.asset-color-slot-table thead th:first-child{z-index:5}
.asset-inline-slot-list,.asset-inline-slot-default-list{display:grid;gap:7px;min-width:220px;grid-auto-rows:40px;align-content:start}
.asset-inline-slot{grid-template-columns:34px minmax(150px,1fr)}
.asset-inline-slot-default{display:grid;grid-template-columns:34px 44px minmax(120px,1fr);align-items:center;gap:8px}
.asset-inline-slot-default input[type=color]{width:40px;height:34px;padding:2px;border-radius:8px}
.asset-slot-index{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:var(--accent-soft);font-weight:800;text-align:center}
.asset-inline-slot-default.is-empty{opacity:.5}
.asset-save-cell{vertical-align:top}
.asset-dirty-mark{display:block;margin-top:7px;font-size:12px;color:var(--accent-strong);font-weight:700}
.asset-color-invalid>td{background:color-mix(in srgb,#ef4444 15%,var(--surface))!important}
.asset-color-invalid-note{margin-top:8px;max-width:180px;color:#b42318;font-size:12px;line-height:1.45;font-weight:700}
.asset-catalog-toolbar{align-items:flex-end;gap:18px;flex-wrap:wrap}
.asset-catalog-filterbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-inline-start:auto}
.asset-catalog-filterbar label{display:grid;gap:5px;font-size:12px;color:var(--muted);font-weight:700}
.asset-catalog-filterbar select,.asset-catalog-filterbar input{min-width:170px}
.asset-catalog-pager{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:12px 0}
.asset-catalog-pager [data-page-status]{min-width:190px;text-align:center;font-weight:700}
.asset-page-btn{min-width:48px!important;height:44px!important;font-size:24px!important;padding:0 14px!important}
.asset-catalog-save-status{min-height:24px;margin:8px 0;font-size:13px;font-weight:700}
.asset-catalog-save-status.ok{color:#198754}.asset-catalog-save-status.error{color:#b42318}
.asset-color-slot-table tr.is-dirty>td{box-shadow:inset 0 1px 0 color-mix(in srgb,var(--accent) 34%,transparent),inset 0 -1px 0 color-mix(in srgb,var(--accent) 34%,transparent)}
@media(max-width:900px){.asset-catalog-filterbar{margin-inline-start:0;width:100%}.asset-catalog-filterbar label{flex:1}.asset-catalog-filterbar select,.asset-catalog-filterbar input{min-width:140px;width:100%}}


/* Theme first-paint stability: the external CSP-safe prepaint selects the token set before CSS. */
html[data-theme-prepaint="ready"],html[data-theme-prepaint="ready"] body{background-color:var(--bg);color:var(--text)}

/* ===== V4.26.16 0808b admin color-slot alignment ===== */
.asset-inline-slot,.asset-inline-slot-default{min-height:40px;height:40px;box-sizing:border-box;align-items:center}
.asset-inline-slot select,.asset-inline-slot-default input[type="text"],.asset-inline-slot-default input[type="number"]{height:36px;min-height:36px;margin:0;box-sizing:border-box}
.asset-inline-slot-default input[type="color"]{width:40px;height:36px;min-height:36px;margin:0;box-sizing:border-box}

/* ===== V4.28.6 HF-D2 language compact-width contract =====
   One visible language-name column. The popup width is driven by the longest
   label plus symmetric item padding; no secondary label/status column and no
   historical fixed minimum width. */
.language-menu-panel {
  display: grid;
  grid-template-columns: max-content;
  width: max-content;
  min-width: 0;
}
.language-menu-panel > .language-option {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  justify-self: stretch;
  justify-content: flex-start;
  white-space: nowrap;
  padding-left: 16px;
  padding-right: 16px;
}
.language-menu-panel > .language-option > small,
.language-menu-panel > .language-option > b { display: none !important; }

/* V4.28.6 RC6 Semantic Review workspace */
.semantic-review-dialog{width:min(1280px,96vw);height:min(860px,92vh);padding:0;border:1px solid var(--line,#dfe5dc);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 28px 90px #0004}.semantic-review-dialog::backdrop{background:#16201888}.semantic-review-dialog-bar{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid var(--line,#dfe5dc);background:#fff}.semantic-review-dialog iframe{display:block;width:100%;height:calc(100% - 48px);border:0;background:#f3f6ef}


/* ===== V4.28.6 RC6 HF-S1 inline Semantic 3D review ===== */
.asset-color-slot-table{min-width:1320px}
.asset-inline-3d-cell{vertical-align:top;padding:10px!important}
.asset-inline-3d-preview{width:228px;display:grid;gap:7px}
.asset-inline-3d-mount{position:relative;width:228px;height:156px;border:1px solid var(--line,#dfe5dc);border-radius:12px;overflow:hidden;background:var(--surface-soft,#f3f6ef)}
.asset-inline-3d-load{appearance:none;border:0;width:100%;height:100%;background:transparent;color:var(--text);display:grid;place-content:center;justify-items:center;gap:5px;padding:12px;cursor:pointer;text-align:center}
.asset-inline-3d-load>span{font-size:22px;line-height:1}.asset-inline-3d-load>strong{font-size:12px}.asset-inline-3d-load>small{font-size:10px;line-height:1.35;color:var(--muted);font-weight:500}
.asset-inline-3d-preview.is-active .asset-inline-3d-mount{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 25%,transparent)}
.asset-inline-3d-frame{display:block;width:100%;height:100%;border:0;background:#f3f6ef}
.asset-inline-semantic-edit{width:100%;justify-content:center}
.asset-color-slot-table tr.is-preview-active>td{background:color-mix(in srgb,var(--accent-soft) 22%,var(--surface))}
@media(max-width:900px){.semantic-review-dialog{width:96vw;height:94vh}.asset-color-slot-table th:first-child,.asset-color-slot-table td:first-child{min-width:230px;width:230px}.asset-inline-3d-preview,.asset-inline-3d-mount{width:208px}}


/* ===== Sarwtin V4.28.6 RC16 hosted editor + persistent shell closure (frozen behavior input) =====
   RC17 CSS Governance: Host Shell owns host header/actions and persistent navigation. */
.editor-host-actions .editor-host-animation,.editor-host-actions .editor-host-theme,.editor-host-actions .editor-host-undo,.editor-host-actions .editor-host-redo,.editor-host-actions .language-summary{width:var(--pf-host-action-size)!important;min-width:var(--pf-host-action-size)!important;padding:0!important;display:grid!important;place-items:center!important}
.editor-host-actions .editor-host-animation.active,.editor-host-actions .editor-host-animation[aria-pressed="true"]{background:var(--accent-soft)!important;color:var(--accent)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 48%,transparent)!important}

.editor-host-actions .btn:hover,.editor-host-actions .language-summary:hover{border:0!important}
.partial-nav-loading>.container{opacity:.72;transition:opacity .12s ease}
@media(max-width:760px){
  .editor-workbench-body{width:100vw!important;max-width:100vw!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important}
  .editor-hostbar{width:100%!important;max-width:100%!important;height:auto!important;min-height:104px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:48px 44px!important;gap:5px!important;padding:6px 8px!important;overflow:visible!important}
  .editor-host-left{grid-row:1!important;width:100%!important;display:grid!important;grid-template-columns:auto 36px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;min-width:0!important}
  .editor-host-left .btn{font-size:11px!important;width:auto!important;min-width:0!important;height:40px!important;min-height:40px!important;padding:0 8px!important;white-space:nowrap!important;border:0!important;background:var(--panel-soft)!important}
  .editor-host-left .btn::after{content:none!important;display:none!important}
  .editor-host-left .btn span:last-child{display:inline!important;font-size:11px!important}
  .editor-host-logo{width:36px!important;height:36px!important}
  .editor-host-left strong{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .editor-host-left small{display:none!important}
  .editor-host-actions{grid-row:2!important;width:100%!important;max-width:100%!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;flex-wrap:nowrap!important;overflow:visible!important}
  .editor-host-actions .editor-host-animation,.editor-host-actions .editor-host-theme,.editor-host-actions .editor-host-undo,.editor-host-actions .editor-host-redo,.editor-host-actions .language-summary{width:var(--pf-host-action-mobile)!important;min-width:var(--pf-host-action-mobile)!important;height:var(--pf-host-action-mobile)!important;min-height:var(--pf-host-action-mobile)!important;border-radius:var(--pf-host-radius-mobile)!important}
  .editor-host-actions .language-summary{display:grid!important;grid-template-columns:18px!important;place-items:center!important}
  .editor-host-actions .language-summary .language-chevron{display:none!important}
  .editor-host-actions .editor-host-export{height:var(--pf-host-action-mobile)!important;min-height:var(--pf-host-action-mobile)!important;padding:0 10px!important;white-space:nowrap!important}
  .editor-host-actions .editor-host-glb-test{display:none!important}
  .editor-host-main{min-width:0!important;width:100%!important;overflow:hidden!important}
  .editor-host-frame{width:100%!important;max-width:100%!important;min-width:0!important}
}


/* V4.29.1 UX-01 — Platform-level first-login Access Activation Center. */
.access-activation-center{
    position:relative;overflow:hidden;border:1px solid var(--line-strong);border-radius:30px;
    padding:clamp(28px,4vw,52px);background:
      radial-gradient(circle at 18% 8%,color-mix(in srgb,var(--accent) 11%,transparent),transparent 28%),
      linear-gradient(145deg,color-mix(in srgb,var(--panel) 96%,var(--accent) 4%),var(--panel));
}
.access-activation-center::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 0 68%,color-mix(in srgb,var(--accent) 3%,transparent));}
.activation-hero{position:relative;display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;gap:28px;max-width:1220px;margin:0 auto 28px;}
.activation-hero-brand{display:grid;place-items:center;min-width:0}
.activation-hero-logo-shell{display:grid;place-items:center;width:176px;min-height:74px;padding:10px 12px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 10px 28px color-mix(in srgb,#000 10%,transparent)}
.activation-hero-logo-shell img{display:block;width:100%;height:auto;object-fit:contain}
.activation-eyebrow{display:block;margin-bottom:8px;color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.14em;}
.activation-hero-copy h1{font-size:clamp(31px,3.2vw,46px);margin-bottom:12px;}
.activation-hero-copy>p{max-width:820px;margin:0;color:var(--muted);font-size:16px;line-height:1.7;}
.activation-hero-copy .activation-scope-note{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:12px;color:var(--muted);}
.activation-scope-note svg{width:15px;height:15px;flex:0 0 auto;color:var(--accent)}
.activation-method-grid{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:1220px;margin:0 auto 18px;}
.activation-method-card{border:1px solid var(--line);border-radius:18px;padding:24px;background:color-mix(in srgb,var(--panel-soft) 55%,var(--panel));box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 4%,transparent);}
.activation-method-head{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:18px;margin-bottom:20px;}
.activation-provider-icon{width:74px;height:66px;border:1px solid var(--line);border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--panel) 88%,transparent);}
.activation-provider-icon svg{width:33px;height:33px}.makerworld-provider{color:var(--text)}.patreon-provider{color:#ff625a}.patreon-symbol{font-size:31px;font-weight:900;letter-spacing:-.08em}
.activation-method-badge{display:inline-flex;align-items:center;min-height:31px;padding:5px 14px;border-radius:10px;background:var(--accent);color:#17200d;font-weight:800;font-size:16px;}
.activation-method-head p{margin:7px 0 0;color:var(--muted);font-size:12.5px;line-height:1.45;}
.activation-form{display:grid;gap:13px}.activation-form .field{margin:0}.activation-form label{font-size:12px}.activation-form input{min-height:46px;background:color-mix(in srgb,var(--bg) 36%,var(--panel));}
.activation-primary-action,.activation-outline-action{width:100%;min-height:46px;justify-content:center;margin-top:1px;font-weight:800;}
.activation-outline-action{border-color:var(--accent);color:var(--accent);background:transparent;}.activation-outline-action:hover{background:var(--accent-soft)}
.activation-card-footnote{display:flex;align-items:flex-start;gap:8px;margin:14px 0 0;color:var(--muted);font-size:11.5px;line-height:1.5;}.activation-card-footnote svg{width:15px;height:15px;flex:0 0 auto;color:var(--accent);margin-top:1px}
.activation-bound-state,.activation-step-note{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:13px;padding:14px;background:var(--panel);}.activation-bound-state p,.activation-step-note p{margin:3px 0 0;color:var(--muted);font-size:12px}.activation-bound-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent)}.activation-bound-icon svg{width:20px;height:20px}.activation-entitlement-meta{display:flex;gap:8px;margin-top:12px}.activation-debug-code{margin:10px 0;padding:10px 12px;border:1px solid var(--warn);border-radius:10px;background:color-mix(in srgb,var(--warn) 8%,var(--panel));font-size:12px}.activation-secondary-link{display:inline-flex;margin-top:12px;color:var(--muted);font-size:12px;text-decoration:underline;text-underline-offset:3px}
.access-activation-center .captcha-field{margin:0;padding:13px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel) 74%,transparent)}
.access-activation-center .captcha-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.access-activation-center .captcha-tile{min-height:48px}
.activation-steps{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr);align-items:center;gap:14px;max-width:1220px;margin:0 auto 14px;padding:17px 22px;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--panel-soft) 45%,var(--panel));}
.activation-step{display:flex;align-items:center;gap:13px;min-width:0}.activation-step-icon{width:42px;height:42px;flex:0 0 auto;border:1px solid var(--line-strong);border-radius:50%;display:grid;place-items:center;color:var(--accent);background:var(--panel)}.activation-step-icon svg{width:21px;height:21px}.activation-step div{display:grid;gap:3px}.activation-step strong{font-size:13px}.activation-step small{color:var(--muted);font-size:11.5px;line-height:1.35}.activation-step-arrow{width:17px;height:17px;color:var(--muted)}
.activation-later-note{display:flex;justify-content:center;align-items:center;gap:8px;color:var(--muted);font-size:12px;margin:19px auto;}.activation-later-note svg{width:15px;height:15px}
.activation-footer-actions{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:18px;border-top:1px solid var(--line);}.activation-later-link{color:var(--muted);font-weight:650;padding:10px 0}.activation-later-link:hover{color:var(--text)}.activation-manage-btn{border-color:var(--accent);}
.activation-collapsed{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:20px;max-width:980px;margin:34px auto;padding:28px;border:1px solid var(--line-strong);border-radius:22px;background:linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--panel-soft) 60%,var(--panel)));}.activation-collapsed-icon{width:64px;height:64px;border-radius:17px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent)}.activation-collapsed-icon svg{width:28px;height:28px}.activation-collapsed-copy h2{margin:0 0 6px}.activation-collapsed-copy p{margin:0;color:var(--muted);line-height:1.55}.activation-collapsed-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:980px){.activation-hero{grid-template-columns:150px minmax(0,1fr);gap:20px}.activation-hero-logo-shell{width:142px;min-height:62px;padding:8px 10px}.activation-method-grid{grid-template-columns:1fr}.activation-steps{grid-template-columns:1fr;gap:10px}.activation-step-arrow{display:none}.activation-collapsed{grid-template-columns:56px minmax(0,1fr)}.activation-collapsed-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:640px){.access-activation-center{border-radius:20px;padding:22px 16px}.activation-hero{grid-template-columns:1fr;text-align:start;gap:14px}.activation-hero-brand{justify-items:start}.activation-hero-logo-shell{width:132px;min-height:56px}.activation-hero-copy h1{font-size:30px}.activation-hero-copy>p{font-size:14px}.activation-method-card{padding:18px}.activation-method-head{grid-template-columns:58px minmax(0,1fr);gap:13px}.activation-provider-icon{width:58px;height:54px}.activation-method-badge{font-size:14px}.activation-steps{padding:15px}.activation-footer-actions{align-items:stretch;flex-direction:column-reverse}.activation-manage-btn{width:100%;justify-content:center}.activation-later-link{text-align:center}.activation-collapsed{grid-template-columns:1fr;margin:20px auto;padding:22px}.activation-collapsed-actions{grid-column:auto;flex-direction:column}.activation-collapsed-actions .btn{width:100%;justify-content:center}.access-activation-center .captcha-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* V4.29.2 First User Journey Closure / platform presentation governance. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.icon-btn.compact-action{width:38px;height:38px;min-width:38px;max-width:38px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);display:inline-grid;place-items:center;cursor:pointer;text-decoration:none}
.icon-btn.compact-action svg{width:18px;height:18px}.icon-btn.compact-action:hover{border-color:var(--line-strong);background:var(--panel-soft)}
.icon-btn.compact-action.danger{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 38%,var(--line));background:color-mix(in srgb,var(--danger) 5%,var(--panel))}
.icon-btn.compact-action.ok{color:var(--success)}.icon-btn.compact-action.primary{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}
.compact-actions{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}.compact-actions .inline-form{margin:0}.compact-edit-details>summary{list-style:none}.compact-edit-details>summary::-webkit-details-marker{display:none}
.delivery-message-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 8px}.message-preview pre[data-delivery-message]{max-width:420px;white-space:pre-wrap;overflow-wrap:anywhere}
.provider-official-logo{display:block;max-width:42px;max-height:42px;object-fit:contain}.patreon-official-logo{width:38px;height:38px}.makerworld-wordmark{font-size:17px;font-weight:850;letter-spacing:-.035em;color:var(--text);white-space:nowrap}
.activation-source-choice .activation-method-card{transition:border-color .18s ease,background-color .18s ease,transform .18s ease}.activation-source-choice .activation-method-card.selected{border-color:color-mix(in srgb,var(--accent) 66%,var(--line));background:color-mix(in srgb,var(--accent) 5%,var(--panel))}.activation-source-select{width:100%;justify-content:center;margin-bottom:14px}.activation-provider-panel[hidden]{display:none!important}.activation-provider-panel{display:grid;gap:12px;padding-top:4px}.action-verification-stage[hidden]{display:none!important}.action-verification-stage.verification-revealed{animation:v4292-verify-reveal .16s ease-out}@keyframes v4292-verify-reveal{from{opacity:.2;transform:translateY(-4px)}to{opacity:1;transform:none}}
.activation-help-link{font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.activation-progress{display:flex;align-items:center;justify-content:center;gap:10px;max-width:780px;margin:18px auto;color:var(--muted);font-size:12px}.activation-progress svg{width:15px;height:15px}.activation-later-link.btn{font-weight:650}
.consent-panel{border:1px solid var(--line);border-radius:14px;background:var(--panel-soft);padding:4px 16px;margin:6px 0 2px}.consent-row{display:flex;gap:12px;align-items:flex-start;padding:13px 0;line-height:1.45;min-width:0}.consent-row span{min-width:0;flex:1 1 auto;overflow-wrap:anywhere}.consent-row+.consent-row{border-top:1px solid var(--line)}.consent-row input[type="checkbox"]{width:18px!important;height:18px!important;min-width:18px!important;flex:0 0 18px!important;margin:2px 0 0!important;padding:0!important}
.project-access-card{display:grid;grid-template-columns:minmax(180px,28%) minmax(0,1fr);text-decoration:none;color:inherit}.project-access-card .project-card-actions{display:flex;justify-content:flex-end;margin-top:14px}.project-access-card .project-card-actions .btn{min-width:150px;justify-content:center}
.access-current-projects,.access-source-management{margin-bottom:20px}.access-current-projects>h2,.access-source-management>h2{margin-top:0}.access-project-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-top:1px solid var(--line)}.access-project-card:first-of-type{border-top:0}.access-project-card h3{margin:0 0 8px}.access-empty{display:flex;gap:14px;align-items:flex-start;padding:22px;border:1px dashed var(--line-strong);border-radius:14px;background:var(--panel-soft)}.access-empty>svg{width:24px;height:24px;color:var(--accent)}.access-empty p{margin:5px 0 0;color:var(--muted)}
@media(max-width:760px){.project-access-card{grid-template-columns:1fr}.project-access-card .project-card-actions{justify-content:stretch}.project-access-card .project-card-actions .btn{width:100%}.access-project-card{align-items:stretch;flex-direction:column}.activation-progress{flex-wrap:wrap}}

/* ========================================================================== 
   V4.29.4 — Topology / Brand / Project Access scoped presentation closure
   ========================================================================== */
.brand .brand-logo-shell{padding:0;background:transparent;border-radius:8px;overflow:visible;flex:0 0 86px;width:86px;height:34px}
.brand-logo-image{display:block;width:86px;height:34px;object-fit:contain;object-position:left center}
html[data-theme="dark"] .brand .brand-logo-shell{padding:2px 5px;background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.18)}
html[data-theme="dark"] .brand-logo-image{width:76px;height:30px;margin:auto}
.provider-brand-image{display:block;width:44px;height:44px;object-fit:contain}
.provider-makerworld-image{color:var(--text)}
.provider-patreon-image{color:var(--text)}
.activation-provider-icon{overflow:hidden}
.activation-provider-icon .provider-brand-image{width:46px;height:46px}

.project-card-primary-link{color:inherit;text-decoration:none;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background-color .18s ease}
.project-card-primary-link:hover{border-color:color-mix(in srgb,var(--accent) 42%,var(--line-strong));box-shadow:0 16px 42px color-mix(in srgb,#000 14%,transparent),0 0 0 1px color-mix(in srgb,var(--accent) 12%,transparent)}
.project-card-primary-link:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 72%,transparent);outline-offset:3px}
.project-card-primary-link .project-content{padding:28px 30px;display:flex;flex-direction:column;min-width:0}
.project-card-primary-link .project-content>p{line-height:1.7;margin:15px 0;color:var(--muted)}
.project-card-primary-link .project-card-actions{margin-top:auto;padding-top:15px}
.project-card-primary-link .project-card-actions .btn{pointer-events:none}
.project-cover{display:grid;place-items:center;min-height:210px;padding:22px}
.project-brand-logo{display:block;object-fit:contain}
.project-brand-logo-cover{width:min(72%,210px);height:min(72%,210px);filter:drop-shadow(0 12px 26px color-mix(in srgb,#000 18%,transparent))}
.project-brand-logo-hero{width:clamp(104px,12vw,164px);height:clamp(104px,12vw,164px)}
.project-hero-brand{display:grid;place-items:center;min-width:160px}
.editor-host-project-logo{width:42px;height:42px;object-fit:contain;border-radius:10px;background:transparent;border:0}

.access-page-heading{margin-bottom:22px}
.access-section{border:1px solid var(--line);border-radius:22px;padding:clamp(20px,2.6vw,30px);background:linear-gradient(145deg,color-mix(in srgb,var(--panel) 97%,var(--accent) 3%),var(--panel));box-shadow:var(--shadow-card);margin-bottom:22px}
.access-section-heading{margin-bottom:18px}.access-section-heading h2{margin:4px 0 6px;font-size:clamp(20px,2vw,25px)}.access-section-heading p{margin:0;color:var(--muted);line-height:1.55}
.access-section-kicker{display:block;color:var(--accent);font-size:10px;font-weight:850;letter-spacing:.13em}
.access-project-list{display:grid;gap:12px}
.access-project-card-link{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px;border:1px solid var(--line);border-radius:17px;background:color-mix(in srgb,var(--panel-soft) 48%,var(--panel));color:inherit;text-decoration:none;transition:border-color .18s ease,transform .18s ease,background-color .18s ease}
.access-project-card-link:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--accent) 42%,var(--line-strong));background:color-mix(in srgb,var(--accent) 4%,var(--panel))}
.access-project-card-link:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 70%,transparent);outline-offset:3px}
.access-project-identity{display:flex;align-items:center;gap:17px;min-width:0}.access-project-logo,.access-project-logo-fallback{width:62px;height:62px;flex:0 0 62px;border-radius:14px;display:grid;place-items:center;object-fit:contain;background:color-mix(in srgb,var(--accent) 7%,var(--panel));border:1px solid var(--line)}
.access-project-logo{padding:5px}.access-project-logo-fallback{font-weight:850;color:var(--muted)}.access-project-card-link h3{margin:0 0 7px;font-size:18px}.access-project-card-link .project-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:12px}.access-project-action{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;min-height:40px;padding:0 14px;border-radius:11px;background:var(--accent);color:#17200d;font-weight:800}.access-project-action svg{width:17px;height:17px}
.access-source-grid{max-width:none;margin:0;gap:16px}.access-source-card{padding:20px}.access-source-card .activation-method-head{grid-template-columns:68px minmax(0,1fr);margin-bottom:16px}.access-source-card .activation-provider-icon{width:68px;height:62px}.access-source-copy{min-width:0}.access-source-title{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.access-source-title>strong{font-size:17px}.access-source-copy>p{margin:6px 0 0!important}.access-source-status{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:3px 8px;border-radius:999px;background:var(--panel);border:1px solid var(--line);font-size:10px;font-weight:750;color:var(--muted)}.access-source-status svg{width:13px;height:13px}.access-source-status.is-active{color:var(--success);border-color:color-mix(in srgb,var(--success) 38%,var(--line));background:color-mix(in srgb,var(--success) 7%,var(--panel))}.access-source-card .activation-source-select{margin:0 0 12px;min-height:42px}.access-source-card.selected{box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 24%,transparent),inset 0 1px 0 color-mix(in srgb,#fff 4%,transparent)}

@media(max-width:760px){
  .brand .brand-logo-shell{width:76px;height:30px;flex-basis:76px}
  .brand-logo-image{width:76px;height:30px}
  .project-card-primary-link{grid-template-columns:1fr}.project-card-primary-link .project-content{padding:20px}.project-cover{min-height:190px}.project-brand-logo-cover{width:150px;height:150px}.project-card-primary-link .project-card-actions .btn{width:100%;justify-content:center}
  .access-project-card-link{align-items:stretch;flex-direction:column}.access-project-action{justify-content:center;width:100%}.access-source-grid{grid-template-columns:1fr}.project-hero-brand{min-width:110px}
}
@media(max-width:520px){
  .project-cover{min-height:150px}.project-brand-logo-cover{width:118px;height:118px}.project-hero{align-items:flex-start;flex-direction:column}.project-hero-brand{width:100%;justify-content:flex-start}.access-section{border-radius:17px;padding:18px}.access-project-identity{align-items:flex-start}.access-project-logo,.access-project-logo-fallback{width:54px;height:54px;flex-basis:54px}.activation-provider-icon .provider-brand-image{width:40px;height:40px}
}


/* ========================================================================== 
   V4.29.5 — exact provider source artwork + compact project CTA scoped hotfix
   ========================================================================== */
/* Provider branding policy: source pixels are authoritative. Scale/crop only; no redraw. */
.provider-brand-image{display:block;object-fit:contain;max-width:100%;max-height:100%}
.activation-provider-icon{width:68px;height:62px;padding:7px;border-radius:14px;overflow:hidden;background:var(--panel)}
.activation-provider-icon .provider-brand-image{width:100%;height:100%}
.makerworld-provider{background:#fff}
.makerworld-provider .provider-makerworld-image{width:50px;height:50px;border-radius:8px}
.patreon-provider{background:#050505}
.patreon-provider .provider-patreon-image{width:50px;height:50px}
.access-source-card .activation-method-head{grid-template-columns:68px minmax(0,1fr)}
.access-source-card .activation-provider-icon{width:68px;height:62px}

/* The whole project card is the navigation target; the CTA is visual reinforcement only. */
.project-card-primary-link .project-card-actions{margin-top:auto;padding-top:12px;align-items:center}
.project-card-primary-link .project-card-actions .btn{min-width:0!important;width:auto!important;min-height:42px;padding:0 17px;border-radius:12px;gap:8px;font-size:13px;line-height:1;box-shadow:none}
.project-card-primary-link .project-card-actions .btn svg{width:16px;height:16px}
.project-card-primary-link:hover .project-card-actions .btn{filter:brightness(1.015)}

@media(max-width:760px){
  .project-card-primary-link .project-card-actions{justify-content:flex-start}
  .project-card-primary-link .project-card-actions .btn{width:auto!important;min-width:132px!important;justify-content:center}
  .activation-provider-icon{width:58px;height:54px;padding:6px}
  .makerworld-provider .provider-makerworld-image,.patreon-provider .provider-patreon-image{width:44px;height:44px}
}
@media(max-width:520px){
  .project-card-primary-link .project-card-actions .btn{width:100%!important;min-width:0!important}
}


/* ==========================================================================
   V4.29.6 — My Projects CTA parity + Local Patreon fixture entitlement closure
   ========================================================================== */
/* Match /account/access project action: one-line text then arrow, no stacked icon/text. */
.project-card-primary-link .project-card-actions{display:flex;justify-content:flex-end;align-items:center;margin-top:auto;padding-top:12px}
.project-card-primary-link .project-card-cta{display:inline-flex;align-items:center;flex-direction:row;justify-content:center;gap:8px;white-space:nowrap;min-height:40px;padding:0 14px;border-radius:11px}
.project-card-primary-link .project-card-cta svg{width:17px;height:17px;flex:0 0 auto}
@media(max-width:760px){.project-card-primary-link .project-card-actions{justify-content:flex-start}.project-card-primary-link .project-card-cta{min-width:132px}}
@media(max-width:520px){.project-card-primary-link .project-card-cta{width:100%}}

/* ========================================================================== 
   V4.29.7 Phase 1 — 0818 Presentation Closure
   Source intent: editor(10).css + 前端修改0818.docx.
   This final owner preserves the requested one-row mobile host header without
   placing left/actions in the same grid cell. Desktop and mobile share the
   exact authored POMPON ZOO app/project SVG assets.
   ========================================================================== */
/* Editor language action: globe-only in the hosted editor (desktop + mobile). */
.editor-host-actions .editor-language-summary{
  width:var(--pf-host-action-size)!important;
  min-width:var(--pf-host-action-size)!important;
  height:var(--pf-host-action-h)!important;
  min-height:var(--pf-host-action-h)!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
}
.editor-host-actions .editor-language-summary .globe-icon,
.editor-host-actions .editor-language-summary .globe-icon svg{width:18px!important;height:18px!important}

/* User-console action is an icon button, not a text button. */
.editor-host-left .editor-host-back-icon{
  width:var(--pf-host-action-size)!important;
  min-width:var(--pf-host-action-size)!important;
  height:var(--pf-host-action-h)!important;
  min-height:var(--pf-host-action-h)!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:9px!important;
  white-space:nowrap!important;
}
 .editor-host-left .editor-host-back-icon svg{width:19px!important;height:19px!important}
.editor-host-actions .editor-host-user-center{
  width:var(--pf-host-action-size)!important;
  min-width:var(--pf-host-action-size)!important;
  height:var(--pf-host-action-h)!important;
  min-height:var(--pf-host-action-h)!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:var(--radius-control)!important;
}
.editor-host-actions .editor-host-user-center svg{width:19px!important;height:19px!important}
.editor-host-project-logo{width:42px!important;height:42px!important;object-fit:contain!important;border-radius:9px!important;background:transparent!important;border:0!important}

.project-brand-logo-cover{width:min(72%,210px)!important;height:min(72%,210px)!important}
.project-brand-logo-hero{width:clamp(104px,12vw,164px)!important;height:clamp(104px,12vw,164px)!important}

@media(max-width:760px){
  /* One-row host shell: [user | app logo | project title] [host actions]. */
  .editor-workbench-body{width:100vw!important;max-width:100vw!important;overflow:hidden!important}
  .editor-hostbar{
    width:100%!important;max-width:100%!important;height:56px!important;min-height:56px!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:44px!important;
    align-items:center!important;column-gap:5px!important;row-gap:0!important;padding:6px 8px!important;overflow:visible!important;
  }
  .editor-host-left{
    grid-column:1!important;grid-row:1!important;width:auto!important;min-width:0!important;
    display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;align-items:center!important;gap:5px!important;
  }
  .editor-host-project-logo{width:36px!important;height:36px!important}
  .editor-host-left>div{min-width:0!important;overflow:hidden!important}
  .editor-host-left strong{display:block!important;font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .editor-host-left small{display:none!important}
  .editor-host-actions{
    grid-column:2!important;grid-row:1!important;width:auto!important;max-width:none!important;min-width:0!important;
    display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:3px!important;flex-wrap:nowrap!important;overflow:visible!important;
  }
  .editor-host-actions .editor-host-theme,.editor-host-actions .editor-host-user-center,.editor-host-actions .editor-language-summary{
    width:36px!important;min-width:36px!important;height:38px!important;min-height:38px!important;padding:0!important;border-radius:var(--pf-host-radius-mobile)!important;
  }
  .editor-host-actions .editor-host-export{height:38px!important;min-height:38px!important;padding:0 8px!important;white-space:nowrap!important;font-size:11px!important}
  .editor-host-actions .editor-host-glb-test{display:none!important}
  .editor-host-main{min-width:0!important;width:100%!important;overflow:hidden!important}
  .editor-host-frame{width:100%!important;max-width:100%!important;min-width:0!important}
  .project-brand-logo-cover{width:150px!important;height:150px!important}
}
@media(max-width:560px){
  /* When the single row is too narrow, keep the authored app logo and hide only
     the POMPON ZOO title/subtitle block as requested. */
  .editor-host-left{grid-template-columns:36px!important}
  .editor-host-left>div{display:none!important}
}
@media(max-width:480px){
  .editor-host-actions .editor-host-theme,.editor-host-actions .editor-host-user-center,.editor-host-actions .editor-language-summary{width:34px!important;min-width:34px!important}
  .editor-host-actions .editor-host-export{padding-inline:6px!important;font-size:10px!important}
}

/* ========================================================================== 
   V4.29.9 — Editor Host Runtime Owner Closure
   User-console action is permanently icon-only. Runtime JS may update labels,
   but no language render may reintroduce arrow-left + visible text.
   ========================================================================== */
.editor-host-left .editor-host-back-icon{font-size:0!important;line-height:0!important}
.editor-host-left .editor-host-back-icon>span{display:none!important}
.editor-host-left .editor-host-back-icon svg{display:block!important}
@media(max-width:760px){
  .editor-host-left .editor-host-back-icon{width:38px!important;min-width:38px!important;padding:0!important;display:grid!important;place-items:center!important}
}


/* ==========================================================================
   V4.29.11 — Global Language Action Icon-only Closure
   Platform and hosted/editor language actions use the same globe-only visual.
   The details popup remains clickable; no chevron is rendered or reserved.
   ========================================================================== */
.language-summary.language-summary-icon{
  width:40px!important;min-width:40px!important;max-width:40px!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;
  padding:0!important;gap:0!important;display:grid!important;place-items:center!important;
}
.language-summary.language-summary-icon .globe-icon,
.language-summary.language-summary-icon .globe-icon svg{width:18px!important;height:18px!important}
@media(max-width:800px){
  .language-summary.language-summary-icon{width:40px!important;min-width:40px!important;max-width:40px!important}
}


/* S5-E L5 Fix3 — feedback UX + browser-local time closure. */
time[data-local-time][data-local-time-resolved]{font-variant-numeric:tabular-nums}
.required-note{font-size:12px;color:var(--muted);margin:0 0 12px}
.field-help-row{display:flex;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;align-items:flex-start;margin-block-start:8px;min-width:0;line-height:1.5}
.field-help-row>*{min-width:0;overflow-wrap:anywhere}
.field-help-row .field-length-status{margin-inline-start:auto;text-align:end;flex-shrink:0}
.field-length-status{font-weight:650}
.field-length-status.warn{color:var(--danger)}
.field-length-status.ok{color:var(--muted)}
.feedback-context-note{display:flex;gap:8px 14px;flex-wrap:wrap;padding:12px 14px;margin:8px 0 16px;border-radius:12px;background:var(--panel-soft);border:1px solid var(--line);font-size:12px}
.feedback-context-note strong{color:var(--text)}
.draft-status{min-height:20px;color:var(--muted);font-size:12px;margin:-8px 0 10px}
.feedback-upload-grid .field{min-width:0}
.attachment-file-list{display:grid;gap:7px;margin-top:8px}
.attachment-file-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel-soft);font-size:12px;min-width:0}
.attachment-file-copy{display:grid;gap:2px;min-width:0}
.attachment-file-item strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.attachment-file-item span{color:var(--muted);white-space:nowrap}
.attachment-preview-item>img{cursor:zoom-in}
.local-image-preview-overlay{position:fixed;inset:0;z-index:1300;background:rgba(18,24,19,.82);display:grid;place-items:center;padding:24px}
.local-image-preview-overlay>img{max-width:min(94vw,1400px);max-height:90vh;object-fit:contain;border-radius:16px;background:var(--panel-soft);box-shadow:0 20px 80px #0008}
.local-image-preview-close{position:fixed;top:22px;inset-inline-end:22px;width:44px;height:44px;border:1px solid #ffffff66;border-radius:12px;background:#fff;color:#1e281f;font:700 26px/1 sans-serif;cursor:pointer}
.feedback-file-picker{min-width:0}
[dir="rtl"] .feedback-file-picker,[dir="rtl"] .attachment-file-item{direction:rtl}
@media(max-width:800px){.feedback-upload-grid{grid-template-columns:1fr}.field-help-row{align-items:flex-start}}

/* S5-E L5 Fix4 — first-user password UX + readable official wordmark. */
.password-input-wrap{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:stretch;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.password-input-wrap:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
.password-input-wrap>input{min-width:0;width:100%;border:0!important;box-shadow:none!important;background:transparent!important;border-radius:11px 0 0 11px}
html[dir="rtl"] .password-input-wrap>input{border-radius:0 11px 11px 0}
.password-visibility-toggle{width:44px;min-width:44px;border:0;border-inline-start:1px solid var(--line);border-radius:0 11px 11px 0;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}
html[dir="rtl"] .password-visibility-toggle{border-inline-start:1px solid var(--line);border-radius:11px 0 0 11px}
.password-visibility-toggle:hover{color:var(--text);background:var(--panel-soft)}
.password-visibility-toggle svg{width:19px;height:19px}
.password-match-state{display:block;min-height:1.25em;margin-top:5px;font-size:12px;color:var(--muted)}
.password-match-state.is-match{color:var(--success)}
.password-match-state.is-mismatch{color:var(--danger)}


/* S5-E L5 Fix6 — feedback/upload/registration/brand presentation closure. */
.feedback-file-picker{min-height:48px;padding:5px 7px;gap:12px}
.feedback-file-picker .file-picker-name{font-size:12.5px;line-height:1.35}
.feedback-upload-grid{align-items:start}
html[data-theme="dark"] .activation-hero-logo-shell{background:rgba(255,255,255,.96);border-color:rgba(255,255,255,.16)}

/* ==========================================================================
   MoooLab V1.0.0 S5-E — Consolidated Browser L5 Closure
   Scope: native control isolation, consent interaction geometry, globe optical
   centering, admin navigation alignment, brand-settings cards and the shared
   menu + official wordmark cluster.  This is the final presentation owner for
   the consolidated candidate; do not split these concerns into parallel rules.
   ========================================================================== */

/* Native binary controls must not inherit text-field width/min-height/padding.
   This closes both Registration consent hit-area distortion and Admin Brand
   Settings radio controls expanding to full-row 42px fields. */
input[type="checkbox"],
input[type="radio"]{
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  max-height:18px!important;
  padding:0!important;
  border-radius:4px;
  box-sizing:border-box;
  flex:0 0 18px!important;
}
input[type="radio"]{border-radius:50%}

/* Registration consent is a native label/input interaction.  Keep the full
   label clickable, preserve keyboard focus, and make the input a real 18px
   control instead of a visually small control with a 42px layout box. */
.consent-row{
  position:relative;
  cursor:pointer;
  user-select:none;
}
.consent-row input[type="checkbox"]{
  position:relative;
  z-index:1;
  margin:2px 0 0!important;
  pointer-events:auto!important;
  align-self:flex-start;
}
.consent-row span{cursor:pointer}
.consent-row:focus-within{
  border-radius:8px;
  outline:2px solid color-mix(in srgb,var(--accent) 72%,transparent);
  outline-offset:2px;
}

/* One optical centering owner for every globe-only language action. */
.globe-icon{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  display:grid!important;
  place-items:center!important;
  line-height:0!important;
  flex:0 0 18px!important;
}
.globe-icon>svg,
.globe-icon svg{
  display:block!important;
  width:18px!important;
  height:18px!important;
  margin:0!important;
  transform:none!important;
}
.language-summary.language-summary-icon,
.editor-host-actions .editor-language-summary{
  line-height:0!important;
}

/* Top-left navigation/brand cluster: the menu action and official wide logo
   read as one coherent header group without redrawing or squashing the SVG. */
.brand-wrap{
  gap:6px!important;
  min-height:42px;
  padding:2px;
  border:1px solid var(--line);
  border-radius:12px;
  background:color-mix(in srgb,var(--panel-soft) 52%,var(--panel));
}
.brand-wrap .sidebar-toggle{
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  box-shadow:none!important;
}
.brand-wrap .sidebar-toggle:hover,
.brand-wrap .sidebar-toggle:focus-visible{
  background:var(--panel)!important;
}
.brand-wrap .brand{
  min-width:0;
  padding-inline-end:4px;
}
.brand-wrap .brand .brand-logo-shell{
  width:90px!important;
  min-width:90px!important;
  max-width:90px!important;
  height:36px!important;
  min-height:36px!important;
  flex:0 0 90px!important;
  display:grid!important;
  place-items:center!important;
  padding:2px 5px!important;
  border:1px solid color-mix(in srgb,var(--line) 72%,transparent)!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.96)!important;
  overflow:hidden!important;
}
.brand-wrap .brand-logo-image{
  width:80px!important;
  height:30px!important;
  margin:auto!important;
  object-fit:contain!important;
  object-position:center!important;
}
html[data-theme="dark"] .brand-wrap{
  background:color-mix(in srgb,var(--panel-soft) 68%,var(--panel));
}
html[data-theme="dark"] .brand-wrap .brand .brand-logo-shell{
  background:rgba(255,255,255,.96)!important;
  border-color:rgba(255,255,255,.14)!important;
}

/* Admin sidebar hierarchy uses fixed icon/label/chevron columns so second-level
   items and expandable section labels share one visual baseline. */
.nav-section-toggle{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 16px!important;
  align-items:center!important;
  column-gap:8px!important;
}
.nav-section-title{
  display:grid!important;
  grid-template-columns:19px minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:10px!important;
  min-width:0!important;
}
.nav-section-title>.nav-icon,
.nav-link.nav-child>.nav-icon{
  justify-self:center;
  align-self:center;
  margin:0!important;
}
.nav-section-title>.nav-label,
.nav-link.nav-child>.nav-label{
  min-width:0;
  line-height:1.25;
}
.nav-section-chevron{
  justify-self:end!important;
  align-self:center!important;
  margin:0!important;
}
.nav-section-items{
  padding-inline-start:17px!important;
  padding-inline-end:0!important;
}
.nav-link.nav-child{
  display:grid!important;
  grid-template-columns:19px minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:10px!important;
}
body.sidebar-collapsed .nav-section-toggle,
body.sidebar-collapsed .nav-link.nav-child{
  display:grid!important;
  grid-template-columns:1fr!important;
  place-items:center!important;
  padding-inline:9px!important;
}
body.sidebar-collapsed .nav-section-title{
  display:grid!important;
  grid-template-columns:19px!important;
  place-items:center!important;
}
body.sidebar-collapsed .nav-section-items{
  padding-inline:0!important;
}

/* Admin Brand Settings: explicit selection cards and independent logo/favicon
   radio groups.  Native radios stay small and no longer consume the whole row. */
.brand-variant-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:10px 0 24px;
}
.brand-variant-option{
  position:relative;
  min-width:0;
  min-height:118px;
  margin:0;
  padding:18px 14px 14px;
  display:grid;
  grid-template-rows:minmax(54px,1fr) auto;
  place-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel-soft);
  cursor:pointer;
  transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.brand-variant-option:hover{
  border-color:var(--line-strong);
  background:color-mix(in srgb,var(--panel-soft) 72%,var(--panel));
  transform:translateY(-1px);
}
.brand-variant-option:has(input:checked){
  border-color:color-mix(in srgb,var(--accent) 82%,var(--line-strong));
  background:color-mix(in srgb,var(--accent-soft) 74%,var(--panel));
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent);
}
.brand-variant-option:focus-within{
  outline:3px solid color-mix(in srgb,var(--accent) 52%,transparent);
  outline-offset:2px;
}
.brand-variant-option input[type="radio"]{
  position:absolute!important;
  inset-block-start:12px!important;
  inset-inline-start:12px!important;
  margin:0!important;
  z-index:1;
}
.brand-variant-option img{
  display:block;
  width:100%;
  max-width:150px;
  height:48px;
  object-fit:contain;
  object-position:center;
}
.brand-icon-option img{
  width:54px;
  max-width:54px;
  height:54px;
}
.brand-variant-option>span{
  font-size:12px;
  font-weight:700;
  color:var(--muted);
  line-height:1.2;
}
.brand-variant-option:has(input:checked)>span{color:var(--text)}

@media(max-width:900px){
  .brand-variant-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .brand-variant-grid{grid-template-columns:1fr}
  .brand-variant-option{min-height:104px}
  .brand-wrap{gap:4px!important}
  .brand-wrap .brand .brand-logo-shell{width:84px!important;min-width:84px!important;max-width:84px!important;flex-basis:84px!important}
  .brand-wrap .brand-logo-image{width:74px!important}
}


/* ========================================================================== 
   MoooLab Editor — language action final owner
   The language action is ONE 38x38 cell. Do not split the globe into a
   18px + 12px two-column grid; the old rule caused the globe to look shifted.
   ========================================================================== */
.editor-host-actions .editor-language-summary,
.editor-host-actions .language-summary.language-summary-icon{
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  padding:0!important;
  margin:0!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:1fr!important;
  align-items:center!important;
  justify-items:center!important;
  place-items:center!important;
  gap:0!important;
  line-height:0!important;
  box-sizing:border-box!important;
}
.editor-host-actions .editor-language-summary .globe-icon,
.editor-host-actions .language-summary.language-summary-icon .globe-icon,
.editor-host-actions .editor-language-summary .globe-icon svg,
.editor-host-actions .language-summary.language-summary-icon .globe-icon svg{
  width:18px!important;
  height:18px!important;
  margin:0!important;
  display:block!important;
  transform:none!important;
}
@media(max-width:760px){
  .editor-host-actions .editor-language-summary,
  .editor-host-actions .language-summary.language-summary-icon{
    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
  }
}

/* Component-owned header and viewport boundary.
   The hosted shell renders a full-size iframe for every catalogued editor.
*/
.editor-workbench-body[data-editor-header-owner] {
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
  grid-template-rows: minmax(0, 1fr) !important;
}
.editor-workbench-body[data-editor-header-owner] .editor-host-main {
  grid-row: 1 !important;
  width: 100% !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}
.editor-workbench-body[data-editor-header-owner] .editor-host-frame {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
}

/* ========================================================================== 
   MoooLab V1.3.0 — final platform presentation owner
   Transparent brand surfaces, theme-specific brand assets, feedback tables,
   same-page image review and deterministic admin hierarchy alignment.
   ========================================================================== */
.brand-wrap,
html[data-theme="dark"] .brand-wrap{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.brand-wrap .brand{
  padding-inline-end:0!important;
  background:transparent!important;
}
.brand-wrap .brand .brand-logo-shell,
html[data-theme="dark"] .brand-wrap .brand .brand-logo-shell,
.activation-hero-logo-shell,
html[data-theme="dark"] .activation-hero-logo-shell{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.themed-brand-logo{display:none!important}
html:not([data-theme]) .brand-logo-light,
html[data-theme="light"] .brand-logo-light{display:block!important}
html[data-theme="dark"] .brand-logo-dark{display:block!important}
.brand-wrap .brand-logo-image{
  width:90px!important;
  height:36px!important;
  object-fit:contain!important;
}
.activation-hero-logo-shell .themed-brand-logo{
  width:176px;
  max-width:100%;
  height:auto;
  object-fit:contain;
}

.nav-section{width:100%;margin:0!important}
.nav-section-toggle{
  width:100%!important;
  margin:0!important;
  padding-inline:10px!important;
}
.nav-section-items{padding-inline:0!important}
.nav-link.nav-child{padding-inline-start:39px!important;padding-inline-end:10px!important}
body.sidebar-collapsed .nav-link.nav-child{padding-inline:9px!important}

.feedback-table{width:100%;table-layout:fixed}
.feedback-table th,
.feedback-table td{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.feedback-table td>*:not(.compact-actions),
.feedback-cell-truncate{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.feedback-list-row[data-row-href]{cursor:pointer}
.feedback-list-row[data-row-href]:hover{background:color-mix(in srgb,var(--accent-soft) 38%,transparent)}
.feedback-row-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:6px!important;
  white-space:nowrap!important;
}
.feedback-row-actions form{display:inline-flex!important;margin:0!important;flex:0 0 auto!important}
.feedback-row-actions .icon-btn{flex:0 0 auto!important}

button.feedback-image{
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:start;
  cursor:zoom-in;
}
.feedback-lightbox{
  position:fixed;
  inset:0;
  z-index:1600;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(8,12,9,.88);
  backdrop-filter:blur(8px);
}
.feedback-lightbox[hidden]{display:none!important}
.feedback-lightbox-figure{position:relative;margin:0;display:grid;place-items:center;max-width:100%;max-height:100%}
.feedback-lightbox-image{display:block;max-width:min(92vw,1440px);max-height:84vh;object-fit:contain;border-radius:12px;box-shadow:0 24px 70px rgba(0,0,0,.42)}
.feedback-lightbox-caption{max-width:min(92vw,1100px);margin-top:10px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
.feedback-lightbox-close,
.feedback-lightbox-nav{position:fixed;z-index:1;display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(22,30,24,.78);color:#fff}
.feedback-lightbox-close{inset-block-start:18px;inset-inline-end:18px}
.feedback-lightbox-nav[data-feedback-lightbox-previous]{inset-inline-start:18px;top:50%;transform:translateY(-50%)}
.feedback-lightbox-nav[data-feedback-lightbox-next]{inset-inline-end:18px;top:50%;transform:translateY(-50%)}

@media(max-width:640px){
  .brand-wrap .brand .brand-logo-shell{width:84px!important;min-width:84px!important;max-width:84px!important;flex-basis:84px!important}
  .brand-wrap .brand-logo-image{width:84px!important;height:34px!important}
  .activation-hero-logo-shell .themed-brand-logo{width:132px}
  .feedback-lightbox{padding:12px}
  .feedback-lightbox-nav{width:40px;height:40px}
  .feedback-lightbox-nav[data-feedback-lightbox-prev]{inset-inline-start:8px}
  .feedback-lightbox-nav[data-feedback-lightbox-next]{inset-inline-end:8px}
}

/* ========================================================================
   MoooLab V1.4.0 — final platform layout owner / AI anti-rollback
   Comparable controls use symmetric geometry; feedback media remains a fixed
   thumbnail card and expands only inside the in-page gallery.
   ======================================================================== */
.nav-section-toggle,
.nav-link.nav-child{justify-content:flex-start!important;text-align:start!important}
.feedback-upload-grid{align-items:stretch!important}
.feedback-upload-field{display:flex!important;flex-direction:column!important;min-width:0!important}
.feedback-upload-panel{
  flex:1 1 auto!important;
  min-height:148px!important;
  padding:10px!important;
  border:1px dashed var(--accent)!important;
  border-radius:12px!important;
  background:color-mix(in srgb,var(--accent-soft) 32%,var(--panel))!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
}
.feedback-upload-panel .feedback-file-picker{flex:0 0 58px!important;height:58px!important;margin:0!important}
.feedback-upload-panel .file-picker-button{
  min-height:44px!important;
  height:44px!important;
  padding-block:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.feedback-upload-help{margin:0!important;line-height:1.45;color:var(--muted)}
.feedback-upload-panel .attachment-preview,
.feedback-upload-panel .attachment-file-list{margin-top:auto!important}
.feedback-message-identity{display:flex!important;align-items:center!important;gap:9px!important;min-width:0}
.feedback-message header .feedback-operation{
  display:inline-flex!important;
  align-items:center!important;
  min-height:24px!important;
  padding:2px 8px!important;
  border:1px solid var(--line)!important;
  border-radius:999px!important;
  background:var(--panel-soft)!important;
  color:var(--text)!important;
  font-size:11px!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
button.feedback-image{
  display:block!important;
  flex:0 0 140px!important;
  width:140px!important;
  max-width:140px!important;
  min-width:140px!important;
  height:132px!important;
  padding:0!important;
  border:1px solid var(--line)!important;
  border-radius:11px!important;
  background:var(--panel-soft)!important;
  overflow:hidden!important;
  color:inherit!important;
  text-align:start!important;
  cursor:zoom-in!important;
}
button.feedback-image img{
  display:block!important;
  width:140px!important;
  height:100px!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
}
button.feedback-image span{display:block!important;height:31px!important;padding:6px 8px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.feedback-lightbox-nav.previous{inset-inline-start:18px!important;top:50%!important;transform:translateY(-50%)!important}
.feedback-lightbox-nav.next{inset-inline-end:18px!important;top:50%!important;transform:translateY(-50%)!important}
.local-image-preview-overlay{z-index:1700!important}
.legal-page{width:min(100%,1080px)!important;margin-inline:auto!important;min-width:0!important}
.legal-page .page-heading,.legal-page .legal-copy{width:100%!important;max-width:none!important;min-width:0!important}
.legal-copy{padding:clamp(20px,4vw,48px)!important;overflow-wrap:anywhere!important;word-break:normal!important}
.legal-copy h1,.legal-copy h2,.legal-copy h3,.legal-copy p,.legal-copy li{max-width:78ch!important;white-space:normal!important}
@media(min-width:801px){
  body:has(.layout){overflow:hidden!important}
  .layout{height:calc(100dvh - 72px)!important;min-height:0!important;overflow:hidden!important}
  .layout>.main{height:100%!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important}
  .layout>.main>.container{height:auto!important;min-height:0!important;padding-bottom:32px!important}
}
@media(max-width:800px){
  .feedback-upload-grid{grid-template-columns:1fr!important}
  .feedback-upload-panel{min-height:142px!important}
  .feedback-lightbox-nav.previous{inset-inline-start:8px!important}
  .feedback-lightbox-nav.next{inset-inline-end:8px!important}
  .feedback-message header{align-items:flex-start!important}
  .feedback-message-identity{flex-wrap:wrap!important}
}

/* MoooLab V1.5.0 / PPZ 0822 UI closure. */
button:not(.btn):not(.icon-btn),
.nav-section-toggle{
  border:0!important;
  box-shadow:none!important;
}
.btn:not(.primary):not(.link):not(.active-filter):not(.is-active):not(.ok):not([aria-pressed="true"]):not([aria-selected="true"]):not([aria-current="page"]),
.icon-btn:not(.primary),
.language-summary,
.user-chip{
  border:1px solid var(--line-strong);
  background:var(--panel-soft);
  box-shadow:none;
}
.btn.link{
  border:0;
  background:transparent;
  box-shadow:none;
}
button:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible,
.language-summary:focus-visible,
.user-chip:focus-visible,
.nav-link:focus-visible,
.nav-section-toggle:focus-visible{
  outline:2px solid color-mix(in srgb,var(--accent) 72%,#fff)!important;
  outline-offset:2px!important;
}
.topbar{box-shadow:none!important}
.brand-wrap{min-height:42px!important;border:0!important;background:transparent!important;box-shadow:none!important}
.brand-wrap .brand .brand-logo-shell{
  width:112px!important;
  min-width:112px!important;
  max-width:112px!important;
  height:42px!important;
  min-height:42px!important;
  flex:0 0 112px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.brand-wrap .brand-logo-image{
  width:auto!important;
  max-width:112px!important;
  height:42px!important;
  max-height:42px!important;
  object-fit:contain!important;
}
html[data-theme="dark"] .brand-wrap .brand .brand-logo-shell{border:0!important;background:transparent!important}
.topbar .top-actions>.icon-btn,
.topbar .top-actions>.language-menu>.language-summary{
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  padding:0!important;
}
.topbar .user-chip{height:38px!important;min-height:38px!important}
.access-project-card-link{cursor:default!important;transform:none!important}
.access-project-card-link:hover{transform:none!important;border-color:var(--line)!important;background:color-mix(in srgb,var(--panel-soft) 48%,var(--panel))!important}
.access-project-authorization{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;min-width:150px;color:var(--muted);font-size:12px}
.access-source-grid{grid-auto-rows:1fr!important;align-items:stretch!important}
.access-source-card{height:100%!important;display:flex!important;flex-direction:column!important}
.access-source-card .activation-provider-panel{margin-top:auto!important}
.feedback-table-user{width:100%!important;min-width:0!important;table-layout:fixed!important}
.feedback-table-user th:nth-child(1),.feedback-table-user td:nth-child(1){width:7%!important}
.feedback-table-user th:nth-child(2),.feedback-table-user td:nth-child(2){width:48%!important}
.feedback-table-user th:nth-child(3),.feedback-table-user td:nth-child(3){width:15%!important}
.feedback-table-user th:nth-child(4),.feedback-table-user td:nth-child(4){width:15%!important}
.feedback-table-user th:nth-child(5),.feedback-table-user td:nth-child(5){width:15%!important}
.table-wrap:has(.feedback-table-user){overflow-x:hidden!important}
@media(max-width:760px){
  .brand-wrap .brand .brand-logo-shell{width:96px!important;min-width:96px!important;max-width:96px!important;flex-basis:96px!important}
  .brand-wrap .brand-logo-image{max-width:96px!important}
  .access-project-authorization{justify-content:flex-start;min-width:0}
  .feedback-table-user{font-size:11px!important}
}

/* ========================================================================
   MoooLab V1.6.0 — 20260823 platform foundation and access/feedback closure
   ======================================================================== */
:root{
  --accent:#c3da57;--accent-soft:#eff6cf;--accent-ink:#31410d;
  --accent-strong:#9bbb29;--focus:#9bbb29;--focus-contrast:#31410d;
  --personal:#2878d0;--merchant:#a82430;
}
html[data-theme="dark"]{
  --bg:#142019;--panel:#1d2b22;--panel-soft:#26372c;
  --text:#edf3eb;--muted:#b4c2b6;--line:#324438;--line-strong:#465d4e;
  --accent:#c3da57;--accent-soft:#39441f;--accent-ink:#243108;
  --accent-strong:#a9c73c;--focus:#c3da57;--focus-contrast:#c3da57;
  --personal:#62a9f3;--merchant:#ff747d;
}
.card,.stat,.table-wrap,.project-card,.empty-state,.auth-card,.access-section,
.activation-method-card,.access-project-card,.info-card,.model-card,.check-card,
.feedback-message,.feedback-upload-panel,.feedback-detail-head,.paste-upload,
.topbar,.brand-wrap,.user-chip,.language-summary,.nav-link,.nav-section-toggle{
  border:0!important;box-shadow:none!important;
}
.container>.card,.container>.access-section,.container>.feedback-detail-head{
  background:transparent!important;padding-inline:0!important;
}
.nav-title{display:none!important}
.nav-admin-overview{margin-top:22px!important}
.user-chip{min-width:max-content!important;height:38px!important;padding:0 11px!important;background:var(--panel-soft)!important}
.user-chip-copy strong{font-size:12px!important;max-width:150px}
.user-chip-copy small{display:none!important}
.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.badge.personal{background:color-mix(in srgb,var(--personal) 14%,var(--panel))!important;color:var(--personal)!important}
.badge.advanced{background:color-mix(in srgb,#6d28d9 12%,var(--panel))!important;color:#6d28d9!important}
html[data-theme="dark"] .badge.advanced{background:color-mix(in srgb,#c4b5fd 18%,var(--panel))!important;color:#c4b5fd!important}
@media(prefers-color-scheme:dark){html[data-theme="system"] .badge.advanced{background:color-mix(in srgb,#c4b5fd 18%,var(--panel))!important;color:#c4b5fd!important}}
.badge.merchant{background:color-mix(in srgb,var(--merchant) 15%,var(--panel))!important;color:var(--merchant)!important}
.access-current-projects{margin-bottom:24px!important}
.access-current-projects .project-list{margin:0!important}
.access-central-project-card{
  cursor:pointer!important;border:0!important;border-radius:22px!important;background:var(--panel)!important;
  transition:transform .16s ease,background-color .16s ease!important;
}
.access-central-project-card:hover{transform:translateY(-2px)!important;background:color-mix(in srgb,var(--accent) 4%,var(--panel))!important}
.access-central-project-card.is-inactive,.access-central-project-card.is-inactive:hover{cursor:not-allowed!important;transform:none!important;background:var(--panel)!important}
.access-central-project-card .access-project-authorization{justify-content:flex-start!important;min-width:0!important}
.project-cover.catalog-project,.project-hero.catalog-project{
  background:linear-gradient(145deg,
    color-mix(in srgb,var(--project-accent) 78%,var(--panel)),
    color-mix(in srgb,var(--project-accent) 92%,var(--panel-soft)))!important
}
.access-source-chip{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;background:var(--panel-soft);color:var(--text);font-size:11px;font-weight:780}
.access-source-grid{align-items:start!important}
.access-source-card{height:auto!important;align-self:start!important}
.access-source-card .activation-source-select{height:42px!important;min-height:42px!important}
.access-source-card .activation-provider-panel{margin-top:0!important}
.access-source-card:not(.selected) .activation-provider-panel[hidden]{display:none!important}
.feedback-upload-grid{grid-template-columns:minmax(0,1fr)!important}
.feedback-upload-panel{background:var(--panel-soft)!important}
.feedback-list-toolbar{align-items:center!important;min-height:44px!important}
.feedback-filter-form{display:flex!important;align-items:center!important;gap:8px!important}
.feedback-filter-form label{margin:0!important;line-height:40px!important}
.feedback-filter-form select{height:40px!important;min-height:40px!important;border-radius:10px!important}
.table-pager,.table-page-nav,.table-size-select,.feedback-filter-form select{border-radius:10px!important}
.table-page-nav>.btn,.table-pager .btn{height:38px!important;min-height:38px!important;border-radius:10px!important}
.feedback-thread{
  display:flex!important;flex-direction:column!important;gap:12px!important;padding:18px!important;
  border:0!important;border-radius:16px!important;background:var(--panel)!important;
}
.feedback-message{width:min(82%,760px)!important;padding:12px 14px!important;border-radius:14px!important;background:var(--panel-soft)!important}
.feedback-message.user{align-self:flex-end!important;background:color-mix(in srgb,var(--accent) 12%,var(--panel))!important}
.feedback-message.admin,.feedback-message.system{align-self:flex-start!important}
.feedback-message header{margin-bottom:7px!important}
.feedback-message-text{line-height:1.65!important}
.feedback-detail-head{margin-bottom:12px!important}
@media(max-width:800px){
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .access-central-project-card{grid-template-columns:1fr!important}
  .feedback-message{width:94%!important}
  .user-chip-copy{display:block!important}
  body[data-admin-shell-owner="PLATFORM"] .top-actions{min-width:0}
  body[data-admin-shell-owner="PLATFORM"] .user-menu{flex:0 1 110px;min-width:75px;max-width:clamp(75px,26vw,140px)}
  body[data-admin-shell-owner="PLATFORM"] .user-chip{min-width:0!important;width:100%;max-width:100%;gap:6px}
  body[data-admin-shell-owner="PLATFORM"] .user-chip-copy{min-width:0}
}

/* ========================================================================
   MoooLab V1.6.1 — Feedback alignment and no-wrap localization owner
   ======================================================================== */
.feedback-list-toolbar,
.table-pager,
.table-size-label,
.table-page-nav{
  display:flex!important;align-items:center!important;min-height:44px!important;
}
.feedback-list-toolbar,.table-pager{justify-content:space-between!important;gap:12px!important}
.table-size-label,.table-page-nav{gap:8px!important;white-space:nowrap!important;flex-wrap:nowrap!important}
.table-count{display:inline-flex!important;align-items:center!important;min-height:38px!important;white-space:nowrap!important}
.feedback-filter-form,.feedback-filter-form label,.feedback-filter-form select,
.feedback-list-toolbar .badge,.feedback-list-row .badge{
  white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;
}
@media(max-width:800px){
  .feedback-list-toolbar{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important}
  .table-pager{flex-wrap:wrap!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important}
  .table-count,.table-size-label,.table-page-nav{flex:0 0 auto!important;width:auto!important}
}

/* MoooLab Local V1.7.0 — authoritative Local build identity. */
.local-version-badge{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:26px;padding:4px 9px;
  border:1px solid color-mix(in srgb,var(--text) 12%,transparent);border-radius:999px;background:var(--panel-soft);
  color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.055em;line-height:1;white-space:nowrap;word-break:keep-all;
}
@media(max-width:520px){.local-version-badge{font-size:9px;padding-inline:6px}}
@media(max-width:420px){.local-version-badge{font-size:8px;padding-inline:5px}}

@media(max-width:520px){
  .topbar:has(> .top-actions > .user-menu){gap:8px}
  .topbar:has(> .top-actions > .user-menu) > .brand-wrap,
  .topbar .brand-wrap:has(> .sidebar-toggle) > .brand{flex:none}
  .topbar .top-actions:has(> .user-menu){flex:1 1 auto;justify-content:flex-end}
  .topbar .top-actions:has(> .user-menu) > .language-menu{flex:none}
  .topbar .top-actions > .user-menu{flex:0 1 auto;min-width:38px;max-width:180px}
  .topbar .user-menu > .user-chip{min-width:0!important;width:100%;max-width:100%;gap:6px;padding-inline:6px!important}
  .topbar .user-menu .user-chip-chevron{flex-shrink:0}
  .topbar .user-menu .user-chip-copy strong{
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
    max-width:none;line-height:1.2;white-space:normal;overflow-wrap:anywhere;
  }
}
@media(max-width:350px){
  .topbar .top-actions > .user-menu{flex:0 0 38px}
  .topbar .user-menu > .user-chip{padding:0!important}
  .topbar .user-menu .user-chip-copy{display:none!important}
}

/* On short headers, keep the build label under the logo and the actions on one line. */
@media (max-width:480px) {
  .topbar:has(> .brand-wrap > .local-version-badge) {
    column-gap: 6px;
  }
  .brand-wrap:has(> .local-version-badge) {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: 32px 20px;
    justify-items: center;
    gap: 0 4px !important;
    flex-shrink: 0;
  }
  .brand-wrap:has(> .local-version-badge) > .sidebar-toggle { grid-row: 1 / 3; }
  .brand-wrap:has(> .local-version-badge) > .brand { grid-row: 1; }
  .brand-wrap > .local-version-badge { grid-row: 2; min-height: 18px; padding-block: 1px; }
  .brand-wrap:has(> .local-version-badge) .brand-logo-shell {
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    flex-basis: 84px !important;
    height: 32px !important;
    min-height: 32px !important;
  }
  .brand-wrap:has(> .local-version-badge) .brand-logo-image {
    max-width: 84px !important;
    height: 32px !important;
  }
}

@media (480px < width <= 520px){
  .topbar:has(> .top-actions > .user-menu) > .brand-wrap:has(> .sidebar-toggle):has(> .local-version-badge){
    display:grid;grid-template-columns:auto minmax(96px,max-content);gap:0 4px!important;
  }
  .topbar:has(> .top-actions > .user-menu) > .brand-wrap:has(> .sidebar-toggle):has(> .local-version-badge) > .sidebar-toggle{grid-area:1 / 1 / span 2}
  .topbar:has(> .top-actions > .user-menu) > .brand-wrap:has(> .sidebar-toggle):has(> .local-version-badge) > .brand{grid-area:1 / 2;justify-self:center}
  .topbar:has(> .top-actions > .user-menu) > .brand-wrap:has(> .sidebar-toggle):has(> .local-version-badge) > .local-version-badge{
    grid-area:2 / 2;justify-self:center;min-height:20px;padding:2px 6px;font-size:10px;
  }
}

/* ========================================================================
   MoooLab Local V1.8.1 — inherited account grid, settings switch and feedback geometry
   ======================================================================== */
.preset-accounts{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  align-items:stretch;
}
.preset-account{
  width:100%;min-width:0;min-height:42px!important;padding:8px 6px!important;
  display:grid;place-items:center;text-align:center;line-height:1.2;
  white-space:normal;overflow-wrap:anywhere;
}
.system-setting-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;
}
.version-power-toggle{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.version-power-control{
  display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line-strong);
  border-radius:12px;background:var(--panel-soft);color:var(--muted);
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;
}
.version-power-control svg{width:20px;height:20px}
.version-power-toggle:hover .version-power-control{border-color:var(--accent);color:var(--text)}
.version-power-input:checked+.version-power-control{
  border-color:var(--accent);background:var(--accent);color:#1f291b;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent);
}
.version-power-input:focus-visible+.version-power-control{outline:3px solid color-mix(in srgb,var(--accent) 35%,transparent);outline-offset:3px}
.feedback-table.admin{width:100%!important;min-width:0!important;table-layout:fixed!important}
@media(max-width:1024px){.feedback-table.admin{min-width:960px!important}}
.feedback-table.admin .feedback-col-number{width:11%}
.feedback-table.admin .feedback-col-title{width:auto}
.feedback-table.admin .feedback-col-status{width:9%}
.feedback-table.admin .feedback-col-creator{width:11%}
.feedback-table.admin .feedback-col-date{width:8.5%}
.feedback-table.admin .feedback-col-actions{width:8%}
.feedback-table.admin .feedback-actions-head,
.feedback-table.admin .feedback-actions-cell{
  position:sticky;inset-inline-end:0;text-align:center;background:var(--panel);z-index:2;
  box-shadow:-1px 0 0 var(--line);
}
.feedback-table.admin .feedback-actions-head{z-index:3}
.feedback-table.admin .feedback-row-actions{justify-content:center!important}
@media(max-width:520px){.preset-accounts{grid-template-columns:repeat(2,minmax(0,1fr))!important}.system-setting-row{gap:12px}}
@media(max-width:360px){.preset-accounts{grid-template-columns:1fr!important}}

/* MoooLab Local V1.8.1 — complete Coloring V1.6 ΔE threshold editor. */
.delta-e-settings-form{
  display:grid;grid-template-columns:repeat(4,minmax(150px,1fr)) auto;
  align-items:end;gap:12px;width:100%;
}
.delta-e-settings-form .field{min-width:0}
.delta-e-settings-form input{width:100%}
@media(max-width:1100px){
  .delta-e-settings-form{grid-template-columns:repeat(2,minmax(160px,1fr))}
  .delta-e-settings-form .btn{justify-self:start}
}

/* Help entries reuse the Platform feedback workflow and existing card tokens. */
.feedback-help-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-5,20px)}
.feedback-help-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.feedback-help-card h2,.feedback-help-card p{margin:0}
.feedback-help-card p{flex:1}
.feedback-help-icon{width:30px;height:30px;color:var(--accent)}
@media(max-width:760px){.feedback-help-grid{grid-template-columns:1fr}}

/* Export center: shared platform tokens, scoped to avoid editor regressions. */
@layer components {
.ec-page [hidden]{display:none!important}
.ec-toolbar,.ec-actions,.ec-projects{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ec-toolbar{margin:18px 0;align-items:end}.ec-toolbar label{display:grid;gap:5px;font-size:13px}
.ec-toolbar input,.ec-toolbar select{min-height:40px;max-width:100%}.ec-toolbar input[type=search]{min-width:210px}
.ec-status-message{min-height:24px;margin:12px 0;white-space:pre-line}.ec-error{color:var(--danger)}
.ec-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}
.ec-table{width:100%;border-collapse:collapse}.ec-table th,.ec-table td{padding:16px;text-align:start;border-bottom:1px solid var(--line);vertical-align:middle}
.ec-table th{font-size:12px;color:var(--muted);background:var(--panel-soft)}.ec-table tr:last-child td{border-bottom:0}
.ec-project-cell{width:110px;white-space:nowrap}.ec-file{display:flex;align-items:center;gap:16px;min-width:290px}.ec-file-copy{min-width:0;overflow-wrap:anywhere}.ec-file-copy strong{display:block}.ec-file-copy small{color:var(--muted)}
.ec-preview{width:100px;height:100px;flex:0 0 100px;display:grid;place-items:center;background:var(--panel-soft);border:1px solid var(--line);border-radius:12px;overflow:hidden}.ec-preview img{width:100%;height:100%;object-fit:contain}.ec-preview svg{width:30px;height:30px;color:var(--muted)}
.ec-icon-button{display:inline-grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);cursor:pointer}.ec-icon-button:hover{background:var(--panel-soft)}.ec-icon-button svg{width:19px;height:19px}.ec-icon-button:disabled{cursor:wait;opacity:.55}
.ec-badge{display:inline-block;border-radius:999px;padding:5px 10px;font-size:12px;background:var(--panel-soft);white-space:nowrap}.ec-badge-valid{color:var(--ok)}.ec-badge-expired,.ec-badge-generating{color:var(--warn)}.ec-badge-archived{color:color-mix(in srgb,var(--muted) 85%,var(--text))}
.ec-empty{text-align:center;padding:42px!important;color:var(--muted)}
.ec-dialog{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:24px;width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;box-shadow:var(--shadow)}.ec-dialog::backdrop{background:rgb(0 0 0 / .4)}.ec-dialog h2{margin:0 0 12px}.ec-dialog p{line-height:1.6;overflow-wrap:anywhere}
.ec-confirm-actions{display:flex;direction:ltr;gap:10px;flex-wrap:wrap;margin-top:20px}.ec-confirm-actions .btn{flex:1}.ec-verification{padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--panel-soft);min-height:80px}.ec-verification p{margin:0 0 10px}.ec-verification-host{min-height:30px}.ec-verification label{display:flex;align-items:center;gap:8px}

.ec-projects{margin:18px 0}.ec-projects button{text-align:start;min-width:150px}.ec-projects [aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft)}.ec-projects small{display:block;font-size:11px;color:var(--muted)}
.ec-tier-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;direction:ltr}.ec-tier{padding:22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}html[dir=rtl] .ec-tier{direction:rtl}.ec-tier h3{margin:0 0 18px}.ec-tier .ec-field{display:grid;gap:6px;margin:14px 0}.ec-tier .ec-field small{color:var(--muted)}.ec-number{display:flex;align-items:center;gap:10px}.ec-number input{width:120px;min-height:40px}.ec-unlimited{display:flex;align-items:center;gap:8px}.ec-savebar{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin-top:20px;padding:16px;background:var(--panel-soft);border-radius:var(--radius)}.ec-savebar .ec-actions{direction:ltr}
.ec-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px;margin:20px 0}.ec-metric{background:var(--panel);border:1px solid var(--line);padding:18px;border-radius:var(--radius)}.ec-metric span{display:block;color:var(--muted);font-size:13px}.ec-metric strong{display:block;margin-top:10px;font-size:24px}
@media(max-width:680px){.ec-tier-grid{grid-template-columns:1fr}.ec-toolbar label{flex:1;min-width:140px}.ec-dialog .ec-confirm-actions{flex-direction:column}.ec-file{min-width:235px}.ec-table th,.ec-table td{padding:10px}.ec-savebar .ec-actions{width:100%}.ec-savebar .ec-actions .btn{flex:1}}
@media(max-width:680px){
  .ec-page[data-mode="account"] .ec-toolbar input[type=search]{min-width:0}
  .ec-page[data-mode="account"] .ec-toolbar label:has(.ml-date-field){min-width:min(100%,12rem)}
  .ec-page[data-mode="account"] td.ec-empty { padding:12px!important; }
}
}

/* Archive lifetime and its unlimited option form one visible group. */
.ec-archive-field{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:1rem;align-items:center}.ec-archive-field>label:first-child{grid-column:1/-1}.ec-archive-field .ec-unlimited{margin:0;display:flex;align-items:center;gap:.5rem}.ec-archive-field .ec-number{min-width:0}@media(max-width:700px){.ec-archive-field{grid-template-columns:1fr}.ec-archive-field>label:first-child{grid-column:auto}}

/* Account/navigation successor: global narrow language-menu rules are unchanged. */
.user-nav-group{padding:16px 0 20px}.user-nav-group+.user-nav-group{border-top:1px solid var(--line)}
.user-nav-group h2{font-family:inherit;font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--muted);padding:0 18px;margin:4px 0 18px}
.layout.no-sidebar{grid-template-columns:minmax(0,1fr)}.layout.no-sidebar .sidebar-scrim{display:none}
.account-management{max-width:1280px;margin-inline:auto}.account-management h1,.account-management h2,.ac-nickname{font-family:var(--font-ui,system-ui,sans-serif);letter-spacing:-.02em}
.ac-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.ac-card{padding:30px;border:1px solid var(--line);border-radius:16px;background:var(--panel);display:flex;flex-direction:column;align-items:stretch;gap:18px;min-width:0}
.ac-title{display:flex;gap:14px;align-items:center}.ac-title h2{font-size:20px;margin:0}.ac-emblem{width:42px;height:42px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;background:var(--accent-soft);color:var(--accent)}.ac-emblem svg{width:24px;height:24px}
.ac-nickname{font-size:22px;font-weight:650;overflow-wrap:anywhere}.ac-card p{margin:0;line-height:1.7}.ac-rule{margin-top:auto!important;padding-top:20px;border-top:1px solid var(--line)}.ac-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ac-actions .muted{font-size:12px}
/* Prefer Korean word boundaries while retaining emergency wrapping for a
   single token wider than the available line (including narrow screens). */
:lang(ko) .account-management p,:lang(ko) .auth-card p,:lang(ko) .auth-card .consent-row>span{word-break:keep-all;overflow-wrap:anywhere}
.ac-card label,.ac-dialog label{display:grid;gap:8px}.ac-card input,.ac-card select,.ac-dialog input{width:100%;min-width:0}.ac-themes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.ac-themes .btn{padding-inline:8px}.ac-themes [aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft)}.ac-card>.btn{align-self:flex-start}
.ac-legal-links{border:1px solid var(--line);border-radius:10px;overflow:hidden}.ac-legal-links a{display:flex;align-items:center;justify-content:space-between;padding:16px;gap:12px}.ac-legal-links a+a{border-top:1px solid var(--line)}.ac-legal-links a:hover{background:var(--panel-soft)}
.ac-dialog{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:16px;width:min(520px,calc(100vw - 32px));padding:24px;max-height:calc(100vh - 32px);overflow:auto}.ac-dialog::backdrop{background:#0006}.ac-dialog-title{display:flex;align-items:center;justify-content:space-between;gap:20px}.ac-dialog-title h2{font-family:inherit;margin:0;font-size:22px}.ac-dialog form,.ac-dialog #acCodeArea{display:grid;gap:16px}.ac-dialog #acCodeArea[hidden]{display:none}.ac-dialog .ac-actions{direction:ltr}.ac-error{color:var(--danger,#c54d46)}
.legal-page{width:100%;max-width:960px;margin-inline:auto}.legal-page h1,.legal-copy h1,.legal-copy h2,.legal-copy h3{font-family:var(--font-ui,system-ui,sans-serif);letter-spacing:normal}.legal-copy{padding:clamp(24px,4vw,48px);line-height:1.85;overflow-wrap:anywhere}.legal-copy>h1:first-child{font-size:26px}.legal-copy h2{font-size:21px;margin-top:2em}.legal-copy p{max-width:80ch}
@media(max-width:960px){.ac-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:540px){.ac-card{padding:20px}.ac-themes{grid-template-columns:minmax(0,1fr)}}

@media(min-width:981px){body.sidebar-collapsed .user-nav-group h2{display:none}}

/* Shared icon + label controls. The whole control stays together. */
.account-management .btn,.ml-edit-dialog .btn,.btn.with-lucide{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
.account-management .btn>svg,.account-management .btn>[data-lucide],.btn.with-lucide>svg{flex:0 0 auto;width:18px;height:18px;margin:0}
.ac-themes .btn{min-height:44px}.ac-themes .btn>span{flex:0 0 auto}
.ac-actions>#acEdit{flex:0 0 auto}.ac-actions>#acAvailability{min-width:0}
.ml-edit-dialog{box-sizing:border-box;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:16px;width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:auto}
.ml-edit-dialog::backdrop{background:#0008}
.ml-edit-dialog>header{padding:20px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--panel);z-index:2}
.ml-edit-dialog h2{margin:0;font:600 21px/1.5 var(--font-ui,system-ui,sans-serif);overflow-wrap:anywhere}
.ml-edit-dialog form>fieldset{border:0;margin:0;padding:20px 24px;border-bottom:1px solid var(--line);min-width:0}
.ml-edit-dialog legend{font-weight:600;padding-top:16px}.ml-edit-dialog .actions{position:sticky;bottom:0;padding:16px 24px;margin:0;background:var(--panel);border-top:1px solid var(--line);z-index:2;display:flex;gap:12px;direction:ltr}
.ml-dialog-error{margin:16px 24px;color:var(--danger)}

/* KISS: device summaries and quiet progressive detail. */
.device-list{display:grid;gap:16px}.device-card h2{display:flex;align-items:center;gap:10px;font-family:inherit;font-size:18px}.device-card dd{margin:4px 0 16px}.device-agent{overflow-wrap:anywhere}.help-faq details{padding:14px 0;border-bottom:1px solid var(--line)}.help-faq details:last-child{border-bottom:0}.help-faq summary{cursor:pointer;font-weight:600}.help-faq p{max-width:76ch}

.table-search-toolbar{display:flex;align-items:center;gap:10px;margin:16px 0;flex-wrap:wrap}.table-search-toolbar>input{flex:1;min-width:160px}.table-search-toolbar>select{width:auto;max-width:240px}.table-empty-notice{padding:16px}.table-filter-row[hidden]{display:none!important}.ml-edit-dialog>input[type=file]{margin:16px;max-width:calc(100% - 32px)}

.log-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0}.log-filters label{display:grid;gap:8px;min-width:160px;flex:1}.audit-details pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:70ch;max-height:55vh;overflow:auto}.ml-edit-dialog input[readonly]{opacity:.8}

.ec-trend-panel{margin:24px 0}.ec-trend-bars{display:flex;align-items:end;gap:3px;height:140px;padding:10px;border-bottom:1px solid var(--line)}.ec-trend-bar{flex:1;min-height:2px;background:var(--accent);border-radius:3px 3px 0 0}.ec-trend-panel details{margin:16px 0}.ec-empty>.btn{display:table;margin:12px auto}

@media (max-width:680px) {
  .ec-page[data-mode="account"] .ec-table:has(td.ec-empty) { min-width:0; }
  .ec-page[data-mode="account"] .ec-table:has(td.ec-empty) > thead { display:none; }
  .ec-page[data-mode="account"] td.ec-empty {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:8px;
    text-align:center;
  }
  .ec-page[data-mode="account"] td.ec-empty > .btn {
    display:inline-flex;
    max-width:100%;
    margin:0;
    white-space:normal;
  }
}

.ml-edit-dialog form>.row,.ml-edit-dialog form>.field,.ml-edit-dialog form>.muted{margin:20px 24px}.ml-edit-dialog form input[type=checkbox]{width:22px;height:22px;min-height:0}

/* Shared close control: physical top-right also in RTL, visible in both themes. */
.ml-dialog-close,.modal-close,.feedback-lightbox-close{position:absolute;inset-inline:auto;left:auto;right:12px;top:12px;width:40px;height:40px;min-height:40px;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--panel-soft);color:var(--text);display:inline-flex;align-items:center;justify-content:center;font:700 28px/1 system-ui;z-index:6;cursor:pointer}
.ml-dialog-close:hover:not(:disabled),.modal-close:hover,.feedback-lightbox-close:hover{background:var(--panel);color:var(--text);border-color:var(--muted)}
.ml-dialog-close:focus-visible,.modal-close:focus-visible,.feedback-lightbox-close:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.ml-dialog-close:disabled{opacity:.55;cursor:wait}
dialog:has(.ml-dialog-close)>h2,dialog:has(.ml-dialog-close)>header h2,.modal-card:has(.modal-close)>h2,.modal-card:has(.modal-close)>header h2,.gallery-dialog .gallery-panel>h2,.ac-dialog-title h2{padding-right:44px}
dialog.ml-date-dialog:has(.ml-dialog-close){padding-top:56px}

/* Human verification stays within the active form on narrow screens. */
.human-check{max-width:100%;min-width:0;overflow-wrap:anywhere}.human-check p{margin:8px 0;color:var(--muted,#66716b);font-size:.9rem}.human-dialog{width:min(420px,calc(100vw - 32px))}.human-dialog .btn{margin:8px 8px 0 0}[data-human-result]{color:var(--danger,#b42318);font-size:.9rem}[data-human-result]:empty{display:none}[aria-busy="true"] button[type="submit"]{cursor:progress}

/* Variable content remains readable by mouse, keyboard and touch. */
.feedback-table .feedback-cell-truncate,
.feedback-table .feedback-cell-truncate>*{
  white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;
}
.feedback-table.admin .feedback-id-cell,
.feedback-table.admin .feedback-id-cell>*{
  white-space:nowrap;overflow:visible;text-overflow:clip;
}
.user-menu-full-name{padding:10px 14px;font-weight:700;overflow-wrap:anywhere;white-space:normal;border-bottom:1px solid var(--line)}
.attachment-preview-item small,.attachment-file-copy strong,.attachment-file-copy span{
  white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;
}
.file-picker-name,.path-cell,.asset-inline-color>span,.asset-inline-role>span{
  white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;
}
.feedback-lightbox-caption{white-space:normal;overflow-wrap:anywhere;text-overflow:clip;max-height:20vh;overflow:auto}
.feedback-lightbox-image{max-height:70vh}

/* Main is the scrolling viewport; top:0 sits directly below the app header. */
.legal-page .legal-heading{position:sticky;top:0;z-index:12;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:clamp(16px,3vw,56px);padding:20px 0 16px;margin:0;background:var(--bg);border-bottom:1px solid var(--line)}
.legal-heading .legal-back{margin-top:6px;align-self:start;white-space:normal;max-width:11rem}
.legal-heading h1{margin:0;font-size:clamp(24px,3vw,38px)}
.legal-heading .lead{margin:8px 0;font-size:14px}
.legal-heading .muted{margin:4px 0;font-size:13px}
.legal-page .legal-copy{margin-top:16px}
html[dir="rtl"] .legal-back span[aria-hidden]{display:inline-block;transform:scaleX(-1)}
@media(max-width:600px){.legal-page .legal-heading{gap:10px;padding:12px 0}.legal-heading .legal-back{padding:8px;max-width:6rem}.legal-heading .lead{font-size:12px}}

.ec-feature-summary{white-space:normal;overflow-wrap:anywhere;line-height:1.5;max-width:42ch}

/* R3: center every close glyph independently of font metrics. */
:is(.ml-dialog-close,.modal-close,.feedback-lightbox-close,.local-image-preview-close,.alert-close,.cloud-entry-close){font-size:0!important;padding:0!important;display:grid!important;place-items:center!important}
:is(.ml-dialog-close,.modal-close,.feedback-lightbox-close,.local-image-preview-close,.alert-close,.cloud-entry-close)>*{display:none!important}
:is(.ml-dialog-close,.modal-close,.feedback-lightbox-close,.local-image-preview-close,.alert-close,.cloud-entry-close)::before,
:is(.ml-dialog-close,.modal-close,.feedback-lightbox-close,.local-image-preview-close,.alert-close,.cloud-entry-close)::after{content:"";position:absolute;left:50%;top:50%;width:18px;height:2px;border-radius:2px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
:is(.ml-dialog-close,.modal-close,.feedback-lightbox-close,.local-image-preview-close,.alert-close,.cloud-entry-close)::after{transform:translate(-50%,-50%) rotate(-45deg)}
.cloud-entry-host .cloud-entry-close{position:relative}

.alert-close{position:relative}

/* R4-15: primary action spans the full row; secondary actions share the next. */
.actions.auth-primary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;align-items:stretch}
.auth-primary-actions>.primary{grid-column:1/-1}
.auth-primary-actions>.btn{width:100%;min-width:0;min-height:48px;justify-content:center;text-align:center;white-space:normal;overflow-wrap:anywhere}
.auth-tabs .auth-tab.active{background:#202522;color:#fff}
html[data-theme="dark"] .auth-tabs .auth-tab.active{background:#f1f4f1;color:#202522}

/* R4-23: bounded read-only text dialogs keep list rows compact. */
.ml-text-cell{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;max-width:100%;vertical-align:middle}
.ml-text-cell>[hidden],.ml-text-dialog>[hidden]{display:none!important}
.ml-text-cell .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:36px}
.ml-text-dialog[open]{display:flex;flex-direction:column;width:min(760px,calc(100vw - 24px));height:min(640px,calc(100vh - 24px));height:min(640px,calc(100dvh - 24px));overflow:hidden}
.ml-text-dialog>header{flex:none;padding:14px 64px 14px 18px}
.ml-text-dialog h2{font-size:18px;line-height:1.4}
.ml-text-dialog .modal-close{width:44px;height:44px;min-height:44px;top:8px;right:8px}
.ml-text-dialog>.ml-text-content,.ml-text-dialog>textarea{flex:1;min-height:0;min-width:0;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font:14px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;padding:16px;margin:0;border:0;background:var(--panel-soft);color:var(--text);text-align:start}
.ml-text-dialog>textarea{resize:none;width:100%;box-sizing:border-box}
.ml-text-dialog>.actions{position:static;flex:none;direction:inherit;padding:10px 16px;align-items:center;flex-wrap:wrap}
.ml-text-dialog .ml-text-status{font-size:13px;line-height:1.4;margin:0;flex:1;min-width:140px}
.ml-text-dialog .btn{min-height:44px}

/* R4-25: keep business labels readable beside compact, accessible actions. */
.ml-text-cell{align-items:center;gap:6px}.ml-text-cell .ml-text-label{overflow-wrap:anywhere;min-width:0}.ml-text-cell .compact-action{flex-shrink:0}.ml-text-cell .compact-action:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* R4AE: shared search controls and complete image previews. */
.filter-bar .field{margin:0;min-width:0}
.filter-bar.list-search{grid-template-columns:minmax(0,1fr) auto auto}
.filter-bar.list-search>.btn{justify-self:end;width:auto}
.alert[data-navigation-error]>.alert-content,.alert[data-query-error]>.alert-content{grid-column:1/-1;color:var(--text);min-width:0}
.alert[data-navigation-error] .btn{margin-block-start:10px}
.stats-grid.mail-queue-overview{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.mail-queue-overview .stat{min-width:0}.mail-queue-overview .num{overflow-wrap:anywhere;font-size:clamp(22px,2.5vw,32px)}
.mail-queue-overview .queue-warning::before{background:var(--warn)}
.ec-preview{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.ec-preview>img,.ec-preview>svg{grid-area:1/1;min-width:0;min-height:0;max-width:100%;max-height:100%}
@media(max-width:1100px){.stats-grid.mail-queue-overview{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:650px){.stats-grid.mail-queue-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}.filter-bar.list-search{grid-template-columns:minmax(0,1fr)}.filter-bar.list-search>.btn{justify-self:start}}

/* Administrative calendar filters, including multiline gallery pickers. */
.ml-analytics-filters,.gallery-analysis-filters.ml-analytics-filters,.entry-analysis-filters.ml-analytics-filters,.ec-toolbar.ml-analytics-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;align-items:start}
.ml-analytics-filters>label{display:flex;flex-direction:column;gap:8px;min-width:0}.ml-analytics-filters input,.ml-analytics-filters select{max-width:100%;min-width:0}.ml-analytics-filters>button{align-self:end;min-height:44px}
@media(max-width:600px){.ml-analytics-filters,.gallery-analysis-filters.ml-analytics-filters,.entry-analysis-filters.ml-analytics-filters,.ec-toolbar.ml-analytics-filters{grid-template-columns:minmax(0,1fr)}}

/* Native feedback previews keep keyboard focus in the active image viewer. */
dialog.feedback-lightbox { border:0; padding:0; margin:auto; max-width:none; max-height:none; width:100vw; height:100dvh; color:var(--text); }
dialog.feedback-lightbox:not([open]) { display:none; }
dialog.feedback-lightbox::backdrop { background:rgba(0,0,0,.8); }

/* R5D dialog-close standard: neutral, theme aware; destructive actions retain red. */
:is(.ml-dialog-close,.modal-close,.feedback-lightbox-close,.local-image-preview-close,.alert-close,.cloud-entry-close){width:40px;height:40px;min-width:40px;min-height:40px;border:1px solid var(--line);border-radius:12px;background:var(--panel-soft);color:var(--text);flex-shrink:0;cursor:pointer}
:is(.ml-dialog-close,.modal-close,.feedback-lightbox-close,.local-image-preview-close,.alert-close,.cloud-entry-close):hover:not(:disabled){background:var(--panel);color:var(--text);border-color:var(--muted)}
:is(.ml-dialog-close,.modal-close,.feedback-lightbox-close,.local-image-preview-close,.alert-close,.cloud-entry-close):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(pointer:coarse){:is(.ml-dialog-close,.modal-close,.feedback-lightbox-close,.local-image-preview-close,.alert-close,.cloud-entry-close){min-width:44px;min-height:44px}}

/* Page subnavigation: gallery reference, shared by all administration subpages.
   This is navigation, not an action, a filter chip or an editor tool mode. */
.ml-subnav.ml-subnav{display:flex;flex-wrap:wrap;align-items:stretch;gap:4px;min-width:0;margin:0 0 24px;padding:0;border:0;border-block-end:1px solid var(--line);background:transparent}
.ml-subnav.ml-subnav>:is(button,a){display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:44px;margin:0;padding:14px 18px;border:0;border-block-end:3px solid transparent;border-radius:0;background:transparent;box-shadow:none;color:var(--muted);font:inherit;font-weight:500;line-height:1.4;text-decoration:none;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.ml-subnav.ml-subnav>:is(button,a):is([aria-selected=true],[aria-pressed=true],[aria-current=page]){background:transparent;color:var(--text);border-block-end-color:var(--accent);font-weight:700}
.ml-subnav.ml-subnav>:is(button,a):hover{background:transparent;color:var(--text)}
.ml-subnav.ml-subnav>:is(button,a):focus-visible{outline:2px solid var(--text);outline-offset:-4px}
@media(max-width:650px){.ml-subnav.ml-subnav>:is(button,a){padding:12px}}
/* State is always text + semantic surface; never color alone. */
:root{--status-neutral-bg:#e8ece9;--status-neutral-ink:#37433b;--status-success-bg:#e2f3e8;--status-success-ink:#205a36;--status-warning-bg:#fff0c2;--status-warning-ink:#694500;--status-danger-bg:#fde4e2;--status-danger-ink:#922b24}
html[data-theme=dark]{--status-neutral-bg:#35433b;--status-neutral-ink:#e3ebe6;--status-success-bg:#244b37;--status-success-ink:#b5f0cb;--status-warning-bg:#594719;--status-warning-ink:#ffe2a0;--status-danger-bg:#5d302f;--status-danger-ink:#ffd1cc}
.ml-status-badge{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:4px 10px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:600;line-height:1.5;background:var(--status-neutral-bg);color:var(--status-neutral-ink);overflow-wrap:anywhere}
.ml-status-badge:is([data-state=PUBLISHED],[data-state=ACTIVE]){background:var(--status-success-bg);color:var(--status-success-ink)}
.ml-status-badge[data-state=DISABLED]{background:var(--status-warning-bg);color:var(--status-warning-ink)}
.ml-status-badge[data-state=DELETED]{background:var(--status-danger-bg);color:var(--status-danger-ink)}
/* Analytics identity: nickname + email, tier below, email reveal beside identity. */
.ml-analytics-account{display:inline-flex;flex-direction:column;max-width:100%;gap:3px}.ml-account-line{display:flex;align-items:center;gap:6px;min-width:0}.ml-account-select{border:0;background:none;color:inherit;font:inherit;text-align:start;text-decoration:underline;text-underline-offset:3px;padding:0;cursor:pointer}.ml-account-line bdi{overflow-wrap:anywhere}.ml-email-reveal{flex:none}.ml-analytics-account small{display:block;color:var(--muted)}.ml-analytics-account .ml-account-error{color:#a32d21}.ml-account-error:empty{display:none}html[data-theme=dark] .ml-analytics-account .ml-account-error{color:#ffaaa0}

.ml-network-notice{position:sticky;top:0;z-index:1000;padding:8px 16px;background:var(--surface,#f3f6e9);color:var(--text,#263520);border-bottom:1px solid var(--border,#bcc8b0);font-size:14px;line-height:1.5;text-align:center}.ml-network-notice[hidden]{display:none}

@layer components {
  .roster-filters {display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-block:16px}
  .roster-filters .field {flex:1 1 140px;min-width:120px;margin:0}
  .roster-filters .roster-search {flex:2 1 220px}
  .roster-filters input,.roster-filters select {width:100%;min-height:40px}
  .roster-sources {margin-block:20px 12px}
  .roster-sources a {display:inline-flex;gap:8px;align-items:center}
  .roster-stats {grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .roster-overview h2 {margin-block:0 12px}
  .roster-sync-line {display:flex;gap:12px;flex-wrap:wrap;align-items:center}
  .roster-counts {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .roster-counts dd {margin:4px 0;font-weight:700}
  .roster-counts dt {color:var(--muted)}
  .roster-table-wrap {max-width:100%;overflow:auto;overscroll-behavior-inline:contain}
  .roster-table {min-width:960px;table-layout:fixed}
  .roster-table th,.roster-table td {white-space:normal;overflow-wrap:anywhere;vertical-align:top;padding:10px 8px}
  .roster-table .roster-groups th {background:var(--accent-soft);color:var(--accent-soft-ink);font-size:14px}
  .roster-table .roster-groups th:nth-child(2) {background:var(--panel-soft);color:var(--text)}
  .roster-table .badge {white-space:normal;line-height:1.5}
  .roster-table small {display:block;color:var(--muted);margin-block-start:5px;font-size:12px}
  .roster-tier {display:block;margin-block-end:7px}
  .roster-detail-dialog {width:min(1040px,calc(100vw - 32px))}
  .roster-detail-dialog>header {padding-right:68px}
  .roster-detail-body {padding:16px 24px 24px}
  .roster-filter-actions {display:flex;gap:8px;flex-wrap:wrap;align-items:center}
  .roster-filter-actions .btn {white-space:nowrap}
  .roster-filters {margin-block:8px;gap:10px}
  .roster-filters .field {flex:1 1 145px}
  .roster-filters .roster-search {flex:2 1 210px}
  .roster-overview {padding:12px 16px;margin-block:12px}
  .roster-overview details {margin-top:8px}
  .roster-stats .stat {padding:12px 16px}
  .roster-stats .num {font-size:28px}
  .roster-stats-scope {margin-block:8px}
  .roster-sources {margin-block:12px}
  .roster-sources a.active {border-bottom:2px solid var(--accent);color:var(--accent)}
  .roster-table tbody td:first-child {position:sticky;inset-inline-start:0;background:var(--panel);z-index:1;box-shadow:1px 0 0 var(--line)}
  .roster-table tbody td:last-child {position:sticky;inset-inline-end:0;background:var(--panel);z-index:1;box-shadow:-1px 0 0 var(--line)}
  .roster-table tbody td:last-child .btn {padding:6px;white-space:normal;max-width:100%}
  .roster-member-name {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .roster-compact-id {white-space:nowrap;font-size:12px}
  .roster-warning {display:block;color:var(--danger,#b42318);font-size:13px;margin-block:5px;overflow-wrap:anywhere}
  .roster-sync-line>.roster-warning {display:inline;margin:0}
  .roster-detail-grid {display:grid;grid-template-columns:1fr 1fr;gap:24px}
  .roster-detail-grid section {min-width:0}
  .roster-details {margin:0;display:grid;gap:10px}
  .roster-details>div {display:grid;grid-template-columns:minmax(100px,140px) minmax(0,1fr);gap:12px}
  .roster-details dt {color:var(--muted)}
  .roster-details dd {margin:0;overflow-wrap:anywhere}
  [data-roster-content][aria-busy="true"] .roster-list {opacity:.65}
  [data-patreon-roster] code {overflow-wrap:anywhere;white-space:normal}
  @media(max-width:700px) {
    .roster-stats,.roster-counts {grid-template-columns:repeat(2,minmax(0,1fr))}
    .roster-filters .field {flex-basis:calc(50% - 12px)}
    .roster-filters .roster-search {flex-basis:100%}
    [data-patreon-roster] .page-heading {align-items:stretch}
    [data-patreon-roster] .page-heading form,[data-patreon-roster] .page-heading button {width:100%}
  }
}
@layer components {
 .roster-sources {display:flex;gap:20px;border-bottom:1px solid var(--line)}
 .roster-sources a {padding:10px 2px;border-bottom:3px solid transparent;color:var(--muted);text-decoration:none}
 .roster-sources a.active {border-bottom-color:var(--accent);color:var(--text);font-weight:700}
 .roster-overview {padding:16px 20px}
 .roster-overview h2 {font-size:17px;margin-block:0 8px}
 .roster-overview p {margin-block:6px}
}

/* Scoped list density must override the unlayered shared card/pager defaults. */
[data-patreon-roster] .page-heading {margin-bottom:10px;align-items:center}
[data-patreon-roster] .page-heading h1 {margin-bottom:6px}
[data-patreon-roster] .page-heading .lead {margin-block:0;font-size:14px}
[data-patreon-roster] .ml-subnav {margin-block:8px 12px}
[data-patreon-roster] .ml-subnav a[aria-current="page"] {border-bottom:3px solid var(--accent)!important}
[data-patreon-roster] .roster-sources {margin-block:8px 10px}
[data-patreon-roster] .roster-stats {grid-template-columns:repeat(3,minmax(0,1fr))!important;margin-block:10px;gap:12px}
[data-patreon-roster] .roster-stats .stat {padding:10px 16px}
[data-patreon-roster] .roster-stats .num {font-size:28px}
[data-patreon-roster] .roster-stats-scope {margin-block:6px 10px;line-height:1.5}
[data-patreon-roster] .roster-overview {padding:12px 16px;margin-block:10px}
[data-patreon-roster] .roster-list {padding:14px 16px}
[data-patreon-roster] .roster-filters {margin-block:0 10px}
[data-patreon-roster] .roster-filters .field {margin:0}
[data-patreon-roster] .roster-filter-actions {margin:0}
[data-patreon-roster] [data-query-count] {margin-block:8px}
[data-patreon-roster] .table-pager {margin-block:8px;gap:8px}
[data-patreon-roster] .table-pager .actions {margin:0;gap:8px}
.roster-detail-dialog {width:min(1040px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}
.roster-detail-dialog>header {padding-right:68px}
.roster-detail-dialog small {display:block;margin-top:4px;color:var(--muted)}
@media(max-width:700px) {
 [data-patreon-roster] .roster-stats {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 [data-patreon-roster] .roster-stats .stat {padding:10px 8px}
 [data-patreon-roster] .roster-stats .label {font-size:12px;overflow-wrap:anywhere}
 .roster-detail-grid {grid-template-columns:minmax(0,1fr)}
 .roster-detail-body {padding:12px 16px 20px}
 .roster-details>div {grid-template-columns:minmax(90px,35%) minmax(0,1fr);gap:8px}
}

/* Dialogs use the theme's red for the physical top-right close control. */
:is(.ml-dialog-close,.modal-close,.feedback-lightbox-close,.local-image-preview-close,.cloud-entry-close),
:is(.ml-dialog-close,.modal-close,.feedback-lightbox-close,.local-image-preview-close,.cloud-entry-close):hover:not(:disabled){color:var(--danger)}

/* Phase 2 unified palette, Portal 2.8.0 workflow layout (.p270-*), inline admin actions, and authoritative dark mode. */
.p270-subtle{font-size:12px;color:var(--muted,#66715f);line-height:1.6}
.p270-eyebrow{letter-spacing:.09em;font-size:11px;text-transform:uppercase;color:var(--muted,#66715f);margin-bottom:8px}
.p270-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding:28px}
.p270-hero h2{font-size:27px;line-height:1.3;margin:8px 0 12px}
.p270-hero p{max-width:46em;line-height:1.8}
.p270-animals{display:flex;align-items:center}
.p270-animals img{width:82px;height:82px;object-fit:contain}
.p270-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.p270-card{padding:20px;display:flex;flex-direction:column;gap:12px;min-width:0}
.p270-card>p{flex:1;line-height:1.7}
.p270-card h3{display:flex;align-items:center;gap:8px;font-size:17px}
.p270-card .btn{align-self:flex-start}
.p270-context{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 16px;margin:12px 0 18px;background:var(--panel-soft,#edf1e8);border:1px solid var(--line,#dce2d4);border-radius:12px}
.p270-context select,.p270-toolbar select,.p270-toolbar input{min-height:44px;max-width:100%;border:1px solid var(--line,#dce2d4);border-radius:8px;padding:7px 10px;background:var(--panel,#fff);color:inherit}
.p270-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:16px 0}
.p270-toolbar label{display:flex;flex-direction:column;gap:6px;font-size:12px}
.p270-toolbar .btn{min-height:44px}
.p270-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.p270-step{border:1px solid var(--line,#dce2d4);border-radius:12px;padding:16px}
.p270-step strong{display:block;margin-bottom:6px}
.p270-step p{font-size:12px;line-height:1.7}
.p270-stack{display:grid;gap:14px}
.p270-rule{padding:14px 0;border-bottom:1px solid var(--line,#dce2d4);display:flex;justify-content:space-between;gap:16px}
.p270-rule span{font-size:13px}
.p270-rule strong{font-size:13px;text-align:end}
.p270-pending{background:#fff6df;border:1px solid #dfcca0;border-radius:12px;padding:15px;line-height:1.8}
.p270-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.p270-result-grid article{padding:12px;text-align:center;border:1px solid var(--line,#dce2d4);border-radius:12px}
.p270-result-grid svg{max-width:100%;max-height:120px}
.p270-blind-link,.p270-actions .btn{min-width:44px;min-height:44px}
.p270-actions{display:flex;flex-wrap:wrap;gap:8px}
.p270-note{font-size:12px;line-height:1.8;margin:8px 0}
.p270-empty{padding:42px 24px;text-align:center;display:grid;gap:14px;justify-items:center}
.p270-state-badge{display:inline-flex;gap:6px;align-items:center}
.p270-modal-list{margin:14px 0;padding-inline-start:20px;line-height:1.9}
.p270-cap-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.p270-cap-list>div{padding:14px;border:1px solid var(--line,#dce2d4);border-radius:10px}
.p270-cap-list strong{display:block;margin-bottom:5px}
.p270-route-row td:last-child{min-width:130px}
.p270-review-table td{min-width:110px}
.p270-review-table td:first-child{min-width:80px}
@media(max-width:1000px){
  .p270-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .p270-hero{padding:22px}
  .p270-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .p270-hero{grid-template-columns:1fr;gap:10px}
  .p270-animals{display:none}
  .p270-cards,.p270-cap-list{grid-template-columns:1fr}
  .p270-steps,.p270-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .p270-context{align-items:flex-start}
  .p270-toolbar{align-items:stretch}
  .p270-toolbar label{flex:1 1 160px}
  .p270-hero h2{font-size:23px}
}
@media(prefers-reduced-motion:reduce){
  .p270-card,.p270-hero{transition:none;animation:none}
}

.btn.primary,.button.primary{background:var(--accent);border-color:var(--accent-strong);color:var(--accent-ink);font-weight:700}
.btn.primary:hover:not(:disabled),.button.primary:hover:not(:disabled){background:var(--accent-strong);color:var(--accent-ink)}
@media(min-width:901px){
  .feedback-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:nowrap}
  .feedback-heading-actions .feedback-filter-form{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
  .audit-table .compact-actions,.feedback-table .compact-actions{flex-wrap:nowrap;align-items:center}
  .log-filters{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
}

html[data-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .card,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .access-central-project-card,
html[data-theme="dark"] .activation-method-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .access-section,
html[data-theme="dark"] .ml-edit-dialog,
html[data-theme="dark"] .ml-edit-dialog .modal-card,
html[data-theme="dark"] .roster-detail-dialog,
html[data-theme="dark"] .user-menu-panel,
html[data-theme="dark"] .language-menu-panel{background:var(--panel);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .project-card-primary-link,
html[data-theme="dark"] .access-central-project-card .project-content,
html[data-theme="dark"] .activation-method-card h2,
html[data-theme="dark"] .activation-method-card h3,
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .stat .num{color:var(--text)}
html[data-theme="dark"] .project-card-primary-link .project-content>p,
html[data-theme="dark"] .access-central-project-card p,
html[data-theme="dark"] .activation-method-card p,
html[data-theme="dark"] .stat .label,
html[data-theme="dark"] .muted{color:var(--muted)}
html[data-theme="dark"] .nav-link{color:var(--muted)}
html[data-theme="dark"] .nav-link:hover{background:var(--panel-soft);color:var(--text)}
html[data-theme="dark"] .nav-link.active{background:var(--accent-soft);color:var(--text);border-color:var(--line-strong)}
html[data-theme="dark"] .nav-link.active svg{color:var(--accent)}
html[data-theme="dark"] .btn:not(.primary):not(.danger):not(.ok):not(.active-filter):not(.is-active):not([aria-pressed="true"]):not([aria-selected="true"]):not([aria-current="page"]){background:var(--panel-soft);color:var(--text);border-color:var(--line-strong)}
html[data-theme="dark"] .btn:not(.primary):not(.danger):not(.ok):not(.active-filter):not(.is-active):not([aria-pressed="true"]):not([aria-selected="true"]):not([aria-current="page"]):hover:not(:disabled){background:#314639;border-color:var(--accent)}
html[data-theme="dark"] th{background:var(--panel-soft);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] td{color:var(--text);border-color:var(--line)}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
html[data-theme="dark"] select,
html[data-theme="dark"] select option,
html[data-theme="dark"] textarea{background:#16221b;color:var(--text);border-color:var(--line-strong)}
html[data-theme="dark"] .language-option:hover,
html[data-theme="dark"] .user-menu-panel a:hover{background:var(--panel-soft);color:var(--text)}
html[data-theme="dark"] .p270-pending,
html.dark .p270-pending{background:#332d1c;color:#ead9af;border-color:#665733}
html[data-theme="dark"] .p270-context,
html.dark .p270-context{background:var(--panel-soft);border-color:var(--line)}
html[data-theme="dark"] .p270-toolbar select,
html[data-theme="dark"] .p270-toolbar input,
html.dark .p270-toolbar select,
html.dark .p270-toolbar input{background:#16221b;color:var(--text);border-color:var(--line-strong)}
html[data-theme="dark"] .mat-card{background:var(--panel);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .mat-card-copy strong{color:var(--text)}
html[data-theme="dark"] .mat-card-copy small{color:var(--muted)}
html[data-theme="dark"] .mat-tag{background:var(--panel-soft);color:var(--text);border-color:var(--line-strong)}
@media(prefers-color-scheme:dark){
  html[data-theme="system"]{
    --bg:#142019;--panel:#1d2b22;--panel-soft:#26372c;
    --text:#edf3eb;--muted:#b4c2b6;--line:#324438;--line-strong:#465d4e;
    --accent:#c3da57;--accent-soft:#39441f;--accent-ink:#243108;--accent-soft-ink:#e6f2b3;
    --chart-1:#b4d448;--chart-2:#58b8d6;--chart-grid:rgba(241,244,241,.14);
    --accent-strong:#a9c73c;--focus:#c3da57;--focus-contrast:#c3da57;
    --personal:#62a9f3;--merchant:#ff747d;
    --danger:#ff958b;--warn:#e8bb68;--ok:#82cf96;
    --status-neutral-bg:#35433b;--status-neutral-ink:#e3ebe6;--status-success-bg:#244b37;--status-success-ink:#b5f0cb;--status-warning-bg:#594719;--status-warning-ink:#ffe2a0;--status-danger-bg:#5d302f;--status-danger-ink:#ffd1cc;
    --shadow:0 12px 34px rgba(0,0,0,.28);--primary:#f1f4f1;
    color-scheme:dark
  }
  html[data-theme="system"] body{background:var(--bg);color:var(--text)}
  html[data-theme="system"] .topbar,
  html[data-theme="system"] .sidebar,
  html[data-theme="system"] .card,
  html[data-theme="system"] .stat,
  html[data-theme="system"] .table-wrap,
  html[data-theme="system"] .project-card,
  html[data-theme="system"] .access-central-project-card,
  html[data-theme="system"] .activation-method-card,
  html[data-theme="system"] .empty-state,
  html[data-theme="system"] .auth-card,
  html[data-theme="system"] .access-section,
  html[data-theme="system"] .ml-edit-dialog,
  html[data-theme="system"] .ml-edit-dialog .modal-card,
  html[data-theme="system"] .roster-detail-dialog,
  html[data-theme="system"] .user-menu-panel,
  html[data-theme="system"] .language-menu-panel,
  html[data-theme="system"] .mat-card{background:var(--panel);color:var(--text);border-color:var(--line)}
  html[data-theme="system"] .project-card-primary-link,
  html[data-theme="system"] .access-central-project-card .project-content,
  html[data-theme="system"] .activation-method-card h2,
  html[data-theme="system"] .activation-method-card h3,
  html[data-theme="system"] .card h2,
  html[data-theme="system"] .card h3,
  html[data-theme="system"] .stat .num,
  html[data-theme="system"] .mat-card-copy strong{color:var(--text)}
  html[data-theme="system"] .project-card-primary-link .project-content>p,
  html[data-theme="system"] .access-central-project-card p,
  html[data-theme="system"] .activation-method-card p,
  html[data-theme="system"] .stat .label,
  html[data-theme="system"] .muted,
  html[data-theme="system"] .mat-card-copy small,
  html[data-theme="system"] .nav-link{color:var(--muted)}
  html[data-theme="system"] .nav-link:hover,
  html[data-theme="system"] .language-option:hover,
  html[data-theme="system"] .user-menu-panel a:hover{background:var(--panel-soft);color:var(--text)}
  html[data-theme="system"] .nav-link.active{background:var(--accent-soft);color:var(--text);border-color:var(--line-strong)}
  html[data-theme="system"] .nav-link.active svg{color:var(--accent)}
  html[data-theme="system"] .btn:not(.primary):not(.danger):not(.ok):not(.active-filter):not(.is-active):not([aria-pressed="true"]):not([aria-selected="true"]):not([aria-current="page"]){background:var(--panel-soft);color:var(--text);border-color:var(--line-strong)}
  html[data-theme="system"] .btn:not(.primary):not(.danger):not(.ok):not(.active-filter):not(.is-active):not([aria-pressed="true"]):not([aria-selected="true"]):not([aria-current="page"]):hover:not(:disabled){background:#314639;border-color:var(--accent)}
  html[data-theme="system"] th{background:var(--panel-soft);color:var(--text);border-color:var(--line)}
  html[data-theme="system"] td{color:var(--text);border-color:var(--line)}
  html[data-theme="system"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
  html[data-theme="system"] select,
  html[data-theme="system"] select option,
  html[data-theme="system"] textarea,
  html[data-theme="system"] .p270-toolbar select,
  html[data-theme="system"] .p270-toolbar input{background:#16221b;color:var(--text);border-color:var(--line-strong)}
  html[data-theme="system"] .p270-pending{background:#332d1c;color:#ead9af;border-color:#665733}
  html[data-theme="system"] .p270-context{background:var(--panel-soft);border-color:var(--line)}
  html[data-theme="system"] .mat-tag{background:var(--panel-soft);color:var(--text);border-color:var(--line-strong)}
}

/* R7 Post-QA alignment, table compaction, dialog single-border, and 2.8.0 workspace cards */
.mt-xs{margin-top:4px}
.user-access-table{width:100%!important;min-width:0!important}
.compact-actions{display:inline-flex!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important;white-space:nowrap!important}
.feedback-table.admin .feedback-cell-truncate,.feedback-table.admin .feedback-cell-truncate>a{display:block;max-width:100%;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
dialog.ml-edit-dialog:has(> .modal-card){border:0!important;background:transparent!important;padding:0!important;overflow:visible!important;box-shadow:none!important}
dialog.ml-edit-dialog>.modal-card{width:100%;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--text);box-shadow:var(--shadow);overflow:auto;max-height:calc(100dvh - 32px)}
.filter-bar,.log-filters,.ec-toolbar,.entry-analysis-filters{align-items:end}
.filter-bar>.btn,.log-filters>.btn,.filter-bar>.actions.align-end{align-self:end}
.filter-bar .field input,.filter-bar .field select,.log-filters input,.log-filters select,.entry-analysis-filters input,.entry-analysis-filters select{min-height:40px}
.filter-bar .field input[name="q"],.log-filters input[name="q"]{min-width:min(240px,100%)}
.actions.align-end,.entry-actions{flex-wrap:nowrap;align-items:center;gap:8px}
.p280-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:22px 24px;margin-bottom:20px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}
.p280-hero h1{margin:0 0 6px}
.p280-hero p{margin:0}
.p280-hero-actions{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.p280-picker{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.p280-picker label{display:grid;gap:4px;font-size:13px}
.p280-picker select,.p280-picker .btn{min-height:40px}
.p280-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.p280-card{display:flex;flex-direction:column;gap:12px;min-width:0}
.p280-card-wide{grid-column:1 / -1}
.p280-card h2{margin:0}
.p280-card .actions{margin-top:4px;display:flex;flex-wrap:wrap;gap:8px}
.p280-shortcut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.p280-shortcut-tile{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel-soft);color:var(--text);text-decoration:none;transition:border-color .15s ease,background-color .15s ease}
.p280-shortcut-tile:hover{border-color:var(--accent);background:var(--panel)}
.p280-shortcut-tile [data-lucide]{flex:0 0 auto;width:18px;height:18px;margin-top:2px;color:var(--accent-strong,var(--accent))}
.p280-shortcut-copy{display:grid;gap:2px;min-width:0}
.p280-shortcut-copy strong{font-size:14px;line-height:1.3}
.p280-shortcut-copy small{font-size:12px;line-height:1.4;color:var(--muted)}
.p280-thumb-strip{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px}
.p280-thumb-strip img{width:36px;height:36px;object-fit:cover;border-radius:8px;border:1px solid var(--line);background:var(--panel-soft)}
.p280-revoked-group{margin-top:8px;border:1px solid var(--line);border-radius:12px;background:var(--panel-soft);padding:10px 14px}
.p280-revoked-group>summary{cursor:pointer;font-weight:600;color:var(--muted);list-style:none}
.p280-revoked-group[open]>summary{margin-bottom:10px}
.ppz-private-admin-filters{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 4px}
.ppz-private-admin-filters .btn.is-active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,var(--panel));color:var(--text)}
.table-wrap table:not(.roster-table) th,.ml-table-wrap table:not(.roster-table) th{white-space:nowrap;overflow-wrap:normal}
@media(max-width:520px){.p280-shortcut-grid{grid-template-columns:1fr}}
.p280-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.p280-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel-soft);flex-wrap:wrap}
.p280-quota{margin:4px 0 0;font-weight:500}
@media(max-width:960px){.p280-grid{grid-template-columns:1fr}}
@media(max-width:640px){.filter-bar>.actions.align-end{flex-wrap:wrap}.p280-hero{padding:16px}}

/* Wave B/C Modular UI/UE Unification Primitives */
.ml-surface{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius,14px);padding:20px;box-shadow:var(--shadow)}
.ml-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:16px 0}
.ml-kpi-card{display:flex;flex-direction:column;gap:8px;padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:14px;min-width:0}
.ml-kpi-card>span{font-size:12px;color:var(--muted)}
.ml-kpi-card>strong{font-size:24px;font-weight:700;line-height:1.2}
.ml-pager{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:14px 0}
.ml-pager-controls{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.ml-empty-card,.ml-error-card{padding:24px 20px;border:1px dashed var(--line-strong);border-radius:14px;background:var(--panel);text-align:center;display:grid;gap:10px;justify-items:center;margin:14px 0}
.ml-error-card{border-style:solid;border-color:color-mix(in srgb,var(--danger) 45%,var(--line));color:var(--danger)}
.ml-table-wrap{width:100%;overflow:auto;border:1px solid var(--line);border-radius:12px;margin:12px 0}
.ml-filter-bar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0}
.p280-cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-top:12px}
.p280-subhead{margin:16px 0 8px;font-size:15px}
.ml-chart-bar-a{background:var(--chart-1);fill:var(--chart-1)}
.ml-chart-bar-b{background:var(--chart-2);fill:var(--chart-2)}
.ml-chart-grid{stroke:var(--chart-grid)}

/* Round 9: Full iPhone 18 series (402x874, 420x912, 440x956 + landscape)
   & Wide-Foldable iPhone Duo (466x678 folded, 890x626 unfolded) support */
.topbar{
  padding-top:var(--safe-top);
  padding-inline:max(20px,var(--safe-left)) max(20px,var(--safe-right));
  min-height:calc(72px + var(--safe-top));
  height:auto;
}
.sidebar{
  padding-bottom:max(18px,var(--safe-bottom));
  padding-inline-start:max(12px,var(--safe-left));
}
.main>.container{
  padding-bottom:max(44px,calc(24px + var(--safe-bottom)));
}
.auth-wrap{
  padding-inline:max(24px,var(--safe-left)) max(24px,var(--safe-right));
  padding-bottom:max(30px,calc(16px + var(--safe-bottom)));
}
.app-toast{
  bottom:max(18px,calc(12px + var(--safe-bottom)));
  max-width:calc(100vw - 24px - var(--safe-left) - var(--safe-right));
}
:is(.ec-dialog,.ac-dialog,.ml-text-dialog,dialog.ml-edit-dialog>.modal-card){
  max-width:calc(100vw - 24px - var(--safe-left) - var(--safe-right));
  max-height:calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom));
}
@media(max-width:800px){
  .topbar{
    min-height:calc(64px + var(--safe-top));
    padding-inline:max(12px,var(--safe-left)) max(12px,var(--safe-right));
  }
  .sidebar{
    top:calc(64px + var(--safe-top));
    width:min(286px,calc(100vw - 48px - var(--safe-left)));
  }
  .sidebar-scrim{
    inset:calc(64px + var(--safe-top)) 0 0;
  }
  .layout>.main{
    min-height:calc(100dvh - 64px - var(--safe-top));
    padding-inline:var(--safe-left) var(--safe-right);
  }
}
@media(max-width:480px){
  .local-version-badge{font-size:8px;padding-inline:5px}
  .topbar .top-actions{gap:4px}
}
@media(max-width:520px) and (max-height:720px){
  /* iPhone Duo Folded (466x678): preserve above-the-fold density without clipping */
  .p280-hero{padding:14px 16px;gap:12px}
  .auth-wrap{padding-block:14px max(20px,var(--safe-bottom))}
  .auth-card{padding:18px 16px}
  .modal-card,:is(.ec-dialog,.ac-dialog){padding:20px 16px}
}
@media(min-width:640px) and (max-height:680px){
  /* Wide-Foldable iPhone Duo Unfolded (890x626) & short wide tablets */
  .topbar{min-height:calc(56px + var(--safe-top));padding-inline:max(14px,var(--safe-left)) max(14px,var(--safe-right))}
  .layout{height:calc(100dvh - 56px - var(--safe-top))}
  .main>.container{padding-block:14px max(24px,calc(16px + var(--safe-bottom)))}
  .p280-hero{padding:14px 18px;margin-bottom:14px}
  .p280-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .ml-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
}
@media(max-width:1000px) and (max-height:500px){
  /* iPhone 18 series landscape (874x402, 912x420, 956x440) & Duo Folded landscape (678x466) */
  body.mobile-nav-locked{overflow:hidden}
  .topbar{
    min-height:calc(52px + var(--safe-top));
    padding-inline:max(12px,var(--safe-left)) max(12px,var(--safe-right));
  }
  .brand small{display:none}
  .layout{display:block;height:auto}
  .sidebar{
    position:fixed;top:calc(52px + var(--safe-top));bottom:0;inset-inline-start:0;
    width:min(280px,calc(100vw - 48px - var(--safe-left)));z-index:55;
    transform:translateX(-100%);transition:transform .2s ease;box-shadow:var(--shadow-float);
    padding-bottom:max(16px,var(--safe-bottom));padding-inline-start:max(12px,var(--safe-left));
  }
  html[dir="rtl"] .sidebar{transform:translateX(100%)}
  body.mobile-sidebar-open .sidebar{transform:translateX(0)}
  .sidebar-scrim{
    position:fixed;inset:calc(52px + var(--safe-top)) 0 0;z-index:54;display:block;border:0;border-radius:0;
    background:rgba(20,27,22,.42);backdrop-filter:blur(2px);opacity:0;visibility:hidden;pointer-events:none;
  }
  body.mobile-sidebar-open .sidebar-scrim{opacity:1;visibility:visible;pointer-events:auto}
  .layout>.main{min-height:calc(100dvh - 52px - var(--safe-top));padding-inline:var(--safe-left) var(--safe-right)}
  .container{width:min(1180px,calc(100% - 24px));padding:12px 0 max(20px,var(--safe-bottom))}
  .modal-card,:is(.ec-dialog,.ac-dialog){padding:16px}
}
/* Milestone 3 (A1): Access 3-tier feature matrix & stacking note */
.access-tier-matrix{margin-bottom:24px}
.access-tier-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.access-tier-card{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.badge.basic{background:color-mix(in srgb,var(--personal) 14%,var(--panel))!important;color:var(--personal)!important}
.access-tier-card.is-current{border:2px solid var(--accent);background:color-mix(in srgb,var(--accent) 7%,var(--panel))}
.access-tier-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.access-tier-head h3{margin:0;font-size:17px}
.access-tier-summary{margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.access-tier-features{margin:4px 0 0;padding-inline-start:18px;display:grid;gap:5px;font-size:13px;line-height:1.45}
.access-stacking-note{margin:14px 0 0;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--panel-soft);font-size:13px;line-height:1.5;color:var(--text)}
.access-tier-actions{margin-top:12px;display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:860px){.access-tier-grid{grid-template-columns:1fr}}

/* Milestone 4 (R1-R3): Monthly Ritual Strip, Toy Shelf, Collection Wall, Journal & Blindbox Cabinet */
.ws-ritual-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}
.ws-ritual-card{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);text-decoration:none;min-width:0;transition:border-color .16s ease,transform .16s ease}
.ws-ritual-card:hover{border-color:var(--accent);transform:translateY(-1px)}
.ws-ritual-card.is-warn{border-color:color-mix(in srgb,#d97706 55%,var(--line));background:color-mix(in srgb,#f59e0b 8%,var(--panel))}
.ws-ritual-kicker{font-size:12px;color:var(--muted);font-weight:600}
.ws-ritual-card strong{font-size:16px;line-height:1.35;color:var(--text);overflow-wrap:anywhere}
.ws-ritual-card small{font-size:12px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.ws-lab-tabs{margin:4px 0 14px;display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:18px;border-bottom:1px solid var(--line)}
.ws-lab-tabs::-webkit-scrollbar{display:none}
.ws-lab-tabs [role="tab"]{appearance:none;background:transparent;border:0;border-bottom:3px solid transparent;padding:10px 2px;font:inherit;font-weight:650;color:var(--muted);cursor:pointer;white-space:nowrap;flex:0 0 auto}
.ws-lab-tabs [role="tab"][aria-selected="true"]{color:var(--text);border-bottom-color:var(--accent)}
.ws-filter-bar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 14px}
.ws-filter-chip{padding:6px 12px;min-height:34px;border:1px solid var(--line);border-radius:999px;background:var(--panel-soft);color:var(--text);font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.ws-filter-chip.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 18%,var(--panel));font-weight:700}
.ws-shelf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.ws-shelf-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;background:var(--panel-soft);overflow:hidden;min-width:0}
.ws-shelf-media{position:relative;aspect-ratio:4/3;max-height:190px;background:color-mix(in srgb,var(--panel) 82%,var(--line));display:grid;place-items:center;overflow:hidden}
.ws-shelf-media img{width:100%;height:100%;object-fit:contain;display:block}
.ws-shelf-ph{font-size:18px;font-weight:800;color:var(--muted)}
.ws-shelf-badge{position:absolute;top:8px;inset-inline-start:8px;max-width:calc(100% - 16px);padding:3px 8px;border-radius:999px;background:rgba(24,32,26,.78);color:#fff;font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-shelf-body{padding:11px 12px 12px;display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.ws-shelf-body strong{font-size:14px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.ws-shelf-body small{font-size:12px}
.ws-shelf-actions{margin-top:auto;padding-top:6px;display:flex;flex-wrap:wrap;gap:6px}
.ws-shelf-actions .btn{flex:1 1 auto;min-height:36px;padding:6px 10px;font-size:12px;justify-content:center;white-space:normal}
.ws-shelf-pager{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:14px}
.ws-collection-block{margin-top:16px}
.ws-collection-block h3{margin:0 0 10px;font-size:16px}
.ws-collection-empty{padding:16px;border:1px dashed var(--line);border-radius:12px;background:var(--panel-soft);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.ws-collection-empty p{margin:0;color:var(--muted)}
.ws-treasure-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.ws-treasure-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;background:var(--panel-soft);overflow:hidden;min-width:0}
.ws-treasure-media{aspect-ratio:4/3;max-height:190px;padding:10px;background:radial-gradient(circle at 50% 42%,#fff 0%,#edf2e7 100%);display:flex;align-items:center;justify-content:center;overflow:hidden;font-weight:800;color:var(--muted)}
html[data-theme="dark"] .ws-treasure-media{background:radial-gradient(circle at 50% 42%,#243028 0%,#18211b 100%);color:#a8b8ac}
@media(prefers-color-scheme:dark){html[data-theme="system"] .ws-treasure-media{background:radial-gradient(circle at 50% 42%,#243028 0%,#18211b 100%);color:#a8b8ac}}
.ws-treasure-media img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;display:block;filter:drop-shadow(0 3px 8px rgba(0,0,0,.16))}
.ws-treasure-body{padding:10px 12px;display:flex;flex:1 1 auto;flex-direction:column;gap:6px}
.ws-treasure-type-chip{align-self:flex-start;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;background:color-mix(in srgb,var(--accent) 16%,var(--panel));border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line));color:var(--text)}
.ws-treasure-body strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.ws-treasure-body .btn{margin-top:auto}
#wsCultivationJournal .ppz-journal-wrap{display:flex;flex-direction:column;gap:10px}
#wsCultivationJournal .ppz-journal-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px}
#wsCultivationJournal .ppz-journal-progress{font-weight:750;font-size:14px}
#wsCultivationJournal .ppz-journal-sub{margin:0;font-size:12px;color:var(--muted)}
#wsCultivationJournal .ppz-journal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#wsCultivationJournal .ppz-journal-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;background:var(--panel-soft);color:var(--text);text-decoration:none;overflow:hidden;min-width:0}
#wsCultivationJournal .ppz-journal-card.is-unlocked{border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}
#wsCultivationJournal .ppz-journal-media{position:relative;aspect-ratio:1/1;background:#f3f6ef;display:grid;place-items:center;padding:10px}
html[data-theme="dark"] #wsCultivationJournal .ppz-journal-media{background:#18201b}
#wsCultivationJournal .ppz-journal-media img{width:100%;height:100%;object-fit:contain;display:block}
#wsCultivationJournal .ppz-journal-meta-row{display:flex;align-items:center;justify-content:space-between;gap:6px}
#wsCultivationJournal .ppz-journal-num{position:static;font-size:11px;font-weight:700;color:var(--muted)}
#wsCultivationJournal .ppz-journal-badge{position:static;padding:2px 8px;border-radius:999px;background:var(--accent);color:#182012;font-size:10px;font-weight:700;white-space:nowrap}
#wsCultivationJournal .ppz-journal-badge.is-upgrade{background:var(--panel);border:1px solid var(--line);color:var(--muted)}
#wsCultivationJournal .ppz-journal-body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:5px}
#wsCultivationJournal .ppz-journal-title,#wsCultivationJournal .ppz-journal-mystery{font-size:13px;line-height:1.35}
#wsCultivationJournal .ppz-journal-riddle{margin:0;font-size:12px;color:var(--muted);line-height:1.45;overflow-wrap:anywhere}

.bb-cabinet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.bb-cabinet-card{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--panel-soft);min-width:0}
.bb-cab-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.bb-cab-title{display:flex;flex-direction:column;gap:2px;min-width:0}
.bb-cab-title strong{font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.bb-cab-badges{display:flex;flex-wrap:wrap;gap:6px;flex:0 0 auto}
.bb-cab-thumbs{display:flex;flex-wrap:wrap;gap:8px}
.bb-cab-thumb-btn{width:64px;height:64px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--panel);cursor:pointer;display:grid;place-items:center;overflow:hidden}
.bb-cab-thumb-btn:hover{border-color:var(--accent)}
.bb-cab-thumb-btn img{width:100%;height:100%;object-fit:contain;display:block}
.bb-cab-actions{margin-top:auto;display:flex;flex-wrap:wrap;gap:8px}
.bb-cabinet-dialog{width:min(540px,calc(100vw - 24px));max-height:90dvh;overflow-y:auto;box-sizing:border-box;border:1px solid var(--line);border-radius:18px;padding:20px;background:var(--panel);color:var(--text)}
.bb-cabinet-dialog::backdrop{background:rgba(16,24,18,.52);backdrop-filter:blur(4px)}
.bb-cab-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.bb-cab-dialog-head h2{margin:0;font-size:18px}
.bb-lightbox-stage{aspect-ratio:1/1;max-height:56dvh;margin:0 auto 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel-soft);display:grid;place-items:center;overflow:hidden}
.bb-lightbox-stage img{width:100%;height:100%;object-fit:contain;display:block}
.bb-cab-dialog-foot{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.bb-poster-body{display:grid;gap:10px;margin-bottom:14px}
.bb-poster-nick{display:flex;align-items:center;gap:8px;font-size:13px}
@media(max-width:980px){
  .ws-ritual-strip,#wsCultivationJournal .ppz-journal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ws-shelf-grid,.ws-treasure-grid,.bb-cabinet-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  .ws-ritual-strip,#wsCultivationJournal .ppz-journal-grid{grid-template-columns:1fr}
  .ws-shelf-actions{gap:5px}
  .ws-shelf-actions .btn{flex:1 1 68px;width:auto;min-height:36px;padding:6px 8px;font-size:12px}
  .bb-cab-actions .btn{flex:1 1 120px}
}
@media(prefers-reduced-motion:reduce){
  .ws-ritual-card{transition:none}
}

/* X5, X6, X7, X10: Export Center quick ranges/labels, Share mobile CTA, Workspace search, Blindbox poster preview */
.ec-quick-ranges{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center}
.ec-icon-button.ec-action-btn{width:auto;min-width:40px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:12px;font-weight:600}
.ec-action-label{white-space:nowrap}
.cloud-entry-mobile-cta{margin:10px 0;width:100%;display:grid}
.cloud-entry-mobile-cta .cloud-entry-open,.cloud-entry-open.cloud-entry-primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:10px;background:var(--accent);color:var(--accent-ink,#243108);font-weight:700;text-decoration:none}
.cloud-entry-qr-details{width:100%;margin:8px 0;padding:8px 10px;border:1px solid var(--line);border-radius:10px}
.cloud-entry-qr-details summary{cursor:pointer;font-size:13px;font-weight:600}
.ws-shelf-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 14px}
.ws-shelf-toolbar .ws-filter-bar{margin:0}
.ws-shelf-search-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex:1 1 240px;justify-content:flex-end}
.ws-shelf-search{flex:1 1 160px;min-width:140px;max-width:260px;min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font:inherit;font-size:13px}
.ws-shelf-folder{min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font:inherit;font-size:13px;max-width:200px}
.mat-quick-add{min-height:34px;padding:5px 10px;font-size:12px}
.bb-poster-controls{display:grid;gap:10px}
.bb-poster-themes{display:flex;flex-wrap:wrap;gap:6px}
.bb-poster-theme-btn{padding:6px 11px;min-height:34px;border:1px solid var(--line);border-radius:999px;background:var(--panel-soft);color:var(--text);font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.bb-poster-theme-btn[aria-pressed="true"]{border-color:var(--accent);background:var(--accent);color:var(--accent-ink,#243108)}
.bb-poster-live-preview{max-height:240px;width:auto;max-width:100%;margin:0 auto;display:block;border:1px solid var(--line);border-radius:12px;background:var(--panel-soft)}
.ppz-journal-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.ppz-journal-filter-btn{padding:5px 11px;min-height:32px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--text);font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.ppz-journal-filter-btn.active{border-color:var(--accent);background:var(--accent);color:var(--accent-ink,#243108)}
.ppz-journal-pinned-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;margin-bottom:10px;border:1px solid var(--line);border-radius:10px;background:var(--panel-soft);font-size:12px}
.ppz-journal-card-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}


/* Wave 3 UX & KISS additions */
.ws-shelf-media { aspect-ratio: auto; height: 152px; padding: 12px; display: flex; align-items: center; justify-content: center; }
.ws-shelf-media img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: auto; }
.bb-lightbox-stage { max-width: min(440px, 100%); margin: 0 auto 14px; }
.bb-poster-body { min-width: 0; }
.bb-poster-preview-wrap { max-width: 100%; min-width: 0; overflow: hidden; }
.bb-poster-preview-wrap img, [data-bb-p-preview] { display: block; width: 100%; max-width: 100%; height: auto; max-height: 280px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-soft); }
.bb-poster-field { display: grid; gap: 6px; min-width: 0; }
.bb-poster-field input { width: 100%; min-width: 0; }
.p280-quota-inline { margin-top: 6px; }
.bb-cab-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bb-cab-search { flex: 1 1 220px; max-width: 320px; min-height: 36px; }
.bb-cab-pager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.field-help-block { display: block; margin-top: 4px; color: var(--muted); }
.mat-hex-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.mat-hex-edit input[type="color"] { width: 38px; height: 32px; padding: 2px; border-radius: 6px; border: 1px solid var(--border); background: transparent; cursor: pointer; }
.mat-hex-edit input[type="text"] { width: 104px; font-family: ui-monospace, monospace; text-transform: uppercase; }
.mat-tech-details { margin-top: 10px; }
.mat-tech-details summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.display-record-thumb { margin: 8px 0; height: 108px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface-alt, rgba(128,128,128,.08)); overflow: hidden; }
.display-record-thumb img { max-height: 100%; max-width: 100%; object-fit: contain; }
.version-power-toggle { display: inline-flex; align-items: center; gap: 8px; }
.version-power-state { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }

/* R10 Portal & Mobile KISS UX (Rules 1-3) */
.user-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
}
@media(max-width:640px) {
  .topbar .user-chip {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  .topbar .user-chip-copy,
  .topbar .user-chip-chevron {
    display: none !important;
  }
  .topbar .user-chip-icon {
    display: inline-flex !important;
    color: var(--text);
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .ws-ritual-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 14px;
  }
  .ws-ritual-card {
    padding: 10px 12px;
    gap: 2px;
    border-radius: 12px;
  }
  .ws-ritual-card strong {
    font-size: 14px;
    line-height: 1.3;
  }
  .ws-ritual-card small {
    font-size: 11px;
  }
  .ml-mobile-hide-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .toolbar .btn,
  .actions .btn,
  .bb-cab-pager .btn,
  .list-pager .btn {
    font-size: 12px;
    padding: 6px 10px;
    min-height: 36px;
    line-height: 1.25;
  }
  .p280-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .r16-prv-hero-left {
    flex: 0 0 auto;
    width: 100%;
  }
  .bb-cab-toolbar {
    gap: 8px;
  }
  .bb-cab-toolbar .bb-cab-pager {
    width: 100%;
  }
  .bb-cab-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }
  #privateResSearchForm .bb-cab-pager:last-child {
    flex-wrap: nowrap;
  }
  #privateResSearchForm .bb-cab-search {
    width: auto;
    flex: 1 1 180px;
    min-width: 0;
  }
  .ws-shelf-search-row {
    width: 100%;
    justify-content: stretch;
  }
  .ws-shelf-search,
  .ws-shelf-folder {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
  }
  .table-wrap:has(table.ml-mobile-cards) {
    overflow-x: visible !important;
    background: transparent !important;
  }
  table.ml-mobile-cards {
    width: 100% !important;
    min-width: 0 !important;
    display: block;
  }
  table.ml-mobile-cards thead {
    display: none !important;
  }
  table.ml-mobile-cards tbody {
    display: grid;
    gap: 10px;
  }
  table.ml-mobile-cards tr {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--line) !important;
    border-radius: 12px;
    background: var(--panel);
  }
  table.ml-mobile-cards td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 0 !important;
    border: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: end;
  }
  table.ml-mobile-cards td[data-label]::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-align: start;
    flex: 0 0 auto;
    max-width: 44%;
  }
  table.ml-mobile-cards td > *,
  table.ml-mobile-cards td.user-summary {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  table.ml-mobile-cards td.user-summary {
    flex-direction: column;
    align-items: flex-end;
  }
  table.ml-mobile-cards td.user-summary::before {
    align-self: flex-start;
  }
  table.ml-mobile-cards td .actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  table.ml-mobile-cards td[colspan] {
    display: block;
    text-align: center;
    padding: 14px 8px !important;
  }
  table.ml-mobile-cards td[colspan]::before {
    content: none !important;
  }
}

/* R12 Portal contrast, subnavigation, badges, icon visibility & compact sidebar snap */
.btn.small.ok,
.filter-tabs .btn.active-filter,
.ppz-private-admin-filters .btn.is-active,
.ac-themes .btn[aria-pressed="true"] {
  font-weight: 700;
}
.filter-tabs .btn.active-filter {
  background: var(--text);
  border-color: var(--text);
  color: var(--panel);
}
.ac-themes .btn[aria-pressed="true"],
.ppz-private-admin-filters .btn.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}
.btn.small.ok {
  background: var(--status-success-bg);
  border-color: color-mix(in srgb, var(--ok) 45%, var(--line));
  color: var(--status-success-ink);
}
.ml-subnav.ml-subnav > :is(button, a) {
  border: 0;
  border-block-end: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.ml-subnav.ml-subnav > :is(button, a):hover {
  background: transparent;
  color: var(--text);
}
.ml-subnav.ml-subnav > :is(button, a):is([aria-selected="true"], [aria-pressed="true"], [aria-current="page"]) {
  background: transparent;
  color: var(--text);
  border-block-end-color: var(--accent);
  font-weight: 700;
}
html[data-theme="dark"] .filter-tabs .btn.active-filter {
  background: var(--accent);
  border-color: var(--accent);
  color: #202522;
}
html[data-theme="dark"] .ac-themes .btn[aria-pressed="true"],
html[data-theme="dark"] .ppz-private-admin-filters .btn.is-active {
  background: #39441f;
  border-color: var(--accent);
  color: #eef7cf;
}
html[data-theme="dark"] .btn.small.ok {
  background: #244b37;
  border-color: #4f8f69;
  color: #b5f0cb;
}
html[data-theme="dark"] .ml-subnav.ml-subnav > :is(button, a) {
  border: 0;
  border-block-end: 3px solid transparent;
  background: transparent;
  color: var(--muted);
}
html[data-theme="dark"] .ml-subnav.ml-subnav > :is(button, a):hover {
  background: transparent;
  color: var(--text);
}
html[data-theme="dark"] .ml-subnav.ml-subnav > :is(button, a):is([aria-selected="true"], [aria-pressed="true"], [aria-current="page"]) {
  background: transparent;
  color: var(--text);
  border-block-end-color: var(--accent);
}
html[data-theme="dark"] .badge.admin-source {
  background: color-mix(in srgb, #9b8cf5 22%, var(--panel));
  color: #cfc6ff;
}
.badge.personal,
.badge.basic {
  background: color-mix(in srgb, #1d5ca3 12%, var(--panel)) !important;
  color: #1d5ca3 !important;
}
html[data-theme="dark"] .badge.personal,
html[data-theme="dark"] .badge.basic {
  background: color-mix(in srgb, #7ec0ff 18%, var(--panel)) !important;
  color: #7ec0ff !important;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .filter-tabs .btn.active-filter {
    background: var(--accent);
    border-color: var(--accent);
    color: #202522;
  }
  html[data-theme="system"] .ac-themes .btn[aria-pressed="true"],
  html[data-theme="system"] .ppz-private-admin-filters .btn.is-active {
    background: #39441f;
    border-color: var(--accent);
    color: #eef7cf;
  }
  html[data-theme="system"] .btn.small.ok {
    background: #244b37;
    border-color: #4f8f69;
    color: #b5f0cb;
  }
  html[data-theme="system"] .ml-subnav.ml-subnav > :is(button, a) {
    border: 0;
    border-block-end: 3px solid transparent;
    background: transparent;
    color: var(--muted);
  }
  html[data-theme="system"] .ml-subnav.ml-subnav > :is(button, a):hover {
    background: transparent;
    color: var(--text);
  }
  html[data-theme="system"] .ml-subnav.ml-subnav > :is(button, a):is([aria-selected="true"], [aria-pressed="true"], [aria-current="page"]) {
    background: transparent;
    color: var(--text);
    border-block-end-color: var(--accent);
  }
  html[data-theme="system"] .badge.admin-source {
    background: color-mix(in srgb, #9b8cf5 22%, var(--panel));
    color: #cfc6ff;
  }
  html[data-theme="system"] .badge.personal,
  html[data-theme="system"] .badge.basic {
    background: color-mix(in srgb, #7ec0ff 18%, var(--panel)) !important;
    color: #7ec0ff !important;
  }
}
.icon-btn.theme-toggle {
  color: var(--text);
}
.icon-btn.theme-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex: none;
}
.table-wrap .roster-table th,
.ml-table-wrap .roster-table th {
  white-space: normal;
  overflow-wrap: break-word;
}
@media (max-width: 800px), (max-width: 1000px) and (max-height: 500px) {
  body:not(.mobile-sidebar-open) .sidebar {
    visibility: hidden;
    pointer-events: none;
    transition: transform .2s ease, visibility 0s linear .2s;
  }
  body.mobile-sidebar-open .sidebar {
    visibility: visible;
    pointer-events: auto;
    transition: transform .2s ease, visibility 0s;
  }
  body.sidebar-syncing .sidebar {
    transition: none !important;
  }
}
html[data-theme="dark"] #wsCultivationJournal .ppz-journal-card:not(.is-unlocked) .ppz-journal-media {
  background: #1f2a23;
}
html[data-theme="dark"] #wsCultivationJournal .ppz-journal-card:not(.is-unlocked) .ppz-journal-num {
  color: var(--muted);
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] #wsCultivationJournal .ppz-journal-card:not(.is-unlocked) .ppz-journal-media {
    background: #1f2a23;
  }
  html[data-theme="system"] #wsCultivationJournal .ppz-journal-card:not(.is-unlocked) .ppz-journal-num {
    color: var(--muted);
  }
}

/* R13: Cap oversized model/preset thumbnails to max 98px (Export Center parity); keep <=98px untouched */
.ws-shelf-grid,
.ws-treasure-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
@media (max-width: 980px) {
  .ws-shelf-grid,
  .ws-treasure-grid {
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  }
}
@media (max-width: 520px) {
  .ws-shelf-grid,
  .ws-treasure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (max-width: 340px) {
  .ws-shelf-grid,
  .ws-treasure-grid {
    grid-template-columns: 1fr;
  }
}
.ws-shelf-media,
.ws-treasure-media {
  aspect-ratio: auto;
  height: 118px;
  max-height: 118px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.ws-shelf-media img,
.ws-treasure-media img {
  width: auto;
  height: auto;
  max-width: min(100%, 98px);
  max-height: 98px;
  object-fit: contain;
  image-rendering: auto;
}
#wsCultivationJournal .ppz-journal-grid {
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
}
@media (max-width: 520px) {
  #wsCultivationJournal .ppz-journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}
@media (max-width: 340px) {
  #wsCultivationJournal .ppz-journal-grid {
    grid-template-columns: 1fr;
  }
}
#wsCultivationJournal .ppz-journal-media {
  aspect-ratio: auto;
  height: 118px;
  padding: 10px;
  box-sizing: border-box;
}
#wsCultivationJournal .ppz-journal-media img {
  width: auto;
  height: auto;
  max-width: min(100%, 98px);
  max-height: 98px;
  object-fit: contain;
}
.display-record-thumb {
  height: 108px;
  padding: 5px;
  box-sizing: border-box;
}
.display-record-thumb img {
  width: auto;
  height: auto;
  max-width: min(100%, 98px);
  max-height: 98px;
  object-fit: contain;
}

/* R16 Private Models 3D Studio (/account/private-resources) */
.r16-prv-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.r16-prv-hero-left {
  flex: 1 1 360px;
  min-width: 0;
}
@media (max-width: 640px) {
  .r16-prv-hero-left {
    flex: 0 0 auto;
    width: 100%;
  }
}
.r16-prv-quota-wrap {
  max-width: 460px;
  margin-top: 10px;
}
.r16-prv-quota-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.r16-prv-quota-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(140, 155, 140, .24);
  overflow: hidden;
}
.r16-prv-quota-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #84a826, #b7e54e);
  min-width: 4px;
  transition: width .25s ease;
}
.r16-prv-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#r16PrvUploadBtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}
.r16-prv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}
@media (max-width: 1120px) {
  .r16-prv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .r16-prv-grid {
    grid-template-columns: 1fr;
  }
}
.r16-prv-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 6px 18px rgba(24, 42, 20, .07);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
html[data-theme="dark"] .r16-prv-card {
  background: linear-gradient(180deg, rgba(28, 37, 30, .94) 0%, rgba(21, 29, 23, .98) 100%);
  border-color: rgba(140, 160, 140, .22);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .20);
}
.r16-prv-card:hover {
  transform: translateY(-2px);
  border-color: rgba(132, 168, 38, .55);
}
.r16-prv-card.is-disabled {
  opacity: .88;
}
.r16-prv-card.is-deleted {
  border-style: dashed;
  border-color: rgba(160, 172, 160, .34);
  opacity: .88;
}
.r16-prv-card.is-deleted:hover {
  transform: none;
}
.r16-prv-stage {
  position: relative;
  width: 100%;
  height: 214px;
  background: #f4f9ec;
  border-bottom: 1.5px solid rgba(155, 209, 46, .42);
  overflow: hidden;
  display: grid;
  place-items: center;
}
html[data-theme="dark"] .r16-prv-stage {
  background: radial-gradient(70% 70% at 50% 46%, #222e26 0%, #17201a 100%);
  border-bottom-color: rgba(155, 209, 46, .30);
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .r16-prv-stage {
    background: radial-gradient(70% 70% at 50% 46%, #222e26 0%, #17201a 100%);
    border-bottom-color: rgba(155, 209, 46, .30);
  }
}
.r16-prv-canvas-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.r16-prv-stage-poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.r16-prv-trace-stage {
  background: radial-gradient(70% 70% at 50% 50%, #edf1ea 0%, #dde4da 100%);
  border-bottom-color: rgba(140, 155, 140, .28);
}
html[data-theme="dark"] .r16-prv-trace-stage {
  background: radial-gradient(70% 70% at 50% 50%, #242b25 0%, #191f1a 100%);
}
.r16-prv-trace-img {
  width: 152px;
  height: 152px;
  object-fit: contain;
  filter: grayscale(58%) contrast(.94);
  opacity: .80;
  user-select: none;
  pointer-events: none;
}
.r16-prv-trace-fallback {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  opacity: .42;
}
.r16-prv-trace-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, .90);
  color: #465346;
  border: 1px solid rgba(24, 38, 22, .14);
}
html[data-theme="dark"] .r16-prv-trace-pill {
  background: rgba(20, 26, 21, .76);
  color: #dbe3da;
  border-color: rgba(255, 255, 255, .14);
}
.r16-prv-group-pills {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.r16-prv-group-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(20, 27, 21, .82);
  color: #f1f5ef;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}
.r16-prv-group-pill.is-active {
  background: #a6d63b;
  color: #131c08;
  border-color: #a6d63b;
}
.r16-prv-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  flex-shrink: 0;
}
.r16-prv-drag-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(20, 27, 21, .74);
  color: #eff4ed;
  pointer-events: none;
  opacity: 0;
  transition: opacity .16s ease;
}
.r16-prv-stage:hover .r16-prv-drag-hint {
  opacity: 1;
}
.r16-prv-body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.r16-prv-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.r16-prv-name {
  font-size: 14.5px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.r16-prv-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.r16-prv-status.is-ready {
  background: rgba(132, 168, 38, .16);
  color: #3a5607;
  border: 1px solid rgba(110, 148, 22, .32);
}
html[data-theme="dark"] .r16-prv-status.is-ready {
  background: rgba(132, 168, 38, .22);
  color: #b7e54e;
  border-color: rgba(166, 214, 59, .38);
}
.r16-prv-status.is-disabled,
.r16-prv-status.is-warn {
  background: rgba(140, 155, 140, .18);
  color: #536052;
  border: 1px solid rgba(140, 155, 140, .28);
}
html[data-theme="dark"] .r16-prv-status.is-disabled,
html[data-theme="dark"] .r16-prv-status.is-warn {
  color: #c2cdc1;
}
.r16-prv-status.is-deleted {
  background: rgba(181, 38, 50, .10);
  color: #a1202c;
  border: 1px solid rgba(181, 38, 50, .24);
}
html[data-theme="dark"] .r16-prv-status.is-deleted {
  background: rgba(239, 109, 118, .15);
  color: #ef8a92;
  border-color: rgba(239, 109, 118, .32);
}
.r16-prv-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.r16-prv-err-note {
  margin: 0;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.45;
  background: rgba(181, 38, 50, .09);
  color: #a1202c;
  border: 1px solid rgba(181, 38, 50, .24);
}
html[data-theme="dark"] .r16-prv-err-note {
  background: rgba(239, 109, 118, .14);
  color: #f3a1a8;
  border-color: rgba(239, 109, 118, .32);
}
.r16-prv-colors {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid rgba(88, 114, 72, .20);
  background: rgba(242, 246, 238, .85);
}
html[data-theme="dark"] .r16-prv-colors {
  background: rgba(15, 22, 17, .55);
  border-color: rgba(140, 165, 138, .20);
}
.r16-prv-colors-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}
.r16-prv-colors-label {
  font-size: 11.5px;
  font-weight: 700;
  opacity: .80;
  white-space: nowrap;
  flex-shrink: 0;
}
.r16-prv-color-slots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 100%;
}
.r16-prv-color-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  min-height: 0;
  padding: 0 5px;
  border-radius: 6px;
  border: 1px solid rgba(88, 114, 72, .22);
  background: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .14s ease, background .14s ease;
}
html[data-theme="dark"] .r16-prv-color-item {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(150, 172, 146, .24);
}
.r16-prv-color-item:hover,
.r16-prv-color-item:focus-within {
  border-color: rgba(102, 146, 18, .65);
  background: rgba(132, 168, 38, .08);
}
.r16-prv-color-slot-name {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  opacity: .88;
}
input[type="color"].r16-prv-color-input {
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 15px !important;
  min-height: 0 !important;
  max-height: 15px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 22px !important;
  border: 1px solid rgba(40, 56, 36, .30) !important;
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  vertical-align: middle;
  cursor: pointer;
}
html[data-theme="dark"] input[type="color"].r16-prv-color-input {
  border-color: rgba(255, 255, 255, .32) !important;
}
input[type="color"].r16-prv-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
  border: none;
}
input[type="color"].r16-prv-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 3px;
}
input[type="color"].r16-prv-color-input::-moz-color-swatch {
  border: none;
  border-radius: 3px;
}
.r16-prv-save-colors {
  font-size: 11px !important;
  padding: 3px 8px !important;
  border-radius: 7px !important;
  height: 24px !important;
  min-height: 0 !important;
  line-height: 1 !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.r16-prv-save-colors:disabled {
  opacity: .56;
  cursor: default;
}
.r16-prv-save-colors.is-dirty {
  background: #b2e23b !important;
  color: #142108 !important;
  border-color: #b2e23b !important;
  font-weight: 800;
  opacity: 1;
}
.r16-prv-save-colors.is-saved {
  color: #3a5607 !important;
  border-color: rgba(96, 136, 22, .45) !important;
  opacity: 1;
}
html[data-theme="dark"] .r16-prv-save-colors.is-saved {
  color: #b7e54e !important;
  border-color: rgba(166, 214, 59, .55) !important;
}
.r16-prv-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.r16-prv-actions .btn {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 9px;
}
.r16-prv-actions .r16-prv-use {
  flex: 1;
  justify-content: center;
}
.r16-prv-danger {
  color: #b52632 !important;
  border-color: rgba(181, 38, 50, .28) !important;
}
html[data-theme="dark"] .r16-prv-danger {
  color: #ef6d76 !important;
  border-color: rgba(239, 109, 118, .32) !important;
}
.r16-prv-danger:hover {
  background: rgba(239, 109, 118, .12) !important;
}
.r16-prv-trace-footer {
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(140, 155, 140, .22);
  background: rgba(140, 155, 140, .07);
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}
dialog.r16-prv-dialog {
  max-width: 500px;
  width: calc(100% - 32px);
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  padding: 20px 22px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .32);
}
dialog.r16-prv-dialog::backdrop {
  background: rgba(10, 15, 11, .62);
  backdrop-filter: blur(4px);
}
dialog.r16-prv-dialog h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}
dialog.r16-prv-dialog .r16-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.r16-prv-dialog-err {
  margin: 10px 0 0;
  color: #b52632;
  font-size: 12.5px;
  font-weight: 600;
}
html[data-theme="dark"] .r16-prv-dialog-err {
  color: #ff958b;
}
.r16-upload-tips {
  margin: 2px 0 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(102, 146, 18, .28);
  background: rgba(132, 168, 38, .10);
  font-size: 12.5px;
  line-height: 1.55;
}
html[data-theme="dark"] .r16-upload-tips {
  background: rgba(166, 214, 59, .08);
  border-color: rgba(166, 214, 59, .30);
}
.r16-upload-tips-title {
  font-size: 12px;
  font-weight: 800;
  color: #3a5607;
  margin-bottom: 5px;
}
html[data-theme="dark"] .r16-upload-tips-title {
  color: #b7e54e;
}
.r16-upload-tips ul {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.r16-upload-drop {
  display: block;
  border: 1.5px dashed rgba(132, 168, 38, .55);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  background: rgba(166, 214, 59, .06);
  cursor: pointer;
}
.r16-upload-drop:hover,
.r16-upload-drop.is-drag {
  background: rgba(166, 214, 59, .14);
  border-color: #a6d63b;
}
.r16-upload-drop input[type="file"] {
  display: none;
}
.r16-upload-drop-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.r16-upload-drop-hint {
  font-size: 12px;
  color: var(--muted);
}
.r16-upload-progress {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
}
.r16-upload-prog-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.r16-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.r16-impact-cell {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  text-align: center;
}
.r16-impact-cell strong {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}
.r16-impact-cell span {
  font-size: 11px;
  color: var(--muted);
}
.r16-impact-notes {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* R16 Studio Workspace (/account/workspace) Hero + Top Equal-Tier Quick Command Dock */
.r16-ws-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.95fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(118, 162, 28, .28);
  background:
    radial-gradient(90% 130% at 92% -10%, rgba(166, 214, 59, .24), transparent 58%),
    radial-gradient(60% 100% at 0% 100%, rgba(132, 168, 38, .12), transparent 62%),
    linear-gradient(135deg, #ffffff 0%, #f5f9ef 60%, #eef5e4 100%);
  color: #162018;
  box-shadow: 0 14px 32px rgba(32, 54, 24, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
}
html[data-theme="dark"] .r16-ws-hero {
  border-color: rgba(155, 209, 46, .28);
  background:
    radial-gradient(90% 130% at 92% -10%, rgba(166, 214, 59, .20), transparent 58%),
    radial-gradient(60% 100% at 0% 100%, rgba(79, 134, 65, .18), transparent 62%),
    linear-gradient(135deg, #162018 0%, #1c281f 55%, #172219 100%);
  color: #f0f5ee;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.r16-ws-hero-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.r16-ws-emblem {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #a6d63b 0%, #7da621 100%);
  box-shadow: 0 10px 24px rgba(166, 214, 59, .30), inset 0 1px 1px rgba(255, 255, 255, .45);
  padding: 8px;
}
.r16-ws-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.r16-ws-hero-copy {
  min-width: 0;
  flex: 1;
}
.r16-ws-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.r16-ws-brand-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #4f730b;
}
html[data-theme="dark"] .r16-ws-brand-tag {
  color: #b7e54e;
}
.r16-ws-tier-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(132, 168, 38, .14);
  border: 1px solid rgba(110, 148, 22, .30);
  color: #3a5607;
}
html[data-theme="dark"] .r16-ws-tier-pill {
  border-color: rgba(166, 214, 59, .36);
  background: rgba(166, 214, 59, .14);
  color: #d6f588;
}
.r16-ws-hero-copy h1 {
  margin: 0 0 5px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.r16-ws-hero-copy p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
}
.r16-ws-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.r16-ws-cta-primary {
  border-radius: 12px !important;
  font-weight: 800 !important;
}
.r16-ws-hud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 !important;
}
.r16-ws-hud-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, .80);
  border: 1px solid rgba(24, 38, 22, .11);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
  min-width: 0;
}
html[data-theme="dark"] .r16-ws-hud-card {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .10);
}
.r16-ws-hud-card:hover {
  border-color: rgba(166, 214, 59, .55);
  background: rgba(166, 214, 59, .10);
  transform: translateY(-1px);
}
.r16-ws-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  opacity: .82;
}
.r16-ws-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a6d63b;
  box-shadow: 0 0 0 3px rgba(166, 214, 59, .24);
  flex-shrink: 0;
}
.r16-ws-hud-val {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}
.r16-ws-hud-sub {
  font-size: 11.5px;
  line-height: 1.35;
  opacity: .76;
}
.r16-ws-mini-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(140, 155, 140, .24);
  overflow: hidden;
  margin-top: 2px;
}
.r16-ws-mini-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #84a826, #b7e54e);
}
.r16-ws-dock-empty-hint {
  margin: 0 0 10px;
  font-size: 13px;
}
.r16-ws-dock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.r16-ws-dock-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 16px;
  border-radius: 15px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(24, 38, 22, .11);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(24, 42, 20, .06);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  min-width: 0;
}
html[data-theme="dark"] .r16-ws-dock-tile {
  border-color: rgba(140, 160, 140, .18);
  background: linear-gradient(180deg, rgba(30, 40, 32, .92) 0%, rgba(23, 31, 25, .96) 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}
.r16-ws-dock-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(166, 214, 59, .62);
  box-shadow: 0 10px 22px rgba(64, 96, 18, .12), 0 0 0 1px rgba(132, 168, 38, .22);
}
html[data-theme="dark"] .r16-ws-dock-tile:hover {
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22), 0 0 0 1px rgba(166, 214, 59, .18);
}
.r16-ws-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.r16-ws-dock-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(132, 168, 38, .13);
  color: #4d700b;
  border: 1px solid rgba(132, 168, 38, .24);
  flex-shrink: 0;
}
html[data-theme="dark"] .r16-ws-dock-ico {
  background: rgba(166, 214, 59, .14);
  color: #b7e54e;
  border-color: rgba(166, 214, 59, .24);
}
.r16-ws-dock-ico svg {
  width: 17px;
  height: 17px;
}
.r16-ws-dock-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f6ea;
  border: 1px solid rgba(24, 38, 22, .10);
  color: #2f422b;
  white-space: nowrap;
}
html[data-theme="dark"] .r16-ws-dock-badge {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .10);
  color: #d7e2d5;
}
.r16-ws-dock-badge.is-accent {
  background: rgba(132, 168, 38, .16);
  border-color: rgba(110, 148, 22, .32);
  color: #3a5607;
}
html[data-theme="dark"] .r16-ws-dock-badge.is-accent {
  background: rgba(166, 214, 59, .18);
  border-color: rgba(166, 214, 59, .36);
  color: #ccf26f;
}
.r16-ws-dock-title {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
}
.r16-ws-dock-sub {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: -4px;
}
.r16-ws-grid {
  display: block !important;
}
@media (max-width: 960px) {
  .r16-ws-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }
}
@media (max-width: 600px) {
  .r16-ws-hud {
    grid-template-columns: 1fr;
  }
  .r16-ws-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .r16-ws-hero {
    border-color: rgba(155, 209, 46, .28);
    background:
      radial-gradient(90% 130% at 92% -10%, rgba(166, 214, 59, .20), transparent 58%),
      radial-gradient(60% 100% at 0% 100%, rgba(79, 134, 65, .18), transparent 62%),
      linear-gradient(135deg, #162018 0%, #1c281f 55%, #172219 100%);
    color: #f0f5ee;
  }
  html[data-theme="system"] .r16-ws-brand-tag { color: #b7e54e; }
  html[data-theme="system"] .r16-ws-tier-pill { border-color: rgba(166, 214, 59, .36); background: rgba(166, 214, 59, .14); color: #d6f588; }
  html[data-theme="system"] .r16-ws-hud-card { background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .10); }
  html[data-theme="system"] .r16-ws-dock-tile { border-color: rgba(140, 160, 140, .18); background: linear-gradient(180deg, rgba(30, 40, 32, .92) 0%, rgba(23, 31, 25, .96) 100%); }
  html[data-theme="system"] .r16-ws-dock-ico { background: rgba(166, 214, 59, .14); color: #b7e54e; border-color: rgba(166, 214, 59, .24); }
  html[data-theme="system"] .r16-ws-dock-badge { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .10); color: #d7e2d5; }
  html[data-theme="system"] .r16-ws-dock-badge.is-accent { background: rgba(166, 214, 59, .18); border-color: rgba(166, 214, 59, .36); color: #ccf26f; }
}

/* R16 P2-1: Brightened dark-mode :disabled button legibility */
html[data-theme="dark"] .btn:disabled,
html[data-theme="dark"] button:disabled {
  opacity: .76;
  color: #cad8cc;
  background: #26352c;
  border-color: #4a6152;
}
html[data-theme="dark"] .btn.primary:disabled {
  opacity: .82;
  background: #2c3d30;
  color: #d5e2d7;
  border-color: #546d5a;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .btn:disabled,
  html[data-theme="system"] button:disabled {
    opacity: .76;
    color: #cad8cc;
    background: #26352c;
    border-color: #4a6152;
  }
  html[data-theme="system"] .btn.primary:disabled {
    opacity: .82;
    background: #2c3d30;
    color: #d5e2d7;
    border-color: #546d5a;
  }
}
