@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap');

:root {
    --border-radius-sm: 3px;
    --border-radius-lg: 8px;
    --border-radius-xl: 30px;
    --border-width: 1px;
    --font-family: "Inter", sans-serif;
    --radius-2: 2px;
    --radius-3: 3px;
    --radius-4: 4px;
    --radius-5: 5px;
    --radius-6: 6px;
    --radius-7: 7px;
    --radius-8: 8px;
    --radius-9: 9px;
    --radius-10: 10px;
    --radius-11: 11px;
    --radius-12: 12px;
    --radius-14: 14px;
    --radius-16: 16px;
    --radius-20: 20px;
    --radius-round: 50%;
    --radius-pill: 1000000px;

    --bg-primary:   #161616;
    --bg-secondary: #26282B;
    --bg-hover:     #3C3D43;
    --accent:       #0A84FF;

    --background-color-primary:   var(--bg-primary);
    --background-color-secondary: var(--bg-secondary);
    --background-color-hover:     var(--bg-hover);
    --border-color-active:        var(--accent);

    --text-primary:   #f0f0f0;
    --text-secondary: #a0a0a8;
    --text-muted:     #606068;

    --border-subtle:      rgba(255,255,255,0.07);
    --border-color:       #888888;
    --border-color-focus: var(--accent);
    --border-color-hover: var(--bg-hover);

    --p-accent: var(--accent);

    --color-gradient: linear-gradient(90deg, #50A7FF 0%, #1060B1 80%);

    --shadow-2xs: rgba(0,0,0,0.25);
    --shadow-xs:  rgba(0,0,0,0.35);
    --shadow-sm:  rgba(0,0,0,0.40);
    --shadow-md:  rgba(0,0,0,0.50);
    --shadow-lg:  rgba(0,0,0,0.55);
    --shadow-xl:  rgba(0,0,0,0.60);

    --surface-02: rgba(255,255,255,0.02);
    --surface-04: rgba(255,255,255,0.04);
    --surface-08: rgba(255,255,255,0.08);
    --surface-12: rgba(255,255,255,0.12);
    --surface-13: rgba(255,255,255,0.13);
    --surface-15: rgba(255,255,255,0.15);
    --surface-22: rgba(255,255,255,0.22);
    --surface-25: rgba(255,255,255,0.25);
    --surface-30: rgba(255,255,255,0.30);
    --surface-35: rgba(255,255,255,0.35);
    --surface-50: rgba(255,255,255,0.50);
    --surface-55: rgba(255,255,255,0.55);
    --surface-60: rgba(255,255,255,0.60);
    --surface-80: rgba(255,255,255,0.80);
    --surface-85: rgba(255,255,255,0.85);

    --accent-glow:    rgba(10,132,255,0.20);
    --accent-tint-15: rgba(10,132,255,0.15);
    --accent-tint-25: rgba(10,132,255,0.25);
    --accent-tint-30: rgba(10,132,255,0.30);
    --accent-tint-35: rgba(10,132,255,0.35);
    --accent-light:   #80c4ff;

    --color-success:       #4ade80;
    --color-warning:       #facc15;
    --color-danger:        #f87171;
    --color-danger-solid:  #ff453a;
    --color-danger-tint:   rgba(255,69,58,0.12);
    --color-danger-border: rgba(255,69,58,0.25);

    --color-white: #fff;
    --color-black: #000;

    --overlay-scrim: rgba(0,0,0,0.55);
    --accent-hover:  #1b8eff;

    --color-danger-soft:    #ff6961;
    --color-danger-tint-18: rgba(255,69,58,0.18);
    --color-danger-tint-22: rgba(255,69,58,0.22);

    --color-success-solid:  #30d158;
    --color-success-tint:   rgba(48,209,88,0.15);
    --color-success-border: rgba(48,209,88,0.30);

    --scrollbar-thumb: #3a3a40;
    --toggle-thumb:    #fff;
    --handle-bg:       #f5f5f5;
    --cp-input-focus:  #6a6a72;
    --cp-icon-dim:     #b9b9c0;
    --cp-icon-muted:   #cfcfd6;

    --marker-orange: #ffb13b;
    --marker-purple: #f3e7ff;
    --marker-orange-tint:   rgba(255,177,59,0.18);
    --marker-orange-border: rgba(255,177,59,0.30);

    --preview-night-from:  #140f1b;
    --preview-night-via:   #1a1720;
    --preview-night-to:    #101015;
    --preview-night-glow:  rgba(180,102,255,0.30);
    --preview-ocean-from:  #9fbfe0;
    --preview-ocean-via:   #6f9bbd;
    --preview-ocean-to:    #5981a3;
    --preview-ocean-glow:  rgba(0,183,255,0.30);
    --preview-forest-from: #4d6e2a;
    --preview-forest-via:  #2d5627;
    --preview-forest-to:   #1f4220;
    --preview-forest-glow: rgba(120,214,80,0.32);













}
.theme-minecraft {
    /* Sharp corners */
    --border-radius-sm: 0;
    --border-radius-lg: 0;
    --border-radius-xl: 0;
    --radius-2: 0;
    --radius-3: 0;
    --radius-4: 0;
    --radius-5: 0;
    --radius-6: 0;
    --radius-7: 0;
    --radius-8: 0;
    --radius-9: 0;
    --radius-10: 0;
    --radius-11: 0;
    --radius-12: 0;
    --radius-14: 0;
    --radius-16: 0;
    --radius-20: 0;
    --radius-round: 0;
    --radius-pill: 0;

    /* Background */
    --bg-primary:   rgba(18, 18, 18, 0.88);
    --bg-secondary: #292929;
    --bg-hover:     #3d3d3d;

    /* Accent */
    --accent:       #78b94b;
    --accent-hover: #8dcc5c;
    --accent-glow:  rgba(120, 185, 75, 0.20);
    --accent-tint-15: rgba(120, 185, 75, 0.15);
    --accent-tint-25: rgba(120, 185, 75, 0.25);
    --accent-tint-30: rgba(120, 185, 75, 0.30);
    --accent-tint-35: rgba(120, 185, 75, 0.35);
    --accent-light: #b0d990;

    --color-gradient:
            linear-gradient(90deg, #8dcc5c 0%, #4c8739 100%);

    /* Text */
    --text-primary:   #eeeeee;
    --text-secondary: #b5b5b5;
    --text-muted:     #777777;

    /* Borders */
    --border-subtle: #252525;
    --border-color:  #505050;

    /* Status */
    --color-success:      #78b94b;
    --color-warning:      #e5ad45;
    --color-danger:       #d9534f;
    --color-danger-solid: #d9534f;
    --color-danger-soft:  #e87570;

    /* Scrollbar */
    --scrollbar-thumb: #555555;

    font-weight: 400;
    font-style: normal;
}

.theme-darker {
    --bg-primary:   #0b0b0c;
    --bg-secondary: #151618;
    --bg-hover:     #26272b;
    --scrollbar-thumb: #2a2a2f;
}

.theme-midnight {
    --bg-primary:   #0b1020;
    --bg-secondary: #151c33;
    --bg-hover:     #263054;
    --accent:       #6c8cff;
    --accent-hover: #86a0ff;
    --accent-glow:    rgba(108,140,255,0.20);
    --accent-tint-15: rgba(108,140,255,0.15);
    --accent-tint-25: rgba(108,140,255,0.25);
    --accent-tint-30: rgba(108,140,255,0.30);
    --accent-tint-35: rgba(108,140,255,0.35);
    --accent-light:   #b4c4ff;
    --color-gradient: linear-gradient(90deg, #8fa8ff 0%, #3a52b8 80%);
    --scrollbar-thumb: #2c3760;
}

.theme-slate {
    --bg-primary:   #1d2128;
    --bg-secondary: #2b313b;
    --bg-hover:     #3d4552;
    --accent:       #2dd4bf;
    --accent-hover: #5eead4;
    --accent-glow:    rgba(45,212,191,0.20);
    --accent-tint-15: rgba(45,212,191,0.15);
    --accent-tint-25: rgba(45,212,191,0.25);
    --accent-tint-30: rgba(45,212,191,0.30);
    --accent-tint-35: rgba(45,212,191,0.35);
    --accent-light:   #99f6e4;
    --color-gradient: linear-gradient(90deg, #5eead4 0%, #0f766e 80%);
    --scrollbar-thumb: #48515f;
}

.theme-minecraft {
    --font-family: "Silkscreen", "Inter", monospace;
    --border-radius-sm: 0;
    --border-radius-lg: 0;
    --border-radius-xl: 0;
    --radius-2: 0;
    --radius-3: 0;
    --radius-4: 0;
    --radius-5: 0;
    --radius-6: 0;
    --radius-7: 0;
    --radius-8: 0;
    --radius-9: 0;
    --radius-10: 0;
    --radius-11: 0;
    --radius-12: 0;
    --radius-14: 0;
    --radius-16: 0;
    --radius-20: 0;
    --radius-round: 0;
    --radius-pill: 0;

    --bg-primary:   rgb(0 0 0 / 0.15);
    --bg-secondary: rgb(76 76 76);
    --bg-hover:     #5a5a5a;
    --accent:       rgb(85, 255, 85);
    --accent-hover: #7dff7d;
    --accent-glow:    rgba(85,255,85,0.20);
    --accent-tint-15: rgba(85,255,85,0.15);
    --accent-tint-25: rgba(85,255,85,0.25);
    --accent-tint-30: rgba(85,255,85,0.30);
    --accent-tint-35: rgba(85,255,85,0.35);
    --accent-light:   #b5ffb5;
    --color-gradient: linear-gradient(90deg, #55ff55 0%, #2e8b2e 80%);

    --text-primary:   #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted:     #707070;

    --border-subtle: #1a1a1a;
    --border-color:  #707070;

    --color-success:      #55ff55;
    --color-warning:      #ffaa00;
    --color-danger:       #ff5555;
    --color-danger-solid: #ff5555;
    --color-danger-soft:  #ff7777;
    --scrollbar-thumb: #707070;

    font-weight: 400;
    font-style: normal;
}

.body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;

    font-family: var(--font-family);
    margin: 0;
    width: 100%;
}

.space-b-2 {
    margin-bottom: 14px;
}

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.space-b-0 {
    margin-bottom: 0;

}

.modmenu-title {
    font-size: 26px;
    margin: 0;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.modmenu-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 3px 0 12px 0;
}

.space-t-0 {
    margin-top: 0;
}

.gap-1 {
    gap: 10px;
}

* {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

img {
    user-drag: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.search-field {
    width: 220px;
}

/* Layers behind every GUI page: the blur sits below the HUD so the widgets stay sharp, and both sit
   below the menu. No negative z-index: the client's renderer does not paint those layers. Both are
   positioned without a z-index, so they paint in document order; the GUI is lifted above them instead. */
.gui-blur {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(20px);
    pointer-events: none;
}

/* Live HUD (display-only), on every route. */
.hud-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.hud-layer--hidden {
    display: none;
}

.gui-page {
    position: relative;
    z-index: 1;
}
.card {
    width: 100%;
    height: 68px;
    background: var(--bg-secondary);
    border-radius: var(--radius-10);
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: relative;
    color: var(--text-primary);
    gap: 10px;
    box-sizing: border-box;
    transition: background 0.15s ease;
    cursor: pointer;
    border:none;
}

.card:hover { background: var(--bg-hover); }

.card-badge {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    object-fit: contain;

}

.card-badge--text {
    box-sizing: border-box;

    background: var(--bg-primary);
    border-radius: var(--radius-10);

    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    gap: 2px;
    padding-right: 30px;
}

.card-title {
    font-size: 16px;
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 600;
}

.card-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-settings {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    cursor: pointer;
    border-top-right-radius: var(--radius-10);
    border-bottom-left-radius: var(--radius-8);
    overflow: hidden;
    box-sizing: border-box;
    padding: 7px;
    transition: background 0.15s ease;
}

.card-settings:hover { background: var(--bg-secondary); }

.card-active {     border: 1px solid var(--border-color-active);
}

.card-large { height: 100px; padding: 0 14px; gap: 14px; }
.card-large .card-badge { width: 54px; height: 54px; min-width: 54px; font-size: 12px; border-radius: var(--radius-10); }
.card-large .card-content { gap: 4px; padding-right: 36px; }
.card-large .card-title { font-size: 15px; }
.card-large .card-subtitle { font-size: 12px; }
.card-large .card-settings { width: 36px; height: 36px; padding: 9px; border-bottom-left-radius: var(--radius-10); }
.menu-wrapper{
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-container{
    background: var(--bg-primary);
    height: 88vh;
    width: 82vw;
    border-radius: var(--radius-12);
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-xl), 0 0 0 1px var(--surface-04);
}

.children{
    padding: 20px 18px 16px 16px;
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.embedded .menu-container{
    height: 100vh;
    width: 100vw;
    box-shadow: none;
}
.sidebar {
    width: 220px;

    padding: 16px 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background: var(--bg-primary);
    border-radius: var(--radius-10);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex-shrink: 0;
    border-right: 1px solid var(--border-subtle);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    justify-content: center;
}

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


.nav-btn {
    width: 100%;
    padding: 12px 12px;
    border: none;
    border-radius: var(--radius-8);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn .icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-btn.active {
    background: var(--bg-hover);
    color: var(--text-primary);
    padding-left: 10px;
}

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


.nav-btn.outline {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    justify-content: center;
    border-radius: var(--radius-8);
}

.nav-btn.outline:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}.filterNav {
    position: relative;
    display: flex;
    gap: 4px;
    padding: 0;
    z-index: 10;
    background: var(--bg-secondary);
    border-radius: var(--radius-8);
    height: 100%;
    align-items: center;
    overflow: hidden;
}

.filterButton {
    position: relative;
    z-index: 10;
    background: transparent;
    flex: 1;
    padding: 0 16px;
    height: 100%;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;

    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
}

.indicator {
    position: absolute;
    box-sizing: border-box;
    height: 100%;
    top: 0;
    border-radius: var(--radius-8);

    transition:
            left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
            width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--bg-hover);
    background: var(--background-color-hover);

    pointer-events: none;
}

.filterButton.active { color: var(--text-primary); }

.label {
    position: relative;
}


.body {

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;

    font-family: var(--font-family);
    margin: 0;
    width: 100%;
}





.text-input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 7px 10px;

    background: var(--bg-primary);
    border: var(--border-width) solid var(--border-subtle);
    border-radius: var(--radius-7);
    outline: none;

    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 500;

    transition: border-color 0.15s ease;
}

.text-input::placeholder {
    color: var(--text-muted);
}

.text-input:hover:not(:disabled) {
    border-color: var(--surface-15);
}

.text-input:focus {
    border-color: var(--accent);
}

.text-input:disabled {
    opacity: 0.5;
}

.text-input--lg {
    height: 37px;
    padding: 8px 14px;
    border-radius: var(--border-radius-lg);
}

.text-input--mono {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    letter-spacing: 0.02em;
}

.text-input--invalid,
.text-input--invalid:hover {
    border-color: var(--color-danger-border);
}
.modmenu-description {
    font-size: 13px;
    color: var(--text-muted);
    margin: 3px 0 12px 0;
}

.header-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-toggle {
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-8);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
    padding: 0;
}

.view-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--bg-hover);
}
.status-message {
    padding: 10px 12px;

    color: var(--text-muted);
    font-size: 12px;
}

.status-message--error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 10px;

    background: var(--color-danger-tint);
    border: var(--border-width) solid var(--color-danger-border);
    border-radius: var(--radius-7);

    color: var(--color-danger);
}

.status-message__dismiss {
    padding: 0 4px;

    background: none;
    border: 0;

    color: inherit;
    font-size: 16px;
    line-height: 1;

    cursor: pointer;
}
.mod-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    align-content: flex-start;
    overflow-y: auto;
    flex: 1;
    padding: 2px 4px 10px 2px;
}

.mod-card-large {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.mod-card-container::-webkit-scrollbar {
    width: 4px;
}

.mod-card-container::-webkit-scrollbar-track {
    background: transparent;
}

.mod-card-container::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-2);
}.cp {
    width: 240px;
    padding: 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-14);
    box-shadow: 0 18px 46px var(--shadow-lg);
    user-select: none;
    font-family: "SF Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;
}

.cp__area {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: var(--radius-pill);
    overflow: hidden;
    cursor: crosshair;
    touch-action: none;
}

.cp__area-white {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--color-white), transparent);
}

.cp__area-black {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-black), transparent);
}

.cp__cursor {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-white);
    border-radius: var(--radius-round);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px var(--shadow-md), inset 0 0 0 1px var(--shadow-sm);
    pointer-events: none;
}


.cp__hue {
    position: relative;
    height: 14px;
    margin: 16px 0 14px;
    border-radius: var(--radius-7);
    cursor: pointer;
    touch-action: none;
    background: linear-gradient(
        to right,
        hsl(0, 100%, 50%),
        hsl(60, 100%, 50%),
        hsl(120, 100%, 50%),
        hsl(180, 100%, 50%),
        hsl(240, 100%, 50%),
        hsl(300, 100%, 50%),
        hsl(360, 100%, 50%)
    );
}

.cp__hue-handle {
    position: absolute;
    top: 50%;
    width: 9px;
    height: 20px;
    border-radius: var(--radius-4);
    background: var(--handle-bg);
    border: 1px solid var(--shadow-xs);
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 4px var(--shadow-md);
    pointer-events: none;
}


.cp__field {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.cp__input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-9);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

.cp__input:focus {
    border-color: var(--cp-input-focus);
}

.cp__copy {
    flex: 0 0 auto;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-9);
    color: var(--cp-icon-dim);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.cp__copy:hover {
    background: var(--bg-hover);
    color: var(--color-white);
}

.cp__copy.is-copied {
    color: var(--color-success);
}

.cp__copy svg {
    fill: currentColor;
}


.cp__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.cp__preview {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-9);
    border: 1px solid var(--surface-15);
}

.cp__eyedropper {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--cp-icon-muted);
    cursor: pointer;
    border-radius: var(--radius-8);
}

.cp__eyedropper:hover {
    background: var(--bg-secondary);
    color: var(--color-white);
}

.cp__eyedropper:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cp__eyedropper svg {
    fill: currentColor;
}
.module-settings-section {
    border-radius: var(--radius-10);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
}

.module-settings-section__heading {
    padding: 9px 12px 8px;
    background: var(--surface-02);
    border-bottom: 1px solid var(--border-subtle);
}

.module-settings-section__heading-title {
    margin: 0;
    padding: 0;
    color: var(--surface-50);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.module-settings-section__heading-desc {
    margin: 3px 0 0;
    padding: 0;
    color: var(--surface-35);
    font-size: 11px;
}

.module-settings-section__body {
    display: flex;
    flex-direction: column;
}


.module-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    min-height: 38px;
    border-bottom: 1px solid var(--border-subtle);
    box-sizing: border-box;
}

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

.module-setting-row--stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.module-setting-row__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.module-setting-row__label {
    color: var(--surface-85);
    font-size: 12px;
    font-weight: 500;
}

.module-setting-row__value {
    color: var(--surface-60);
    font-size: 11px;
    font-weight: 600;
}
.overlay-canvas {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    touch-action: none;
    user-select: none;
}

.overlay-canvas__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.overlay-canvas__snap-line {
    position: absolute;

    background: var(--accent);

    pointer-events: none;
    z-index: 20;
}

.overlay-canvas__snap-line--vertical {
    width: 1px;
}

.overlay-canvas__snap-line--horizontal {
    height: 1px;
}

.overlay-canvas__marquee {
    position: absolute;

    border: 1px dashed var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);

    pointer-events: none;
    z-index: 15;
}

.overlay-canvas--editing {
    border-radius: var(--border-radius-lg);
    background: transparent;
}

.overlay-canvas--editing .overlay-canvas__grid {
    background-image: radial-gradient(circle, var(--surface-08) 1px, transparent 1px);
    background-size: 24px 24px;
}

.overlay-item {
    position: absolute;

    user-select: none;
    touch-action: none;
}

.overlay-item--editing {
    cursor: grab;
}

.overlay-item--editing:active {
    cursor: grabbing;
}

.base-overlay {
    box-sizing: border-box;
    width: max-content;
    white-space: nowrap;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;

    background: var(--bg-secondary);
    border: var(--border-width) solid var(--border-subtle);
    border-radius: var(--overlay-radius, var(--border-radius-lg));

    color: var(--text-primary);

    transform-origin: top left;
}

.live-value {
    font-variant-numeric: tabular-nums;
}

.overlay-item__frame {
    position: absolute;
    inset: 0;

    border: 1.5px solid transparent;
    border-radius: calc(var(--overlay-radius, var(--border-radius-lg)) * var(--overlay-scale, 1));

    pointer-events: none;
    z-index: 2;
    transition: border-color 120ms ease;
}

.overlay-item--editing:hover .overlay-item__frame {
    border-color: var(--surface-30);
}

.overlay-item--selected .overlay-item__frame,
.overlay-item--selected:hover .overlay-item__frame {
    border-color: var(--accent);
}

.overlay-item__handle {
    position: absolute;
    top: -5px;
    right: -5px;

    width: 10px;
    height: 10px;
    box-sizing: border-box;

    background: var(--color-white);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-2);

    cursor: nesw-resize;
    touch-action: none;
    z-index: 3;

    transition: transform 120ms ease;
}

.overlay-item__handle:hover,
.overlay-item__handle:active {
    transform: scale(1.25);
}

.overlay-item__actions {
    --actions-inset: calc(var(--overlay-radius, var(--border-radius-lg)) * var(--overlay-scale, 1) * 0.3 + 4px);

    position: absolute;
    top: var(--actions-inset);
    left: var(--actions-inset);

    display: flex;
    gap: 3px;

    z-index: 3;
}

.overlay-canvas--interacting .overlay-item__actions {
    display: none;
}

.overlay-item__action {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 14px;
    height: 14px;
    padding: 0;

    background: none;
    border: 0;

    color: var(--text-primary);

    cursor: pointer;
    transition: color 0.15s ease;
}

.overlay-item__action svg {
    width: 11px !important;
    height: 11px !important;
}

.overlay-item__action--danger:hover {
    color: var(--color-danger);
}
.cps-overlay {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
}

.cps-overlay__readout{
    display: flex;
    gap: 6px;
}

.cps-overlay__space{
    width: 2px;
    background: var(--color-white);
    height: 20px;
}.cords-overlay {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    line-height: 1.25;
}

.cords-overlay p {
    margin: 0;
}

.cords-overlay__title {
    font-weight: 700;
    margin-bottom: 2px;
}.latency-overlay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.latency-overlay__title {
    opacity: 0.8;
}

.latency-overlay__value {
    color: var(--text-primary);
}
.memory-overlay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.memory-overlay__title {
    opacity: 0.8;
}

.memory-overlay__value {
    color: var(--text-primary);
}
.slider {
    width: 100%;
    margin: 0;

    accent-color: var(--accent);
    cursor: pointer;
}
.dropdown {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    min-width: 130px;
    padding: 6px 9px 6px 10px;

    background: var(--bg-primary);
    border: var(--border-width) solid var(--border-subtle);
    border-radius: var(--radius-7);

    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 11px;
    font-weight: 600;
    text-align: left;

    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dropdown:hover {
    border-color: var(--surface-15);
}

.dropdown:focus-visible,
.dropdown--open {
    border-color: var(--accent);
}

.dropdown__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown__value--placeholder {
    color: var(--text-muted);
}

.dropdown__chevron {
    flex-shrink: 0;

    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 0.15s ease, stroke 0.15s ease;
}

.dropdown:hover .dropdown__chevron {
    stroke: var(--text-secondary);
}

.dropdown--open .dropdown__chevron {
    stroke: var(--text-primary);
    transform: rotate(180deg);
}

/* Portalled to <body>, positioned by the component. */
.dropdown__menu {
    position: fixed;
    z-index: 1100;

    box-sizing: border-box;
    max-height: 240px;
    margin: 0;
    padding: 4px;
    overflow-y: auto;

    list-style: none;

    background: var(--bg-secondary);
    border: var(--border-width) solid var(--surface-12);
    border-radius: var(--border-radius-lg);

    font-family: var(--font-family);

    animation: dropdown-in 120ms ease;
}

@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.dropdown__menu::-webkit-scrollbar {
    width: 4px;
}

.dropdown__menu::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-2);
}

.dropdown__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 6px 8px;
    border-radius: var(--radius-5);

    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;

    cursor: pointer;
}

.dropdown__option--highlighted {
    background: var(--surface-08);
    color: var(--text-primary);
}

.dropdown__option--selected {
    color: var(--text-primary);
}

.dropdown__check {
    flex-shrink: 0;

    fill: none;
    stroke: var(--accent);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.toggle {
    position: relative;
    flex-shrink: 0;

    width: 46px;
    height: 24px;
    padding: 0;

    background: var(--bg-hover);
    border: 0;
    border-radius: var(--radius-8);

    cursor: pointer;
    transition: background 0.2s ease;
}

.toggle--on {
    background: var(--accent);
}

.toggle:disabled {
    opacity: 0.5;
    cursor: default;
}

.toggle__thumb {
    position: absolute;
    top: 50%;
    left: 1px;

    display: block;
    width: 22px;
    height: 22px;

    background: var(--toggle-thumb);
    border-radius: var(--radius-6);
    box-shadow: 0 2px 5px var(--shadow-xs);

    transform: translateY(-50%);
    transition: transform 0.2s cubic-bezier(0.34, 1.26, 0.64, 1);
}

.toggle--on .toggle__thumb {
    transform: translate(22px, -50%);
}
.module-settings-page {
    display: flex;
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.module-settings-page__grid {
    display: flex;
    gap: 16px;
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    justify-content: space-between;
}

.module-settings-page__editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
    min-height: 0;
    border-radius: var(--radius-12);

    overflow-y: auto;
    box-sizing: border-box;
}

.module-settings-page__editor::-webkit-scrollbar { width: 4px; }
.module-settings-page__editor::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: var(--radius-2); }


.module-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 17px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.module-settings-header__primary {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.module-settings-header__back {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-8);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.module-settings-header__back:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.module-settings-header__title {
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.module-settings-header__subtitle {
    margin: 3px 0 0;
    padding: 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}

.module-settings-header__secondary {
    text-align: right;
    min-width: 0;
    flex-shrink: 0;
}


.module-color-picker {
    position: relative;
    display: inline-flex;
}

.module-color-picker__popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
}

.module-color-swatch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.module-color-swatch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.module-color-swatch__ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.6406%201.63479C23.4236%201.7275%2026.1492%202.45144%2028.6114%203.75192L26.6679%207.4076C24.7614%206.40063%2022.6512%205.83967%2020.4963%205.76702L20.6406%201.63479Z'%20fill='%23FF0000'/%3e%3cpath%20d='M29.7363%204.41604C32.1001%205.88783%2034.0985%207.87755%2035.5806%2010.2349L32.0697%2012.4291C30.9221%2010.6038%2029.3751%209.06285%2027.5452%207.92251L29.7363%204.41604Z'%20fill='%23FF7F00'/%3e%3cpath%20d='M36.2246%2011.3711C37.5358%2013.8276%2038.2716%2016.55%2038.3765%2019.3326L34.2388%2019.4773C34.1577%2017.3227%2033.5883%2015.2147%2032.5738%2013.3123L36.2246%2011.3711Z'%20fill='%23FFFF00'/%3e%3cpath%20d='M38.3652%2020.6406C38.2725%2023.4236%2037.5486%2026.1492%2036.2481%2028.6114L32.5924%2026.6679C33.5994%2024.7614%2034.1603%2022.6512%2034.233%2020.4963L38.3652%2020.6406Z'%20fill='%237FFF00'/%3e%3cpath%20d='M35.584%2029.7363C34.1122%2032.1001%2032.1225%2034.0985%2029.7651%2035.5806L27.5709%2032.0697C29.3962%2030.9221%2030.9372%2029.3751%2032.0775%2027.5452L35.584%2029.7363Z'%20fill='%2300FF00'/%3e%3cpath%20d='M28.6269%2036.2246C26.1704%2037.5358%2023.4481%2038.2716%2020.6655%2038.3765L20.5208%2034.2388C22.6753%2034.1577%2024.7833%2033.5883%2026.6858%2032.5738L28.6269%2036.2246Z'%20fill='%2300FF7F'/%3e%3cpath%20d='M19.3574%2038.3652C16.5744%2038.2725%2013.8489%2037.5486%2011.3867%2036.2481L13.3301%2032.5924C15.2366%2033.5994%2017.3469%2034.1603%2019.5017%2034.233L19.3574%2038.3652Z'%20fill='%2300FFFF'/%3e%3cpath%20d='M10.2617%2035.584C7.89794%2034.1122%205.89952%2032.1224%204.41744%2029.7651L7.92835%2027.5709C9.07593%2029.3962%2010.623%2030.9371%2012.4528%2032.0775L10.2617%2035.584Z'%20fill='%23007FFF'/%3e%3cpath%20d='M3.77346%2028.6269C2.46225%2026.1704%201.72642%2023.4481%201.62158%2020.6655L5.7592%2020.5207C5.84039%2022.6753%206.4097%2024.7833%207.42421%2026.6858L3.77346%2028.6269Z'%20fill='%230000FF'/%3e%3cpath%20d='M1.63479%2019.3574C1.7275%2016.5744%202.45143%2013.8489%203.75191%2011.3867L7.40758%2013.3301C6.40061%2015.2366%205.83965%2017.3469%205.76701%2019.5017L1.63479%2019.3574Z'%20fill='%237F00FF'/%3e%3cpath%20d='M4.41604%2010.2617C5.88782%207.89793%207.87754%205.8995%2010.2349%204.41741L12.4291%207.92834C10.6038%209.07593%209.06283%2010.623%207.92249%2012.4528L4.41604%2010.2617Z'%20fill='%23FF00FF'/%3e%3cpath%20d='M11.3711%203.77346C13.8276%202.46224%2016.55%201.72641%2019.3325%201.62157L19.4773%205.75921C17.3227%205.8404%2015.2147%206.40971%2013.3122%207.42423L11.3711%203.77346Z'%20fill='%23FF007F'/%3e%3c/svg%3e");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.module-color-swatch__core {
    width: 15px;
    height: 15px;
    border-radius: var(--radius-round);
}


.module-preview-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    max-width: 400px;
    margin-left: auto;
}

.module-preview-panel__title {
    margin: 0 0 12px;
    padding: 0;
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.module-preview-panel__cards {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.module-preview-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-10);
    border: 1px solid var(--border-subtle);
    background-color: var(--bg-secondary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.module-preview-card__glass {
    position: absolute;
    inset: 14px auto 14px 50%;
    width: 110px;
    transform: translateX(-50%);
    border-radius: var(--radius-8);
    background: var(--surface-12);
}

.module-preview-card__marker {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-3);
    background: var(--marker-orange);
    box-shadow: 0 0 0 2px var(--shadow-2xs);
}

.module-preview-card__marker--top {
    top: 10px;
    left: 26%;
}

.module-preview-card__marker--bottom {
    bottom: 18px;
    left: 34%;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-round);
    background: var(--marker-purple);
}
.cs-page {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.cs-columns {
    display: flex;
    gap: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    align-items: flex-start;
}

.cs-columns::-webkit-scrollbar { width: 4px; }
.cs-columns::-webkit-scrollbar-track { background: transparent; }
.cs-columns::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: var(--radius-2); }

.cs-col { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.cs-kbd {
    background: var(--bg-primary);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-6);
    padding: 3px 8px;
    color: var(--text-secondary);
    font-size: 11px;
    font-family: var(--font-family);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.cs-tag {
    color: var(--accent);
    border-radius: var(--radius-5);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
}

.cs-muted { color: var(--text-muted); font-size: 11px; }
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-scrim);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.modal {
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    background: var(--bg-secondary);
    border: var(--border-width) solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--font-family);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: var(--border-width) solid var(--border-subtle);
    flex-shrink: 0;
}

.modal__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.modal__close {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-round);
    border: 1.5px solid var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    padding: 0;
    flex-shrink: 0;
}

.modal__close:hover {
    background: var(--color-danger-tint);
    border-color: var(--color-danger-border);
    color: var(--color-danger-solid);
}

.modal__close svg {
    width: 14px;
    height: 14px;
}

.modal__body {
    padding: 20px;
    overflow-y: auto;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
    min-height: 0;
}

.modal__body::-webkit-scrollbar {
    width: 4px;
}

.modal__body::-webkit-scrollbar-track {
    background: transparent;
}

.modal__body::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: var(--radius-2);
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: var(--border-width) solid var(--border-subtle);
    flex-shrink: 0;
}
.profiles-page {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    gap: 12px;
}

.profiles-page::-webkit-scrollbar {
    width: 4px;
}

.profiles-page::-webkit-scrollbar-track {
    background: transparent;
}

.profiles-page::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: var(--radius-2);
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
    align-content: flex-start;
    width: 100%;
    padding: 6px 8px 8px 2px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: visible;
    flex: 1;
    min-height: 0;
}

.profiles-grid > * {
    min-width: 0;
}

.profiles-grid::-webkit-scrollbar {
    width: 4px;
}

.profiles-grid::-webkit-scrollbar-track {
    background: transparent;
}

.profiles-grid::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: var(--radius-2);
}


.profile-card {
    --card-radius: var(--radius-16);
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 120px;
}

.profile-card--add {
    background: transparent;
    border: 1.5px dashed var(--surface-12);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: border-color 0.15s ease, background 0.15s ease;
    min-height: 140px;
    border-radius: var(--card-radius);
    height: auto;
}

.profile-card--add:hover {
    border-color: var(--surface-22);
    background: var(--surface-02);
}

.profile-card__plus {
    color: var(--surface-25);
    font-size: 24px;
    line-height: 1;
    transition: color 0.15s ease;
}

.profile-card--add:hover .profile-card__plus {
    color: var(--surface-50);
}

.profile-card__add-label {
    color: var(--surface-30);
    font-size: 12px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.profile-card--add:hover .profile-card__add-label {
    color: var(--surface-55);
}

.profile-card--new {
    flex-direction: column;
    gap: 0;
    background: var(--bg-secondary);
    border-radius: var(--card-radius);
}

.profile-card__body {
    padding: 20px 34px 10px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.profile-color-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.profile-dot {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-round);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: transform 0.1s ease;
}

.profile-dot--picked {
    border-color: var(--color-white);
    transform: scale(1.2);
}

.profile-edit-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.pvp-card {
    width: 100%;
    height: auto;
    min-width: 0;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 14px 12px 12px;
    box-sizing: border-box;
    font-family: var(--font-family);
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.pvp-card:hover {
    border-color: var(--surface-12);
}

/* Same active treatment as the module cards. */
.pvp-card--active,
.pvp-card--active:hover {
    border-color: var(--border-color-active);
}

.profile-share__hint {
    margin: 0 0 10px;
}

.pvp-card__title {
    color: var(--text-primary);
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin: 0 0 10px;
}

.pvp-card__thumb {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: var(--border-width) solid var(--border-subtle);
    aspect-ratio: 16/9;
}

.pvp-card__thumb-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.pvp-card__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.pvp-card__actions-left {
    display: flex;
    gap: 4px;
}

.pvp-icon-btn {
    width: 30px;
    height: 30px;
    padding: 6px;
    border: none;
    border-radius: var(--radius-8);
    background: var(--surface-04);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;

}

.pvp-icon-btn:hover {
    background: var(--surface-08);
    color: var(--text-primary);
}

.pvp-icon-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pvp-icon-btn--danger {
    background: var(--color-danger-tint);
    color: var(--color-danger-soft);
}

.pvp-icon-btn--danger:hover {
    background: var(--color-danger-tint-18);
    color: var(--color-danger-solid);
}.profile-card--add__title-spacer {
    display: block;
    height: 30px;
}

.profile-card--add__thumb-spacer {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius-lg);
    box-sizing: border-box;
}

.profile-card--add__actions-spacer {
    display: block;
    height: 42px;
}

.profile-card__plus,
.profile-card__add-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.profile-card__add-label {
    margin-top: 26px;
}.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border: var(--border-width) solid transparent;
    border-radius: var(--radius-7);

    font-family: var(--font-family);
    font-weight: 600;
    white-space: nowrap;

    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:disabled {
    opacity: 0.5;
    cursor: default;
}

.button--md {
    padding: 7px 14px;
    font-size: 12px;
}

.button--lg {
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--border-radius-lg);
    font-size: 13px;
    font-weight: 700;
}

.button--secondary {
    background: var(--bg-primary);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.button--secondary:not(:disabled):hover {
    background: var(--bg-hover);
    border-color: var(--surface-22);
}

.button--primary {
    background: var(--accent);
    color: var(--color-white);
}

.button--primary:not(:disabled):hover {
    background: var(--accent-hover);
}

.button--danger {
    background: var(--color-danger-tint);
    border-color: var(--color-danger-border);
    color: var(--color-danger);
}

.button--danger:not(:disabled):hover {
    background: var(--color-danger-tint-22);
}
.wizard {
    animation: wizard-step-in 160ms ease;
}

@keyframes wizard-step-in {
    from {
        opacity: 0;
        transform: translateX(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Step 1: start options */
.wizard__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard__option {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    padding: 12px 14px;

    background: var(--bg-primary);
    border: var(--border-width) solid var(--border-subtle);
    border-radius: var(--border-radius-lg);

    color: var(--text-primary);
    font: inherit;
    text-align: left;

    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.wizard__option:hover {
    background: var(--bg-hover);
    border-color: var(--surface-12);
}

.wizard__option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 20px;
    height: 20px;

    color: var(--text-secondary);
}

.wizard__option:hover .wizard__option-icon {
    color: var(--text-primary);
}

.wizard__option svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wizard__option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.wizard__option-title {
    font-size: 13px;
    font-weight: 600;
}

.wizard__option-desc {
    color: var(--text-secondary);
    font-size: 12px;
}

.wizard__option-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.15s ease, color 0.15s ease;
}

.wizard__option:hover .wizard__option-chevron {
    color: var(--text-primary);
    transform: translateX(2px);
}

/* Step 2a: template grid, a click creates the profile */
.wizard__templates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

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

    padding: 12px;

    background: var(--bg-primary);
    border: var(--border-width) solid var(--border-subtle);
    border-radius: var(--border-radius-lg);

    font: inherit;
    text-align: left;

    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.wizard__template:hover {
    background: var(--accent-tint-15);
    border-color: var(--accent-tint-35);
}

.wizard__template-name {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.wizard__template-desc {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.35;
}

/* Step 2b / 2c: forms */
.wizard__form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wizard__label {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.wizard__label:first-child {
    margin-top: 0;
}

.wizard__optional {
    margin-left: 4px;
    color: var(--text-muted);
    font-weight: 400;
}

.wizard__status {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--text-muted);
}

.wizard__template:disabled {
    cursor: default;
    opacity: 0.6;
}

.wizard__error {
    margin: 8px 0 0;
    color: var(--color-danger);
    font-size: 12px;
}
.cos-card {
    position: relative;

    width: 100%;
    padding: 8px;

    display: block;

    background: var(--bg-secondary);
    border: var(--border-width) solid var(--border-subtle);
    border-radius: var(--radius-11);

    color: var(--text-primary);
    text-align: left;

    cursor: pointer;
}

.cos-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-color-hover);
}

.cos-card:focus-visible {
    outline: none;

    border-color: var(--border-color-focus);
}

.cos-card--equipped {
    border-color: var(--accent);
}

.cos-card--equipped:hover {
    border-color: var(--accent);
}

.cos-card--locked {
    opacity: 0.72;
}

.cos-card--locked:hover {
    opacity: 0.9;
}


.cos-card__image {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1.12;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: var(--border-radius-lg);

    background:
            radial-gradient(
                    circle at 50% 35%,
                    var(--accent-tint-25),
                    transparent 42%
            ),
            radial-gradient(
                    circle at 30% 75%,
                    var(--accent-tint-15),
                    transparent 35%
            ),
            var(--bg-primary);
}


.cos-card__grid {
    position: absolute;
    inset: 0;

    background-image:
            linear-gradient(
                    var(--surface-04) 1px,
                    transparent 1px
            ),
            linear-gradient(
                    90deg,
                    var(--surface-04) 1px,
                    transparent 1px
            );

    background-size: 22px 22px;

    mask-image: linear-gradient(
            to bottom,
            var(--color-black),
            transparent
    );

    pointer-events: none;
}

.cos-card__glow {
    position: absolute;

    width: 75%;
    height: 75%;

    border-radius: var(--radius-round);

    background: var(--accent-glow);

    filter: blur(30px);

    opacity: 0.7;

    pointer-events: none;
}


.cos-card__cape {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
}

.cos-card__cape img {
    display: block;

    width: 72%;
    height: 82%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: center;

    user-select: none;
    -webkit-user-drag: none;
}


.cos-card__selected {
    position: absolute;
    padding: 5px;
    top: 9px;
    right: 9px;

    z-index: 5;

    width: 15px;
    height: 15px;

    display: grid;
    place-items: center;

    border-radius: var(--radius-round);

    background: var(--accent);
    color: var(--color-white);

    font-size: 12px;
    font-weight: 800;
}


.cos-card__lock {
    position: absolute;

    top: 9px;
    right: 9px;

    z-index: 5;
    padding: 5px;
    width: 15px;
    height: 15px;

    display: grid;
    place-items: center;

    border-radius: var(--radius-round);

    background: var(--surface-12);
    border: var(--border-width) solid var(--border-subtle);

    font-size: 11px;

    backdrop-filter: blur(8px);
}


.cos-card__footer {
    min-width: 0;

    padding: 10px 4px 4px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;
}

.cos-card__name {
    min-width: 0;

    overflow: hidden;

    color: var(--text-primary);

    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 13px;
    font-weight: 700;
}

.cos-card__rarity {
    flex-shrink: 0;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}


.cos-card__rarity--common {
    color: var(--text-secondary);
}

.cos-card__rarity--rare {
    color: var(--accent);
}

.cos-card__rarity--epic {
    color: var(--accent-light);
}

.cos-card__rarity--legendary {
    color: var(--color-warning);
}

.cos-card--locked .cos-card__image {
    filter: saturate(0.55);
}

.cos-card--locked .cos-card__cape {
    opacity: 0.7;
}


@media (max-width: 900px) {
    .cos-card__cape img {
        width: 68%;
        height: 78%;
    }
}

@media (max-width: 650px) {
    .cos-card__cape img {
        width: 65%;
        height: 75%;
    }

    .cos-card__name {
        font-size: 12px;
    }

    .cos-card__rarity {
        font-size: 8px;
    }
}.cos-page {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    gap: 28px;
    overflow: hidden;
}


.cos-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-shrink: 0;
}

.cos-body {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 24px;
    overflow: hidden;
}
.cos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: start;
    gap: 16px;

    flex: 1;
    min-width: 0;

    overflow-y: auto;
    padding-right: 2px;
}

.cos-grid::-webkit-scrollbar {
    width: 4px;
}

.cos-grid::-webkit-scrollbar-track {
    background: transparent;
}

.cos-grid::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-4);
}




.cos-preview {
    width: 377px;
    height: 100%;

    display: flex;
    flex-direction: column;
    gap: 16px;

    flex-shrink: 0;

    padding: 20px;

    background: var(--bg-secondary);
    border: var(--border-width) solid var(--border-subtle);
    border-radius: var(--radius-12);

    box-sizing: border-box;
}

.cos-preview__character {
    position: relative;

    flex: 1;
    min-height: 0;

    width: 100%;

    border-radius: var(--border-radius-lg);
    overflow: hidden;
    contain: content;
}

.cos-preview__character img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: var(--border-radius-lg);
}

.cos-preview__canvas {
    display: block;

    width: 100%;
    height: 100%;
}

.cos-preview__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
}

.cos-preview__footer span {
    color: var(--text-secondary);

    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
}




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

    .cos-preview {
        width: 320px;
    }
}

@media (max-width: 1000px) {
    .cos-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .cos-body {
        flex-direction: column;
        overflow-y: auto;
    }

    .cos-grid {
        flex: none;
        width: 100%;
    }

    .cos-preview {
        width: 100%;
        height: 500px;
        flex-shrink: 0;
    }
}
.cos-preview__canvas{
    height: 100%;
}
@media (max-width: 700px) {
    .cos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}.sw-page {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    gap: 12px;
}

.sw-tabs {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    height: 37px;

    width: fit-content;
}

.sw-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-6);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-family);
}

.sw-tab:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.sw-tab--active {
    background: var(--bg-secondary);
    border-color: var(--accent-tint-35);
    color: var(--text-primary);
    box-shadow: 0 2px 6px var(--shadow-2xs);
}

.sw-tab__icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sw-tab__badge {
    background: var(--accent-tint-25);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: var(--radius-10);
    font-size: 10px;
}

.sw-content {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.sw-content::-webkit-scrollbar { width: 4px; }
.sw-content::-webkit-scrollbar-track { background: transparent; }
.sw-content::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: var(--radius-2); }

.sw-hero-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-12);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.sw-hero-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-gradient);
    opacity: 0.8;
}

.sw-hero-card--active::before {
    background: linear-gradient(90deg, var(--color-success-solid) 0%, var(--accent) 100%);
}

.sw-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sw-world-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sw-world-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sw-world-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.sw-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-20);
    background: var(--surface-08);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.sw-status-indicator.is-online {
    background: var(--color-success-tint);
    color: var(--color-success-solid);
    border-color: var(--color-success-border);
}

.sw-status-dot {
    width: 7px;
    height: 7px;
    border-radius: var(--radius-round);
    background: var(--text-muted);
}

.sw-status-indicator.is-online .sw-status-dot {
    background: var(--color-success-solid);
    animation: sw-pulse 2s infinite;
}

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

.sw-launch-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--surface-04);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-10);
    gap: 12px;
    text-align: center;
}

.sw-launch-desc {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.4;
    margin: 0;
}

.sw-link-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--surface-04);
    border: 1px solid var(--accent-tint-30);
    border-radius: var(--radius-10);
    padding: 14px 16px;
}

.sw-link-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sw-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sw-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sw-stat-card {
    background: var(--surface-04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-8);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sw-stat-title {
    font-size: 11px;
    color: var(--text-muted);
}

.sw-stat-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.sw-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

.sw-section {
    border-radius: var(--radius-10);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.sw-section__heading {
    padding: 9px 12px 8px;
    background: var(--surface-02);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sw-section__body {
    display: flex;
    flex-direction: column;
}

.sw-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    min-height: 38px;
    border-bottom: 1px solid var(--border-subtle);
    box-sizing: border-box;
}

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

.sw-row__label {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
}

.sw-row__control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sw-whitelist-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-setting-input {
    width: 160px;
}

.sw-whitelist-add {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.sw-player-list {
    display: flex;
    flex-direction: column;

    border-radius: var(--radius-10);
    overflow: hidden;
}

.sw-player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.sw-player-item:last-child {
    border-bottom: 0;
}

.sw-player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sw-player-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-6);
    background: var(--accent-tint-25);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}
.sw-player-avatar img {
    border-radius: var(--radius-6);
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.sw-player-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.sw-player-role {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-4);
    background: var(--surface-08);
    color: var(--text-secondary);
    font-weight: 600;
}

.sw-player-role--op {
    background: var(--marker-orange-tint);
    color: var(--marker-orange);
    border: 1px solid var(--marker-orange-border);
}

.sw-empty-hint {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.sw-world-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-12);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.sw-world-card__info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sw-world-card__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-round);
    background: var(--text-muted);
    flex-shrink: 0;
}

.sw-world-card__dot.is-online {
    background: var(--accent);
}

.sw-world-card__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.sw-world-card__meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.sw-avatar-stack {
    display: flex;
}
.sw-avatar-stack__item {
    position: relative;

    width: 32px;
    height: 32px;

    border-radius: var(--radius-8);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 700;
    color: var(--color-white);

    margin-left: -10px;

    background: var(--bg-secondary);

    box-shadow: 0 0 0 4px var(--bg-secondary);
}

.sw-avatar-stack__item img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    border-radius: var(--radius-8);
}

.sw-avatar-stack__item:first-child {
    margin-left: 0;
}

.sw-details-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-12);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-details-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.sw-details-card__desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 4px 0 0;
}

.sw-details-card__row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sw-remove-link {
    background: transparent;
    border: none;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-danger);
    cursor: pointer;
    font-family: var(--font-family);
}

.sw-remove-link:hover {
    text-decoration: underline;
}.hud-editor-wrapper {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hud-editor {
    height: 88vh;
    width: 82vw;
    border-radius: var(--radius-12);
    box-shadow: 0 20px 60px var(--shadow-xl), 0 0 0 1px var(--surface-04);
    display: flex;
    flex-direction: row;
    background: var(--bg-primary);
    overflow: hidden;
    font-family: var(--font-family);
}

.embedded .hud-editor {
    height: 100vh;
    width: 100vw;
    border-radius: 0;
    box-shadow: none;
}

.hud-editor__sidebar {
    width: 270px;
    min-width: 270px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    padding: 20px 16px;
    box-sizing: border-box;
    border-right: 1px solid var(--border-subtle);
    gap: 14px;
    z-index: 10;
}

.hud-editor__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud-editor__back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-8);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}

.hud-editor__back-btn:hover {
    background: var(--bg-hover);
    border-color: var(--surface-15);
    color: var(--text-primary);
}

.hud-editor__header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hud-editor__header-tag {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

.hud-editor__header-subtitle {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.25;
}

.hud-editor__search-wrapper {
    position: relative;
    width: 100%;
}

.hud-editor__search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.hud-editor__search-input {
    width: 100%;
    height: 36px;
    box-sizing: border-box;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-8);
    padding: 0 12px 0 34px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    user-select: text;
    -webkit-user-select: text;
}

.hud-editor__search-input:focus {
    border-color: var(--accent);
}

.hud-editor__search-input::placeholder {
    color: var(--text-muted);
}

.hud-editor__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex: 1;
    padding-right: 2px;
}

.hud-editor__list::-webkit-scrollbar {
    width: 4px;
}

.hud-editor__list::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-2);
}

.hud-editor__card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-8);
    padding: 10px 14px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    opacity: 1 !important;
}

.hud-editor__card:hover {
    background: var(--bg-hover);
    border-color: var(--surface-15);
    transform: translateY(-1px);
}

.hud-editor__card:active {
    cursor: grabbing;
    opacity: 1 !important;
    background: var(--bg-hover);
}

.hud-editor__floating-card {
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: var(--radius-8);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-family);
    box-shadow: 0 12px 32px var(--shadow-xl), 0 2px 8px var(--shadow-md);
    opacity: 1 !important;
    pointer-events: none;
    z-index: 999999;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.hud-editor__card-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.hud-editor__card-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.3;
}

.hud-editor__workspace {

    flex: 1;
    display: flex;
    position: relative;
    padding: 14px 16px 16px 14px;
    box-sizing: border-box;
    overflow: hidden;
    background: var(--bg-primary);
    align-items: center;
    justify-content: center;
}

.hud-editor__canvas-wrapper {
    flex: 1;
    border-radius: var(--radius-12);
    overflow: hidden;
    border: 1px solid var(--border-subtle);

    position: relative;
    aspect-ratio: 16/9;

}
