/* mobile.css — ASTRO Mobile v3.1 */

:root {
  --fire:    #D85A30;
  --up:      #185FA5;
  --hold:    #5F5E5A;
  --close:   #BA7517;
  --down:    #A32D2D;
  --fire-bg: #FDF1EC;
  --up-bg:   #EBF3FB;
  --hold-bg: #F4F4F4;
  --close-bg:#FDF5E6;
  --down-bg: #FBEDED;
  --brand1:  #5B4FC7;
  --brand2:  #7668E2;
  --bg:      #F2F3F8;
  --card-bg: #FFFFFF;
  --border:  #E6E7EE;
  --text:    #1A1A2E;
  --muted:   #6B6B80;
  --radius:  16px;
  --topbar-h:52px;
  --nav-h:   60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

/* ── Topbar (M1b.3 · v7.46: reset — .topbar je jen shell wrapper legacy;
 *   layout řídí .fd-topbar / .dg-topbar. Non-fixed, non-sticky.) */
.topbar {
  position: static;
  width: 100%;
  height: auto;
  background: transparent;
  display: block;
  padding: 0;
  z-index: auto;
}
.topbar-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.08em;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topbar-lang {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.topbar-lang:hover { background: rgba(255,255,255,0.26); }
.iconbtn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 3px 6px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.iconbtn:hover { background: rgba(255,255,255,0.26); }
.hamburger {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

/* ── Lang dropdown ──────────────────────────────────────────────────────── */
.lang-dropdown {
  position: fixed;
  top: calc(var(--topbar-h) + 2px);
  right: 56px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 150;
  overflow: hidden;
  min-width: 96px;
}
.lang-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.lang-dropdown-item:last-child { border-bottom: none; }
.lang-dropdown-item:hover { background: var(--bg); }

/* ── Drawer ─────────────────────────────────────────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: none;
}
.drawer-overlay.open { display: block; }
.drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 300;
  padding: 0;
  transition: right 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 16px rgba(0,0,0,0.12);
}
.drawer.open { right: 0; }
.drawer-header {
  background: var(--brand1);
  color: #fff;
  font-weight: 700;
  padding: 18px 20px;
  font-size: 1rem;
  letter-spacing: 0.06em;
}
.drawer-section {
  padding: 16px 20px 8px;
  border-bottom: 1px solid var(--border);
}
.drawer-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}
.lang-pills {
  display: flex;
  gap: 8px;
}
.lang-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.lang-pill.active {
  background: var(--brand1);
  color: #fff;
  border-color: var(--brand1);
}
.drawer-item {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.drawer-item:hover { background: var(--bg); }
button.drawer-item { background: none; border: none; cursor: pointer; width: 100%; text-align: left; }
.drawer-item-rich {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.drawer-item-icon { font-size: 1.1rem; padding-top: 1px; }
.drawer-item-content { display: flex; flex-direction: column; }
.drawer-item-label { font-weight: 500; }
.drawer-item-hint { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.drawer-version {
  padding: 12px 20px;
  font-size: 0.78rem;
  color: var(--muted);
}
.drawer-section-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0 6px;
  border-bottom: 1px solid var(--border);
}
.drawer-section-scroll > .drawer-label { padding: 0 20px; margin-bottom: 6px; }
.drawer-sublabel {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 20px 3px;
}
.drawer-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 16px 10px;
}
.drawer-top-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: background 0.15s;
}
.drawer-top-card:hover { background: #F4F3FE; }
.drawer-top-card-icon {
  font-size: 1.3rem;
  color: var(--brand1);
  line-height: 1;
}
.drawer-top-card-title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
}
.drawer-top-card-hint {
  font-size: 0.69rem;
  color: var(--muted);
  line-height: 1.2;
}
.drawer-item-analysis { padding: 10px 16px; }
.drawer-item-icon-sq {
  width: 32px;
  min-width: 32px;
  height: 32px;
  background: #EEEDFE;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.drawer-item-icon-sq--amber { background: #FEF3E2; }
.drawer-ext {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
  padding-left: 4px;
  align-self: center;
}
.drawer-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 5px 16px 10px;
}
.drawer-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  background: #F8F8FB;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  transition: background 0.15s;
}
.drawer-tile:hover { background: #EEEDFE; }
.drawer-tile-icon { font-size: 1.2rem; }
.drawer-tile-lbl { line-height: 1.2; }
.drawer-item-cache {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: var(--text);
  font-size: 0.95rem;
}
.drawer-item-cache:hover { background: #FEF9EC; }
.drawer-open-hint {
  font-size: 0.7rem;
  color: var(--muted);
  padding: 5px 20px 2px;
  margin: 0;
}
.drawer-footer {
  padding: 10px 20px;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ── Screens container (M1b.3: hlavička už není fixed, nepotřebuje
 *   padding-top; jediný fixed prvek zůstává spodní navigace). */
.screens {
  padding-top: 0;
  padding-bottom: var(--nav-h);
  min-height: 100dvh;
}
.screen { display: block; }
.screen.hidden { display: none; }
.screen-pad { padding: 16px; }

/* ── Bottom nav ─────────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-h);
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
}
.nav-tab {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.18s;
}
.nav-tab.active { color: var(--brand1); }
.nav-icon { font-size: 1.25rem; line-height: 1; }
.nav-label { font-size: 0.7rem; font-weight: 500; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
}
.section-card { padding: 16px; }
.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

/* ── Hero card ──────────────────────────────────────────────────────────── */
.hero-card {
  background: linear-gradient(135deg, var(--brand1) 0%, var(--brand2) 100%);
  color: #fff;
  border-radius: 0;
  padding: 0;
}
.profile-switcher { padding: 12px 16px 0; }
/* ── PG-N4 · Lišta lidí (.pb) — Dnes (hero), Plánovač (tělo), rozklik dne ──
 * Vlevo iniciály oblíbených, vpravo „Jméno ▾"; rozbalení .pb-menu v <body>.
 * Výška řádku = dřívější řádek chipů (žádný posun hero). RULE 20: kopie
 * v daygate_app/static/mobile.css. */
.pb-host { display: block; overflow: visible; }
.planner-people-bar { margin-bottom: 14px; }
.pb { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.pb-favs {
  display: flex; gap: 6px; flex: 1; min-width: 0;
  overflow: hidden; padding: 1px 2px;
}
.pb-av {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 800; font-size: 0.68rem; line-height: 1; letter-spacing: .3px; cursor: pointer;
  border: 2px solid var(--border); background: #fff; color: var(--brand1);
  transition: background .15s, border-color .15s, color .15s;
}
.pb-av[hidden] { display: none; }
.pb-av:hover { border-color: var(--brand2); }
.pb-body .pb-av.on { background: var(--brand1); color: #fff; border-color: var(--brand1); }
.pb-hero .pb-av { border-color: rgba(255,255,255,.55); }
.pb-hero .pb-av.on { background: #FFB84D; color: #2b1f6b; border-color: #fff; box-shadow: 0 0 0 2px var(--brand1); }
.pb-pick {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  max-width: 220px; height: 30px; padding: 0 10px 0 12px; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 0.82rem; line-height: 1; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--border); background: #fff; color: var(--text);
}
.pb-hero .pb-pick { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.45); }
.pb-pick-nm { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pb-pick-av { display: none; font-weight: 800; font-size: 0.7rem; }
.pb-car { opacity: .8; font-size: 0.7rem; }
.pb-div { flex: none; width: 1px; height: 24px; background: rgba(255,255,255,.35); }
.day-pb-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.day-pb-row .back-btn { margin-bottom: 0; flex: none; white-space: nowrap; }
.day-people-bar { flex: 1; min-width: 0; }
@media (pointer: coarse), (max-width: 599px) {
  .pb-favs { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .pb-favs::-webkit-scrollbar { display: none; }
}
@media (max-width: 419px) {
  .pb-pick { padding: 0 9px; }
  .pb-pick-nm { display: none; }
  .pb-pick-av { display: inline; }
}
/* rozbalení — jeden prvek v <body>, nad všemi vrstvami (today-picker měl 9500) */
.pb-menu {
  position: fixed; z-index: 9600; width: 320px; max-height: 420px;
  display: flex; flex-direction: column;
  background: #fff; color: var(--text); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(20,16,60,.28); padding: 8px;
}
.pb-menu.hidden { display: none; }
.pb-menu-head { display: flex; gap: 6px; align-items: center; }
.pb-search {
  flex: 1; min-width: 0; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 7px 10px; font: inherit; font-size: 0.85rem; outline: none;
}
.pb-search:focus { border-color: var(--brand1); }
.pb-x {
  flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 18px; cursor: pointer;
}
.pb-x:hover { background: var(--bg); color: var(--text); }
.pb-hint { display: flex; justify-content: space-between; gap: 8px; font-size: 0.72rem; color: var(--muted); padding: 6px 6px 4px; }
.pb-hint-empty { color: var(--brand1); font-weight: 600; }
.pb-list { overflow-y: auto; min-height: 0; flex: 1; }
.pb-row {
  display: flex; align-items: center; gap: 8px; padding: 5px 6px;
  border-radius: 8px; cursor: pointer; color: inherit; text-decoration: none;
}
.pb-row:hover { background: #f1f0fa; }
.pb-row.on { background: #ece9fb; }
.pb-av-sm { width: 26px; height: 26px; font-size: 0.62rem; border-width: 1.5px; cursor: inherit; background: #efeefc; border-color: #dcd8f5; }
.pb-nm { flex: 1; min-width: 0; font-size: 0.84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-star {
  flex: none; border: 0; background: transparent; font-size: 17px; line-height: 1;
  color: #cfcfd8; cursor: pointer; padding: 2px 4px;
}
.pb-star.on { color: #E8A21B; }
.pb-star:disabled { opacity: .35; cursor: not-allowed; }
.pb-row-tier, .pb-locked { cursor: default; }
.pb-row-tier .pb-av, .pb-row-tier .pb-nm, .pb-locked .pb-av, .pb-locked .pb-nm { opacity: .5; }
.pb-locked { cursor: pointer; }
.pb-lock { flex: none; font-size: 0.7rem; color: var(--brand1); font-weight: 600; white-space: nowrap; }
.pb-foot { border-top: 1px solid var(--border); margin-top: 6px; padding: 8px 6px 2px; font-size: 0.8rem; }
.pb-foot a { color: var(--brand1); text-decoration: none; font-weight: 600; }

.hero-body { padding: 12px 16px 10px; }
.hero-date {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 4px;
}
.hero-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.hero-donut-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.donut {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
}
.hero-score-block {}
.hero-score {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}
.hero-verdict {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 4px;
}
.hero-sub {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 3px;
  max-width: 220px;
}

/* ── 7-day strip — style B (inside hero) ────────────────────────────────── */
.strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 8px 12px 14px;
}
.strip-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.strip-day {
  height: 36px;
  width: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: opacity 0.15s;
}
.strip-wrapper.strip-past .strip-day { opacity: 0.55; }
.strip-wrapper.today-strip .strip-day {
  outline: 2.5px solid #fff;
  outline-offset: 2px;
}
.strip-abbr {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.85);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.strip-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.strip-strong-dot {
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
}

/* ── Strong teaser ──────────────────────────────────────────────────────── */
.strong-teaser {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--brand1);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.strong-teaser:empty { display: none; }

/* ── A-cell shared component (people today, connections grid) ───────────── */
.today-people-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.a-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.a-cell-svg { display: block; overflow: visible; }
.a-cell-name {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a-cell-score {
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

/* ── Tip ────────────────────────────────────────────────────────────────── */
.tip-text { font-size: 0.9rem; line-height: 1.5; color: var(--text); }

/* ── Section title ──────────────────────────────────────────────────────── */
.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ── Screen title ───────────────────────────────────────────────────────── */
.screen-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

/* ── Month nav ──────────────────────────────────────────────────────────── */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.month-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--brand1);
}
.month-label {
  font-size: 1rem;
  font-weight: 700;
}

/* ── Calendar grid ──────────────────────────────────────────────────────── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.cal-day-header {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 0;
}
.cal-day {
  aspect-ratio: 1;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s;
  color: #fff;
  position: relative;
}
.cal-day.today-cal {
  outline: 2.5px solid var(--brand1);
  outline-offset: 2px;
  box-shadow: none;
}
.cal-day.outside { background: #e9eaf0 !important; color: var(--muted); pointer-events: none; }
.cal-day-num { line-height: 1; font-size: 15px; font-weight: 700; }

/* ── Calendar legend with toggle ────────────────────────────────────────── */
.cal-legend {
  margin-bottom: 12px;
}
.legend-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 8px;
}
.legend-toggle-btn:hover { background: var(--bg); }
.legend-items-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}
.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ── Go/slow card ───────────────────────────────────────────────────────── */
.go-slow-card { padding: 14px; }
.go-slow-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 8px 0 6px;
}
.go-slow-title:first-child { margin-top: 0; }
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.day-chip {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid currentColor;
}
.day-chip.up   { color: var(--up);   background: var(--up-bg); }
.day-chip.fire { color: var(--fire); background: var(--fire-bg); }
.day-chip.down { color: var(--down); background: var(--down-bg); }
.day-chip.close{ color: var(--close);background: var(--close-bg); }
/* T2.1 KROK 4: locked slot chip — same footprint as real chip, muted. */
.day-chip.day-chip-locked {
  color: var(--muted);
  background: rgba(91, 79, 199, 0.06);
  border-color: rgba(91, 79, 199, 0.30);
  cursor: pointer;
  min-width: 32px;
  text-align: center;
}

/* ── PRO teaser ─────────────────────────────────────────────────────────── */
.pro-teaser {
  background: linear-gradient(135deg, #f0eeff, #e8e4ff);
  border: 1.5px solid #c4bcf5;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--brand1);
  margin-bottom: 12px;
}
.pro-teaser:empty { display: none; }

/* ── People card list (people screen) ───────────────────────────────────── */
.people-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.person-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.15s;
}
.person-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.person-card-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand1);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.person-card-body { flex: 1; min-width: 0; }
.person-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.person-card-sub {
  font-size: 0.75rem;
  color: var(--brand1);
  font-weight: 600;
  margin-bottom: 2px;
}
.person-card-bio {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person-card-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.person-card-big-score {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}
.person-card-pill {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.person-card-star {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--muted);
  padding: 2px;
  line-height: 1;
  align-self: flex-end;
}
.person-card-star.active { color: #F5A623; }

/* ── Signal ring variants for people grid ───────────────────────────────── */
.sig-ring-fire  { background: var(--fire-bg); border-color: var(--fire);  color: var(--fire);  }
.sig-ring-up    { background: var(--up-bg);   border-color: var(--up);    color: var(--up);    }
.sig-ring-hold  { background: var(--hold-bg); border-color: var(--hold);  color: var(--hold);  }
.sig-ring-close { background: var(--close-bg);border-color: var(--close); color: var(--close); }
.sig-ring-down  { background: var(--down-bg); border-color: var(--down);  color: var(--down);  }

/* .profile-card kept as a JS query-selector hook for smoke tests only — no visual rules */
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand1);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-card-body { flex: 1; min-width: 0; }
.profile-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.role-chip {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 10px;
  background: #f0eeff;
  color: var(--brand1);
  font-weight: 600;
}
.profile-card-sub {
  font-size: 0.8rem;
  color: var(--brand1);
  font-weight: 600;
  margin-top: 2px;
}
.profile-card-bio {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.fav-star {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.fav-star.active { color: #F5A623; }

/* ── Connections ────────────────────────────────────────────────────────── */
.conn-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.conn-all-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.conn-avatars {
  margin-bottom: 4px;
}
.conn-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.18s;
}
.conn-avatar.selected {
  border-color: var(--brand1);
  background: #f0eeff;
  color: var(--brand1);
}
.conn-fav-avatar {
  border-style: solid;
}
.conn-result { }
.conn-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.conn-big-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand1);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.conn-vs { font-size: 1.2rem; color: var(--muted); }
/* T2.1 KROK 5: composite headline row inside the pair card. */
.conn-composite-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 6px 0 10px;
}
.conn-composite-score { font-size: 2rem; font-weight: 800; line-height: 1; }
.conn-composite-100 { font-size: 0.85rem; font-weight: 700; opacity: 0.6; margin-left: 2px; }
.conn-composite-pill {
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.conn-dynamic { font-size: 1rem; font-weight: 700; text-align: center; margin-bottom: 8px; }
.conn-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.conn-row:last-child { border-bottom: none; }
.conn-row-label { color: var(--muted); font-weight: 600; }
.conn-row-value { font-weight: 700; }
.stars { color: #F5A623; letter-spacing: 2px; }

/* ── Duo 7-day table ────────────────────────────────────────────────────── */
.duo-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.duo-table-row {
  display: grid;
  grid-template-columns: 36px 1fr 1fr;
  gap: 4px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.duo-table-row:last-child { border-bottom: none; }
.duo-table-row.duo-today { background: #f0eeff; border-radius: 6px; }
.duo-table-header {
  display: grid;
  grid-template-columns: 36px 1fr 1fr;
  gap: 4px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.duo-table-cell { text-align: center; }
.duo-date { color: var(--muted); font-weight: 700; font-size: 0.75rem; }
.duo-score {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 700;
  color: #fff;
  font-size: 0.78rem;
}

/* ── Detail header ──────────────────────────────────────────────────────── */
.brand-bg {
  background: linear-gradient(135deg, var(--brand1) 0%, var(--brand2) 100%);
  color: #fff;
  padding: 16px 16px 20px;
}
.back-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 12px;
  cursor: pointer;
  margin-bottom: 10px;
  font-weight: 600;
}
.detail-header-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 3px;
}
.detail-header-ctx {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 10px;
}
.detail-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.detail-big-score {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}
.signal-pill {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.verdict-box { margin-top: 8px; }
.verdict-title { font-size: 0.95rem; font-weight: 700; }
.verdict-sub   { font-size: 0.78rem; opacity: 0.85; margin-top: 3px; }
.header-chips  { flex-wrap: wrap; gap: 6px; padding: 0; }
.header-chip {
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ── Day nav ────────────────────────────────────────────────────────────── */
.day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}
.day-nav-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--brand1);
}
.today-btn {
  background: var(--brand1);
  color: #fff;
  border-color: var(--brand1);
}

/* ── Areas grid ─────────────────────────────────────────────────────────── */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.area-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px 12px;
}
.area-icon { font-size: 1.3rem; margin-bottom: 6px; }
.area-name { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.05em; }
.area-text { font-size: 0.82rem; line-height: 1.45; color: var(--text); }
.astro-ctx-card { padding: 14px; }
.astro-ctx-text { font-size: 0.88rem; color: var(--text); line-height: 1.5; }
.transit-item { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; }
.transit-item:last-child { border-bottom: none; }

/* ── Person detail ──────────────────────────────────────────────────────── */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.tag {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--up-bg);
  color: var(--up);
}
.tags-row.neg .tag {
  background: var(--down-bg);
  color: var(--down);
}
.axes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.axis-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px;
}
.axis-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.axis-value { font-size: 0.85rem; font-weight: 600; color: var(--text); }

/* ── Pinnacle timeline (tappable) ───────────────────────────────────────── */
.pinnacle-timeline {
  display: flex;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  gap: 2px;
  margin-bottom: 8px;
}
.pin-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: rgba(91,79,199,0.5);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.18s;
  overflow: hidden;
  white-space: nowrap;
}
.pin-seg:hover { background: rgba(91,79,199,0.75); }
.pin-seg.current { background: var(--brand1); }
.pin-seg.pin-selected { background: #3d329e; outline: 2px solid var(--brand2); }
.pinnacle-panel {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.45;
}
.pinnacle-now-label {
  font-size: 0.82rem;
  color: var(--brand1);
  font-weight: 600;
}

/* ── Accordions ─────────────────────────────────────────────────────────── */
.accordion {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  overflow: hidden;
}
.acc-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 16px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}
.acc-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.2s;
}
.acc-trigger.open .acc-arrow { transform: rotate(90deg); }
.acc-body { padding: 0 16px 14px; }
.acc-body.hidden { display: none; }
.pro-acc { color: var(--brand1); }
.pro-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--brand1);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.acc-locked-text {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 8px 0;
}

/* Seal item inside accordion */
.seal-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.seal-item:last-child { border-bottom: none; }
.seal-name { font-weight: 700; font-size: 0.88rem; }
.seal-sub  { font-size: 0.8rem; color: var(--brand1); margin: 2px 0; }
.seal-text { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.num-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.num-row:last-child { border-bottom: none; }
.num-label { color: var(--muted); }
.num-value { font-weight: 700; }
.west-row, .east-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.west-row:last-child, .east-row:last-child { border-bottom: none; }
.west-label, .east-label { color: var(--muted); }
.west-value, .east-value { font-weight: 700; }

/* ── Signal colors ──────────────────────────────────────────────────────── */
.sig-fire  { background: var(--fire); }
.sig-up    { background: var(--up); }
.sig-hold  { background: var(--hold); }
.sig-close { background: var(--close); }
.sig-down  { background: var(--down); }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26,26,46,0.9);
  color: #fff;
  padding: 10px 18px;
  border-radius: 22px;
  font-size: 0.88rem;
  z-index: 500;
  max-width: 320px;
  text-align: center;
  pointer-events: none;
}
.toast.hidden { display: none; }

/* ── Utility ────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.btn-outline {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--border);
  background: transparent;
  color: var(--brand1);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin-bottom: 12px;
}
.btn-outline:hover { background: #f0eeff; }

/* ── Loading skeleton ───────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #e8e9f0 25%, #f4f4f8 50%, #e8e9f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Connections A-cell grid ────────────────────────────────────────────── */
.conn-full-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.conn-grid-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  position: relative;
}
.conn-grid-name {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conn-check-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand1);
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  border: 1.5px solid #fff;
}

/* ── Lang dropdown active item ──────────────────────────────────────────── */
.lang-dropdown-item.active-lang {
  color: var(--brand1);
  background: #f0eeff;
}
.lang-dropdown-item.active-lang::after {
  content: ' ✓';
  font-weight: 900;
}

/* ── Bottom nav active indicator bar ────────────────────────────────────── */
.nav-tab.active .nav-icon { color: var(--brand1); }
.nav-tab.active .nav-label { color: var(--brand1); font-weight: 700; }
.nav-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 26px;
  height: 3px;
  background: var(--brand1);
  border-radius: 0 0 3px 3px;
}
.nav-tab { position: relative; }

/* ── Connections sticky bar ─────────────────────────────────────────────── */
.conn-sticky-bar {
  position: sticky;
  top: var(--topbar-h);
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.conn-sticky-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.conn-sticky-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.conn-sticky-names {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conn-change-btn {
  background: none;
  border: 1.5px solid var(--brand1);
  border-radius: 8px;
  color: var(--brand1);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.conn-change-btn:hover { background: #f0eeff; }

/* ── Person header redesign ─────────────────────────────────────────────── */
.person-header-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.person-zodiac-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.person-header-info {
  flex: 1;
  min-width: 0;
}
.person-birth-weekday {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-top: 2px;
  font-style: italic;
}
.person-header-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

/* ── Energy mini donut (62px) ───────────────────────────────────────────── */
.energy-donut-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.energy-donut-wrap {
  position: relative;
  flex-shrink: 0;
}
.energy-donut {
  width: 62px;
  height: 62px;
}
.energy-info {}
.energy-verdict { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.energy-sub     { font-size: 0.78rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }

/* ── Colored number cards ───────────────────────────────────────────────── */
.num-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.num-card {
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.num-card-lp    { background: #E3EDF8; }
.num-card-phase { background: #FBF0DC; }
.num-card-year  { background: #EBE7FA; }
.num-card-icon  { font-size: 1rem; line-height: 1; }
.num-card-big   { font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.num-card-lp    .num-card-big  { color: #17456E; }
.num-card-phase .num-card-big  { color: #8A5E10; }
.num-card-year  .num-card-big  { color: #4A3FA8; }
.num-card-label { font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.num-card-name  { font-size: 0.62rem; font-weight: 700; text-align: center; color: var(--muted); margin-top: 1px; }
.personal-month-box {
  background: #EBE7FA;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.pm-box-num  { font-size: 1.4rem; font-weight: 900; color: #4A3FA8; }
.pm-box-info { font-size: 0.8rem; color: #4A3FA8; line-height: 1.3; }

/* ── 2×2 West / East grids ──────────────────────────────────────────────── */
.west-grid, .east-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.west-cell, .east-cell {
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.west-cell.elem-fire,  .east-cell.elem-fire  { background: #FBEAE3; }
.west-cell.elem-earth, .east-cell.elem-earth { background: #E8F0E4; }
.west-cell.elem-air,   .east-cell.elem-air   { background: #EBE7FA; }
.west-cell.elem-water, .east-cell.elem-water { background: #E4EEF7; }
.west-cell.elem-metal  { background: #F0F0F0; }
.west-cell.elem-wood   { background: #E8F5E9; }
.west-cell-label, .east-cell-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.west-cell-val, .east-cell-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Seal emoji tiles ───────────────────────────────────────────────────── */
.seal-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.seal-tile:last-child { border-bottom: none; }
.seal-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #F0EEFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.seal-tile-body {}
.seal-tile-name { font-weight: 700; font-size: 0.88rem; margin-bottom: 2px; }
.seal-tile-sub  { font-size: 0.78rem; color: var(--brand1); margin-bottom: 4px; }
.seal-tile-text { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

/* ── Personality chips (colored) ────────────────────────────────────────── */
.tag-pos {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #E7F2EA;
  color: #2E6B45;
}
.tag-neg {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #FBF0DC;
  color: #9A6A12;
}
.axis-emoji { margin-right: 2px; }

/* ── Element contrast card ──────────────────────────────────────────────── */
.elem-contrast-card {
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.elem-contrast-title { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.elem-contrast-sub   { font-size: 0.82rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.elem-contrast-text  { font-size: 0.85rem; line-height: 1.5; color: var(--text); }

/* ── Composite character card ───────────────────────────────────────────── */
.composite-char-card {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand1);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.composite-char-card.elem-fire  { border-left-color: var(--fire); }
.composite-char-card.elem-earth { border-left-color: #5A8A3A; }
.composite-char-card.elem-air   { border-left-color: var(--brand1); }
.composite-char-card.elem-water { border-left-color: var(--up); }
.composite-char-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.composite-char-val   { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.composite-char-text  { font-size: 0.83rem; line-height: 1.5; color: var(--muted); }

/* ── Duo table with composite K1 column ─────────────────────────────────── */
.duo-table-row-4 {
  display: grid;
  grid-template-columns: 36px 1fr 1fr 1fr;
  gap: 4px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.duo-table-row-4:last-child { border-bottom: none; }
.duo-table-row-4.duo-today { background: #f0eeff; border-radius: 6px; }
.duo-table-header-4 {
  display: grid;
  grid-template-columns: 36px 1fr 1fr 1fr;
  gap: 4px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}
/* K1 composite column (4th child) highlight */
.duo-table-row-4 > div:nth-child(4),
.duo-table-header-4 > div:nth-child(4) {
  background: #EFEDFB;
  border-left: 2px solid #D9D4F4;
  border-radius: 0 4px 4px 0;
  padding: 2px 4px;
}
.duo-table-row-4.duo-today > div:nth-child(4) {
  background: #E4E0F8;
}
.duo-comp-score {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff !important;
}

/* ── Past rows opacity ──────────────────────────────────────────────────── */
.duo-table-row-4.past,
.duo-table-row.past { opacity: 0.55; }

/* ── Duo table title row with legend button ─────────────────────────────── */
.duo-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.legbtn {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand1);
  background: #F1EFFC;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
}
.duo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 8px;
  font-size: 0.75rem;
}
.duo-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.duo-legend.hidden { display: none; }

/* ── Duo K1 column explicit class ───────────────────────────────────────── */
.duo-kom {
  background: #EFEDFB;
  border-left: 2px solid #D9D4F4;
  border-radius: 0 4px 4px 0;
  padding: 2px 4px;
}
.duo-table-row-4.duo-today .duo-kom { background: #E4E0F8; }

/* ── Seal emoji tile ─────────────────────────────────────────────────────── */
.d2-seal-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.d2-seal-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.d2-seal-name {
  font-size: 12.5px;
  font-weight: 700;
}
.d2-seal-sub {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 1px;
}

/* ── Number card second label line ──────────────────────────────────────── */
.d2-num-l {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.d2-num-l2 {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 1px;
  word-break: break-word;
}

/* ── Month VHODNÉ PRO / POZOR NA headers ────────────────────────────────── */
.d2-mes-hdr {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-top: 8px;
}
.d2-mes-hdr-g { color: #2E7D52; }
.d2-mes-hdr-r { color: var(--down); }

/* ── Planner segmented control ──────────────────────────────────────────── */
.planner-seg {
  display: flex;
  gap: 4px;
  background: #e9eaf2;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 10px;
}
.planner-seg-btn {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  cursor: pointer;
  transition: all 0.18s;
}
.planner-seg-btn.active {
  background: #fff;
  color: var(--brand1);
  box-shadow: 0 2px 6px rgba(40,30,90,.1);
}

/* ── Planner ribbon (Rhythm mode sparkline) ─────────────────────────────── */
.planner-ribbon-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 12px 6px;
  margin-bottom: 10px;
}
.planner-ribbon-label {
  font-size: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

/* ── Calendar signal glyph (heat mode — centered in flex column) ─────────── */
.cal-glyph {
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
  line-height: 1;
  color: #fff;
  opacity: 0.95;
}

/* ── Calendar signal glyph (rhythm mode — inherits cell color: white on
   colored signal cells, muted on stable). Unified with .cal-glyph in
   RM1 (v7.64) — was previously inline-styled per-signal in mobile.js
   which made the icon invisible on colored cells. ────── */
.cal-rhythm-glyph {
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
  line-height: 1;
  color: inherit;
  opacity: 0.95;
}
.cal-grid-rhythm .cal-day.sig-hold .cal-rhythm-glyph { color: #6E6E80; }

/* ── Calendar heat + rhythm modes: signal gradients (FS1: rhythm inherits
   heatmap coloring, K1 value in bottom-right, no white override). ────── */
.cal-grid-heat   .cal-day.sig-fire,
.cal-grid-rhythm .cal-day.sig-fire  { background: linear-gradient(160deg,#e9743f,#D85A30); box-shadow: 0 3px 8px rgba(40,30,90,.12); color: #fff; }
.cal-grid-heat   .cal-day.sig-up,
.cal-grid-rhythm .cal-day.sig-up    { background: linear-gradient(160deg,#2f78bf,#185FA5); box-shadow: 0 3px 8px rgba(40,30,90,.12); color: #fff; }
.cal-grid-heat   .cal-day.sig-hold,
.cal-grid-rhythm .cal-day.sig-hold  { background: #e7e8ef; color: #9a9aa8; box-shadow: none; }
.cal-grid-heat   .cal-day.sig-close,
.cal-grid-rhythm .cal-day.sig-close { background: linear-gradient(160deg,#d39a36,#BA7517); box-shadow: 0 3px 8px rgba(40,30,90,.12); color: #fff; }
.cal-grid-heat   .cal-day.sig-down,
.cal-grid-rhythm .cal-day.sig-down  { background: linear-gradient(160deg,#bf4040,#A32D2D); box-shadow: 0 3px 8px rgba(40,30,90,.12); color: #fff; }
.cal-grid-heat   .cal-day.outside,
.cal-grid-rhythm .cal-day.outside   { background: #e9eaf0 !important; box-shadow: none; }

/* Rhythm layout tweaks (K1 needs relative positioning). No color override. */
.cal-grid-rhythm .cal-day { position: relative; }

/* FS1: K1 value in bottom-right corner (rhythm mode only). */
.cal-grid-rhythm .cal-day .fs-cell-value {
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  opacity: .8;
  color: #fff;
  pointer-events: none;
}
.cal-grid-rhythm .cal-day.sig-hold .fs-cell-value { color: #6E6E80; }
.cal-grid-heat   .cal-day .fs-cell-value { display: none; }

/* FS1: chart hover sync — cell gets an inset brand ring while its dot is hot. */
.cal-grid-rhythm .cal-day[data-fs-hover] {
  box-shadow: inset 0 0 0 3px #5B4FC7;
}

/* RM1 (v7.64): Rytmus mobile M2 cell (<=480 px). Date big on top, glyph +
   K1 value inline row at bottom. Desktop cell (K1 in corner) unchanged.
   Heatmapa unchanged. */
@media (max-width: 480px) {
  .cal-grid-rhythm .cal-day {
    aspect-ratio: auto;
    height: 46px;
    border-radius: 9px;
    padding: 4px 4px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .cal-grid-rhythm .cal-day .cal-day-num {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.05;
    margin-top: 0;
  }
  .cal-grid-rhythm .cal-day .cal-rhythm-glyph {
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(calc(-50% - 8px));
    font-size: 9px;
    line-height: 1;
    margin-top: 0;
    opacity: .9;
  }
  .cal-grid-rhythm .cal-day .fs-cell-value {
    position: absolute;
    right: auto;
    left: 50%;
    bottom: 2px;
    transform: translateX(calc(-50% + 6px));
    font-size: 10.5px;
    font-weight: 800;
    opacity: .9;
    line-height: 1;
  }
  .cal-grid-rhythm .cal-day.sig-hold .fs-cell-value {
    transform: translateX(-50%);
  }
}
.cal-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ── Legend expanded ────────────────────────────────────────────────────── */
.legend-expanded {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px 14px 12px;
  margin-bottom: 12px;
}
.legend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
}
.legend-header-title { font-size: 13px; font-weight: 700; color: var(--text); }
.legend-header-arrow { font-size: 11px; color: var(--muted); }
.legend-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  align-items: flex-start;
}
.legend-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.legend-text b { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.legend-text span { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

/* ── Day rail (horizontal scroll strip) ─────────────────────────────────── */
.day-rail {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 14px 4px;
  background: var(--bg);
  scrollbar-width: none;
}
.day-rail::-webkit-scrollbar { display: none; }
.rail-day {
  flex: 0 0 auto;
  width: 40px;
  text-align: center;
  cursor: pointer;
}
.rail-day-dw {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 3px;
  text-transform: uppercase;
}
/* Legacy pip (retained for ghost/lock rail-day-ghost only). FS1 tiles
   override the geometry below via .fs-pip. */
.rail-day-pip {
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}
.rail-day-pip.sig-hold-rail { background: #dcdde6; color: #9a9aa8; }
/* FS1: outline moved to the pip, colored with brand purple. Applies only
   to non-ghost tiles carrying data-fs-selected="1". */
.rail-day.rail-day-ghost.cur .rail-day-pip {
  outline: 3px solid var(--brand1);
  outline-offset: 1px;
}

/* ── FS1: strip S1 (rozklik dne, per docs/mockups/fireday_day_rytmus_v2_final.html) ─── */
.day-rail .rail-day.fs-tile { width: 38px; }
.day-rail .rail-day.fs-tile .rail-day-dw {
  font-size: 8px;
  font-weight: 700;
  color: #8B8BA0;
  margin-bottom: 4px;
  letter-spacing: .05em;
  height: 10px;
  line-height: 10px;
}
.day-rail .rail-day.fs-tile.today .rail-day-dw { color: #5B4FC7; }
.day-rail .rail-day.fs-tile .fs-pip {
  height: auto;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  display: block;
  outline: none;
}
.day-rail .rail-day.fs-tile[data-fs-selected="1"] .fs-pip {
  outline: 2px solid #5B4FC7;
  outline-offset: 1px;
}
.day-rail .rail-day.fs-tile .fs-slot-date {
  height: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 10px;
  color: #fff;
  line-height: 1;
}
.day-rail .rail-day.fs-tile .fs-slot-value {
  height: 28px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  line-height: 1;
}
/* S1 signal palette (mockup values — SEPARATE from _SIG_HEX used in
   hero/legend, so the strip renders exactly per orákulum). */
.day-rail .rail-day.fs-tile[data-fs-signal="fire"]  .fs-slot-value { background: #E56D3B; }
.day-rail .rail-day.fs-tile[data-fs-signal="up"]    .fs-slot-value { background: #2972B8; }
.day-rail .rail-day.fs-tile[data-fs-signal="close"] .fs-slot-value { background: #CC902E; }
.day-rail .rail-day.fs-tile[data-fs-signal="down"]  .fs-slot-value { background: #B73B3B; }
.day-rail .rail-day.fs-tile[data-fs-signal="hold"]  .fs-slot-value {
  background: #E9EAF0; color: #6E6E80;
}
/* Date slot = signal color with rgba(0,0,0,.16) overlay via background
   layering (solid dark for pixel-exact getComputedStyle match). */
.day-rail .rail-day.fs-tile[data-fs-signal="fire"]  .fs-slot-date { background: #C15C31; }
.day-rail .rail-day.fs-tile[data-fs-signal="up"]    .fs-slot-date { background: #22609B; }
.day-rail .rail-day.fs-tile[data-fs-signal="close"] .fs-slot-date { background: #AB7927; }
.day-rail .rail-day.fs-tile[data-fs-signal="down"]  .fs-slot-date { background: #993131; }
.day-rail .rail-day.fs-tile[data-fs-signal="hold"]  .fs-slot-date {
  background: #DBDCE2; color: #6E6E80;
}
.day-rail .rail-day.fs-tile .fs-today-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #5B4FC7;
  margin: 4px auto 0;
}

/* ── Day nav leaf buttons (prev/next with signal preview) ───────────────── */
.day-nav {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.day-nav-btn {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 10px;
  cursor: pointer;
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-nav-btn.today-btn {
  flex: 0 0 auto;
  background: var(--brand1);
  color: #fff;
  border-color: var(--brand1);
  font-weight: 700;
  font-size: 12px;
  padding: 9px 14px;
}
.day-nav-btn.next-btn { justify-content: flex-end; text-align: right; }
.leaf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* ── Area card signal accent ────────────────────────────────────────────── */
.area-accent {
  height: 3px;
  border-radius: 3px;
  width: 26px;
  margin-top: 8px;
}

/* ── D8 2.1: People card action buttons ✎/✕ ─────────────────────────── */
.person-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.pc-act {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.pc-act:hover {
  background: #fff;
  border-color: var(--brand1);
  color: var(--brand1);
}
.pc-act-delete:hover {
  border-color: var(--fire);
  color: var(--fire);
}
/* v7.6 — amber "View profile" pill. Sits leftmost in the actions row,
 * pill-shaped, 28 px tall (matches ✎/✕ circular buttons). Both gradient
 * stops selected so white 13 px text clears WCAG AA (target 4.5:1).
 *
 * Chosen stops:
 *   start #A85D08 → L≈0.161 → contrast with #fff ≈ 4.98
 *   end   #7A3A08 → L≈0.075 → contrast with #fff ≈ 8.40
 * Both comfortably ≥ 4.5.
 *
 * The rule uses `background-image` (not `background`) so getComputedStyle
 * returns the linear-gradient expression (the contrast test parses stops
 * from it). Border/box-shadow give the pill lift without adding chrome. */
.pc-act-view {
  width: auto;
  height: 28px;
  padding: 0 12px 0 9px;
  gap: 5px;
  background-color: #A85D08;
  background-image: linear-gradient(90deg, #A85D08 0%, #7A3A08 100%);
  border: 1px solid rgba(0,0,0,.12);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 3px rgba(122,58,8,.30);
  flex: 0 1 auto;
  max-width: 100%;
  overflow: hidden;
}
.pc-act-view:hover {
  background-image: linear-gradient(90deg, #B86A0F 0%, #8A4A10 100%);
  color: #fff;
  border-color: rgba(0,0,0,.12);
}
.pc-act-view-ico {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
.pc-act-view-lbl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* v7.7 — quiet variant for pro/founder/admin. Structurally matches the
 * ✎/✕ neighbours (same background, border, color) so the pill stops
 * competing with the day-score column while keeping its footprint and
 * label. Hover retains the neutral highlight the round buttons use. */
.pc-act-view.pc-act-view--quiet {
  background-color: var(--bg);
  background-image: none;
  border: 1px solid var(--border);
  color: var(--muted);
  box-shadow: none;
  font-weight: 600;
}
.pc-act-view.pc-act-view--quiet:hover {
  background-image: none;
  background-color: #fff;
  border-color: var(--brand1);
  color: var(--brand1);
}

/* ── D8 2.1: profile editor modal (FireDay palette) ─────────────────── */
.profile-editor {
  position: fixed;
  inset: 0;
  background: rgba(12, 15, 30, 0.55);
  z-index: 9400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.profile-editor.hidden { display: none; }
.profile-editor-inner {
  background: var(--card-bg);
  color: var(--text);
  width: 100%;
  max-width: 480px;
  border-radius: 18px 18px 0 0;
  padding: 16px 18px 20px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 -18px 40px rgba(0,0,0,0.32);
}
.profile-editor-head {
  display: flex; align-items: center;
  margin-bottom: 12px;
}
.profile-editor-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.profile-editor-close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
}
.profile-editor-close:hover { background: var(--bg); color: var(--text); }
.profile-editor-body {
  display: flex; flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
}
.profile-editor-body label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-editor-body input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
}
.profile-editor-body input:focus {
  outline: none;
  border-color: var(--brand1);
  background: #fff;
}
/* L12b (v7.92): dlouhé popisky „🕐 Pomocník UTC — převést místní čas" /
   „📍 Mapa — klikni na své město" → tlačítko pod polem na celou šířku. */
.pf-utc-row, .pf-place-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}
/* L12c · A (orákulum onb_buttons_v3): Pomocník UTC + Mapa = světle zelená
 * tlačítka (zelená karty „Hotovo"); hover/stisk o stupeň sytější, jen barvy. */
.pf-utc-btn, .pf-map-btn {
  background: #e8f7ee;
  border: 1px solid #7fcf9c;
  color: #14602f;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.pf-utc-btn:hover, .pf-map-btn:hover, .pf-utc-btn:active, .pf-map-btn:active {
  background: #d6f0e0;
  color: #0f4d25;
  border-color: #4fbf7a;
}

/* D8.1: city lookup status feedback — mobile FireDay palette.
 * Green ✓ for found (FireDay uses --up green), fire amber ⚠ + map link
 * for unknown; muted neutral for idle. Matches desktop UX 1:1. */
.pf-city-status {
  font-size: 0.75rem;
  min-height: 15px;
  margin-top: 4px;
  padding-left: 2px;
  line-height: 1.35;
}
.pf-city-status[data-state="idle"] { color: var(--muted); }
.pf-city-status[data-state="found"] {
  color: #1D9E75; /* mobile up green — parity with desktop */
  font-weight: 600;
}
.pf-city-status[data-state="not_found"] {
  color: var(--close); /* mobile close amber #BA7517 — parity with desktop */
}
.pf-city-status .pf-city-map-link {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.pf-city-status .pf-city-map-link:hover { color: var(--fire); }
input#pf-birthplace[data-city-state="found"] {
  border-color: #1D9E75 !important;
  box-shadow: inset 0 0 0 1px rgba(29, 158, 117, 0.30);
}
input#pf-birthplace[data-city-state="not_found"] {
  border-color: var(--close) !important;
  box-shadow: inset 0 0 0 1px rgba(186, 117, 23, 0.30);
}

.pf-utc-row .pf-utc-btn, .pf-place-row .pf-map-btn { width: 100%; white-space: normal; }
#pf-birthtime-utc[readonly] { cursor: default; }
.onb-q { margin: 2px 0; }
.onb-q-btn { display: flex; gap: 5px; align-items: flex-start; background: transparent; border: 0; padding: 0;
  color: inherit; opacity: .8; font: inherit; font-size: 0.75rem; line-height: 1.4; text-align: left; cursor: pointer; }
.onb-q-btn:hover { opacity: 1; text-decoration: underline; text-underline-offset: 2px; }
.onb-q-btn .onb-q-i { flex: none; font-style: normal; }
.onb-q-a { margin-top: 5px; font-size: 0.75rem; line-height: 1.5; }
.onb-q-a[hidden] { display: none; }
.pf-latlon-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pf-err {
  color: var(--fire);
  font-size: 0.78rem;
  padding: 6px 10px;
  background: rgba(216, 90, 48, 0.12);
  border-radius: 6px;
}
.pf-err.hidden { display: none; }
.pf-actions {
  display: flex; gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}
.pf-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color .15s, border-color .15s, color .15s;  /* L12c · A */
}
.pf-btn-primary {
  background: var(--brand1);
  color: #fff;
  border-color: var(--brand1);
}
.pf-btn-primary:hover, .pf-btn-primary:active { background: #4A3EB0; border-color: #4A3EB0; }
.pf-btn-outline:hover, .pf-btn-outline:active { background: var(--bg); border-color: var(--brand1); color: var(--brand1); }

/* ── T2 part 2 + T2.1 KROK 7: dev tier preview bar (two-row layout on
 * mobile, single-row on desktop ≥900px). FireDay palette. Fixed at top,
 * body shifts down by --tier-bar-h measured post-render. */
.tier-preview-bar {
  /* M1b.3 · v7.46: FireDay tier pruh nově NE-sticky (mobil i desktop).
   * Full-width přes celou šířku viewportu (M1b.2), scrolluje s obsahem. */
  position: relative;
  width: 100%;
  z-index: auto;
  background: linear-gradient(90deg, #1A1440 0%, #2C1E5B 100%);
  border-bottom: 2px solid #FFD9A0;
  color: #FFF6E0;
  padding: 4px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-sizing: border-box;
}
.tier-preview-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tier-preview-row2 {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: nowrap;
}
/* ≥560 px viewport: single-row layout (label + badges + ✕). Pod ~560 px
 * zůstává dvouřádkový layout (label + ✕ v ř.1, badges v ř.2). */
@media (min-width: 560px) {
  .tier-preview-bar {
    flex-direction: row;
    align-items: center;
    padding: 6px 12px;
    gap: 12px;
    font-size: 12px;
  }
  .tier-preview-row1 { flex: 0 0 auto; gap: 12px; }
  .tier-preview-row2 { flex: 1; justify-content: flex-start; }
}
.tier-preview-label {
  flex-shrink: 0;
  color: #FFD9A0;
}
.tier-preview-btn {
  background: transparent;
  border: 1px solid rgba(255, 217, 160, 0.45);
  color: #FFF6E0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: 0 1 auto;
}
.tier-preview-btn:hover { background: rgba(255, 217, 160, 0.18); }
.tier-preview-btn.active {
  background: #FFD9A0;
  color: #1A1440;
  border-color: #FFD9A0;
}
/* T2.2 KROK 8 — vertical divider between ADMIN and the customer tiers. */
.tier-preview-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: rgba(255, 217, 160, 0.35);
  margin: 0 4px;
  flex-shrink: 0;
  align-self: center;
}
.tier-preview-close {
  background: transparent;
  border: none;
  color: #FFD9A0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
}
.tier-preview-close:hover { color: #FFF6E0; }
/* M1b.3: tier pruh a hlavička jsou v flow (nesticky), takže .tier-preview-on
 * body class už nic nemusí posouvat. Drawer zůstává position:fixed jako
 * full-viewport overlay (top:0). */

/* B1: restore badge — vlevo dole nad tab-barem; viditelný jen při skryté
 * liště. FireDay palette: fialové pozadí (brand1) + bílý text + zlatá
 * tečka. Nad --fd-tabbar-h (56 px) pokud existuje, jinak 70 px fallback. */
#tier-preview-restore-badge {
  position: fixed;
  left: 12px;
  bottom: calc(var(--fd-tabbar-h, 56px) + 10px + env(safe-area-inset-bottom, 0px));
  z-index: 9400;
  display: none;
  align-items: center;
  gap: 6px;
  background: #5B4FC7;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  font-family: inherit;
}
#tier-preview-restore-badge .tp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E4B341;
}
body[data-tier-preview-state="closed"] #tier-preview-restore-badge { display: inline-flex; }
#tier-preview-restore-badge:hover { filter: brightness(1.08); }

/* B1: drawer menu „Tier preview" — admin ladicí styl. */
.fd-ric-tier { background: #E4B341 !important; color: #1A1440; font-weight: 800; font-size: 10px; letter-spacing: 0.04em; }
.fd-rich-admin { background: #FFF8E6; border-top: 1px dashed #E8D9A8; border-bottom: 1px dashed #E8D9A8; }
.fd-rich-admin:hover { background: #FBF0CF; }
.fd-tag { margin-left: auto; font-size: 10px; border-radius: 999px; padding: 2px 8px; background: #EEF0F6; color: #6B7385; font-weight: 700; letter-spacing: 0.04em; }
.fd-tag-on { background: #DDF3E4; color: #1E7A43; }
.fd-tag-off { background: #F7E0E0; color: #9A2F2F; }

/* ── T2 part 2: upsell lock bubble — FireDay purple look ──────────── */
/* v7.14: fully opaque background so the bubble never blends into
 * calendar cells or heatmap tiles underneath. Pale-purple gradient
 * keeps the brand tint; contrast against var(--text) stays > 4.5:1.
 * background-color + background-image split intentionally — shorthand
 * `background: linear-gradient(...)` resets background-color to
 * `transparent`, and any tool that renders only the base color
 * (screenshots, PDF export, legacy engines) would then paint through
 * the calendar cells behind the bubble. */
.tier-lock {
  background-color: #E8E4F2;
  background-image: linear-gradient(180deg, #F0EEFA 0%, #E1DDF5 100%);
  border: 1px solid rgba(91, 79, 199, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0;
  box-shadow: 0 4px 12px rgba(91, 79, 199, 0.22);
}
.tier-lock-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.tier-lock-text { flex: 1; }
.tier-lock-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand1);
  margin-bottom: 3px;
}
.tier-lock-body { font-size: 13px; line-height: 1.4; color: var(--text); }
.tier-lock-cta {
  align-self: center;
  flex-shrink: 0;
  background: var(--brand1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tier-lock-cta:hover { background: #4A3EB0; }
/* Inline variant sits inside a control row without the outer padding. */
.tier-lock.tier-lock-inline {
  margin: 4px 0;
  padding: 6px 10px;
  gap: 8px;
  font-size: 11px;
}
.tier-lock.tier-lock-inline .tier-lock-title { font-size: 10px; margin-bottom: 0; }
.tier-lock.tier-lock-inline .tier-lock-cta { padding: 4px 8px; font-size: 10px; }
/* Row-styled bubble for the "+N more" summary line. */
.tier-lock.tier-lock-row {
  border-radius: 6px;
  padding: 8px 12px;
  margin: 2px 0;
}
/* Full-page bubble for report/trio deep-links. */
.tier-lock.tier-lock-page {
  margin: 24px auto;
  max-width: 460px;
  padding: 24px 22px;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  align-items: center;
}
.tier-lock.tier-lock-page .tier-lock-icon { font-size: 34px; }
.tier-lock.tier-lock-page .tier-lock-title { font-size: 14px; }
.tier-lock.tier-lock-page .tier-lock-body { font-size: 14px; }
.tier-lock.tier-lock-page .tier-lock-cta { padding: 10px 22px; font-size: 13px; }

/* Locked controls: greyed with a lock affordance. Click is dead-ended in JS. */
.tier-locked {
  opacity: 0.42;
  filter: grayscale(0.65);
  cursor: not-allowed;
  position: relative;
}
.tier-locked::after {
  content: "🔒";
  position: absolute;
  top: -4px;
  right: -6px;
  font-size: 10px;
  line-height: 1;
  background: rgba(91, 79, 199, 0.9);
  color: #fff;
  border-radius: 50%;
  padding: 2px 3px;
  pointer-events: none;
}

/* Floating inline bubble host for FIFO/no-op click hints. */
.tier-bubble-host {
  position: fixed;
  bottom: calc(var(--nav-h, 60px) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 940;
  width: min(90vw, 420px);
  pointer-events: auto;
}

/* T2.2 KROK 6b — bespoke founder-ceiling card. Distinct from the
 * upsell tier-lock component: no lock icon, no ladder — direct contact
 * affordance in a neutral premium tone. */
.founder-cap-card {
  background-color: #FFF9ED;
  background-image: linear-gradient(180deg, #FFFDF6 0%, #FFF5E4 100%);
  border: 1.5px solid #D9B265;
  border-radius: 14px;
  padding: 14px 16px;
  color: #4A2E00;
  box-shadow: 0 4px 12px rgba(217,178,101,.22);
  text-align: center;
}
.founder-cap-title {
  font-weight: 800;
  font-size: 13px;
  color: #4A2E00;
  margin-bottom: 4px;
  line-height: 1.35;
}
.founder-cap-body {
  font-size: 11px;
  color: #6B4B10;
  margin-bottom: 10px;
  line-height: 1.4;
}
.founder-cap-cta {
  display: inline-block;
  padding: 8px 14px;
  background: #4A2E00;
  color: #FFEDCF;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
}
.founder-cap-cta:hover { background: #6B4B10; }

/* Ghost cells for planner calendar and day strip (FREE horizon). */
.cal-day.cal-day-ghost {
  background: rgba(91, 79, 199, 0.06) !important;
  color: rgba(107, 107, 128, 0.55) !important;
  cursor: not-allowed;
  position: relative;
}
.cal-day.cal-day-ghost .cal-day-num { opacity: 0.6; }
.cal-day.cal-day-ghost .cal-ghost-lock {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 10px;
  opacity: 0.8;
}
.strip.strip-ghost { opacity: 0.55; cursor: not-allowed; }
.strip-day.strip-day-ghost {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 217, 160, 0.35);
}
.month-btn.tier-locked { opacity: 0.42; cursor: not-allowed; }
.rail-day.rail-day-ghost {
  opacity: 0.42;
  filter: grayscale(0.5);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════════════
   M1b.2 FireDay velka znacka + FULL-WIDTH hlavička (v7.45).
   Levá polovina = velký logo + název + by AstraDecision + claim.
   Pravý sloupec dvouřádkově: ř.1 = ★ Plány + ☰, ř.2 = World + switcher.
   Pod ~560 px šířky kontejneru se sbíhá zpět do stacked shell v2.
   Purple-navy gradient + orange accent + gold ★ Plans.
   ══════════════════════════════════════════════════════════════════════ */
/* M1b.3 · v7.46: FD shell nově NE-sticky (mobil i desktop). */
.fd-shell{ container-type:inline-size; container-name:fdshell;
  position:relative; width:100%; z-index:auto; }
.fd-topbar{
  background: linear-gradient(150deg,#241E4E,#3A2F7D);
  height:auto; min-width:0;
  padding:9px 12px; margin:0;
  /* M1c mobile default (< 560): CSS grid, r.1 = brand + burger only,
   * r.2 = World + switcher + ★ Plány. Grid je override na ≥560 níže. */
  display:grid;
  grid-template-columns:auto 1fr auto;
  grid-template-rows:auto auto;
  grid-template-areas:
    "brand brand burger"
    "r2 r2 plans";
  gap:5px 8px;
  align-items:center;
  position:static; transform:none; width:100%; max-width:none; left:auto; top:auto;
}
.fd-r1{ display:contents; }
.fd-r2{ display:flex; align-items:center; gap:8px; min-width:0;
  justify-content:flex-start; grid-area:r2; border-top:none; padding-top:0; }
.fd-plansbtn{ grid-area:plans; justify-self:end; }
/* M1b.3a: pravá hrana ☰ líce s pravou hranou ★ Plány (mobil). */
.fd-burger{ grid-area:burger; justify-self:end; }
.fd-brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color:#fff; min-width:0; flex:0 1 auto;
  grid-area:brand;
}
.fd-brand-mark{ width:24px; height:24px; flex:none; }
.fd-brand-text{ display:flex; flex-direction:column; line-height:1.1; min-width:0;}
.fd-brand-row{ display:flex; align-items:center; gap:6px; min-width:0; }
.fd-word{ font-weight:800; font-size:15px; color:#fff; letter-spacing:.01em; white-space:nowrap;}
.fd-word .fd-dot{ color:#F0961E; }
.fd-brand-by{ font-size:9.5px; opacity:.75; color:#fff; margin-top:1px; white-space:nowrap; }
.fd-brand-claim{ font-size:9.5px; opacity:.92; color:#fff; font-style:italic; margin-top:1px; font-weight:600; white-space:nowrap; }
.fd-spacer{ flex:1; min-width:0; }
.fd-worldbtn{
  display:flex; align-items:center; gap:5px;
  background: rgba(0,0,0,.35); border:1px solid rgba(227,184,76,.5); color:#E3B84C;
  border-radius:9px; padding:4px 9px; font-size:11.5px; font-weight:700;
  text-decoration:none; white-space:nowrap; flex:none;
}
.fd-world-label{ display:none; }
.fd-switcher{
  display:flex; gap:3px; background:rgba(255,255,255,.12); border-radius:9px; padding:3px;
  flex:1; min-width:0;
}
.fd-sw{
  display:flex; align-items:center; justify-content:center; gap:4px;
  padding:4px 8px; border-radius:7px; font-size:10.5px;
  color:rgba(255,255,255,.85); text-decoration:none; white-space:nowrap;
  flex:1; min-width:0;
}
.fd-sw.on{ background:rgba(255,255,255,.94); font-weight:700; color:#7A4A00; }
.fd-plansbtn{
  display:flex; align-items:center; gap:5px;
  background:linear-gradient(160deg,#FFF3D6,#FFE9B8);
  border:1.5px solid #E3B84C; color:#7A5A00;
  border-radius:14px; padding:4px 10px;
  font-size:11px; font-weight:800; white-space:nowrap;
  box-shadow:0 1px 6px rgba(200,150,20,.25);
  text-decoration:none; flex:none;
}
.fd-plans-star{ color:#7A5A00; font-weight:900; }
.fd-flag{ width:16px; height:16px; border-radius:50%; overflow:hidden; flex:none; display:inline-block; }
.fd-flag svg{ display:block; width:100%; height:100%; }
.fd-burger{ width:30px; height:28px; border:1px solid rgba(255,255,255,.4);
  border-radius:6px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px; background:transparent; color:#fff; font-size:16px; padding:0; flex:none;
}
/* Container-query polish: under ~360 px switcher zkrátí neaktivní na ikony. */
@container fdshell (max-width:360px){
  .fd-sw:not(.on) .fd-sw-label{ display:none; }
  .fd-sw:not(.on){ padding:4px 5px; flex:0 0 auto; }
}
.fd-shell.hdr-lt-360 .fd-sw:not(.on) .fd-sw-label{ display:none; }
.fd-shell.hdr-lt-360 .fd-sw:not(.on){ padding:4px 5px; flex:0 0 auto; }
/* --- M1b.2 velka znacka: ≥560 grid s brand vlevo (span 2 řádky) a
 * r1/r2 vpravo (unchanged z 7a826e5). ★ Plans a burger jsou uvnitř .fd-r1. */
@container fdshell (min-width:560px){
  .fd-topbar{ display:grid; grid-template-columns:auto 1fr;
    grid-template-areas:"brand r1" "brand r2"; gap:6px 16px;
    padding:12px 20px; align-items:center; }
  .fd-brand{ grid-area:brand; align-self:center; gap:12px; }
  .fd-brand-mark{ width:42px; height:42px; }
  .fd-word{ font-size:18px; }
  .fd-brand-by{ font-size:10.5px; }
  .fd-brand-claim{ font-size:10.5px; margin-top:2px; }
  /* Reset M1c mobile overrides: r1 = flex row with Plans + burger,
   * r2 = flex row with World + switcher, both aligned right. */
  .fd-r1{ display:flex; align-items:center; gap:8px;
    justify-content:flex-end; grid-area:r1; border-top:none; padding-top:0; }
  .fd-r2{ grid-area:r2; border-top:none; padding-top:0;
    justify-content:flex-end; }
  .fd-plansbtn{ grid-area:auto; justify-self:auto; }
  .fd-burger{ grid-area:auto; }
  .fd-switcher{ flex:0 0 auto; }
}
.fd-shell.hdr-ge-560 .fd-topbar{ display:grid; grid-template-columns:auto 1fr;
  grid-template-areas:"brand r1" "brand r2"; gap:6px 16px;
  padding:12px 20px; align-items:center; }
.fd-shell.hdr-ge-560 .fd-brand{ grid-area:brand; align-self:center; gap:12px; }
.fd-shell.hdr-ge-560 .fd-brand-mark{ width:42px; height:42px; }
.fd-shell.hdr-ge-560 .fd-word{ font-size:18px; }
.fd-shell.hdr-ge-560 .fd-brand-by{ font-size:10.5px; }
.fd-shell.hdr-ge-560 .fd-brand-claim{ font-size:10.5px; margin-top:2px; }
.fd-shell.hdr-ge-560 .fd-r1{ display:flex; align-items:center; gap:8px;
  justify-content:flex-end; grid-area:r1; border-top:none; padding-top:0; }
.fd-shell.hdr-ge-560 .fd-r2{ grid-area:r2; border-top:none; padding-top:0;
  justify-content:flex-end; }
.fd-shell.hdr-ge-560 .fd-plansbtn{ grid-area:auto; justify-self:auto; }
.fd-shell.hdr-ge-560 .fd-burger{ grid-area:auto; }
.fd-shell.hdr-ge-560 .fd-switcher{ flex:0 0 auto; }

/* Drawer — FireDay warm-cream theme */
.fd-drawer{
  background:#FFFDF9;
  color:#1B1B2F;
  right:-360px;
  width:340px;
}
.fd-drawer.open{ right:0; }
.fd-menu-head{
  background: linear-gradient(120deg,#241E4E,#3A2F7D);
  padding:14px 17px; font-weight:700; font-size:14px; color:#fff;
  display:flex; justify-content:space-between; align-items:center; flex:none;
}

/* M3-B2.1 · karta účtu v draweru */
.fd-acct-card,.fd-acct-logincard{
  margin:10px 12px 0; border-radius:12px; padding:10px 12px;
  display:flex; align-items:center; gap:10px; background:#F0EEFC;
  color:#1B2233; text-decoration:none;
}
.fd-acct-logincard{background:transparent;border:1.5px dashed #5B4FC7;cursor:pointer}
.fd-acct-av{
  width:34px;height:34px;border-radius:50%;background:#5B4FC7;color:#fff;
  display:grid;place-items:center;font-weight:700;font-size:12px;flex:none;
}
.fd-acct-logincard .fd-acct-av{background:#F0EEFC;color:#5B4FC7;border:1px solid #5B4FC7}
.fd-acct-tx b{display:block;font-size:13px;font-weight:600}
.fd-acct-tx span{font-size:11px;color:#6B7385}
.fd-acct-pill{
  display:inline-block;border-radius:999px;padding:1px 7px;
  font-size:10px;font-weight:700;background:#fff;color:#5B4FC7;
  border:1px solid #5B4FC7;margin-left:6px;vertical-align:middle;
}
.fd-acct-pill.fd-acct-tier-founder{background:#E4B341;color:#1B1B1B;border-color:#E4B341}
.fd-acct-pill.fd-acct-tier-admin{background:#1B2233;color:#fff;border-color:#1B2233}
.fd-acct-logout{margin-left:auto}
.fd-acct-link{background:none;border:0;color:#6B7385;text-decoration:underline;cursor:pointer;font-size:11px;padding:0}
.fd-acct-go{
  margin-left:auto;background:#5B4FC7;color:#fff;border-radius:999px;
  padding:5px 12px;font-size:12px;font-weight:600;
}
.fd-menu-head-title{ display:flex; align-items:center; gap:9px; }
.fd-menu-head-title svg{ width:20px; height:20px; }
.fd-menu-close{
  opacity:.85; font-weight:400; background:transparent; border:none;
  color:#fff; font-size:20px; line-height:1; cursor:pointer; padding:2px 6px;
}
.fd-menu-scroll{ overflow-y:auto; overflow-x:hidden; flex:1; -webkit-overflow-scrolling:touch; }   /* FIX1 · E1 */
.fd-sec{ padding:9px 15px 11px; border-bottom:1px solid #F3EADC; }
.fd-sec-nolabel{ padding-top:11px; }
.fd-sec:last-child{ border-bottom:none; }
.fd-lbl{ font-size:10px; letter-spacing:.16em; text-transform:uppercase;
  font-weight:700; margin-bottom:7px; color:#A08B6E; }
.fd-lbl-stu{ color:#4C3FB8; }
.fd-mini-lbl{ font-size:9px; letter-spacing:.1em; margin-bottom:4px; color:#A08B6E;
  font-weight:700; text-transform:uppercase; }
.fd-langrow{ display:flex; gap:5px; flex-wrap:wrap; }
.fd-lp{ display:flex; align-items:center; gap:5px; border-radius:14px;
  padding:3px 8px 3px 4px; font-size:10.5px; font-weight:700;
  border:1px solid #E8DCC8; color:#1B1B2F; background:#fff; text-decoration:none; }
.fd-lp.on{ background:#F0961E; border-color:#F0961E; color:#20150A; }
.fd-ws{ display:flex; align-items:center; gap:9px; padding:6px 9px; border-radius:8px;
  font-size:12.5px; margin-bottom:2px; color:#1B1B2F; text-decoration:none; }
.fd-ws:hover:not(.active){ background:#FBF5EA; }
.fd-ws.active{ background:#FFF0DC; font-weight:700; color:#7A4A00; }
.fd-ws .fd-arrow{ margin-left:auto; font-size:12px; opacity:.6; }
.fd-ws .fd-sub{ font-size:9.5px; color:#9B8870; font-weight:400; }
.fd-swdot{ width:8px; height:8px; border-radius:50%; display:inline-block; flex:none; }
/* L2 · B4: hvězdička značky místo tečky (Hlavní stránka) — stejná šířka slotu */
.fd-swstar{height:auto;border-radius:0;background:none;color:#7C6AE8;font-size:13px;line-height:1;display:inline-flex;justify-content:center;overflow:visible}
.fd-sec-studio{ background:#FBFAFF; border-bottom:1px solid #E4DFF5; }
.fd-tiles{ display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.fd-tile{ border-radius:10px; padding:9px 5px; text-align:center;
  background:#fff; border:1px solid #E4DFF5; cursor:pointer;
  text-decoration:none; color:#1B1B2F; position:relative; display:block; }
.fd-tile:hover{ border-color:#4C3FB8; }
.fd-tile-ext{ position:absolute; top:4px; right:6px; font-size:8px; color:#4C3FB8; }
.fd-tile-ic{ font-size:16px; line-height:1; }
.fd-tile-tt{ font-size:10.5px; font-weight:600; margin-top:3px; }
.fd-rich{ display:flex; align-items:center; gap:10px; padding:6px 8px; border-radius:9px;
  margin-bottom:2px; text-decoration:none; color:#1B1B2F; cursor:pointer;
  border:none; background:transparent; width:100%; text-align:left; font-family:inherit; }
.fd-rich:hover:not(.fd-rich-disabled){ background:#FBF5EA; }
.fd-rich-hl{ background:#FFF0DC; }
.fd-rich-hl:hover{ background:#FFE6C4; }
.fd-rich-disabled{ cursor:not-allowed; opacity:.7; }
.fd-ric{ width:28px; height:28px; border-radius:8px; display:flex;
  align-items:center; justify-content:center; font-size:14px; flex:none;
  background:#FFF0DC; }
.fd-rich-hl .fd-ric{ background:#FFDFAE; }
.fd-ric-dark{ background:#141225 !important; }
.fd-ric-light{ background:#F3EADC !important; }
.fd-rbody{ display:flex; flex-direction:column; min-width:0; flex:1; }
.fd-rt{ font-size:12.5px; font-weight:600; line-height:1.2; color:#1B1B2F; }
.fd-rs{ font-size:10px; color:#9B8870; margin-top:2px; }
.fd-badge2{ margin-left:auto; font-size:8.5px; padding:2px 6px; border-radius:8px;
  white-space:nowrap; background:#F3EADC; color:#7A6A50; font-weight:600; }
.fd-goldbadge{ margin-left:auto; font-size:8.5px; background:#FDF3D7; color:#B8860B;
  border:1px solid #EBD9A0; padding:2px 6px; border-radius:9px; font-weight:700; white-space:nowrap; }
.fd-foot{ padding:11px 15px 13px; font-size:10px; line-height:1.55;
  background:#FBF5EA; border-top:1px solid #EFE4D4; color:#9B8870; flex:none; }
.fd-foot-m{ font-style:italic; color:#B4762A; }
.fd-foot-small{ font-size:9px; }
.fd-foot-ver{ margin-top:4px; }

/* M1b.1: World s textem se ukazuje jen když kontejner ≥ ~560 px. */
@container fdshell (min-width:560px){
  .fd-world-label{ display:inline; }
}
.fd-shell:not(.hdr-lt-560) .fd-world-label{ display:inline; }
.fd-shell.hdr-lt-560 .fd-worldbtn{ width:30px; height:26px; padding:0; justify-content:center; gap:0; }

/* ── FS1: Rytmus chart bubble (R-A light) + hot dot ─────────────────────── */
.planner-ribbon-wrap { position: relative; }
.fs-tip {
  position: absolute;
  pointer-events: none;
  background: #fff;
  border: 1px solid #D9D9E3;
  border-radius: 8px;
  padding: 6px 10px;
  color: #1F1B3A;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(31,27,58,.18);
  transform: translate(-50%, 0);
  z-index: 5;
}
.fs-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-right: 1px solid #D9D9E3;
  border-bottom: 1px solid #D9D9E3;
  transform: translateX(-50%) rotate(45deg);
}
.fs-tip .fs-tip-r1 { font-size: 12px; color: #1F1B3A; margin-bottom: 2px; }
.fs-tip .fs-tip-r2 { display: flex; align-items: center; gap: 6px; }
.fs-tip .fs-tip-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.fs-tip .fs-tip-val { font-size: 15px; font-weight: 800; color: #1F1B3A; }
@media (prefers-reduced-motion: reduce) {
  .fs-tip { transition: none; }
}

/* L5 · D: „skutečný: PRO" vedle chipů lišty Tier preview */
.tier-preview-real{font-size:10px;opacity:.75;margin-left:6px;white-space:nowrap;align-self:center}
/* L5 · D: s „skutečný: …" v prvním řádku se chipy v úzkém sloupci appky (≥560 px viewport,
   jednořádková lišta) zalomí pod něj místo přetečení za okraj. */
@media (min-width: 560px) {
  .tier-preview-bar { flex-wrap: wrap; row-gap: 4px; }
  .tier-preview-row2 { flex: 1 1 auto; }
}

/* L7 · A (ruční port z DayGate, RULE 20): flex/grid položky v řetězci obrazovek
   smí zúžit pod obsah — dlouhý řádek se nesmí propsat do šířky stránky
   (mobilní prohlížeč by roztáhl layout viewport a spodní menu by odjelo). */
.screens, .screen, .screen-pad, .screen-pad > * { min-width: 0; }
/* Pojistka: `clip` neudělá z html scroll kontejner (sticky + scrollY beze změny). */
html { overflow-x: clip; }

/* L12f · Svět zrození mých lidí (#screen-globe): seznam se jmény po
   rozkliknutí, tlumený řádek „bez místa", štítky na glóbu, prázdný stav.
   Orákulum docs/mockups/m3_birth_world_v1.html (FireDay). */
.bw-fd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; cursor: pointer; }
.bw-fd-row [data-n] { font-weight: 700; color: var(--brand1); }
.bw-fd-row[aria-expanded="true"] { color: var(--brand1); border-bottom-color: transparent; }
.bw-fd-label { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bw-fd-ch { color: var(--muted); font-size: 12px; transition: transform .15s; }
.bw-fd-row[aria-expanded="true"] .bw-fd-ch { transform: rotate(90deg); color: var(--brand1); }
.bw-fd-noplace, .bw-fd-noplace [data-n] { color: var(--muted); }
.bw-fd-names { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 0 8px 6px;
  border-bottom: 1px solid var(--border); }
.bw-fd-chip { font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 9px;
  padding: 1px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-fd-badge { font-size: 10px; font-weight: 700; line-height: 1; color: #fff; background: #2b1f55;
  border: 1px solid #E3B84C; border-radius: 5px; padding: 2px 5px; pointer-events: none;
  transform: translate(-50%, -100%); }
.bw-fd-empty { margin-top: 12px; padding: 12px; font-size: 13px; line-height: 1.45; color: var(--muted);
  text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.bw-fd-empty[hidden] { display: none; }
.bw-fd-empty .btn-outline { font-size: 12px; padding: 7px 14px; }

/* PG-N3 · zámek lidí nad limit (šedá karta, dlaždice „+N 🔒", žlutý box) */
.person-card.is-locked { cursor: default; border-style: dashed; }
.person-card.is-locked .person-card-avatar, .person-card.is-locked .person-card-name, .person-card.is-locked .person-card-sub { opacity: .6; filter: grayscale(1); }
.person-card.is-locked:hover { box-shadow: none; }
.person-card.is-locked .person-card-avatar { background: #E3E5EC; color: #5D6375; font-size: 18px; }
.pc-act.pl-unlock { width: auto; height: auto; font-size: 12px; text-decoration: none; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: #FFF6D6; border: 1px solid #F2D27A; color: #5A4300; filter: none; white-space: nowrap; }
.a-cell.pl-tile { text-decoration: none; color: inherit; opacity: .8; justify-content: center; }
.a-cell.pl-tile .pl-tile-ic { width: 46px; height: 46px; border-radius: 50%; border: 2px dashed #B9BECB;
  display: grid; place-items: center; font-size: 18px; margin: 0 auto 4px; }
.pl-lock-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 4px 0 12px; padding: 10px 12px;
  border-radius: 12px; background: #FFF6D6; border: 1px solid #F2D27A; color: #5A4300; font-size: 13px; line-height: 1.4; }
.pl-lock-box [data-people-lock-count] { flex-basis: 100%; font-weight: 700; }
.pl-lock-box a { margin-left: auto; font-weight: 700; color: #5A4300; white-space: nowrap; }
.a-cell.pl-tile .a-name { font-size: 11px; white-space: nowrap; font-weight: 700; }

/* CACHE-W · A6 · člověk, jehož karta se teprve počítá */
.a-cell-pending, .person-card-pending { color: #8A8FA3; font-size: 11px; font-weight: 600; font-style: italic; }
.person-card-big-score.person-card-pending { font-size: 12px; line-height: 1.2; }
