/*
 * Panel + authentication theme.
 * Built on the same design tokens as the public site (see layout.css):
 * Manrope/Sora, --ngt-accent for actions and --ngt-footer for dark surfaces.
 */
:root {
    --ngt-accent: #d2394b;
    --ngt-accent-hover: #af2f3f;
    --ngt-ink: #202636;
    --ngt-muted: #5f6678;
    --ngt-line: #dde2ec;
    --ngt-surface: #ffffff;
    --ngt-page: #f2f4f9;
    --ngt-footer: #111a2f;
    --ngt-sidebar-width: 264px;
}
* {
    box-sizing: border-box;
}
body {
    font-family: "Manrope", sans-serif;
    color: var(--ngt-ink);
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Sora", sans-serif;
    letter-spacing: -0.02em;
}

/* ============================================================
   AUTHENTICATION
   ============================================================ */
body.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(780px 420px at 100% 0%, rgba(211, 71, 88, 0.14), transparent 72%),
        linear-gradient(180deg, #f6f8fc 0%, #eaeff8 100%);
}
.auth-split {
    min-height: 100vh;
}
.auth-form-side {
    display: flex;
    flex-direction: column;
    padding: 2rem clamp(1.25rem, 4vw, 3.5rem);
}
.auth-form-wrap {
    width: 100%;
    max-width: 430px;
    margin: auto;
}
.auth-logo-img {
    height: 46px;
    width: auto;
}
.auth-card {
    background: var(--ngt-surface);
    border: 1px solid #d8dfef;
    border-radius: 0.9rem;
    box-shadow: 0 8px 20px rgba(36, 48, 78, 0.06);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}
.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.auth-subtitle {
    color: var(--ngt-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}
.auth-card .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #353c4f;
    margin-bottom: 0.35rem;
}
.auth-card .form-control {
    height: 48px;
    border-radius: 0.5rem;
    border: 1px solid var(--ngt-line);
    background: #fbfcfe;
    font-size: 0.94rem;
}
.auth-card textarea.form-control {
    height: auto;
}
.auth-card .form-control:focus {
    border-color: rgba(210, 57, 75, 0.55);
    background: #fff;
    box-shadow: 0 0 0 0.2rem rgba(210, 57, 75, 0.1);
}
.auth-card .form-control.is-invalid {
    border-color: var(--ngt-accent);
}
.auth-card .form-check-input:checked {
    background-color: var(--ngt-accent);
    border-color: var(--ngt-accent);
}
.auth-card .form-check-label,
.auth-card .form-check-input {
    cursor: pointer;
}
.auth-link {
    color: var(--ngt-accent);
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
}
.auth-link:hover {
    color: var(--ngt-accent-hover);
    text-decoration: underline;
}
.btn-ngt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ngt-accent);
    color: #fff;
    border: 0;
    border-radius: 0.55rem;
    padding: 0.75rem 1.45rem;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
    box-shadow: 0 10px 24px rgba(210, 57, 75, 0.28);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-ngt:hover:not(:disabled) {
    background: var(--ngt-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}
.btn-ngt:disabled {
    opacity: 0.75;
}
.btn-ngt-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef1f7;
    color: #3b4257;
    border: 1px solid var(--ngt-line);
    border-radius: 0.55rem;
    padding: 0.75rem 1.45rem;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.2;
}
.btn-ngt-soft:hover {
    background: #e4e8f1;
    color: var(--ngt-ink);
}
.auth-back {
    color: var(--ngt-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.auth-back:hover {
    color: var(--ngt-accent);
}
.auth-foot {
    color: var(--ngt-muted);
    font-size: 0.78rem;
}

/* Brand side */
.auth-brand-side {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(620px 420px at 80% 10%, rgba(210, 57, 75, 0.42), transparent 70%),
        linear-gradient(160deg, #1b2444 0%, var(--ngt-footer) 100%);
    background-color: var(--ngt-footer);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    color: #fff;
}
.auth-brand-inner {
    position: relative;
    z-index: 2;
    max-width: 460px;
    text-align: center;
}
.auth-brand-inner h2 {
    color: #fff;
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    font-weight: 700;
    margin-bottom: 0.9rem;
}
.auth-brand-inner p {
    color: rgba(226, 232, 246, 0.78);
    font-size: 0.98rem;
    margin-bottom: 0;
}
.auth-brand-figure {
    width: 100%;
    max-width: 380px;
    height: auto;
    margin-bottom: 2rem;
}
.auth-brand-list {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    text-align: left;
    display: inline-block;
}
.auth-brand-list li {
    color: rgba(226, 232, 246, 0.86);
    font-size: 0.92rem;
    padding: 0.35rem 0;
}
.auth-brand-list i {
    color: var(--ngt-accent);
    margin-right: 0.6rem;
}

/* ============================================================
   PANEL SHELL
   ============================================================ */
body.panel-body {
    min-height: 100vh;
    background: var(--ngt-page);
}
.panel-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.panel-sidebar {
    width: var(--ngt-sidebar-width);
    flex: 0 0 var(--ngt-sidebar-width);
    background: #f7f9fd;
    border-right: 1px solid var(--ngt-line);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    transition: transform 0.25s ease;
}
.panel-sidebar-brand {
    display: flex;
    align-items: center;
    height: 72px;
    padding: 0 1.35rem;
    border-bottom: 1px solid var(--ngt-line);
}
.panel-sidebar-brand img {
    height: 40px;
    width: auto;
}
.panel-nav {
    padding: 1.1rem 0.85rem;
    overflow-y: auto;
    flex: 1;
}
.panel-nav-label {
    color: var(--ngt-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 0.65rem;
    margin-bottom: 0.6rem;
}
.panel-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.68rem 0.7rem;
    border-radius: 0.55rem;
    color: #353c4f;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.15rem;
    transition: background-color 0.18s ease, color 0.18s ease;
}
.panel-nav-link i {
    font-size: 1.05rem;
    opacity: 0.85;
}
.panel-nav-link:hover {
    background: #e9edf6;
    color: var(--ngt-ink);
}
.panel-nav-link.active {
    background: var(--ngt-accent);
    color: #fff;
    box-shadow: 0 8px 18px rgba(210, 57, 75, 0.28);
}
.panel-nav-link.active i {
    opacity: 1;
}
/* Main column */
.panel-main {
    flex: 1;
    min-width: 0;
    margin-left: var(--ngt-sidebar-width);
    display: flex;
    flex-direction: column;
}
.panel-topbar {
    height: 72px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ngt-line);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 clamp(1rem, 3vw, 2rem);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.panel-topbar-title {
    font-family: "Sora", sans-serif;
    font-size: 1.12rem;
    font-weight: 600;
    margin: 0;
}
.panel-burger {
    display: none;
    background: none;
    border: 0;
    color: var(--ngt-ink);
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.25rem;
}
.panel-user-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: 0;
    padding: 0.3rem 0.4rem;
    border-radius: 0.55rem;
    color: var(--ngt-ink);
}
.panel-user-btn:hover {
    background: #f1f3f8;
}
.panel-user-btn::after {
    display: none;
}
.panel-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ngt-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex: 0 0 38px;
}
.panel-user-name {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.15;
}
.panel-user-mail {
    font-size: 0.76rem;
    color: var(--ngt-muted);
    line-height: 1.15;
}
.panel-content {
    padding: clamp(1.25rem, 3vw, 2rem);
    flex: 1;
}
.panel-page-head {
    margin-bottom: 1.35rem;
}
.panel-page-head h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.panel-page-head p {
    color: var(--ngt-muted);
    font-size: 0.92rem;
    margin: 0;
}
.panel-card {
    background: var(--ngt-surface);
    border: 1px solid #d8dfef;
    border-radius: 0.9rem;
    box-shadow: 0 8px 20px rgba(36, 48, 78, 0.06);
    padding: 1.5rem 1.35rem;
    height: 100%;
}
.panel-card h2,
.panel-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.panel-card p {
    color: var(--ngt-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}
.panel-card-label {
    display: inline-block;
    color: var(--ngt-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.panel-dl {
    margin: 0;
}
.panel-dl dt {
    color: var(--ngt-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 0.7rem;
}
.panel-dl dd {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0;
    word-break: break-word;
}
.panel-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 26, 47, 0.45);
    z-index: 1035;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .panel-sidebar {
        transform: translateX(-100%);
    }
    body.panel-sidebar-open .panel-sidebar {
        transform: translateX(0);
    }
    body.panel-sidebar-open .panel-backdrop {
        display: block;
    }
    .panel-main {
        margin-left: 0;
    }
    .panel-burger {
        display: inline-flex;
    }
    .auth-brand-side {
        display: none;
    }
}

/* ============================================================
   JACKPOT SCREENS
   ============================================================ */
.panel-badge-demo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fdeaec;
    color: var(--ngt-accent);
    border: 1px solid #f6ccd2;
    border-radius: 999px;
    padding: 0.24rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.panel-ref {
    display: inline-block;
    background: #eef1f7;
    color: #3b4257;
    border-radius: 0.4rem;
    padding: 0.16rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.55rem;
}

/* Command / filter bar */
.panel-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.15rem 1.35rem;
    background: #f7f9fd;
    border: 1px solid var(--ngt-line);
    border-radius: 0.9rem;
    margin-bottom: 1.35rem;
}
.panel-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 210px;
    flex: 1 1 210px;
}
.panel-field label {
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 700;
    color: #353c4f;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.panel-field .form-control,
.panel-field .form-select {
    height: 44px;
    border-radius: 0.5rem;
    border: 1px solid var(--ngt-line);
    background: #fff;
    font-size: 0.92rem;
}
.panel-field .form-control:focus,
.panel-field .form-select:focus {
    border-color: rgba(210, 57, 75, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(210, 57, 75, 0.1);
}
.panel-field-hint {
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--ngt-muted);
}

/* Toolbar button: sits in its own column that mirrors the field label above,
   so the button lines up with the inputs instead of dropping to the bottom of
   the hint text underneath them. */
.panel-toolbar-action {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 0 0 auto;
}
.panel-toolbar-action::before {
    content: "\00a0";
    font-size: 0.78rem;
    line-height: 1.2;
}
.panel-toolbar .btn-ngt,
.panel-toolbar .btn-ngt-soft {
    height: 44px;
    padding-top: 0;
    padding-bottom: 0;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    /* Stacked toolbar: no label to line up with any more. */
    .panel-toolbar-action {
        width: 100%;
    }
    .panel-toolbar-action::before {
        display: none;
    }
    .panel-toolbar .btn-ngt,
    .panel-toolbar .btn-ngt-soft {
        width: 100%;
    }
}

/* Tables */
.panel-table-wrap {
    overflow-x: auto;
    border: 1px solid #d8dfef;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 8px 20px rgba(36, 48, 78, 0.06);
}
.panel-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 720px;
}
.panel-table thead th {
    background: #f4f6fb;
    color: #414a61;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--ngt-line);
    white-space: nowrap;
}
.panel-table tbody td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #edf0f7;
    vertical-align: middle;
}
.panel-table tbody tr:last-child td {
    border-bottom: 0;
}
.panel-table tbody tr:hover {
    background: #fafbfe;
}
.panel-table .cell-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
}
.panel-table .cell-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.panel-table-caption {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    border-top: 1px solid #edf0f7;
    color: var(--ngt-muted);
    font-size: 0.8rem;
}
.tag-group {
    display: inline-block;
    background: #eaf0fb;
    color: #2f3a55;
    border-radius: 0.4rem;
    padding: 0.16rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Stat tiles (RF-03) */
.stat-tile {
    background: #fff;
    border: 1px solid #d8dfef;
    border-radius: 0.9rem;
    box-shadow: 0 8px 20px rgba(36, 48, 78, 0.06);
    padding: 1.15rem 1.25rem;
    height: 100%;
}
.stat-tile-label {
    display: block;
    color: var(--ngt-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}
.stat-tile-value {
    font-family: "Sora", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    word-break: break-all;
}
.stat-tile-value.is-accent {
    color: var(--ngt-accent);
}
.stat-tile-value.is-muted {
    color: #97a0b5;
    font-size: 1.15rem;
}
.state-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #e7f6ee;
    color: #17794a;
    border: 1px solid #c6e9d6;
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.86rem;
    font-weight: 700;
}
.state-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1a9c5c;
}

/* RPC transcript */
.rpc-console {
    background: var(--ngt-footer);
    border-radius: 0.9rem;
    padding: 1.1rem 1.25rem;
    overflow-x: auto;
}
.rpc-console-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(200, 209, 230, 0.6);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.7rem;
}
.rpc-console pre {
    margin: 0;
    color: #dbe3f5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.65;
    white-space: pre;
}
.rpc-console .rpc-prompt {
    color: #7f8db0;
}
.rpc-console .rpc-ok {
    color: #6ee7a8;
}
.rpc-console .rpc-warn {
    color: #f5b571;
}
.rpc-console .rpc-dim {
    color: #8b96b4;
}

/* Notes */
.panel-note {
    display: flex;
    gap: 0.75rem;
    border-radius: 0.7rem;
    padding: 0.9rem 1.05rem;
    font-size: 0.88rem;
    line-height: 1.55;
}
.panel-note i {
    font-size: 1.05rem;
    line-height: 1.4;
}
.panel-note-info {
    background: #eef3fd;
    border: 1px solid #d5e0f5;
    color: #33405c;
}
.panel-note-info i {
    color: #4a6cb0;
}
.panel-note-open {
    background: #fff8ec;
    border: 1px solid #f4e2c2;
    color: #6b5222;
}
.panel-note-open i {
    color: #d08a1e;
}
.panel-note-ok {
    background: #e9f7ef;
    border: 1px solid #c3e7d2;
    color: #1b5e3a;
}
.panel-note-ok i {
    color: #1a9c5c;
}
.panel-note strong {
    font-weight: 800;
}

/* Result of a completed operation: stands out right under the form. */
.panel-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #c3e7d2;
    border-left: 4px solid #1a9c5c;
    border-radius: 0.9rem;
    box-shadow: 0 8px 20px rgba(26, 156, 92, 0.08);
    padding: 1.05rem 1.35rem;
    margin-bottom: 1.35rem;
}
.panel-result-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e9f7ef;
    color: #1a9c5c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.panel-result-body {
    min-width: 0;
}
.panel-result-title {
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1b5e3a;
    margin: 0 0 0.15rem;
}
.panel-result-text {
    color: var(--ngt-muted);
    font-size: 0.9rem;
    margin: 0;
}
.panel-result-text code {
    background: #f1f3f8;
    border-radius: 0.3rem;
    padding: 0.05rem 0.35rem;
    color: #3b4257;
}
.panel-result.is-warning {
    border-color: #f4e2c2;
    border-left-color: #d08a1e;
    box-shadow: 0 8px 20px rgba(208, 138, 30, 0.08);
}
.panel-result.is-warning .panel-result-icon {
    background: #fff8ec;
    color: #d08a1e;
}
.panel-result.is-warning .panel-result-title {
    color: #6b5222;
}

/* Read-only field list (RF-04) */
.field-readonly {
    background: #f7f9fd;
    border: 1px solid var(--ngt-line);
    border-radius: 0.5rem;
    padding: 0.62rem 0.85rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88rem;
    color: #414a61;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.field-empty {
    color: #9aa3b8;
    font-style: italic;
    font-family: "Manrope", sans-serif;
}
.panel-card-soft {
    background: #f7f9fd;
    border: 1px dashed #ccd5e8;
    border-radius: 0.9rem;
    padding: 1.5rem 1.35rem;
    height: 100%;
}
.panel-card-soft h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.panel-card-soft p {
    color: var(--ngt-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* Single-column pages: keep forms and detail cards from stretching edge to
   edge now that the side columns are gone. */
.panel-limit {
    max-width: 960px;
}

/* User dropdown: the entry point to the account section. */
.panel-user-menu {
    --bs-dropdown-link-active-bg: #f2f5fc;
    --bs-dropdown-link-active-color: var(--ngt-accent);
    min-width: 14rem;
    border: 1px solid #d8dfef;
    border-radius: 0.7rem;
    box-shadow: 0 12px 28px rgba(36, 48, 78, 0.16);
    padding: 0.35rem 0;
    margin-top: 0.5rem;
}
/* Name + email, shown only where the topbar button collapses to the avatar. */
.panel-user-menu-head {
    padding: 0.5rem 0.9rem 0.4rem;
}
.panel-user-menu-name {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.25;
    color: #1d2437;
}
.panel-user-menu-mail {
    display: block;
    margin-top: 0.1rem;
    color: var(--ngt-muted);
    font-size: 0.76rem;
    line-height: 1.3;
    word-break: break-all;
}
.panel-user-menu .dropdown-divider {
    margin: 0.35rem 0;
    border-top-color: #e6ebf5;
}
.panel-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    font-size: 0.89rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
}
.panel-user-menu .dropdown-item i {
    flex: 0 0 1.1rem;
    font-size: 1rem;
    line-height: 1;
}

/* ============================================================
   AJUSTES DE FORMULARIO
   ============================================================ */

/* .panel-card lleva height:100% para igualar alturas dentro de una rejilla.
   Cuando la tarjeta es lo único del área de contenido, esa altura la estira
   hasta el pie de la ventana. */
.panel-card-auto {
    height: auto;
}

/* Un select multiple no puede respetar la altura fija del control. */
.panel-field select[multiple] {
    height: auto;
    padding: 0.35rem;
}

/* Lista de casillas: para media docena de valores es más claro que un select
   multiple, que obliga a Ctrl+clic y no se ve qué hay marcado. */
.panel-check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.3rem 0;
}
.panel-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--ngt-line);
    border-radius: 0.55rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #353c4f;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}
.panel-check:hover {
    border-color: #c3ccdf;
    background: #fafbfe;
}
.panel-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--ngt-accent);
    cursor: pointer;
    margin: 0;
}
.panel-check:has(input:checked) {
    border-color: rgba(210, 57, 75, 0.55);
    background: #fdeaec;
    color: var(--ngt-accent-hover);
}
.panel-check-empty {
    color: var(--ngt-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* Servidor de sala escrito o elegido de la lista (x-server-picker). El
   selector de modo va en la línea de la etiqueta; para que los controles de la
   barra sigan alineados, esa línea toma la misma altura en todos los campos y
   en la columna del botón. */
.panel-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 1.6rem;
}
.panel-toolbar:has(.panel-field-head) .panel-field > label,
.panel-toolbar:has(.panel-field-head) .panel-toolbar-action::before {
    display: flex;
    align-items: center;
    min-height: 1.6rem;
}
.panel-mode {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 2px;
    background: #eef1f7;
    border: 1px solid var(--ngt-line);
    border-radius: 0.5rem;
}
.panel-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 0;
    border-radius: 0.38rem;
    background: transparent;
    color: var(--ngt-muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}
.panel-mode-btn:hover {
    color: var(--ngt-ink);
}
.panel-mode-btn[aria-pressed="true"] {
    background: #fff;
    color: var(--ngt-accent-hover);
    box-shadow: 0 1px 2px rgba(17, 26, 47, 0.08);
}
.panel-mode-btn:focus-visible {
    outline: 2px solid rgba(210, 57, 75, 0.45);
    outline-offset: 1px;
}
