:root {
  --primary: #0d9488;
  --primary-strong: #0f766e;
  --primary-soft: #e6fffa;
  --accent: #f59e0b;
  --ink: #1e293b;
  --muted: #64748b;
  --bg: #cfeae3;
  --card: #ffffff;
  --line: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 480px at 50% -8%, #d8f5ee 0%, rgba(216, 245, 238, 0) 62%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand .tld { color: var(--primary); }
.brand-sub {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary-strong);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 3.5rem 1.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.hero h1 .accent-word { color: var(--primary); }
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 auto;
  max-width: 560px;
}

.tutor-summary {
  text-align: center;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 auto 1rem;
}
.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 auto 1rem;
}
.example-note { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.section-count { text-align: center; color: var(--muted); font-size: 0.9rem; margin: -0.5rem 0 1rem; }
.contact { text-align: left; margin: 0 auto; max-width: 400px; }
.contact p { margin: 0.25rem 0; color: var(--ink); }

/* ---------- Filter panel ---------- */
.filterbar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.10);
  max-width: 1000px;
  margin: 1.25rem auto 2rem;
  overflow: hidden;
}
.filter-panel-head {
  background: linear-gradient(120deg, var(--primary-strong), var(--primary));
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.85rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-panel-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
}
.filter-panel-foot {
  border-top: 1px solid var(--line);
  padding: 0.85rem 1.4rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--primary-soft);
}

.filter-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin: 0;
  min-width: 180px;
  background: #fbfdfd;
}
.filter-group legend,
.filter-title {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-strong);
  margin-bottom: 0.4rem;
  padding: 0;
}
.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink);
  white-space: nowrap;
}
.filter-group label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
}
.filter-group input[type="number"] {
  width: 64px;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
}
.filter-group input[type="number"]:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
}
.all-none { color: var(--muted); }
.all-none em { font-style: normal; font-weight: 700; color: var(--primary-strong); }
.cb-list {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 0.25rem;
  margin-top: 0.3rem;
}
.range-row { display: flex; gap: 0.6rem; align-items: center; }

/* ---------- Tutor grid ---------- */
.tutor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
.tutor-link {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tutor-link:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 16px 32px rgba(13, 148, 136, 0.14);
}
.tutor-link .avatar { width: 70px; height: 70px; font-size: 1.5rem; margin-bottom: 0.9rem; }
.tutor-link .headshot {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 0.9rem;
  background: #d8f5ee;
}
.tutor-link h2 { font-size: 1.15rem; margin: 0 0 0.3rem; }
.tile-meta {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.86rem;
}
.tile-meta li span { color: var(--muted); font-weight: 600; margin-right: 0.3rem; }

/* ---------- Tutor card page ---------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(15, 118, 110, 0.12);
  max-width: 620px;
  width: 100%;
  padding: 3rem 2.5rem;
  text-align: center;
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.25);
}
.card h1 { margin: 0 0 0.5rem; font-size: 2rem; letter-spacing: -0.02em; }
.card-sub {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-strong);
  margin: 0 0 0.6rem;
}
.flyer {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 0 auto 1.5rem;
}
.headshot-card {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: #d8f5ee;
}
.langs { margin: 0.25rem 0 1.25rem; font-size: 1.02rem; color: var(--muted); }
.lang-line { margin: 0.25rem 0; }
.lang-label {
  display: inline-block;
  min-width: 5.5rem;
  text-align: right;
  margin-right: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}
.pricing { margin: 0; }
.price-line { margin: 0.35rem 0; font-size: 1rem; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.tag {
  background: var(--primary-soft);
  color: var(--primary-strong);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.divider { height: 1px; background: var(--line); margin: 1.5rem 0; }
.bio { color: var(--ink); line-height: 1.65; font-size: 1.02rem; max-width: 470px; margin: 0 auto; }

.flipnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.btn {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}
.btn:hover { border-color: var(--primary); color: var(--primary-strong); background: var(--primary-soft); }
.pos { color: var(--muted); font-size: 0.9rem; font-weight: 500; }

/* ---------- Intro popup ---------- */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  animation: intro-fade 0.2s ease;
}
.intro-hidden { opacity: 0; transition: opacity 0.2s ease; }
.intro-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.3);
  text-align: center;
  animation: intro-pop 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.intro-x {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0.2rem;
}
.intro-x:hover { color: var(--ink); }
.intro-modal h2 {
  margin: 0 0 0.6rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.intro-modal p { color: var(--muted); margin: 0 0 0.6rem; font-size: 0.98rem; }
.intro-body { text-align: left; margin: 0.5rem 0 1.25rem; }
.intro-body strong { color: var(--ink); }
.intro-note {
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: var(--ink);
}
.intro-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.intro-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: opacity 0.15s ease;
}
.intro-btn.primary {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: #fff;
}
.intro-btn:hover { opacity: 0.9; }
.suggest-wrap { text-align: center; margin: 1.75rem 0; }
.suggest-wrap .intro-btn { display: inline-block; width: auto; max-width: 100%; white-space: normal; padding: 0.75rem 1.5rem; }
@keyframes intro-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-pop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Nav & auth pages ---------- */
.nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav a:hover { color: var(--primary-strong); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0;
  line-height: 1.5;
}
.nav-dropdown-toggle:hover { color: var(--primary-strong); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  min-width: 180px;
  padding: 0.35rem 0;
  display: none;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: var(--primary-strong); background: var(--primary-soft); }

.page {
  display: block;
  flex: 1;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}
.hero-sm { text-align: center; padding: 2rem 1rem 1.25rem; }
.hero-sm h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}
.hero-sm p { color: var(--muted); margin: 0; }
.hero-landing { padding: 3rem 1.5rem; }
.hero-landing-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-copy { flex: 1 1 380px; }
.hero-copy h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.hero-copy p { color: var(--muted); font-size: 1.1rem; margin: 0 0 1.5rem; }
.hero-face {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.2);
  flex-shrink: 0;
}
.hero-face-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.about-link {
  color: var(--primary-strong);
  font-weight: 600;
  text-decoration: underline;
  font-size: 0.9rem;
}
.about-link:hover { color: var(--primary); }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.cta-btn.primary { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff; }
.cta-btn:hover { opacity: 0.92; }
.landing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}
@media (max-width: 767px) {
  .landing-cards {
    grid-template-columns: 1fr;
  }
}
.landing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
}
.landing-card h2 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.landing-card p { color: var(--muted); margin: 0 0 0.75rem; }
.landing-card a { color: var(--primary-strong); font-weight: 700; text-decoration: none; }
.landing-card a:hover { text-decoration: underline; }
.landing-note {
  max-width: 760px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.how-it-works p {
  margin: 0.6rem 0;
  color: var(--ink);
  line-height: 1.6;
  font-size: 0.95rem;
}
.collapsible-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.collapsible-head .panel-title { margin: 0; }
.collapse-toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0.2rem 0.4rem;
  transition: transform 0.2s ease;
}
.collapse-toggle:hover { color: var(--ink); }
.collapsible-body { margin-top: 1rem; }
.collapsible.collapsed .collapsible-body { display: none; }
.collapsible.collapsed .collapse-toggle { transform: rotate(-90deg); }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.08);
  padding: 2rem;
  margin: 0 auto 2rem;
}
.form-panel { max-width: 820px; }
.form-panel-narrow { max-width: 620px; }

.form-panel h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-strong);
  margin: 1.5rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.form-panel h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.form-panel h2.panel-title {
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1.25rem;
  padding-top: 0;
  border-top: none;
}

.form-panel label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.form-panel input[type="text"],
.form-panel input[type="email"],
.form-panel input[type="password"],
.form-panel input[type="number"],
.form-panel textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #dbeafe;
}
.form-panel input:focus, .form-panel textarea:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
}
.form-panel select {
  display: block;
  width: auto;
  min-width: 90px;
  margin-top: 0.3rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #dbeafe;
  color: var(--ink);
}
.form-panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-panel .check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.form-panel small { color: var(--muted); font-weight: 400; }
.current-img {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}
.current-img img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.btn-google {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #1a73e8;
  border: 1px solid #1a73e8;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn-google:hover { background: #1765cc; border-color: #1765cc; color: #fff; }

.or-divider {
  text-align: center;
  color: var(--muted);
  margin: 1rem 0;
  font-size: 0.85rem;
  position: relative;
}
.or-divider span { background: #fff; padding: 0 0.75rem; position: relative; }
.or-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--line);
}

.flash {
  max-width: 640px;
  margin: 0 auto 1rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}
.flash-error { background: #fee2e2; color: #b91c1c; }
.flash-ok { background: var(--primary-soft); color: var(--primary-strong); }

.note {
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.25rem;
  color: var(--ink);
  font-size: 0.92rem;
}
.note-warn {
  background: #fef3c7;
  border-left-color: #f59e0b;
}
.form-note { max-width: 640px; margin: 0 auto 1.25rem; padding: 0 1.5rem; }
.form-note .note { margin-bottom: 0; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin: 1rem 0; }
.meta dt { font-weight: 700; color: var(--muted); }
.meta dd { margin: 0; }
.meta .meta-head { grid-column: 1 / -1; font-weight: 700; color: var(--primary-strong); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.04em; margin-top: 0.7rem; border-top: 1px solid var(--line); padding-top: 0.5rem; }
.warn { color: #b45309; font-weight: 600; }
.center { text-align: center; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.feature-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.98rem;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.feature-list a { color: var(--primary-strong); text-decoration: none; font-weight: 500; word-break: break-all; }
.feature-list a:hover { text-decoration: underline; }
.tool-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.tool-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; line-height: 1.55; }
.tool-list li:last-child { border-bottom: none; }
.tool-list a { color: var(--primary-strong); text-decoration: none; font-weight: 600; }
.tool-list a:hover { text-decoration: underline; }
.tool-list .tag { padding: 0.15rem 0.55rem; font-size: 0.75rem; margin-left: 0.4rem; }
.fb-item { padding: 0.5rem 0 0.9rem; border-bottom: 1px solid var(--line); margin-bottom: 0.9rem; }
.fb-item:last-child { border-bottom: none; margin-bottom: 0; }
.fb-field { margin: 0.25rem 0; line-height: 1.5; }
.fb-label { color: var(--muted); font-weight: 600; margin-right: 0.4rem; }
.agreement {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.agreement ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.4rem 0 0;
}
.agreement li { margin-bottom: 0.35rem; }

/* ---------- Timezone help ---------- */
.tz-help-trigger {
  background: none;
  border: none;
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  white-space: nowrap;
  text-transform: none;
}
.filter-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}
.filter-title-row .filter-title { margin-bottom: 0; }
.tz-help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.tz-help-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  min-width: 0;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
}
.tz-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.tz-help-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.tz-help-close:hover { color: var(--ink); }
.tz-help-list { overflow-y: auto; padding: 0.5rem 0; }
.tz-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.32rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}
.tz-row:last-child { border-bottom: none; }
.tz-off {
  font-weight: 700;
  color: var(--primary-strong);
  min-width: 2.5rem;
  font-variant-numeric: tabular-nums;
}
.tz-city { color: var(--ink); }
.pricing-help-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  font-size: 0.92rem;
  color: var(--ink);
}
.pricing-help-body h3 {
  font-size: 0.95rem;
  margin: 0.75rem 0 0.4rem;
  color: var(--primary-strong);
}
.pricing-help-body p { margin: 0.5rem 0; }
.pricing-help-body .formula {
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  margin: 0.75rem 0;
}
.pricing-help-body ul { margin: 0.4rem 0 0.75rem; padding-left: 1.25rem; }
.pricing-warn-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.cred-row {
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}
.cred-row:last-child { border-bottom: none; }
.cred-acro {
  display: block;
  font-weight: 700;
  color: var(--primary-strong);
}
.cred-full {
  display: block;
  color: var(--ink);
  font-weight: 600;
}
.cred-meaning {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */
.site-foot {
  text-align: center;
  padding: 1.75rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  background: #fff;
  margin-top: auto;
}
.site-foot a { color: var(--primary-strong); text-decoration: none; font-weight: 600; }
.site-foot a:hover { text-decoration: underline; }
.site-foot p { margin: 0.25rem 0; }

/* ---------- Mailbox ---------- */
.mailbox-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.mailbox-table th {
  text-align: left;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 700;
  padding: 0.5rem 0.6rem;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.mailbox-table td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.mailbox-table tr.unread td { background: #eef2ff; }
.mailbox-table tr.unread td:first-child { border-left: 3px solid #6366f1; }
.mailbox-date { white-space: nowrap; color: var(--muted); }
.mailbox-action { text-align: right; white-space: nowrap; }
.mailbox-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #fff;
}
.mailbox-badge.sent { background: var(--primary-strong); }
.mailbox-badge.received { background: #6366f1; }
.mailbox-other { font-weight: 600; }
.mailbox-uuid { font-family: monospace; font-size: 0.78rem; color: var(--muted); word-break: break-all; }
.link-like {
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
  color: var(--primary-strong);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}
.link-like:hover { color: var(--primary); }
.mailbox-modal { max-width: 640px; }
.mailbox-nav {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.mailbox-nav button {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-strong);
  cursor: pointer;
}
.mailbox-nav button:hover:not(:disabled) { background: var(--primary-soft); }
.mailbox-nav button:disabled { opacity: 0.4; cursor: default; }
.mailbox-nav #mb-reply { margin-left: auto; }
.mailbox-nav #mb-delete { color: #dc2626; border-color: #fecaca; }
.mailbox-nav #mb-delete:hover:not(:disabled) { background: #fef2f2; }
.mailbox-email { padding: 1rem 1.25rem; font-size: 0.92rem; }
.mailbox-field { margin-bottom: 0.4rem; }
.mailbox-label { font-weight: 700; display: inline-block; min-width: 4.5rem; }
.mailbox-body {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.mailbox-email a { color: var(--primary-strong); font-weight: 600; }
.mailbox-email a:hover { color: var(--primary); }
.mini { color: var(--muted); font-size: 0.9rem; }
.privacy-feature { text-align: center; margin: 0.75rem 0 0; font-size: 0.9rem; }
.privacy-feature a { color: var(--primary-strong); font-weight: 600; text-decoration: underline; }
.privacy-feature a:hover { color: var(--primary); }
.contact-email { margin-bottom: 0.85rem; }
.contact-email-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.3rem; }
.contact-email-head span { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.contact-email-head a, .contact-email-body a { color: var(--primary-strong); font-weight: 600; text-decoration: underline; }
.contact-email-head a { font-size: 0.82rem; }
.contact-email-body { display: flex; align-items: center; gap: 0.5rem; }
.contact-email-body a { font-size: 0.88rem; white-space: nowrap; }
.email-bubble {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #f9a8d4;
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fce7f3;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-email-note { color: var(--muted); font-size: 0.78rem; font-weight: 400; margin-left: 0.35rem; }
.contact-note { color: var(--muted); font-size: 0.78rem; font-weight: 400; margin: 0 0 0.6rem; }
.private-note { color: var(--muted); font-size: 0.78rem; font-weight: 400; margin-left: 0.35rem; }

/* By-checkbox language picker */
.by-checkbox { font-size: 0.78rem; font-weight: 400; color: var(--primary-strong); text-decoration: underline; margin-left: 0.5rem; cursor: pointer; }
.lang-picker-modal { max-width: 460px; }
.lp-title { font-weight: 700; }
.lp-head-actions { display: flex; align-items: center; gap: 0.75rem; }
.lp-save { background: var(--primary-strong); color: #fff; border: none; border-radius: 6px; padding: 0.4rem 0.75rem; font-weight: 700; cursor: pointer; font-size: 0.85rem; }
.lp-save:hover { background: var(--primary); }
.lp-list { max-height: 55vh; overflow-y: auto; padding: 0.75rem 1.25rem 1.25rem; }
.lp-all { display: block; padding: 0.3rem 0; border-bottom: 1px solid var(--line); margin-bottom: 0.4rem; font-weight: 600; color: var(--primary-strong); cursor: pointer; }
.lp-item { display: block; padding: 0.22rem 0; font-size: 0.92rem; font-weight: 400; color: var(--ink); cursor: pointer; }
.lp-item input { margin-right: 0.4rem; }

/* Flag dialog — mobile-safe */
.flag-body { padding: 1rem 1.25rem; }
.flag-body .mini { margin-top: 0; }
.flag-body label { display: block; font-size: 0.9rem; font-weight: 600; margin: 0 0 0.85rem; }
.flag-body label[for="flag-complaint"] { margin-top: 0.75rem; }
.flag-body select,
.flag-body textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0.3rem;
  font-size: 0.95rem;
  font-family: inherit;
}
.flag-url { word-break: break-all; }
.flag-fixed-reason { margin: 0 0 1rem; font-size: 0.9rem; }
.flag-fixed-reason strong { color: var(--muted); }
.flag-body .intro-btn { margin-top: 0.4cm; }

/* ---------- Admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.admin-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.admin-table td button { background: none; border: none; padding: 0; color: var(--primary-strong); font-weight: 600; text-decoration: underline; cursor: pointer; font-size: 0.85rem; }
.admin-table td button:hover { color: var(--primary); }
.admin-table form { display: inline; margin: 0; }
.admin-images { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1rem 0 1.5rem; }
.admin-img { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.admin-img h3 { margin: 0 0 0.25rem; font-size: 0.9rem; color: var(--primary-strong); }
.admin-thumb { display: block; max-width: 140px; max-height: 140px; border-radius: 8px; margin: 0.5rem 0; object-fit: cover; }
.admin-thumb-flyer { max-height: 220px; }
.admin-img form { margin-top: 0.5rem; }
.admin-img input[type="file"] { font-size: 0.85rem; max-width: 190px; }
