/* ─────────────────────────────────────────────────────────────────────────────
   Gushi Schools — one globe, a card in each corner.

   The page is the globe and nothing else (owner, 2026-10-16). An overview
   page in front of it was built and taken out the same day: the filters, the
   partner schools and the way to add a school all live in the card top left.

   The palette is the site's (apps/web/public/assets/tokens.css), copied as the
   few values this page reads. When this moves into the real build it links
   tokens.css instead and this block goes; docs/brand.md tracks the hexes.
   ──────────────────────────────────────────────────────────────────────────── */
:root {
  --ink: #15140F;
  --ink-card: #1F1D17;
  --ink-fg: #ECE6D8;
  --ink-fg-2: #A39B8B;
  --paper: #F4F1E9;
  --paper-sunken: #EDE9DF;
  --paper-card: #FFFDF8;
  --paper-raised: #F1ECE0;
  --fg: #1A1813;
  --fg-2: #5B5546;
  --muted: #6F685B;
  --hair: rgba(26, 24, 19, .12);
  --seal: #C8452E;
  --seal-press: #D8512F;
  --seal-text: #A83A25;
  --seal-soft: rgba(200, 69, 46, .1);
  --jade: #5FA86A;
  --amber: #E0A23C;

  /* One colour per kind of place, from the tone ramp, so nothing new. */
  --university: #5B8BC9;
  --language-school: #E0A23C;
  --confucius-institute: #C8452E;
  --community-school: #5FA86A;
  --tutor: #8A6FC2;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --hz: 'Noto Serif SC', 'Songti SC', serif;
  --r: 18px;
  --pad: clamp(16px, 3.4vw, 48px);
  --shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 18px 48px -18px rgba(0, 0, 0, .55);
  --shadow-soft: 0 1px 2px rgba(26, 24, 19, .04), 0 12px 30px -24px rgba(26, 24, 19, .3);
}

* { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body { margin: 0; background: var(--ink); font: 15px/1.5 var(--sans); color: var(--fg); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--hair); background: var(--paper-card); font-weight: 600; font-size: 14.5px;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--paper-raised); }
.btn.seal { background: var(--seal); border-color: var(--seal); color: #fff; }
.btn.seal:hover { background: var(--seal-press); }
.btn.light { background: #fff; color: var(--seal-text); border-color: #fff; }
.btn.small { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { border: 0; background: none; padding: 0; color: var(--seal-text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.kicker { margin: 0 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* ── Fields ───────────────────────────────────────────────────────────────── */
.search { display: flex; align-items: center; gap: 9px; padding: 0 12px; height: 38px; background: var(--paper-raised); border-radius: 11px; border: 1px solid transparent; }
.search:focus-within { border-color: var(--hair); background: #fff; }
.search svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.search input { border: 0; outline: 0; background: none; font: inherit; font-size: 14px; width: 100%; color: var(--fg); }
.selects { display: grid; }
select {
  appearance: none; -webkit-appearance: none; height: 42px; padding: 0 28px 0 11px; border-radius: 11px; border: 1px solid var(--hair);
  background: var(--paper-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%236F685B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center / 12px;
  font: inherit; font-size: 14px; color: var(--fg); min-width: 0; text-overflow: ellipsis;
}
select.set { border-color: var(--seal); background-color: var(--seal-soft); color: var(--seal-text); font-weight: 500; }

/* ── The globe ───────────────────────────────────────────────────────────── */
.globe { position: fixed; inset: 0; overflow: hidden; background: var(--ink); color: var(--fg); }
#space {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 800px at 55% 52%, rgba(91, 139, 201, .16), transparent 62%),
    radial-gradient(900px 600px at 20% 10%, rgba(200, 69, 46, .07), transparent 60%),
    var(--ink);
}
#space::before, #space::after {
  content: ''; position: absolute; inset: 0; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 88% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 82%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 6%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 6% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 92%, #fff 50%, transparent 51%);
}
#space::after { background-size: 340px 340px; opacity: .25; }
#map { position: absolute; inset: 0; }
.maplibregl-canvas { outline: none; }
.maplibregl-ctrl-attrib { background: rgba(21, 20, 15, .55) !important; color: #A39B8B; font-size: 10px; }
.maplibregl-ctrl-attrib a { color: #ECE6D8; }
.maplibregl-ctrl-group { background: rgba(255, 253, 248, .92); border-radius: 12px; box-shadow: var(--shadow) !important; }

.panel, .feed, .detail {
  position: absolute; z-index: 5;
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r); box-shadow: var(--shadow);
}
.panel { top: 20px; left: 20px; width: 380px; padding: 14px 16px; max-height: calc(100% - 40px); overflow: auto; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--fg); text-decoration: none; font: 600 16px/1 var(--serif); }
.brand b { font-weight: 600; color: var(--seal-text); }
.brand > span:last-child { white-space: nowrap; }
.panel-head .head-end { gap: 6px; }
.lang button[data-lang="zh"] { letter-spacing: 0; }
.chop { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--seal); color: #fff; font: 600 15px/1 var(--hz); }
.count { margin: 12px 0 10px; color: var(--fg-2); font-size: 14px; }
.find { display: flex; gap: 6px; margin-bottom: 8px; }
.find .search { flex: 1; min-width: 0; }
/* A phone only (the small-screen block shows it). */
.filters-toggle { display: none; }
.panel .selects { grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.panel .selects #f-aud { grid-column: 1 / -1; }
.panel select { height: 36px; font-size: 13px; border-radius: 10px; }
.partners:not(:empty) { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hair); display: grid; gap: 6px; }
.partners .kicker { margin: 0 0 2px; font-size: 10.5px; }
.partner-row-btn { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; border-radius: 12px; padding: 8px 10px; background: var(--seal-soft); }
.partner-row-btn:hover { background: rgba(200, 69, 46, .16); }
.partner-row-btn .logo { width: 34px; height: 34px; box-shadow: 0 0 0 2px var(--seal); }
.partner-row-btn b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.partner-row-btn small { color: var(--seal-text); font-size: 12px; font-weight: 500; }
.partner-row-btn.featured { background: rgba(224, 162, 60, .14); }
.partner-row-btn.featured .logo { box-shadow: 0 0 0 2px var(--amber); }
.partner-row-btn.featured small { color: var(--fg-2); }
.pills { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 4; display: flex; gap: 8px; }
.pill-dark {
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(21, 20, 15, .6); color: var(--ink-fg);
  padding: 9px 16px; border-radius: 99px; font-size: 13px; backdrop-filter: blur(8px); white-space: nowrap;
}
.pill-dark b { color: #F2B4A6; font-weight: 600; }
.pill-dark:hover { background: rgba(21, 20, 15, .8); }
.count b { color: var(--fg); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border: 1px solid var(--hair); border-radius: 99px; background: transparent; font-size: 12.5px; color: var(--fg-2);
}
.chip:hover { background: var(--paper-raised); }
.chip.on { background: var(--fg); color: var(--paper-card); border-color: var(--fg); }
.active { display: flex; flex-wrap: wrap; gap: 6px; }
.active:not(:empty) { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px; border-radius: 99px; background: var(--seal-soft); color: var(--seal-text); font-size: 12.5px; font-weight: 500; border: 0; }
.pill span { font-size: 15px; line-height: 1; opacity: .7; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.university { background: var(--university); }
.dot.language-school { background: var(--language-school); }
.dot.confucius-institute { background: var(--confucius-institute); }
.dot.community-school { background: var(--community-school); }
.dot.tutor { background: var(--tutor); }

.feed { left: 20px; bottom: 20px; width: 380px; max-height: min(42%, 400px); display: flex; flex-direction: column; overflow: hidden; }
.feed header { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px 8px 16px; font-size: 12px; font-weight: 600; color: var(--fg-2); letter-spacing: .02em; }
.feed.closed ol { display: none; }
.ghost { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 2px 4px; }
.ghost:hover { color: var(--fg); }
.feed ol { list-style: none; margin: 0; padding: 0 6px 8px; overflow: auto; }
.feed li button { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; width: 100%; border: 0; background: none; text-align: left; padding: 6px 10px; border-radius: 10px; }
.feed li button > span:nth-child(2) { min-width: 0; }
.feed li button:hover, .feed li button.on { background: var(--paper-raised); }
.feed li.partner-row button { background: var(--seal-soft); }
.feed .t { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .s { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .s b { color: var(--seal-text); font-weight: 600; }
.feed .flag { font-size: 15px; }
.feed .empty { color: var(--muted); padding: 6px 10px 10px; font-size: 12.5px; }


.globe.no-gl::after { content: var(--nogl, 'The globe needs WebGL, which this browser does not offer. The lists above and below have every school.'); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 36ch; text-align: center; color: var(--ink-fg-2); }

/* ── Logos ───────────────────────────────────────────────────────────────── */
.logo { position: relative; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--hair); }
.logo img { width: 78%; height: 78%; object-fit: contain; }
.logo.fill img { width: 100%; height: 100%; object-fit: cover; }
.logo .ini { font: 600 11px/1 var(--sans); color: #fff; letter-spacing: -.02em; }
.logo.ini-bg { background: var(--university); }
.logo.ini-bg.language-school { background: var(--language-school); }
.logo.ini-bg.confucius-institute { background: var(--confucius-institute); }
.logo.ini-bg.community-school { background: var(--community-school); }
.logo.ini-bg.tutor { background: var(--tutor); }

/* ── Markers ─────────────────────────────────────────────────────────────── */
.pin { cursor: pointer; will-change: transform; }
.pin .logo { width: 40px; height: 40px; box-shadow: 0 0 0 2.5px #fff, 0 6px 16px rgba(0, 0, 0, .45); transition: transform .18s cubic-bezier(.2, .8, .2, 1.3); }
.pin .badge { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.pin:hover .logo, .pin.on .logo { transform: scale(1.18); }
.pin.on .logo { box-shadow: 0 0 0 3px var(--seal), 0 8px 22px rgba(0, 0, 0, .5); }
.pin .tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); background: var(--fg); color: var(--paper-card); padding: 5px 9px; border-radius: 8px; white-space: nowrap; font-size: 12px; font-weight: 500; pointer-events: none; opacity: 0; transition: opacity .12s; }
.pin:hover .tip { opacity: 1; }
/* A partner: bigger, ringed in seal, and named without hovering. */
.pin.tier-partner { z-index: 3; }
.pin.tier-partner .logo { width: 54px; height: 54px; box-shadow: 0 0 0 3px var(--seal), 0 0 0 6px rgba(255, 255, 255, .9), 0 10px 24px rgba(0, 0, 0, .5); }
.pin.tier-partner .tip { opacity: 1; bottom: auto; top: calc(100% + 10px); background: var(--seal); }
.pin.tier-partner .tip::before { content: 'Gushi Partner · '; font-weight: 600; }
.pin.tier-featured .logo { width: 46px; height: 46px; box-shadow: 0 0 0 3px var(--amber), 0 8px 20px rgba(0, 0, 0, .45); }

.stack { display: flex; align-items: center; cursor: pointer; }
.stack .logo { width: 36px; height: 36px; margin-left: -14px; box-shadow: 0 0 0 2.5px #fff, 0 6px 14px rgba(0, 0, 0, .4); transition: transform .15s; }
.stack .logo:first-child { margin-left: 0; }
.stack .n { margin-left: -10px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 99px; z-index: 1; display: grid; place-items: center; background: var(--fg); color: #fff; font: 600 12px/1 var(--sans); box-shadow: 0 0 0 2.5px #fff, 0 6px 14px rgba(0, 0, 0, .4); }
.stack:hover .logo { transform: translateY(-2px); }

/* ── One school ──────────────────────────────────────────────────────────── */
.detail { top: 20px; right: 20px; bottom: 20px; width: 410px; overflow: auto; padding: 0; animation: slide .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
/* The header stays put while the card scrolls under it, so it needs a solid
   ground. It was `inherit`, the card's 94 % white that only reads as solid
   because of the blur behind it; the Feedback screenshot cannot draw a blur,
   and a scrolled card came out with its courses printed through its own
   header (owner, 2026-10-16). */
.detail .top { position: sticky; top: 0; padding: 20px 20px 16px; background: var(--paper-card); border-bottom: 1px solid var(--hair); z-index: 1; border-radius: var(--r) var(--r) 0 0; }
.detail .close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--paper-raised); font-size: 17px; line-height: 1; color: var(--fg-2); }
.detail .close:hover { background: var(--hair); color: var(--fg); }
.detail .logo { width: 64px; height: 64px; box-shadow: 0 0 0 1px var(--hair), 0 6px 18px -8px rgba(0, 0, 0, .3); }
.detail .logo .ini { font-size: 20px; }
.detail .mark { height: 48px; max-width: 75%; object-fit: contain; object-position: left; display: block; }
.detail h2 { margin: 14px 40px 2px 0; font-size: 22px; line-height: 1.2; }
.detail .local { font: 500 15px/1.4 var(--hz); color: var(--fg-2); }
.detail .where { margin-top: 8px; color: var(--fg-2); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; }
.kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 99px; background: var(--paper-raised); color: var(--fg); }
.kind.is-partner { background: var(--seal); color: #fff; }
.kind.is-featured { background: var(--amber); color: var(--fg); }
.detail section { padding: 16px 20px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.detail section:last-child { border-bottom: 0; }
.detail section.book-cta { background: var(--seal-soft); }
.book-cta p { margin: 0 0 12px; color: var(--fg-2); }
.book-cta .offer { color: var(--seal-text); font-weight: 600; }
.book-cta .btn { width: 100%; }
.detail h3 { margin: 0 0 9px; font: 600 11px/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.detail ul { margin: 0; padding-left: 18px; }
.detail li { margin: 3px 0; }
.detail .note { margin: 0; color: var(--fg-2); }
.books { display: flex; flex-wrap: wrap; gap: 6px; }
.book { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px; background: var(--paper-raised); font-size: 13px; }
.book.gushi { background: var(--seal-soft); color: var(--seal-text); font-weight: 500; }
.book.gushi::before { content: '故'; font: 600 11px/1 var(--hz); background: var(--seal); color: #fff; border-radius: 4px; padding: 3px; }
.gushi-line { margin: 10px 0 0; font-size: 12.5px; color: var(--fg-2); }
.gushi-line a { color: var(--seal-text); font-weight: 500; }
.facts2 { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; margin: 0; }
.facts2 dt { color: var(--muted); }
.facts2 dd { margin: 0; }
.contact { display: grid; gap: 6px; }
.contact a { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; background: var(--paper-raised); color: var(--fg); text-decoration: none; word-break: break-word; }
.contact a:hover { background: var(--hair); }
.contact svg { width: 16px; height: 16px; fill: none; stroke: var(--fg-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact .go { color: var(--muted); font-size: 12px; }
.missing { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.own { display: grid; gap: 8px; }
.own .row { display: flex; gap: 8px; }
.own .row .btn { flex: 1; height: 40px; font-size: 13.5px; }
.own small { color: var(--muted); font-size: 12px; }

/* ── The forms ───────────────────────────────────────────────────────────── */
.sheet { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 20px; background: var(--paper-card); color: var(--fg); box-shadow: var(--shadow); }
.sheet::backdrop { background: rgba(21, 20, 15, .55); backdrop-filter: blur(3px); }
.sheet form { display: grid; gap: 0; }
.sheet .s-head { position: sticky; top: 0; background: var(--paper-card); padding: 22px 24px 14px; border-bottom: 1px solid var(--hair); z-index: 2; }
.sheet h2 { font-size: 24px; padding-right: 128px; }
.sheet .s-head p { margin: 6px 0 0; color: var(--fg-2); font-size: 14px; }
.sheet .fb-in { position: absolute; top: 16px; right: 56px; height: 32px; padding: 0 12px; border-radius: 16px; border: 0; background: var(--paper-raised); font: inherit; font-size: 13px; color: var(--fg-2); cursor: pointer; }
.sheet .fb-in:hover { color: var(--fg); }
.sheet .x { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--paper-raised); font-size: 18px; color: var(--fg-2); }
.sheet .s-body { padding: 16px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.sheet fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.sheet legend { grid-column: 1 / -1; padding: 0; margin-bottom: 4px; font: 600 11px/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.field { display: grid; gap: 5px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.field.wide { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--hair); background: #fff; font: inherit; font-size: 14.5px; font-weight: 400; color: var(--fg);
}
.field textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid rgba(200, 69, 46, .35); border-color: var(--seal); }
.field .req { color: var(--seal-text); }
.field.bad input, .field.bad select { border-color: var(--seal); background: var(--seal-soft); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 400; color: var(--fg); }
.checks label, .check { display: inline-flex; gap: 7px; align-items: center; font-size: 14px; font-weight: 400; color: var(--fg); }
.check { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sheet .s-foot { position: sticky; bottom: 0; background: var(--paper-card); border-top: 1px solid var(--hair); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet .s-foot small { color: var(--muted); font-size: 12px; max-width: 40ch; }
.sheet .msg { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.sheet .msg.err { background: var(--seal-soft); color: var(--seal-text); }
.sheet .done { position: relative; padding: 36px 28px 28px; text-align: center; }
.sheet .done .tick-big { width: 52px; height: 52px; border-radius: 50%; background: var(--jade); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; font-size: 24px; }
/* The sheet's h2 leaves room for the head's buttons; the card has none. */
.sheet .done h2 { padding: 0; margin: 0; }
.sheet .done .x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--paper-raised); font-size: 18px; color: var(--fg-2); }
.sheet .done p { color: var(--fg-2); max-width: 44ch; margin: 8px auto 20px; }

/* ── The account, the badge, the gate (2026-10-20, #2709 #2715) ──────────── */
.account { display: flex; align-items: center; }
/* DE | EN beside Sign in (owner, 2026-10-27): the sign-in sheet's tabs, small
   and quiet, so it reads as a setting and not as a second button. */
.head-end { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--paper-raised); }
.lang button { height: 26px; min-width: 28px; padding: 0 6px; white-space: nowrap; border: 0; border-radius: 7px; background: none; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.lang button:hover { color: var(--fg); }
.lang button.on { background: #fff; color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); cursor: default; }
.me { position: relative; }
.me summary { list-style: none; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--paper-card); font-weight: 600; font-size: 14px; }
.me summary::-webkit-details-marker { display: none; }
.me .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 9; min-width: 210px; display: grid; gap: 2px; padding: 8px; background: var(--paper-card); border: 1px solid var(--hair); border-radius: 12px; box-shadow: var(--shadow); }
.me .menu small { color: var(--muted); padding: 4px 8px 6px; word-break: break-all; }
.me .menu a, .me .menu button { text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; text-decoration: none; color: var(--fg); }
.me .menu a:hover, .me .menu button:hover { background: var(--paper-raised); }
.me .menu .danger { color: var(--seal-text); margin-top: 4px; border-top: 1px solid var(--hair); border-radius: 0 0 8px 8px; }
.btn.danger { background: var(--seal); color: #fff; border-color: var(--seal); }

/* The green badge: beside a name, and on a pin's shoulder. */
.tick { display: inline-block; width: 15px; height: 15px; margin-left: 5px; vertical-align: -2px; flex: none; }
.tick svg { width: 100%; height: 100%; display: block; }
.detail h2 .tick { width: 20px; height: 20px; vertical-align: -3px; }
.pin .tick { position: absolute; right: -4px; top: -4px; width: 18px; height: 18px; margin: 0; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.pin.tier-partner .tick { right: -2px; top: -2px; width: 22px; height: 22px; }
.kind.is-verified { background: rgba(62, 155, 87, .14); color: #2E7A43; }

/* The discount filter and its mark. */
.chip .pct, .deal-band .pct { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--jade); color: #fff; font: 700 10px/1 var(--sans); font-style: normal; }
.chip.on .pct { background: #fff; color: var(--fg); }
.feed .s b.deal { color: #2E7A43; }
.deal-band { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: rgba(95, 168, 106, .12); }
.deal-band .pct { width: 28px; height: 28px; font-size: 14px; }
.deal-band small { display: block; color: var(--fg-2); font-size: 12.5px; }
.deal-band .gate { width: auto; }
.deal-band .gate .lock b { white-space: nowrap; padding: 4px 9px; font-size: 12px; }
.deal-band code { font: 600 14px/1 ui-monospace, Menlo, monospace; letter-spacing: .04em; padding: 7px 10px; border-radius: 8px; background: #fff; border: 1px dashed var(--jade); }

/* BEHIND THE ACCOUNT. What is blurred is not the school's: the letters are
   made up, the real ones are not on the page. */
.gate { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 11px; }
.gate .blur { display: block; filter: blur(5px); opacity: .75; pointer-events: none; user-select: none; }
.gate .lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; color: var(--fg); }
.gate .lock b { background: var(--paper-card); padding: 5px 11px; border-radius: 99px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 6px 16px -8px rgba(0, 0, 0, .35); font-weight: 600; }
.gate .lock svg, .signin-cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.gate .lock svg { display: none; }
.gate:hover .lock b { background: var(--fg); color: var(--paper-card); }
.facts2 dd .gate { display: inline-block; width: auto; }
.facts2 dd .gate .lock b { padding: 2px 8px; font-size: 12px; }
.row-fake { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; background: var(--paper-raised); }
.row-fake svg { width: 16px; height: 16px; fill: none; stroke: var(--fg-2); stroke-width: 1.7; }
.contact.blurred, .gate .contact { display: grid; gap: 6px; }
.signin-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--paper-raised); }
.signin-cta p { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.muted { color: var(--muted); }

.tandem-ad { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: linear-gradient(135deg, rgba(200, 69, 46, .08), rgba(91, 139, 201, .08)); }
.tandem-ad .stamp { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--seal); color: #FFF8EE; font: 600 11px/1.05 var(--hz); text-align: center; transform: rotate(-4deg); }
.tandem-ad b { display: block; font-size: 13.5px; }
.tandem-ad small { display: block; color: var(--fg-2); font-size: 12.5px; line-height: 1.4; }

/* A fixed scale: every value, the school's lit (For, Levels, Days, Presence). */
.scale { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.scale span { padding: 2px 6px; border-radius: 7px; font-size: 12px; line-height: 1.35; color: #B5ADA0; background: transparent; border: 1px dashed var(--hair); }
.scale span.on { color: var(--fg); background: var(--paper-raised); border: 1px solid var(--hair); font-weight: 500; }
.facts2 .when { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
.picks label { position: relative; }
.picks input { position: absolute; opacity: 0; pointer-events: none; }
.picks span { display: inline-block; padding: 6px 11px; border-radius: 9px; border: 1px solid var(--hair); background: #fff; font-size: 13.5px; font-weight: 400; color: var(--fg-2); cursor: pointer; }
.picks input:checked + span { background: var(--fg); color: var(--paper-card); border-color: var(--fg); }
.picks input:focus-visible + span { outline: 2px solid rgba(200, 69, 46, .35); }
/* The courses, one box each (#2969). */
.courses .crows { display: grid; gap: 6px; }
.courses .crow { display: grid; grid-template-columns: 1fr 28px; gap: 6px; align-items: center; }
.courses .crow input { min-width: 0; }
.courses .crow button { border: 0; background: none; font-size: 17px; color: var(--muted); }
.courses [data-addcourse] { justify-self: start; font-size: 13px; }

/* The ⓘ beside Levels and the panel behind it (#2968), the learn host's
   (learn.css .info-b / .info-p): the level's name lives here, not on the
   chip, so the scale stays a row of labels. */
.info-b { display: inline-flex; align-items: center; vertical-align: -2px; margin-left: 5px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.info-b svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.info-b svg circle[r=".2"] { fill: currentColor; stroke-width: 1.9; }
.info-b:hover { color: var(--fg); }
.info-p { max-width: min(300px, calc(100vw - 32px)); padding: 16px 18px; border: 0; border-radius: 14px; background: var(--paper-card); color: var(--fg); box-shadow: var(--shadow); font: 400 14px/1.4 var(--sans); text-transform: none; letter-spacing: normal; }
.info-p::backdrop { background: rgba(26, 24, 19, .22); }
.info-p h3 { margin: 0 0 10px; font: 600 16px/1.2 var(--serif); letter-spacing: -.01em; text-transform: none; color: var(--fg); }
.info-p .lv { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; }
.info-p .lv dt { padding: 0; font-weight: 600; color: var(--fg); }
.info-p .lv dd { margin: 0; color: var(--fg-2); }
@supports not selector(:popover-open) { .info-p { display: none; } }

/* The discount step: the entry's prices, each ticked or not, with the price after. */
.dealrows { display: grid; gap: 6px; }
.dealrow { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--hair); border-radius: 11px; background: #fff; font-weight: 400; color: var(--fg); cursor: pointer; }
.dealrow:has(input:checked) { border-color: var(--jade); background: rgba(95, 168, 106, .08); }
.dealrow .c { font-size: 14px; }
.dealrow .c small { display: block; color: var(--muted); font-size: 12px; }
.dealrow .p { text-align: right; font-size: 13.5px; white-space: nowrap; }
.dealrow .p s { color: var(--muted); }
.dealrow .p b { color: #2E7A43; }
.sheet .wide-msg { grid-column: 1 / -1; }

/* The price matrix, on the card and in the form. */
.prices { width: 100%; border-collapse: collapse; font-size: 13px; }
.prices th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11.5px; padding: 0 8px 6px 0; }
.prices td { padding: 7px 8px 7px 0; border-top: 1px solid var(--hair); vertical-align: top; }
.prices td.num { white-space: nowrap; font-weight: 600; padding-right: 0; }
.gate .prices { pointer-events: none; }
.matrix .mhead, .matrix .mrow { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr 28px; gap: 6px; align-items: center; }
.matrix .mhead small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.matrix .mrows { display: grid; gap: 6px; }
.matrix .mrow input { height: 38px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--hair); background: #fff; font: inherit; font-size: 13.5px; font-weight: 400; color: var(--fg); min-width: 0; }
.matrix .mrow input:focus { outline: 2px solid rgba(200, 69, 46, .35); border-color: var(--seal); }
.matrix .mrow button { border: 0; background: none; font-size: 17px; color: var(--muted); }
.matrix [data-addrow] { justify-self: start; font-size: 13px; }
.matrix.bad .mrow input { border-color: var(--seal); background: var(--seal-soft); }

/* "At a glance" as tags (#2711). */
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: var(--paper-raised); border: 1px solid var(--hair); font-size: 13px; line-height: 1.35; }
.facts2 { align-items: start; }
.facts2 dt { padding-top: 3px; }

#f-book.locked { color: var(--muted); }
.feed.squeezed { display: none; }

/* ── The school form (#2713) ──────────────────────────────────────────────── */
.sheet .s-body.choose { grid-template-columns: 1fr 1fr; padding-bottom: 24px; }
.sheet .s-body.choose.doors3 { grid-template-columns: 1fr 1fr 1fr; }
/* The doors' pictures (#2990). */
.door-ico { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 6px; border-radius: 11px; background: var(--paper-raised); color: var(--fg); }
.door-ico svg { width: 20px; height: 20px; }
.door-ico.pct { background: rgba(95, 168, 106, .16); color: #2E7A43; font-weight: 700; font-size: 17px; }
.door-ico.seal { background: var(--seal); color: #FFF8EE; font: 600 12px/1.05 var(--hz); text-align: center; transform: rotate(-4deg); }
.choice { display: grid; gap: 4px; text-align: left; padding: 18px; border-radius: 14px; border: 1px solid var(--hair); background: #fff; }
.choice:hover { border-color: var(--seal); background: var(--seal-soft); }
.choice b { font-size: 15.5px; }
.choice small { color: var(--muted); font-size: 13px; }
.sent-note { margin: 12px 24px 0; padding: 10px 12px; border-radius: 10px; background: rgba(95, 168, 106, .14); color: #2E6B3B; font-size: 13.5px; }
.field .hint { color: var(--muted); font-weight: 400; font-size: 12px; }
.s-foot .grow { flex: 1; }
.s-foot { flex-wrap: wrap; }
.terms ol { margin: 0 0 10px; padding-left: 20px; color: var(--fg-2); font-weight: 400; font-size: 13px; display: grid; gap: 3px; }
.taginput { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 42px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--hair); background: #fff; cursor: text; }
.taginput:focus-within { outline: 2px solid rgba(200, 69, 46, .35); border-color: var(--seal); }
.taginput .tag { background: var(--seal-soft); color: var(--seal-text); border-color: transparent; font-weight: 500; }
.taginput .tag button { border: 0; background: none; padding: 0 0 0 2px; font-size: 15px; line-height: 1; color: inherit; opacity: .7; }
.taginput input { flex: 1; min-width: 140px; border: 0; outline: 0; height: 28px; padding: 0 4px; font: inherit; font-size: 14.5px; font-weight: 400; background: none; color: var(--fg); }
/* One column, top to bottom (#2980, "ugly alignment"): `.sheet .s-body`
   outranked a bare `.tandem` and laid the links beside the loop. */
.sheet .s-body.tandem { grid-template-columns: 1fr; }
/* Google's booking page for "Meet Gushi" (#2979). */
/* Google's booking page for "Meet Gushi" (#2979), alone on its page and as
   tall as the sheet allows, so there is one scroll, Google's (#2994, #2996). */
.sheet .s-body.call { grid-template-columns: 230px 1fr; gap: 18px; padding-top: 16px; padding-bottom: 16px; align-items: start; }
/* Who the call is with, beside Google's calendar (#3022). */
.meet { display: grid; gap: 4px; padding: 18px 16px; border-radius: 14px; background: linear-gradient(160deg, rgba(200, 69, 46, .09), rgba(91, 139, 201, .07)); }
.meet .faces { display: flex; margin-bottom: 8px; }
.meet .faces img, .meet .faces span { display: grid; place-items: center; width: 42px; height: 42px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--paper-card); margin-right: -8px; object-fit: cover; }
.meet .faces .seal { border-radius: 12px; background: var(--seal); color: #FFF8EE; font: 600 11px/1.05 var(--hz); text-align: center; transform: rotate(-4deg); margin-left: 6px; }
.meet-who { font: 600 17px/1.25 var(--serif); color: var(--fg); }
.meet small { color: var(--fg-2); font-size: 13px; }
.meet-side { display: grid; gap: 10px; }
.meet-about { margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--fg); }
.meet-help { margin: 0; padding: 0 16px; font-size: 13px; color: var(--fg-2); }
.meet-help a { color: var(--seal-text); font-weight: 600; white-space: nowrap; }
.meet ul { margin: 6px 0 4px; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 13.5px; color: var(--fg); }
.meet li { padding-left: 20px; position: relative; }
.meet li::before { content: '✓'; position: absolute; left: 0; color: var(--jade); font-weight: 700; }
.meet-when { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--seal-text); }
.meet-links { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; }
.meet-links a { color: var(--fg-2); }
.gcal { display: block; width: 100%; height: max(460px, calc(100vh - 230px)); border: 1px solid var(--hair); border-radius: 12px; background: #fff; }
/* The drawing on the picture (#2991), and the pitch centred (#2992). */
.tandem-art { position: absolute; inset: 0; }
.tandem-pic .loop { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: min(330px, 86%); z-index: 1; }
/* The loop stays inside its picture: without its own layer, its z-index met
   the sticky header's and it slid up over the title on scrolling (#3021). */
.tandem-pic { isolation: isolate; }
.tandem-pic .loop .nd > rect { fill: rgba(255, 250, 244, .9); }
.tandem-pic .loop .nd-us > rect { fill: rgba(255, 236, 228, .95); }
/* Wide enough on the call page for Google's two columns, the month beside
   the times, instead of one long column (#2996). */
.sheet.wide { width: min(1020px, calc(100vw - 24px)); }
.tandem-lead { margin: 6px 0 0; text-align: center; font: 600 21px/1.25 var(--serif); color: var(--fg); }
.tandem-text, .tandem-call { text-align: center; max-width: 54ch; justify-self: center; }
.tandem-text b, .tandem-call b { color: var(--fg); }
.tandem-call { margin: 0; color: var(--fg-2); font-size: 14px; }
.perks { list-style: none; margin: 4px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.perks li { display: grid; justify-items: center; gap: 3px; padding: 14px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--hair); text-align: center; }
.perks li i { font-style: normal; font-size: 22px; line-height: 1.2; margin-bottom: 2px; }
.perks li b { font-size: 14px; color: var(--fg); }
.perks li small { font-size: 12.5px; line-height: 1.35; color: var(--fg-2); }
.perks li b { color: var(--fg); }
.tandem-links { justify-content: center; }
.tandem-pic { position: relative; height: 250px; border-radius: 14px; overflow: hidden; background: #E9E2D2; }
.tandem-pic .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.tandem-text { margin: 0; color: var(--fg-2); font-size: 14px; }
.tandem-links { margin: 0; display: flex; gap: 16px; font-size: 13.5px; }
.tandem-links a { color: var(--seal-text); font-weight: 500; }
.loop { margin: 0 auto; max-width: 330px; width: 100%; }
.loop svg { display: block; width: 100%; height: auto; color: var(--fg-2); }
.loop .nd rect { fill: var(--seal-soft); }
.loop .nd-us rect { fill: rgba(200, 69, 46, .22); }
.loop .nhz { font-family: var(--hz); font-size: 36px; font-weight: 600; fill: var(--seal-text); }
.loop .nlb { font-family: var(--sans); font-size: 24px; font-weight: 600; fill: var(--fg); }
.loop .nseal rect { fill: var(--seal); }
.loop .nseal text { font-family: var(--hz); font-size: 21px; font-weight: 600; fill: #FFF8EE; }
.loop .arr { fill: none; stroke: var(--fg-2); stroke-width: 6; }
.loop .back { fill: none; stroke: var(--seal-text); stroke-width: 5; color: var(--seal-text); }
.loop .blb { font-family: var(--sans); font-size: 24px; font-weight: 500; fill: var(--seal-text); }
/* What was sent, and the doors still open, as rows (owner, 2026-10-27: "das
   auch bitte clean designen"). */
.sent-list { list-style: none; padding: 0; margin: 20px auto 0; display: grid; gap: 8px; max-width: 460px; text-align: left; }
.sent-list li, .open-doors .choice.row { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--hair); background: #fff; }
.sent-list li { grid-template-columns: 38px 1fr; }
.sent-list .door-ico, .open-doors .door-ico { margin: 0; }
.sent-list b, .open-doors b { display: block; font-size: 14.5px; color: var(--fg); }
.sent-list small, .open-doors small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--fg-2); }
.door-ico.ok { background: rgba(95, 168, 106, .16); color: #2E7A43; font-weight: 700; }
.sheet .done .else { margin: 22px auto 8px; max-width: 460px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.open-doors { display: grid; gap: 8px; max-width: 460px; margin: 0 auto; text-align: left; }
.open-doors .choice.row i { font-style: normal; font-size: 20px; color: var(--muted); }
.sheet .done .done-close { margin-top: 24px; min-width: 140px; }

/* ── Signing in ──────────────────────────────────────────────────────────── */
.sheet .s-body.signin { grid-template-columns: 1fr; }
.btn.google { width: 100%; gap: 10px; background: #fff; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--paper-raised); }
.tabs button { flex: 1; height: 34px; border: 0; border-radius: 9px; background: none; font-size: 13.5px; font-weight: 500; color: var(--fg-2); }
.tabs button.on { background: #fff; color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.signin .check { font-size: 13.5px; }
.signin .fine { margin: 0; }

/* ── The cookie banner, the site's (site.css "consent"), in this page's
   tokens (#2724: "cookie banner auch hier!"). ─────────────────────────── */
.consent {
  /* Bottom centre, over the globe and above the two pills: the site's
     corner here is the school card's, whose buttons it covered. */
  position: fixed; left: 50%; translate: -50% 0; bottom: 72px; z-index: 70; width: min(340px, calc(100vw - 40px));
  padding: 18px 18px 16px; background: var(--paper-card); color: var(--fg-2); border: 1px solid var(--hair); border-radius: 18px;
  font-size: 13px; line-height: 1.5; box-shadow: var(--shadow); animation: consent-in .32s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes consent-in { from { transform: translateY(14px); opacity: 0; } }
.consent[hidden] { display: none; }
.consent-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.consent-mark { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--seal-soft); color: var(--seal-text); }
.consent-mark svg { width: 19px; height: 19px; display: block; }
.consent-title { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--fg); line-height: 1.2; }
.consent p:not(.consent-title) { margin: 0 0 14px; }
.consent a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.consent-row { display: flex; gap: 8px; }
.consent-btn { flex: 1 1 0; height: 36px; border-radius: 10px; border: 1px solid var(--fg); background: var(--fg); color: var(--paper-card); font-weight: 600; font-size: 13.5px; }
.consent-btn:hover { background: var(--fg-2); border-color: var(--fg-2); }

/* ── Feedback: the platform's dialog (platform.css), in this page's tokens ─ */
.fb-dialog { border: 1px solid var(--hair); border-radius: 18px; padding: 0; background: var(--paper-card); color: var(--fg); max-width: 440px; width: calc(100% - 32px); box-shadow: var(--shadow); }
.fb-dialog::backdrop { background: rgba(21, 20, 15, .55); backdrop-filter: blur(3px); }
.fb-dialog:focus, .fb-dialog:focus-visible { outline: none; }
.fb-dialog.wide { max-width: min(980px, calc(100% - 32px)); }
.dlg { padding: 22px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.dlg h2 { font-size: 20px; }
.dlg p { margin: 0; }
.fine { color: var(--fg-2); font-size: 13px; line-height: 1.45; }
#fb-msg { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--hair); background: #fff; color: var(--fg); font: inherit; font-size: 14px; resize: vertical; }
#fb-msg:focus { outline: 2px solid rgba(200, 69, 46, .35); border-color: var(--seal); }
.fb-thumb { padding: 0; border: 1px solid var(--hair); border-radius: 6px; background: none; line-height: 0; cursor: zoom-in; overflow: hidden; flex: 0 0 auto; }
.fb-thumb:hover { border-color: var(--seal); }
.fb-thumb img { height: 52px; display: block; }
.fb-paper { max-height: 60vh; overflow: auto; border: 1px solid var(--hair); border-radius: 10px; background: var(--paper-sunken); line-height: 0; }
#fb-canvas { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: none; }

/* ── Globe or Online (2026-11-04) ────────────────────────────────────────── */
.views { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin: 0 0 10px; border-radius: 12px; background: var(--paper-sunken); }
.views button { height: 32px; border: 0; border-radius: 9px; background: none; font: 500 13.5px/1 var(--sans); color: var(--fg-2); }
.views button.on { background: var(--paper-card); color: var(--fg); box-shadow: 0 1px 2px rgba(26, 24, 19, .12); }
.views small { color: var(--muted); font-size: 12px; font-weight: 500; }
/* Tutors are only online; the country is not a filter there. */
.globe:not(.online) .chip.online-only { display: none; }
.globe.online #f-country { display: none; }
.globe.online .panel .selects #f-book { grid-column: 1 / -1; }
.globe.online .feed, .globe.online .maplibregl-ctrl-bottom-right, .globe.online .maplibregl-marker { display: none; }
.online-list {
  position: absolute; z-index: 4; top: 20px; bottom: 20px; left: 420px; right: 20px;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper-card); border-radius: var(--r); box-shadow: var(--shadow);
}
.online-list[hidden] { display: none; }
.globe.has-detail .online-list { right: 450px; }
.online-list header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px 10px; border-bottom: 1px solid var(--hair); }
.online-list header .lbl { font: 600 11px/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.online-list .chip small { color: var(--muted); font-size: 11.5px; }
.online-list .chip.on small { color: inherit; opacity: .7; }
.online-list select.more-langs { width: auto; height: 30px; padding: 0 28px 0 12px; border-radius: 99px; font-size: 13px; }
.online-list ol { list-style: none; margin: 0; padding: 8px 8px 84px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px 8px; align-content: start; }
.online-list li button { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; width: 100%; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 11px; }
.online-list li button > span:nth-child(2) { min-width: 0; }
.online-list li button:hover, .online-list li button.on { background: var(--paper-raised); }
.online-list li.partner-row button { background: var(--seal-soft); }
.online-list .logo { width: 34px; height: 34px; }
.online-list .t { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.online-list .s { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.online-list .s b { color: var(--seal-text); font-weight: 600; }
.online-list .s b.deal { color: #2E7A43; }
.online-list li.more, .online-list li.empty { grid-column: 1 / -1; padding: 10px; color: var(--muted); font-size: 13px; }
.online-list li.more { text-align: center; }
.langs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.langs span { padding: 1px 7px; border-radius: 99px; background: var(--paper-sunken); color: var(--fg-2); font-size: 11.5px; line-height: 1.5; }

/* Upvotes: a count on every row, the button on the card. */
.votes { color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.votes.mine { color: var(--seal-text); }
.feed li button { grid-template-columns: 30px 1fr auto auto; }
.upvote {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; height: 34px; padding: 0 14px;
  border: 1px solid var(--hair); border-radius: 99px; background: var(--paper-card); color: var(--fg); font: 500 13.5px/1 var(--sans);
}
.upvote b { font-variant-numeric: tabular-nums; }
.upvote:hover { background: var(--paper-raised); }
.upvote.on { background: var(--seal); border-color: var(--seal); color: #fff; }
.upvote.on:hover { background: var(--seal-press); }
.detail .teachers { list-style: none; padding: 0; display: grid; gap: 8px; }
.detail .teachers li { margin: 0; }
.detail .teachers b { font-weight: 600; }
.detail .teachers small { display: block; color: var(--muted); }


/* ── Teachers (briefing "Gushi Laoshi", 2026-11-05) ─────────────────────── */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 8px; }
.who button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 32px; border-radius: 10px; border: 1px solid var(--hair); background: transparent; font: 500 13px/1 var(--sans); color: var(--muted); }
.who button.on { background: var(--paper-card); color: var(--fg); border-color: var(--fg); }
.who button:not(.on) .dot { opacity: .35; }
.detail .t-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.detail .t-actions .upvote { margin-top: 0; }
.detail .t-actions .btn { height: 36px; }
.teacher-top .t-head { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.teacher-top h2 { margin: 2px 36px 2px 0; }
.t-photo { position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 22px; background: var(--tutor); color: #fff; box-shadow: 0 0 0 1px var(--hair); }
.t-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.t-photo .ini { font: 600 26px/1 var(--sans); }
.t-photo.big { width: 140px; height: 140px; border-radius: 28px; margin: 6px 0 10px; }
.t-price { position: absolute; right: -10px; bottom: -8px; padding: 5px 9px; border-radius: 99px; background: var(--seal); color: #fff; font: 700 12.5px/1 var(--sans); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); white-space: nowrap; }
.t-offer { margin: 6px 0 0; color: var(--seal-text); font-weight: 600; font-size: 13.5px; }
.t-video video { width: 100%; max-height: 300px; border-radius: 14px; background: #000; display: block; }
.t-tandem { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; background: var(--seal-soft); }
.t-tandem p { margin: 0; font-size: 13.5px; }
.t-schools { display: grid; gap: 6px; }
.sheet .t-steps { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 12px 24px 0; font-size: 12px; color: var(--muted); counter-reset: s; }
.sheet .t-steps li { counter-increment: s; display: block; margin: 0; padding: 0; width: auto; }
.t-steps li::before { content: counter(s) '. '; }
.t-steps li.on { color: var(--fg); font-weight: 600; }
.t-steps li.done { color: var(--jade); }
.t-upload video { width: 100%; max-height: 260px; border-radius: 12px; background: #000; margin: 6px 0 10px; }
.t-upload .row { display: flex; gap: 8px; flex-wrap: wrap; }
.t-upload label.btn { cursor: pointer; }
.sheet .t-preview.detail { position: relative; inset: auto; z-index: 0; width: auto; max-height: 440px; overflow-y: auto; grid-column: 1 / -1;
  animation: none; border: 1px solid var(--hair); border-radius: 16px; box-shadow: none; background: var(--paper-card); backdrop-filter: none; }
.sheet .t-preview .top { position: static; }
.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--paper-sunken); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 16px; border-radius: 9px; font-size: 14px; }
.seg input:checked + span { background: var(--paper-card); box-shadow: 0 1px 2px rgba(26, 24, 19, .12); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 50; padding: 10px 16px; border-radius: 99px; background: var(--fg); color: var(--paper-card); font-size: 14px; }
.pin .logo.fill img { object-fit: cover; }

/* ── Small screens ───────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  /* NO PAGE ZOOM (owner's iPhone, 2026-10-17). Safari zooms the whole page
     into any field under 16px that takes focus, and a pinch on a card zooms
     the page too; either way the card spills off the screen. The fields are
     16px here, and the page itself only pans: the globe's canvas sets its
     own touch-action, so a pinch on the map still zooms the map. */
  html, body { touch-action: pan-x pan-y; }
  .search input, .panel select, .field input, .field textarea, .field select, #fb-msg { font-size: 16px; }

  /* THE CARD, FOLDED. Brand, count, search with a Filters button, the
     partner; the selects and the chips open under the button. What is set
     stays in sight as pills, so it can be cleared without opening. */
  .panel { left: 10px; right: 10px; top: 10px; width: auto; padding: 10px 12px; max-height: calc(100% - 20px); transition: opacity .2s, transform .2s; }
  .brand { font-size: 15px; }
  .chop { width: 24px; height: 24px; font-size: 14px; }
  .panel-head .btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
  .count { margin: 6px 0 8px; font-size: 13px; }
  .find { margin-bottom: 0; }
  .find .search { height: 40px; }
  .filters-toggle {
    display: inline-flex; align-items: center; gap: 6px; flex: none; height: 40px; padding: 0 12px; border-radius: 11px;
    border: 1px solid var(--hair); background: var(--paper-card); font-size: 14px; font-weight: 500; color: var(--fg);
  }
  .filters-toggle[aria-expanded="true"] { background: var(--fg); color: var(--paper-card); border-color: var(--fg); }
  .filters-toggle b { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--seal); color: #fff; font-size: 11px; font-weight: 600; }
  .filters { display: none; margin-top: 8px; }
  .panel.open .filters { display: block; }
  .panel select { height: 40px; }
  .chips { gap: 5px; }
  .chip { height: 30px; font-size: 13px; }
  .partners:not(:empty) { margin-top: 8px; padding-top: 8px; gap: 4px; }
  .partners .kicker { display: none; }
  .partner-row-btn { grid-template-columns: 28px 1fr; gap: 9px; padding: 6px 9px; border-radius: 10px; }
  .partner-row-btn .logo { width: 28px; height: 28px; }
  .partner-row-btn > span { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .partner-row-btn b, .partner-row-btn small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .partner-row-btn b { font-size: 13px; min-width: 0; }
  .partner-row-btn small { flex: none; font-size: 11.5px; }

  .pills { bottom: 12px; }
  /* "Add your school" stays on a phone: it is the only door to the form
     since the card's own button went (#2717). The lead-in does not fit. */
  .pill-dark .lead { display: none; }
  .globe.has-detail .pills { display: none; }
  .consent { left: 0; right: 0; bottom: 0; translate: none; width: auto; border-width: 1px 0 0; border-radius: 18px 18px 0 0; padding: 16px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .sheet .s-body.choose, .sheet .s-body.choose.doors3 { grid-template-columns: 1fr; }
  .courses .crow input { font-size: 16px; }
  .perks { grid-template-columns: 1fr; }
  .sheet .s-body.call { grid-template-columns: 1fr; }
  .meet ul, .meet-about, .meet-links { display: none; }
  .taginput input { font-size: 16px; }
  .matrix .mhead { display: none; }
  .matrix .mrow { grid-template-columns: 1fr 1fr 28px; padding: 8px; border: 1px solid var(--hair); border-radius: 11px; }
  .matrix .mrow input { font-size: 16px; }
  .matrix .mrow button { grid-row: 1; grid-column: 3; }
  .feed { display: none; }
  .online-list { left: 10px; right: 10px; top: var(--online-top, 150px); bottom: 10px; }
  .globe.has-detail .online-list { right: 10px; }
  .online-list ol { grid-template-columns: 1fr; padding-bottom: 70px; }
  .online-list header { padding: 10px 12px 8px; }

  /* ONE SCHOOL OWNS THE SCREEN. Its sheet takes the lower part, the card
     steps aside, and the globe flies the pin into what is left above. */
  .globe.has-detail .panel { opacity: 0; transform: translateY(-12px); pointer-events: none; }
  .detail { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 62%; border-radius: var(--r) var(--r) 0 0; animation-name: rise; }
  .detail .top { padding: 14px 16px 12px; }
  .detail .top::before { content: ''; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--hair); }
  .detail .close { top: 10px; right: 10px; }
  .detail .logo { width: 44px; height: 44px; }
  .detail .logo .ini { font-size: 15px; }
  .detail .mark { height: 36px; }
  .detail h2 { margin-top: 10px; font-size: 19px; }
  .detail .where { margin-top: 6px; font-size: 13.5px; }
  .detail section { padding: 12px 16px; }

  .sheet .s-body, .sheet fieldset { grid-template-columns: 1fr; }
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.dealrow input:focus { outline: none; }
/* The logo in the school form (#3025, #3033). */
.logo-field .logo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-field .logo-now { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--hair); background: #fff; overflow: hidden; }
.logo-field .logo-now img { width: 100%; height: 100%; object-fit: contain; }
.logo-field .logo-now .ini { font-size: 18px; }
.logo-field label.btn { cursor: pointer; }
.logo-field .hint { flex: 1 1 160px; }
