:root {
    --bg: #0b0f19;
    --card: rgba(255,255,255,.08);
    --border: rgba(255,255,255,.18);
    --text: #fff;
    --muted: #b7c0d1;
    --accent: #00c6ff;
    --cloud: #72f2c7;
    --radius: 16px;
    --shadow: 0 4px 14px rgba(0,0,0,.3);
    --edit-bg: rgba(118, 237, 228, .16);
    --edit-border: rgba(118, 237, 228, .58);
    --edit-strong-bg: rgba(118, 237, 228, .22);
    --edit-strong-border: rgba(118, 237, 228, .82);
    --focus-ring: 0 0 0 3px rgba(118, 237, 228, .18);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f3f5fa;
        --card: #fff;
        --border: rgba(0,0,0,.08);
        --text: #0f1420;
        --muted: #5a667b;
        --accent: #236cff;
    }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    background:
        radial-gradient(800px 400px at 40% -20%, rgba(35,108,255,.18), transparent),
        linear-gradient(160deg, rgba(0,198,255,.08), transparent 40%),
        var(--bg);
    color: var(--text);
    font: 14px/1.4 system-ui, Segoe UI, Roboto, Arial, sans-serif;
}

button, input, select, textarea { font: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.layout { min-height: 100vh; display: block; }
body.desktop-user .layout { display: flex; align-items: stretch; }
body.runtime-mobile-user .layout { display: block; }

.sidebar { display: none; }
body.desktop-user .sidebar {
    display: flex;
    flex-direction: column;
    padding: 10px 8px;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    border-right: 1px solid var(--border);
    overflow: auto;
    background: linear-gradient(180deg, rgba(0,0,0,.20), transparent);
}
body.runtime-mobile-user .sidebar { display: none; }

.sideBrand {
    align-items: center;
    display: flex;
    gap: 10px;
    margin: 6px 6px 16px;
}

.brandMark {
    align-items: center;
    background: linear-gradient(135deg, rgba(0,198,255,.28), rgba(114,242,199,.24));
    border: 1px solid rgba(114,242,199,.55);
    border-radius: 14px;
    display: flex;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    letter-spacing: .04em;
    width: 42px;
}

.brandTitle { font-weight: 800; }
.brandSub { color: var(--muted); font-size: 12px; }

.sideTitle {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
    margin: 6px 6px 10px;
}

.sideItem {
    border-radius: 14px;
    padding: 10px;
    margin: 6px;
    border: 1px solid transparent;
    background: rgba(0,0,0,.12);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    transition: .12s transform ease, .12s background ease, .12s border-color ease;
}

.sideItem:hover { transform: translateY(-1px); background: rgba(0,0,0,.18); }
.sideItem.active {
    background: linear-gradient(180deg, rgba(0,198,255,.25), rgba(0,0,0,.15));
    border-color: rgba(0,198,255,.6);
}

.sideItem.hasColor {
    background:
        linear-gradient(90deg, rgba(var(--tile-rgb), .18), rgba(0,0,0,.10) 72%),
        rgba(0,0,0,.12);
    border-color: rgba(var(--tile-rgb), .42);
}

.sideItem.hasColor:hover {
    background:
        linear-gradient(90deg, rgba(var(--tile-rgb), .26), rgba(0,0,0,.16) 72%),
        rgba(0,0,0,.15);
    border-color: rgba(var(--tile-rgb), .62);
}

.sideItem.hasColor.active {
    background:
        linear-gradient(90deg, rgba(var(--tile-rgb), .34), rgba(0,198,255,.12) 76%),
        rgba(0,0,0,.16);
    border-color: rgba(var(--tile-rgb), .84);
}

.eventsMenu {
    display: grid;
    gap: 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    flex: 0 0 auto;
    background: var(--cloud);
    box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 3px 8px rgba(0,0,0,.18);
}
.dot.blue { background: var(--accent); }
.dot.violet { background: #9c7cff; }
.sideItem.hasColor .dot { background: rgb(var(--tile-rgb)); }

.runtimeIcon {
    align-items: center;
    color: currentColor;
    display: inline-flex;
    flex: 0 0 auto;
    height: var(--icon-size, 20px);
    justify-content: center;
    line-height: 1;
    vertical-align: -0.18em;
    width: var(--icon-size, 20px);
}

.runtimeIcon svg {
    display: block;
    height: 100%;
    width: 100%;
}

.eventIcon-menu {
    color: var(--cloud);
    filter: drop-shadow(0 0 6px rgba(114,242,199,.34));
}

.sideItem.hasColor .eventIcon-menu {
    color: rgb(var(--tile-rgb));
}

.eventIcon-tile {
    color: var(--cloud);
    margin-bottom: 2px;
}

.runtimeTile.hasColor .eventIcon-tile {
    color: rgb(var(--tile-rgb));
}

.sideLabel {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    font-size: 13px;
}

.sideMeta {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.sideFooter {
    border: 1px solid rgba(114,242,199,.2);
    border-radius: 14px;
    color: var(--muted);
    font-size: 12px;
    margin: auto 6px 6px;
    padding: 10px;
}

.runtimeContext {
    display: grid;
    gap: 6px;
}

.runtimeContext strong {
    color: var(--cloud);
    font-size: 12px;
}

.runtimeContext span {
    display: block;
    overflow-wrap: anywhere;
}

.runtimeContext code {
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;
    color: var(--text);
    display: block;
    font-family: Consolas, "SFMono-Regular", monospace;
    padding: 6px 7px;
}

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(180deg, rgba(0,0,0,.35), transparent);
    backdrop-filter: blur(6px);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: .25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.cloudBadge {
    border: 1px solid rgba(114,242,199,.65);
    border-radius: 999px;
    color: var(--cloud);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    padding: 5px 8px;
}

.runtimeUser {
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    max-width: 260px;
    overflow: hidden;
    padding: 5px 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.notifyButton span {
    align-items: center;
    background: rgba(114,242,199,.20);
    border: 1px solid rgba(114,242,199,.42);
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    justify-content: center;
    min-width: 20px;
    padding: 2px 6px;
}

.notifyPanel {
    background: rgba(11,15,25,.96);
    border: 1px solid rgba(118,237,228,.30);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(0,0,0,.34);
    color: var(--text);
    display: grid;
    gap: 8px;
    max-height: min(420px, calc(100vh - 72px));
    max-width: min(420px, calc(100vw - 20px));
    overflow: auto;
    padding: 8px;
    position: absolute;
    right: 10px;
    top: calc(100% + 6px);
    width: 360px;
    z-index: 40;
}

.notifyEmpty,
.notifyItem {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 9px 10px;
}

.notifyEmpty { color: var(--muted); }
.notifyItem { background: rgba(255,255,255,.06); }
.notifyItem strong { display: block; font-size: 13px; margin-bottom: 3px; }
.notifyItem p { color: var(--muted); margin: 0 0 7px; overflow-wrap: anywhere; }
.notifyMeta { color: var(--muted); display: block; font-size: 11px; margin-bottom: 7px; }
.notifyItem-success { border-color: rgba(114,242,199,.42); }
.notifyItem-warning { border-color: rgba(255,205,86,.42); }
.notifyItem-danger { border-color: rgba(255,91,106,.42); }

.toastHost {
    bottom: calc(18px + env(safe-area-inset-bottom));
    display: grid;
    gap: 8px;
    max-width: min(420px, calc(100vw - 24px));
    position: fixed;
    right: 12px;
    z-index: 80;
}

.runtimeToast {
    background: rgba(11,15,25,.96);
    border: 1px solid rgba(118,237,228,.38);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(0,0,0,.34);
    color: var(--text);
    min-width: min(340px, calc(100vw - 24px));
    padding: 10px 12px;
}

.runtimeToast strong { display: block; margin-bottom: 3px; }
.runtimeToast span { color: var(--muted); display: block; overflow-wrap: anywhere; }

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

.eventJumpInput {
    background: rgba(0,0,0,.16);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    min-width: 92px;
    padding: 7px 9px;
    width: 92px;
}

.wrap {
    max-width: 100%;
    margin: 6px 8px 10px;
    padding: 8px;
}

.runtimeNotice {
    background: rgba(114,242,199,.09);
    border: 1px solid rgba(114,242,199,.24);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--muted);
    margin-bottom: 10px;
    padding: 10px 12px;
}
.runtimeNotice strong, .runtimeNotice span { color: var(--cloud); }

.runtimeLoginPanel {
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.055));
    border: 1px solid rgba(118,237,228,.34);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    max-width: 720px;
    padding: 12px;
}

body.runtime-login-mode .layout {
    display: flex;
    min-height: 100vh;
}

body.runtime-login-mode .content {
    flex: 1;
    min-height: 100vh;
}

body.runtime-login-mode .sidebar,
body.runtime-login-mode .topbar,
body.runtime-login-mode #form,
body.runtime-login-mode .actions {
    display: none !important;
}

body.runtime-home-mode .actions {
    display: none;
}

body.runtime-login-mode .wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    padding: 24px;
}

body.runtime-login-mode .runtimeLoginPanel {
    margin: 0;
    max-width: 460px;
    width: min(460px, 100%);
}

body.runtime-login-mode .runtimeLoginForm,
body.runtime-login-mode .runtimeEnrollmentForm {
    grid-template-columns: 1fr;
}

body.runtime-login-mode .runtimeLoginForm .btn,
body.runtime-login-mode .runtimeEnrollmentForm .btn {
    justify-self: stretch;
}

.runtimeLoginHeader {
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.12);
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.runtimeLoginHeader strong {
    color: var(--text);
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.runtimeLoginHeader span {
    color: var(--muted);
    display: block;
    font-size: 12px;
}

.runtimeLoginMark {
    align-items: center;
    background: rgba(118,237,228,.18);
    border: 1px solid rgba(118,237,228,.58);
    border-radius: 6px;
    color: var(--text);
    display: flex;
    font-weight: 900;
    height: 40px;
    justify-content: center;
    width: 44px;
}

.runtimeLoginForm {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto minmax(180px, 1fr);
}

.runtimeLoginForm label {
    color: var(--muted);
    display: grid;
    font-size: 12px;
    gap: 4px;
}

.runtimeEnrollmentForm {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(260px, 2fr) minmax(180px, 1fr) auto;
}

.runtimeEnrollmentForm label,
.runtimeEnrollmentInfo {
    color: var(--muted);
    display: grid;
    font-size: 12px;
    gap: 6px;
}

.runtimeEnrollmentInfo strong,
.runtimeRecoveryCodes strong {
    color: var(--text);
    font-size: 13px;
}

.runtimeEnrollmentInfo code,
.runtimeRecoveryCodes code {
    background: rgba(0,0,0,.24);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    color: var(--text);
    display: block;
    font-family: Consolas, "SFMono-Regular", monospace;
    overflow-wrap: anywhere;
    padding: 8px;
    white-space: pre-wrap;
}

.runtimeEnrollmentInfo a {
    color: var(--cloud);
}

.runtimeRecoveryCodes {
    border: 1px solid rgba(255,214,102,.36);
    border-radius: 12px;
    display: grid;
    gap: 6px;
    grid-column: 1 / -1;
    padding: 10px;
}

.runtimeEventTiles {
    display: grid;
    margin: 28px auto 10px;
    max-width: 980px;
    width: 100%;
}

.runtimeTilesGrid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.runtimeTile {
    background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(0,0,0,.22);
    color: var(--text);
    cursor: pointer;
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 18px;
    place-items: center;
    text-align: center;
    transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease, background .12s ease;
}

.runtimeTile:hover {
    background: rgba(0,198,255,.12);
    border-color: rgba(0,198,255,.38);
    box-shadow: 0 18px 32px rgba(0,0,0,.26);
    transform: translateY(-1px);
}

.runtimeTile.active {
    background: linear-gradient(135deg, rgba(0,198,255,.18), rgba(114,242,199,.16));
    border-color: rgba(114,242,199,.58);
}

.runtimeTile.hasColor {
    background:
        linear-gradient(180deg, rgba(var(--tile-rgb), .22), rgba(255,255,255,.06)),
        rgba(255,255,255,.06);
    border-color: rgba(var(--tile-rgb), .68);
    box-shadow: 0 16px 30px rgba(0,0,0,.26), 0 0 0 1px rgba(var(--tile-rgb), .18);
}

.runtimeTile.hasColor:hover,
.runtimeTile.hasColor.active {
    background:
        linear-gradient(180deg, rgba(var(--tile-rgb), .34), rgba(255,255,255,.08)),
        rgba(255,255,255,.06);
    border-color: rgba(var(--tile-rgb), .9);
}

.runtimeTile span {
    font-size: 16px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.runtimeTile code {
    align-self: end;
    color: var(--muted);
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 12px;
}

.runtimeTile.empty {
    color: var(--muted);
    cursor: default;
}

.form { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 720px) {
    .form { grid-template-columns: repeat(12, 1fr); gap: 10px; }
    .span-1 { grid-column-end: span 1; }
    .span-2 { grid-column-end: span 2; }
    .span-3 { grid-column-end: span 3; }
    .span-4 { grid-column-end: span 4; }
    .span-5 { grid-column-end: span 5; }
    .span-6 { grid-column-end: span 6; }
    .span-7 { grid-column-end: span 7; }
    .span-8 { grid-column-end: span 8; }
    .span-9 { grid-column-end: span 9; }
    .span-10 { grid-column-end: span 10; }
    .span-11 { grid-column-end: span 11; }
    .span-12 { grid-column-end: span 12; }
    .start-1 { grid-column-start: 1; }
    .start-2 { grid-column-start: 2; }
    .start-3 { grid-column-start: 3; }
    .start-4 { grid-column-start: 4; }
    .start-5 { grid-column-start: 5; }
    .start-6 { grid-column-start: 6; }
    .start-7 { grid-column-start: 7; }
    .start-8 { grid-column-start: 8; }
    .start-9 { grid-column-start: 9; }
    .start-10 { grid-column-start: 10; }
    .start-11 { grid-column-start: 11; }
    .start-12 { grid-column-start: 12; }
}

.field {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
}

.field.invalid {
    border-color: rgba(255,91,106,.72);
}

.hidden { display: none !important; }

.label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.mutedLine { color: var(--muted); font-size: 12px; margin-top: 6px; overflow-wrap: anywhere; }
.validationLine { color: #ffc8ce; font-size: 12px; margin-top: 6px; overflow-wrap: anywhere; }
.req { color: #ff5b6a; margin-left: 4px; }

.input, select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(118, 237, 228, .09);
    color: var(--text);
    outline: none;
    box-sizing: border-box;
    font-size: 13px;
}

.input:focus, select:focus {
    border-color: var(--edit-border);
    box-shadow: 0 0 0 3px rgba(118, 237, 228, .12);
}

.input.invalid, select.invalid {
    border-color: rgba(255,91,106,.9);
    box-shadow: 0 0 0 3px rgba(255,91,106,.14);
}

select option { color: #0f1420; }
.textarea { min-height: 94px; resize: vertical; }
.input.needs-input {
    background: var(--edit-strong-bg);
    border-color: var(--edit-strong-border);
}

.dateInput {
    max-width: 100%;
    width: min(100%, 154px);
}

.readonlyValue {
    min-height: 34px;
    overflow-wrap: anywhere;
    padding: 6px 0;
}

.buttonReturnField {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.buttonReturnValue {
    background: rgba(118, 237, 228, .09);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    flex: 1 1 120px;
    min-height: 32px;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 7px 9px;
}

.statusBox {
    align-items: center;
    display: flex;
    gap: 8px;
    min-height: 36px;
}

.errorBox {
    background: rgba(255,91,106,.12);
    border: 1px solid rgba(255,91,106,.38);
    border-radius: 12px;
    color: #ffc8ce;
    margin: 6px 0;
    min-height: 36px;
    overflow-wrap: anywhere;
    padding: 8px 10px;
}

.warningBox {
    background: rgba(255,205,86,.11);
    border: 1px solid rgba(255,205,86,.34);
    border-radius: 12px;
    color: #ffe2a8;
    margin: 6px 0;
    min-height: 36px;
    overflow-wrap: anywhere;
    padding: 8px 10px;
}

.successBanner {
    align-items: center;
    background: linear-gradient(180deg, rgba(205, 250, 226, .34), rgba(139, 239, 189, .24));
    border: 1px solid rgba(17, 145, 76, .26);
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(14, 111, 63, .10), 0 0 0 1px rgba(255,255,255,.14) inset;
    color: #06371f;
    display: inline-flex;
    flex: 0 1 auto;
    gap: 10px;
    margin: 0;
    max-width: min(420px, 38vw);
    min-height: 32px;
    opacity: 1;
    padding: 5px 11px;
    transform: translateY(0);
    transition: opacity .65s ease, transform .65s ease;
    white-space: nowrap;
}

.successBanner.hidden {
    display: none;
}

.successBanner.fading {
    opacity: 0;
    transform: translateY(-4px);
}

.successBanner strong {
    background: rgba(10, 168, 91, .72);
    border-radius: 999px;
    color: #fff;
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1;
    padding: 4px 7px;
}

.successBanner span {
    color: #06371f;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.successBanner.error {
    background: linear-gradient(180deg, rgba(255, 212, 217, .42), rgba(255, 154, 166, .30));
    border-color: rgba(195, 44, 62, .32);
    box-shadow: 0 6px 14px rgba(210, 55, 74, .10);
    color: #4a0811;
}

.successBanner.error strong {
    background: rgba(217, 47, 66, .74);
    color: #fff;
}

.successBanner.error span {
    color: #4a0811;
}

.statusDot {
    background: var(--cloud);
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(114,242,199,.55);
    height: 10px;
    width: 10px;
}

.table-label {
    font-size: 12px;
    color: var(--muted);
    margin: 2px 0 4px;
    font-weight: 600;
}

.table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}
.table th, .table td {
    border-bottom: 1px dashed var(--border);
    padding: 6px;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.table thead th {
    background: rgba(255,255,255,.055);
    color: var(--muted);
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 1;
}
.table th.sortable {
    cursor: pointer;
    user-select: none;
}
.table th.sortable::after {
    color: var(--muted);
    content: "<>";
    display: inline-block;
    font-size: 10px;
    margin-left: 6px;
    opacity: .55;
}
.table th.sortAsc::after { content: "^"; opacity: .9; }
.table th.sortDesc::after { content: "v"; opacity: .9; }
.table tbody tr {
    transition: background .08s ease;
}
.table tbody tr:hover {
    background: rgba(255,255,255,.045);
}
.table .nowrap { white-space: nowrap; word-break: normal; }
.table .wrapText { white-space: normal; }
.table .alignRight { text-align: right; }
.table .alignCenter { text-align: center; }
.table .alignLeft { text-align: left; }
.runtimeTableFilter {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 0 0 8px;
}
.runtimeTableFilterInput {
    flex: 1 1 180px;
    min-width: 0;
}
.runtimeTableFilterCounter {
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
}
.runtimeFilteredRow {
    display: none;
}
.runtimeBadge {
    align-items: center;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: var(--text);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    min-height: 24px;
    padding: 4px 9px;
    white-space: nowrap;
}
.runtimeBadge-success {
    background: rgba(114,242,199,.18);
    border-color: rgba(114,242,199,.44);
}
.runtimeBadge-warning {
    background: rgba(255,205,86,.16);
    border-color: rgba(255,205,86,.42);
}
.runtimeBadge-danger {
    background: rgba(255,91,106,.16);
    border-color: rgba(255,91,106,.42);
}
.runtimeBadge-info {
    background: rgba(0,198,255,.16);
    border-color: rgba(0,198,255,.42);
}
.runtimeBadge-muted {
    background: rgba(183,192,209,.12);
    border-color: rgba(183,192,209,.28);
    color: var(--muted);
}
.tableInput { min-width: 80px; padding: 5px 7px; }
.choiceTable, .editableTableField {
    border-radius: 10px;
    overflow-x: auto;
    scrollbar-color: rgba(118,237,228,.38) transparent;
    scrollbar-width: thin;
}
.returnSelectionButton { margin-top: 8px; }
.choiceCell { text-align: center; width: 34px; }
.selectableRow { cursor: pointer; }
.selectableRow:hover { background: rgba(255,255,255,.06); }
.selectableRow.selected { background: rgba(0,198,255,.14); }
.selectableRow.selected:hover,
.table tbody tr.selectableRow.selected:hover {
    background: rgba(0,198,255,.18);
}
.radioMark {
    align-items: center;
    border: 2px solid rgba(183,192,209,.72);
    border-radius: 999px;
    display: inline-flex;
    height: 18px;
    justify-content: center;
    vertical-align: middle;
    width: 18px;
}
.radioMark::after {
    background: transparent;
    border-radius: 999px;
    content: "";
    display: block;
    height: 8px;
    width: 8px;
}
.radioMark.selected {
    border-color: var(--cloud);
    box-shadow: 0 0 0 3px rgba(114,242,199,.14);
}
.radioMark.selected::after {
    background: var(--cloud);
}

.actions {
    position: sticky;
    bottom: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(0,0,0,.62), rgba(0,0,0,.12) 70%, transparent);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    gap: 6px;
}
.actions-spacer { flex: 1; }

.btn {
    appearance: none;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: border-color .12s ease, background .12s ease, transform .08s ease, filter .08s ease;
}
.btn:hover:not(:disabled) {
    border-color: rgba(118,237,228,.45);
}
.btn.primary {
    background: linear-gradient(135deg, rgba(0,198,255,.22), rgba(114,242,199,.20));
    border-color: rgba(114,242,199,.45);
}
.btn.logout {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.btn:active { transform: scale(.96); filter: brightness(.9); }

.hint {
    color: var(--muted);
    font-size: 12px;
    margin-left: 6px;
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 719px) {
    body.desktop-user .layout { display: block; }
    body.desktop-user .sidebar { display: none; }
    .wrap { padding: 6px; }
    .field { padding: 8px; }
    .actions { padding: 6px; flex-wrap: wrap; }
    .btn { padding: 6px 10px; font-size: 12px; }
    .topbar { flex-wrap: wrap; }
    .runtimeUser { max-width: 100%; order: 2; }
    .notifyPanel { left: 10px; right: 10px; top: 100%; width: auto; }
    .eventJump { order: 3; width: 100%; }
    .eventJumpInput { flex: 1; width: auto; }
    .runtimeLoginForm { grid-template-columns: 1fr; }
    .runtimeEnrollmentForm { grid-template-columns: 1fr; }
}
