/* IoT manage portal — modern neutral / dark-friendly */
:root {
    --bg: #0f1218;
    --bg-elevated: #171b24;
    --bg-card: #1c212c;
    --border: #2a3142;
    --text: #e8eaef;
    --text-muted: #8b93a8;
    --accent: #5b8def;
    --accent-hover: #7aa3f5;
    --success: #3d9e6f;
    --error: #e85d6a;
    --radius: 10px;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    background: radial-gradient(1200px 600px at 10% -10%, rgba(91, 141, 239, 0.12), transparent),
        radial-gradient(800px 400px at 100% 0%, rgba(61, 158, 111, 0.08), transparent),
        var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.main-content {
    flex: 1 0 auto;
    padding-bottom: 3rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(15, 18, 24, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.75rem;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.5rem;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    min-width: 0;
}

.site-user-trigger {
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-user-trigger:hover {
    color: var(--text);
    border-color: var(--accent);
}

.site-user-trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-logo {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-logo:hover {
    color: var(--accent);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
}

.site-nav a:hover {
    color: var(--text);
    background: var(--bg-elevated);
}

.site-nav a.is-active {
    color: var(--text);
    background: var(--border);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.modal[hidden] {
    display: none;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 1.25rem 1.35rem;
    margin: 0;
    animation: modalIn 0.18s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modal__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.modal__close {
    font: inherit;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    background: transparent;
    border: none;
    padding: 0 0.15rem;
    cursor: pointer;
    border-radius: 4px;
}

.modal__close:hover {
    color: var(--text);
}

.modal__close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card--pad {
    padding: 1.35rem 1.5rem;
}

.card__title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Auth */
.auth-card {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem 1.75rem;
}

.auth-card__title {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-card__lede {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Page */
.page-head {
    margin-bottom: 1.25rem;
}

.page-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.page-title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.page-meta {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Toolbar */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Forms */
.form-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field--inline {
    flex-direction: row;
    align-items: center;
}

.field[hidden] {
    display: none;
}

.field--grow {
    flex: 1 1 200px;
    min-width: 0;
}

.field__label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.hint {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.input,
.textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font: inherit;
}

.input:focus,
.textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.textarea {
    resize: vertical;
    min-height: 96px;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    background: var(--border);
}

.button:hover {
    filter: brightness(1.08);
}

.button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: none;
}

.button--primary {
    background: var(--accent);
    color: #0a0c10;
    border-color: transparent;
}

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

.button--secondary {
    background: var(--bg-elevated);
    border-color: var(--border);
}

.button--ghost {
    background: transparent;
    border-color: var(--border);
}

.button--small {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert--error {
    background: rgba(232, 93, 106, 0.12);
    border: 1px solid rgba(232, 93, 106, 0.35);
    color: #f5a8af;
}

.alert--success {
    background: rgba(61, 158, 111, 0.12);
    border: 1px solid rgba(61, 158, 111, 0.35);
    color: #8fd4b3;
}

/* Table */
.table-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table th,
.data-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--bg-elevated);
}

.data-table tbody tr:hover {
    background: rgba(91, 141, 239, 0.06);
}

.data-table .num {
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}

.data-table .nowrap {
    white-space: nowrap;
}

.data-table th.js-sortable .th-sort-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

.data-table th.js-sortable .th-sort-link:hover {
    text-decoration: underline;
}

.data-table th.js-sortable::after {
    content: '';
    display: inline-block;
    width: 0.6em;
}

.data-table th.sort-asc::after {
    content: '▲';
}

.data-table th.sort-desc::after {
    content: '▼';
}

.empty-cell {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem;
}

.code {
    font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
    font-size: 0.86em;
    background: var(--bg-elevated);
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
}

.link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

/* Definition list */
.def-list {
    display: grid;
    grid-template-columns: minmax(120px, 32%) 1fr;
    gap: 0.5rem 1rem;
    margin: 0;
    font-size: 0.9rem;
}

.def-list dt {
    margin: 0;
    color: var(--text-muted);
    font-weight: 500;
}

.def-list dd {
    margin: 0;
}

.grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.grid-two > .card {
    display: flex;
    flex-direction: column;
}

@media (max-width: 840px) {
    .grid-two {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
}

.pagination__link,
.pagination__current {
    display: inline-flex;
    min-width: 2.25rem;
    justify-content: center;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    font-size: 0.88rem;
}

.pagination__link {
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

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

.pagination__current {
    background: var(--accent);
    color: #0a0c10;
    font-weight: 600;
}

.pagination__nav {
    font-weight: 500;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Area tabs (Devices / Reported / Bulletin) */
.area-tabs-wrap {
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
    background: var(--bg-elevated);
}

.area-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.88rem;
}

.area-tabs__link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

.area-tabs__link:hover {
    color: var(--text);
    background: var(--bg-card);
}

.area-tabs__link.is-active {
    color: var(--text);
    background: var(--border);
    font-weight: 600;
}

.area-tabs__muted {
    color: var(--text-muted);
    opacity: 0.65;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
}

.area-tabs__refresh {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

.refresh-bar__last {
    font-size: 0.8125rem;
    margin-left: 0.1rem;
}

/* In-page subtabs (e.g. Firmware: OTA management / Upload new version) */
.subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.subtabs__link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
}

.subtabs__link:hover {
    color: var(--text);
}

.subtabs__link.is-active {
    color: var(--text);
    font-weight: 600;
    border-bottom-color: var(--text);
}

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

.site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    margin-top: 2rem;
    color: #6b7280;
    font-size: 0.8125rem;
    text-align: right;
}

.site-footer a {
    color: #6b7280;
}

.page-meta--sub {
    font-size: 0.88rem;
}

.page-actions-inline {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
}

.page-actions-inline .sep {
    color: var(--text-muted);
    margin: 0 0.35rem;
}

.alert--warn {
    background: rgba(232, 180, 93, 0.12);
    border: 1px solid rgba(232, 180, 93, 0.35);
    color: #e8c87a;
}

/* Accordions + setting rows */
.accordion {
    margin-bottom: 0.75rem;
}

.accordion__summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.15rem 0;
    list-style: none;
}

.accordion__summary::-webkit-details-marker {
    display: none;
}

.accordion__summary::before {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(-45deg);
    margin-right: 0.5rem;
    vertical-align: 0.15rem;
    transition: transform 0.15s ease;
}

details[open] > .accordion__summary::before {
    transform: rotate(45deg);
}

.setting-rows {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.setting-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1rem;
    align-items: start;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(42, 49, 66, 0.6);
}

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

.setting-row__label {
    display: block;
    font-weight: 500;
}

.setting-row__desc {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.setting-row__key {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.setting-row__value {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.setting-row--form .setting-row__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    justify-content: flex-end;
}

.input--narrow {
    width: 5rem;
    max-width: 100%;
}

.input--tiny {
    width: 3.5rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.field-inline,
.assert-inline {
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
    align-items: center;
}

.field-inline__lbl,
.assert-inline__lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.assert-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}

.assert-toggle-group__lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.assert-toggle-wrap {
    display: inline-flex;
    align-items: center;
}

.assert-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.assert-toggle:hover {
    border-color: var(--accent);
    color: var(--text);
}

.assert-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.assert-toggle--on {
    border-color: var(--success);
    background: rgba(61, 158, 111, 0.15);
    color: #8fd4b3;
}

.assert-toggle--always {
    border-color: var(--accent);
    background: rgba(91, 141, 239, 0.15);
    color: #8ab4f8;
}

/* 2-state value toggle (Off / On) */
.value-toggle-wrap {
    display: inline-flex;
    align-items: center;
}

.value-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.value-toggle:hover {
    border-color: var(--accent);
    color: var(--text);
}

.value-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.value-toggle--on {
    border-color: var(--success);
    background: rgba(61, 158, 111, 0.15);
    color: #8fd4b3;
}

/* Changed highlight — amber border for any modified field */
.js-tracked-field.field--changed {
    border-color: #c9a227;
    background: rgba(201, 162, 39, 0.1);
    outline: none;
}

.value-toggle-wrap.field--changed .value-toggle {
    border-color: #c9a227;
    background: rgba(201, 162, 39, 0.1);
    color: var(--text);
}

/* Dropdown select */
.select--field {
    width: auto;
    min-width: 8rem;
    max-width: 18rem;
    cursor: pointer;
}

/* Current OS value chip (shown in controls area, left of the arrow) */
.os-current {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    align-self: center;
}

.os-current__lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    line-height: 1;
}

.os-current__val {
    font-size: 0.88rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    line-height: 1.2;
}

.os-current__arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    align-self: center;
    flex-shrink: 0;
}

/* Number stepper (−  input  +) */
.num-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.num-stepper:focus-within {
    border-color: var(--accent);
    outline: none;
}

.num-stepper .input {
    border: none;
    border-radius: 0;
    width: 3.5rem;
    text-align: center;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    background: transparent;
}

.num-stepper .input:focus {
    outline: none;
    box-shadow: none;
}

/* Hide native number spinners */
.num-stepper .input::-webkit-inner-spin-button,
.num-stepper .input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.num-stepper .input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Suppress inner border highlight — the container border handles it */
.num-stepper .js-tracked-field.field--changed {
    border-color: transparent;
    background: transparent;
}

.num-stepper__btn {
    flex-shrink: 0;
    width: 2rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s ease, color 0.1s ease;
}

.num-stepper__btn:hover {
    background: rgba(91, 141, 239, 0.15);
    color: var(--text);
}

.num-stepper__btn:active {
    background: rgba(91, 141, 239, 0.28);
}

.num-stepper__btn:first-child {
    border-right: 1px solid var(--border);
}

.num-stepper__btn:last-child {
    border-left: 1px solid var(--border);
}

/* Changed highlight on the stepper container */
.num-stepper.field--changed {
    border-color: #c9a227;
}

.num-stepper.field--changed .num-stepper__btn {
    border-color: #c9a227;
}

.form-actions {
    margin-top: 1rem;
}

.form-actions--commit {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.button--commit {
    min-width: 14rem;
}

.bulletin-form .form-actions {
    margin-bottom: 2rem;
}

.section-heading {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.section-heading--spaced {
    margin-top: 0.25rem;
}

.section-lede {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 52rem;
}

.settings-section {
    margin-bottom: 1rem;
}

.card--spaced {
    margin-bottom: 1rem;
}

@media (max-width: 720px) {
    .setting-row,
    .setting-row--form {
        grid-template-columns: 1fr;
    }

    .setting-row__value,
    .setting-row--form .setting-row__controls {
        text-align: left;
        justify-content: flex-start;
    }
}

.main-content--full {
    width: 100%;
    padding: 0 1.25rem 3rem;
}

.grafana-frame {
    display: block;
    width: 100%;
    height: calc(100vh - 110px);
    border: none;
    border-radius: var(--radius);
    background: var(--bg-card);
}

.js-tw.is-active,
.js-tw-dev.is-active,
.js-hist-bin.is-active,
.js-hist-bin-dev.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.chart-toggle-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .55rem;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: opacity .15s;
}
.chart-toggle-chip.is-hidden {
    opacity: .35;
}

/* Logging badges */
.log-status-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

.log-status-badge--active {
    background: rgba(61, 158, 111, 0.18);
    color: #8fd4b3;
}

.log-status-badge--ended {
    background: rgba(139, 147, 168, 0.15);
    color: var(--text-muted);
}

.log-rights-badge {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    background: rgba(91, 141, 239, 0.15);
    color: #a0b8f5;
    margin-right: 0.25rem;
}

.log-viewer {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    overflow: auto;
    max-height: 60vh;
    white-space: pre;
    word-break: break-all;
    color: var(--text);
    margin: 0;
}

progress {
    accent-color: var(--accent);
    height: 0.6rem;
    border-radius: 99px;
    border: none;
    background: var(--bg-elevated);
}
