/* =============================================================================
   BIOAUDIT PROFESSIONAL THEME OVERRIDES
   ============================================================================= */

html.bioaudit-theme {
    --color-primary: 212 175 55;
    --color-accent: 166 138 79;
    --dr-bg: #080908;
    --dr-surface: rgba(19, 20, 19, 0.95);
    --dr-surface-strong: rgba(24, 25, 24, 0.98);
    --dr-surface-soft: rgba(234, 225, 210, 0.055);
    --dr-border: rgba(234, 225, 210, 0.12);
    --dr-border-strong: rgba(212, 175, 55, 0.34);
    --dr-text: #f6f1e8;
    --dr-muted: #b9b0a2;
    --dr-subtle: #837a6d;
    --dr-input-bg: rgba(10, 11, 10, 0.84);
    --dr-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

html.bioaudit-theme body {
    background:
        linear-gradient(180deg, rgba(32, 28, 21, 0.96), var(--dr-bg) 38%),
        var(--dr-bg);
    color: var(--dr-text);
}

html.bioaudit-theme .dr-panel,
html.bioaudit-theme .dr-subpanel,
html.bioaudit-theme .dr-metric,
html.bioaudit-theme .dr-empty-state {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 36%),
        var(--dr-surface);
}

html.bioaudit-theme .dr-button--primary,
html.bioaudit-theme .btn-primary {
    background-color: rgb(var(--color-primary));
    background-image: linear-gradient(135deg, rgb(var(--color-primary)), rgb(var(--color-accent)));
    box-shadow: 0 18px 40px rgb(var(--color-primary) / 0.16);
}

html.bioaudit-theme .dr-button--primary:hover:not(:disabled),
html.bioaudit-theme .btn-primary:hover:not(:disabled) {
    box-shadow: 0 22px 46px rgb(var(--color-primary) / 0.22);
}

html.bioaudit-theme ::selection {
    background: rgb(var(--color-primary));
    color: #080908;
}

/* BioAudit: Subtle top-of-page accent line to replace the DialedRide neon strip */
html.bioaudit-theme body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.45) 20%,
        rgba(212, 175, 55, 0.75) 50%,
        rgba(212, 175, 55, 0.45) 80%,
        transparent 100%
    );
    z-index: 9999;
    pointer-events: none;
}

/* BioAudit: Stronger visual weight for the product name in the header */
html.bioaudit-theme .font-condensed {
    letter-spacing: 0.01em;
}

html.bioaudit-theme:not(.dark) {
    --dr-bg: #f7f3eb;
    --dr-surface: rgba(255, 255, 255, 0.94);
    --dr-surface-strong: #ffffff;
    --dr-surface-soft: rgba(120, 91, 48, 0.075);
    --dr-border: rgba(75, 58, 33, 0.24);
    --dr-border-strong: rgba(133, 77, 14, 0.38);
    --dr-text: #1f2933;
    --dr-muted: #5f5549;
    --dr-subtle: #837466;
    --dr-input-bg: rgba(255, 255, 255, 0.96);
    --dr-shadow: 0 16px 36px rgba(62, 45, 24, 0.1);
}

html.bioaudit-theme:not(.dark) body {
    background:
        linear-gradient(180deg, rgba(255, 251, 242, 0.98), var(--dr-bg) 42%),
        var(--dr-bg) !important;
    color: var(--dr-text);
}

html.bioaudit-theme:not(.dark) body::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(133, 77, 14, 0.22) 20%,
        rgba(133, 77, 14, 0.48) 50%,
        rgba(133, 77, 14, 0.22) 80%,
        transparent 100%
    );
}

html.bioaudit-theme:not(.dark) .text-brand-gold {
    color: #854d0e !important;
}

html.bioaudit-theme:not(.dark) [class*="text-brand-gold/"] {
    color: #854d0e !important;
}

html.bioaudit-theme:not(.dark) .dr-meta-strip {
    color: #4b4035;
}

html.bioaudit-theme:not(.dark) .dr-meta-strip > span {
    border-color: rgba(75, 58, 33, 0.22);
    background: rgba(75, 58, 33, 0.1);
    color: #4b4035;
    font-weight: 800;
}

html.bioaudit-theme:not(.dark) .dr-meta-strip > span[class*="brand-gold"] {
    border-color: rgba(133, 77, 14, 0.34) !important;
    background: rgba(212, 175, 55, 0.18) !important;
    color: #854d0e !important;
}

html.bioaudit-theme:not(.dark) [class*="text-white/"] {
    color: var(--dr-muted) !important;
}

html.bioaudit-theme:not(.dark) .text-white,
html.bioaudit-theme:not(.dark) .hover\:text-white:hover {
    color: var(--dr-text) !important;
}

html.bioaudit-theme:not(.dark) .bg-black,
html.bioaudit-theme:not(.dark) .bg-\[\#080908\] {
    background-color: var(--dr-surface-strong) !important;
}

html.bioaudit-theme:not(.dark) .bg-black\/15,
html.bioaudit-theme:not(.dark) .bg-black\/20,
html.bioaudit-theme:not(.dark) .bg-black\/25,
html.bioaudit-theme:not(.dark) .bg-black\/30,
html.bioaudit-theme:not(.dark) .bg-black\/40,
html.bioaudit-theme:not(.dark) .bg-black\/50 {
    background-color: rgba(255, 255, 255, 0.72) !important;
}

html.bioaudit-theme:not(.dark) [class*="bg-white/"] {
    background-color: rgba(75, 58, 33, 0.055) !important;
}

html.bioaudit-theme:not(.dark) [class*="border-white/"] {
    border-color: var(--dr-border) !important;
}

html.bioaudit-theme:not(.dark) input,
html.bioaudit-theme:not(.dark) select,
html.bioaudit-theme:not(.dark) textarea {
    color: var(--dr-text) !important;
    background-color: var(--dr-input-bg) !important;
    border-color: rgba(75, 58, 33, 0.3) !important;
    color-scheme: light !important;
}

html.bioaudit-theme:not(.dark) .dr-input,
html.bioaudit-theme:not(.dark) .dr-select,
html.bioaudit-theme:not(.dark) .dr-textarea,
html.bioaudit-theme:not(.dark) input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
html.bioaudit-theme:not(.dark) select,
html.bioaudit-theme:not(.dark) textarea {
    box-shadow: inset 0 0 0 1px rgba(75, 58, 33, 0.1);
}

html.bioaudit-theme:not(.dark) .dr-input:hover,
html.bioaudit-theme:not(.dark) .dr-select:hover,
html.bioaudit-theme:not(.dark) .dr-textarea:hover,
html.bioaudit-theme:not(.dark) input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):hover,
html.bioaudit-theme:not(.dark) select:hover,
html.bioaudit-theme:not(.dark) textarea:hover {
    border-color: rgba(133, 77, 14, 0.4) !important;
    box-shadow: inset 0 0 0 1px rgba(75, 58, 33, 0.16);
}

html.bioaudit-theme:not(.dark) .dr-input:focus,
html.bioaudit-theme:not(.dark) .dr-select:focus,
html.bioaudit-theme:not(.dark) .dr-textarea:focus,
html.bioaudit-theme:not(.dark) input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):focus,
html.bioaudit-theme:not(.dark) select:focus,
html.bioaudit-theme:not(.dark) textarea:focus {
    border-color: rgba(133, 77, 14, 0.62) !important;
    box-shadow:
        inset 0 0 0 1px rgba(133, 77, 14, 0.2),
        0 0 0 4px rgba(133, 77, 14, 0.12) !important;
}

html.bioaudit-theme:not(.dark) select option {
    background-color: #ffffff !important;
    color: #1f2933 !important;
}


html.bioaudit-theme:not(.dark) input::placeholder,
html.bioaudit-theme:not(.dark) textarea::placeholder {
    color: rgba(95, 85, 73, 0.7);
}

html.bioaudit-theme:not(.dark) .text-yellow-100,
html.bioaudit-theme:not(.dark) [class*="text-yellow-100/"] {
    color: #78350f !important;
}

html.bioaudit-theme:not(.dark) .text-green-100,
html.bioaudit-theme:not(.dark) [class*="text-green-100/"] {
    color: #14532d !important;
}

html.bioaudit-theme:not(.dark) .text-blue-100,
html.bioaudit-theme:not(.dark) [class*="text-blue-100/"],
html.bioaudit-theme:not(.dark) .text-blue-200,
html.bioaudit-theme:not(.dark) [class*="text-blue-200/"],
html.bioaudit-theme:not(.dark) .text-blue-300,
html.bioaudit-theme:not(.dark) [class*="text-blue-300/"],
html.bioaudit-theme:not(.dark) .text-blue-400,
html.bioaudit-theme:not(.dark) [class*="text-blue-400/"] {
    color: #1e3a8a !important;
}

html.bioaudit-theme:not(.dark) .bg-blue-500\/5,
html.bioaudit-theme:not(.dark) .bg-blue-500\/10,
html.bioaudit-theme:not(.dark) .bg-blue-500\/15,
html.bioaudit-theme:not(.dark) .bg-blue-500\/20,
html.bioaudit-theme:not(.dark) .bg-blue-900\/20,
html.bioaudit-theme:not(.dark) .bg-blue-900\/30,
html.bioaudit-theme:not(.dark) .bg-blue-900\/40,
html.bioaudit-theme:not(.dark) .bg-blue-900\/60 {
    background-color: rgba(219, 234, 254, 0.9) !important;
}

html.bioaudit-theme:not(.dark) .border-blue-400\/40,
html.bioaudit-theme:not(.dark) .border-blue-500\/20,
html.bioaudit-theme:not(.dark) .border-blue-500\/30,
html.bioaudit-theme:not(.dark) .border-blue-500\/40,
html.bioaudit-theme:not(.dark) .border-blue-500\/50,
html.bioaudit-theme:not(.dark) .border-blue-500\/60 {
    border-color: rgba(37, 99, 235, 0.38) !important;
}

html.bioaudit-theme:not(.dark) .text-red-100,
html.bioaudit-theme:not(.dark) [class*="text-red-100/"],
html.bioaudit-theme:not(.dark) .text-red-200,
html.bioaudit-theme:not(.dark) [class*="text-red-200/"],
html.bioaudit-theme:not(.dark) .text-red-300,
html.bioaudit-theme:not(.dark) [class*="text-red-300/"],
html.bioaudit-theme:not(.dark) .text-red-400,
html.bioaudit-theme:not(.dark) [class*="text-red-400/"] {
    color: #7f1d1d !important;
}

html.bioaudit-theme:not(.dark) .bg-red-500\/5,
html.bioaudit-theme:not(.dark) .bg-red-500\/10,
html.bioaudit-theme:not(.dark) .bg-red-500\/15,
html.bioaudit-theme:not(.dark) .bg-red-500\/20,
html.bioaudit-theme:not(.dark) .bg-red-900\/20,
html.bioaudit-theme:not(.dark) .bg-red-900\/30,
html.bioaudit-theme:not(.dark) .bg-red-900\/40,
html.bioaudit-theme:not(.dark) .bg-red-900\/60 {
    background-color: rgba(254, 226, 226, 0.86) !important;
}

html.bioaudit-theme:not(.dark) .border-red-400\/40,
html.bioaudit-theme:not(.dark) .border-red-500\/20,
html.bioaudit-theme:not(.dark) .border-red-500\/30,
html.bioaudit-theme:not(.dark) .border-red-500\/40,
html.bioaudit-theme:not(.dark) .border-red-500\/50,
html.bioaudit-theme:not(.dark) .border-red-500\/60 {
    border-color: rgba(185, 28, 28, 0.34) !important;
}

html.bioaudit-theme:not(.dark) .dr-status--danger,
html.bioaudit-theme:not(.dark) .dr-subpanel--danger,
html.bioaudit-theme:not(.dark) .dr-panel--danger,
html.bioaudit-theme:not(.dark) .dr-callout-item--danger,
html.bioaudit-theme:not(.dark) .dr-interpretation--danger {
    border-color: rgba(185, 28, 28, 0.34) !important;
    background: rgba(254, 226, 226, 0.86) !important;
    color: #7f1d1d !important;
}

.dr-meta-strip > .dr-save-chip {
    flex: 0 0 auto;
    width: 4.8rem;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.dr-meta-strip > .dr-save-chip--visible {
    opacity: 1;
    visibility: visible;
}

/* BioAudit: workspace-specific responsive polish */
.dr-ride-evidence-column {
    order: 1;
}

.dr-ride-entry-column {
    order: 2;
}

.dr-ride-profile-panel {
    order: 3;
}

@media (min-width: 1280px) {
    .dr-ride-evidence-column {
        grid-column: 1;
    }

    .dr-ride-entry-column {
        grid-column: 2;
    }
}

@media (max-width: 820px) {
    .dr-workspace-main {
        order: 1;
    }

    .dr-client-sidebar {
        order: 2;
    }

    .dr-workspace-tabs {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible !important;
        padding-bottom: 0;
    }

    .dr-workspace-tabs > .dr-button {
        min-width: 0 !important;
        width: 100%;
        justify-content: center;
        padding-inline: 0.75rem;
    }

    .dr-workspace-tabs > .dr-button:first-child {
        grid-column: 1 / -1;
    }
}

/* BioAudit: settings workspace flow */
.dr-settings-shell {
    overflow: hidden;
    border: 1px solid var(--dr-border);
    border-radius: var(--dr-radius-lg);
    background:
        linear-gradient(135deg, rgb(var(--color-primary) / 0.08), transparent 34%),
        var(--dr-surface);
    box-shadow: var(--dr-shadow);
}

.dr-settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem;
    border-bottom: 1px solid var(--dr-border);
}

.dr-settings-header-copy {
    min-width: 0;
}

.dr-settings-title {
    margin-top: 0.25rem;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.dr-settings-copy {
    margin-top: 0.65rem;
    max-width: 52rem;
    color: var(--dr-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.dr-settings-path {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border-bottom: 1px solid var(--dr-border);
    background: var(--dr-border);
}

.dr-settings-step {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    background: rgb(0 0 0 / 0.16);
}

.dr-settings-step-index {
    display: inline-flex;
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgb(var(--color-primary));
    color: #080908;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 900;
}

.dr-settings-step-title,
.dr-settings-step-detail {
    display: block;
    min-width: 0;
}

.dr-settings-step-title {
    color: var(--dr-text);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: uppercase;
}

.dr-settings-step-detail {
    margin-top: 0.18rem;
    color: var(--dr-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.dr-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 24rem);
    gap: 1.35rem;
    padding: 1.35rem;
}

.dr-settings-form {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1.2rem;
}

.dr-settings-group {
    min-width: 0;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--dr-border);
}

.dr-settings-group:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dr-settings-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.95rem;
}

.dr-settings-group-heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 0.8rem;
}

.dr-settings-group-icon {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(var(--color-primary) / 0.26);
    border-radius: var(--dr-radius-md);
    background: rgb(var(--color-primary) / 0.09);
    color: rgb(var(--color-primary));
}

.dr-settings-group-title {
    margin-top: 0.12rem;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.dr-settings-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.dr-settings-field {
    min-width: 0;
}

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

.dr-settings-control-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.65rem;
}

.dr-settings-color-input {
    width: 3.5rem;
    height: 3rem;
    flex: 0 0 auto;
    border: 1px solid var(--dr-border);
    border-radius: var(--dr-radius-md);
    background: var(--dr-input-bg);
    padding: 0.25rem;
}

.dr-settings-logo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.dr-settings-logo-note {
    color: var(--dr-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.dr-settings-preview {
    position: sticky;
    top: 1rem;
    align-self: start;
    overflow: hidden;
    border: 1px solid var(--dr-border-strong);
    border-radius: var(--dr-radius-lg);
    background: var(--dr-surface-strong);
}

.dr-settings-preview-accent {
    height: 0.35rem;
    background: linear-gradient(90deg, rgb(var(--color-primary)), rgb(var(--color-accent)));
}

.dr-settings-preview-body {
    padding: 1rem;
}

.dr-settings-preview-top {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.85rem;
}

.dr-settings-logo-frame {
    display: flex;
    width: 4.25rem;
    height: 4.25rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--dr-border);
    border-radius: var(--dr-radius-md);
    background: var(--dr-surface-soft);
}

.dr-settings-logo-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dr-settings-preview-name,
.dr-settings-preview-product {
    overflow-wrap: anywhere;
}

.dr-settings-preview-name {
    margin-top: 0.25rem;
    color: var(--dr-text);
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.dr-settings-preview-practitioner {
    margin-top: 0.25rem;
    color: var(--dr-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.dr-settings-preview-paper {
    position: relative;
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid var(--dr-border);
    border-radius: var(--dr-radius-md);
    background: rgb(255 255 255 / 0.94);
    color: #15120e;
    padding: 1rem;
}

.dr-settings-preview-paper-bar {
    position: absolute;
    inset: 0 0 auto;
    height: 0.28rem;
    background: rgb(var(--color-primary));
}

.dr-settings-preview-report-title {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dr-settings-preview-product {
    margin-top: 0.55rem;
    color: #4a3a16;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.dr-settings-preview-tagline,
.dr-settings-preview-contact {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    line-height: 1.45;
}

.dr-settings-preview-contact {
    white-space: pre-line;
}

.dr-settings-swatches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.dr-settings-swatch {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
    color: var(--dr-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 800;
}

.dr-settings-swatch-mark {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid var(--dr-border);
}

.dr-settings-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0.25rem;
}

.dr-settings-section-heading h3 {
    margin-top: 0.2rem;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.dr-settings-collapsible {
    overflow: hidden;
}

.dr-settings-collapsible-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 34rem) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    list-style: none;
}

.dr-settings-collapsible-summary::-webkit-details-marker {
    display: none;
}

.dr-settings-collapsible-body {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--dr-border);
}

.dr-settings-summary-icon {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dr-border);
    border-radius: var(--dr-radius-md);
    color: var(--dr-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.dr-settings-collapsible[open] .dr-settings-summary-icon {
    transform: rotate(180deg);
    color: rgb(var(--color-primary));
}

.dr-beta-payment-panel {
    align-self: start;
}

.dr-beta-payment-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(26rem, 1.12fr);
    gap: 1.25rem;
    align-items: start;
}

.dr-beta-payment-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dr-border);
}

.dr-beta-price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

html.bioaudit-theme:not(.dark) .dr-settings-step {
    background: rgba(255, 255, 255, 0.78);
}

html.bioaudit-theme:not(.dark) .dr-settings-preview-paper {
    background: #fffaf0;
}

@media (max-width: 1180px) {
    .dr-settings-layout,
    .dr-settings-collapsible-summary,
    .dr-beta-payment-grid {
        grid-template-columns: 1fr;
    }

    .dr-settings-preview {
        position: static;
    }
}

@media (max-width: 760px) {
    .dr-settings-title {
        font-size: 1.85rem;
    }

    .dr-settings-header,
    .dr-settings-group-header,
    .dr-settings-section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .dr-settings-path,
    .dr-settings-field-grid,
    .dr-settings-swatches {
        grid-template-columns: 1fr;
    }

    .dr-settings-layout,
    .dr-settings-header,
    .dr-settings-collapsible-summary,
    .dr-settings-collapsible-body {
        padding: 1rem;
    }

    .dr-beta-price-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   BIOAUDIT: DENSE GRID WORKSPACE & EVIDENCE UI POLISH
   ============================================================================= */

/* Compact kicker typography for tight table/grid column headers (removes ::before line and wide tracking) */
.dr-kicker-compact {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dr-subtle);
    line-height: 1;
    margin-bottom: 0.25rem;
}

/* Premium condensed card title to prevent word wrapping/overflow issues in dense lists */
.dr-evidence-card-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
    word-break: break-word;
}

/* BioAudit: compact laptop workspace layout */
.dr-app-topbar,
.dr-app-brand,
.dr-app-actions,
.dr-workspace-shell,
.dr-workspace-main {
    min-width: 0;
}

.dr-app-brand > div:last-child {
    min-width: 0;
}

.dr-app-brand .font-condensed {
    overflow-wrap: anywhere;
}

.dr-app-actions {
    justify-content: flex-end;
}

@media (max-width: 1536px) {
    html.bioaudit-theme .dr-app-topbar {
        gap: 0.75rem !important;
        padding: 0.75rem 1rem !important;
    }

    html.bioaudit-theme .dr-app-brand {
        gap: 0.65rem !important;
    }

    html.bioaudit-theme .dr-app-brand .h-11.w-11 {
        width: 2.4rem !important;
        height: 2.4rem !important;
    }

    html.bioaudit-theme .dr-app-brand .font-condensed {
        font-size: 1.55rem !important;
        line-height: 0.98 !important;
    }

    html.bioaudit-theme .dr-app-brand > div:last-child > div:last-child {
        font-size: 0.58rem !important;
        letter-spacing: 0.12em !important;
    }

    html.bioaudit-theme .dr-app-actions {
        gap: 0.45rem !important;
    }

    html.bioaudit-theme .dr-app-actions .dr-button {
        min-height: 38px;
        gap: 0.45rem;
        padding: 0.58rem 0.72rem;
        font-size: 0.64rem;
    }

    html.bioaudit-theme .dr-workspace-shell {
        gap: 0.75rem !important;
        padding: 0.75rem 1rem 1rem !important;
    }

    html.bioaudit-theme .dr-client-title {
        font-size: 2.55rem !important;
        line-height: 0.98 !important;
    }

    html.bioaudit-theme .dr-workspace-shell [class*="xl:grid-cols"] {
        grid-template-columns: 1fr !important;
    }

    html.bioaudit-theme .dr-workspace-shell [class*="xl:min-w"] {
        min-width: 0 !important;
    }

    html.bioaudit-theme .dr-ride-entry-column,
    html.bioaudit-theme .dr-ride-evidence-column,
    html.bioaudit-theme .dr-ride-profile-panel {
        grid-column: auto !important;
    }

    html.bioaudit-theme .dr-ride-entry-column {
        order: 1;
    }

    html.bioaudit-theme .dr-ride-evidence-column {
        order: 2;
    }

    html.bioaudit-theme .dr-ride-profile-panel {
        order: 3;
    }

    html.bioaudit-theme .dr-workspace-shell .dr-panel.p-5 {
        padding: 1rem !important;
    }

    html.bioaudit-theme .dr-workspace-shell .dr-panel.p-4 {
        padding: 0.9rem !important;
    }

    html.bioaudit-theme .dr-settings-layout,
    html.bioaudit-theme .dr-settings-collapsible-summary,
    html.bioaudit-theme .dr-beta-payment-grid {
        grid-template-columns: 1fr !important;
    }

    html.bioaudit-theme .dr-settings-preview {
        position: static;
    }

    html.bioaudit-theme .dr-settings-title {
        font-size: 2rem;
    }
}

@media (min-width: 1280px) and (max-width: 1536px) {
    html.bioaudit-theme .dr-workspace-shell {
        grid-template-columns: minmax(15.5rem, 17.5rem) minmax(0, 1fr) !important;
    }

    html.bioaudit-theme .dr-client-sidebar {
        position: sticky;
        top: 0.75rem;
        align-self: start;
        max-height: calc(100svh - 1.5rem);
        overflow: hidden;
    }

    html.bioaudit-theme .dr-client-list {
        max-height: calc(100svh - 12.75rem) !important;
    }
}

@media (max-width: 1279px) {
    html.bioaudit-theme .dr-workspace-shell {
        grid-template-columns: 1fr !important;
    }

    html.bioaudit-theme .dr-workspace-main {
        order: 1;
    }

    html.bioaudit-theme .dr-client-sidebar {
        order: 2;
        position: static;
        max-height: none;
        overflow: visible;
    }

    html.bioaudit-theme .dr-client-list {
        max-height: 18rem !important;
    }

    html.bioaudit-theme .dr-app-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    html.bioaudit-theme .dr-app-actions .dr-button {
        width: auto;
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
        padding-inline: 0.65rem;
    }

    html.bioaudit-theme .dr-client-title {
        font-size: 2rem !important;
    }
}
