/*
 * TicketMaster design system
 * ---------------------------------------------------------------
 * Single source of truth for colors, typography, spacing and the
 * shared component look (buttons, forms, tables, alerts, cards...).
 * Loaded after Bootstrap and the page stylesheets so that these
 * rules win. Page-specific styles should consume the tokens below
 * instead of hard-coding colors or sizes.
 */

:root {
    /* Brand and actions */
    --tm-primary: #1e5aa8;
    --tm-primary-hover: #184a8c;
    --tm-primary-active: #133b71;
    --tm-primary-soft: #e8f0fa;
    --tm-primary-ring: rgba(30, 90, 168, 0.25);

    /* Surfaces and borders */
    --tm-bg: #f3f5f8;
    --tm-surface: #ffffff;
    --tm-surface-muted: #f8fafc;
    --tm-surface-hover: #f1f5f9;
    --tm-border: #dfe4ea;
    --tm-border-strong: #c3ccd7;

    /* Text */
    --tm-text: #1f2933;
    --tm-text-muted: #5b6776;
    --tm-text-subtle: #8a94a3;

    /* Status */
    --tm-success: #1e7a4c;
    --tm-success-bg: #e8f5ee;
    --tm-warning: #8a5300;
    --tm-warning-bg: #fdf3e1;
    --tm-danger: #b42318;
    --tm-danger-bg: #fdecea;
    --tm-info: #0b6bcb;
    --tm-info-bg: #e7f1fc;

    /* Disabled */
    --tm-disabled-bg: #eef1f4;
    --tm-disabled-text: #9aa4b1;
    --tm-disabled-border: #dfe4ea;

    /* Shell */
    --tm-sidebar-bg: #1a2332;
    --tm-sidebar-group-text: #6f7d91;
    --tm-sidebar-text: #b4bfcd;
    --tm-sidebar-hover: rgba(255, 255, 255, 0.06);
    --tm-sidebar-active-bg: rgba(59, 130, 246, 0.16);
    --tm-sidebar-accent: #3b82f6;
    --tm-topbar-height: 52px;

    /* Typography */
    --tm-font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --tm-font-size-xs: 0.75rem;
    --tm-font-size-sm: 0.8125rem;
    --tm-font-size-base: 0.875rem;
    --tm-font-size-lg: 1rem;
    --tm-font-size-xl: 1.25rem;
    --tm-line-height: 1.5;

    /* Spacing scale (4px base) */
    --tm-space-1: 0.25rem;
    --tm-space-2: 0.5rem;
    --tm-space-3: 0.75rem;
    --tm-space-4: 1rem;
    --tm-space-5: 1.25rem;
    --tm-space-6: 1.5rem;

    /* Shape and elevation */
    --tm-radius: 4px;
    --tm-radius-lg: 6px;
    --tm-control-height: 36px;
    --tm-control-height-sm: 30px;
    --tm-shadow-overlay: 0 8px 24px rgba(15, 23, 42, 0.16);

    /* Bootstrap variables used by generic components */
    --bs-body-font-family: var(--tm-font-family);
    --bs-body-font-size: var(--tm-font-size-base);
    --bs-body-color: var(--tm-text);
    --bs-body-bg: var(--tm-bg);
    --bs-border-color: var(--tm-border);
    --bs-link-color: var(--tm-primary);
    --bs-link-hover-color: var(--tm-primary-hover);
}

/* ---------- Base ---------- */

html {
    font-size: 16px;
}

body {
    font-family: var(--tm-font-family);
    font-size: var(--tm-font-size-base);
    line-height: var(--tm-line-height);
    color: var(--tm-text);
    background-color: var(--tm-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--tm-text);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 1.5rem; }
h2 { font-size: var(--tm-font-size-xl); }
h3 { font-size: 1.0625rem; }
h4 { font-size: var(--tm-font-size-lg); }
h5 { font-size: var(--tm-font-size-base); }
h6 { font-size: var(--tm-font-size-sm); }

a {
    color: var(--tm-primary);
    text-decoration: none;
}

a:hover {
    color: var(--tm-primary-hover);
}

:focus-visible {
    outline: 2px solid var(--tm-primary-ring);
    outline-offset: 2px;
}

small,
.small {
    font-size: var(--tm-font-size-sm);
}

/* ---------- Page layout ---------- */

/* Page-level header: title on the left, primary actions on the right. */
.tm-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--tm-space-3) var(--tm-space-4);
    margin-bottom: var(--tm-space-5);
}

.tm-page-header h1,
.tm-page-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--tm-space-2);
}

.tm-page-description {
    margin: var(--tm-space-1) 0 0;
    color: var(--tm-text-muted);
    font-size: var(--tm-font-size-sm);
}

.tm-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--tm-space-2);
}

/* Section heading inside a page or card. */
.tm-section-title {
    margin: 0 0 var(--tm-space-3);
    font-size: var(--tm-font-size-lg);
    font-weight: 600;
}

/* Toolbar of filters and search above a table. */
.tm-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--tm-space-2);
    padding: var(--tm-space-3);
    border-bottom: 1px solid var(--tm-border);
}

.tm-empty-state {
    padding: var(--tm-space-6) var(--tm-space-4);
    text-align: center;
    color: var(--tm-text-muted);
}

.tm-empty-state .fa-3x {
    color: var(--tm-text-subtle);
    margin-bottom: var(--tm-space-3);
}

.tm-empty-state h4 {
    margin-bottom: var(--tm-space-1);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--tm-space-1);
    min-height: var(--tm-control-height);
    padding: 0.375rem 0.875rem;
    font-size: var(--tm-font-size-base);
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid transparent;
    border-radius: var(--tm-radius);
    box-shadow: none;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:focus,
.btn:active:focus {
    box-shadow: 0 0 0 3px var(--tm-primary-ring);
}

.btn-sm {
    min-height: var(--tm-control-height-sm);
    padding: 0.25rem 0.625rem;
    font-size: var(--tm-font-size-sm);
    border-radius: var(--tm-radius);
}

.btn-lg {
    min-height: 42px;
    padding: 0.5rem 1.25rem;
    font-size: var(--tm-font-size-lg);
}

.btn-primary {
    --bs-btn-color: #fff;
    color: #fff;
    background-color: var(--tm-primary);
    border-color: var(--tm-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background-color: var(--tm-primary-hover);
    border-color: var(--tm-primary-hover);
}

.btn-primary:active,
.btn-primary.active {
    color: #fff;
    background-color: var(--tm-primary-active);
    border-color: var(--tm-primary-active);
}

.btn-outline-primary {
    color: var(--tm-primary);
    background-color: var(--tm-surface);
    border-color: var(--tm-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: var(--tm-primary-hover);
    background-color: var(--tm-primary-soft);
    border-color: var(--tm-primary-hover);
}

/* Secondary actions are neutral and bordered, never filled. */
.btn-secondary,
.btn-outline-secondary {
    color: var(--tm-text);
    background-color: var(--tm-surface);
    border-color: var(--tm-border-strong);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    color: var(--tm-text);
    background-color: var(--tm-surface-hover);
    border-color: var(--tm-text-subtle);
}

.btn-light {
    color: var(--tm-text);
    background-color: var(--tm-surface-muted);
    border-color: var(--tm-border);
}

.btn-light:hover,
.btn-light:focus {
    color: var(--tm-text);
    background-color: var(--tm-surface-hover);
    border-color: var(--tm-border-strong);
}

/* Destructive actions: solid for confirmation dialogs, outline elsewhere. */
.btn-danger {
    color: #fff;
    background-color: var(--tm-danger);
    border-color: var(--tm-danger);
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    color: #fff;
    background-color: #951b13;
    border-color: #951b13;
}

.btn-outline-danger {
    color: var(--tm-danger);
    background-color: var(--tm-surface);
    border-color: var(--tm-danger);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active {
    color: var(--tm-danger);
    background-color: var(--tm-danger-bg);
    border-color: var(--tm-danger);
}

.btn-outline-warning {
    color: var(--tm-warning);
    background-color: var(--tm-surface);
    border-color: var(--tm-warning);
}

.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active {
    color: var(--tm-warning);
    background-color: var(--tm-warning-bg);
    border-color: var(--tm-warning);
}

.btn-outline-info {
    color: var(--tm-info);
    background-color: var(--tm-surface);
    border-color: var(--tm-info);
}

.btn-outline-info:hover,
.btn-outline-info:focus,
.btn-outline-info:active {
    color: var(--tm-info);
    background-color: var(--tm-info-bg);
    border-color: var(--tm-info);
}

.btn-outline-success {
    color: var(--tm-success);
    background-color: var(--tm-surface);
    border-color: var(--tm-success);
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
    color: var(--tm-success);
    background-color: var(--tm-success-bg);
    border-color: var(--tm-success);
}

.btn-link {
    color: var(--tm-primary);
    text-decoration: none;
}

.btn-link:hover {
    color: var(--tm-primary-hover);
    text-decoration: underline;
}

.btn:disabled,
.btn.disabled,
.btn[disabled] {
    color: var(--tm-disabled-text);
    background-color: var(--tm-disabled-bg);
    border-color: var(--tm-disabled-border);
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-group .btn + .btn {
    margin-left: -1px;
}

/* Legacy invitation buttons keep their size and weight but use the shared palette. */
.btn-generate,
.btn-download,
.btn-view {
    min-width: 200px;
}

/* ---------- Forms ---------- */

.form-label {
    margin-bottom: var(--tm-space-1);
    font-size: var(--tm-font-size-sm);
    font-weight: 500;
    color: var(--tm-text);
}

/* Append a required marker to labels of mandatory fields: class="form-label required". */
.form-label.required::after {
    content: " *";
    color: var(--tm-danger);
}

.form-control,
.form-select {
    min-height: var(--tm-control-height);
    padding: 0.375rem 0.75rem;
    font-size: var(--tm-font-size-base);
    color: var(--tm-text);
    background-color: var(--tm-surface);
    border: 1px solid var(--tm-border-strong);
    border-radius: var(--tm-radius);
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder {
    color: var(--tm-text-subtle);
    opacity: 1;
}

.form-control:focus,
.form-select:focus {
    color: var(--tm-text);
    background-color: var(--tm-surface);
    border-color: var(--tm-primary);
    box-shadow: 0 0 0 3px var(--tm-primary-ring);
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
    color: var(--tm-text-muted);
    background-color: var(--tm-surface-muted);
    border-color: var(--tm-border);
}

textarea.form-control {
    min-height: 88px;
}

.form-control-sm,
.form-select-sm {
    min-height: var(--tm-control-height-sm);
    padding: 0.25rem 0.5rem;
    font-size: var(--tm-font-size-sm);
}

.form-control.is-invalid,
.form-select.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--tm-danger);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.2);
}

.invalid-feedback,
.field-validation-error {
    display: block;
    margin-top: var(--tm-space-1);
    font-size: var(--tm-font-size-sm);
    color: var(--tm-danger);
}

.form-text,
.form-group small.text-muted {
    margin-top: var(--tm-space-1);
    font-size: var(--tm-font-size-sm);
    color: var(--tm-text-muted);
}

.input-group-text {
    font-size: var(--tm-font-size-base);
    color: var(--tm-text-muted);
    background-color: var(--tm-surface-muted);
    border-color: var(--tm-border-strong);
}

.form-check-input:checked {
    background-color: var(--tm-primary);
    border-color: var(--tm-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px var(--tm-primary-ring);
}

.form-check-label {
    font-size: var(--tm-font-size-base);
}

/* ---------- Tables ---------- */

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
    font-size: var(--tm-font-size-base);
    color: var(--tm-text);
    border-color: var(--tm-border);
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    padding: 0.5625rem 0.75rem;
    background-color: transparent;
    border-bottom-color: var(--tm-border);
    box-shadow: none;
}

.table > thead > tr > th {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: var(--tm-font-size-xs);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--tm-text-muted);
    white-space: nowrap;
    background-color: var(--tm-surface-muted);
    border-bottom: 1px solid var(--tm-border-strong);
    vertical-align: middle;
}

.table-light,
.table > thead.table-light > tr > th {
    --bs-table-bg: var(--tm-surface-muted);
    color: var(--tm-text-muted);
}

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: var(--tm-surface-hover);
    color: var(--tm-text);
}

.table > tbody > tr:last-child > * {
    border-bottom-color: var(--tm-border);
}

.table-secondary,
.table-secondary > th,
.table-secondary > td {
    --bs-table-bg: var(--tm-surface-muted);
    color: var(--tm-text-muted);
}

.table-responsive {
    border-radius: var(--tm-radius-lg);
}

/* Tables inside cards sit flush with the card edges. */
.card > .table-responsive > .table {
    border-radius: 0;
}

/* ---------- Cards and panels ---------- */

.card {
    background-color: var(--tm-surface);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    box-shadow: none;
}

.card-header {
    padding: 0.625rem var(--tm-space-4);
    font-size: var(--tm-font-size-base);
    font-weight: 600;
    background-color: var(--tm-surface-muted);
    border-bottom: 1px solid var(--tm-border);
}

.card-body {
    padding: var(--tm-space-4);
}

.card-footer {
    padding: 0.625rem var(--tm-space-4);
    background-color: var(--tm-surface-muted);
    border-top: 1px solid var(--tm-border);
}

/* ---------- Badges ---------- */

.badge {
    padding: 0.2em 0.55em;
    font-size: var(--tm-font-size-xs);
    font-weight: 500;
    line-height: 1.4;
    border-radius: 3px;
}

/* ---------- Alerts ---------- */

.alert {
    padding: 0.625rem 0.875rem;
    margin-bottom: var(--tm-space-4);
    font-size: var(--tm-font-size-base);
    border-radius: var(--tm-radius);
}

.alert-success {
    color: var(--tm-success);
    background-color: var(--tm-success-bg);
    border-color: #bfe3cf;
}

.alert-danger {
    color: var(--tm-danger);
    background-color: var(--tm-danger-bg);
    border-color: #f5c2bd;
}

.alert-warning {
    color: var(--tm-warning);
    background-color: var(--tm-warning-bg);
    border-color: #f3d9a4;
}

.alert-info {
    color: var(--tm-info);
    background-color: var(--tm-info-bg);
    border-color: #bcd7f5;
}

.alert .btn-close {
    padding: 0.5rem;
}

/* ---------- Navigation ---------- */

.nav-tabs {
    border-bottom: 1px solid var(--tm-border-strong);
}

.nav-tabs .nav-link {
    padding: 0.5rem 0.875rem;
    font-weight: 500;
    color: var(--tm-text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    color: var(--tm-text);
    border-color: transparent transparent var(--tm-border-strong);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--tm-primary);
    background: transparent;
    border-color: transparent transparent var(--tm-primary);
}

.breadcrumb {
    margin-bottom: 0;
    font-size: var(--tm-font-size-sm);
}

.breadcrumb-item,
.breadcrumb-item a {
    color: var(--tm-text-muted);
}

.breadcrumb-item.active {
    color: var(--tm-text);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--tm-text-subtle);
}

.pagination {
    font-size: var(--tm-font-size-sm);
    gap: 2px;
}

.page-link {
    color: var(--tm-primary);
    background-color: var(--tm-surface);
    border-color: var(--tm-border-strong);
}

.page-link:hover {
    color: var(--tm-primary-hover);
    background-color: var(--tm-primary-soft);
    border-color: var(--tm-border-strong);
}

.page-item.active .page-link {
    color: #fff;
    background-color: var(--tm-primary);
    border-color: var(--tm-primary);
}

.page-item.disabled .page-link {
    color: var(--tm-disabled-text);
    background-color: var(--tm-surface-muted);
}

/* ---------- Dropdowns, modals, tooltips ---------- */

.dropdown-menu {
    padding: var(--tm-space-1) 0;
    font-size: var(--tm-font-size-base);
    background-color: var(--tm-surface);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    box-shadow: var(--tm-shadow-overlay);
}

.dropdown-item {
    padding: 0.375rem 0.875rem;
    color: var(--tm-text);
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--tm-text);
    background-color: var(--tm-surface-hover);
}

.dropdown-item.text-danger:hover,
.dropdown-item.text-danger:focus {
    color: var(--tm-danger);
    background-color: var(--tm-danger-bg);
}

.dropdown-divider {
    margin: var(--tm-space-1) 0;
    border-top-color: var(--tm-border);
}

.modal-content {
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    box-shadow: var(--tm-shadow-overlay);
}

.modal-header,
.modal-footer {
    padding: var(--tm-space-3) var(--tm-space-4);
    border-color: var(--tm-border);
}

.modal-body {
    padding: var(--tm-space-4);
}

.modal-title {
    font-size: var(--tm-font-size-lg);
    font-weight: 600;
}

.tooltip-inner {
    font-size: var(--tm-font-size-sm);
    border-radius: var(--tm-radius);
}

/* ---------- Sign-in page ---------- */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--tm-space-5) var(--tm-space-4);
}

.login-card {
    width: 100%;
    max-width: 380px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
}

.login-card .card-body {
    padding: var(--tm-space-6);
}

.login-heading {
    margin-bottom: var(--tm-space-5);
    text-align: center;
}

.login-heading h2 {
    margin: var(--tm-space-2) 0 0;
    font-size: var(--tm-font-size-xl);
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--tm-radius-lg);
    background: var(--tm-primary);
    color: #fff;
    font-size: var(--tm-font-size-lg);
}

/* ---------- Legacy invitation-family pages ----------
 * Lists and forms built on .invitation-container adopt the same
 * flat, left-aligned page frame as the admin pages. */

.invitation-container {
    max-width: none;
    margin: 0;
    padding: 0;
    font-family: var(--tm-font-family);
}

.header-section {
    margin: 0 0 var(--tm-space-4);
    padding: 0;
    text-align: left;
    border-bottom: none;
}

.header-section .btn {
    margin-top: var(--tm-space-3);
}

.page-title {
    display: flex;
    align-items: center;
    gap: var(--tm-space-2);
    margin: 0;
    font-size: var(--tm-font-size-xl);
    font-weight: 600;
    color: var(--tm-text);
    text-shadow: none;
}

.page-subtitle {
    margin: var(--tm-space-1) 0 0;
    font-size: var(--tm-font-size-sm);
    font-weight: 400;
    color: var(--tm-text-muted);
}

.invitation-form {
    padding: var(--tm-space-4);
    background: var(--tm-surface);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    box-shadow: none;
}

.form-section {
    margin-bottom: var(--tm-space-5);
    padding-bottom: var(--tm-space-4);
    border-bottom: 1px solid var(--tm-border);
}

.section-title {
    margin-bottom: var(--tm-space-3);
    padding-left: 0;
    font-size: var(--tm-font-size-lg);
    font-weight: 600;
    color: var(--tm-text);
    border-left: none;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--tm-space-3);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--tm-space-3);
    padding: var(--tm-space-3) var(--tm-space-4);
    background: var(--tm-surface);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    box-shadow: none;
}

.stat-card:hover {
    transform: none;
    box-shadow: none;
}

/* Legacy table header bar used by invitation-family tables. */
.table-header {
    background: var(--tm-surface-muted);
    color: var(--tm-text-muted);
    border-bottom: 1px solid var(--tm-border-strong);
}

.table-header th {
    padding: 0.5rem 0.75rem;
    font-size: var(--tm-font-size-xs);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--tm-text-muted);
}

/* Compact action buttons in tables. */
.btn-small {
    min-height: var(--tm-control-height-sm);
    padding: 0.25rem 0.625rem;
    font-size: var(--tm-font-size-sm);
    font-weight: 500;
    border-radius: var(--tm-radius);
}

.btn-disabled {
    color: var(--tm-disabled-text);
    background-color: var(--tm-disabled-bg);
    border-color: var(--tm-disabled-border);
    cursor: not-allowed;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: var(--tm-radius);
    background: var(--tm-primary-soft);
    background-image: none;
    color: var(--tm-primary);
}

.stat-card,
.stat-card .stat-number,
.stat-card .stat-label {
    color: var(--tm-text);
}

.stat-number {
    margin: 0;
    font-size: var(--tm-font-size-xl);
    font-weight: 600;
    color: var(--tm-text);
}

.stat-label {
    margin: 0;
    font-size: var(--tm-font-size-sm);
    color: var(--tm-text-muted);
}

/* ---------- Responsive helpers ---------- */

@media (max-width: 767.98px) {
    .tm-page-header {
        flex-direction: column;
    }

    .tm-page-actions {
        width: 100%;
    }

    .tm-page-actions .btn {
        flex: 1 1 auto;
    }

    .btn {
        white-space: normal;
    }

    /* Touch targets: keep controls at least 40px tall on phones. */
    .btn:not(.btn-sm),
    .form-control,
    .form-select {
        min-height: 40px;
    }
}
