/* SilVer brand tokens — sampled from the SilVer / SilVer Support lockups */
:root {
  --navy-900: #0a1d40;   /* wordmark */
  --navy-800: #12306a;   /* mark, dark half */
  --navy-700: #1a4789;   /* mark, light half */
  --sky-400:  #55bbe8;   /* "Support" / mark accent */
  --sky-100:  #e4f4fc;
  --ink:      #0a1d40;
  --ink-soft: #4a5a78;
  --line:     #dfe6f0;
  --paper:    #f5f8fc;
  --card:     #ffffff;
  --danger:   #c2362f;

  --grad-mark: linear-gradient(90deg, var(--navy-800), var(--navy-700));
  --font-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "DM Mono", "Cascadia Mono", Consolas, monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 29, 64, .06), 0 8px 24px rgba(10, 29, 64, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--navy-700); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }

.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky-400);
}

/* ---------- brand lockup: mark + SilVer, sub-brand in sky mono ---------- */
.lockup { display: inline-flex; flex-direction: column; width: max-content; align-self: flex-start; text-decoration: none; }
.lockup img { display: block; height: 100%; width: auto; }
.lockup .sub {
  font-family: var(--font-mono);
  color: var(--sky-400);
  line-height: 1;
  /* aligns under the "S" of SilVer, like the Support lockup */
  padding-left: 31.5%;
}
.lockup--sm .top { height: 30px; }
.lockup--sm .sub { font-size: 15px; margin-top: 4px; }
.lockup--lg .top { height: clamp(56px, 9vw, 104px); }
.lockup--lg .sub { font-size: clamp(26px, 4.3vw, 50px); margin-top: .18em; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .95rem/1 var(--font-sans);
  padding: .85em 1.4em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sky-400); color: var(--navy-900); }
.btn-primary:hover { background: #6cc6ee; box-shadow: 0 6px 18px rgba(85, 187, 232, .35); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; }
.btn-block { width: 100%; }

.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .88rem; }
.field input {
  width: 100%; min-width: 0;
  font: inherit;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--sky-400); box-shadow: 0 0 0 4px var(--sky-100); }

.flash { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1.1rem; font-size: .92rem; }
.flash-error { background: #fdecea; color: var(--danger); border: 1px solid #f6c7c3; }

/* ====================================================================== */
/* Landing                                                                */
/* ====================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(85, 187, 232, .28), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  padding: 0 clamp(16px, 5vw, 64px) clamp(64px, 10vw, 120px);
}
/* oversized brand mark as a watermark */
.hero::after {
  content: "";
  position: absolute;
  right: -8vw; bottom: -14vw;
  width: min(58vw, 720px); aspect-ratio: 1219 / 1150;
  background: url("../img/mark-white.png") center / contain no-repeat;
  opacity: .06;
  pointer-events: none;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 22px;
  position: relative; z-index: 1;
}
.hero-body { position: relative; z-index: 1; max-width: 1100px; margin-top: clamp(40px, 8vw, 96px); }
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  max-width: 16ch;
  margin-top: 1.4rem;
}
.hero h1 em { font-style: normal; color: var(--sky-400); }
.hero p.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #c9d6ec; max-width: 52ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.section { padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 64px); max-width: 1200px; margin: 0 auto; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .3rem 0 0; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.tile::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-mark);
}
.tile:nth-child(2)::before { background: var(--sky-400); }
.tile .icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--sky-100); color: var(--navy-800);
  margin-bottom: 18px;
}
.tile h3 { font-size: 1.25rem; }
.tile p { color: var(--ink-soft); margin: 0; }

.band {
  background: var(--navy-900); color: #fff;
  border-radius: 20px;
  padding: clamp(28px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.band h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.band p { color: #c9d6ec; margin: .4rem 0 0; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(16px, 5vw, 64px);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  color: var(--ink-soft); font-size: .88rem;
}

/* ====================================================================== */
/* Login                                                                  */
/* ====================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-brand {
  color: #fff;
  background:
    radial-gradient(800px 500px at 10% 110%, rgba(85, 187, 232, .25), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  padding: 48px clamp(24px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  position: relative; overflow: hidden;
}
.auth-brand::after {
  content: ""; position: absolute; right: -20%; bottom: -25%;
  width: 80%; aspect-ratio: 1219 / 1150;
  background: url("../img/mark-white.png") center / contain no-repeat; opacity: .07;
}
.auth-brand blockquote { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 600; max-width: 20ch; position: relative; z-index: 1; }
.auth-brand .small { color: #9fb2d3; font-size: .85rem; position: relative; z-index: 1; }
.auth-form { display: grid; place-items: center; padding: 48px 16px; background: var(--paper); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.9rem; }
.auth-card .muted { color: var(--ink-soft); margin: 0 0 1.8rem; }
.auth-card .back { display: inline-block; margin-top: 1.4rem; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding-block: 28px; }
  .auth-brand blockquote, .auth-brand .small { display: none; }
}

/* ====================================================================== */
/* App shell: sidebar + content                                           */
/* ====================================================================== */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--navy-900);
  color: #c9d6ec;
  padding: 26px 16px;
  display: flex; flex-direction: column; gap: 28px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { padding: 0 10px; }
.nav { display: grid; gap: 4px; }
.nav-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #6f84aa; padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  color: #c9d6ec; text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: var(--grad-mark); color: #fff; box-shadow: inset 3px 0 0 var(--sky-400); }
.nav a svg { flex: none; }
.sidebar .me {
  margin-top: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .05);
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--sky-400); color: var(--navy-900); font-weight: 700;
}
.me .who { min-width: 0; flex: 1; }
.me .who b { display: block; color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who span { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sky-400); }
.me button { background: none; border: 0; color: #9fb2d3; cursor: pointer; padding: 6px; border-radius: 8px; }
.me button:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.main { padding: clamp(20px, 3vw, 40px); min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: .25rem 0 0; }
.page-head p { color: var(--ink-soft); margin: .3rem 0 0; }

.welcome {
  color: #fff; border-radius: 18px; padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(85, 187, 232, .35), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  margin-bottom: 28px; position: relative; overflow: hidden;
}
.welcome::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 240px; aspect-ratio: 1219 / 1150;
  background: url("../img/mark-white.png") center / contain no-repeat; opacity: .08;
}
.welcome h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: .3rem 0 .4rem; }
.welcome p { color: #c9d6ec; margin: 0; max-width: 56ch; }

a.tile { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.tile:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(10, 29, 64, .12); }
.tile .go { margin-top: 18px; font-weight: 700; color: var(--navy-700); font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.panel h3 { font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }

.empty {
  border: 1.5px dashed var(--line); border-radius: 12px;
  padding: 36px 20px; text-align: center; color: var(--ink-soft);
}
.empty .icon { margin: 0 auto 12px; }
.chip {
  display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; padding: .35em .7em; border-radius: 999px;
  background: var(--sky-100); color: var(--navy-800);
}
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 10px; font-size: .93rem; }
.facts li:last-child { border: 0; padding: 0; }
.facts span { color: var(--ink-soft); }

/* mobile: sidebar becomes a top bar with scrollable tabs */
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 16px; gap: 14px; }
  .nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .nav-label { display: none; }
  .sidebar .me { margin-top: 0; }
}

/* ---------- register / auth extras ---------- */
.topbar-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.hint { color: var(--ink-soft); font-size: .82rem; margin: -.4rem 0 1.2rem; }
.switch { margin: 1.4rem 0 0; font-size: .92rem; color: var(--ink-soft); }
.switch a { font-weight: 700; }
.switch + .back { margin-top: .6rem; }

/* ====================================================================== */
/* Photo layer (v2)                                                       */
/* ====================================================================== */
.hero::after { display: none; }                      /* photos replace the watermark */
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  max-width: 1280px; margin-top: clamp(24px, 5vw, 56px);
}
.hero-grid .hero-body { margin-top: 0; }
.hero-visual { position: relative; min-height: 540px; }
.hero-visual img { display: block; object-fit: cover; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hv-main {
  position: absolute; right: 0; top: 0;
  width: 74%; height: 100%;
  border-radius: 28px;
  object-position: 50% 30%;
}
.hv-side {
  position: absolute; left: 0; bottom: 36px;
  width: 46%; aspect-ratio: 4 / 3;
  border-radius: 20px;
  border: 6px solid var(--navy-900);
}
.hv-chip {
  position: absolute; left: 6%; top: 44px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .82rem; color: #fff;
  background: rgba(10, 29, 64, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hv-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-400); box-shadow: 0 0 0 4px rgba(85, 187, 232, .25); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; aspect-ratio: 5 / 4; max-width: 560px; width: 100%; }
}

/* photo amenity cards */
.tile--photo { padding: 0; display: flex; flex-direction: column; }
.tile--photo::before { display: none; }
.tile-media { position: relative; aspect-ratio: 16 / 10; }
.tile-media .ph { position: absolute; inset: 0; overflow: hidden; background: var(--navy-800); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.tile-media .ph::after {                                   /* brand tint along the bottom edge */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 29, 64, .45));
}
.tile--photo .tile-media .icon {
  position: absolute; left: 22px; bottom: -24px; z-index: 1; margin: 0;
  background: #fff; box-shadow: var(--shadow); color: var(--navy-800);
}
.tile-body { padding: 38px 26px 26px; }
a.tile--photo:hover .tile-media img, article.tile--photo:hover .tile-media img { transform: scale(1.05); }

/* photo band / welcome / banner share one overlay recipe */
.band--photo, .welcome--photo, .banner {
  background:
    linear-gradient(95deg, rgba(10, 29, 64, .96) 0%, rgba(10, 29, 64, .82) 45%, rgba(18, 48, 106, .35) 100%),
    var(--bg) center / cover no-repeat,
    var(--navy-900);
}
.welcome--photo::after { display: none; }
.welcome--photo { padding-block: clamp(32px, 5vw, 56px); }

.banner {
  color: #fff; border-radius: 18px;
  min-height: 230px; padding: clamp(24px, 4vw, 40px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-bottom: 24px;
}
.banner h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: .3rem 0 .3rem; }
.banner p { color: #c9d6ec; margin: 0; }
.chip--glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }

/* auth panels: photo under the navy gradient */
.auth-brand {
  background:
    linear-gradient(160deg, rgba(10, 29, 64, .94) 0%, rgba(10, 29, 64, .78) 50%, rgba(18, 48, 106, .55) 100%),
    var(--bg, none) center / cover no-repeat,
    var(--navy-900);
}
.auth-brand::after { opacity: .05; }

/* ====================================================================== */
/* v3: compact landing hero, logo-led auth panel                          */
/* ====================================================================== */
.hero { padding-bottom: clamp(40px, 6vw, 72px); }
.hero-grid { margin-top: clamp(12px, 3vw, 32px); grid-template-columns: 1.15fr .85fr; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: .8rem; }
.hero .actions { margin-top: 1.6rem; }
.hero-visual { min-height: 380px; }
.hv-main { width: 70%; border-radius: 22px; }
.hv-side { width: 44%; bottom: 24px; border-radius: 16px; border-width: 5px; }
.hv-chip { top: 28px; }
@media (max-width: 960px) {
  .hero-visual { min-height: 0; aspect-ratio: 16 / 10; max-width: 520px; }
}

.auth-brand {
  background:
    radial-gradient(700px 420px at 50% 45%, rgba(85, 187, 232, .18), transparent 70%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
}
.auth-brand::after { opacity: .06; }
.auth-logo { position: relative; z-index: 1; display: grid; justify-items: center; gap: 28px; text-align: center; }
.auth-logo .lockup { align-self: center; }
.auth-logo .lockup--lg .top { height: clamp(56px, 7vw, 92px); }
.auth-logo .lockup--lg .sub { font-size: clamp(26px, 3.3vw, 44px); }
.auth-brand blockquote { max-width: 24ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: #c9d6ec; font-weight: 500; }
.auth-brand .small { text-align: center; }
@media (max-width: 820px) {
  .auth-brand > span { display: none; }
  .auth-logo .lockup--lg .top { height: 48px; }
  .auth-logo .lockup--lg .sub { font-size: 22px; }
}
/* product-shot banners (e.g. massage chair on navy): show the whole image, anchored right */
.banner--contain {
  background:
    linear-gradient(95deg, rgba(10, 29, 64, .96) 0%, rgba(10, 29, 64, .7) 45%, rgba(10, 29, 64, 0) 75%),
    var(--bg) right center / auto 100% no-repeat,
    var(--navy-900);
}
.banner--contain { padding-right: clamp(24px, 22%, 320px); }

/* ====================================================================== */
/* v4: text-only hero + mobile                                            */
/* ====================================================================== */
.hero::after { display: block; opacity: .07; right: -6vw; bottom: -18vw; width: min(52vw, 640px); }
.hero-grid { grid-template-columns: 1fr; }
.hero { padding-bottom: clamp(48px, 7vw, 88px); }
.hero-grid .hero-body { max-width: 720px; }

/* ---- tablets & phones ---- */
@media (max-width: 860px) {
  /* app shell: slim top bar + bottom tab bar */
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; height: auto;
    flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px;
  }
  .sidebar .brand { padding: 0; }
  .sidebar .me { margin: 0; padding: 4px 4px 4px 4px; background: none; gap: 6px; }
  .sidebar .me .who { display: none; }
  .avatar { width: 32px; height: 32px; font-size: .9rem; }

  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0;
    background: var(--navy-900);
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    overflow: visible;
  }
  .nav-label { display: none; }
  .nav a {
    flex-direction: column; gap: 3px; justify-content: center;
    padding: 8px 4px; font-size: .72rem; font-weight: 600; border-radius: 10px;
  }
  .nav a.active { background: rgba(85, 187, 232, .14); color: #fff; box-shadow: none; }
  .nav a.active svg { color: var(--sky-400); }
  .main { padding: 18px 16px calc(88px + env(safe-area-inset-bottom, 0px)); }

  .welcome, .banner { border-radius: 14px; }
  .banner { min-height: 170px; }
  .page-head { margin-bottom: 18px; }
  .panel { padding: 18px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  /* landing */
  .topbar { padding-block: 14px; }
  .topbar .btn { padding: .7em 1em; font-size: .88rem; }
  .topbar-actions { gap: .4rem; }
  .hero-grid { margin-top: 20px; }
  .hero h1 { font-size: 1.9rem; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { width: 100%; }
  .section { padding-block: 44px; }
  .tiles { grid-template-columns: 1fr; gap: 16px; }
  .band { flex-direction: column; align-items: stretch; border-radius: 16px; }
  .band .topbar-actions { flex-direction: column; }
  .band .btn { width: 100%; }
  .footer { flex-direction: column; text-align: center; align-items: center; }

  /* auth: compact logo header above the form */
  .auth-brand { padding: 22px 16px; align-items: center; }
  .auth-brand .small { display: none; }
  .auth-logo { gap: 0; }
  .auth-form { padding: 28px 16px 40px; place-items: start center; }
  .auth-card h1 { font-size: 1.6rem; }
  .field input { font-size: 16px; }          /* stops iOS zooming into inputs */

  /* app */
  .welcome h2 { font-size: 1.35rem; }
  .tile-body { padding: 34px 20px 20px; }
  .banner { padding: 20px; min-height: 150px; }
  .banner h1 { font-size: 1.6rem; }
  .facts li { font-size: .88rem; }
}

/* ====================================================================== */
/* Pickleball booking + admin                                             */
/* ====================================================================== */
.flash-success { background: #e8f7ee; color: #1d7a45; border: 1px solid #bfe5cd; }
.lbl-mob { display: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-quiet { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--navy-700); }

.tabs { display: flex; gap: 6px; margin: 0 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 12px 16px; margin-bottom: -1px;
  color: var(--ink-soft); font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent;
}
.tabs a:hover { color: var(--navy-800); }
.tabs a.active { color: var(--navy-900); border-bottom-color: var(--sky-400); }

.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.day {
  position: relative; display: grid; justify-items: center; gap: 2px;
  padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s;
}
.day:hover { border-color: var(--sky-400); }
.day .dow { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.day .dnum { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.day .mon { font-size: .75rem; color: var(--ink-soft); }
.day.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.day.active .dow, .day.active .mon { color: #9fb2d3; }
.day .dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--sky-400); }

.hint-line { color: var(--ink-soft); font-size: .86rem; margin: 10px 0 0; }
.hint-line svg { vertical-align: -3px; margin-right: 6px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.book-form .eyebrow { margin-bottom: 10px; }

.booking-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 20px; background: linear-gradient(180deg, var(--sky-100), #fff 60%); }
.booking-card.status-on-court { border-color: var(--sky-400); box-shadow: 0 0 0 4px rgba(85, 187, 232, .15); }
.bc-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.bc-head h3 { font-size: 1.35rem; margin: .3rem 0 0; }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.times div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.times span { display: block; font-size: .75rem; color: var(--ink-soft); }
.times b { font-size: 1.05rem; }
.bc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.badge { display: inline-block; white-space: nowrap; font-size: .74rem; font-weight: 700; padding: .35em .75em; border-radius: 999px; }
.badge-booked { background: var(--sky-100); color: var(--navy-800); }
.badge-on-court { background: #e8f7ee; color: #1d7a45; }
.badge-done { background: #eef1f6; color: #4a5a78; }
.badge-missed { background: #fdecea; color: var(--danger); }

.roster-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.roster-head h3 { margin: 0; }
.count { min-width: 30px; text-align: center; padding: 3px 10px; border-radius: 999px; background: var(--navy-900); color: #fff; font-weight: 700; font-size: .85rem; }
.roster-date { color: var(--ink-soft); font-size: .88rem; margin: 4px 0 14px; }
.roster-list { list-style: none; counter-reset: r; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 520px; overflow-y: auto; }
.roster-list li { counter-increment: r; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.roster-list li::before { content: counter(r); width: 18px; font-family: var(--font-mono); font-size: .75rem; color: var(--ink-soft); }
.roster-list li:nth-child(odd) { background: var(--paper); }
.roster-list li.me { background: var(--sky-100); }
.roster-list .rname { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar.sm { width: 28px; height: 28px; font-size: .8rem; }
.you { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--navy-700); }
.empty.sm { padding: 22px 14px; }

.table-wrap { overflow-x: auto; margin-top: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody tr:hover { background: var(--paper); }
.table .num { text-align: right; }
.table .muted, .muted { color: var(--ink-soft); }

/* admin */
.toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.toolbar .btn { padding: .6em .9em; }
.toolbar input[type=date] { font: inherit; padding: .5em .7em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pill small { color: var(--ink-soft); font-weight: 500; }
.pill.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pill.active small { color: #9fb2d3; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat span { display: block; font-size: .8rem; color: var(--ink-soft); }
.stat b { font-size: 1.9rem; line-height: 1.2; }
.stat--live { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.stat--live span { color: #9fb2d3; }

.rules { display: grid; gap: 4px; }
.rule { display: grid; grid-template-columns: 240px 1fr auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rule-name small { display: block; color: var(--ink-soft); font-size: .78rem; }
.rule-name input { margin-top: 6px; font: inherit; padding: .55em .8em; border: 1.5px solid var(--line); border-radius: 10px; width: 100%; }
.daypicks { display: flex; flex-wrap: wrap; gap: 6px; }
.daypick { position: relative; }
.daypick input { position: absolute; opacity: 0; pointer-events: none; }
.daypick span { display: inline-block; min-width: 50px; text-align: center; padding: .5em .6em; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 700; font-size: .85rem; cursor: pointer; user-select: none; }
.daypick input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.daypick input:focus-visible + span { box-shadow: 0 0 0 3px var(--sky-100); border-color: var(--sky-400); }
.remove { font-size: .85rem; color: var(--danger); display: inline-flex; gap: 6px; align-items: center; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }

@media (max-width: 860px) {
  .nav-desktop { display: none !important; }
  .lbl-desk { display: none; }
  .lbl-mob { display: inline; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .rule { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  .times { grid-template-columns: 1fr 1fr; }
  .times div:last-child { grid-column: span 2; }
  .bc-actions .btn, .bc-actions form { width: 100%; }
  .days { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .page-head .toolbar { width: 100%; }
}

/* live dot on "On court" */
.badge-on-court::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #22a35a; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(34, 163, 90, .18); }
.roster-list .badge { flex: none; }

/* ====================================================================== */
/* Round robin                                                            */
/* ====================================================================== */
.btn-danger { background: var(--danger); color: #fff; }
.small { font-size: .82rem; }
.rr-daybar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.rr-daybar .btn { padding: .6em .9em; }
.rr-day { display: grid; min-width: 180px; text-align: center; }
.rr-day span { font-size: .82rem; color: var(--ink-soft); }

.rr-setup .roster-head svg { color: var(--sky-400); }
.rr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0 20px; }
.rr-grid fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; min-width: 0; }
.rr-grid legend { font-weight: 700; padding: 0 6px; }
.rr-grid legend small, .sub-label small { color: var(--ink-soft); font-weight: 500; }
.rr-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px; }
.rr-row > div { display: grid; gap: 6px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; cursor: pointer; }
.opt:hover { background: var(--paper); }
.opt input { margin-top: 4px; accent-color: var(--navy-800); }
.opt small { display: block; color: var(--ink-soft); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; margin-bottom: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.check input { accent-color: var(--navy-800); width: 16px; height: 16px; }
.sub-label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.rr-setup textarea, .rr-setup select, .rr-setup input[type=number] {
  font: inherit; width: 100%; padding: .6em .8em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.rr-setup select, .rr-setup input[type=number] { width: 140px; }

.rr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.rr-head h3 { font-size: 1.35rem; margin: .3rem 0 .1rem; }
.rr-head > div:first-child { flex: 1; min-width: 240px; }
.progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; max-width: 420px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sky-400), var(--navy-700)); }
.rr-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.rr-delete details { position: relative; }
.rr-delete summary { list-style: none; }
.rr-delete summary::-webkit-details-marker { display: none; }
.rr-delete .confirm {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 14px;
  font-size: .88rem; display: grid; gap: 10px;
}

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; align-items: end; }
.place { display: grid; justify-items: center; gap: 4px; padding: 18px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.place b { font-size: 1.05rem; }
.place small { color: var(--ink-soft); }
.place-1 { order: 2; padding-block: 28px; background: linear-gradient(180deg, #fff7de, #fff); border-color: #f1d98a; }
.place-2 { order: 1; }
.place-3 { order: 3; }
.medal { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.place-1 .medal, .rank-1 { background: #d4a72c; }
.place-2 .medal, .rank-2 { background: #9aa6b8; }
.place-3 .medal, .rank-3 { background: #b9774a; }

.rr-body { align-items: start; }
.round { border-top: 1px solid var(--line); padding: 14px 0 6px; }
.round:first-of-type { border-top: 0; }
.round-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sitting { font-size: .8rem; color: var(--ink-soft); }
.game { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper); margin-bottom: 8px; }
.game.mine { background: var(--sky-100); }
.game .team { font-weight: 600; line-height: 1.3; }
.game .team-b { text-align: right; }
.game .team.win { color: var(--navy-900); font-weight: 800; }
.game .team.win::after { content: " ✓"; color: #1d7a45; }
.game .team-b.win::after { content: ""; }
.game .team-b.win::before { content: "✓ "; color: #1d7a45; }
.score { display: flex; align-items: center; gap: 6px; }
.score input { width: 48px; text-align: center; font: 700 1.05rem var(--font-sans); padding: .45em .2em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.score input:focus { outline: none; border-color: var(--sky-400); box-shadow: 0 0 0 3px var(--sky-100); }
.score b { font-size: 1.15rem; min-width: 24px; text-align: center; }
.save-bar { position: sticky; bottom: 12px; padding-top: 10px; }

.table-tight td, .table-tight th { padding: 9px 8px; }
.table tr.me td { background: var(--sky-100); }
.rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: .8rem; color: #fff; }
.rank-n { background: var(--line); color: var(--ink-soft); }
.num.pos { color: #1d7a45; font-weight: 700; }
.num.neg { color: var(--danger); }

@media (max-width: 860px) {
  .save-bar { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  .rr-grid { grid-template-columns: 1fr; }
  .rr-day { min-width: 0; flex: 1; }
  .game { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .game .team-b { text-align: center; }
  .score { justify-content: center; }
  .score input { width: 56px; font-size: 1.15rem; }
  .podium { gap: 8px; }
  .place { padding: 14px 6px; }
  .place b { font-size: .9rem; }
}
@media (max-width: 560px) {
  .tabs { gap: 0; }
  .tabs a { padding: 12px 10px; gap: 6px; font-size: .9rem; }
}

/* round robin v2: one game per round, save per round */
.rr-games h3 small { font-weight: 500; font-size: .8rem; }
.round { scroll-margin-top: 90px; }
.rr-games .game { grid-template-columns: 1fr auto 1fr auto; margin-bottom: 4px; }
.save-round { padding: .55em 1.1em; }
.round--now { border-top: 0; margin: 6px -12px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 2px var(--sky-400), var(--shadow); }
.round--now + .round { border-top: 0; }
.round--now .game { background: var(--sky-100); }
.now-chip, .done-chip { font-size: .72rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; }
.now-chip { background: var(--sky-400); color: var(--navy-900); }
.now-chip::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--navy-900); vertical-align: 1px; animation: pulse 1.4s ease-in-out infinite; }
.done-chip { background: #e8f7ee; color: #1d7a45; }
.round-head .sitting { margin-left: auto; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .now-chip::before { animation: none; } }
@media (max-width: 560px) {
  .rr-games .game { grid-template-columns: 1fr; }
  .save-round { width: 100%; }
  .round-head .sitting { margin-left: 0; width: 100%; }
}

/* court queue (above standings) */
.rr-side { display: grid; gap: 20px; align-content: start; }
.queue { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.queue li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.queue li.q-now { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.queue li.q-next { border-color: var(--sky-400); background: var(--sky-100); }
.queue li.mine:not(.q-now) { box-shadow: inset 3px 0 0 var(--sky-400); }
.q-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.q-tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.q-now .q-tag { color: var(--sky-400); }
.q-now .q-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--sky-400); vertical-align: 1px; animation: pulse 1.4s ease-in-out infinite; }
.q-round { font-size: .78rem; color: var(--ink-soft); text-decoration: none; }
.q-now .q-round { color: #9fb2d3; }
.q-teams { display: grid; gap: 1px; font-weight: 700; font-size: .92rem; line-height: 1.3; }
.q-teams em { font-style: normal; font-weight: 500; font-size: .75rem; color: var(--ink-soft); }
.q-now .q-teams em { color: #9fb2d3; }
.q-you { display: inline-block; margin-top: 6px; font-size: .72rem; font-weight: 700; padding: .2em .6em; border-radius: 999px; background: var(--sky-400); color: var(--navy-900); }
@media (prefers-reduced-motion: reduce) { .q-now .q-tag::before { animation: none; } }

/* round lock + check-in gate */
.round-btns { display: flex; gap: 6px; }
.round--locked .game { background: #f1f4f8; }
.round--locked .score b { color: var(--navy-900); }
.done-chip svg { vertical-align: -1px; margin-right: 2px; }
.saved-chip { font-size: .72rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; background: #fff4db; color: #8a5a00; }
.checks--off { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line); }
.check.is-off { color: var(--ink-soft); font-weight: 500; }
.need-in { font-size: .7rem; font-weight: 700; padding: .15em .55em; border-radius: 999px; background: #fdecea; color: var(--danger); white-space: nowrap; }
@media (max-width: 560px) {
  .round-btns { width: 100%; }
  .round-btns .btn { flex: 1; }
}

/* single-column layouts: court queue first, then games, then standings */
@media (max-width: 1000px) {
  .rr-body .rr-side { display: contents; }
  .rr-body .rr-queue { order: -1; }
  .rr-body .rr-standings { order: 1; }
}

/* scoring PIN */
.pin-box {
  display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 14px;
  padding: 12px 16px; border-radius: 14px; background: var(--navy-900); color: #fff;
}
.pin-label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-400); }
.pin-label svg { vertical-align: -2px; }
.pin-code { grid-row: 2; font-family: var(--font-mono); font-size: 1.9rem; letter-spacing: .3em; line-height: 1.1; }
.pin-help { grid-column: 1 / -1; font-size: .78rem; color: #9fb2d3; }
.pin-box form { grid-row: 1 / span 2; grid-column: 2; justify-self: end; }
.pin-new { padding: .5em .9em; font-size: .85rem; }
.pin-entry {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: 12px 0 6px; padding: 14px; border-radius: 12px;
  background: #fff8e6; border: 1px solid #f1d98a;
}
.pin-entry > div { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.pin-entry b svg { vertical-align: -3px; margin-right: 4px; }
.pin-entry small { color: var(--ink-soft); }
.pin-entry input {
  width: 110px; text-align: center; font: 700 1.3rem var(--font-mono); letter-spacing: .35em;
  padding: .45em .3em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.pin-entry input:focus { outline: none; border-color: var(--sky-400); box-shadow: 0 0 0 3px var(--sky-100); }
@media (max-width: 560px) {
  .pin-box { width: 100%; }
  .pin-entry input, .pin-entry .btn { flex: 1; }
}

/* my round robin record (top of the Round robin tab) */
.my-record { margin-bottom: 18px; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.mr-sub { font-size: .75rem; color: var(--ink-soft); }
.mr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mr-stats > div { display: grid; align-content: start; gap: 1px; padding: 10px 14px; border-radius: 12px; background: var(--paper); }
.mr-stats span { font-size: .78rem; color: var(--ink-soft); }
.mr-stats b { font-size: 1.7rem; line-height: 1.15; color: var(--navy-900); }
.mr-stats small { font-size: .76rem; color: var(--ink-soft); }
.mr-stats small.pos { color: #1d7a45; font-weight: 700; }
.mr-stats small.neg { color: var(--danger); font-weight: 700; }
.mr-stats .mr-hi { background: var(--navy-900); }
.mr-stats .mr-hi span, .mr-stats .mr-hi small { color: #9fb2d3; }
.mr-stats .mr-hi b { color: #fff; }
.mr-empty { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.mr-empty svg { vertical-align: -3px; margin-right: 6px; color: var(--sky-400); }
@media (max-width: 860px) { .mr-stats { grid-template-columns: repeat(2, 1fr); } }

/* admin: users & roles */
.btn-sm { padding: .45em .9em; font-size: .82rem; }
.badge-admin { background: var(--navy-900); color: #fff; }
.badge-admin svg { vertical-align: -1px; margin-right: 3px; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stat b small { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.stat .mono-sm { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 500; }
.toolbar .search { font: inherit; padding: .55em .9em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-width: 220px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form input { flex: 1; min-width: 200px; font: inherit; padding: .7em 1em; border: 1.5px solid var(--line); border-radius: 10px; }
.facts li form { margin: 0; }
@media (max-width: 860px) { .stats--3 { grid-template-columns: 1fr 1fr; } .toolbar .search { min-width: 0; flex: 1; } }

/* pagination */
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.pager-info { font-size: .85rem; color: var(--ink-soft); }
.pager-links { display: flex; flex-wrap: wrap; gap: 4px; }
.pg { min-width: 36px; padding: .45em .7em; text-align: center; border-radius: 9px; border: 1px solid var(--line); background: #fff;
      color: var(--navy-800); font-weight: 600; font-size: .85rem; text-decoration: none; }
a.pg:hover { border-color: var(--sky-400); }
.pg.on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pg.off { color: var(--line); cursor: default; }
.pg.gap { border-color: transparent; background: none; color: var(--ink-soft); min-width: 20px; }

/* admin round robins list */
.mini-progress { width: 90px; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 3px; }
.mini-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sky-400), var(--navy-700)); }
.table td svg { vertical-align: -2px; color: #d4a72c; }

/* round robin: automatic rounds preview */
.rr-plan { display: grid; gap: 2px; flex: 1; min-width: 220px; }
.rr-plan b { font-size: 1.05rem; color: var(--navy-900); }
.rr-plan small { font-size: .8rem; }
#rr-generate[disabled] { opacity: .45; cursor: not-allowed; }

/* sign-in: which team */
.team-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 4px 0 12px;
               border-radius: 12px; background: var(--sky-100); }
.team-switch button { font: 700 .88rem var(--font-sans); padding: .7em .6em; border: 0; border-radius: 9px;
                      background: transparent; color: var(--navy-800); cursor: pointer; }
.team-switch button.on { background: var(--navy-900); color: #fff; box-shadow: var(--shadow); }
.team-switch button:focus-visible { outline: 2px solid var(--sky-400); outline-offset: 2px; }
.tabs a small { font-weight: 500; }

/* rolling round robin: players pool + waiting state */
.rr-waiting { margin: 12px 0; }
.pool { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pool li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--paper); }
.pool li.me { background: var(--sky-100); }
.pool li.pool-left, .pool li.pool-removed { opacity: .7; }
.pool .rname { flex: 1; min-width: 0; font-weight: 600; display: grid; line-height: 1.2; }
.pool .rname small { font-weight: 500; font-size: .75rem; color: var(--ink-soft); }
.pool form { margin: 0; }

/* busy buttons (see static/js/app.js) */
.btn.is-busy { cursor: progress; opacity: .85; }
.btn[disabled].is-busy { opacity: .85; }
.spinner { width: 1em; height: 1em; flex: none; border-radius: 50%;
           border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* admin users: per-row buttons, one-time temporary password */
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* admin page access: one toggle per team */
.daypick--team span { min-width: 170px; }
.rule-name .rule-icon { display: inline-flex; vertical-align: -3px; margin-right: 6px; color: var(--navy-800); }

/* admin settings page: stacked sections, check-in limit inputs */
.settings-section { margin-top: 20px; scroll-margin-top: 20px; }
.settings-section > h3 { margin-top: 0; }

/* modal dialogs (native <dialog>) */
.modal { width: min(440px, calc(100vw - 32px)); padding: 28px; border: 0; border-radius: 18px; color: inherit;
         background: #fff; box-shadow: 0 24px 60px rgba(10, 25, 60, .28); }
.modal::backdrop { background: rgba(10, 22, 48, .55); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in .16s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal h3 { margin: 0 0 8px; font-size: 1.2rem; }
.modal p { margin: 0 0 14px; color: var(--ink-soft); font-size: .93rem; line-height: 1.5; }
.modal p b { color: var(--navy-900); }
.modal-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
              border-radius: 12px; background: var(--sky-100); color: var(--navy-800); }
.modal-icon--ok { background: #e8f7ee; color: #1d7a45; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal-note { font-size: .82rem !important; margin-top: 10px !important; }
.temp-pass-box { display: flex; gap: 10px; }
.temp-pass-box input { flex: 1; min-width: 0; font-size: 1.1rem; letter-spacing: .06em; padding: .7em 1em;
                       border: 1.5px solid var(--line); border-radius: 10px; background: #f6f8fc; }
@media (max-width: 480px) { .temp-pass-box { flex-direction: column; } .modal-actions .btn { flex: 1; } }

/* time slots: admin settings */
.slot-teams { display: grid; gap: 14px; }
.slot-team { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; margin: 0; }
.slot-team legend { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.slot-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 6px; }
.slot-fields label { display: grid; gap: 6px; font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.slot-fields input, .slot-fields select { font: inherit; color: var(--ink, inherit); padding: .5em .7em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.slot-len { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.slot-len input { width: 64px; }
.slot-preview { margin: 12px 0 0; font-size: .84rem; color: var(--ink-soft); }
.slot-preview svg { vertical-align: -2px; }

/* time slots: member booking form and roster */
.slot-choices { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.slot-choices legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.slot-choice { display: flex; align-items: center; gap: 12px; padding: .75em 1em; border: 1.5px solid var(--line);
               border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.slot-choice:hover:not(.is-closed) { border-color: var(--sky-400); }
.slot-choice input { flex: none; width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--navy-900); }
.slot-choice:has(input:checked) { border-color: var(--navy-900); background: var(--sky-100); }
.slot-choice:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--sky-100); }
.slot-choice.is-closed { opacity: .5; cursor: not-allowed; background: #f6f8fc; }
.slot-time { flex: 1; min-width: 0; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.slot-count { flex: none; font-size: .76rem; font-weight: 700; padding: .3em .7em; border-radius: 999px;
              background: #eef1f6; color: #4a5a78; white-space: nowrap; }
.slot-choice:has(input:checked) .slot-count { background: #fff; color: var(--navy-900); }
.slot-count.is-low { background: #fff4e0; color: #9a5b00; }

/* "Signed up" grouped by time slot */
.roster-slots { display: grid; gap: 12px; max-height: 620px; overflow-y: auto; }
.roster-slot { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 10px 8px; }
.roster-slot.has-me { border-color: var(--sky-400); }
.roster-slot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 8px; }
.roster-slot-time { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.roster-slot-time svg { vertical-align: -2px; margin-right: 2px; color: var(--ink-soft); }
.roster-slot-count { font-size: .76rem; font-weight: 700; padding: .25em .65em; border-radius: 999px; background: #eef1f6; color: #4a5a78; white-space: nowrap; }
.roster-slot.is-full .roster-slot-count { background: #fdecea; color: var(--danger); }
.roster-slot .roster-list { max-height: none; overflow: visible; }
.roster-slot-empty { margin: 0; padding: 4px 2px 2px; font-size: .84rem; color: var(--ink-soft); }
