@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

/* =========================================================
   Loouis Launcher — shared theme
   Palette sampled from the logo: pale mint, mint, teal,
   deep green and warm white. Loaded last on every app page.
   ========================================================= */

:root {
  color-scheme: light;

  /* Logo palette */
  --mint-50: #F5FFFB;
  --mint-100: #E6FCF3;
  --mint-200: #D3FCF4;
  --mint-300: #A6F2D1;
  --mint-400: #63E3C1;
  --mint-500: #01B897;
  --mint-600: #068266;
  --mint-700: #046B55;
  --ink: #0D3B30;
  --text: #234C41;
  --muted: #4D7167;
  --line: #CDEEE2;
  --white: #FEFDFD;

  /* Legacy tokens kept so the original layouts pick up the palette */
  --blue: #01B897;
  --blue2: #63E3C1;
  --blue-dark: #046B55;
  --blue-soft: #E6FCF3;
  --blue-950: #0D3B30;
  --blue-900: #0D3B30;
  --blue-800: #068266;
  --blue-700: #068266;
  --blue-600: #01B897;
  --blue-100: #D3FCF4;
  --blue-50: #F5FFFB;
  --bg: #F5FFFB;
  --paper: #F5FFFB;
  --card: #FEFDFD;
  --soft: #F5FFFB;
  --green: #068266;
  --ok: #068266;
  --red: #B4433C;
  --danger: #B4433C;
  --warn: #94620A;
  --amber: #94620A;

  --shadow: 0 10px 30px rgba(6, 90, 70, .07);
  --shadow-soft: 0 4px 16px rgba(6, 90, 70, .05);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-body: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: Sora, Inter, "Segoe UI", system-ui, sans-serif;

  font-family: var(--font-body);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(60rem 30rem at 88% -8%, rgba(166, 242, 209, .45), transparent 70%),
    radial-gradient(42rem 26rem at -10% 18%, rgba(211, 252, 244, .7), transparent 70%),
    var(--mint-50);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, canvas, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--mint-700); text-underline-offset: 3px; }
a:hover { color: var(--mint-600); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--mint-300); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(1, 184, 151, .45); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.035em; margin-bottom: 16px; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; line-height: 1.65; }
small { font-size: .85rem; }
strong, b { color: var(--ink); font-weight: 700; }

/* ---------- Shared headers ---------- */
.topbar, .sport-topbar, .tool-top, .p-top, .bar, .house-top,
.legal-topbar, .d-topbar, .seo-tool-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  height: auto;
  padding: 12px max(20px, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(254, 253, 253, .9);
  box-shadow: 0 6px 24px rgba(6, 90, 70, .04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
}

.brand, .sport-brand, .tool-brand, .p-brand, .house-brand,
.legal-brand, .d-brand, .seo-tool-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand b, .sport-brand b, .tool-brand b, .p-brand b, .house-brand b,
.legal-brand b, .d-brand b, .seo-tool-brand b, .seo-tool-brand strong { color: var(--mint-600); font-weight: 800; }
.brand img, .sport-brand img, .tool-brand img, .p-brand img,
.house-brand img, .legal-brand img, .d-brand img, .seo-tool-brand img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 5px 14px rgba(6, 130, 102, .16);
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  background: var(--mint-600);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(6, 130, 102, .2);
}

.back, .sport-back, .tool-back, .p-back, .house-back,
.legal-home, .d-back, .launcher-link, .seo-tool-header nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--mint-700);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.back:hover, .sport-back:hover, .tool-back:hover, .p-back:hover,
.house-back:hover, .legal-home:hover, .d-back:hover,
.launcher-link:hover, .seo-tool-header nav a:hover {
  border-color: var(--mint-300);
  background: var(--mint-100);
  color: var(--mint-600);
}

/* ---------- Page shells ---------- */
main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}
.sport-main, .p-main, .house-main, .tool-main, .d-main, .seo-tool-main {
  width: min(1080px, 100%);
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
.legal-wrap {
  width: min(920px, 100%);
  max-width: 920px;
  margin: 0 auto;
  padding: 36px 20px 72px;
}

.app-breadcrumb {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 12px 20px 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.5;
}
.app-breadcrumb a { color: var(--mint-700); font-weight: 600; text-decoration: underline; }

/* ---------- Hero copy ---------- */
.sport-hero, .p-hero, .house-hero, .hero, .tool-hero {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
}
.sport-hero h1, .p-hero h1, .house-hero h1, .hero h1,
.tool-hero h1, .legal-hero h1, .d-hero h1, .seo-tool-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
h1 span, .sport-hero h1 span, .p-hero h1 span, .house-hero h1 span,
.hero h1 span, .tool-hero h1 span, .legal-hero h1 span,
.d-hero h1 span, .seo-tool-hero h1 span { color: var(--mint-600); }

.eyebrow, .sport-eyebrow, .legal-kicker, .seo-content-kicker,
.seo-tool-eyebrow, .d-eyebrow, .p-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--mint-600);
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow::before, .sport-eyebrow::before, .legal-kicker::before,
.seo-content-kicker::before, .seo-tool-eyebrow::before, .d-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint-500);
}
.subtitle, .lead, .sport-lead, .hero-text, .muted,
.seo-tool-hero > p, .seo-content p, .related-tools p {
  color: var(--muted);
  line-height: 1.68;
}
.lead, .sport-lead, .hero-text { max-width: 64ch; font-size: 1.03rem; }

.hero-pills, .hero-badges, .sport-actions, .actions, .result-actions,
.quick-actions, .toolbar, .filter-row, .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.hero-pills span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--mint-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--mint-700);
  font-size: .78rem;
  font-weight: 700;
}

/* ---------- Cards and panels ---------- */
.sport-card, .sport-panel, .sport-stat, .card, .panel, .tool-card,
.d-card, .legal-card, .seo-content, .seo-tool-related, .related-tools,
.trip-form, .score-card, .info-card, .house-main .card, .house-main .panel,
.seo-tool-hero, .legal-hero {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.sport-card, .sport-panel, .card, .panel, .tool-card, .d-card,
.legal-card, .seo-content, .seo-tool-related, .related-tools,
.trip-form, .score-card, .info-card {
  padding: clamp(18px, 2.4vw, 26px);
}
.sport-panel { margin-top: 20px; }
.legal-card { margin: 14px 0; }
.legal-hero {
  padding: clamp(24px, 4vw, 40px);
  background:
    repeating-linear-gradient(115deg, rgba(6, 130, 102, .05) 0 2px, transparent 2px 52px),
    linear-gradient(120deg, var(--mint-200) 0%, var(--mint-50) 72%);
  border-color: var(--mint-300);
}
.sport-panel > h2, .panel > h2, .panel > h3,
.card > h2, .legal-card h2, .section-head h2, .section-title,
.panel-heading h3, .results-head h2, .form-heading h2, .card h2, .panel h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  letter-spacing: -.02em;
}
.legal-card h2 { font-size: 1.25rem; }
.legal-card h3 { margin: 20px 0 8px; font-family: var(--font-display); color: var(--ink); font-size: 1.02rem; }
.legal-updated { margin: 0; color: var(--muted); font-size: .84rem; }
.legal-card p, .legal-card li { color: var(--text); line-height: 1.7; }

.section { margin-top: 26px; }
.section-head, .panel-heading, .results-head, .form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* ---------- Forms ---------- */
.field, .sport-field, .tool-field, .la-field, .ft-field, .d-field { display: grid; gap: 7px; min-width: 0; }
.field > span, .field > label, .sport-field > span, .tool-field > span,
.la-field > span, .ft-field > span, .d-field > span {
  color: var(--text);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.field small, .sport-field small, .field-help, .privacy-note {
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.45;
}
input, select, textarea,
.field input, .field select, .field textarea,
.sport-field input, .sport-field select, .sport-field textarea,
.tool-field input, .tool-field select, .tool-field textarea,
.la-field input, .d-field input, .d-field select, .d-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #FBFEFC;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
textarea { min-height: 104px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #7A988E; opacity: 1; }
input[type="checkbox"], input[type="radio"] {
  width: 19px;
  height: 19px;
  min-height: 19px;
  accent-color: var(--mint-600);
  cursor: pointer;
}
input[type="range"] { accent-color: var(--mint-500); }
.field input:focus, .field select:focus, .field textarea:focus,
.sport-field input:focus, .sport-field select:focus, .sport-field textarea:focus,
.tool-field input:focus, .tool-field select:focus, .tool-field textarea:focus,
input:focus, select:focus, textarea:focus {
  border-color: var(--mint-500);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(1, 184, 151, .14);
}
select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234D7167' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.input-shell { position: relative; }
.suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(6, 90, 70, .16);
}
.suggestion {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  display: grid;
  gap: 2px;
}
.suggestion:hover, .suggestion.active { background: var(--mint-100); }
.suggestion-main { font-weight: 700; font-size: .88rem; }
.suggestion-sub { color: var(--muted); font-size: .75rem; }
.suggestion-empty { padding: 10px 12px; color: var(--muted); font-size: .8rem; }

/* ---------- Buttons ---------- */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--mint-600);
  border-radius: var(--radius-sm);
  background: var(--mint-600);
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
button:hover { background: var(--mint-700); border-color: var(--mint-700); }
button:active { background: #035B48; border-color: #035B48; }
button:disabled, button[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }

.sport-btn, .btn, .tool-btn, .d-primary, .seo-tool-cta, .open-app,
.primary-btn, .btn.primary, .sport-btn.primary, .tool-btn.primary,
button.primary, .primary, .btn:not(.secondary):not(.danger):not(.ghost) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--mint-600);
  border-radius: var(--radius-sm);
  background: var(--mint-600);
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(6, 130, 102, .14);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.sport-btn:hover, .btn:hover, .tool-btn:hover, .d-primary:hover,
.seo-tool-cta:hover, .open-app:hover, .primary-btn:hover,
.btn.primary:hover, .sport-btn.primary:hover, .tool-btn.primary:hover,
button.primary:hover, .primary:hover,
.btn:not(.secondary):not(.danger):not(.ghost):hover {
  background: var(--mint-700);
  border-color: var(--mint-700);
  color: #FFFFFF;
  box-shadow: 0 10px 22px rgba(6, 130, 102, .2);
}

.secondary-btn, .btn.secondary, .sport-btn.secondary, .tool-btn.secondary,
.d-secondary, button.secondary, .secondary,
.btn.ghost, button.ghost, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--mint-300);
  border-radius: var(--radius-sm);
  background: var(--mint-100);
  color: var(--mint-700);
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.secondary-btn:hover, .btn.secondary:hover, .sport-btn.secondary:hover,
.tool-btn.secondary:hover, .d-secondary:hover, button.secondary:hover,
.secondary:hover, .btn.ghost:hover, button.ghost:hover, .ghost:hover {
  border-color: var(--mint-400);
  background: var(--mint-200);
  color: var(--mint-600);
}
.btn.danger, button.danger, .danger {
  border-color: #E9BDB8;
  background: #FBEDEC;
  color: #943832;
  box-shadow: none;
}
.btn.danger:hover, button.danger:hover, .danger:hover { background: #F6DCDA; border-color: #DC9C96; color: #7E2D28; }

/* ---------- Chips, badges, filters ---------- */
.pill, .badge, .sport-badge, .chip, .mode, .check-option,
.result-chip, .form-badge, .counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid var(--mint-300);
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--mint-700);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
button.pill, button.mode, button.chip { background: var(--white); border-color: var(--line); color: var(--text); }
button.pill:hover, button.mode:hover, button.chip:hover { background: var(--mint-100); border-color: var(--mint-300); }
.pill.active, .mode.active, .tab.active, .chip.active,
button.pill.active, button.mode.active {
  border-color: var(--mint-600);
  background: var(--mint-600);
  color: #FFFFFF;
}
.pill.high, .badge.danger, .pill.danger { background: #FBEDEC; border-color: #E9BDB8; color: #943832; }
.pill.medium, .badge.warn, .pill.warn { background: #FCF3DF; border-color: #EBD7A9; color: var(--warn); }
.pill.low, .badge.ok, .pill.ok { background: var(--mint-100); border-color: var(--mint-300); color: var(--mint-700); }
.group-title {
  margin: 20px 0 9px;
  color: var(--mint-600);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--mint-700);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}
.legal-nav a:hover { background: var(--mint-100); border-color: var(--mint-300); }

/* ---------- Stats ---------- */
.sport-stats, .stats, .stat-grid, .facts, .quick-facts,
.notes-grid, .weather, .weather-days { display: grid; gap: 12px; }
.sport-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts, .quick-facts, .notes-grid, .weather { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.weather-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sport-stat, .stat, .fact, .weather-day, .note {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #FBFEFC;
}
.sport-stat span, .stat span, .fact span, .note span, .weather-day span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.sport-stat strong, .stat strong, .fact strong, .note strong, .weather-day strong {
  display: block;
  color: var(--ink);
  font-size: 1.24rem;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.note strong, .fact strong, .weather-day strong { font-size: .95rem; }
.weather-day { text-align: center; }

/* ---------- Lists, checklist rows ---------- */
.list, .sport-list, .checklist, .laps { display: grid; gap: 10px; }
.item, .sport-row, .sport-check, .task-card, .column, .day,
.lap, .room, .check-item, .pack-item, .mini-task, .schedule-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px; }
.sport-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; }
.sport-check { display: flex; align-items: flex-start; gap: 11px; padding: 13px; }
.sport-check input { margin-top: 3px; }
.item-copy, .check-copy { min-width: 0; }
.item-copy strong, .check-copy strong { display: block; overflow-wrap: anywhere; }
.item-copy small, .check-copy p, .task-card small, .sport-row small { display: block; margin-top: 2px; color: var(--muted); }
.item.done, .sport-check.done { background: var(--mint-100); border-color: var(--mint-300); }
.item.done .item-copy strong, .sport-check.done strong,
.item.done strong, .check-item.done .check-copy strong { text-decoration: line-through; color: var(--muted); }
.task-card { padding: 12px; }
.column { padding: 15px; }
.day { min-height: 150px; padding: 12px; }
.room { display: flex; align-items: center; gap: 9px; padding: 11px; }
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.checklist { gap: 10px; }
.check-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px; }
.check-item input { margin-top: 2px; }
.pack-item { padding: 9px 11px; font-size: .84rem; font-weight: 600; background: #FBFEFC; }
.pack-item::before { content: "+"; margin-right: 6px; color: var(--mint-600); font-weight: 800; }
.mini-task { display: flex; gap: 7px; align-items: flex-start; padding: 7px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-size: .8rem; }
.mini-task:last-child { border-bottom: 0; }
.schedule-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.schedule-row:last-child { border-bottom: 0; }
.schedule-time { color: var(--mint-600); font-weight: 800; }
.streak { color: var(--mint-600); font-weight: 800; }
.sport-badge { border-radius: 999px; }
.sport-progress, .progress { height: 9px; overflow: hidden; margin-top: 12px; border-radius: 999px; background: var(--mint-100); }
.sport-progress > i, .progress > i { display: block; height: 100%; border-radius: inherit; background: var(--mint-500); }
.empty {
  padding: 28px 18px;
  border: 1px dashed var(--mint-300);
  border-radius: var(--radius-md);
  background: #FBFEFC;
  color: var(--muted);
  text-align: center;
}
.timer {
  margin: 16px 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  text-align: center;
}
.timer-label { color: var(--muted); font-weight: 700; text-align: center; }
.score { color: var(--mint-600); font-size: 2rem; font-weight: 800; }
.plan-step b { color: var(--mint-600); }
.lap { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 11px 12px; font-size: .84rem; }
.tool-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--mint-700); font-size: .8rem; font-weight: 700; text-decoration: none; }
.tool-link:hover { text-decoration: underline; }
.footer, .app-legal-footer, .site-legal-footer, .legal-footer {
  width: 100%;
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 22px 20px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
}
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; }
.app-legal-footer { display: block; margin-top: 32px; }
.app-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 10px; }
.app-legal-links a, .site-legal-footer a, .legal-footer a { color: var(--mint-700); font-weight: 600; text-decoration: none; }
.app-legal-links a:hover, .site-legal-footer a:hover, .legal-footer a:hover { text-decoration: underline; }

/* ---------- Feedback ---------- */
.error, .sport-error, .form-error, [role="alert"] {
  padding: 10px 12px;
  border: 1px solid #E9BDB8;
  border-radius: 11px;
  background: #FBEDEC;
  color: #943832;
  font-size: .84rem;
}
.error:empty, .sport-error[hidden], .form-error[hidden], [role="alert"][hidden] { display: none; }
.notice {
  padding: 13px 15px;
  border: 1px solid #EBD7A9;
  border-radius: 13px;
  background: #FCF8EC;
  color: #74520C;
  font-size: .86rem;
  line-height: 1.55;
}
.legal-note {
  padding: 16px 18px;
  border: 1px solid var(--mint-300);
  border-radius: 13px;
  background: var(--mint-100);
  color: var(--text);
}
.legal-warning { border-color: #EBD7A9; background: #FCF8EC; color: #74520C; }

/* ---------- TripCheck specifics ---------- */
.trip-form { box-shadow: var(--shadow); }
.form-badge, .counter { background: var(--mint-100); color: var(--mint-700); border-color: var(--mint-300); }
.dashboard-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; margin-bottom: 18px; }
.score-card { display: flex; align-items: center; gap: 20px; }
.score-ring {
  --score: 0;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--mint-500) calc(var(--score) * 1%), var(--mint-100) 0);
  position: relative;
}
.score-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--white); }
.score-ring strong { z-index: 1; color: var(--ink); font-size: 1.3rem; }
.destination-name { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.destination-name h3 { margin: 0; font-size: 1.4rem; }
.destination-name p { margin: 2px 0 0; color: var(--muted); }
.flag { font-size: 2.3rem; }
.content-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.side-stack { display: grid; gap: 18px; align-content: start; }
.weather-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border-radius: 14px; background: var(--mint-100); }
.weather-temp { font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.weather-summary p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }
.weather-icon { font-size: 2rem; }
.packing-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.priority { padding: 4px 8px; border-radius: 999px; background: #FCF3DF; color: var(--warn); font-size: .67rem; font-weight: 800; }
.priority.critical { background: #FBEDEC; color: #943832; }
.priority.normal { background: var(--mint-100); color: var(--mint-700); }
.check-item.done { background: var(--mint-100); border-color: var(--mint-300); }

/* ---------- SEO + related content ---------- */
.seo-content, .seo-tool-related, .related-tools { line-height: 1.75; }
.seo-content h2, .seo-content h3, .seo-tool-related h2, .related-tools h2 { color: var(--ink); }
.seo-content p, .seo-content li, .seo-content ol { color: var(--text); }
.seo-content a, .related-tools a, .seo-tool-related a, .tool-seo-directory a { color: var(--mint-700); text-underline-offset: 3px; }
.seo-content a:hover, .related-tools a:hover, .seo-tool-related a:hover { color: var(--mint-600); }
.seo-faq details { padding: 13px 0; border-top: 1px solid var(--line); }
.seo-faq summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.seo-faq details p { margin: 9px 0 0; color: var(--muted); }
.related-tools ul { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0 0 14px; }
.related-tools li a, .seo-tool-related li a {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid var(--mint-300);
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--mint-700);
  font-weight: 600;
  text-decoration: none;
}
.related-tools li a:hover, .seo-tool-related li a:hover { background: var(--mint-200); }
.related-tools .related-home, .seo-tool-related .related-home { font-weight: 700; }
.related-tools h2, .seo-tool-related h2 { margin-bottom: 8px; font-size: 1.2rem; }
.related-tools p, .seo-tool-related p { margin-bottom: 12px; }

/* ---------- Code and output ---------- */
pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
  border: 1px solid #0B4A3C;
  border-radius: 14px;
  background: #0B4A3C;
  color: #ECFFF8;
  font-size: .86rem;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}
code { padding: .12em .38em; border-radius: 6px; background: var(--mint-100); color: #065C49; font-size: .9em; }
pre code { padding: 0; background: transparent; color: inherit; font-size: inherit; }
.tool-output, .d-code {
  border: 1px solid #0B4A3C;
  border-radius: 14px;
  background: #0B4A3C;
  color: #ECFFF8;
}
.tool-output *, .d-code * { color: #ECFFF8; }
.tool-output-label { color: var(--mint-300); }
.tool-output-value { color: #FFFFFF; font-weight: 700; }

/* ---------- Tables and long content ---------- */
.table-wrap, .legal-table { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .88rem; }
th { color: var(--ink); font-weight: 700; }

/* ---------- Legal extras ---------- */
.legal-card a { color: var(--mint-700); text-underline-offset: 3px; }
.legal-card ul, .legal-card ol { padding-left: 20px; }
.legal-footer { margin-top: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .sport-hero, .p-hero, .house-hero, .hero, .tool-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .dashboard-grid, .content-grid, .columns { grid-template-columns: minmax(0, 1fr); }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts, .quick-facts, .notes-grid, .weather, .weather-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sport-stats, .stats, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  body { overflow-x: hidden; }
  .topbar, .sport-topbar, .tool-top, .p-top, .bar, .house-top,
  .legal-topbar, .d-topbar, .seo-tool-header {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 60px;
    padding: 10px 16px;
  }
  .brand, .sport-brand, .tool-brand, .p-brand, .house-brand, .legal-brand { max-width: 72%; }
  .brand img, .sport-brand img, .tool-brand img, .p-brand img,
  .house-brand img, .legal-brand img { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; }
  .brand, .sport-brand, .tool-brand, .p-brand, .house-brand, .legal-brand { font-size: 1rem; }
  .back, .sport-back, .tool-back, .p-back, .house-back,
  .legal-home, .d-back, .launcher-link { min-height: 38px; padding: 8px 11px; font-size: .78rem; }

  main, .sport-main, .p-main, .house-main, .tool-main, .d-main,
  .seo-tool-main, .legal-wrap {
    width: 100%;
    max-width: 100%;
    padding: 22px 16px 60px;
  }
  .app-breadcrumb { padding: 10px 16px 0; font-size: .8rem; }

  h1, .sport-hero h1, .p-hero h1, .house-hero h1, .hero h1,
  .tool-hero h1, .legal-hero h1, .d-hero h1, .seo-tool-hero h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -.03em;
  }
  .lead, .sport-lead, .hero-text { font-size: .98rem; }

  .sport-card, .sport-panel, .card, .panel, .tool-card, .d-card,
  .legal-card, .seo-content, .seo-tool-related, .related-tools,
  .trip-form, .score-card, .info-card, .legal-hero { padding: 16px; border-radius: 18px; }
  .seo-content, .related-tools { margin-inline: 0; }

  .field-grid, .form-grid, .sport-grid, .tool-grid, .grid,
  .two, .week, .columns, .room-grid,
  .field-grid.two, .form-grid.two, .sport-grid.two, .tool-grid.two {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-grid, .content-grid { grid-template-columns: minmax(0, 1fr); }
  .stats, .sport-stats, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .quick-facts, .facts, .notes-grid, .weather, .weather-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packing-list { grid-template-columns: 1fr; }
  .item { grid-template-columns: auto minmax(0, 1fr); }
  .item > :last-child { grid-column: 2; }
  .check-item { grid-template-columns: auto minmax(0, 1fr); }
  .priority { grid-column: 2; width: max-content; }
  .lap { grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr); font-size: .78rem; }
  .score-card { align-items: flex-start; }
  .score-ring { width: 84px; height: 84px; }

  input, select, textarea,
  .field input, .field select, .sport-field input,
  .sport-field select, .tool-field input, .tool-field select {
    min-height: 46px;
    font-size: 16px;
  }
  button, .sport-btn, .btn, .tool-btn, .primary-btn, .secondary-btn,
  .open-app, .seo-tool-cta, .d-primary { min-height: 46px; max-width: 100%; touch-action: manipulation; }
  .result-actions { width: 100%; }
  .result-actions > * { flex: 1; }
  table { min-width: 540px; }
}

@media (max-width: 420px) {
  .stats, .sport-stats, .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .notes-grid, .facts, .quick-facts { grid-template-columns: minmax(0, 1fr); }
  .weather, .weather-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-pills span { font-size: .72rem; }
  .check-item, .item { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
