/* --- Theme variables --- */
:root {
    color-scheme: light dark;

    --bg: #f5f7fa;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --text-secondary: #374151;
    --card-bg: white;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --border: #d1d5db;
    --border-light: #f3f4f6;
    --border-medium: #e5e7eb;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --input-bg: white;
    --btn-hover-bg: #f3f4f6;
    --win: #16a34a;
    --loss: #dc2626;
    --live: #dc2626;
}

[data-theme="dark"] {
    --bg: #111827;
    --text: #f3f4f6;
    --text-muted: #9ca3af;
    --text-secondary: #d1d5db;
    --card-bg: #1f2937;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
    --border: #374151;
    --border-light: #2d3748;
    --border-medium: #374151;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --input-bg: #1f2937;
    --btn-hover-bg: #374151;
    --win: #4ade80;
    --loss: #f87171;
    --live: #f87171;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

.view {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

/* Home View */
.home-header {
    text-align: center;
    padding: 15vh 0 2rem;
}

.home-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Search */
.search-container {
    max-width: 500px;
    margin: 0 auto;
}

#search-form {
    display: flex;
    gap: 0.5rem;
}

#search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: var(--input-bg);
    color: var(--text);
    transition: border-color 0.2s;
}

#search-input:focus {
    border-color: var(--accent);
}

#search-form button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

#search-form button:hover {
    background: var(--accent-hover);
}

.error {
    color: #dc2626;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* League quick buttons */
#league-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.league-btn {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: background 0.2s, border-color 0.2s;
}

.league-btn:hover {
    background: var(--btn-hover-bg);
    border-color: var(--accent);
}

/* Sports View */
.sports-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.sports-toggles {
    margin-left: auto;
    display: flex;
    gap: 0.25rem;
}

.toggle-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    transition: background 0.2s;
}

.toggle-btn:hover {
    background: var(--btn-hover-bg);
}

#back-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#back-btn:hover {
    background: var(--btn-hover-bg);
}

/* Sports content — two column layout */
.columns-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.sports-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sports-col > section {
    width: 100%;
}

/* Sections */
section {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    transition: background 0.3s;
    min-width: 0;
}

section h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* Section controls (drag handle + minimize) */
.section-controls {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 0.3rem;
    z-index: 5;
    padding: 0.5rem;
}

.section-controls button,
.section-controls span {
    opacity: 0.5;
}

.section-controls button:hover,
.section-controls span:hover {
    opacity: 1;
}

.section-drag-handle {
    cursor: grab;
    font-size: 1rem;
    color: var(--text-muted);
    user-select: none;
    touch-action: none;
    padding: 0.1rem 0.3rem;
}

.section-drag-handle:active {
    cursor: grabbing;
}

.section-min-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    padding: 0.1rem 0.3rem;
    line-height: 1;
}

.section-min-btn:hover {
    color: var(--text);
}

/* Minimized section */
.section-minimized > *:not(.section-controls) {
    display: none !important;
}

.section-minimized {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    min-height: 0;
}

.section-minimized::after {
    content: attr(data-section-name);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Drag placeholder */
.drag-placeholder {
    background: var(--border-light);
    border: 2px dashed var(--border);
    border-radius: 12px;
    min-height: 60px;
}

.section-dragging {
    opacity: 0.85;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border-radius: 12px;
}

body.is-dragging .sports-col {
    min-height: 80px;
}

body.is-dragging .sports-col:empty {
    border: 2px dashed var(--border);
    border-radius: 12px;
    opacity: 0.5;
}

/* Layout locked */
body.layout-locked .section-controls {
    display: none !important;
}

/* Hidden sections bar */
#hidden-sections-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.show-section-btn {
    background: var(--card-bg);
    border: 1px dashed var(--border);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s;
}

.show-section-btn:hover {
    background: var(--btn-hover-bg);
    color: var(--text);
}

/* --- Game cards --- */
.game-card {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.game-card:last-child {
    border-bottom: none;
}

.game-teams {
    flex: 1;
}

.game-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.15rem 0;
}

.team-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.team-name.winner {
    font-weight: 700;
}

.game-score {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 2rem;
    text-align: center;
}

.game-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    min-width: 5rem;
}

.game-status.live {
    color: var(--live);
    font-weight: 600;
}

/* Standings table */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.standings-table th {
    text-align: left;
    padding: 0.5rem 0.5rem;
    border-bottom: 2px solid var(--border-medium);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.standings-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

/* Restore defaults button */
#restore-defaults {
    position: fixed;
    bottom: 1.5rem;
    left: 4.5rem;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: background 0.2s, color 0.3s;
}

#restore-defaults:hover {
    background: var(--btn-hover-bg);
}

/* Theme toggle */
#theme-toggle {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: background 0.2s;
}

#theme-toggle:hover {
    background: var(--btn-hover-bg);
}

/* Privacy */
.privacy-link {
    display: block;
    margin: 0 auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-link:hover {
    color: var(--text);
}

.privacy-link-fixed {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.bottom-spacer {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#privacy-panel {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: 90%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1001;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text);
}

#privacy-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0.25rem;
}

#privacy-close:hover {
    color: var(--text);
}

#privacy-panel p { margin-bottom: 0.75rem; }
#privacy-panel ul { margin: 0 0 0.75rem 1.25rem; }
#privacy-panel li { margin-bottom: 0.25rem; }

/* Floating donate button */
#donate-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #ff5e5b;
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.2s;
    z-index: 1000;
}

#donate-btn:hover {
    background: #e04e4b;
    transform: translateY(-1px);
}

/* Loading state */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* =============================================================================
   Dashboard, Tabs, Modal, Team Cards (V1)
   ============================================================================= */

/* --- Tab Bar --- */
.tab-bar {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-bar::-webkit-scrollbar { display: none; }

.tab-pill {
    flex-shrink: 0;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tab-pill:hover {
    border-color: var(--accent);
}

.tab-pill.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* --- Empty State --- */
.empty-state {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.headlines-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    text-align: left;
}

.headlines-box h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.headlines-box .headline-link {
    display: block;
    padding: 0.4rem 0;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.headlines-box .headline-link:last-child { border-bottom: none; }
.headlines-box .headline-link:hover { text-decoration: underline; }

.text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Add Team button (empty state) */
.add-team-btn {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1.5rem;
}

.add-team-btn:hover {
    background: var(--accent-hover);
}

/* League quick picks (empty state) */
.league-quick-picks {
    margin-bottom: 2rem;
}

.league-quick-picks h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.league-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* --- Dashboard & Team Cards --- */
.dashboard {
    padding-bottom: 5rem;
}

.team-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.team-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    width: calc(50% - 0.5rem);
    min-width: 280px;
    transition: box-shadow 0.2s;
}

.team-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.team-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.team-card-badge {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
    background: var(--border-light);
}

.team-card-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.team-card-info .team-card-league {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.team-card-data {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.team-card-data .game-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-light);
}

.team-card-data .game-row:last-child { border-bottom: none; }

.team-card-standings {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.team-card-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    padding: 0.25rem;
    line-height: 1;
}

.team-card:hover .team-card-remove { opacity: 1; }
.team-card-remove:hover { color: var(--loss); }

/* Live pulse */
.team-card-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--live);
}

.team-card-live::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live);
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* API placeholder on cards */
.team-card-placeholder {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 0.75rem 0;
}

/* --- Floating Add Team FAB --- */
.add-team-fab {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1.6rem;
    font-weight: 300;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 1000;
}

.add-team-fab:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    color: var(--text);
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0.25rem;
}

.modal-close:hover { color: var(--text); }

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Modal search */
.modal-search {
    position: relative;
    margin-bottom: 1.25rem;
}

.modal-search input {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.modal-search input:focus {
    border-color: var(--accent);
}

/* Search results dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover {
    background: var(--btn-hover-bg);
}

.search-result-badge {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: contain;
    background: var(--border-light);
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.search-result-league {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-results .search-loading,
.search-results .search-no-results {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* Browse sections */
.modal-browse h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.browse-league-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.browse-league-btn {
    padding: 0.45rem 0.85rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    transition: background 0.2s, border-color 0.2s;
}

.browse-league-btn:hover {
    background: var(--btn-hover-bg);
    border-color: var(--accent);
}

.browse-league-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.browse-team-list {
    max-height: 300px;
    overflow-y: auto;
}

.browse-team-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.5rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    border-radius: 6px;
    transition: background 0.15s;
}

.browse-team-item:hover {
    background: var(--btn-hover-bg);
}

.browse-team-badge {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    background: var(--border-light);
    flex-shrink: 0;
}

.browse-team-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.browse-team-list .browse-loading,
.browse-team-list .browse-message {
    padding: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* Team config */
.team-config {
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.team-config-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.team-config-header img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
    background: var(--border-light);
}

.team-config-header .config-team-name {
    font-size: 1rem;
    font-weight: 700;
}

.team-config-header .config-team-league {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.team-config h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0.75rem 0 0.5rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-group .new-tab-input {
    flex: 1;
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text);
    outline: none;
}

.checkbox-group .new-tab-input:focus {
    border-color: var(--accent);
}

.team-config .add-team-btn {
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .home-header {
        padding: 6vh 0 1.5rem;
    }

    .home-header h1 {
        font-size: 2rem;
    }

    /* Team cards go full width on mobile */
    .team-card {
        width: 100%;
        min-width: 0;
    }

    /* Modal slides up from bottom on mobile */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-card {
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
        max-width: 100%;
    }

    .section-controls {
        opacity: 1;
    }

    .section-drag-handle {
        display: none;
    }

    /* Touch: always show remove button on mobile */
    .team-card-remove {
        opacity: 0.6;
    }
}
