/* Settings directory: fluid columns without a horizontally scrolling menu. */
.settings-directory { display:grid; gap:2.5rem; padding:.5rem 0 1.5rem; }
.settings-directory-group { min-width:0; }
.settings-directory-group > h2 { font-size:1.05rem; margin:0 0 .75rem; }
.settings-directory-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr)); gap:.65rem 1rem; }
.settings-directory-link { display:grid; grid-template-columns:32px minmax(0,1fr); align-items:start; gap:12px; padding:14px 10px; min-width:0; border-radius:10px; color:var(--link-info); text-decoration:none; }
.settings-directory-link:hover,.settings-directory-link:focus-visible { background:var(--surface-tint); color:var(--link-info-hover); }
.settings-directory-link:focus-visible { outline:2px solid var(--link-info); outline-offset:2px; }
.settings-directory-link strong { display:block; font-size:1rem; line-height:1.4; }
.settings-directory-description { display:block; margin-top:3px; color:var(--muted); line-height:1.45; overflow-wrap:anywhere; }
.settings-directory-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:8px; background:var(--surface-tint); }
.settings-directory-icon svg { width:20px; height:20px; }
.settings-breadcrumb { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:1rem; color:var(--muted); }
.settings-breadcrumb a { display:inline-flex; align-items:center; min-height:44px; color:var(--link-info); font-weight:700; }
@media(max-width:600px) { .settings-directory-grid { grid-template-columns:minmax(0,1fr); } .settings-directory-link { padding:12px 4px; } }

/* Compact, touch-friendly settings actions share one delete treatment. */
.bandspace-settings .btn.settings-delete-control { display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; min-width:44px; height:44px; min-height:44px; padding:0; border:1px solid var(--line); background:transparent; color:var(--danger-text); box-shadow:none; }
.bandspace-settings .settings-delete-control svg { width:19px; height:19px; pointer-events:none; }
.bandspace-settings .settings-delete-control:hover { background:var(--surface-tint); border-color:var(--danger-text); }
.bandspace-settings .settings-delete-control:focus-visible { outline:2px solid var(--danger-text); outline-offset:3px; }
.bandspace-settings .settings-member-actions { display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between; gap:.65rem; width:100%; }
.bandspace-settings .settings-member-actions > div { min-width:0; }
.bandspace-settings .settings-member-actions > div:last-child { flex:none; }
.bandspace-settings .settings-member-actions .btn-save-action { min-height:44px; }
.bandspace-settings .role-actions-row { flex-wrap:nowrap; gap:.65rem !important; }
.bandspace-settings .role-actions-row > .btn-save-action { min-width:0; min-height:44px; white-space:normal; }
.bandspace-settings .role-actions-row > form { flex:none; }
.bandspace-settings .band-branding-controls { display:block; }
.bandspace-settings .band-branding-form { display:block; min-width:0; width:100%; }
.bandspace-settings .band-branding-form .actions { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:.55rem; width:100%; }
.bandspace-settings .band-branding-form [data-brand-image-choose] { grid-column:1; min-height:44px; width:100%; white-space:normal; }
.bandspace-settings .band-branding-form [data-brand-image-save] { grid-column:1/-1; min-height:44px; width:100%; }
.bandspace-settings .band-branding-form .settings-delete-control { grid-column:2; grid-row:1; }
.bandspace-settings .band-branding-pending-preview { margin-bottom:.55rem; }
.appearance-control { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; }
.appearance-control > svg { width:22px; height:22px; flex:none; color:var(--muted); }
.appearance-control > strong { font-size:.95rem; }
.bandspace-settings .custom-switch.appearance-switch .switch-label { height:44px; background:var(--surface-tint); border-color:var(--line); }
.bandspace-settings .custom-switch.appearance-switch .switch-switch { top:5px; left:5px; width:32px; height:32px; }
.bandspace-settings .custom-switch.appearance-switch input[type="checkbox"]:checked + .switch-label { background:#0f766e; border-color:#0f766e; }
.bandspace-settings .custom-switch.appearance-switch input[type="checkbox"]:checked + .switch-label .switch-switch { left:calc(100% - 37px); }
.bandspace-settings .appearance-save-error { color:var(--danger-text); }
@media(prefers-reduced-motion:reduce) { .bandspace-settings .custom-switch.appearance-switch .switch-switch { transition:none; } }

.settings-export-groups { display:grid; gap:1.6rem; }
.settings-export-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr)); gap:1rem; }
.bandspace-settings .settings-export-card { min-width:0; margin:0; padding:1.1rem; scroll-margin-top:90px; }
.settings-export-card h4 { margin:0; font-size:1.05rem; }
.settings-export-form { display:grid; gap:.55rem; }
.settings-export-form select,.settings-export-form .btn { min-height:44px; }
.settings-export-context { font-size:.8rem; margin:.5rem 0; }
.settings-export-context dl { margin:.5rem 0; display:grid; gap:.4rem; }
.settings-export-context dl>div { display:grid; grid-template-columns:100px minmax(0,1fr); gap:.5rem; }
.settings-export-context dd { margin:0; overflow-wrap:anywhere; }
.settings-export-card .music-search-row { flex-wrap:wrap; }
.settings-export-card .music-search-row input { min-width:0; flex:1 1 160px; }
@media(max-width:640px) { .settings-export-grid { grid-template-columns:minmax(0,1fr); } .bandspace-settings .settings-export-card { padding:.9rem; } }

/* Widgets Settings Styles */
.widgets-settings-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widgets-subtabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    overflow-x: auto;
    padding: 0 48px 8px 0;
}

.widget-subtabs-shell {
    width: 100%;
}

.widget-subtabs-shell .scroll-tabs-cue {
    background: linear-gradient(90deg, rgba(17, 22, 37, 0), var(--panel) 42%);
    border-radius: 0;
    bottom: 8px;
}

[data-theme="light"] .widget-subtabs-shell .scroll-tabs-cue {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--panel) 42%);
    color: var(--brand);
}

.subtab-btn {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--text-color);
    opacity: 0.7;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    flex: 0 0 auto;
    text-align: center;
    white-space: nowrap;
    width: auto;
    transition: all 0.2s ease;
}

.subtab-btn:hover {
    opacity: 1;
    background: var(--surface-tint);
}

.subtab-btn.active {
    opacity: 1;
    background: var(--bg-accent, #06b6d4);
    color: #ffffff;
}

.widget-subtab-pane {
    animation: widgetFadeIn 0.2s ease-out;
}

.widget-copy-workspace {
    display: grid;
    gap: 18px;
}

.widget-copy-heading,
.widget-copy-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.widget-copy-heading h3,
.widget-copy-heading p,
.widget-copy-footer p {
    margin-top: 0;
    margin-bottom: 0;
}

.widget-copy-heading .eyebrow {
    display: block;
    margin-bottom: 4px;
}

.widget-copy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.widget-copy-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--border-radius, 12px);
    background: var(--panel-muted, rgba(255, 255, 255, 0.025));
}

.widget-copy-card:first-child {
    grid-row: span 2;
}

.widget-copy-card > header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.widget-copy-card > header h3,
.widget-copy-card > header p {
    margin: 0;
}

.widget-copy-card > header p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.84rem;
}

.widget-copy-number {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid var(--line-active);
    border-radius: 10px;
    color: var(--brand, #f43f5e);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.widget-copy-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.widget-copy-fields .form-group {
    margin: 0 !important;
}

.widget-copy-fields .form-group:has(textarea) {
    grid-column: 1 / -1;
}

.widget-copy-footer {
    padding-top: 2px;
}

@media (max-width: 980px) {
    .widget-copy-grid {
        grid-template-columns: 1fr;
    }

    .widget-copy-card:first-child {
        grid-row: auto;
    }
}

@media (max-width: 620px) {
    .widget-copy-heading,
    .widget-copy-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .widget-copy-heading .btn,
    .widget-copy-footer .btn {
        width: 100%;
    }

    .widget-copy-card {
        padding: 16px;
    }

    .widget-copy-fields {
        grid-template-columns: 1fr;
    }

    .widget-copy-fields .form-group:has(textarea) {
        grid-column: auto;
    }
}

@keyframes widgetFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Color Pickers & Segment Buttons */
.color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 250px;
}

.color-picker-input {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    cursor: pointer;
    height: 38px;
    width: 54px;
    padding: 2px;
    background: transparent;
}

.color-text-input {
    flex: 1;
    height: 38px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text-color);
    font-family: monospace;
    font-size: 14px;
    padding: 0 10px;
    text-transform: uppercase;
}

.btn-segment {
    background: var(--surface-tint);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text-color);
    padding: 8px 20px;
    cursor: pointer;
    display: inline-block;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-segment-active {
    background: var(--bg-accent, #06b6d4) !important;
    border-color: var(--bg-accent, #06b6d4) !important;
    color: #ffffff !important;
}

/* Color Swatches */
.swatch-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.swatch-label {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.6;
}

.swatch-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    height: 24px;
    width: 24px;
    padding: 0;
    transition: transform 0.15s ease;
}

.swatch-btn:hover {
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Review Grid */
.suggested-setting-row {
    background: var(--surface-soft);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
}

.suggested-setting-row:hover {
    border-color: rgba(148, 163, 184, 0.15);
    background: var(--surface-soft-hover);
}

.form-label-bold {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

.card-nested {
    background: var(--surface-inset);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.form-section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-color);
}

/* Scraper Advanced Style Accordions */
.profile-accordion {
    background: var(--surface-soft);
    border: 1px solid rgba(148, 163, 184, .14);
    border-left: 4px solid var(--bg-accordion-border-accent, var(--bg-accent, #06b6d4));
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.profile-accordion-header {
    align-items: center;
    background: color-mix(in srgb, var(--bg-accent, #06b6d4) var(--bg-accordion-tint, 10%), var(--surface-soft));
    color: var(--text-color);
    cursor: pointer;
    display: grid;
    font-size: 15px;
    font-weight: 850;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: space-between;
    min-height: 58px;
    padding: 12px 16px;
    transition: background .24s ease;
    user-select: none;
}

.profile-accordion-header:hover {
    background: color-mix(in srgb, var(--bg-accent, #06b6d4) var(--bg-accordion-hover-tint, 14%), var(--surface-soft-hover));
}

.profile-accordion-body {
    background: var(--surface-inset);
    border-top: 1px solid rgba(148, 163, 184, 0.05);
    max-height: 0;
    opacity: .35;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height .32s ease, opacity .24s ease, padding .24s ease;
}

.profile-accordion.active .profile-accordion-body {
    max-height: 900px;
    opacity: 1;
    overflow: auto;
    padding: 16px;
}

.profile-accordion-header::after {
    align-items: center;
    background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 2px, 2px 12px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 999px;
    color: var(--bg-accordion-control-accent, var(--bg-accent, #06b6d4));
    content: '';
    display: inline-flex;
    height: 30px;
    justify-content: center;
    line-height: 1;
    transition: background .24s ease, border-color .24s ease, transform .24s ease;
    width: 30px;
}

.profile-accordion.active .profile-accordion-header::after {
    background: color-mix(in srgb, var(--bg-accordion-control-accent, var(--bg-accent, #06b6d4)) 12%, transparent);
    background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 2px, 2px 12px;
    border-color: color-mix(in srgb, var(--bg-accordion-control-accent, var(--bg-accent, #06b6d4)) 35%, transparent);
    transform: rotate(45deg);
}

.profile-prop-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-prop-table th,
.profile-prop-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
    font-size: 13px;
}

.profile-prop-table th {
    width: 30%;
    font-weight: 600;
    opacity: 0.7;
}

.profile-prop-table code {
    background: var(--code-bg);
    color: var(--text-color, var(--text));
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

.widget-style-studio {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.25fr);
    align-items: start;
}

.widget-style-studio-toolbar {
    align-items: center;
    backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--panel, #111625) 92%, transparent);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 11px;
    display: flex;
    gap: 16px;
    grid-column: 1 / -1;
    justify-content: space-between;
    padding: 11px 12px;
    position: sticky;
    top: 10px;
    z-index: 40;
}

.widget-style-studio-toolbar .actions {
    align-items: center;
    flex-wrap: nowrap;
}

.widget-style-save-state {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.widget-style-save-state strong,
.widget-style-save-state span {
    display: block;
}

.widget-style-save-state strong {
    font-size: 13px;
}

.widget-style-save-state span {
    color: var(--text-color);
    font-size: 11px;
    opacity: .62;
}

.widget-style-save-dot {
    background: #2dd4bf;
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, .1);
    flex: 0 0 8px;
    height: 8px;
    width: 8px;
}

.widget-style-studio.is-dirty .widget-style-save-dot {
    background: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, .11);
}

.widget-style-studio.is-preview-expanded {
    grid-template-columns: minmax(0, 1fr);
}

.widget-style-studio.is-preview-expanded .widget-style-preview-pane {
    display: block;
    grid-column: 1 / -1;
    position: static;
}

.widget-style-studio.is-preview-expanded .widget-style-workbench {
    display: none;
}

.widget-style-preview-pane {
    position: sticky;
    top: 18px;
}

.widget-style-workbench {
    display: grid;
    gap: 18px;
}

.widget-style-secondary-actions {
    align-items: center;
    border-top: 1px solid rgba(148, 163, 184, .12);
    color: var(--text-color);
    display: flex;
    font-size: 12px;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 2px;
    opacity: .78;
    padding-top: 12px;
}

.widget-style-guide {
    border: 1px solid rgba(6, 182, 212, 0.26);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(244, 63, 94, 0.08));
    border-radius: 10px;
    padding: 16px;
}

.widget-style-guide strong {
    display: block;
    margin-bottom: 4px;
}

.widget-style-guide ol {
    margin: 10px 0 0 18px;
    padding: 0;
}

.widget-style-guide li {
    margin: 4px 0;
}

.widget-style-guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.widget-style-save-strip {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 10px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 16px;
    padding: 14px 16px;
}

.widget-style-save-strip strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.widget-style-save-strip span {
    color: var(--text-color);
    display: block;
    font-size: 12px;
    opacity: .64;
}

.widget-style-save-strip .actions {
    align-items: center;
    justify-content: flex-end;
}

.btn-reset-action {
    background: rgba(245, 158, 11, .1);
    border-color: rgba(245, 158, 11, .48);
    color: var(--warning-text);
}

.btn-reset-action:hover {
    background: rgba(245, 158, 11, .18);
    border-color: rgba(251, 191, 36, .72);
    color: var(--warning-text);
    transform: translateY(-1px);
}

#widget_subtab_design .form-label,
#widget_subtab_design .form-label-bold {
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
}

#widget_subtab_design .widget-visual-controls-title {
    font-size: 20px;
    font-weight: 950;
    letter-spacing: .05em;
    line-height: 1.15;
    text-transform: uppercase;
}

.widget-style-preview {
    overflow: visible;
}

#songmenu-widget-live-preview {
    min-width: 0;
    width: 100%;
}

.widget-style-preview-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.widget-style-preview-label span {
    color: var(--text-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    opacity: .68;
    text-transform: uppercase;
}

.widget-preview-contrast-warning {
    background: rgba(245, 158, 11, .12);
    border: 1px solid rgba(245, 158, 11, .34);
    border-radius: 8px;
    color: var(--warning-text);
    display: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
    padding: 8px 10px;
}

.widget-style-preview-surface {
    background: var(--preview-bg-surface, var(--preview-bg));
    border: 1px solid var(--preview-card-border);
    border-radius: var(--preview-radius);
    color: var(--preview-text);
    display: grid;
    gap: 14px;
    max-height: calc(100vh - 150px);
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px;
    overscroll-behavior: contain;
    scrollbar-color: var(--preview-accent) rgba(148, 163, 184, .14);
    scrollbar-width: thin;
    font-family: var(--preview-font-family, inherit);
    font-size: var(--preview-font-size-base, 16px);
}

.widget-style-preview-surface::-webkit-scrollbar {
    width: 10px;
}

.widget-style-preview-surface::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, .14);
    border-radius: 999px;
}

.widget-style-preview-surface::-webkit-scrollbar-thumb {
    background: var(--preview-accent);
    border: 2px solid rgba(0, 0, 0, .18);
    border-radius: 999px;
}

.widget-preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.widget-preview-header strong {
    display: block;
    font-size: var(--preview-font-size-heading, 22px);
    line-height: 1.1;
}

.widget-preview-header span,
.widget-preview-card em,
.widget-preview-song-meta,
.widget-preview-help {
    color: var(--preview-muted);
    display: block;
    font-style: normal;
    margin-top: 4px;
}

.widget-preview-status {
    background: rgba(6, 182, 212, .13);
    border: 1px solid rgba(6, 182, 212, .38);
    border-radius: 999px;
    color: var(--preview-accent);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 9px;
    text-transform: uppercase;
}

.widget-preview-tabs {
    border: 1px solid var(--preview-card-border);
    border-radius: calc(var(--preview-radius) * .75);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

.widget-preview-tabs span {
    background: var(--preview-nav-surface, var(--preview-nav-bg, transparent));
    border-right: 1px solid var(--preview-card-border);
    color: var(--preview-nav-text, var(--preview-text));
    font-size: 11px;
    font-weight: 800;
    padding: 9px 7px;
    text-align: center;
    text-transform: uppercase;
}

.widget-preview-tabs span:first-child {
    background: var(--preview-nav-active-surface, var(--preview-nav-active-bg, var(--preview-button-bg)));
    color: var(--preview-nav-active-text, var(--preview-button-text));
}

.widget-preview-tabs span:last-child {
    border-right: 0;
}

.widget-preview-promo {
    background: var(--preview-promo-surface, var(--preview-promo-bg, color-mix(in srgb, var(--preview-button-bg) 20%, transparent)));
    border: 1px solid var(--preview-promo-border, var(--preview-accent));
    border-radius: calc(var(--preview-radius) * .7);
    color: var(--preview-promo-text, var(--preview-text));
    display: grid;
    gap: 4px;
    padding: 10px 12px;
}

.widget-preview-promo strong,
.widget-preview-promo span {
    color: var(--preview-promo-text, var(--preview-text));
    display: block;
}

.widget-preview-promo strong {
    font-size: 14px;
    font-weight: 950;
    line-height: 1.05;
    text-transform: uppercase;
}

.widget-preview-promo span {
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    opacity: .95;
    text-transform: uppercase;
}

.widget-preview-search {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.widget-style-preview-surface input {
    background: var(--preview-input-surface, var(--preview-input-bg));
    border: 1px solid var(--preview-input-border);
    border-radius: calc(var(--preview-radius) * .75);
    color: var(--preview-input-text, var(--preview-text));
    min-height: 40px;
    padding: 8px 12px;
    min-width: 0;
}

.widget-preview-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.widget-preview-chips span {
    background: var(--preview-chip-surface, var(--preview-chip-bg, rgba(255, 255, 255, .06)));
    border: 1px solid var(--preview-card-border);
    border-radius: 999px;
    color: var(--preview-chip-text, var(--preview-text));
    font-size: 10px;
    font-weight: 800;
    padding: 6px 9px;
    text-transform: uppercase;
}

.widget-preview-chips span:first-child {
    background: var(--preview-chip-active-surface, var(--preview-chip-active-bg, var(--preview-accent)));
    color: var(--preview-chip-active-text, var(--preview-button-text));
}

.widget-preview-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
}

.widget-preview-songs {
    display: grid;
    gap: 10px;
}

.widget-style-preview-surface.preview-grid-layout .widget-preview-songs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.widget-style-preview-surface.preview-list-layout .widget-preview-songs {
    grid-template-columns: 1fr;
}

.widget-preview-card {
    align-items: stretch;
    background: var(--preview-card-surface, var(--preview-card-bg));
    border: 1px solid color-mix(in srgb, var(--preview-button-bg) 42%, var(--preview-card-border));
    border-radius: 0;
    display: grid;
    gap: 18px;
    min-height: 236px;
    padding: 18px;
    position: relative;
}

.widget-style-preview-surface.preview-list-layout .widget-preview-card {
    align-items: center;
    background: var(--preview-card-surface, var(--preview-card-bg));
    border: 1px solid var(--preview-card-border);
    border-radius: var(--preview-radius);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    min-height: 0;
    padding: 14px;
}

.widget-style-preview-surface.preview-list-layout .widget-preview-card::before,
.widget-style-preview-surface.preview-list-layout .widget-preview-ribbon,
.widget-style-preview-surface.preview-list-layout .widget-preview-genre {
    display: none;
}

.widget-style-preview-surface.preview-list-layout .widget-preview-card.is-special {
    background: var(--preview-special-surface, var(--preview-special-bg, color-mix(in srgb, var(--preview-card-surface, var(--preview-card-bg)) 82%, var(--preview-accent))));
    box-shadow: inset 4px 0 0 var(--preview-special-border, var(--preview-accent)), 0 0 0 1px color-mix(in srgb, var(--preview-special-border, var(--preview-accent)) 55%, transparent);
    padding-left: 14px;
}

.widget-style-preview-surface.preview-light-theme.preview-list-layout .widget-preview-card.is-special {
    background: var(--preview-special-surface, var(--preview-special-bg, color-mix(in srgb, var(--preview-card-surface, var(--preview-card-bg)) 90%, var(--preview-accent))));
}

.widget-style-preview-surface.preview-list-layout .widget-preview-card-body {
    min-width: 0;
}

.widget-style-preview-surface.preview-list-layout .widget-preview-card-body strong {
    color: var(--preview-song-title, var(--preview-text));
    font-size: 16px;
    line-height: 1.25;
    text-transform: none;
}

.widget-style-preview-surface.preview-list-layout .widget-preview-card-body em {
    font-size: 13px;
    font-weight: 400;
}

.widget-style-preview-surface.preview-list-layout .widget-preview-card-body::after {
    border-top: 1px var(--preview-divider-style, dashed) var(--preview-divider);
    content: "";
    display: block;
    margin-top: 14px;
}

.widget-style-preview-surface.preview-list-layout .widget-preview-card-action {
    align-items: flex-end;
    flex: 0 0 auto;
}

.widget-style-preview-surface.preview-list-layout .widget-preview-card-action button {
    border: 0;
    border-radius: var(--preview-radius);
    min-width: 158px;
    width: auto;
}

.widget-preview-card.is-special {
    border-color: var(--preview-special-border, var(--preview-accent));
    background: var(--preview-special-surface, var(--preview-special-bg, var(--preview-card-surface, var(--preview-card-bg))));
    min-height: 196px;
    overflow: hidden;
    padding-left: 52px;
}

.widget-preview-card.is-special .widget-preview-card-body strong {
    color: var(--preview-special-title) !important;
}

.widget-preview-card.is-special .widget-preview-card-body em {
    color: var(--preview-special-artist) !important;
}

.widget-preview-card::before {
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 6px 6px;
    content: "";
    inset: 0;
    opacity: .18;
    pointer-events: none;
    position: absolute;
}

.widget-preview-ribbon {
    align-items: center;
    background: var(--preview-special-ribbon-bg, var(--preview-accent));
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    width: 34px;
    z-index: 1;
}

.widget-preview-ribbon span {
    color: var(--preview-special-ribbon-text, var(--preview-button-text));
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    margin: 0;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(180deg);
    white-space: nowrap;
    writing-mode: vertical-rl;
}

.widget-preview-genre {
    align-self: start;
    background: var(--preview-chip-surface, var(--preview-chip-bg, rgba(255, 255, 255, .08)));
    border: 1px solid var(--preview-card-border);
    border-radius: 999px;
    color: var(--preview-chip-text, var(--preview-text));
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    justify-self: start;
    padding: 8px 10px;
    position: relative;
    text-transform: uppercase;
    z-index: 1;
}

.widget-preview-card-body,
.widget-preview-card-action {
    position: relative;
    z-index: 1;
}

.widget-preview-card-body strong {
    color: var(--preview-song-title, var(--preview-text));
    display: block;
    font-size: 24px;
    line-height: 1.05;
    text-transform: uppercase;
}

.widget-preview-card-body em {
    color: var(--preview-song-artist, var(--preview-muted));
    display: block;
    font-style: normal;
    font-weight: 800;
    margin-top: 6px;
}

.widget-preview-card-action {
    align-items: stretch;
    display: flex;
    justify-content: end;
}

.widget-preview-card-action button,
.widget-preview-search button,
.widget-preview-cart button {
    background: var(--preview-button-surface, var(--preview-button-bg));
    border: 2px solid color-mix(in srgb, var(--preview-button-text) 78%, var(--preview-button-bg));
    border-radius: 0;
    color: var(--preview-button-text);
    display: inline-flex;
    gap: 12px;
    justify-content: space-between;
    font-weight: 800;
    min-height: 48px;
    padding: 8px 12px;
    text-transform: uppercase;
    width: 100%;
}

.widget-preview-card-action button:hover,
.widget-preview-search button:hover,
.widget-preview-cart button:hover {
    background: var(--preview-button-hover, var(--preview-button-surface, var(--preview-button-bg)));
    color: var(--preview-button-hover-text, var(--preview-button-text));
    filter: brightness(1.04);
}

.widget-preview-card-action button b {
    font-size: 24px;
    line-height: 1;
}

.widget-preview-card.is-selected {
    border-color: var(--preview-accent);
    box-shadow: inset 3px 0 0 var(--preview-accent);
}

.widget-preview-card.is-selected .widget-preview-card-action button {
    background: var(--preview-remove-surface, var(--preview-remove-bg, var(--preview-button-bg)));
    color: var(--preview-remove-text, var(--preview-button-text));
    justify-content: center;
}

/* Keep the style preview structurally aligned with the live Song Menu cards. */
.widget-preview-card {
    align-content: start;
    gap: 9px;
    grid-template-columns: minmax(0, 1fr);
    min-height: 132px;
    padding-right: 106px;
}

.widget-preview-card.is-special {
    min-height: 132px;
    padding-left: 56px;
}

.widget-preview-ribbon {
    width: 40px;
}

.widget-preview-card-action {
    display: block;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 70px;
}

.widget-preview-card-action button,
.widget-style-preview-surface.preview-list-layout .widget-preview-card-action button {
    align-items: center;
    border-radius: var(--preview-radius);
    box-sizing: border-box;
    display: flex;
    gap: 0;
    height: 42px;
    justify-content: center;
    max-height: 42px;
    max-width: 70px;
    min-height: 42px;
    min-width: 0;
    padding: 7px 9px;
    width: 70px;
}

.widget-preview-card-action button b {
    font-size: 17px;
}

.widget-style-preview-surface.preview-grid-layout .widget-preview-card-action button {
    border: 0;
}

.widget-preview-card.is-selected .widget-preview-card-action button span {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.widget-style-preview-surface.preview-list-layout .widget-preview-card {
    align-items: stretch;
    display: block;
    min-height: 76px;
    padding: 11px 92px 11px 14px;
    position: relative;
}

.widget-style-preview-surface.preview-list-layout .widget-preview-card-body::after {
    display: none;
}

.widget-style-preview-surface.preview-list-layout .widget-preview-card-action {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.widget-preview-cart {
    background: var(--preview-card-surface, color-mix(in srgb, var(--preview-card-bg) 88%, #000));
    border: 1px solid var(--preview-card-border);
    border-radius: var(--preview-radius);
    display: grid;
    gap: 10px;
    padding: 14px;
}

.widget-preview-cart strong {
    font-size: 18px;
}

.widget-preview-cart-row {
    border-top: 1px var(--preview-divider-style, dashed) var(--preview-divider);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
}

.widget-style-matcher {
    border-color: rgba(6, 182, 212, .22);
}

.widget-style-scan-form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.widget-style-scan-form label,
.widget-style-scan-form small {
    display: block;
}

.widget-style-scan-form input {
    background: var(--input-bg);
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 6px;
    color: var(--text-color);
    height: 38px;
    padding: 0 10px;
    width: 100%;
}

.widget-style-scan-form input:disabled {
    cursor: not-allowed;
    opacity: .46;
}

.widget-style-scan-form .actions {
    padding-bottom: 18px;
}

.style-recipe-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.style-recipe-card {
    display: grid;
    gap: 10px;
}

@media (max-width: 1100px) {
    .widget-style-studio {
        grid-template-columns: 1fr;
    }

    .widget-style-preview-pane {
        display: none;
        position: static;
    }

    .widget-style-workbench {
        order: 1;
    }

    .widget-style-preview-surface {
        max-height: none;
        overflow: visible;
    }

    .widget-style-preview-surface.preview-grid-layout .widget-preview-songs {
        grid-template-columns: 1fr;
    }

    .widget-style-save-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .widget-style-save-strip .actions,
    .widget-style-save-strip .inline-form,
    .widget-style-save-strip .btn {
        width: 100%;
    }

    .widget-style-studio-toolbar {
        align-items: stretch;
        position: static;
    }
}

@media (max-width: 600px) {
    .widget-style-studio-toolbar {
        flex-direction: column;
    }

    .widget-style-studio-toolbar .actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .widget-style-studio-toolbar .btn-save-action {
        grid-column: 1 / -1;
    }

    .widget-style-scan-form {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .widget-style-scan-form .actions {
        padding-bottom: 0;
    }

    .widget-style-scan-form .btn {
        width: 100%;
    }

    .subtab-btn {
        padding-left: 8px;
        padding-right: 8px;
    }

    .widget-style-preview-surface.preview-grid-layout .widget-preview-card {
        gap: 6px;
        min-height: 104px;
        padding-bottom: 12px;
        padding-top: 12px;
    }

    .widget-style-preview-surface.preview-grid-layout .widget-preview-card-action {
        right: 12px;
        top: 12px;
    }

    .widget-style-preview-surface.preview-list-layout .widget-preview-card {
        min-height: 72px;
        padding: 10px 88px 10px 12px;
    }
}

.widget-preview-modal {
    background: var(--panel);
    border: 1px solid rgba(244, 63, 94, 0.34);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
    color: var(--text);
    margin: auto;
    max-height: calc(100dvh - 32px);
    max-width: 1200px;
    overflow: hidden;
    padding: 0;
    width: calc(100% - 32px);
}

.widget-preview-modal::backdrop {
    background: rgba(2, 6, 15, 0.82);
    backdrop-filter: blur(5px);
}

.widget-preview-modal-header {
    align-items: center;
    background: var(--surface-dialog, var(--panel));
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
}

.widget-preview-modal-header .eyebrow {
    display: block;
    margin-bottom: 2px;
}

.widget-preview-modal-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.widget-preview-modal-close {
    align-items: center;
    background: var(--surface-tint);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    flex: 0 0 40px;
    font-size: 1.5rem;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.widget-preview-modal-body {
    max-height: calc(100dvh - 112px);
    overflow: auto;
    padding: 16px;
}

.widget-preview-modal .widget-style-preview {
    border: 0;
    padding: 0;
}

.widget-preview-modal .widget-style-preview-surface {
    max-height: none;
    overflow: visible;
}

.widget-preview-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0 16px;
    padding: 5px;
    border: 1px solid var(--preview-card-border, rgba(148, 163, 184, .24));
    border-radius: calc(var(--preview-radius, 12px) + 2px);
    background: color-mix(in srgb, var(--preview-card-bg, #172033) 88%, transparent);
}

.widget-preview-picker button {
    min-width: 0;
    min-height: 38px;
    border: 0;
    border-radius: var(--preview-radius, 10px);
    padding: 8px 10px;
    background: transparent;
    color: var(--preview-muted, #94a3b8);
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
}

.widget-preview-picker button.active {
    background: var(--preview-button-surface, var(--preview-accent, #f13955));
    color: var(--preview-button-text, #fff);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--preview-accent, #f13955) 22%, transparent);
}

[data-widget-preview-panel][hidden] {
    display: none !important;
}

#gigs-widget-live-preview {
    display: block;
    width: 100%;
}

.lead-widget-style-preview {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--preview-card-border, #334155);
    border-radius: calc(var(--preview-radius, 12px) + 4px);
    padding: clamp(16px, 3vw, 26px);
    background: var(--preview-bg-surface, var(--preview-bg, #0f172a));
    color: var(--preview-text, #f8fafc);
    font-family: var(--preview-font-family, Inter, sans-serif);
    font-size: var(--preview-font-size-base, 16px);
}

.lead-widget-style-preview header span {
    display: block;
    margin-bottom: 5px;
    color: var(--preview-accent, #f13955);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lead-widget-style-preview header h3 {
    margin: 0;
    color: var(--preview-text, #f8fafc);
    font-size: var(--preview-font-size-heading, 22px);
}

.lead-widget-style-preview header p {
    margin: 7px 0 0;
    color: var(--preview-muted, #94a3b8);
    line-height: 1.5;
}

.lead-widget-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.lead-widget-style-preview label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--preview-text, #f8fafc);
    font-size: .78rem;
    font-weight: 800;
}

.lead-widget-style-preview input,
.lead-widget-style-preview select,
.lead-widget-style-preview textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--preview-input-border, var(--preview-card-border, #334155));
    border-radius: var(--preview-radius, 12px);
    padding: 10px 12px;
    background: var(--preview-input-surface, var(--preview-card-surface, #172033));
    color: var(--preview-input-text, var(--preview-text, #f8fafc));
    font: inherit;
    opacity: 1;
}

.lead-widget-style-preview textarea {
    min-height: 86px;
    resize: none;
}

.lead-widget-style-preview button {
    justify-self: start;
    min-height: 42px;
    border: 0;
    border-radius: var(--preview-radius, 12px);
    padding: 9px 18px;
    background: var(--preview-button-surface, var(--preview-accent, #f13955));
    color: var(--preview-button-text, #fff);
    font: inherit;
    font-weight: 850;
}

@media (max-width: 620px) {
    .widget-preview-picker {
        overflow-x: auto;
        grid-template-columns: repeat(3, minmax(110px, 1fr));
    }

    .lead-widget-preview-grid {
        grid-template-columns: 1fr;
    }

    .lead-widget-style-preview button {
        width: 100%;
    }
}

/* Settings share one responsive layout; do not shrink text to fit desktop rows. */
.bandspace-settings { min-width: 0; }
.bandspace-settings > .card { margin-bottom: 1rem; }
.bandspace-settings .module-toolbar { flex-wrap: wrap; align-items: flex-start; gap: .75rem; margin: 0 0 1rem; }
.bandspace-settings .module-toolbar > div { min-width: 0; }
.bandspace-settings .settings-section-head > :first-child { flex: 1 1 0; }
.bandspace-settings .settings-section-head > .btn { flex: 0 0 auto; }
.bandspace-settings .widget-visual-controls-title {
    font-family: var(--font-heading); font-size: 1.2rem;
    letter-spacing: -.01em; line-height: 1.25; text-transform: none;
}
.bandspace-settings .settings-section-head p { line-height: 1.5; }
.bandspace-settings .widget-accordion-title,
.bandspace-settings .widget-accordion-title > *,
.bandspace-settings .band-owner-summary { min-width: 0; overflow-wrap: anywhere; }
.bandspace-settings .widget-accordion-title strong {
    font-size: 1rem; letter-spacing: 0; line-height: 1.35; text-transform: none;
}
.bandspace-settings .widget-accordion-title > span { line-height: 1.45; }
.bandspace-settings .user-accordion-meta { flex-wrap: wrap; justify-content: flex-end; }
.bandspace-settings .settings-accordion .widget-accordion-toggle {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
}
.bandspace-settings .calendar-status-badge { max-width: 100%; white-space: normal; }
.bandspace-settings .pagination-row { flex-wrap: wrap; gap: .5rem; }
.settings-audit-filters .music-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-audit-filters .music-filter-grid > .actions { grid-column: 1 / -1; }
.settings-audit-filters input, .settings-audit-filters select { width: 100%; min-width: 0; }
.settings-audit-desktop .audit-log-table { min-width: 850px; }
.settings-audit-desktop td:first-child { min-width: 165px; }
.settings-audit-desktop td:nth-child(2) { min-width: 150px; overflow-wrap: anywhere; }
.settings-audit-mobile { display: none; }
.settings-audit-entry {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--control-radius); overflow: hidden;
}
.settings-audit-entry > summary {
    display: grid; gap: .45rem; padding: 1rem; cursor: pointer;
    list-style: none; min-height: 44px;
}
.settings-audit-entry > summary::-webkit-details-marker { display: none; }
.settings-audit-entry > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.settings-audit-entry-title { color: var(--text); font-weight: 800; overflow-wrap: anywhere; }
.settings-audit-entry-meta { display: grid; gap: .25rem; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.settings-audit-entry-meta time { font-variant-numeric: tabular-nums; }
.settings-audit-entry-hint { color: var(--link-info); font-size: .78rem; font-weight: 800; }
.settings-audit-entry-hint::after { content: " +"; }
.settings-audit-entry[open] .settings-audit-entry-hint::after { content: " −"; }
.settings-audit-entry dl { display: grid; gap: .85rem; margin: 0; padding: 1rem; border-top: 1px solid var(--line); }
.settings-audit-entry dt { color: var(--muted); font-size: .75rem; font-weight: 800; margin-bottom: .2rem; }
.settings-audit-entry dd { margin: 0; font-size: .85rem; overflow-wrap: anywhere; }
.settings-audit-entry-details { white-space: pre-wrap; }
.settings-email-domain-form { margin-bottom: 1.5rem; align-items: end; }
.settings-email-domain-form input { width: 100%; min-width: 0; }
.settings-email-domain-form .btn { white-space: normal; }
.settings-email-domain {
    border: 1px solid var(--line); border-radius: var(--control-radius);
    padding: 1.1rem; margin-top: 1.25rem; background: var(--panel);
}
.settings-email-domain-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.settings-email-domain-head > div { min-width: 0; overflow-wrap: anywhere; }
.settings-dns-table { min-width: 800px; }
.settings-dns-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .6rem; }
.settings-dns-copy code {
    display: block; min-width: 0; max-height: 8rem; overflow: auto;
    font-size: .8rem; line-height: 1.5; white-space: pre-wrap;
    word-break: normal; overflow-wrap: anywhere;
}
.settings-dns-copy code:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.widget-style-studio > *, .widget-style-workbench, .widget-style-workbench > *,
.widget-style-studio-toolbar .actions { min-width: 0; max-width: 100%; }
.widget-style-studio-toolbar .btn { min-width: 0; white-space: normal; min-height: 44px; }
.widget-style-guide { overflow-wrap: anywhere; }
.widgets-subtabs { padding-right: 0; }

@media (max-width: 1100px) {
    .widget-style-studio { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .bandspace-settings .settings-section-head { flex-direction: column; align-items: stretch; gap: .85rem; }
    .bandspace-settings .settings-section-head > :first-child { flex-basis: auto; }
    .bandspace-settings .settings-section-head > .btn { align-self: flex-start; width: auto; min-height: 44px; }
    .bandspace-settings .band-owner-summary { align-self: flex-start; }
    .settings-audit-desktop { display: none; }
    .settings-audit-mobile { display: grid; gap: .75rem; }
    .widget-style-studio-toolbar { flex-direction: column; align-items: stretch; }
    .widget-style-studio-toolbar .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .widget-style-studio-toolbar .btn-save-action { grid-column: 1 / -1; }
    .settings-dns-wrap { overflow: visible; }
    .settings-dns-table { min-width: 0; display: block; }
    .settings-dns-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .settings-dns-table tbody { display: grid; gap: 1rem; }
    .settings-dns-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .85rem; padding: 1rem 0; border-top: 1px solid var(--line); }
    .settings-dns-table td { display: block; padding: 0; border: 0; grid-column: 1 / -1; min-width: 0; font-size: .85rem; }
    .settings-dns-table td:first-child { grid-column: 1; grid-row: 1; }
    .settings-dns-table td:last-child { grid-column: 2; grid-row: 1; }
    .settings-dns-table td::before { content: attr(data-label); display: block; margin-bottom: .35rem; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
}
@media (max-width: 640px) {
    .bandspace-settings .module-toolbar { flex-direction: column; align-items: stretch; }
    .bandspace-settings > .card { padding: 1rem; }
    .bandspace-settings .settings-section-head > .btn { align-self: stretch; width: 100%; }
    .bandspace-settings .settings-accordion .widget-accordion-toggle { position: relative; grid-template-columns: minmax(0, 1fr); gap: .65rem; }
    .bandspace-settings .settings-accordion .widget-accordion-title { padding-right: 2.5rem; }
    .bandspace-settings .settings-accordion .user-accordion-meta { flex-direction: row; justify-content: flex-start; align-items: center; }
    .bandspace-settings .settings-accordion .user-accordion-meta .widget-accordion-icon { position: absolute; right: 1rem; top: .85rem; }
    .settings-audit-filters .music-filter-grid { grid-template-columns: minmax(0, 1fr); }
    .settings-email-domain { padding: .85rem; }
    .bandspace-settings .settings-email-domain-form .btn { width: 100%; min-height: 44px; }
    .bandspace-settings .actions { min-width: 0; flex-wrap: wrap; }
    .bandspace-settings .actions > .btn { max-width: 100%; white-space: normal; }
    .widget-style-guide { padding: 1rem; }
}
