:root {
  --navy: #0b1f3a;
  --navy-deep: #061428;
  --navy-mid: #143056;
  --accent: #1e6bb8;
  --accent-soft: #e8f1fa;
  --gold: #c4a35a;
  --text: #1a2332;
  --muted: #5a6a7e;
  --border: #d8e0ea;
  --bg: #f5f7fb;
  --white: #ffffff;
  --tag-bg: #eef3f9;
  --success: #0d7a4f;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(11, 31, 58, 0.08);
  --shadow-hover: 0 8px 28px rgba(11, 31, 58, 0.14);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), #0a4a8a);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.15);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1rem; }
.brand-sub { font-size: 0.72rem; opacity: 0.7; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.12);
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--white);
  color: var(--navy);
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(30,107,184,0.35), transparent),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 2.75rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
}

.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  max-width: 18ch;
}

.hero-lead {
  color: rgba(255,255,255,0.78);
  font-size: 1.02rem;
  max-width: 42ch;
  margin-bottom: 1.25rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stat-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  min-width: 5.5rem;
}

.stat-pill strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}

.stat-pill span {
  font-size: 0.72rem;
  opacity: 0.7;
}

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  backdrop-filter: blur(6px);
}

.hero-panel h2 {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.hero-panel ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
}

.hero-panel li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 0.55rem;
  vertical-align: middle;
}

/* Filters */
.filters-section {
  margin-top: -1.25rem;
  position: relative;
  z-index: 5;
}

.filters-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .filters-card {
    grid-template-columns: 1.4fr repeat(3, 1fr) auto;
    align-items: end;
  }
}

.field { display: flex; flex-direction: column; gap: 0.3rem; }

.field label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input,
.field select {
  font: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  outline: none;
  width: 100%;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,107,184,0.15);
}

.btn {
  appearance: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--accent-soft); color: var(--navy); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover { background: #185a9c; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover { background: var(--accent-soft); text-decoration: none; }

/* Main */
main { flex: 1; padding: 1.75rem 0 3rem; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 1.15rem;
  color: var(--navy);
}

.section-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.featured-section { margin-bottom: 2rem; }

.job-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 720px) {
  .job-grid.featured { grid-template-columns: repeat(2, 1fr); }
}

.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  border-color: #c5d3e5;
}

.job-card.featured-card {
  border-color: #c9b27a;
  background: linear-gradient(180deg, #fffdf8 0%, var(--white) 48%);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.airline-line {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.airline-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.airline-name-zh {
  font-size: 0.78rem;
  color: var(--muted);
}

.job-title {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.35;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.meta-item strong { color: var(--text); font-weight: 600; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--navy-mid);
  border: 1px solid #dce5f0;
}

.tag.featured { background: #f7efd8; color: #7a5c18; border-color: #e5d5a4; }
.tag.visa { background: #e8f6ef; color: var(--success); border-color: #c6e6d6; }
.tag.rated { background: #e8f1fa; color: var(--accent); border-color: #c5daf0; }

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid #eef2f7;
}

.hours-badge {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--navy);
}

.view-link {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--accent);
}

.empty-state {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

/* Detail page */
.detail-hero {
  background: linear-gradient(165deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: 1.75rem 0 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.back-link:hover { color: var(--white); }

.detail-hero h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0.35rem 0 0.5rem;
  max-width: 28ch;
}

.detail-airline {
  font-size: 1rem;
  opacity: 0.85;
}

.detail-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: -1rem;
}

@media (min-width: 860px) {
  .detail-layout { grid-template-columns: 1.7fr 1fr; align-items: start; }
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.panel h2 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.kv-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .kv-grid { grid-template-columns: 1fr 1fr; }
}

.kv {
  background: var(--bg);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}

.kv dt {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.kv dd { font-weight: 600; color: var(--navy); font-size: 0.95rem; }

.summary-text {
  color: var(--text);
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.side-actions {
  display: grid;
  gap: 0.65rem;
}

.source-note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.78);
  padding: 2rem 0 1.5rem;
  margin-top: auto;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}

.footer-brand {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer-brand-zh {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

.footer-address { line-height: 1.6; }

.footer-disclaimer {
  font-size: 0.8rem;
  opacity: 0.7;
  line-height: 1.55;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.footer-copy {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  opacity: 0.55;
}

.hidden { display: none !important; }

.loading {
  padding: 3rem;
  text-align: center;
  color: var(--muted);
}

/* Nav */
.site-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

@media (min-width: 920px) {
  .site-nav { display: flex; }
  .header-inner { gap: 1.25rem; }
  .brand { flex-shrink: 0; }
  .site-nav { flex: 1; justify-content: center; }
}

.nav-link {
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.mobile-nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.55rem 0 0.75rem;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 920px) {
  .mobile-nav { display: none; }
}

.mobile-nav .nav-link {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Home modules */
.modules-section { margin-top: 0.25rem; }

.module-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}

.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.module-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #c5d3e5;
  text-decoration: none;
}

.module-card-static { cursor: default; }
.module-card-static:hover { transform: none; }

.module-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
}

.module-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
}

.module-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.module-link {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--accent);
  margin-top: 0.25rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.hero h1 { max-width: 22ch; }
.hero-home h1 { max-width: 16ch; }

/* Static / content pages */
.page-hero {
  background: linear-gradient(165deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: 2rem 0 2.25rem;
}

.page-hero h1 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin: 0.35rem 0 0.65rem;
  max-width: 24ch;
}

.page-lead {
  color: rgba(255,255,255,0.78);
  max-width: 56ch;
  font-size: 1rem;
}

.content-stack {
  display: grid;
  gap: 1rem;
  padding-top: 0.25rem;
}

.content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.3rem;
}

.content-card h2 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.55rem;
}

.content-card p { color: var(--text); font-size: 0.94rem; }
.content-card .muted { margin-top: 0.65rem; font-size: 0.85rem; color: var(--muted); }

.callout {
  background: #fff8e8;
  border: 1px solid #e5d5a4;
  color: #5c4a1e;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.plain-list {
  list-style: disc;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.94rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.filters-card-wide {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .filters-card-wide {
    grid-template-columns: 1.3fr repeat(4, 1fr) auto;
    align-items: end;
  }
}

.home-note p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.home-note h2 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

/* Advertise / pricing */
.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 0.75rem;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.pricing-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pricing-card-featured {
  border-color: #b8cce3;
  box-shadow: var(--shadow-hover);
  background: linear-gradient(180deg, #f8fbff 0%, var(--white) 40%);
}

.pricing-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.pricing-tier {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.pricing-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
  margin: 0;
  padding-right: 3.5rem;
}

.pricing-price {
  font-size: 1.55rem;
  font-weight: 750;
  color: var(--navy);
  line-height: 1.2;
}

.pricing-price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.pricing-alt {
  font-size: 0.82rem;
  color: var(--muted);
}

.pricing-features {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 0;
  flex: 1;
}

.pricing-features li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
}

.pricing-footnote {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.advertise-form .form-lead {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .field-span { grid-column: 1 / -1; }
}

.advertise-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.advertise-form .field em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

.advertise-form input,
.advertise-form select,
.advertise-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  width: 100%;
}

.advertise-form input:focus,
.advertise-form select:focus,
.advertise-form textarea:focus {
  outline: 2px solid rgba(30, 107, 184, 0.25);
  border-color: var(--accent);
}

.advertise-form textarea { resize: vertical; min-height: 7rem; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.form-hint {
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.module-grid {
  /* allow 5 cards to wrap cleanly */
}

@media (min-width: 900px) {
  .module-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* ---- Member auth / account ---- */
.auth-slot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: 0.15rem;
}
.auth-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.auth-link:hover { color: #fff; text-decoration: underline; }
.auth-user {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-auth {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  border-radius: 999px;
}
.btn-auth:hover { filter: brightness(1.05); text-decoration: none; }

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem 0 2rem;
}
.auth-card {
  width: min(440px, 100%);
}
.auth-card h1 {
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.auth-lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.auth-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.auth-form .field input,
.auth-form .field select,
.auth-form .field textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  width: 100%;
}
.auth-form .field input:focus,
.auth-form .field select:focus,
.auth-form .field textarea:focus {
  outline: 2px solid rgba(30, 107, 184, 0.25);
  border-color: var(--accent);
}
.field-hint {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}
.form-error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
}
.form-error.hidden { display: none; }
.auth-switch {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.auth-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.account-layout {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 900px) {
  .account-layout {
    grid-template-columns: 1fr 1fr;
  }
  .account-layout > .panel:first-child {
    grid-column: 1 / -1;
  }
}
.account-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.account-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.account-item h3 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.account-item .meta {
  font-size: 0.82rem;
  color: var(--muted);
}
.account-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.side-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.side-actions .btn { width: 100%; }
.btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--navy);
}
.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--navy-mid);
}
@media (max-width: 720px) {
  .auth-slot .auth-user { display: none; }
  .btn-auth { padding: 0.3rem 0.55rem; }
}

/* Medical page — TOC + requirement lists */
.med-toc h2 {
  margin-bottom: 0.75rem;
}
.med-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
}
.med-toc-list a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f4f7fb;
  color: var(--navy);
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.med-toc-list a:hover {
  background: #e8eef7;
  border-color: #c5d3e6;
}
.req-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.55rem;
}
.req-list li {
  position: relative;
  padding: 0.55rem 0.7rem 0.55rem 0.95rem;
  border-left: 3px solid #2f6fed;
  background: #f7f9fc;
  border-radius: 0 8px 8px 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}
.med-sources {
  margin-top: 0.85rem;
  line-height: 1.7;
}
.med-sources a {
  word-break: break-word;
}
.content-card:target {
  outline: 2px solid #2f6fed55;
  outline-offset: 3px;
}
