:root {
  --ink: #18212d;
  --muted: #667085;
  --navy: #102a43;
  --blue: #1261a0;
  --cream: #f5f7fa;
  --line: #d8e0e8;
  --card: #fff;
}

html { min-height: 100%; }
body { min-height: 100vh; background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.site-header { background: var(--navy); box-shadow: 0 2px 10px rgba(16, 42, 67, .16); }
.navbar { min-height: 64px; }
.navbar-brand { font-size: 1.3rem; font-weight: 800; letter-spacing: .03em; }
.navbar-brand span { color: #68c3ff; }
.navbar .nav-link { color: rgba(255,255,255,.8); }
.navbar .nav-link:hover { color: white; }
.page-shell { padding-top: 2.5rem; padding-bottom: 3rem; }
.site-footer { margin-top: auto; padding: 1rem 0 2rem; color: var(--muted); font-size: .875rem; }
.hero-panel { background: linear-gradient(135deg, #102a43, #1261a0); color: white; padding: 2.4rem; border-radius: 1rem; display: flex; justify-content: space-between; gap: 2rem; align-items: start; margin-bottom: 1.5rem; }
.hero-panel h1, .page-heading h1 { font-weight: 800; letter-spacing: -.03em; }
.week-status { border: 1px solid rgba(255,255,255,.28); border-radius: .75rem; padding: .75rem 1rem; min-width: 120px; text-align: center; background: rgba(255,255,255,.08); }
.week-status span { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.week-status strong { font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .11em; font-size: .73rem; font-weight: 700; color: #3776a8; margin-bottom: .4rem; }
.hero-panel .eyebrow { color: #9ed8ff; }
.app-card { border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 2px 10px rgba(16, 42, 67, .06); overflow: hidden; }
.app-card .card-body { padding: 1.4rem; }
.empty-state { background: var(--card); border: 1px dashed #b9c7d6; border-radius: .9rem; padding: 3rem 1.5rem; text-align: center; }
.page-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1.5rem; }
.page-heading h1 { margin-bottom: .35rem; }
.admin-week-page { max-width: 100%; }
.week-bid-close-form { display: flex; align-items: center; gap: .45rem; }
.week-bid-close-form .form-control { width: 13rem; }
.auth-card { width: min(100%, 450px); margin: 4rem auto; padding: 2rem; background: white; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 8px 30px rgba(16,42,67,.10); }
.auth-card h1 { font-weight: 800; margin-bottom: .5rem; }
.table > :not(caption) > * > * { padding: .85rem .9rem; }
.table thead th { white-space: nowrap; color: #46566b; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; background: #f8fafc; }
.table-responsive { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: auto; }
.table-responsive.app-card { overflow-x: auto; overflow-y: hidden; }
.table-responsive > .table { min-width: 42rem; }
.table-responsive > .standings-table { min-width: 47rem; }
.table-responsive > .results-table { min-width: 52rem; }
.table-responsive::-webkit-scrollbar { height: .7rem; }
.table-responsive::-webkit-scrollbar-thumb { background: #9aa9b8; border: 2px solid var(--cream); border-radius: 999px; }
.owners-table { min-width: 68rem; }
.owners-table th, .owners-table td { white-space: nowrap; }
.owner-email-input { width: 15rem; }
.owner-priority-input { width: 4.5rem; }
.player-picker-table > :not(caption) > * > * { padding-top: .45rem; padding-bottom: .45rem; }
.player-picker-table tbody tr { line-height: 1.2; }
.schedule-table > :not(caption) > * > * { padding: .55rem .6rem; }
.schedule-table { width: max-content; min-width: 100%; }
.schedule-deadline-input { width: 12.5rem; min-width: 12.5rem; }
.standings-table > :not(caption) > * > * { padding: .28rem .4rem; }
.owners-table > :not(caption) > * > * { padding: .35rem .4rem; }
#player-picker.is-loading { opacity: .55; pointer-events: none; }
.results-table .candidate-active { background: #effaf3; }
.results-table .candidate-claimed { background: #eef6ff; }
.deadline { white-space: nowrap; }
.badge { font-size: .68rem; vertical-align: middle; }
.current-bid-actions, .current-bid-form { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.current-bid-form { margin: 0; }
.bid-amount-input { width: 7.5rem; }
.bid-row-status { margin-top: .25rem; min-height: 1.1em; }
.my-bid-mobile-meta { display: none; }
.my-bids-table > :not(caption) > * > * { padding: .85rem .9rem; }
.table-responsive > .my-bids-table { min-width: 38rem; }

@media (max-width: 767.98px) {
  .table-responsive > .my-bids-table { min-width: 0; }
  .my-bids-table, .my-bids-table tbody, .my-bids-table tr, .my-bids-table td { display: block; width: 100%; }
  .my-bids-table thead, .my-bids-table .my-bid-desktop-meta { display: none; }
  .my-bids-table tr + tr { border-top: 1px solid var(--line); }
  .my-bids-table > tbody > tr > td { border: 0; padding: .9rem; }
  .my-bids-table > tbody > tr > td:last-child { padding-top: 0; }
  .my-bid-mobile-meta { display: block; }
  .current-bid-actions .btn { min-height: 44px; }
  .current-bid-form input[name="amount"] { min-height: 42px; font-size: 1rem; }
}

@media (max-width: 767.98px) {
  .page-shell { padding-top: 1.25rem; }
  .hero-panel { padding: 1.5rem; flex-direction: column; }
  .page-heading { flex-direction: column; }
  .week-bid-close-form { width: 100%; }
  .week-bid-close-form .form-control { flex: 1 1 14rem; width: auto; }
  .navbar-text { align-items: flex-start !important; flex-direction: column; gap: .5rem !important; margin-top: 1rem; }
}
