.ui-panel {
    background: rgba(255,255,255,0.13);
    border-radius: 1.5em;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    backdrop-filter: blur(14px);
    padding: 2.5em 3.5em;
    margin: 6vh auto;
    max-width: 440px;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.18);
}
.ui-chip {
    display: inline-block;
    background: #222a;
    color: #fff;
    border-radius: 1em;
    padding: 0.3em 1em;
    margin: 0.2em 0.5em 0.2em 0;
    font-size: 0.97em;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.ui-actions {
    margin-top: 2em;
    display: flex;
    gap: 1em;
    justify-content: center;
}
.ui-grid-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2em;
    margin: 3em auto;
    max-width: 1200px;
}
.chip {
    display: inline-block;
    background: #222a;
    color: #fff;
    border-radius: 1em;
    padding: 0.3em 1em;
    margin: 0.2em;
    font-size: 0.95em;
    cursor: pointer;
}
.chip--active {
    background: #4af;
    color: #fff;
}
.card-skeleton {
    background: #fff2;
    border-radius: 1em;
    height: 140px;
    margin: 0.5em;
    box-shadow: 0 2px 8px #0002;
}
.ui-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1em;
}
.glass-panel {
    background: rgba(255,255,255,0.12);
    border-radius: 1.5em;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    backdrop-filter: blur(12px);
    padding: 2em 3em;
    margin: 5vh auto;
    max-width: 420px;
    color: #fff;
}

.ui-grid-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2em;
    margin: 3em auto;
    max-width: 1200px;
}
.chip {
    display: inline-block;
    background: #222a;
    color: #fff;
    border-radius: 1em;
    padding: 0.3em 1em;
    margin: 0.2em;
    font-size: 0.95em;
    cursor: pointer;
}
.chip--active {
    background: #4af;
    color: #fff;
}
.card-skeleton {
    background: #fff2;
    border-radius: 1em;
    height: 140px;
    margin: 0.5em;
    box-shadow: 0 2px 8px #0002;
}
.ui-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1em;
}
.ui-stage{
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.ui-bg{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    filter: saturate(1.05);
}

.ui-overlays{
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ui-overlay{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ui-content{
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
}

/* Overlay controls */
.ui-overlay-controls{
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 9;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    pointer-events: auto;
}
.ui-overlay-controls-row{ display:flex; gap:8px; align-items:center; }
.ui-btn-small{ font-size: 12px; padding: 6px 10px; }
.ui-overlay.is-hidden{ display: none; }

/* Persona selection grid */
.persona-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1em;
}
.persona-card{
    background: rgba(255,255,255,0.10);
    border-radius: 1em;
    padding: 1em;
    color: #fff;
    box-shadow: 0 2px 10px #0003;
}
.persona-card .persona-meta{
    font-size: 0.9em;
    opacity: 0.85;
}

/* Calibration meter */
.ui-meter{
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.25);
}
.ui-meter .ui-meter-bar{
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4af, #6cf);
    transition: width 0.25s ease;
}

.ui-overlays{
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ui-overlay{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ui-content{
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
}
.ui-screen {
    min-height: 100vh;
    min-width: 100vw;
    background: #181a1b;
    overflow: hidden;
}
.ui-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}
.ui-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 2;
}
.ui-panel {
    position: absolute;
    z-index: 10;
    /* Add panel styling as needed */
}
