/* /Components/Core/OPBrowserGate.razor.rz.scp.css */
.gate[b-qs3oh5ylgr] {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background-color: var(--bg);
    background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
    background-size: 16px 16px;
}

.gate-card[b-qs3oh5ylgr] {
    width: 100%;
    max-width: 720px;
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    padding: 48px 56px;
}

.gate-icon[b-qs3oh5ylgr] {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

h1[b-qs3oh5ylgr] {
    margin: 6px 0 10px;
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lead[b-qs3oh5ylgr] {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-muted);
}

.steps[b-qs3oh5ylgr] {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.steps li[b-qs3oh5ylgr] {
    counter-increment: step;
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: 15px;
    line-height: 22px;
}

.steps li[b-qs3oh5ylgr]::before {
    content: counter(step);
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--on-ink);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-1px);
}

.browsers[b-qs3oh5ylgr] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 20px;
}

.link[b-qs3oh5ylgr] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-raised);
    border: 1px solid var(--border);
}

.link .op-mono[b-qs3oh5ylgr] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.foot[b-qs3oh5ylgr] {
    font-size: 12px;
    line-height: 18px;
    margin: 24px 0 0;
}

@media (max-width: 600px) {
    .gate-card[b-qs3oh5ylgr] {
        padding: 32px 24px;
    }

    h1[b-qs3oh5ylgr] {
        font-size: 24px;
        line-height: 30px;
    }
}
/* /Components/Core/OPToasts.razor.rz.scp.css */
.toasts[b-oeu5upvlff] {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-width: min(440px, calc(100vw - 40px));
}

.toasts[b-oeu5upvlff]  .op-toast {
    cursor: pointer;
    animation: toast-in-b-oeu5upvlff var(--duration-slow) ease-out;
}

@keyframes toast-in-b-oeu5upvlff {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
/* /Components/Device/ButtonCard.razor.rz.scp.css */
.op-card.selected[b-mml1sqgdra] {
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink), var(--shadow-card);
}

.gauge[b-mml1sqgdra]  .depth.pressed,
.depth.pressed[b-mml1sqgdra] {
    background: var(--mint);
    border-right: 2px solid var(--ok);
    opacity: 1;
}

.fired[b-mml1sqgdra] {
    color: var(--ok);
    font-weight: 600;
}

.gauge[b-mml1sqgdra] {
    grid-template-columns: 1fr;
    padding: var(--space-4) 0 var(--space-2);
}
/* /Components/Device/OPDeviceTabs.razor.rz.scp.css */
.device-tabs[b-ds3vjfik0y] {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.op-tabpanel[b-ds3vjfik0y] {
    flex: 1;
    min-height: 160px;
}

/* rows fill the panel: two columns on wide screens, one below */
.settings-grid[b-ds3vjfik0y] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr));
    column-gap: var(--space-7);
}

.settings-grid[b-ds3vjfik0y]  .op-row {
    border-top: 1px solid var(--border);
}

.settings-grid[b-ds3vjfik0y]  .op-row:nth-child(-n + 2) {
    border-top: none;
}

.details[b-ds3vjfik0y] {
    border-collapse: collapse;
    width: 100%;
}

.details td[b-ds3vjfik0y] {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.details td:first-child[b-ds3vjfik0y] {
    width: 180px;
    padding-right: 16px;
}

.details tr:last-child td[b-ds3vjfik0y] {
    border-bottom: none;
}

.details .op-mono[b-ds3vjfik0y] {
    word-break: break-word;
}

.log-head[b-ds3vjfik0y] {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    margin: var(--space-5) 0 var(--space-2);
    font-size: 13px;
}

.log[b-ds3vjfik0y] {
    margin: 0;
    max-height: 360px;
    overflow: auto;
    padding: var(--space-3);
    background: var(--bg-raised);
    border-radius: var(--radius-sm);
    white-space: pre-wrap;
    line-height: 18px;
}
/* /Components/Device/OPMouseStage.razor.rz.scp.css */
.stage[b-555nr9y4dy] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr);
    gap: var(--space-6);
    align-items: center;
}

.side.left[b-555nr9y4dy] {
    justify-self: end;
    width: 100%;
    max-width: 520px;
}

.side.right[b-555nr9y4dy] {
    width: 100%;
    max-width: 520px;
}

.mouse[b-555nr9y4dy] {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.mouse svg[b-555nr9y4dy] {
    width: 200px;
    height: 334px;
    overflow: visible;
    filter: drop-shadow(0 4px 14px #1d1d1f14);
}

.mouse figcaption[b-555nr9y4dy] {
    font-size: 12px;
    text-align: center;
}

.shell[b-555nr9y4dy] {
    fill: none;
    stroke: var(--ink);
    stroke-width: 3;
}

.split[b-555nr9y4dy] {
    stroke: var(--ink);
    stroke-width: 2;
}

.region[b-555nr9y4dy] {
    fill: var(--bg-panel);
    cursor: pointer;
    transition: fill var(--duration-fast);
    outline: none;
}

.region:hover[b-555nr9y4dy] {
    fill: var(--bg-hover);
}

/* selected: a quiet grey fill; the button's card carries the ring */
.region.selected[b-555nr9y4dy] {
    fill: var(--bg-raised);
}

.region.pressed[b-555nr9y4dy] {
    fill: var(--mint);
}

.region:focus-visible[b-555nr9y4dy] {
    fill: var(--bg-hover);
}

.part[b-555nr9y4dy] {
    fill: var(--cap-mod);
    stroke: var(--ink);
    stroke-width: 2;
    transition: fill var(--duration-fast);
}

.part.pressed[b-555nr9y4dy] {
    fill: var(--mint);
}

@media (max-width: 1180px) {
    .stage[b-555nr9y4dy] {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .mouse[b-555nr9y4dy] {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .side.left[b-555nr9y4dy] {
        justify-self: stretch;
        max-width: none;
    }

    .side.right[b-555nr9y4dy] {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .stage[b-555nr9y4dy] {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* /Components/Keymap/OPKeyboardEditor.razor.rz.scp.css */
.kb-stage[b-859xypfm5b] {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.controls[b-859xypfm5b] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.controls .spacer[b-859xypfm5b] {
    flex: 1;
}

.badge[b-859xypfm5b] {
    margin-left: 6px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--lavender);
    color: var(--ink);
    font-size: 11px;
}

.board-wrap[b-859xypfm5b] {
    display: flex;
    justify-content: center;
}

.op-board.loading[b-859xypfm5b] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.spinner[b-859xypfm5b] {
    width: 26px;
    height: 26px;
    border: 3px solid var(--border-strong);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin-b-859xypfm5b 0.8s linear infinite;
}

@keyframes spin-b-859xypfm5b {
    to { transform: rotate(360deg); }
}

.plate[b-859xypfm5b] {
    position: relative;
    width: 100%;
}

.slot[b-859xypfm5b] {
    position: absolute;
    padding: 3px;
}

.slot[b-859xypfm5b]  .op-key,
.slot .op-key[b-859xypfm5b] {
    width: 100%;
    height: 100%;
}

/* ISO Enter: the cap follows the L shape */
.op-key.iso-enter[b-859xypfm5b] {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 16.7% 100%, 16.7% 50%, 0 50%);
}

.extras[b-859xypfm5b] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

.extra[b-859xypfm5b] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 120px;
}

.extra .op-key[b-859xypfm5b] {
    height: 52px;
}

/* picker tab */
.picker[b-859xypfm5b] {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 280px;
    gap: var(--space-5);
    align-items: start;
}

.pick-hint[b-859xypfm5b] {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    justify-content: space-between;
}

.categories[b-859xypfm5b] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.categories button[b-859xypfm5b] {
    text-align: left;
    height: 32px;
    padding: 0 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
}

.categories button:hover[b-859xypfm5b] {
    background: var(--bg-hover);
    color: var(--text);
}

.categories button.active[b-859xypfm5b] {
    background: var(--ink);
    color: var(--on-ink);
}

.search[b-859xypfm5b] {
    margin-top: var(--space-3);
}

.search .value[b-859xypfm5b] {
    width: 100%;
    min-width: 0;
}

.search input[b-859xypfm5b] {
    text-align: left !important;
}

.codes[b-859xypfm5b] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 6px;
    max-height: 420px;
    overflow-y: auto;
    padding: 2px;
}

.code-slot[b-859xypfm5b] {
    height: 54px;
}

.chosen .body[b-859xypfm5b] {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

.chosen-cap[b-859xypfm5b] {
    width: 72px;
    height: 64px;
}

.quick[b-859xypfm5b] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 1100px) {
    .picker[b-859xypfm5b] {
        grid-template-columns: minmax(0, 1fr);
    }

    .categories[b-859xypfm5b] {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.op-topbar[b-zfpxbumzzs] {
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand[b-zfpxbumzzs] {
    color: var(--text);
}

.op-topbar[b-zfpxbumzzs]  .device {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.op-topbar[b-zfpxbumzzs]  .device.current {
    color: var(--on-ink);
    background: var(--ink);
}

.op-topbar[b-zfpxbumzzs]  .device.current .battery.ok {
    color: var(--mint);
}

.op-topbar[b-zfpxbumzzs]  .op-kind-icon {
    width: 16px;
    height: 16px;
}

.device.opening[b-zfpxbumzzs],
.device.asleep[b-zfpxbumzzs] {
    cursor: default;
}

.spinner[b-zfpxbumzzs] {
    width: 12px;
    height: 12px;
    border: 2px solid var(--border-strong);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin-b-zfpxbumzzs 0.8s linear infinite;
}

.sleep-dot[b-zfpxbumzzs] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--text-muted);
}

@keyframes spin-b-zfpxbumzzs {
    to { transform: rotate(360deg); }
}

.busy-line[b-zfpxbumzzs] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    background-size: 40% 100%;
    background-repeat: no-repeat;
    animation: busy-b-zfpxbumzzs 1.2s ease-in-out infinite;
}

@keyframes busy-b-zfpxbumzzs {
    from { background-position: -40% 0; }
    to { background-position: 140% 0; }
}

.op-topbar[b-zfpxbumzzs] {
    position: sticky;
}

.content[b-zfpxbumzzs] {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    min-width: 0;
    /* the page fills the window below the topbar; the tab panel takes the rest */
    min-height: calc(100vh - 56px);
}

@media (max-width: 760px) {
    .brand-name[b-zfpxbumzzs], .connect-label[b-zfpxbumzzs] {
        display: none;
    }

    .content[b-zfpxbumzzs] {
        padding: var(--space-4);
    }
}
/* /Pages/Device/DevicePage.razor.rz.scp.css */
.head[b-uxgtddklkz] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--space-4);
}

.title[b-uxgtddklkz] {
    flex: 1;
    min-width: 260px;
}

.title h1[b-uxgtddklkz] {
    margin-top: 2px;
}

.chips[b-uxgtddklkz] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.center[b-uxgtddklkz] {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.waiting[b-uxgtddklkz] {
    width: min(100%, 440px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-6) var(--space-6) var(--space-5);
    text-align: center;
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.waiting h1[b-uxgtddklkz] {
    font-size: 20px;
    line-height: 28px;
    margin-top: var(--space-2);
}

.waiting p[b-uxgtddklkz] {
    margin: 0 0 var(--space-2);
}

.waiting .op-button[b-uxgtddklkz] {
    text-decoration: none;
}

.sleep[b-uxgtddklkz] {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.spinner[b-uxgtddklkz] {
    flex: none;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-strong);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin-b-uxgtddklkz 0.8s linear infinite;
}

@keyframes spin-b-uxgtddklkz {
    to { transform: rotate(360deg); }
}
/* /Pages/Home/Home.razor.rz.scp.css */
.intro h1[b-npeb9t4trs] {
    margin: 4px 0 6px;
}

.intro p[b-npeb9t4trs] {
    margin: 0;
    max-width: 640px;
}

.tiles[b-npeb9t4trs] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-4);
}

.tiles[b-npeb9t4trs]  .op-tile .name {
    display: block;
}

.tiles[b-npeb9t4trs]  .op-kind-icon {
    width: 30px;
    height: 30px;
}

.op-tile.opening .art[b-npeb9t4trs],
.op-tile.asleep .art[b-npeb9t4trs] {
    background: var(--bg-raised);
    color: var(--text-muted);
}

.spinner[b-npeb9t4trs] {
    width: 22px;
    height: 22px;
    border: 3px solid var(--border-strong);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin-b-npeb9t4trs 0.8s linear infinite;
}

@keyframes spin-b-npeb9t4trs {
    to { transform: rotate(360deg); }
}

.skeleton[b-npeb9t4trs] {
    display: block;
    margin-top: 10px;
    width: 60%;
    height: 10px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--bg-raised), var(--bg-hover), var(--bg-raised));
    background-size: 200% 100%;
    animation: shimmer-b-npeb9t4trs 1.4s ease-in-out infinite;
}

@keyframes shimmer-b-npeb9t4trs {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

.hint[b-npeb9t4trs] {
    display: block;
    font-size: 12px;
    line-height: 16px;
    margin-top: 4px;
}

.empty[b-npeb9t4trs] {
    padding: var(--space-5);
}

.steps[b-npeb9t4trs] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.step[b-npeb9t4trs] {
    display: flex;
    gap: 12px;
    line-height: 1.45;
}

.step .op-muted[b-npeb9t4trs] {
    font-size: 13px;
    margin-top: 2px;
}

.num[b-npeb9t4trs] {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--on-ink);
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.actions[b-npeb9t4trs] {
    display: flex;
    gap: 8px;
}

.drivers[b-npeb9t4trs] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--space-4);
}

.driver p[b-npeb9t4trs] {
    margin: 8px 0 12px;
    line-height: 1.5;
}

.tested[b-npeb9t4trs] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding-bottom: 12px;
}

@media (max-width: 760px) {
    .tiles[b-npeb9t4trs], .drivers[b-npeb9t4trs] {
        grid-template-columns: minmax(0, 1fr);
    }
}
