/* /Components/DiceRoller/AdHocDice.razor.rz.scp.css */
.ad-hoc-dice[b-1vk9867lqm] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #1c2a3a; /* dark blue border */
    border-radius: 8px;
    background: #223044; /* same dark desaturated blue */
    color: #e0e6f0;
}

.ad-hoc-die-btn[b-1vk9867lqm] {
    border: none;
    background: transparent;
    padding: 0;
    width: 48px;
    height: 48px;
    cursor: pointer;
    line-height: 0;
}

    .ad-hoc-die-btn:active[b-1vk9867lqm] {
        transform: scale(.97);
    }

.ad-hoc-die-img[b-1vk9867lqm] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}
/* /Components/DiceRoller/DicePool.razor.rz.scp.css */
.display-pool[b-wvbzglav3i] {
    padding: .75rem;
    border: 1px solid #1c2a3a; /* dark blue border */
    border-radius: 10px;
    background: #223044; /* dark desaturated blue background */
    color: #e0e6f0; /* light desaturated text */
}

.display-pool__header[b-wvbzglav3i] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
}

.display-pool__title[b-wvbzglav3i] {
    margin: 0;
    font-size: 1rem;
    color: #e0e6f0; /* text color */
}

.dice-grid[b-wvbzglav3i] {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    min-height: 56px;
}

.dice-grid__empty[b-wvbzglav3i] {
    opacity: .7;
    font-size: .9rem;
    padding: .25rem 0;
    color: #b0bccd;
}

.die-btn[b-wvbzglav3i] {
    border: none;
    background: transparent;
    padding: 0;
    width: 48px;
    height: 48px;
    cursor: pointer;
    line-height: 0;
}

    .die-btn:active[b-wvbzglav3i] {
        transform: scale(.97);
    }

.die-img[b-wvbzglav3i] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.btn[b-wvbzglav3i] {
    padding: .4rem .7rem;
    border-radius: .5rem;
    border: 1px solid #304050; /* darker border */
    background: #34495e; /* muted blue button */
    color: #e0e6f0;
}

.btn-secondary[b-wvbzglav3i] {
    background: #2c3e50;
    color: #d0d8e0;
}

.btn:disabled[b-wvbzglav3i] {
    opacity: .5;
    cursor: not-allowed;
}
/* /Components/DiceRoller/DiceRoller.razor.rz.scp.css */
.dice-roller[b-159upbz7av] {
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontally center everything */
    justify-content: flex-start;
    width: 100%;
}


.left-panel[b-159upbz7av] {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    padding: 12px;
    background: transparent; /* let modal-content handle background */
}

.macro-results[b-159upbz7av] {
    max-height: 400px;
    overflow-y: auto;
}


.section-title[b-159upbz7av] {
    font-weight: 700;
    margin-bottom: 8px;
}

.die-grid[b-159upbz7av] {
    display: grid;
    grid-template-rows: 64px; /* ensure one row of dice */
    gap: 12px;
    margin: 8px 0 12px 0;
    justify-content: start;
    align-self: center;
}

.die-cell[b-159upbz7av] {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.die-img[b-159upbz7av] {
    width: 64px;
    height: 64px;
}

.die-overlay[b-159upbz7av] {
    position: relative;
    display: inline-block;
}

.die-label[b-159upbz7av] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: bold;
    color: black; /* adjust for contrast */
    text-shadow: 1px 1px 2px white;
    pointer-events: none;
}


.roll-btn[b-159upbz7av] {
    align-self: center;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.reset-btn[b-159upbz7av] {
    align-self: center;
    padding: 8px 16px;
    margin-top: 6px;
    border: none;
    border-radius: 8px;
    background: #666;
    color: white;
    cursor: pointer;
}

    .reset-btn:hover[b-159upbz7av] {
        background: #444;
    }


.tally[b-159upbz7av] {
    text-align: center;
    font-size: 1.125rem;
    padding: 12px;
}

.macro-results[b-159upbz7av] {
    overflow: auto;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
}

.macro-actions[b-159upbz7av] {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.roller-header[b-159upbz7av] {
    display: flex;
    justify-content: flex-end;
    padding: 4px 8px;
}

.close-btn[b-159upbz7av] {
    background: #ccc; /* light grey */
    color: #000; /* black X */
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.2s;
}

    .close-btn:hover[b-159upbz7av] {
        background: #aaa; /* darker grey on hover */
    }

.dice-roller-overlay[b-159upbz7av] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Large modal window */
.dice-roller-modal[b-159upbz7av] {
    background-color: #0f1825;
    border: 1px solid #aaa;
    border-radius: 10px;
    padding: 20px;
    color: #d0d4da;
    width: 80%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

    /* Close button */
    .dice-roller-modal .close-btn[b-159upbz7av] {
        position: absolute;
        top: 12px;
        right: 12px;
        background: #2b3b52;
        border: 1px solid #888;
        border-radius: 4px;
        color: #d0d4da;
        font-weight: bold;
        padding: 4px 10px;
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s;
    }

        .dice-roller-modal .close-btn:hover[b-159upbz7av] {
            background: #3a4b65;
            border-color: #ccc;
            color: #fff;
        }

/* Framed sections (results, dice, actions) */
.dice-roller-frame[b-159upbz7av] {
    background: #152238;
    border: 1px solid #888;
    border-radius: 6px;
    padding: 15px;
}

/* Results readout */
.dice-roller-results-text[b-159upbz7av] {
    font-size: 1rem;
    line-height: 1.4;
    white-space: pre-wrap;
    color: #e0e4eb;
}

/* Dice grid */
.dice-roller-results[b-159upbz7av] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

    .dice-roller-results img[b-159upbz7av] {
        width: 48px;
        height: 48px;
    }

/* Action buttons */
.dice-roller-actions[b-159upbz7av] {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

    .dice-roller-actions .btn[b-159upbz7av] {
        background: #2b3b52;
        border: 1px solid #888;
        border-radius: 4px;
        color: #d0d4da;
        padding: 6px 14px;
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s;
    }

        .dice-roller-actions .btn:hover[b-159upbz7av] {
            background: #3a4b65;
            border-color: #ccc;
            color: #fff;
        }

.crit-block[b-159upbz7av] {
    border: 1px solid #a33;
    background: rgba(160, 40, 40, 0.15);
    border-radius: 6px;
    padding: 8px 10px;
    margin: 10px 0;
}

.crit-title[b-159upbz7av] {
    font-weight: 700;
    color: #f4d0d0;
    margin-bottom: 4px;
}

.crit-diff[b-159upbz7av] {
    font-style: italic;
    opacity: 0.9;
    margin-left: 4px;
}

.crit-desc[b-159upbz7av] {
    margin-top: 4px;
    line-height: 1.3;
}
/* /Components/DiceRoller/MacroEffects.razor.rz.scp.css */
/* Outer frame for the whole Effects block */
.macro-effects-frame[b-v8jhm4qh4k] {
    background-color: #1a2230;
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 12px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}


    .macro-effects-frame h3[b-v8jhm4qh4k] {
        margin-top: 0;
        margin-bottom: 8px;
        font-size: 1.1rem;
        color: #ccd3db;
        border-bottom: 1px solid #555;
        padding-bottom: 4px;
    }
    .macro-effects-frame label[b-v8jhm4qh4k] {
        color: #d0d4da; /* light grey text */
        font-weight: 500;
    }


/* Container for list + buttons */
.effects-container[b-v8jhm4qh4k] {
    display: flex;
    gap: 1rem;
}

/* Effects list panel (lighter than frame) */
.effects-list[b-v8jhm4qh4k] {
    flex: 1;
    height: 175px;
    overflow-y: auto;
    border: 1px solid #888;
    border-radius: 4px;
    background: #243146; /* slightly lighter muted blue */
    color: #d0d4da;
    padding: 0.5rem;
}

    /* Details + Summary styling */
    .effects-list details[b-v8jhm4qh4k] {
        margin-bottom: 0.5rem;
    }

    .effects-list summary[b-v8jhm4qh4k] {
        font-weight: bold;
        cursor: pointer;
        margin-bottom: 0.25rem;
        color: #ccd3db;
    }

    /* List items */
    .effects-list ul[b-v8jhm4qh4k] {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .effects-list li[b-v8jhm4qh4k] {
        padding: 4px 8px;
        cursor: pointer;
        border-radius: 4px;
    }

        .effects-list li:hover[b-v8jhm4qh4k] {
            background: #2b3b52;
            color: #fff;
        }

        .effects-list li.selected[b-v8jhm4qh4k] {
            background: #3a4b65;
            color: #fff;
        }
.effects-list[b-v8jhm4qh4k] {
    scrollbar-width: thin;
    scrollbar-color: #2d3e5c #1c2636;
}
.weapon-fields-row[b-v8jhm4qh4k] {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-top: 6px;
    padding: 6px 8px; /* ✅ adds breathing room inside the row */
    background-color: #1a2230; /* optional: subtle panel tone */
    border-radius: 4px; /* optional: soften edges */
}


.weapon-field[b-v8jhm4qh4k] {
    display: flex;
    flex-direction: column;
}

    .weapon-field label[b-v8jhm4qh4k] {
        color: #ccd3db;
        font-size: 0.9rem;
        margin-bottom: 2px;
    }


.spinbox[b-v8jhm4qh4k] {
    background-color: #243146;
    color: #d0d4da;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
    width: 100px;
    box-sizing: border-box;
}

    .spinbox:disabled[b-v8jhm4qh4k] {
        opacity: 0.5;
        cursor: not-allowed;
    }



/* Buttons */
.effects-buttons[b-v8jhm4qh4k] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .effects-buttons button[b-v8jhm4qh4k] {
        background-color: #2b3b52;
        border: 1px solid #aaa;
        color: #d0d4da;
        border-radius: 4px;
        padding: 6px 10px;
        font-size: 14px;
        cursor: pointer;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

        .effects-buttons button:hover[b-v8jhm4qh4k] {
            background-color: #3a4b65;
            border-color: #ccc;
            color: #fff;
        }

        .effects-buttons button:active[b-v8jhm4qh4k] {
            background-color: #465978;
            border-color: #eee;
        }
/* /Components/Macros/MacroCreator.razor.rz.scp.css */
/* Dark overlay covering the entire screen */
.macro-creator-overlay[b-dqvo3wndn6] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65); /* dim background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal window */
.macro-creator-modal[b-dqvo3wndn6] {
    background-color: #1a2230; /* dark desaturated blue */
    color: #d0d4da; /* light grey text */
    border: 1px solid #aaa; /* thin light grey border */
    border-radius: 8px;
    padding: 16px;
    width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header with close button */
.macro-creator-header[b-dqvo3wndn6] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.macro-name-field[b-dqvo3wndn6] {
    display: flex;
    align-items: center;
}

    .macro-name-field input[b-dqvo3wndn6] {
        margin-left: 8px;
        width: 250px;
        background-color: #243146; /* muted input background */
        color: #d0d4da;
        border: 1px solid #888;
        border-radius: 4px;
        padding: 4px 6px;
    }

/* X button */
.close-btn[b-dqvo3wndn6] {
    background: #2b3b52;
    border: 1px solid #aaa;
    border-radius: 4px;
    color: #d0d4da;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 8px;
    line-height: 1;
}

    .close-btn:hover[b-dqvo3wndn6] {
        background: #3a4b65;
        color: #fff;
    }

/* Scrollable content */
.macro-creator-scrollable[b-dqvo3wndn6] {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #666;
    background-color: #212b3a;
    margin-bottom: 8px;
}

/* Footer buttons */
.macro-creator-actions[b-dqvo3wndn6] {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
    .macro-creator-actions button[b-dqvo3wndn6] {
        background-color: #2b3b52; /* muted blue */
        border: 1px solid #aaa; /* thin light grey border */
        color: #d0d4da; /* light grey text */
        border-radius: 4px;
        padding: 6px 14px;
        font-size: 14px;
        cursor: pointer;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

        .macro-creator-actions button:hover[b-dqvo3wndn6] {
            background-color: #3a4b65; /* lighter blue on hover */
            border-color: #ccc;
            color: #fff;
        }

        .macro-creator-actions button:active[b-dqvo3wndn6] {
            background-color: #465978; /* pressed state */
            border-color: #eee;
        }
/* /Components/Macros/MacroList.razor.rz.scp.css */
.macro-list-frame[b-tvk1cxhjes] {
    display: flex;
    flex-direction: column;
    background-color: #1e2733; /* dark desaturated blue */
    border: 1px solid #888; /* thin light grey border */
    border-radius: 6px;
    padding: 8px;
    color: #d0d4da;
    max-height: 300px;
}

    .macro-list-frame select[b-tvk1cxhjes] {
        background-color: #243146;
        border: 1px solid #888;
        border-radius: 4px;
        color: #d0d4da;
        padding: 4px 6px;
        font-size: 14px;
        cursor: pointer;
        max-width: 180px;
    }

        .macro-list-frame select:focus[b-tvk1cxhjes] {
            outline: none;
            border-color: #ccc;
            background-color: #2b3b52;
        }


.macro-list-header[b-tvk1cxhjes] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #666;
    margin-bottom: 6px;
}

.macro-list-body[b-tvk1cxhjes] {
    display: flex;
    flex-direction: row;
    flex: 0 0 auto;
    gap: 12px;
}

.macro-list-left[b-tvk1cxhjes] {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.macro-list-scrollable[b-tvk1cxhjes] {
    overflow-y: auto;
    height: 175px;
    background-color: #243146; /* muted blue panel */
    border: 1px solid #666;
    border-radius: 4px;
    padding: 6px;
    scrollbar-width: thin; /* compact scrollbar */
    scrollbar-color: #2d3e5c #1c2636;
    font-size: 0.9rem;
    line-height: 1.3;
}
    .macro-list-scrollable:hover[b-tvk1cxhjes] {
        scrollbar-color: #3b537a #1c2636;
    }
    .macro-list-scrollable img[b-tvk1cxhjes] {
        max-width: 100%;
        height: auto;
    }

.macro-list-right[b-tvk1cxhjes] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}
.macro-list-frame button[b-tvk1cxhjes] {
    background-color: #2b3b52; /* dark muted blue */
    border: 1px solid #aaa; /* thin grey border */
    color: #d0d4da; /* light grey text */
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    max-height: 30px;
    width: 100%;
    max-width: 160px; /* cap so they don’t stretch */
    align-self: flex-start;
}

    .macro-list-frame button:hover[b-tvk1cxhjes] {
        background-color: #3a4b65;
        border-color: #ccc;
        color: #fff;
    }

    .macro-list-frame button:active[b-tvk1cxhjes] {
        background-color: #465978;
        border-color: #eee;
    }
    .macro-list-frame button:disabled[b-tvk1cxhjes] {
        background-color: #1a1f28;
        border-color: #555;
        color: #666;
        cursor: not-allowed;
        opacity: 0.6;
    }

.add-character-overlay[b-tvk1cxhjes] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.add-character-modal[b-tvk1cxhjes] {
    background-color: #1a2230;
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 16px;
    color: #d0d4da;
    min-width: 280px;
}

    .add-character-modal input[b-tvk1cxhjes] {
        width: 100%;
        margin: 8px 0;
        background-color: #243146;
        border: 1px solid #888;
        border-radius: 4px;
        color: #d0d4da;
        padding: 6px;
    }

.add-character-actions[b-tvk1cxhjes] {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Stack dice above text inside each macro-card */
.macro-card[b-tvk1cxhjes] {
    display: flex;
    flex-direction: column; /* vertical stack: dice on top, text below */
    align-items: center; /* center everything horizontally */
    text-align: center;
    gap: 4px;
    padding: 6px;
    border-bottom: 1px solid #3a4b65;
}

/* Keep dice images on a single line but allow wrapping */
.macro-dice[b-tvk1cxhjes] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    margin-bottom: 4px;
}

.inline-die[b-tvk1cxhjes] {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Text info should fill the width but stay centered */
.macro-info[b-tvk1cxhjes] {
    width: 100%;
    text-align: center;
}
/* /Components/Macros/QualityDialog.razor.rz.scp.css */
/* === Shared Dialog & Modal Styles === */

/* Modal overlay + box */
.modal-overlay[b-pwmhp28tu3] {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box[b-pwmhp28tu3] {
    background-color: #1a2230;
    color: #d0d4da;
    border-radius: 8px;
    min-width: 320px;
    max-width: 500px;
    padding: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    position: relative;
}

.modal-close[b-pwmhp28tu3] {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 1.2rem;
    color: #ccc;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

    .modal-close:hover[b-pwmhp28tu3] {
        color: #fff;
    }

/* Dialog content structure */
.dialog-content[b-pwmhp28tu3] {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
}

.dialog-row[b-pwmhp28tu3] {
    display: flex;
    flex-direction: column;
}

    .dialog-row label[b-pwmhp28tu3] {
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 0.25rem;
    }

    .dialog-row input[b-pwmhp28tu3],
    .dialog-row select[b-pwmhp28tu3],
    .dialog-row textarea[b-pwmhp28tu3],
    .dialog-row .spinbox[b-pwmhp28tu3] {
        background-color: #243146;
        color: #d0d4da;
        border: 1px solid #555;
        border-radius: 4px;
        padding: 0.4rem 0.5rem;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
    }

.spinbox[b-pwmhp28tu3] {
    width: 70px;
}

/* Actions row */
.dialog-actions[b-pwmhp28tu3] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

    .dialog-actions button[b-pwmhp28tu3] {
        background-color: #2b3b52;
        border: 1px solid #888;
        color: #d0d4da;
        border-radius: 4px;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        cursor: pointer;
    }

        .dialog-actions button:hover[b-pwmhp28tu3] {
            background-color: #3a4b65;
        }
/* /Components/Macros/TalentDialog.razor.rz.scp.css */
/* === Shared Dialog & Modal Styles === */

/* Modal overlay + box */
.modal-overlay[b-a8p4fhp0kl] {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box[b-a8p4fhp0kl] {
    background-color: #1a2230;
    color: #d0d4da;
    border-radius: 8px;
    min-width: 320px;
    max-width: 500px;
    padding: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    position: relative;
}

.modal-close[b-a8p4fhp0kl] {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 1.2rem;
    color: #ccc;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

    .modal-close:hover[b-a8p4fhp0kl] {
        color: #fff;
    }

/* Dialog content structure */
.dialog-content[b-a8p4fhp0kl] {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
}

.dialog-row[b-a8p4fhp0kl] {
    display: flex;
    flex-direction: column;
}

    .dialog-row label[b-a8p4fhp0kl] {
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 0.25rem;
    }

    .dialog-row input[b-a8p4fhp0kl],
    .dialog-row select[b-a8p4fhp0kl],
    .dialog-row textarea[b-a8p4fhp0kl],
    .dialog-row .spinbox[b-a8p4fhp0kl] {
        background-color: #243146;
        color: #d0d4da;
        border: 1px solid #555;
        border-radius: 4px;
        padding: 0.4rem 0.5rem;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
    }

.spinbox[b-a8p4fhp0kl] {
    width: 70px;
}

/* Actions row */
.dialog-actions[b-a8p4fhp0kl] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

    .dialog-actions button[b-a8p4fhp0kl] {
        background-color: #2b3b52;
        border: 1px solid #888;
        color: #d0d4da;
        border-radius: 4px;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        cursor: pointer;
    }

        .dialog-actions button:hover[b-a8p4fhp0kl] {
            background-color: #3a4b65;
        }
/* /Components/ShipBuilderWindow/BackgroundImage.razor.rz.scp.css */
.background-image-container[b-cg6ugd9j5x] {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    border-radius: 8px;
}

.background-image[b-cg6ugd9j5x] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}
/* /Components/ShipBuilderWindow/BuilderGrid.razor.rz.scp.css */
.builder-grid[b-986jf08g6d] {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-auto-rows: 80px;
    gap: 0.5rem;
    margin-right: 0.25rem;
    box-sizing:border-box;
    border-radius: 8px;
    
}
.builder-grid-container[b-986jf08g6d] {
    position: absolute;
    display: flex;
    top: 0;
    left: 15px;
    width: 256px;
    height: 400px;
    z-index: 10;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

/* /Components/ShipBuilderWindow/ItemBox.razor.rz.scp.css */
.item-box[b-9ccivjowko] {
    width: 100%;
    height: 100%;
    background-color: #222;
    border: 2px solid #aaa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;

}
    .item-box img[b-9ccivjowko] {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 6px;
    }
/* /Components/ShipBuilderWindow/PartCustomizationScreen.razor.rz.scp.css */
.part-customizer-container[b-cq32m3c0oh] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto; /* Re-enable clicking */
}

/* Window */
.part-customizer[b-cq32m3c0oh] {
    position: relative;
    width: 640px;
    height: 480px;
    background-color: rgba(20, 20, 20, 0.95);
    color: white;
    border: 2px solid #2a2faf;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.customizer-actions[b-cq32m3c0oh] {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.save-button[b-cq32m3c0oh], .remove-button[b-cq32m3c0oh] {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.save-button[b-cq32m3c0oh] {
    background-color: #2aaf4f;
    color: white;
}

    .save-button:hover[b-cq32m3c0oh] {
        background-color: #34d65a;
    }

.remove-button[b-cq32m3c0oh] {
    background-color: #af2a2a;
    color: white;
}

    .remove-button:hover[b-cq32m3c0oh] {
        background-color: #d63434;
    }


.close-button[b-cq32m3c0oh] {
    position: absolute;
    top: 0.3rem;
    right: 0.4rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

    .close-button:hover[b-cq32m3c0oh] {
        color: #ff4f4f;
    }
/* /Components/ShipBuilderWindow/PartSelector.razor.rz.scp.css */
.part-selector-overlay[b-9gan5w28b7] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto; /* Re-enable clicking */
}

/* Window */
.part-selector-window[b-9gan5w28b7] {
    position: relative;
    width: 640px;
    height: 480px;
    background-color: rgba(20, 20, 20, 0.95);
    color: white;
    border: 2px solid #2a2faf;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.close-button[b-9gan5w28b7] {
    position: absolute;
    top: 0.3rem;
    right: 0.4rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}
.close-button:hover[b-9gan5w28b7] {
        color: #ff4f4f;
}

.tab-header[b-9gan5w28b7] {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.tab-button[b-9gan5w28b7] {
    background-color: #222;
    border: none;
    color: white;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

    .tab-button.active[b-9gan5w28b7] {
        background-color: #444;
        border-bottom: 2px solid #2a2faf;
    }

.tab-content[b-9gan5w28b7] {
    flex-grow: 1;
    overflow-y: auto;
}
.part-selector-container[b-9gan5w28b7] {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.85);
    border: 2px solid #2a2faf;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.scrollable-list[b-9gan5w28b7] {
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.part-row[b-9gan5w28b7] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border: 1px solid #444;
    background-color: rgba(255,255,255,0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .part-row:hover[b-9gan5w28b7] {
        background-color: rgba(255,255,255,0.1);
    }

.part-icon[b-9gan5w28b7] {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.part-name[b-9gan5w28b7] {
    font-weight: bold;
    color: white;
    flex: 1;
}
.part-damage[b-9gan5w28b7] {
    font-weight: bold;
    color: white;
    flex: 1;
}
.part-name[b-9gan5w28b7] {
    font-weight: bold;
    color: white;
    flex: 1;
}

.part-details[b-9gan5w28b7] {
    color: #ccc;
    flex: 2;
}
/* Scrollbar Styling */
.scrollable-list[b-9gan5w28b7] {
    scrollbar-width: thin;
    scrollbar-color: #2a2faf #000;
}

/* /Components/ShipBuilderWindow/ShipImage.razor.rz.scp.css */
.ship-image-container[b-5lx2k33ghe] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: 8px;
}

.ship-image[b-5lx2k33ghe] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}
/* /Components/ShipBuilderWindow/WeaponRow.razor.rz.scp.css */
.weapon-row-container[b-r3iyev8e09] {
    width: 100%;
    z-index: 100;
    padding: 8px;
}
.weapon-row-container:hover[b-r3iyev8e09] {
    background-color: rgba(42, 47, 175, 0.1);
}

.weapon-row[b-r3iyev8e09] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}
.scrollable-list[b-r3iyev8e09] {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #2a2faf #000;
}
/* /Components/ShipStatTile/DefenseTile.razor.rz.scp.css */
.defense-stat-layout[b-5krjo1shv7] {
    display: flex;
    flex-direction: column;
    border: 2px solid #2a2faf;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}
.defense-stat-title[b-5krjo1shv7] {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    text-align: center;
}
.defense-tile-wrapper[b-5krjo1shv7] {
    width: 420px;
    height: 80px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 8px;
}
.defense-tile[b-5krjo1shv7] {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid #2a2faf;
    border-radius: 8px;
    padding: 0.75rem;
    width: 100px;
    height: 80px;
    margin: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

    .defense-tile .value[b-5krjo1shv7] {
        font-size: 1.4rem;
        font-weight: bold;
        color: white;
        margin-bottom: 4px;
    }

    .defense-tile .label[b-5krjo1shv7] {
        font-size: 0.7rem;
        color: #ccc;
        line-height: 1;
    }
/* /Components/ShipStatTile/ShipStatBar.razor.rz.scp.css */
.ship-stat-bar-overlay[b-jrdm696ch1] {
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #2a2faf;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}


.ship-stat-bar[b-jrdm696ch1] {
    display: flex;
    gap: 0.5rem;
    background-color: transparent;
    font-family: 'Orbitron', sans-serif;
    justify-content: space-evenly;
}
.ship-stat-bar-layout[b-jrdm696ch1] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: transparent;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.ship-name[b-jrdm696ch1] {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    text-align: center;
}




/* /Components/ShipStatTile/StatTile.razor.rz.scp.css */
.stat-tile[b-30my2436ea] {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid #2a2faf;
    border-radius: 8px;
    padding: 0.75rem;
    width: 100px;
    height: 80px;
    margin: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

    .stat-tile .value[b-30my2436ea] {
        font-size: 1.4rem;
        font-weight: bold;
        color: white;
        margin-bottom: 4px;
    }

    .stat-tile .label[b-30my2436ea] {
        font-size: 0.7rem;
        color: #ccc;
        line-height: 1;
    }
/* /Components/ShipStatTile/ThresholdTile.razor.rz.scp.css */
.threshold-tile[b-u41pci2ydw] {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid #2a2faf;
    border-radius: 8px;
    padding: 0.75rem;
    width: 120px;
    height: 80px;
    margin: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

    .threshold-tile .value[b-u41pci2ydw] {
        font-size: 1.4rem;
        font-weight: bold;
        color: white;
        margin-bottom: 4px;
    }

    .threshold-tile .label[b-u41pci2ydw] {
        font-size: 0.7rem;
        color: #ccc;
        line-height: 1;
    }
/* /Components/ShipWeaponTile/DamageTile.razor.rz.scp.css */
.damage-tile[b-9zqslnr0pt] {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid #2a2faf;
    border-radius: 8px;
    padding: 0.75rem;
    width: 88px;
    height: 80px;
    margin: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

    .damage-tile .value[b-9zqslnr0pt] {
        font-size: 1.4rem;
        font-weight: bold;
        color: white;
        margin-bottom: 4px;
    }

    .damage-tile .label[b-9zqslnr0pt] {
        font-size: 0.7rem;
        color: #ccc;
        line-height: 1;
    }
/* /Components/ShipWeaponTile/ShipWeaponTile.razor.rz.scp.css */
.ship-weapon-tile-overlay[b-arfya26bla] {
    min-width: 400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #2a2faf;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    position: relative;
    padding-top: 2.5rem;
    scroll-snap-align: start;
    flex: 0 0 auto;
}
.ship-weapon-tile[b-arfya26bla] {
    display: flex;
    flex-direction:column;
    background-color: transparent;
    font-family: 'Orbitron', sans-serif;
    justify-content: space-evenly;
}
.name-tile[b-arfya26bla] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    background-color: rgba(42, 47, 175);
    border-bottom: 2px solid #2a2faf;
    /* auto-shrink font */
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-wrap: balance;
}


.skill-range-wrapper[b-arfya26bla] {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.bottom-row-wrapper[b-arfya26bla] {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
/* /Components/ShipWeaponTile/SkillTile.razor.rz.scp.css */
.skill-tile[b-4dg2btrhmz] {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid #2a2faf;
    border-radius: 8px;
    padding: 0.75rem;
    width: 188px;
    height: 80px;
    margin: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

    .skill-tile .value[b-4dg2btrhmz] {
        /* Allow shrinking inside flex layout */
        min-width: 0;
        width: 100%;
        font-weight: bold;
        color: white;
        margin-bottom: 4px;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: break-word;
        text-wrap: balance;
        /* Dynamically shrink with container size */
        font-size: min(1rem, calc(1.2vw + 0.4rem));
        line-height: 1.1;
    }

    .skill-tile .label[b-4dg2btrhmz] {
        font-size: 0.7rem;
        color: #ccc;
        line-height: 1;
    }
/* /Components/ShipWeaponTile/SpecialTile.razor.rz.scp.css */
.special-tile[b-ovb0sg9h0w] {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid #2a2faf;
    border-radius: 8px;
    padding: 0.75rem;
    width: 188px;
    height: 80px;
    margin: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

    .special-tile .value[b-ovb0sg9h0w] {
        /* Allow shrinking inside flex layout */
        min-width: 0;
        width: 100%;
        font-weight: bold;
        color: white;
        margin-bottom: 4px;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: break-word;
        text-wrap: balance;
        /* Dynamically shrink with container size */
        font-size: min(1rem, calc(1.2vw + 0.4rem));
        line-height: 1.1;
    }

    .special-tile .label[b-ovb0sg9h0w] {
        font-size: 0.7rem;
        color: #ccc;
        line-height: 1;
    }
/* /Components/Universal/ContextMenu.razor.rz.scp.css */
.context-menu[b-g8tvfbbm6j] {
    position: absolute;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #555;
    border-radius: 6px;
    padding: 4px 0;
    z-index: 9999;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.context-menu-item[b-g8tvfbbm6j] {
    padding: 6px 12px;
    color: #eee;
    cursor: pointer;
    transition: background 0.2s;
}

    .context-menu-item:hover[b-g8tvfbbm6j] {
        background: #444;
    }
/* /Components/Universal/CreateOrAddModule.razor.rz.scp.css */
.create-add-module[b-rtdft4mulw] {
    background-color: #111;
    color: white;
    border: 2px solid #2a2faf;
    border-radius: 8px;
    padding: 16px;
    width: 80%;
    max-width: 1200px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    position: absolute; /* 🔑 relative to .module-window */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    z-index: 2000; /* still above tabs inside */
}


.close-button[b-rtdft4mulw] {
    position: absolute;
    top: 0.3rem;
    right: 0.4rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

    .close-button:hover[b-rtdft4mulw] {
        color: #ff4f4f;
    }
/* /Components/Universal/EditableList.razor.rz.scp.css */
.editable-list[b-j4mwb3gsgn] {
    background: #111a25;
    border: 1px solid #2b3b52;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    color: #e0e6ef;
}

.editable-list-header[b-j4mwb3gsgn] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

    .editable-list-header h3[b-j4mwb3gsgn] {
        margin: 0;
        color: #4ade80;
        font-size: 1rem;
        font-weight: 600;
    }

.add-btn[b-j4mwb3gsgn] {
    background: #1e293b;
    border: 1px solid #3b4b5e;
    color: #7fcaff;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .add-btn:hover[b-j4mwb3gsgn] {
        background: #2b3a50;
        color: #aee8ff;
    }

.editable-list-body[b-j4mwb3gsgn] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.editable-list-item[b-j4mwb3gsgn] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid #2b3b52;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    transition: background 0.2s ease;
}

    .editable-list-item:hover[b-j4mwb3gsgn] {
        background: rgba(255,255,255,0.08);
    }

.item-label[b-j4mwb3gsgn] {
    font-size: 0.95rem;
}

.item-actions[b-j4mwb3gsgn] {
    display: flex;
    gap: 0.5rem;
}

    .item-actions button[b-j4mwb3gsgn] {
        background: #1e293b;
        border: 1px solid #3b4b5e;
        color: #e0e6ef;
        border-radius: 6px;
        padding: 4px 8px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

.view-btn:hover[b-j4mwb3gsgn] {
    color: #38bdf8;
    background: #223147;
}

.remove-btn:hover[b-j4mwb3gsgn] {
    color: #f87171;
    background: #3a1e1e;
}

.editable-list-empty[b-j4mwb3gsgn] {
    text-align: center;
    color: #7a8699;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
/* /Components/Universal/ImageSelector.razor.rz.scp.css */
.image-selector[b-51uh5xg99g] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #202633;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #444;
    width: 220px;
    margin: 0 auto;
}

.image-preview[b-51uh5xg99g] {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 6px;
    background-color: #111;
    border: 1px solid #555;
}

.arrow-button[b-51uh5xg99g] {
    background: none;
    border: none;
    color: #eee;
    font-size: 1.8rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

    .arrow-button:hover[b-51uh5xg99g] {
        color: #66ccff;
    }

.no-image[b-51uh5xg99g] {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    border: 1px solid #555;
    color: #888;
    font-size: 0.9rem;
    border-radius: 6px;
}
/* /Components/Universal/ModuleWindow.razor.rz.scp.css */
.module-window[b-buhp89bg53] {
    background-color: #111; /* dark neutral */
    color: white;
    border: 2px solid #2a2faf;
    border-radius: 8px;
    padding: 16px;
    margin: 20px auto;
    min-width: 1400px;
    min-height: 900px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
/* /Components/Universal/SelectionModal.razor.rz.scp.css */
.modal-backdrop[b-txf0hrr8u2] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.selection-modal[b-txf0hrr8u2] {
    background: #0f1825;
    border: 1px solid #2b3b52;
    border-radius: 10px;
    width: 480px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    animation: fadeIn-b-txf0hrr8u2 0.25s ease;
}

.modal-header[b-txf0hrr8u2] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2b3b52;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
}

    .modal-header h3[b-txf0hrr8u2] {
        margin: 0;
        color: #4ade80;
        font-size: 1rem;
        font-weight: 600;
    }

.close-btn[b-txf0hrr8u2] {
    background: transparent;
    border: none;
    color: #e0e6ef;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .close-btn:hover[b-txf0hrr8u2] {
        color: #f87171;
    }

.modal-body[b-txf0hrr8u2] {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.75rem;
    overflow: hidden;
}

.search-box[b-txf0hrr8u2] {
    background: #111a25;
    border: 1px solid #3b4b5e;
    border-radius: 6px;
    color: #e0e6ef;
    padding: 0.4rem 0.6rem;
    width: 100%;
    font-size: 0.9rem;
}

    .search-box:focus[b-txf0hrr8u2] {
        outline: none;
        border-color: #38bdf8;
        box-shadow: 0 0 8px rgba(56,189,248,0.4);
    }

.modal-list[b-txf0hrr8u2] {
    overflow-y: auto;
    flex: 1;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    padding: 0.25rem;
}

.modal-item[b-txf0hrr8u2] {
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

    .modal-item:hover[b-txf0hrr8u2] {
        background: rgba(56,189,248,0.2);
        color: #aee8ff;
    }

@keyframes fadeIn-b-txf0hrr8u2 {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* /Components/Universal/Tooltip.razor.rz.scp.css */
.tooltip-container[b-7zpyqd5oo5] {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
}

.tooltip-box[b-7zpyqd5oo5] {
    background-color: #111;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    max-width: 250px;
    font-size: 0.9rem;
}
/* /Components/VirtualTableTop/ChatLog.razor.rz.scp.css */
.chatlog-frame[b-y6o6odi8bh] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 400px;
    width: 100%;
    background: #111a25;
    border-radius: 8px;
}

.chat-messages[b-y6o6odi8bh] {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    color: #e0e6ef;
}

.chat-entry[b-y6o6odi8bh] {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.chat-input[b-y6o6odi8bh] {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1e293b;
    border-top: 1px solid #2b3b52;
    padding: 6px;
}

    .chat-input input[b-y6o6odi8bh] {
        flex: 1;
        background: #0b0f16;
        border: 1px solid #2b3b52;
        border-radius: 4px;
        color: #e0e6ef;
        padding: 5px 8px;
        font-size: 14px;
    }

    .chat-input button[b-y6o6odi8bh] {
        background: #2b3a50;
        color: #e0e6ef;
        border: 1px solid #2b3b52;
        border-radius: 4px;
        padding: 6px 10px;
        cursor: pointer;
        transition: background 0.2s;
    }

        .chat-input button:hover[b-y6o6odi8bh] {
            background: #3c4b66;
        }

.chat-character-select[b-y6o6odi8bh] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1e293b;
    border-bottom: 1px solid #2b3b52;
    padding: 6px 8px;
}

    .chat-character-select label[b-y6o6odi8bh] {
        color: #8ab4ff;
        font-size: 13px;
    }

    .chat-character-select select[b-y6o6odi8bh] {
        background: #0b0f16;
        color: #e0e6ef;
        border: 1px solid #2b3b52;
        border-radius: 4px;
        padding: 4px 6px;
        font-size: 14px;
    }
/* /Components/VirtualTableTop/EncounterCard.razor.rz.scp.css */
/* Card root */
.encounter-card-frame[b-tl0fc1y6lt] {
    position: relative;
    width: 240px;
    height: 320px;
    border: 2px solid #888;
    border-radius: 8px;
    background: #111820;
    color: #e5e5e5;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,.6);
    --nameplate-h: 44px; /* tweak as needed */
    --stat-stripe-w: 60px; /* width of the right stripe */
    z-index: 0;
}

/* Nameplate */
.encounter-card-nameplate[b-tl0fc1y6lt] {
    position: relative; /* ✅ allow absolute children to align here */
    height: var(--nameplate-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg,#222a35,#2f3c50);
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid #444;
}

/* RIGHT stat stripe — pinned */
.encounter-card-stat-stripe[b-tl0fc1y6lt] {
    position: absolute;
    right: 0;
    top: var(--nameplate-h);
    bottom: 0;
    width: var(--stat-stripe-w);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 4px;
    background: linear-gradient(180deg,#202a36,#141b25);
    border-left: 2px solid #333;
}

.encounter-card-content-container[b-tl0fc1y6lt] {
    position: absolute;
    left: 0;
    right: var(--stat-stripe-w);
    top: var(--nameplate-h);
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: #0f141d;
}

/* Top half - Picture (more vertical space) */
.encounter-picture[b-tl0fc1y6lt] {
    flex: 1.5;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid #333;
}

/* Bottom half - Difficulty (less vertical space) */
.encounter-difficulty[b-tl0fc1y6lt] {
    flex: 0.8; /* ⬇ was 1, gives it ~40% height */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    padding: 6px;
    gap: 6px;
}

.dice-icon[b-tl0fc1y6lt] {
    width: calc(25% - 6px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* Stat visuals */
.stat-frame[b-tl0fc1y6lt] {
    position: relative;
    width: 36px;
    height: 36px;
}

.stat-overlay[b-tl0fc1y6lt] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
    text-shadow: 0 0 4px #000;
    pointer-events: none;
}

.stat-icon-red[b-tl0fc1y6lt], .stat-icon-blue[b-tl0fc1y6lt], .stat-icon-shield[b-tl0fc1y6lt], .stat-icon-defense[b-tl0fc1y6lt] {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 2px solid #555;
    background-size: cover;
    background-position: center;
}

.stat-icon-red[b-tl0fc1y6lt] {
    background: radial-gradient(circle,#b03030,#600);
}

.stat-icon-blue[b-tl0fc1y6lt] {
    background: radial-gradient(circle,#3070b0,#003060);
}

.stat-icon-shield[b-tl0fc1y6lt] {
    background: radial-gradient(circle,#888,#333);
}
.stat-icon-defense[b-tl0fc1y6lt] {
    background: radial-gradient(circle, #3b8f4b, #123018);
}
.encounter-name-input[b-tl0fc1y6lt],
.stat-input[b-tl0fc1y6lt] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    border: none;
    outline: none;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0;
}

    .encounter-name-input:focus[b-tl0fc1y6lt],
    .stat-input:focus[b-tl0fc1y6lt] {
        background: rgba(255,255,255,0.1);
        box-shadow: 0 0 4px rgba(255,255,255,0.4);
    }
.remove-card-btn[b-tl0fc1y6lt] {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background-color: #d63031;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease, background-color 0.15s ease;
    z-index: 1;
}

    .remove-card-btn:hover[b-tl0fc1y6lt] {
        background-color: #ff4c4c;
        transform: scale(1.1);
    }
/* /Components/VirtualTableTop/EncounterCreator.razor.rz.scp.css */
/* === Window === */
.encounter-creator-window[b-cujyyh3xik] {
    position: relative;
    width: 520px; /* smaller width */
    background-color: #111821;
    border: 1px solid #555;
    border-radius: 8px;
    color: #e5e5e5;
    padding: 10px 14px 14px 14px;
    margin: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.65);
}

/* === Close Button (top right) === */
.btn-close[b-cujyyh3xik] {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .btn-close:hover[b-cujyyh3xik] {
        color: #ff4444;
    }

/* === Grid Layout === */
.encounter-creator-layout[b-cujyyh3xik] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* === Inputs & Form Sections === */
.encounter-name-input[b-cujyyh3xik] {
    grid-column: 1 / 3;
    text-align: center;
    margin-bottom: 6px;
}

.name-input[b-cujyyh3xik] {
    width: 85%;
    padding: 4px 6px;
    background-color: #1e2430;
    border: 1px solid #555;
    color: #e5e5e5;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

.encounter-image-selector[b-cujyyh3xik] {
    grid-column: 1 / 3;
    text-align: center;
}

/* === Stats & Dice === */
/* === Container holding both Stats + Dice === */
.encounter-attributes-layout[b-cujyyh3xik] {
    grid-column: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: center; /* centers both sections horizontally */
    gap: 14px;
}

/* === Stats Section === */
.encounter-stats-layout[b-cujyyh3xik] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px; /* a little horizontal breathing room */
    justify-content: center; /* center the grid within parent */
}

/* Center the left/right stat stacks */
.stats-left[b-cujyyh3xik], .stats-right[b-cujyyh3xik] {
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontally center labels + inputs */
    gap: 3px;
}

/* === Dice Section === */
.encounter-dice-layout[b-cujyyh3xik] {
    display: flex;
    flex-direction: column;
    align-items: center; /* center dice labels + inputs */
    gap: 3px;
    border-top: 1px solid #333;
    padding-top: 6px;
    width: fit-content; /* keeps section width minimal */
}

.spinbox[b-cujyyh3xik] {
    width: 55px;
    background-color: #202738;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85rem;
    padding: 2px;
}

/* === Buttons === */
.button-layout[b-cujyyh3xik] {
    grid-column: 1 / 3;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}

.btn[b-cujyyh3xik] {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-save[b-cujyyh3xik] {
    background-color: #2d7be8;
    color: #fff;
}

    .btn-save:hover[b-cujyyh3xik] {
        background-color: #529eff;
    }

.btn-cancel[b-cujyyh3xik] {
    background-color: #444c5a;
    color: #ddd;
}

    .btn-cancel:hover[b-cujyyh3xik] {
        background-color: #666c77;
    }
/* /Components/VirtualTableTop/MapPicker.razor.rz.scp.css */
.map-picker[b-8omvaeyoao] {
    background-color: #1a1a1a;
    color: white;
    padding: 20px;
    border-radius: 12px;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-picker-header[b-8omvaeyoao] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.map-grid[b-8omvaeyoao] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
}

.map-option[b-8omvaeyoao] {
    background-color: #222;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

    .map-option:hover[b-8omvaeyoao] {
        border-color: #00b4ff;
    }

    .map-option img[b-8omvaeyoao] {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
    }

    .map-option p[b-8omvaeyoao] {
        margin: 8px 0;
        font-size: 0.9rem;
    }

.close-btn[b-8omvaeyoao] {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}
/* /Components/VirtualTableTop/PlayerFrame.razor.rz.scp.css */
.player-frame[b-8w0om1np0b] {
    position: relative;
    width: 165px; /* 125 image + 40 stripe */
    height: 150px; /* 125 image + 25 nameplate */
    border: 2px solid #888;
    border-radius: 8px;
    background: #111820;
    color: #e5e5e5;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
    font-family: "Segoe UI", sans-serif;
}

/* === Square Player Image === */
.player-image[b-8w0om1np0b] {
    position: absolute;
    top: 0;
    left: 0;
    width: 125px;
    height: 125px;
    border-right: 2px solid #333;
    background-color: #1a2230;
    overflow: hidden;
}

.player-avatar[b-8w0om1np0b] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* === Stat Stripe (flush with nameplate, no bottom border) === */
.player-stat-stripe[b-8w0om1np0b] {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 125px; /* perfectly even with image height */
    background: linear-gradient(180deg, #202a36, #141b25);
    border-left: 2px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 0;
}

/* === Nameplate (Bottom Bar) === */
.player-nameplate[b-8w0om1np0b] {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background: linear-gradient(90deg, #222a35, #2f3c50);
    border-top: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

/* === Stat Icons === */
.stat-frame[b-8w0om1np0b] {
    position: relative;
    width: 25px;
    height: 25px;
}

.stat-overlay[b-8w0om1np0b] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-shadow: 0 0 4px #000;
}

.stat-icon-red[b-8w0om1np0b],
.stat-icon-blue[b-8w0om1np0b],
.stat-icon-shield[b-8w0om1np0b],
.stat-icon-defense[b-8w0om1np0b] {
    width: 25px;
    height: 25px;
    border-radius: 4px;
    border: 2px solid #555;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.stat-icon-red[b-8w0om1np0b] {
    background: radial-gradient(circle, #b03030, #600);
}

.stat-icon-blue[b-8w0om1np0b] {
    background: radial-gradient(circle, #3070b0, #003060);
}

.stat-icon-shield[b-8w0om1np0b] {
    background: radial-gradient(circle, #888, #333);
}
.stat-icon-defense[b-8w0om1np0b] {
    background: radial-gradient(circle, #3b8f4b, #123018);
}
/* /Components/VirtualTableTop/PlayerFrameEditor.razor.rz.scp.css */
/* === Window === */
.player-editor-window[b-ihcm4lvmmo] {
    position: relative;
    width: 520px;
    background-color: #111821;
    border: 1px solid #555;
    border-radius: 8px;
    color: #e5e5e5;
    padding: 10px 14px 14px 14px;
    margin: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.65);
}

/* === Close Button === */
.btn-close[b-ihcm4lvmmo] {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .btn-close:hover[b-ihcm4lvmmo] {
        color: #ff4444;
    }

/* === Layout === */
.player-editor-layout[b-ihcm4lvmmo] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* === Name Input === */
.player-name-input[b-ihcm4lvmmo] {
    grid-column: 1 / 3;
    text-align: center;
    margin-bottom: 6px;
}

.name-input[b-ihcm4lvmmo] {
    width: 85%;
    padding: 4px 6px;
    background-color: #1e2430;
    border: 1px solid #555;
    color: #e5e5e5;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

/* === Avatar Selector === */
.avatar-selector[b-ihcm4lvmmo] {
    grid-column: 1 / 3;
    text-align: center;
}

/* === Stats Layout === */
.avatar-stats-layout[b-ihcm4lvmmo] {
    grid-column: 1 / 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-top: 8px;
}

.stats-left[b-ihcm4lvmmo], .stats-right[b-ihcm4lvmmo] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* === Spinboxes === */
.spinbox[b-ihcm4lvmmo] {
    width: 60px;
    background-color: #202738;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85rem;
    padding: 2px;
}

/* === Buttons === */
.button-layout[b-ihcm4lvmmo] {
    grid-column: 1 / 3;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}

.btn[b-ihcm4lvmmo] {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-save[b-ihcm4lvmmo] {
    background-color: #2d7be8;
    color: #fff;
}

    .btn-save:hover[b-ihcm4lvmmo] {
        background-color: #529eff;
    }

.btn-cancel[b-ihcm4lvmmo] {
    background-color: #444c5a;
    color: #ddd;
}

    .btn-cancel:hover[b-ihcm4lvmmo] {
        background-color: #666c77;
    }
/* /Components/VirtualTableTop/StatEditor.razor.rz.scp.css */
.stat-editor-overlay[b-ix9h31c4eh] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.stat-editor-modal[b-ix9h31c4eh] {
    background: #1b2432;
    color: #e5e5e5;
    padding: 16px 20px;
    border: 2px solid #666;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
    width: 320px;
    animation: fadeIn-b-ix9h31c4eh 0.2s ease;
}

    .stat-editor-modal h4[b-ix9h31c4eh] {
        margin-top: 0;
        text-align: center;
        border-bottom: 1px solid #444;
        padding-bottom: 4px;
        margin-bottom: 8px;
    }

.stat-editor-row[b-ix9h31c4eh] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0;
    gap: 4px;
}

    .stat-editor-row label[b-ix9h31c4eh] {
        flex: 1;
        font-size: 0.75rem;
        text-align: right;
    }

    .stat-editor-row input[b-ix9h31c4eh] {
        width: 60px;
        background: #101621;
        color: #e5e5e5;
        border: 1px solid #444;
        border-radius: 4px;
        padding: 3px;
    }

.stat-editor-actions[b-ix9h31c4eh] {
    display: flex;
    justify-content: space-evenly;
    margin-top: 10px;
}

    .stat-editor-actions button[b-ix9h31c4eh] {
        background: #2a3a50;
        color: #fff;
        border: 1px solid #555;
        border-radius: 5px;
        padding: 5px 10px;
        cursor: pointer;
    }

        .stat-editor-actions button:hover[b-ix9h31c4eh] {
            background: #3e4e66;
        }

@keyframes fadeIn-b-ix9h31c4eh {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* /Components/VirtualTableTop/TurnTracker.razor.rz.scp.css */
.turn-tracker-frame[b-w1ey6hth9k] {
    display: flex;
    flex-direction: column;
    width: 340px;
    background: rgba(20, 20, 25, 1.0);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 8px;
    color: white;
}

.turn-list[b-w1ey6hth9k] {
    flex: 1;
    overflow-y: auto;
    margin-top: 8px;
    scrollbar-width: thin;
    scrollbar-color: #2d3e5c #1c2636;
    width: 340px;
}

.turn-empty[b-w1ey6hth9k] {
    text-align: center;
    opacity: 0.6;
    padding: 8px;
}

.turn-entity[b-w1ey6hth9k] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    margin-bottom: 4px;
    background: rgba(60, 60, 80, 0.6);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 200px;
}

    .turn-entity:hover[b-w1ey6hth9k] {
        background: rgba(100, 100, 130, 0.8);
    }

    .turn-entity.active[b-w1ey6hth9k] {
        background: rgba(0, 150, 255, 0.8);
        font-weight: bold;
    }

.turn-dice[b-w1ey6hth9k] {
    font-size: 0.9em;
    opacity: 0.8;
}

.turn-tracker-header[b-w1ey6hth9k] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #162237;
    padding: 6px 10px;
    border-bottom: 1px solid #2b3b52;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

    .turn-tracker-header h3[b-w1ey6hth9k] {
        margin: 0;
        font-size: 1.1rem;
    }

.close-btn[b-w1ey6hth9k] {
    background: none;
    color: #ccc;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

    .close-btn:hover[b-w1ey6hth9k] {
        color: white;
        background: rgba(255,255,255,0.1);
    }
.turn-tracker-wrapper[b-w1ey6hth9k] {
    position: absolute;
    top: 150px;
    left: 0;
    height: calc(100% - 200px);
    z-index: 200;
}

/* Dock panel */
.turn-tracker-dock[b-w1ey6hth9k] {
    position: absolute;
    top: 0;
    left: 0;
    width: 340px;
    height: 100%;
    background: rgba(18, 22, 30, 1.0);
    border-right: 1px solid #333;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 0 6px rgba(0,0,0,0.4);
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

    .turn-tracker-dock.collapsed[b-w1ey6hth9k] {
        transform: translateX(-340px);
    }


.turn-toggle-btn[b-w1ey6hth9k] {
    position: absolute;
    top: 40%;
    left: 340px; /* aligns with dock edge */
    transform: translateY(-50%);
    z-index: 210;
    width: 26px;
    height: 60px;
    background: #1e293b;
    border: 1px solid #444;
    border-left: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 1.1rem;
    color: #fff;
    transition: left 0.3s ease;
}

.turn-tracker-dock.collapsed + .turn-toggle-btn[b-w1ey6hth9k] {
    left: 0;
}

.turn-toggle-btn:hover[b-w1ey6hth9k] {
    background: #2b3a50;
}

.turn-name-input[b-w1ey6hth9k] {
    width: 100%;
    border: 1px solid #ccc;
    padding: 2px 4px;
    font-size: 0.9em;
}

/* Main row: list + buttons column */
.turn-tracker-main-row[b-w1ey6hth9k] {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

/* Buttons column aligned vertically */
.turn-buttons-column[b-w1ey6hth9k] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

/* Bottom next/previous row */
.turn-bottom-row[b-w1ey6hth9k] {
    display: flex;
    margin-right: 54px;
    margin-top: 8px;
    gap: 4px;
    justify-content: right;
}

    /* Style buttons like your GM frame buttons */
    .turn-buttons-column .control-btn[b-w1ey6hth9k],
    .turn-bottom-row .control-btn[b-w1ey6hth9k] {
        background: #1e293b;
        color: #e0e6ef;
        border: 1px solid #2b3b52;
        border-radius: 4px;
        padding: 6px 10px;
        font-size: 0.9rem;
        cursor: pointer;
        transition: background 0.2s;
        width: 85px;
    }

        .turn-buttons-column .control-btn:hover[b-w1ey6hth9k],
        .turn-bottom-row .control-btn:hover[b-w1ey6hth9k] {
            background: #2b3a50;
        }

        .turn-buttons-column .control-btn:disabled[b-w1ey6hth9k],
        .turn-bottom-row .control-btn:disabled[b-w1ey6hth9k] {
            opacity: 0.5;
            cursor: not-allowed;
        }

/* Make turn list scrollable and full height */
.turn-list[b-w1ey6hth9k] {
    flex: 1;
    overflow-y: auto;
    height: 575px; /* adjust as needed */
}

/* Optional: fix width of buttons column */
.turn-buttons-column[b-w1ey6hth9k] {
    flex: 0 0 90px; /* adjust width to fit text */
}

/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-8t4zgx3jcl] {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.menu-bar[b-8t4zgx3jcl] {
    background: #1c2a3a; /* same as Dice frame-header */
    border-bottom: 1px solid #2b3b52;
    height: 42px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 1rem;
    flex-shrink: 0;
}

main[b-8t4zgx3jcl] {
    flex: 1;
    overflow-y: auto;
}
/* /Layout/NavMenu.razor.rz.scp.css */
.nav-top[b-g17hbf19is] {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    background: #1c2a3a; /* matches frame-header */
    border-bottom: 1px solid #2b3b52; /* same border as VTT panels */
    color: #e0e6f0;
    padding: 0 1.5rem;
    height: 42px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-link[b-g17hbf19is] {
    color: #d7dce5;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .nav-link:hover[b-g17hbf19is] {
        background-color: #24364d; /* subtle lighter highlight */
        color: #ffffff;
    }

    .nav-link.active[b-g17hbf19is] {
        background-color: #2b3b52;
        color: #ffffff;
        border: 1px solid #3b4b5e;
    }

.nav-top .bi[b-g17hbf19is] {
    width: 1rem;
    height: 1rem;
    opacity: 0.85;
    filter: brightness(1.1);
}
/* /Pages/Acknowledgements.razor.rz.scp.css */
.container[b-8ftfp7khzb] {
    background: #162237;
    color: #e0e6ef;
    height: 100%;
    width: 100%;
    position: relative;
    object-fit: contain;
}
/* /Pages/Dice.razor.rz.scp.css */
.frame[b-t7zks9zaqi] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #0f1825; /* full-frame background */
    color: #e0e6f0;
    box-sizing: border-box;
}

.frame-header[b-t7zks9zaqi] {
    padding: 1rem 1.5rem;
    background: #1c2a3a;
    color: #e0e6f0;
    border-bottom: 1px solid #2a3a50;
}

.frame-body[b-t7zks9zaqi] {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.75rem 1rem;
    gap: 0.5rem; /* smaller space between top/bottom */
    background: #0f1825;
}

.top-half[b-t7zks9zaqi] {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: nowrap;
    flex: 0 0 auto; /* content decides height — removes huge gap */
    padding-bottom: 0.25rem; /* a touch of breathing room */
}

.left-half[b-t7zks9zaqi],
.right-half[b-t7zks9zaqi] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bottom-half[b-t7zks9zaqi] {
    border-top: 1px solid #304050;
    padding: 0.75rem 1rem 1rem;
    background: #162237;
    overflow-y: auto;
    flex: 0 0 auto; /* content height only */
}

.display-pool[b-t7zks9zaqi],
.macro-effects[b-t7zks9zaqi],
.macro-list[b-t7zks9zaqi] {
    background: #1c2a3a;
    border: 1px solid #2b3b52;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
/* /Pages/ShipBuilder.razor.rz.scp.css */
.shipbuilder-page-layout[b-mh5todvc2r] {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
    height: 100dvh;
    padding: 16px;
    min-height: 0; /* allow children to shrink */
    min-width: 0; /* allow children to shrink horizontally */
    overflow: hidden; /* stop expanding beyond viewport */
}


.shipbuilder-layout[b-mh5todvc2r] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: 100%; /* inherit from page-layout */
    min-height: 0;
    overflow: hidden;
}


/* ——— VISUAL PANE MUST FILL ITS GRID TRACK ——— */
.ship-visual-pane[b-mh5todvc2r] {
    grid-column: 1;
    width: 100%; /* fill the column */
    min-width: 0;
    position: relative;
    border-radius: 8px;
    height: 100%;
    overflow: hidden;
}

/* ——— DETAILS PANE: MAKE THE MIDDLE AREA SCROLL ——— */
.details-pane[b-mh5todvc2r] {
    grid-column: 2;
    min-width: 320px;
    max-width: 320px;
    display: grid;
    grid-template-rows: auto 1fr; /* header/footer (auto) + scroller (1fr) */
    height: 100%;
    min-height: 0;
    overflow: hidden; /* pane itself doesn’t grow; inner area scrolls */
}

/* this must wrap all the tall content (stats, weapons list, etc.) */
.details-scroll[b-mh5todvc2r] {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: #2a2faf #000;
}


    .details-pane .row[b-mh5todvc2r] {
        display: flex;
        align-items: center;
        gap: .4rem;
        margin-top: 6px;
    }

    .details-pane .head[b-mh5todvc2r] {
        margin-top: 8px;
    }

.details-pane .toggle[b-mh5todvc2r] {
    background: transparent;
    border: none;
    color: #2a2faf #000; 
    cursor: pointer;
    width: 1.2rem;
    line-height: 1;
    padding: 0;
}

    .details-pane .link[b-mh5todvc2r] {
        background: transparent;
        border: none;
        color: #9ecbff;
        cursor: pointer;
        padding: 0;
    }

    .details-pane .sub[b-mh5todvc2r] {
        margin-left: 1.4rem;
    }

    .details-pane .sub2[b-mh5todvc2r] {
        margin-left: 2.0rem;
    }

    .details-pane .sub3[b-mh5todvc2r] {
        margin-left: 2.6rem;
    }

    .details-pane .spacer[b-mh5todvc2r] {
        height: 10px;
    }


.tab-button[b-mh5todvc2r] {
    margin-right: 8px;
    padding: 6px 12px;
    background-color: #222;
    color: white;
    border: none;
    cursor: pointer;
}

    .tab-button.active[b-mh5todvc2r] {
        background-color: #444;
        border-bottom: 2px solid #2a2faf;
    }

.tab-content[b-mh5todvc2r] {
    margin-top: 20px;
}

.startup-panel[b-mh5todvc2r] {
    padding: 1rem;
    text-align: center;
    color: white;
}

.button-group[b-mh5todvc2r] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 1rem;
}

.module-button[b-mh5todvc2r] {
    margin-right: 8px;
    padding: 6px 12px;
    background-color: #222;
    color: white;
    cursor: pointer;
    border: 2px solid #2a2faf;
    border-radius: 6px;
    padding: 10px 20px;
    min-width: 200px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

    .module-button:hover[b-mh5todvc2r] {
        background-color: #111;
        border-color: #5a4fff;
        transform: translateY(-2px);
    }

    .module-button:active[b-mh5todvc2r] {
        background-color: #444;
    }

.create-user-tab[b-mh5todvc2r] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    color: white;
}

.input-text[b-mh5todvc2r] {
    padding: 6px 10px;
    border: 1px solid #2a2faf;
    border-radius: 4px;
    background-color: #111;
    color: white;
}

/* /Pages/VirtualTableTop.razor.rz.scp.css */
.vtt-wrapper[b-z6sxmk8nso] {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    min-height: 100vh;
    background: #0b0f16;
    padding: 12px 16px;
    box-sizing: border-box;
}

.vtt-page[b-z6sxmk8nso] {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0b0f16;
    color: #e0e6ef;
    min-height: 100%;
    padding: 10px;
    flex: 1 1 auto;
}
.vtt-sidebar[b-z6sxmk8nso] {
    flex: 0 0 500px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #111a25;
    border: 1px solid #2b3b52;
    border-radius: 8px;
    padding: 0.75rem;
    height: calc(100vh - 40px);
    overflow-y: auto;
    position: sticky;
    top: 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}


.vtt-title[b-z6sxmk8nso] {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 0 0 8px #2a6eff;
}

.player-row[b-z6sxmk8nso] {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

/* Tabletop area */
.tabletop-frame[b-z6sxmk8nso] {
    position: relative;
    width: 95%;
    height: 700px;
    border: 2px solid #2f3b4f;
    border-radius: 8px;
    background: linear-gradient(180deg, #121923 0%, #0b1017 100%);
    overflow: hidden;
}

/* Draggable Encounter Cards */
.draggable-card[b-z6sxmk8nso] {
    position: absolute;
    cursor: grab;
    transition: box-shadow 0.15s;
}

    .draggable-card:active[b-z6sxmk8nso] {
        cursor: grabbing;
        box-shadow: 0 0 12px rgba(0,255,255,0.3);
    }





.modal-overlay[b-z6sxmk8nso] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* === Unified Frame and Header === */
.vtt-frame-wrapper[b-z6sxmk8nso] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid #2b3b52;
    border-radius: 8px;
    background: #0b0f16;
    width: 100%;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
}

.vtt-frame-header[b-z6sxmk8nso] {
    width: 100%;
    background: #162237;
    border-bottom: 1px solid #2b3b52;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 12px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.vtt-title[b-z6sxmk8nso] {
    font-size: 1.8rem;
    font-weight: 600;
    color: #e0e6f0;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    margin: 0;
}


/* === Session Splash Screen === */
.session-splash[b-z6sxmk8nso] {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #0b0f16 0%, #06090d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.session-box[b-z6sxmk8nso] {
    background: #121a26;
    border: 1px solid #2b3b52;
    border-radius: 10px;
    padding: 2rem 3rem;
    text-align: center;
    color: #e0e6ef;
    box-shadow: 0 0 18px rgba(0,0,0,0.6);
    width: 360px;
}

    .session-box h2[b-z6sxmk8nso] {
        margin-bottom: 1rem;
        color: #4ade80;
        text-shadow: 0 0 6px rgba(74,222,128,0.4);
    }

.session-actions[b-z6sxmk8nso] {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.session-input[b-z6sxmk8nso] {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #3b4b5e;
    background: #1e293b;
    color: #e0e6ef;
    width: 160px;
    text-transform: uppercase;
    text-align: center;
}

.session-btn[b-z6sxmk8nso] {
    background: #1e293b;
    border: 1px solid #3b4b5e;
    border-radius: 4px;
    padding: 6px 12px;
    color: #e0e6ef;
    cursor: pointer;
    transition: background 0.2s;
}

    .session-btn:hover[b-z6sxmk8nso] {
        background: #2b3a50;
    }

    .session-btn.create[b-z6sxmk8nso] {
        color: #38bdf8;
    }

    .session-btn.join[b-z6sxmk8nso] {
        color: #4ade80;
    }

.session-message[b-z6sxmk8nso] {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #9ca3af;
}

.vtt-header-content[b-z6sxmk8nso] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.session-display[b-z6sxmk8nso] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #111a25;
    border: 1px solid #2b3b52;
    border-radius: 6px;
    padding: 4px 10px;
    color: #9ca3af;
    font-size: 0.9rem;
}

    .session-display strong[b-z6sxmk8nso] {
        color: #4ade80;
        letter-spacing: 0.05em;
    }

.copy-btn[b-z6sxmk8nso] {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

    .copy-btn:hover[b-z6sxmk8nso] {
        color: #ffffff;
    }
.vtt-bottom-row[b-z6sxmk8nso] {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    padding: 8px;
    background: #0b0f16;
    border-top: 1px solid #2b3b52;
    height: auto;
}


/* --- Chat + GM alignment --- */
.chatlog-container[b-z6sxmk8nso],
.gm-frame[b-z6sxmk8nso] {
    border: 1px solid #2b3b52;
    background: #111a25;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    color: #e0e6ef;
}

/* --- Chatlog container --- */
.chatlog-container[b-z6sxmk8nso] {
    flex: 0 0 auto;
    width: 48%;
    min-width: 380px;
    max-width: 500px;
    height: 280px; /* hard lock on height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0; /* prevent flexbox from resizing it */
}


/* --- GM Frame --- */
.gm-frame[b-z6sxmk8nso] {
    flex: 0 0 48%;
    height: 280px;
    padding: 12px 16px;
}

/* --- GM controls, matching your page style --- */
.gm-controls[b-z6sxmk8nso] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:space-between;
    gap: 8px;
}

.gm-top-controls[b-z6sxmk8nso] {
    display: flex;
    flex-direction: row;
    gap: 8px;
}
.gm-bottom-controls[b-z6sxmk8nso] {
    display: flex;
    flex-direction: row;
    gap: 8px;
}
.encounter-button-column[b-z6sxmk8nso] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.gm-controls button.control-btn[b-z6sxmk8nso],
.gm-controls select[b-z6sxmk8nso] {
    background: #1e293b;
    color: #e0e6ef;
    border: 1px solid #2b3b52;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    width: 200px;
}

    .gm-controls button.control-btn:hover[b-z6sxmk8nso],
    .gm-controls select:hover[b-z6sxmk8nso] {
        background: #2b3a50;
    }


.encounter-listbox[b-z6sxmk8nso] {
    background: #111a25;
    color: #e0e6ef;
    border: 1px solid #2b3b52;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 0.9rem;
    cursor: pointer;
    scrollbar-width: thin;
    scrollbar-color: #2d3e5c #1c2636;
}

    .encounter-listbox option:checked[b-z6sxmk8nso] {
        background: #1e293b;
        color: #4ade80;
    }

.chat-dock-wrapper[b-z6sxmk8nso] {
    position: fixed;
    bottom: 0;
    left: 100px;
    width: 45vw;
    max-width: 600px;
    min-width: 360px;
    z-index: 50;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: auto; /* default: allow interaction */
}

/* Collapsed dock */
.chat-dock-wrapper.collapsed[b-z6sxmk8nso] {
    pointer-events: none; /* wrapper ignores clicks when collapsed */
}

/* Dock content inside wrapper */
.chat-dock[b-z6sxmk8nso] {
    width: 100%;
    background: rgba(17, 26, 37, 0.95);
    border-top: 1px solid #2b3b52;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.45);
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: auto; /* restore interaction for dock content when expanded */
}

.chat-dock.collapsed[b-z6sxmk8nso] {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none; /* dock itself ignores clicks */
}


/* Toggle button for chat dock */
.chat-dock-toggle[b-z6sxmk8nso] {
    position: fixed;
    bottom: 8px;
    left: 10px;
    z-index: 1200;
    background: #2b3b52;
    color: #e0e6ef;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.45);
    width: 80px;
}

/* Optional: smoother hover effect */
.chat-dock-toggle:hover[b-z6sxmk8nso] {
    background: #3b4b5e;
}

