[hidden] {
    display: none !important;
}

.electron-toast {
    position: fixed;
    top: 5.5rem;
    right: 1.5rem;
    z-index: 2000;
    max-width: min(28rem, calc(100vw - 2rem));
}

.electron-clickable {
    cursor: pointer;
}

.settings-qr-panel img {
    background: #fff;
    border-radius: 1.25rem;
    padding: 0.75rem;
}

.pairing-json {
    max-height: 12rem;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: #9fb0ca;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(184, 205, 236, 0.12);
}

.pairing-endpoint-card {
    border: 1px solid rgba(184, 205, 236, 0.12);
    border-radius: 1rem;
    background: rgba(10, 18, 33, 0.72);
    padding: 0.95rem 1rem;
}

.admin-session-page .control-bar {
    z-index: 5;
}

.admin-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

.admin-session-page .btn-complete {
    background: linear-gradient(135deg, rgba(94, 231, 242, 0.24), rgba(147, 130, 255, 0.09));
}

.session-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.28rem 0.72rem;
    border: 1px solid rgba(184, 205, 236, 0.16);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.session-status-pill.open {
    color: #9ff0ba;
    border-color: rgba(86, 227, 148, 0.28);
    background: rgba(86, 227, 148, 0.08);
}

.session-status-pill.closed {
    color: #c3ccdb;
    border-color: rgba(184, 205, 236, 0.18);
    background: rgba(184, 205, 236, 0.07);
}

.session-status-pill.draft {
    color: #ffd073;
    border-color: rgba(255, 208, 115, 0.28);
    background: rgba(255, 208, 115, 0.08);
}

.list-row.session-row-closed {
    border-color: rgba(184, 205, 236, 0.1);
    background: rgba(184, 205, 236, 0.055);
    opacity: 0.78;
}

.list-row.session-row-closed .list-primary,
.list-row.session-row-closed .list-value {
    color: #b5c0d0;
}

.phone-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.device-card-compact .card-header {
    min-height: 4.25rem;
}

.device-card-compact .device-title {
    color: #eef5ff;
    font-size: 1rem;
    font-weight: 900;
}

.device-role-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.25rem;
    min-height: 2rem;
    color: #8af4ff;
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.device-side .device-role-text {
    color: #ffde98;
}

.device-header-remove {
    min-width: 4.25rem;
    min-height: 2rem;
    padding: 0.32rem 0.72rem;
    font-size: 0.76rem;
    font-weight: 850;
}

.device-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
}

.device-metric-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 2.1rem;
    gap: 0.42rem;
    padding: 0.32rem 0.62rem;
    border: 1px solid rgba(184, 205, 236, 0.12);
    border-radius: 999px;
    color: #dfeafb;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.76rem;
}

.device-metric-pill i {
    flex: 0 0 auto;
    color: #8ce9f5;
}

.device-metric-pill .device-metric-label {
    flex: 0 0 auto;
    color: #8292ad;
    font-weight: 850;
}

.device-metric-pill strong {
    min-width: 0;
    max-width: 18rem;
    color: #eef5ff;
    font-weight: 850;
}

.device-metric-pill.good {
    border-color: rgba(103, 211, 145, 0.22);
    background: rgba(103, 211, 145, 0.12);
}

.device-metric-pill.storage {
    border-color: rgba(94, 231, 242, 0.2);
    background: rgba(94, 231, 242, 0.08);
}

.device-metric-pill.battery-good {
    border-color: rgba(103, 211, 145, 0.3);
    background: rgba(103, 211, 145, 0.16);
}

.device-metric-pill.battery-warn {
    border-color: rgba(246, 189, 95, 0.32);
    background: rgba(246, 189, 95, 0.16);
}

.device-metric-pill.battery-low {
    border-color: rgba(255, 79, 105, 0.32);
    background: rgba(255, 79, 105, 0.16);
}

.device-metric-pill.battery-good i,
.device-metric-pill.battery-good strong {
    color: #a9f4c1;
}

.device-metric-pill.battery-warn i,
.device-metric-pill.battery-warn strong {
    color: #ffde98;
}

.device-metric-pill.battery-low i,
.device-metric-pill.battery-low strong {
    color: #ff8fa0;
}

.available-phone-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.available-phone-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    min-height: 4.9rem;
    padding: 0.62rem;
    border: 1px solid rgba(184, 205, 236, 0.12);
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.available-phone-card:hover {
    border-color: rgba(94, 231, 242, 0.3) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.available-phone-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.38rem;
}

.available-phone-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    min-width: 0;
}

.available-phone-name {
    min-width: 0;
    color: #eef5ff;
    font-size: 0.84rem;
    font-weight: 900;
}

.available-phone-role {
    flex: 0 0 auto;
    min-height: 1.35rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 950;
    line-height: 1;
}

.available-phone-role.front {
    color: #05202b;
    background: linear-gradient(135deg, #a2f4ff, #62d8f7);
}

.available-phone-role.side {
    color: #241704;
    background: linear-gradient(135deg, #ffe4a7, #ffc874);
}

.available-phone-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
}

.available-phone-spec {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 1.35rem;
    gap: 0.28rem;
    padding: 0.16rem 0.4rem;
    border: 1px solid rgba(184, 205, 236, 0.1);
    border-radius: 999px;
    color: #cbd8ec;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.63rem;
    font-weight: 800;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.available-phone-spec:hover {
    background-color: rgba(255, 255, 255, 0.09) !important;
    color: #ffffff;
}

.available-phone-spec i {
    flex: 0 0 auto;
    color: #8ce9f5;
}

.available-phone-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.3rem;
}

.available-phone-actions .btn {
    min-height: 1.48rem;
    padding: 0.14rem 0.46rem;
    font-size: 0.64rem;
    font-weight: 850;
}

.patient-wizard {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.patient-preview-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 0.35rem;
    padding: 0.85rem;
    border: 1px solid rgba(184, 205, 236, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.045);
}

.patient-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    color: #5ee7f2;
    background: rgba(94, 231, 242, 0.13);
    font-size: 1.02rem;
    font-weight: 950;
}

.patient-preview-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.patient-preview-name {
    color: #eef5ff;
    font-size: 1rem;
    font-weight: 950;
}

.patient-preview-meta {
    margin-top: 0.12rem;
    color: #91a7c5;
    font-size: 0.75rem;
    font-weight: 750;
}

.patient-progress-track {
    overflow: hidden;
    height: 0.32rem;
    margin-top: 0.65rem;
    border-radius: 999px;
    background: rgba(184, 205, 236, 0.14);
}

.patient-progress-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #5ee7f2, #49c7f5);
    transition: width 160ms ease;
}

.patient-progress-text {
    flex: 0 0 auto;
    color: #b7c7de;
    font-size: 0.78rem;
    font-weight: 950;
}

.patient-step-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.42rem;
}

.patient-step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    min-height: 2.05rem;
    padding: 0.3rem 0.72rem;
    border: 1px solid rgba(184, 205, 236, 0.16);
    border-radius: 0.8rem;
    color: #b7c7de;
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.7rem;
    font-weight: 900;
}

.patient-step-pill span {
    font-size: 0.72rem;
    font-weight: 950;
}

.patient-step-pill strong {
    font-size: 0.66rem;
    font-weight: 950;
}

.patient-step-pill.active {
    color: #04131a;
    border-color: rgba(94, 231, 242, 0.9);
    background: #5ee7f2;
}

.patient-step-pill.done {
    color: #5ee7f2;
    border-color: rgba(94, 231, 242, 0.26);
    background: rgba(94, 231, 242, 0.12);
}

.patient-step-pill:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.patient-step-panel {
    margin-top: 0.25rem;
}

.patient-step-heading {
    margin: 0 0 0.75rem;
    color: #eef5ff;
    font-size: 0.95rem;
    font-weight: 950;
}

.patient-step-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.patient-step-grid-two {
    max-width: 42rem;
}

.patient-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.38rem;
}

.patient-field-full {
    grid-column: 1 / -1;
}

.patient-field span {
    color: #91a7c5;
    font-size: 0.74rem;
    font-weight: 850;
}

.patient-sex-segment {
    display: flex;
    gap: 0.25rem;
    padding: 0.24rem;
    border: 1px solid rgba(184, 205, 236, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
}

.patient-sex-option {
    flex: 1 1 0;
    min-height: 2.32rem;
    border: 0;
    border-radius: 999px;
    color: #eef5ff;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 900;
}

.patient-sex-option.active {
    color: #04131a;
    background: #5ee7f2;
}

.patient-review-panel {
    overflow: hidden;
    border: 1px solid rgba(184, 205, 236, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.045);
}

.patient-review-row {
    display: grid;
    grid-template-columns: minmax(8rem, 0.34fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 0.72rem 0.9rem;
    border-bottom: 1px solid rgba(184, 205, 236, 0.1);
}

.patient-review-row:last-child {
    border-bottom: 0;
}

.patient-review-row span {
    color: #91a7c5;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.patient-review-row strong {
    min-width: 0;
    color: #eef5ff;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: pre-wrap;
    word-break: break-word;
}

.patient-step-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.patient-step-actions .btn {
    flex: 1 1 0;
    min-height: 2.65rem;
}

.capture-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.capture-history-row {
    overflow: hidden;
    border: 1px solid rgba(184, 205, 236, 0.13);
    border-radius: 0.95rem;
    background: transparent;
}

.capture-history-row.disabled {
    opacity: 0.76;
}

.capture-history-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 3.4rem;
    padding: 0.65rem 0.85rem;
}

.capture-history-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 0;
    white-space: nowrap;
}

.capture-history-main {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.capture-history-title {
    color: #eef5ff;
    font-size: 0.95rem;
    font-weight: 900;
}

.capture-history-sub {
    color: #8292ad;
    font-size: 0.76rem;
    font-weight: 700;
}

.capture-history-roles {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
}

.capture-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-height: 1.55rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(184, 205, 236, 0.14);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    background: transparent;
}

.capture-role-chip.role-front {
    color: #7be7fb;
    border-color: rgba(118, 226, 245, 0.26);
    background: transparent;
}

.capture-role-chip.role-side {
    color: #ffd18a;
    border-color: rgba(255, 200, 116, 0.26);
    background: transparent;
}

.capture-role-chip.uploaded {
    color: #80e8a9;
    border-color: rgba(86, 227, 148, 0.3);
    background: transparent;
}

.capture-role-chip.missing {
    color: #7f8ea9;
    border: 1px solid rgba(184, 205, 236, 0.1);
    background: transparent;
}

.capture-upload-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.65rem;
    max-width: 15rem;
    padding: 0.25rem 0.62rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.capture-upload-status.status-ok {
    color: #052316;
    background: rgba(86, 227, 148, 0.94);
}

.capture-upload-status.status-warning {
    color: #251701;
    background: rgba(255, 202, 116, 0.95);
}

.capture-upload-status.status-danger {
    color: #fff5f7;
    background: rgba(255, 75, 104, 0.9);
}

.capture-upload-status.status-muted {
    color: #aebbd0;
    border: 1px solid rgba(184, 205, 236, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.capture-upload-status.status-info {
    color: #041f28;
    background: rgba(118, 226, 245, 0.94);
}

.capture-history-delete {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 91, 118, 0.32);
    border-radius: 999px;
    color: #ff8fa0;
    background: rgba(255, 91, 118, 0.08);
}

.capture-history-delete:hover:not(:disabled) {
    color: #fff;
    background: rgba(255, 91, 118, 0.2);
}

.capture-history-delete:disabled {
    opacity: 0.55;
}

.capture-history-run-config {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.capture-history-run-config:hover:not(:disabled) {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.capture-history-run-config:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.capture-history-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 5.7rem;
    min-height: 2rem;
    padding: 0.24rem 0.68rem;
    border: 1px solid rgba(80, 160, 255, 0.34);
    border-radius: 999px;
    color: #eef6ff;
    background: linear-gradient(135deg, rgba(30, 129, 255, 0.95), rgba(21, 104, 232, 0.9));
    font-size: 0.74rem;
    font-weight: 900;
}

.capture-history-upload:hover:not(:disabled) {
    filter: brightness(1.08);
}

.capture-history-upload:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    color: #9eaec5;
    border-color: rgba(184, 205, 236, 0.12);
    background: rgba(255, 255, 255, 0.045);
}

.capture-history-upload.status-ok:disabled {
    opacity: 1;
    color: #042315;
    border-color: rgba(86, 227, 148, 0.4);
    background: linear-gradient(135deg, rgba(86, 227, 148, 0.95), rgba(41, 190, 113, 0.92));
}

.capture-history-upload.status-warning {
    color: #251701;
    border-color: rgba(255, 202, 116, 0.36);
    background: linear-gradient(135deg, rgba(255, 202, 116, 0.95), rgba(241, 162, 55, 0.9));
}

.capture-history-upload.status-danger {
    border-color: rgba(255, 91, 118, 0.36);
    background: linear-gradient(135deg, rgba(255, 91, 118, 0.95), rgba(213, 45, 79, 0.9));
}

.capture-history-upload.status-run {
    min-width: 6.15rem;
    color: #ffffff;
    border: 1px solid rgba(30, 129, 255, 0.3);
    border-radius: 999px;
    background: #1e81ff;
    box-shadow: 0 4px 12px rgba(30, 129, 255, 0.15);
}

.capture-history-upload.status-run:hover:not(:disabled) {
    background: #156ad6;
    border-color: rgba(30, 129, 255, 0.5);
    box-shadow: 0 6px 16px rgba(30, 129, 255, 0.25);
}

.capture-history-upload.status-run i {
    color: #ffffff;
}

.run-capture-dialog {
    border: 1px solid rgba(142, 190, 255, 0.22);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(13, 20, 35, 0.98), rgba(7, 12, 23, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 42px rgba(30, 129, 255, 0.12);
}

.run-capture-eyebrow {
    color: #8be9fb;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.run-capture-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.run-capture-field .form-label {
    margin: 0;
    color: #9fb2cf;
    font-size: 0.75rem;
    font-weight: 900;
}

.run-capture-field .form-control {
    min-height: 2.35rem;
    border-color: rgba(184, 205, 236, 0.16);
    border-radius: 0.75rem;
    color: #eef5ff;
    background: rgba(255, 255, 255, 0.045);
}

.run-capture-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.run-leg-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.run-leg-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    border: 1px solid rgba(184, 205, 236, 0.16);
    border-radius: 999px;
    color: #b7c7de;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.035);
}

.btn-check:checked + .run-leg-option {
    color: #5ee7f2;
    border-color: rgba(94, 231, 242, 0.6);
    background: rgba(94, 231, 242, 0.08);
}

.run-capture-error {
    margin-top: 0.85rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255, 91, 118, 0.24);
    border-radius: 0.75rem;
    color: #ffb0bd;
    background: rgba(255, 91, 118, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
}

.run-capture-submit {
    border: 0;
}

.capture-history-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 0.1rem 0.85rem 0.85rem;
}

.capture-history-details[hidden] {
    display: none !important;
}

.capture-role-detail {
    min-width: 0;
    padding: 0.72rem;
    border: 1px solid rgba(184, 205, 236, 0.09);
    border-radius: 0.95rem;
    background: transparent;
    box-shadow: none;
}

.capture-role-detail.role-front {
    border-top: 1px solid rgba(98, 216, 247, 0.28);
}

.capture-role-detail.role-side {
    border-top: 1px solid rgba(255, 200, 116, 0.28);
}

.capture-role-detail.empty {
    opacity: 0.72;
}

.capture-role-detail-head {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    min-height: 2.35rem;
    padding: 0.15rem 0.12rem 0.65rem;
}

.capture-role-icon {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
    color: #8be9fb;
    border: 1px solid rgba(118, 226, 245, 0.14);
    background: transparent;
}

.role-side .capture-role-icon {
    color: #ffd28a;
    border-color: rgba(255, 200, 116, 0.14);
    background: transparent;
}

.capture-role-detail-title {
    color: #dfeafb;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.capture-role-detail-sub {
    color: #8292ad;
    font-size: 0.68rem;
    font-weight: 800;
}

.capture-detail-group {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    margin-top: 0.45rem;
    padding: 0.5rem;
    border: 1px solid rgba(184, 205, 236, 0.055);
    border-radius: 0.72rem;
    background: transparent;
}

.capture-detail-line {
    display: grid;
    grid-template-columns: 8.15rem minmax(0, 1fr) 1.7rem;
    gap: 0.5rem;
    min-height: 1.78rem;
    align-items: center;
    padding: 0.1rem 0.2rem;
    border-radius: 0.5rem;
    font-size: 0.76rem;
}

.capture-detail-line:hover {
    background: transparent;
}

.capture-detail-label {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-width: 0;
    color: #8292ad;
    font-weight: 800;
}

.capture-detail-label i {
    width: 0.95rem;
    color: #76e2f5;
    text-align: center;
    opacity: 0.9;
}

.role-side .capture-detail-label i {
    color: #ffc874;
}

.capture-detail-line strong {
    min-width: 0;
    color: #e8f0ff;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.capture-detail-copy {
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid rgba(184, 205, 236, 0.12);
    border-radius: 999px;
    color: #9fb2cf;
    background: transparent;
    transition: 140ms ease;
}

.capture-detail-copy:hover {
    color: #ffffff;
    background: transparent;
    border-color: rgba(118, 226, 245, 0.34);
}

.capture-detail-copy-placeholder {
    width: 1.5rem;
}

/* Hard override: web reference styles also define generic .role-front/.role-side
   gradients. Capture history details should be border-only. */
.capture-history-details,
.capture-history-details .capture-role-detail,
.capture-history-details .capture-role-detail *,
.capture-history-roles .capture-role-chip {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
}

.session-create-row {
    align-items: center;
}

.session-create-form {
    flex: 1 1 34rem;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: min(100%, 32rem);
}

.session-create-form .select-shell {
    flex: 1 1 24rem;
    min-width: 18rem;
}

.session-create-form .session-start-button {
    flex: 0 0 auto;
}


.session-device-collapse-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.session-device-collapse-wrap .collapse,
.session-device-collapse-wrap .collapsing {
    width: 100%;
}

.session-device-panel {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(184, 205, 236, 0.13);
    border-radius: 1rem;
    background: rgba(5, 12, 24, 0.34);
}

.session-device-summary-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 3.35rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid rgba(94, 231, 242, 0.15);
    border-radius: 0.75rem;
    color: inherit;
    background: rgba(9, 17, 33, 0.45);
    text-align: left;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.session-device-summary-panel:hover {
    background: rgba(9, 17, 33, 0.6);
    border-color: rgba(94, 231, 242, 0.3);
}

.session-device-summary-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.session-device-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    color: #06141d;
    background: linear-gradient(135deg, #8af4ff, #67e8c7);
    font-size: 0.85rem;
}

.session-device-summary-title strong {
    display: block;
    color: #eef5ff;
    font-size: 0.9rem;
    font-weight: 850;
}

.session-device-summary-pills {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.session-device-summary-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.18rem 0.55rem;
    border: 1px solid rgba(184, 205, 236, 0.12);
    border-radius: 999px;
    color: #cbd8ec;
    background: transparent;
    font-size: 0.65rem;
    font-weight: 800;
}

.session-device-summary-pill.good {
    color: #9ff0ba;
    border-color: rgba(86, 227, 148, 0.3);
}

.session-device-summary-pill.bad {
    color: #ffadb9;
    border-color: rgba(255, 91, 118, 0.32);
}

.session-device-summary-pill.muted {
    color: #9fb2cf;
}

.session-device-summary-chevron {
    color: #9fb2cf;
    transition: transform 160ms ease;
}

.session-device-summary-panel[aria-expanded="true"] .session-device-summary-chevron {
    transform: rotate(180deg);
}

.session-device-card-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.session-device-mini-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(184, 205, 236, 0.1);
    border-radius: 0.75rem;
    background: rgba(13, 22, 41, 0.28);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.session-device-mini-card:hover {
    background: rgba(13, 22, 41, 0.45);
    border-color: rgba(94, 231, 242, 0.22);
}

.session-device-mini-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 12rem;
}

.session-device-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.85rem;
    height: 1.85rem;
    border: 1px solid rgba(184, 205, 236, 0.12);
    border-radius: 0.5rem;
    color: #8be9fb;
    background: transparent;
    font-size: 0.85rem;
}

.session-device-icon.health-green {
    color: #80e8a9;
    border-color: rgba(86, 227, 148, 0.26);
}

.session-device-icon.health-amber {
    color: #ffcf88;
    border-color: rgba(255, 202, 116, 0.28);
}

.session-device-icon.health-red {
    color: #ff8fa0;
    border-color: rgba(255, 91, 118, 0.28);
}

.session-device-copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.session-device-title {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
}

.session-device-sub {
    color: #8292ad;
    font-size: 0.68rem;
    font-weight: 600;
}

.session-device-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    flex: 2 1 auto;
    min-width: 0;
}

.session-device-pill,
.session-device-health {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 1.45rem;
    gap: 0.3rem;
    padding: 0.15rem 0.45rem;
    border: 1px solid rgba(184, 205, 236, 0.08);
    border-radius: 999px;
    color: #b7c7de;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.1;
}

.session-device-pill i,
.session-device-health i {
    flex: 0 0 auto;
    color: #8ce9f5;
}

.session-device-health.health-green {
    color: #9ff0ba;
    border-color: rgba(86, 227, 148, 0.3);
}

.session-device-health.health-green i {
    color: #80e8a9;
}

.session-device-health.health-amber {
    color: #ffe1a6;
    border-color: rgba(255, 202, 116, 0.32);
}

.session-device-health.health-amber i {
    color: #ffcf88;
}

.session-device-health.health-red {
    color: #ffadb9;
    border-color: rgba(255, 91, 118, 0.32);
}

.session-device-health.health-red i {
    color: #ff8fa0;
}

.session-device-pill.role-front {
    color: #7be7fb;
    border-color: rgba(118, 226, 245, 0.26);
}

.session-device-pill.role-side {
    color: #ffd18a;
    border-color: rgba(255, 200, 116, 0.26);
}

@media (max-width: 720px) {
    .session-create-form {
        flex-direction: column;
        align-items: stretch;
        min-width: 100%;
        gap: 0.75rem;
    }

    .session-create-form .select-shell,
    .session-create-form .dropdown,
    .session-create-form .session-start-button {
        flex: none !important;
        width: 100% !important;
        min-width: 100% !important;
        margin-left: 0 !important;
    }

    .session-device-summary-panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.85rem;
    }

    .session-device-summary-pills {
        justify-content: flex-start;
    }

    .session-device-mini-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0.65rem;
    }

    .session-device-pills {
        flex: none;
    }

    .capture-history-toggle {
        grid-template-columns: minmax(0, 1fr) auto;
        overflow-x: auto;
    }

    .capture-history-actions {
        flex-wrap: nowrap;
    }

    .available-phone-actions {
        justify-content: flex-start;
    }

    .available-phone-grid {
        grid-template-columns: 1fr;
    }

    .available-phone-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .available-phone-actions {
        flex-wrap: wrap;
    }

    .patient-preview-card,
    .patient-step-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .patient-step-grid,
    .patient-review-row {
        grid-template-columns: 1fr;
    }

    .patient-progress-text {
        align-self: flex-start;
    }

    .capture-history-details {
        grid-template-columns: 1fr;
    }

    .capture-history-roles {
        flex-wrap: nowrap;
    }
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    rgba(180, 180, 180, 0.8),
    rgba(120, 120, 120, 0.8)
  );
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    to bottom,
    rgba(150, 150, 150, 1),
    rgba(90, 90, 90, 1)
  );
}

/* Clinical Details Dashboard Redesign */
.clinical-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 1rem;
}

.clinical-detail-card {
    border: 1px solid rgba(184, 205, 236, 0.08);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.02) !important;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.clinical-detail-card:hover {
    border-color: rgba(94, 231, 242, 0.22);
    background: rgba(255, 255, 255, 0.045) !important;
}

.clinical-detail-card .card-label {
    color: #9fb0ca;
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Premium CSS Hover Tooltip Card */
.info-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.info-tooltip-wrapper i {
    font-size: 0.76rem;
    opacity: 0.65;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.info-tooltip-wrapper:hover i {
    opacity: 1;
    color: #5ee7f2 !important;
}

.info-tooltip-box {
    visibility: hidden;
    width: 20rem; /* Wider tooltip */
    background-color: rgba(10, 18, 33, 0.98) !important;
    color: #dfeafb;
    text-align: left;
    border: 1px solid rgba(94, 231, 242, 0.5); /* Glow border */
    border-radius: 0.75rem;
    padding: 0.85rem 1.1rem;
    position: absolute;
    z-index: 1000;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    font-size: 0.92rem; /* Larger font size */
    font-weight: 500;
    line-height: 1.45;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 15px rgba(94, 231, 242, 0.12); /* Glow ambient shadow */
    backdrop-filter: blur(10px);
    pointer-events: none;
}

/* Tooltip Down Arrow */
.info-tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(94, 231, 242, 0.35) transparent transparent transparent;
}

.info-tooltip-wrapper:hover .info-tooltip-box {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.clinical-detail-card .card-value {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 950;
    margin-top: 0.12rem;
}

.clinical-detail-card .card-value.value-good {
    color: #56e394;
}

.clinical-detail-card .card-value.value-warning {
    color: #ffc874;
}

.clinical-detail-card .card-value.value-fail {
    color: #ff5b76;
}

.svg-chart-container {
    position: relative;
    width: 100%;
    height: 320px;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(184, 205, 236, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    overflow: visible;
}

.svg-chart-interactive {
    cursor: crosshair;
}

.chart-tooltip-card {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: rgba(10, 18, 33, 0.94) !important;
    border: 1px solid rgba(94, 231, 242, 0.35);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    color: #dfeafb;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    display: none;
    min-width: 13rem;
}

.chart-legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: #8292ad;
    text-transform: uppercase;
}

.chart-legend-pill span {
    width: 0.75rem;
    height: 0.28rem;
    border-radius: 999px;
}

/* Animate running progress bar stripes */
@keyframes progress-bar-stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

.pipeline-progress.is-running span {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    ) !important;
    background-size: 1rem 1rem !important;
    animation: progress-bar-stripes 1s linear infinite !important;
}

.disabled-row {
    cursor: not-allowed !important;
    opacity: 0.85;
}

.pipeline-run-row-running {
    transition: none !important;
}

/* Global Container Top Padding Reset */
.admin-main-panel .container-xxl {
    padding-top: 0.25rem !important;
}

/* Fix Tooltip Clipping */
.pipeline-page .premium-card .report-module-panel {
    overflow: visible !important;
}

/* Style Blocked Run Button */
.capture-history-upload.status-loading:disabled {
    opacity: 0.8 !important;
    color: #ffde98 !important;
    border-color: rgba(255, 202, 116, 0.4) !important;
    background: rgba(255, 202, 116, 0.1) !important;
    cursor: wait !important;
}

