:root {
  color-scheme: light;
  --blue: #302d28;
  --blue-2: #a62c26;
  --navy: #24211e;
  --sky: #b58b3a;
  --pale: #fff4df;
  --paper: #ffffff;
  --canvas: #f8f6f2;
  --ink: #2c2925;
  --muted: #6b645b;
  --line: #e5ded2;
  --red: #ce251e;
  --yellow: #f4c444;
  --green: #14805e;
  --orange: #c06b18;
  --shadow: 0 20px 55px rgba(47, 37, 25, .10);
  font-family: Inter, ui-sans-serif, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 16px; line-height: 1.65; }
button, input, select, textarea { font: inherit; font-size: 14px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; transform: translateY(-150%); background: var(--navy); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: none; }
.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--muted); }
.boot-screen img { object-fit: contain; }
.boot-screen strong { color: var(--navy); font-size: 20px; }
.boot-screen span { font-size: 14px; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-main { min-height: 76px; max-width: 1480px; margin: auto; padding: 10px 30px; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 24px; }
.brand-link { border: 0; background: transparent; padding: 0; display: flex; align-items: center; gap: 10px; text-align: left; }
.brand-link:hover, .brand-link:focus-visible { background: var(--pale); box-shadow: 0 0 0 4px var(--pale); }
.brand-link img { width: 132px; height: 52px; object-fit: contain; object-position: left center; }
.brand-sub { display: none; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.main-nav { min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
.nav-link { position: relative; border: 0; border-radius: 7px; background: transparent; color: #48596b; padding: 12px 10px; white-space: nowrap; font-weight: 650; transition: color .15s, background .15s; }
.nav-link:hover, .nav-link:focus-visible, .nav-link.active { color: var(--blue); background: var(--pale); }
.nav-link:hover::after, .nav-link:focus-visible::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--sky); }
.nav-link.active { font-weight: 800; }
.nav-link.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: var(--blue); }
.nav-link sup { top: -8px; margin-left: 3px; background: var(--pale); color: var(--blue); border-radius: 99px; padding: 2px 5px; font-size: 9px; font-weight: 800; }
.account-area { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; max-width: 245px; }
.language-switch { display: inline-flex; flex: none; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 9px; background: #f5f8fc; }
.language-switch button { border: 0; background: transparent; color: var(--muted); border-radius: 6px; padding: 6px 8px; font-size: 11px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.language-switch button:hover:not(.active) { color: var(--blue); background: #dcecf8; }
.language-switch button.active { color: white; background: var(--blue); }
.language-switch button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cms-language-second { display: block; margin-top: .45em; font-size: .78em; line-height: 1.35; color: var(--blue); }
.cms-language-group .cms-text + .cms-text { margin-top: 1.2em; padding-top: 1em; border-top: 1px solid var(--line); }
.cms-language-group .cms-text[lang="de"] { color: #38536c; }
.speech-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: #f0f6fb; border: 1px solid #cce0ef; display: grid; gap: 4px; }
.speech-status strong { color: var(--navy); font-size: 13px; }
.speech-status span, .speech-status small { color: #526d81; font-size: 12px; line-height: 1.55; }
.word-export-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 16px; }
.word-export-actions .help-text { margin: 0; }
.account-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 750; color: var(--navy); }
.role-chip, .status-chip, .level-chip { display: inline-flex; align-items: center; min-height: 25px; border-radius: 99px; padding: 3px 9px; background: var(--pale); color: var(--blue); font-size: 11px; font-weight: 800; }
.status-chip.new { background: #fff1db; color: #95530f; }
.status-chip.processed { background: #e7f5ee; color: #17684f; }
.status-chip.archived { background: #edf0f3; color: #65717c; }

.button, .icon-button { border: 1px solid transparent; border-radius: 8px; min-height: 42px; padding: 9px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; text-decoration: none; transition: transform .15s, background .15s, border-color .15s, color .15s; }
.button:not(:disabled):hover { transform: translateY(-1px); }
.button.primary { background: var(--blue); color: white; }
.button.primary:hover { background: #053d77; }
.button.dark { background: var(--navy); color: white; }
.button.dark:hover { background: #174d7d; }
.button.light { background: white; color: var(--blue); border-color: #b9d2e7; }
.button.ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.button.light:hover, .button.ghost:hover { color: var(--blue); background: var(--pale); border-color: var(--blue); }
.button.danger { background: #fff0f0; color: #a80000; border-color: #f2cccc; }
.button.danger:hover { background: #ffe3e3; border-color: #b93939; }
.button.small { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.button.full { width: 100%; }
.icon-button { width: 42px; padding: 0; background: white; border-color: var(--line); color: var(--navy); font-size: 20px; }
.icon-button:hover { color: var(--blue); background: var(--pale); border-color: var(--blue); }
.link-button { border: 0; background: transparent; color: var(--blue); padding: 5px; font-weight: 750; }
.link-button:hover { color: var(--blue-2); background: var(--pale); text-decoration: underline; }
.button:not(:disabled):active, .icon-button:not(:disabled):active, button:not(:disabled):active { transform: translateY(1px); }

.page-main { flex: 1; }
.page { max-width: 1320px; margin: 0 auto; padding: 54px 34px 90px; }
.page.wide { max-width: 1480px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--red); }
.page-title { max-width: 830px; font-size: clamp(38px, 5vw, 72px); line-height: 1.06; letter-spacing: -.045em; color: var(--navy); margin: 18px 0 20px; }
.page-lead { max-width: 760px; font-size: 18px; color: var(--muted); line-height: 1.85; }
.section-heading { display: flex; justify-content: space-between; gap: 25px; align-items: end; margin-bottom: 26px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(29px, 3vw, 46px); line-height: 1.14; color: var(--navy); letter-spacing: -.035em; }
.section-heading p { max-width: 540px; margin: 0; color: var(--muted); }

.hero { max-width: 1480px; margin: 0 auto; min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr); background: var(--paper); border-left: 10px solid var(--blue); overflow: hidden; }
.hero-copy { padding: 86px 58px 60px; position: relative; z-index: 2; }
.hero-copy::after { content: ""; position: absolute; right: -74px; bottom: -80px; width: 220px; height: 220px; background: var(--yellow); transform: rotate(15deg); z-index: -1; }
.hero h1 { max-width: 760px; font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -.055em; margin: 25px 0 24px; color: var(--navy); }
.hero h1 span { color: var(--blue); display: block; }
.hero-intro { max-width: 620px; color: #596c80; font-size: 18px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 33px 0 46px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); max-width: 650px; }
.hero-fact { padding: 20px 18px 0 0; }
.hero-fact + .hero-fact { border-left: 1px solid var(--line); padding-left: 20px; }
.hero-fact strong { display: block; color: var(--navy); font-size: 22px; }
.hero-fact > span { color: var(--muted); font-size: 12px; }
.hero-media { position: relative; min-height: 650px; background: var(--navy); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 51% center; opacity: .9; }
.hero-media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 0; border-bottom: 180px solid var(--blue); border-right: 180px solid transparent; }
.hero-badge { position: absolute; z-index: 2; right: 30px; bottom: 30px; width: 170px; background: white; padding: 18px; box-shadow: var(--shadow); }
.hero-badge small { display: block; color: var(--blue); font-weight: 850; }
.hero-badge strong { display: block; font-size: 18px; color: var(--navy); margin-top: 5px; }

.thesis-band { background: var(--navy); color: white; }
.thesis-inner { max-width: 1320px; margin: auto; padding: 70px 34px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: center; }
.thesis-label { color: var(--sky); font-size: 13px; letter-spacing: .14em; font-weight: 850; }
.thesis-inner h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1.16; margin: 13px 0; }
.thesis-inner h2 em { color: var(--yellow); font-style: normal; }
.thesis-copy { border-left: 1px solid rgba(255,255,255,.22); padding-left: 55px; color: #c8d8e7; font-size: 17px; }
.thesis-copy p:last-child { margin-bottom: 0; }

.modules-section, .method-preview, .company-preview { max-width: 1320px; margin: auto; padding: 88px 34px; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.module-card { min-height: 250px; border: 1px solid var(--line); background: white; padding: 27px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.module-card::before { content: attr(data-number); position: absolute; right: 15px; top: -20px; color: #e9eef4; font-size: 86px; font-weight: 900; line-height: 1; }
.module-card h3 { margin: 55px 0 10px; color: var(--navy); font-size: 22px; position: relative; }
.module-card p { color: var(--muted); font-size: 14px; position: relative; }
.module-card .module-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: var(--blue); font-weight: 800; font-size: 12px; }
.module-card.available { border-top: 5px solid var(--blue); }
.module-card.coming { background: #f8fafc; }
.module-card.coming .module-foot { color: #778695; }

.method-preview { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.tower-mini { min-height: 480px; position: relative; display: grid; align-content: end; justify-items: center; padding: 40px; background: var(--pale); overflow: hidden; }
.tower-mini::before { content: "VerbTower"; position: absolute; left: -12px; top: 75px; transform: rotate(-90deg); color: rgba(6,73,141,.12); font-size: 70px; font-weight: 900; letter-spacing: -.05em; }
.tower-layer { height: 62px; display: grid; place-items: center; color: white; font-weight: 850; box-shadow: 0 8px 24px rgba(9,47,87,.12); }
.tower-layer:nth-child(1) { width: 42%; background: #5cacd8; }
.tower-layer:nth-child(2) { width: 55%; background: #397fb6; }
.tower-layer:nth-child(3) { width: 70%; background: #1764a5; }
.tower-layer:nth-child(4) { width: 86%; background: #06498d; }
.tower-layer:nth-child(5) { width: 100%; background: #092f57; }
.method-copy h2 { font-size: clamp(38px, 4vw, 58px); line-height: 1.12; color: var(--navy); margin: 14px 0 24px; letter-spacing: -.04em; }
.method-copy p { color: var(--muted); font-size: 17px; }
.principle-list { display: grid; gap: 12px; margin: 30px 0; }
.principle { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.principle b { width: 44px; height: 44px; display: grid; place-items: center; background: var(--yellow); color: var(--navy); }
.principle strong { display: block; color: var(--navy); }
.principle span { color: var(--muted); font-size: 13px; }

.company-preview { display: grid; grid-template-columns: 1.08fr .92fr; gap: 22px; }
.company-quote { background: var(--blue); color: white; padding: 58px; min-height: 390px; display: flex; flex-direction: column; justify-content: space-between; }
.company-quote blockquote { margin: 0; font-size: clamp(28px, 3vw, 43px); line-height: 1.35; font-weight: 700; letter-spacing: -.025em; }
.company-quote footer { color: #b9daee; }
.company-photo { min-height: 390px; background: var(--navy); overflow: hidden; }
.company-photo img { width: 100%; height: 100%; object-fit: cover; }

.site-footer { background: #071f39; color: #cbd7e1; }
.footer-grid { max-width: 1320px; margin: auto; padding: 58px 34px 35px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 60px; }
.footer-brand img { width: 150px; height: 60px; object-fit: contain; background: white; padding: 8px; }
.footer-brand p { max-width: 430px; margin: 18px 0 0; color: #98adbf; }
.footer-col h3 { color: white; font-size: 15px; }
.footer-col p, .footer-col a { display: block; color: #9eb2c3; font-size: 14px; margin: 7px 0; text-decoration: none; }
.footer-col a:hover, .footer-col a:focus-visible { color: #8bd3ff; text-decoration: underline; }
.footer-bottom { max-width: 1320px; margin: auto; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 34px 28px; display: flex; justify-content: space-between; color: #7690a5; font-size: 12px; }

.two-column-page { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 55px; align-items: start; }
.section-index { position: sticky; top: 105px; background: white; border: 1px solid var(--line); padding: 12px; }
.section-index strong { display: block; padding: 13px 12px; color: var(--navy); border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.section-index a { display: block; padding: 9px 12px; color: var(--muted); font-size: 13px; text-decoration: none; border-left: 3px solid transparent; }
.section-index a:hover, .section-index a:focus-visible { color: var(--blue); border-left-color: var(--blue); background: var(--pale); }
.section-index a.active { color: var(--blue); border-left-color: var(--blue); background: var(--pale); font-weight: 800; }
.content-stack { min-width: 0; display: grid; gap: 24px; }
.content-panel { background: white; border: 1px solid var(--line); padding: clamp(28px, 4vw, 58px); scroll-margin-top: 100px; }
.content-panel h2 { color: var(--navy); font-size: clamp(27px, 3vw, 40px); line-height: 1.2; margin-bottom: 20px; }
.content-panel h3 { color: var(--blue); margin: 28px 0 10px; }
.content-panel p { color: #506275; }
.founder-panel { display: grid; grid-template-columns: minmax(280px,.7fr) 1.3fr; gap: 44px; }
.founder-panel img { width: 100%; height: 100%; max-height: 650px; object-fit: cover; object-position: center top; }
.quote-line { border-left: 5px solid var(--yellow); padding: 12px 0 12px 20px; color: var(--navy) !important; font-weight: 750; font-size: 19px; }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 28px; }
.value-card { background: var(--pale); padding: 24px; }
.value-card b { color: var(--blue); font-size: 25px; }
.value-card strong { display: block; color: var(--navy); margin: 6px 0; }
.value-card span { color: var(--muted); font-size: 13px; }

.tower-page { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.tower-visual { position: sticky; top: 110px; min-height: 660px; background: var(--navy); padding: 48px; color: white; overflow: hidden; }
.tower-visual::before { content: "AJ"; position: absolute; right: -25px; bottom: -90px; font-size: 260px; line-height: 1; font-weight: 950; color: rgba(255,255,255,.06); }
.tower-visual h2 { font-size: 46px; line-height: 1; margin: 10px 0 45px; }
.tower-steps { display: grid; gap: 6px; align-content: end; min-height: 440px; }
.tower-step { padding: 14px 18px; font-weight: 800; background: var(--blue); }
.tower-step:nth-child(1) { margin-inline: 27%; background: var(--sky); }
.tower-step:nth-child(2) { margin-inline: 20%; }
.tower-step:nth-child(3) { margin-inline: 13%; }
.tower-step:nth-child(4) { margin-inline: 6%; }
.tower-step:nth-child(5) { background: white; color: var(--navy); }
.method-article { display: grid; gap: 20px; }
.method-block { background: white; border: 1px solid var(--line); padding: 34px; }
.method-block .number { color: var(--sky); font-size: 48px; font-weight: 900; line-height: 1; }
.method-block h3 { color: var(--navy); font-size: 25px; margin: 12px 0; }
.method-block p { color: var(--muted); margin: 0; }

.future-hero { min-height: 390px; background: var(--navy); color: white; padding: clamp(40px,7vw,90px); position: relative; overflow: hidden; }
.future-hero::after { content: "NEXT"; position: absolute; right: -20px; bottom: -75px; font-size: 210px; line-height: 1; color: rgba(255,255,255,.055); font-weight: 950; }
.future-hero h1 { max-width: 800px; font-size: clamp(46px,6vw,82px); line-height: 1; margin: 16px 0; position: relative; z-index: 1; }
.future-hero p { max-width: 620px; color: #bdd1e1; position: relative; z-index: 1; }
.future-items { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 22px; }
.future-item { background: white; border: 1px solid var(--line); padding: 28px; min-height: 160px; }
.future-item strong { display: block; color: var(--navy); font-size: 18px; }
.future-item > span { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; }
.contact-panel { background: var(--navy); color: white; padding: 44px; }
.contact-panel h2 { font-size: 38px; }
.contact-panel p { color: #b8cada; }
.contact-list { display: grid; gap: 18px; margin-top: 36px; }
.contact-line { border-top: 1px solid rgba(255,255,255,.17); padding-top: 14px; }
.contact-line small { display: block; color: var(--sky); }
.contact-line strong { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.form-card { background: white; border: 1px solid var(--line); padding: 44px; }

.field { display: block; margin-bottom: 18px; color: #425568; font-size: 13px; font-weight: 750; }
.field > span { display: flex; justify-content: space-between; margin-bottom: 7px; }
.field small { color: #8c9aa8; font-weight: 500; }
.field input, .field select, .field textarea, .search-input { width: 100%; border: 1px solid #cfd9e3; border-radius: 6px; background: white; color: var(--ink); padding: 11px 12px; outline: 0; }
.field input, .field select { min-height: 45px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search-input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(9,104,185,.12); }
.field-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.help-text { color: var(--muted); font-size: 12px; }
.error-box { padding: 12px 14px; background: #fff0f0; border-left: 4px solid var(--red); color: #8b1111; font-size: 13px; margin-bottom: 14px; }

.gate-card { max-width: 820px; margin: 30px auto; display: grid; grid-template-columns: .85fr 1.15fr; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.gate-art { min-height: 420px; background: var(--blue); display: grid; place-items: center; color: white; padding: 35px; }
.gate-tile { width: 220px; height: 280px; background: white; color: var(--navy); padding: 25px; transform: rotate(-5deg); box-shadow: 16px 18px 0 var(--yellow); display: flex; flex-direction: column; justify-content: space-between; }
.gate-tile strong { font-size: 45px; }
.gate-copy { padding: 50px; align-self: center; }
.gate-copy h1 { color: var(--navy); font-size: 42px; line-height: 1.1; }
.gate-copy p { color: var(--muted); }

.learning-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.learning-head h1 { font-size: 45px; line-height: 1.1; margin: 10px 0 0; color: var(--navy); }
.learning-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 24px; }
.stat-card { background: white; border: 1px solid var(--line); padding: 20px; min-height: 125px; }
.stat-card small { color: var(--muted); font-weight: 700; }
.stat-card strong { display: block; color: var(--navy); font-size: 32px; line-height: 1.2; margin: 12px 0 4px; }
.stat-card span { color: #8b9aa7; font-size: 11px; }
.tomorrow-date { color: var(--muted); font-size: 11px; font-weight: 700; }
.tomorrow-stat span { display: block; }
.tomorrow-stat span + span { margin-top: 4px; }
.learning-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(310px,.5fr); gap: 20px; }
.panel { background: white; border: 1px solid var(--line); padding: 28px; }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.panel-head h2 { margin: 0; color: var(--navy); font-size: 22px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.book-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.book-card { border: 1px solid var(--line); background: #fbfcfe; padding: 18px; min-height: 155px; text-align: left; position: relative; }
.book-card:hover, .book-card:focus-visible { border-color: var(--blue); background: var(--pale); box-shadow: 0 5px 18px rgba(6,73,141,.12); }
.book-card:hover h3, .book-card:focus-visible h3, .book-card.selected h3 { color: var(--blue); }
.book-card.selected { border-color: var(--blue); box-shadow: inset 5px 0 0 var(--blue); background: #e3f1fb; }
.book-card:disabled { cursor: wait; }
.book-selection-hint { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.book-card .level-chip { margin-bottom: 17px; }
.book-card h3 { margin: 0 0 5px; color: var(--navy); font-size: 18px; }
.book-card p { margin: 0; color: var(--muted); font-size: 12px; }
.book-card b { position: absolute; right: 15px; bottom: 13px; color: var(--blue); font-size: 12px; }
.empty-state { border: 1px dashed #b9c8d6; background: #fbfcfe; padding: 35px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--navy); font-size: 19px; margin-bottom: 5px; }
.plan-card { background: var(--navy); color: white; padding: 28px; }
.plan-card h2 { font-size: 25px; }
.plan-card p { color: #b7cadb; font-size: 13px; }
.plan-card .field { color: white; }
.plan-card .field input, .plan-card .field select { border-color: #426585; }
.search-box { display: flex; gap: 8px; }
.search-results { display: grid; gap: 8px; margin-top: 18px; max-height: 520px; overflow: auto; }
.word-result { border: 1px solid var(--line); padding: 15px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; }
.word-result.with-image { grid-template-columns: 64px minmax(0,1fr) auto; }
.word-result-image { width: 64px; height: 64px; object-fit: cover; background: var(--pale); }
.word-result strong { color: var(--navy); font-size: 18px; }
.word-result em { color: var(--blue); font-style: normal; font-weight: 800; margin-right: 6px; }
.word-result p { margin: 0; color: var(--muted); font-size: 13px; }
.word-result-credit { display: block; margin-top: 4px; color: #756852; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.word-result button { border: 0; background: var(--pale); color: var(--blue); width: 38px; height: 38px; border-radius: 50%; }
.word-result button:hover { color: white; background: var(--blue); }

.admin-head { background: var(--navy); color: white; padding: 36px 40px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.admin-head h1 { font-size: 42px; margin: 8px 0 0; }
.admin-head p { color: #b6cbdd; margin: 5px 0 0; }
.admin-tabs { display: flex; overflow-x: auto; background: white; border: 1px solid var(--line); border-top: 0; padding: 8px; }
.admin-tabs button { border: 0; background: transparent; color: var(--muted); padding: 11px 18px; white-space: nowrap; font-weight: 750; }
.admin-tabs button:hover, .admin-tabs button:focus-visible { background: var(--pale); color: var(--blue); }
.admin-tabs button.active { background: var(--pale); color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.admin-content { margin-top: 18px; }
.admin-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.upload-zone { border: 2px dashed #aac5dc; min-height: 155px; display: grid; place-items: center; text-align: center; color: var(--blue); background: #f8fbfe; padding: 20px; cursor: pointer; }
.upload-zone:hover, .upload-zone:focus-within { border-color: var(--blue); background: var(--pale); }
.upload-zone input { display: none; }
.upload-zone strong { display: block; }
.upload-zone span { color: var(--muted); font-size: 12px; }
.file-ready { margin: 12px 0; padding: 12px; background: #e8f5ef; color: #17684f; font-size: 13px; }
.preview-table, .data-table { width: 100%; border-collapse: collapse; }
.preview-wrap, .table-wrap { overflow-x: auto; }
.preview-table th, .preview-table td, .data-table th, .data-table td { border-bottom: 1px solid var(--line); text-align: left; padding: 11px 9px; font-size: 12px; vertical-align: top; }
.preview-table th, .data-table th { color: #617284; background: #f6f8fa; font-weight: 800; white-space: nowrap; }
.data-table td strong { color: var(--navy); }
.data-table td small { display: block; color: var(--muted); max-width: 230px; overflow-wrap: anywhere; }
.table-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.compact-select { border: 1px solid var(--line); border-radius: 4px; min-height: 32px; padding: 4px 7px; background: white; }
.filter-bar { display: flex; gap: 8px; margin-bottom: 15px; }
.filter-bar .search-input { max-width: 430px; }
.security-list { display: grid; gap: 10px; }
.security-item { display: grid; grid-template-columns: 31px 1fr; gap: 12px; padding: 13px; background: #f7f9fb; }
.security-item b { width: 28px; height: 28px; display: grid; place-items: center; background: #e4f3eb; color: var(--green); border-radius: 50%; }
.security-item strong { display: block; color: var(--navy); font-size: 13px; }
.security-item span { display: block; color: var(--muted); font-size: 11px; }
.audit-code { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--blue); }
.site-editor { display: grid; gap: 18px; }
.site-content-sections { display: grid; gap: 18px; }
.site-editor-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; background: #fff; border: 1px solid var(--line); }
.site-editor-nav button { border: 0; color: var(--blue); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; padding: 8px 12px; background: var(--pale); }
.site-editor-nav button:hover, .site-editor-nav button:focus-visible { color: var(--blue); background: #dcecf8; text-decoration: underline; }
.site-text-group { scroll-margin-top: 18px; }
.site-text-group h3 { color: var(--navy); font-size: 19px; margin: 0 0 16px; }
.site-text-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
.site-text-fields .field.wide { grid-column: 1 / -1; }
.site-text-fields textarea { min-height: 110px; }
.site-media-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.media-editor-card { min-width: 0; border: 1px solid var(--line); padding: 16px; background: #fbfdff; }
.media-preview { height: 155px; background: #edf2f7; display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; }
.media-preview img { width: 100%; height: 100%; object-fit: cover; }
.media-editor-card:nth-child(3) .media-preview img { object-fit: contain; padding: 12px; }
.media-current { margin-bottom: 12px; overflow-wrap: anywhere; }
.media-current strong, .media-current small { display: block; }
.media-current strong { color: var(--navy); }
.media-current small { color: var(--muted); font-size: 12px; }
.media-upload-form { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.media-upload-form h3 { font-size: 16px; color: var(--navy); margin-bottom: 14px; }
.media-upload-form .field { margin-bottom: 12px; }
.media-upload-form .help-text { margin: 0 0 12px; }
.media-upload-form input[type="file"] { padding: 8px; overflow-wrap: anywhere; }
.rights-check { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0; color: #405366; font-size: 13px; font-weight: 650; }
.rights-check input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--blue); }
.import-rights { border-top: 1px solid var(--line); padding-top: 18px; }
.admin-document-list { margin-top: 18px; display: grid; gap: 8px; }
.admin-document { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 10px 12px; }
.admin-document > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.admin-document strong, .admin-document small { display: block; }
.admin-document small { color: var(--muted); font-size: 11px; }
.public-document-list { display: grid; gap: 10px; }
.public-document { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--line); padding: 16px; text-decoration: none; background: #f8fbfe; }
.public-document:hover, .public-document:focus-visible { border-color: var(--blue); background: var(--pale); }
.public-document:hover strong, .public-document:focus-visible strong { color: var(--blue); }
.public-document strong, .public-document small { display: block; }
.public-document strong { color: var(--navy); }
.public-document small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.public-document b { white-space: nowrap; color: var(--blue); font-size: 13px; }
.word-image-panel { margin-top: 18px; }
.word-editor-panel { margin-top: 18px; }
.word-editor-search { display: grid; grid-template-columns: minmax(220px,1fr) minmax(220px,1fr) auto; gap: 12px; align-items: end; }
.word-editor-search .field { margin: 0; }
.word-editor-list { margin-top: 18px; display: grid; gap: 8px; }
.word-editor-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--line); padding: 12px 14px; }
.word-editor-item strong, .word-editor-item span, .word-editor-item small { display: block; }
.word-editor-item strong { color: var(--navy); font-size: 18px; }
.word-editor-item strong em { color: var(--blue); font-style: normal; margin-right: 5px; }
.word-editor-item span { color: #506275; font-size: 13px; }
.word-editor-item small { color: var(--muted); font-size: 11px; }
.word-media-form { max-width: 780px; border-top: 0; padding-top: 0; margin-top: 0; }
.media-list-head { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.media-list-head h3 { color: var(--navy); margin: 0; }
.media-list-head .filter-bar { margin: 0; }
.word-media-list { display: grid; gap: 8px; margin-top: 14px; }
.word-media-item { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 8px; }
.word-media-item img { width: 64px; height: 55px; object-fit: cover; background: var(--pale); }
.word-media-item strong, .word-media-item small { display: block; overflow-wrap: anywhere; }
.word-media-item strong { color: var(--navy); }
.word-media-item small { color: var(--muted); font-size: 11px; }
.image-search-panel { margin-top: 24px; padding: 22px; background: #f5f9fc; border: 1px solid var(--line); }
.image-search-panel h3 { margin: 0 0 8px; color: var(--navy); }
.image-search-panel .word-editor-search { margin: 16px 0; }
.image-status-panel { margin: 18px 0 22px; padding: 20px; border: 1px solid #e7d7bd; border-radius: 12px; background: #fffdf8; }
.image-status-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; }
.image-status-heading h3 { margin: 0 0 4px; color: var(--navy); font-size: 17px; }
.image-status-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.image-book-picker { min-width: min(100%, 260px); margin: 0; }
.image-status-actions, .image-status-pages { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.image-coverage { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: #f6ead2; color: #594421; font-size: 12px; font-weight: 700; }
.image-inline-error { margin: 12px 0; padding: 10px 12px; border: 1px solid #edcbc4; border-radius: 8px; background: #fff7f4; color: #74372f; font-size: 12px; }
.founder-hero-media, .services-hero-photo { position: relative; }
.hero-media .site-image-credit, .founder-hero-media .site-image-credit,
.about-overview-photo .site-image-credit, .services-hero-photo .site-image-credit {
  position: absolute; z-index: 5; right: 10px; bottom: 10px; left: auto;
  max-width: min(72%, 390px); padding: 4px 7px; border-radius: 5px;
  background: rgba(255, 253, 247, .92); color: #514535;
  font-size: 10px; font-weight: 500; line-height: 1.35; letter-spacing: normal;
  overflow-wrap: anywhere; pointer-events: none;
}
.about-founder-photo .site-image-credit, .about-team-photo .site-image-credit,
.footer-bottom .site-image-credit { position: static; display: block; padding: 0; background: none; color: #756852; font-size: 11px; line-height: 1.4; }
.about-team-photo figcaption:empty { display: none; }
.image-missing-list { display: grid; max-height: 360px; overflow: auto; margin-top: 14px; border: 1px solid #eae1d3; border-radius: 9px; background: #fff; }
.image-missing-list > .help-text { padding: 17px; margin: 0; }
.image-missing-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 13px; border-bottom: 1px solid #eee8dd; }
.image-missing-row:last-child { border-bottom: 0; }
.image-missing-row > div:first-child { min-width: 0; }
.image-missing-row strong, .image-missing-row span { display: block; overflow-wrap: anywhere; }
.image-missing-row strong { color: #332b22; font-size: 14px; }
.image-missing-row span { color: var(--muted); font-size: 12px; }
.image-missing-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.word-media-form { padding: 18px; border: 1px solid #e7d7bd; border-radius: 12px; background: #fff; }
.word-media-form h3 { margin: 0 0 4px; }
.image-batch-panel { margin: 18px 0 24px; padding: 22px; border: 1px solid #a8c9df; background: #f1f8fc; }
.image-batch-panel .panel-head { padding: 0; }
.image-batch-panel h3 { margin: 0 0 7px; color: var(--navy); }
.image-batch-results { display: grid; gap: 14px; margin: 18px 0; }
.image-batch-word { border: 1px solid var(--line); background: #fff; padding: 14px; }
.image-batch-word-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.image-batch-word-head strong { color: var(--navy); }
.image-batch-word-head span { color: var(--muted); font-size: 12px; }
.commons-results { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 12px; margin: 16px 0; }
.commons-result { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 12px; align-items: start; border: 1px solid var(--line); background: white; padding: 10px; }
.commons-result img { width: 88px; height: 88px; object-fit: cover; background: var(--pale); }
.commons-result strong, .commons-result small, .commons-result a { display: block; overflow-wrap: anywhere; }
.commons-result strong { color: var(--navy); font-size: 13px; }
.commons-result small { color: var(--muted); font-size: 11px; margin: 4px 0; }
.commons-result a { font-size: 12px; }
.commons-result a:hover, .commons-result a:focus-visible { color: var(--blue-2); }
.commons-result .button { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 620px) {
  .image-status-panel { padding: 15px; }
  .image-book-picker { width: 100%; }
  .image-missing-row { align-items: start; flex-direction: column; }
  .image-missing-actions { width: 100%; }
}

.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(4,24,43,.62); display: grid; place-items: center; padding: 22px; overflow: auto; }
.modal { width: min(520px,100%); max-height: calc(100vh - 44px); overflow: auto; background: white; box-shadow: var(--shadow); }
.modal.wide { width: min(900px,100%); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 28px 30px 0; }
.modal-head h2 { color: var(--navy); margin: 3px 0 0; font-size: 29px; }
.modal-body { padding: 24px 30px 31px; }
.auth-tabs { display: flex; background: #eff3f7; padding: 4px; margin-bottom: 22px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; min-height: 40px; color: var(--muted); font-weight: 750; }
.auth-tabs button:hover, .auth-tabs button:focus-visible { color: var(--blue); background: var(--pale); }
.auth-tabs button.active { background: white; color: var(--blue); box-shadow: 0 3px 10px rgba(9,47,87,.08); }
.setup-notice { background: #fff8d8; border-left: 4px solid var(--yellow); padding: 12px 14px; color: #695609; font-size: 12px; margin-bottom: 17px; }
.social-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 14px; }
.social-button { border: 1px solid var(--line); background: #f7f8fa; color: #7b8793; min-height: 42px; }
.auth-divider { display: flex; align-items: center; gap: 10px; color: #9aa6b2; font-size: 11px; margin: 20px 0 8px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.study-shell { position: fixed; inset: 0; z-index: 100; background: #eef3f7; display: grid; grid-template-rows: auto 5px 1fr auto; }
.study-bar { min-height: 70px; background: white; border-bottom: 1px solid var(--line); padding: 11px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.study-brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 850; }
.study-brand img { width: 55px; height: 35px; object-fit: contain; }
.study-meta { color: var(--muted); font-size: 13px; font-weight: 750; }
.study-progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 0; appearance: none; background: #e6ddcd; color: var(--yellow); }
.study-progress::-webkit-progress-bar { background: #e6ddcd; }
.study-progress::-webkit-progress-value { background: var(--yellow); }
.study-progress::-moz-progress-bar { background: var(--yellow); }
.study-stage { display: grid; place-items: center; padding: 28px; overflow: auto; }
.flashcard { width: min(740px,100%); min-height: 480px; border: 0; background: white; box-shadow: var(--shadow); text-align: center; padding: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; cursor: pointer; }
.flashcard:hover, .flashcard:focus-visible { box-shadow: 0 0 0 3px rgba(9,104,185,.28), var(--shadow); }
.flashcard:hover h2, .flashcard:focus-visible h2 { color: var(--blue); }
.flashcard::before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 100%; background: var(--blue); }
.card-label { position: absolute; left: 29px; top: 23px; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.word-gender { color: var(--red); font-size: 24px; font-weight: 850; }
.flashcard h2 { color: var(--navy); font-size: clamp(48px,8vw,82px); line-height: 1.1; letter-spacing: -.04em; margin: 7px 0; }
.flashcard .phonetic { color: #768798; min-height: 25px; }
.card-answer { width: min(580px,100%); border-top: 1px solid var(--line); padding-top: 25px; margin-top: 30px; }
.card-answer strong { color: var(--blue); font-size: 26px; }
.grammar-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.grammar-row span { background: var(--pale); color: var(--blue); padding: 4px 9px; font-size: 11px; font-weight: 750; }
.example-de { margin: 23px 0 3px; color: var(--navy); font-size: 17px; }
.example-zh { color: var(--muted); font-size: 13px; }
.card-image { max-width: 250px; max-height: 150px; object-fit: contain; margin-top: 18px; }
.image-credit { margin: 8px auto 0; max-width: 480px; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.memory-guide { margin: 22px 0 0; padding: 18px; border: 1px solid #d9e7ef; border-radius: 14px; background: #f4f9fc; text-align: left; }
.memory-guide h3 { margin: 0 0 12px; color: var(--navy); font-size: 17px; }
.memory-structure > strong, .memory-association > strong { display: block; color: var(--blue); font-size: 13px; margin-bottom: 6px; }
.memory-parts { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 9px 0; }
.memory-parts span { padding: 5px 10px; border-radius: 7px; background: #dfedf5; color: var(--navy); font-weight: 750; }
.memory-parts b { color: var(--muted); }
.memory-explanation { margin: 5px 0 0; color: var(--navy); line-height: 1.6; font-size: 13px; }
.memory-association { margin: 15px 0 0; padding-top: 12px; border-top: 1px solid #d9e7ef; color: var(--navy); line-height: 1.6; font-size: 13px; overflow-wrap: anywhere; }
.memory-association span { display: block; }
.flip-hint { color: #8a98a5; font-size: 12px; margin-top: 35px; }
.study-actions { min-height: 120px; background: white; border-top: 1px solid var(--line); display: flex; justify-content: center; align-items: center; gap: 9px; padding: 19px; }
.rating-button { min-width: 125px; border: 1px solid var(--line); background: white; min-height: 65px; color: var(--navy); font-weight: 850; }
.rating-button small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; }
.rating-button.again { color: #a52929; }
.rating-button.good { background: var(--blue); border-color: var(--blue); color: white; }
.rating-button:not(.good):hover { color: var(--blue); border-color: var(--blue); background: var(--pale); }
.rating-button.again:hover { color: #a52929; border-color: #a52929; background: #fff0f0; }
.rating-button.good:hover { background: #053d77; }
.rating-button.good small { color: #c9deee; }
.study-finished { text-align: center; }
.study-finished .finish-mark { width: 95px; height: 95px; display: grid; place-items: center; margin: 0 auto 20px; background: var(--yellow); color: var(--navy); font-size: 44px; font-weight: 900; }
.study-finished h2 { font-size: 40px; color: var(--navy); }
.study-finished p { color: var(--muted); }


#toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: grid; gap: 8px; width: min(390px,calc(100vw - 40px)); }
.toast { background: var(--navy); color: white; padding: 13px 16px; box-shadow: var(--shadow); border-left: 5px solid var(--sky); font-size: 13px; animation: toast-in .2s ease-out; }
.toast.bad { border-left-color: var(--red); }
.service-issue { display: grid; gap: 7px; }
.service-issue span { line-height: 1.5; }
.service-issue button { justify-self: start; border: 1px solid #fff; background: #fff; color: var(--navy); padding: 6px 10px; cursor: pointer; font: inherit; font-weight: 700; }
.service-issue button:hover { background: var(--pale); color: var(--blue); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1180px) {
  .header-main { grid-template-columns: 150px 1fr auto; padding-inline: 18px; gap: 10px; }
  .brand-link img { width: 115px; }
  .nav-link { padding-inline: 7px; font-size: 13px; }
  .hero { grid-template-columns: 1fr .8fr; }
  .hero-copy { padding-inline: 40px; }
  .module-grid { grid-template-columns: repeat(2,1fr); }
  .stat-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 900px) {
  .site-media-grid { grid-template-columns: 1fr; }
  .word-editor-search { grid-template-columns: 1fr 1fr; }
  .word-editor-search .button { justify-self: start; }
  .site-header { position: static; }
  .header-main { grid-template-columns: 1fr auto; }
  .main-nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; overflow-x: auto; border-top: 1px solid var(--line); padding-top: 5px; }
  .nav-link { min-height: 42px; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 430px; order: -1; }
  .hero-copy { padding: 55px 35px; }
  .thesis-inner, .method-preview, .company-preview, .tower-page, .contact-grid, .gate-card { grid-template-columns: 1fr; }
  .thesis-copy { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); padding: 30px 0 0; }
  .tower-visual { position: relative; top: auto; min-height: 570px; }
  .two-column-page { grid-template-columns: 1fr; }
  .section-index { position: static; display: flex; overflow-x: auto; }
  .section-index strong { display: none; }
  .section-index a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .section-index a:hover { border-bottom-color: var(--blue); }
  .section-index a.active { border-left: 0; border-bottom-color: var(--blue); }
  .founder-panel { grid-template-columns: 1fr; }
  .founder-panel img { max-height: 560px; }
  .learning-layout, .admin-grid { grid-template-columns: 1fr; }
  .future-items { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1480px) and (min-width: 901px) {
  .main-nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; }
  .nav-link { padding-inline: 7px; font-size: 12px; }
  .account-area { flex-wrap: wrap; justify-content: flex-end; max-width: 235px; }
}

@media (max-width: 640px) {
  .site-text-fields { grid-template-columns: 1fr; }
  .word-editor-search { grid-template-columns: 1fr; }
  .admin-document, .media-list-head { flex-wrap: wrap; }
  .word-media-item { grid-template-columns: 52px minmax(0,1fr); }
  .word-media-item img { width: 52px; height: 52px; }
  .word-media-item .button { grid-column: 2; justify-self: start; }
  body { font-size: 15px; }
  .header-main { min-height: 66px; padding: 7px 13px; }
  .brand-link img { width: 98px; height: 45px; }
  .account-name, .role-chip { display: none; }
  .account-area .button { min-height: 37px; padding: 7px 10px; }
  .account-area { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
  .language-switch { order: 3; width: 100%; justify-content: flex-end; }
  .language-switch button { padding: 5px 6px; font-size: 10px; }
  .page, .modules-section, .method-preview, .company-preview { padding: 38px 17px 60px; }
  .hero { border-left-width: 6px; }
  .hero-media { min-height: 300px; }
  .hero-badge { right: 15px; bottom: 15px; width: 145px; padding: 13px; }
  .hero-copy { padding: 42px 20px; }
  .hero h1 { font-size: 47px; }
  .hero-intro { font-size: 15px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-fact + .hero-fact { border-left: 0; padding-left: 0; }
  .hero-fact { border-top: 1px solid var(--line); padding-top: 10px; }
  .thesis-inner { padding: 55px 20px; gap: 30px; }
  .module-grid, .book-grid, .value-grid, .field-row, .future-items { grid-template-columns: 1fr; }
  .module-card { min-height: 205px; }
  .tower-mini { min-height: 400px; padding-inline: 18px; }
  .company-quote { padding: 35px 25px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-inline: 20px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { padding-inline: 20px; display: block; }
  .content-panel { padding: 25px 20px; }
  .tower-visual { padding: 32px 18px; min-height: 500px; }
  .tower-visual h2 { font-size: 38px; }
  .future-hero { min-height: 330px; padding: 45px 23px; }
  .contact-panel, .form-card { padding: 30px 22px; }
  .gate-art { min-height: 320px; }
  .gate-copy { padding: 35px 24px; }
  .learning-head { display: block; }
  .learning-actions { margin-top: 18px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .stat-card { min-height: 108px; }
  .panel { padding: 20px 16px; }
  .word-result.with-image { grid-template-columns: 52px minmax(0,1fr) auto; }
  .word-result-image { width: 52px; height: 52px; }
  .admin-head { padding: 28px 20px; display: block; }
  .admin-head h1 { font-size: 34px; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { max-height: 94vh; }
  .modal-head { padding: 22px 20px 0; }
  .modal-body { padding: 20px; }
  .study-bar { padding: 8px 13px; }
  .study-brand span { display: none; }
  .study-stage { padding: 14px; }
  .flashcard { min-height: 430px; padding: 36px 22px; }
  .study-actions { display: grid; grid-template-columns: repeat(2,1fr); }
  .rating-button { min-width: 0; }
}

/* 2026-09 full visual rebuild, based on the customer's AJ reference layouts. */
:root {
  --blue: #302d28;
  --blue-2: #a62c26;
  --navy: #24211e;
  --pale: #fff4df;
  --canvas: #f8f6f2;
  --line: #e5ded2;
  --muted: #6b645b;
  --yellow: #f4c444;
  --shadow: 0 15px 38px rgba(47, 37, 25, .09);
}
html { scroll-padding-top: 86px; }
body { background: var(--canvas); color: var(--ink); }
h1, h2, h3 { text-wrap: balance; }
.page-main { min-width: 0; }
.page { max-width: 1280px; padding: 34px 24px 64px; }
.page.wide { max-width: 1380px; }
.eyebrow { color: #7b3328; font-size: 11px; letter-spacing: .17em; }
.eyebrow::before { width: 24px; height: 3px; background: var(--yellow); }
.eyebrow .cms-language-second { display: none; }
.page-title { font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.18; letter-spacing: -.025em; }
.page-lead { font-size: 16px; line-height: 1.72; }
.section-heading { align-items: center; margin-bottom: 17px; }
.section-heading h2 { font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.2; }
.section-heading p { max-width: 440px; font-size: 13px; line-height: 1.6; }
.button { border-radius: 10px; min-height: 43px; }
.button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(13, 58, 91, .13); }
.button.primary { color: #102c47; background: var(--yellow); border-color: #f0ae16; }
.button.primary:hover { background: #ffd052; }
.button.light { color: var(--navy); border-color: #b9c9d5; }
.button.light:hover { background: #f3f8fc; }
.link-button { color: var(--blue); }
.level-chip { background: #f4f8fb; }

/* Header: compact desktop navigation, explicit small-screen menu. */
.site-header { background: rgba(255,255,255,.98); border-bottom: 1px solid #e6e9e9; box-shadow: 0 3px 15px rgba(9, 41, 69, .035); }
.header-main { max-width: 1510px; min-height: 71px; padding: 7px 25px; grid-template-columns: 172px minmax(0,1fr) auto; gap: 14px; }
.brand-link { gap: 8px; min-width: 0; }
.brand-link .brand-mark, .footer-lockup .brand-mark { width: 49px; height: 41px; object-fit: contain; flex: none; }
.brand-wordmark { display: grid; line-height: 1.15; color: #111; white-space: nowrap; }
.brand-wordmark strong { font-size: 15px; font-weight: 850; letter-spacing: -.02em; }
.brand-wordmark small { font-size: 7px; font-weight: 800; letter-spacing: .05em; }
.brand-link .brand-custom-logo { width: 159px; height: 50px; object-fit: contain; object-position: left; }
.main-nav { justify-content: center; overflow-x: auto; scrollbar-width: none; gap: 0; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-link { color: #25394e; font-size: 12px; padding: 12px 7px; border-radius: 5px; }
.nav-link:hover, .nav-link:focus-visible { color: var(--blue); background: var(--pale); }
.nav-link.active { color: var(--blue); background: transparent; }
.nav-link:hover::after, .nav-link:focus-visible::after { height: 2px; bottom: 4px; background: #86b9db; }
.nav-link.active::after { height: 3px; bottom: 4px; background: var(--yellow); }
.nav-link sup { font-size: 0; margin-left: 3px; padding: 0; }
.nav-link sup::after { content: "·"; font-size: 14px; color: #d99a13; }
.account-area { max-width: 277px; gap: 5px; }
.account-area .button { border-radius: 999px; }
.language-switch { background: transparent; border: 0; gap: 0; padding: 0; }
.language-switch button { font-size: 10px; padding: 6px 4px; }
.language-switch button.active { color: var(--blue); background: transparent; box-shadow: inset 0 -2px var(--yellow); }
.mobile-menu-toggle { display: none; }

/* Home: one clear hero, immediate routes, then the method and company. */
.page-main.wide:has(> .hero) { width: 100%; max-width: 1510px; margin: 0 auto; }
.hero { position: relative; isolation: isolate; max-width: 1450px; min-height: 448px; margin: 16px 24px 0; display: block; border: 0; border-radius: 18px; box-shadow: 0 18px 40px rgba(20, 49, 76, .1); background: #f1eee7; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; width: min(67%, 850px); min-height: 448px; padding: 42px clamp(32px,5vw,74px) 27px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy::after { display: none; }
.hero h1 { max-width: 650px; margin: 15px 0 15px; color: #092d53; font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: clamp(40px,4.2vw,61px); line-height: 1.14; letter-spacing: -.03em; }
.hero h1 span { color: #d99a08; display: block; }
.hero h1 .cms-language-second { color: var(--blue); font-family: "Segoe UI", Arial, sans-serif; font-size: .37em; letter-spacing: 0; }
.hero-intro { max-width: 600px; color: #4b5d6f; font-size: 15px; line-height: 1.7; }
.hero-actions { gap: 10px; margin: 18px 0 25px; }
.hero-actions .button { min-height: 43px; border-radius: 999px; padding-inline: 20px; }
.hero-facts { max-width: 670px; border-top: 1px solid rgba(31,67,98,.2); }
.hero-fact { padding: 12px 12px 0 0; }
.hero-fact + .hero-fact { border-left-color: rgba(31,67,98,.17); padding-left: 14px; }
.hero-fact strong { font-size: 15px; line-height: 1.25; }
.hero-fact > span { font-size: 10px; line-height: 1.45; }
.hero-media { position: absolute; z-index: 0; inset: 0; min-height: 0; background: #e9e4d7; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; opacity: 1; }
.hero-media::after { position: absolute; inset: 0; width: auto; height: auto; border: 0; background: linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.94) 38%,rgba(255,255,255,.73) 56%,rgba(255,255,255,.03) 82%); }
.hero-badge { position: absolute; z-index: 2; right: 20px; bottom: 18px; width: 190px; border: 1px solid rgba(255,255,255,.75); border-radius: 11px; background: rgba(255,255,255,.89); padding: 11px 14px; box-shadow: 0 10px 30px rgba(7,34,59,.12); }
.hero-badge small { font-size: 10px; }
.hero-badge strong { font-size: 13px; line-height: 1.4; }
.modules-section { max-width: 1450px; margin: 0 auto; padding: 28px 24px 35px; }
.module-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.module-card { min-height: 133px; padding: 18px 18px 13px 54px; border: 1px solid #e2e7e9; border-top: 3px solid #f2b72c; border-radius: 13px; background: #fff; box-shadow: 0 6px 18px rgba(16,51,79,.05); }
.module-card::before { top: 15px; left: 16px; right: auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #da9a0b; background: #fff4d8; font-size: 12px; }
.module-card.available { border-top-color: var(--blue); }
.module-card.available::before { color: var(--blue); background: var(--pale); }
.module-card.coming { background: #fff; }
.module-art { display: none; }
.module-card h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.3; }
.module-card p { margin: 0 0 9px; font-size: 11px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.module-card .module-foot { gap: 6px; font-size: 10px; }
.module-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(16,51,79,.1); }
.method-preview { max-width: 1402px; margin: 0 auto; padding: 24px 24px; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); gap: clamp(30px,5vw,70px); align-items: center; }
.tower-mini { min-height: 360px; padding: 34px 35px 22px; border-radius: 16px; background: linear-gradient(145deg,rgba(252,250,244,.9),rgba(240,246,249,.9)),url('/assets/vocabulary-desk.png') center/cover; box-shadow: inset 0 0 0 1px #e0e7eb; }
.tower-mini::before { content: "VerbTower"; left: 23px; top: 8px; transform: none; color: rgba(8,49,88,.1); font-family: Georgia, serif; font-size: 37px; font-style: italic; font-weight: 500; }
.tower-caption { align-self: start; margin-bottom: auto; color: #4c657b; font-size: 12px; }
.tower-layer { position: relative; height: 43px; display: flex; align-items: center; gap: 10px; padding: 0 17px; border-radius: 4px; background: linear-gradient(90deg,#3b88bc,#8ac3e5); color: white; font-size: 13px; box-shadow: 0 7px 0 rgba(14,55,88,.15), 0 12px 18px rgba(11,50,80,.14); }
.tower-layer + .tower-layer { margin-top: 5px; }
.tower-layer-number { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 10px; }
.tower-layer:nth-child(2) { width: 49%; background: linear-gradient(90deg,#8abddc,#c0ddeb); }
.tower-layer:nth-child(3) { width: 61%; background: linear-gradient(90deg,#5fa9d3,#93c8e2); }
.tower-layer:nth-child(4) { width: 73%; background: linear-gradient(90deg,#2785bc,#68afd5); }
.tower-layer:nth-child(5) { width: 85%; background: linear-gradient(90deg,#0e639d,#378fc3); }
.tower-layer:nth-child(6) { width: 97%; background: linear-gradient(90deg,#0a3158,#1c6194); }
.method-copy h2 { margin: 8px 0 13px; color: var(--navy); font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: clamp(30px,3vw,41px); line-height: 1.22; }
.method-copy > p { max-width: 630px; color: #566a7d; font-size: 14px; line-height: 1.72; }
.principle-list { gap: 8px; margin: 17px 0 20px; }
.principle { grid-template-columns: 34px 1fr; gap: 11px; align-items: center; }
.principle b { width: 32px; height: 32px; border-radius: 50%; background: #fff3d5; color: #d29305; font-size: 12px; }
.principle strong { font-size: 14px; }
.principle span { font-size: 12px; line-height: 1.5; }
.thesis-band { max-width: 1354px; margin: 10px auto 30px; border-radius: 12px; color: var(--navy); background: #fff; border-left: 4px solid var(--yellow); box-shadow: 0 6px 24px rgba(11,46,76,.055); }
.thesis-inner { max-width: none; padding: 22px 26px; grid-template-columns: .75fr 1.25fr; gap: 28px; }
.thesis-label { color: #b37b00; font-size: 10px; }
.thesis-inner h2 { margin: 4px 0 0; font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: 24px; line-height: 1.3; }
.thesis-copy { border-left: 1px solid #d9e1e6; padding-left: 27px; color: #53687a; font-size: 12px; line-height: 1.55; }
.thesis-copy p { margin-bottom: 6px; }
.company-preview { max-width: 1402px; margin: auto; padding: 12px 24px 44px; grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: 0; }
.company-photo, .company-quote { min-height: 245px; border-radius: 0; }
.company-photo { border-radius: 14px 0 0 14px; }
.company-photo img { width: 100%; height: 245px; object-fit: cover; object-position: center 42%; }
.company-quote { gap: 10px; padding: 27px 38px; border-radius: 0 14px 14px 0; background: #123f67; }
.company-quote .eyebrow { color: #fbd678; }
.company-quote blockquote { font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: clamp(21px,2.2vw,31px); line-height: 1.4; }
.company-quote footer { color: #bed4e5; font-size: 12px; }
.company-quote .button { align-self: flex-start; min-height: 32px; padding: 5px 12px; font-size: 11px; }

/* Public inner pages share the same editorial scale. */
.two-column-page { grid-template-columns: 210px minmax(0,1fr); gap: 22px; }
.section-index { top: 89px; border: 1px solid #e4e8e9; border-radius: 12px; padding: 9px; box-shadow: 0 5px 18px rgba(14,50,79,.045); }
.section-index strong { padding: 9px 11px; font-size: 15px; }
.section-index a { border-radius: 7px; border-left: 3px solid transparent; padding: 7px 10px; font-size: 12px; }
.section-index a.active { border-left-color: var(--yellow); }
.content-stack { display: block; }
.content-panel { min-height: 420px; padding: clamp(28px,3vw,45px); border-radius: 13px; box-shadow: 0 8px 24px rgba(17,52,79,.055); }
.content-panel h2 { font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: clamp(25px,2.8vw,36px); }
.content-panel p { font-size: 14px; line-height: 1.8; }
.founder-panel { grid-template-columns: minmax(220px,.65fr) 1.35fr; gap: 35px; }
.founder-panel img { max-height: 445px; border-radius: 8px; }
.value-card { border-radius: 9px; padding: 16px; background: #f3f8fb; }
.value-card b { font-size: 18px; }
.value-card strong { font-size: 13px; }

.method-page { padding-top: 25px; }
.tower-page { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(30px,5vw,75px); align-items: center; }
.tower-visual { position: relative; top: auto; min-height: 470px; padding: 30px 36px; border: 1px solid #e4e8e9; border-radius: 16px; color: var(--navy); background: linear-gradient(145deg,rgba(250,248,241,.72),rgba(243,248,250,.85)),url('/assets/vocabulary-desk.png') center/cover; box-shadow: 0 15px 35px rgba(11,46,76,.09); }
.tower-visual::before { content: "VerbTower"; right: 18px; bottom: 7px; font-family: Georgia, serif; font-size: 37px; font-style: italic; color: rgba(10,49,88,.12); }
.tower-visual h2 { font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: 27px; margin: 9px 0 20px; }
.tower-steps { min-height: 315px; gap: 7px; }
.tower-step, .tower-step:nth-child(1), .tower-step:nth-child(2), .tower-step:nth-child(3), .tower-step:nth-child(4), .tower-step:nth-child(5) { margin-inline: auto; padding: 12px 17px; border-radius: 5px; color: white; background: linear-gradient(90deg,#0c4d82,#3488bc); box-shadow: 0 8px 0 rgba(8,45,77,.18),0 15px 20px rgba(8,45,77,.15); }
.tower-step:nth-child(1) { width: 54%; background: linear-gradient(90deg,#81b8da,#b6d9e9); }
.tower-step:nth-child(2) { width: 65%; background: linear-gradient(90deg,#5fa4cf,#91c5df); }
.tower-step:nth-child(3) { width: 76%; background: linear-gradient(90deg,#2c87bb,#64acd0); }
.tower-step:nth-child(4) { width: 87%; background: linear-gradient(90deg,#17669e,#428cbe); }
.tower-step:nth-child(5) { width: 98%; background: linear-gradient(90deg,#0a3158,#1c6194); }
.method-article { gap: 18px; display: block; }
.method-article .page-title { margin: 13px 0 14px; }
.method-article .page-lead { margin-bottom: 25px; font-size: 15px; }
.method-highlights { display: grid; gap: 16px; }
.method-highlight { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.method-highlight b { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: #fff2d1; color: #c58800; }
.method-highlight strong, .method-highlight span { display: block; }
.method-highlight strong { color: var(--navy); font-size: 15px; }
.method-highlight span { color: #5e6f7e; font-size: 12px; }
.method-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.method-actions span { color: #788896; font-size: 11px; }
.method-details { margin-top: 22px; border: 1px solid #dce4e8; border-radius: 12px; background: white; }
.method-details summary { padding: 15px 20px; color: var(--blue); font-weight: 750; cursor: pointer; }
.method-details summary:hover { background: #f5f9fb; }
.method-step-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 0 17px 18px; }
.method-block { padding: 15px 18px; min-height: 0; border-radius: 8px; }
.method-block .number { font-size: 19px; color: #d39200; }
.method-block h3 { font-size: 15px; margin: 3px 0; }
.method-block p { font-size: 12px; line-height: 1.6; }

.future-page { max-width: 1380px; }
.future-hero { min-height: 245px; padding: 35px clamp(30px,5vw,68px); border-radius: 16px; background: linear-gradient(105deg,#0a3158,#316f9e); }
.future-hero::after { display: none; }
.future-hero h1 { font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: clamp(35px,3.9vw,54px); line-height: 1.15; margin: 12px 0; }
.future-hero p { max-width: 650px; margin-bottom: 8px; font-size: 14px; line-height: 1.6; }
.future-hero-courses { color: var(--navy); background: linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.92) 42%,rgba(255,255,255,.05) 80%),url('/assets/german-city-hero.png') center/cover; }
.future-hero-courses p { color: #4b5f72; }
.future-items { gap: 13px; margin-top: 17px; }
.future-item { position: relative; isolation: isolate; min-height: 155px; padding: 20px 20px 18px; border-radius: 12px; border: 1px solid #e2e7ea; overflow: hidden; box-shadow: 0 6px 20px rgba(13,48,75,.055); }
.future-item strong { position: relative; z-index: 2; max-width: 65%; margin: 8px 0; font-size: 16px; line-height: 1.35; }
.future-item > span { position: relative; z-index: 2; max-width: 63%; font-size: 11px; line-height: 1.45; }
.future-item .level-chip { min-height: 21px; padding: 3px 7px; color: #a87500; background: #fff3d8; }
.future-items-courses .future-item::after { content: ""; position: absolute; z-index: 0; inset: 0 0 0 54%; background: linear-gradient(110deg,rgba(255,255,255,.9),rgba(255,255,255,.08) 30%),url('/assets/german-city-hero.png') 78% center/cover; clip-path: polygon(24% 0,100% 0,100% 100%,0 100%); }
.future-items-courses .future-item:nth-child(2)::after { background-image: linear-gradient(110deg,rgba(255,255,255,.9),rgba(255,255,255,.05) 30%),url('/assets/vocabulary-desk.png'); }
.future-items-courses .future-item:nth-child(3)::after { background-image: linear-gradient(110deg,rgba(255,255,255,.9),rgba(255,255,255,.08) 30%),url('/assets/founder-wide.jpg'); background-position: center 40%; }
.future-items-courses .future-item:nth-child(4)::after { background: linear-gradient(130deg,#e6f2f8,#b1cfe0); }
.future-items-courses .future-item:nth-child(5)::after { background: linear-gradient(130deg,#f5ead3,#d3b972); }
.future-items-courses .future-item:nth-child(6)::after { background: linear-gradient(130deg,#dce6ec,#92afc0); }
.future-item:hover { transform: translateY(-2px); box-shadow: 0 12px 27px rgba(13,48,75,.11); }

.contact-grid { gap: 17px; }
.contact-panel { padding: 32px; border-radius: 13px; background: linear-gradient(140deg,#103e69,#0a3158); }
.contact-panel h2 { font-size: 29px; }
.contact-list { gap: 12px; margin-top: 22px; }
.form-card { padding: 31px; border-radius: 13px; box-shadow: 0 7px 24px rgba(13,48,75,.055); }
.form-card h2 { font-size: 26px; }
.field { margin-bottom: 13px; }
.field input, .field select, .field textarea, .search-input { border-color: #cbd7df; border-radius: 8px; }

/* Learning: book selection, plan and start buttons stay within one view. */
.gate-page { max-width: 1380px; }
.gate-card { max-width: none; min-height: 385px; grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); margin: 0; border: 0; border-radius: 16px; box-shadow: var(--shadow); }
.gate-art { min-height: 385px; padding: 0; display: block; background: #e4d8c1; }
.gate-art img { width: 100%; height: 100%; object-fit: cover; object-position: 71% center; }
.gate-copy { padding: 36px clamp(32px,5vw,70px); }
.gate-copy h1 { font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: clamp(34px,3.5vw,48px); line-height: 1.2; }
.gate-copy p { font-size: 15px; line-height: 1.7; }
.gate-copy .hero-actions { margin-bottom: 0; }
.learning-page { max-width: 1380px; }
.learning-head { min-height: 170px; padding: 26px 31px; margin-bottom: 14px; align-items: center; border-radius: 16px; background: linear-gradient(90deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.88) 49%,rgba(255,255,255,.13) 84%),url('/assets/vocabulary-desk.png') center/cover; box-shadow: 0 8px 25px rgba(14,46,75,.07); }
.learning-head h1 { max-width: 590px; margin: 9px 0 0; font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: clamp(30px,3.4vw,44px); line-height: 1.2; }
.learning-actions { align-self: flex-end; }
.learning-actions .button { border-radius: 9px; }
.stat-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; margin-bottom: 15px; }
.stat-card { min-height: 101px; padding: 12px 13px; border-radius: 11px; box-shadow: 0 5px 14px rgba(11,46,76,.04); }
.stat-card small { font-size: 11px; }
.stat-card strong { margin: 6px 0 1px; font-size: 24px; }
.stat-card span { font-size: 10px; line-height: 1.4; }
.tomorrow-stat span + span { margin-top: 1px; }
.learning-layout { grid-template-columns: minmax(0,1.9fr) minmax(285px,.7fr); gap: 15px; }
.learning-layout .panel { border-radius: 12px; }
.panel { padding: 22px; }
.panel + .panel { margin-top: 13px; }
.panel-head { margin-bottom: 14px; }
.panel-head h2 { font-size: 21px; }
.book-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.book-card { min-height: 145px; padding: 14px 11px 19px 93px; border-radius: 10px; background: #fff; overflow: hidden; }
.book-card::before { content: attr(data-level); position: absolute; left: 12px; top: 12px; bottom: 12px; width: 69px; display: grid; place-items: center; border-radius: 6px; color: #173957; background: linear-gradient(150deg,#ffe3aa,#e4b65a); box-shadow: 5px 7px 12px rgba(12,50,78,.13); font-size: 19px; font-weight: 800; }
.book-card:nth-child(3n+2)::before { background: linear-gradient(150deg,#d4e9f7,#78aed1); }
.book-card:nth-child(3n)::before { background: linear-gradient(150deg,#e5ecf1,#9bb5c5); }
.book-card .level-chip { margin-bottom: 7px; font-size: 10px; }
.book-card h3 { margin-bottom: 4px; font-size: 14px; line-height: 1.3; }
.book-card p { font-size: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-card b { right: 10px; bottom: 7px; font-size: 10px; }
.book-card.selected { background: #f2f9fd; box-shadow: inset 0 0 0 2px var(--blue); }
.plan-card { padding: 22px; border-radius: 12px; background: linear-gradient(145deg,#0c365e,#0b2b4d); }
.plan-card h2 { margin: 7px 0; font-size: 21px; }
.plan-card p { font-size: 11px; line-height: 1.5; }
.plan-card .field { margin-bottom: 11px; }
.search-results { max-height: 430px; }

/* Footer keeps the product frame consistent without a second giant section. */
.site-footer { background: #fff; color: #536a7e; border-top: 1px solid #e1e8eb; }
.footer-grid { max-width: 1380px; padding: 28px 24px 20px; grid-template-columns: 1.4fr .7fr .9fr; gap: 45px; }
.footer-brand img { background: transparent; padding: 0; }
.footer-brand p { margin-top: 10px; color: #647b8e; font-size: 12px; }
.footer-col h3 { margin: 0 0 7px; color: var(--navy); font-size: 13px; }
.footer-col p, .footer-col a { margin: 4px 0; color: #5d7486; font-size: 12px; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--blue); }
.footer-bottom { max-width: 1380px; padding: 11px 24px 16px; color: #8696a3; }

@media (max-width: 1180px) {
  .header-main { grid-template-columns: 162px minmax(0,1fr) auto; padding-inline: 15px; gap: 8px; }
  .nav-link { padding-inline: 5px; font-size: 11px; }
  .account-area { max-width: 220px; }
  .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .site-header { position: sticky; }
  .header-main { grid-template-columns: minmax(0,1fr) auto; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; gap: 8px; justify-self: end; border: 1px solid #ccdae2; border-radius: 9px; background: white; color: var(--navy); padding: 7px 11px; font-weight: 700; }
  .mobile-menu-toggle:hover, .mobile-menu-toggle[aria-expanded="true"] { color: var(--blue); background: var(--pale); }
  .main-nav { display: none; grid-column: 1 / -1; order: 3; flex-wrap: wrap; justify-content: flex-start; gap: 2px; overflow: visible; padding: 8px 0 4px; border-top: 1px solid var(--line); }
  .site-header.menu-open .main-nav { display: flex; }
  .nav-link { font-size: 12px; padding: 8px 9px; }
  .account-area { grid-column: 1 / -1; order: 2; max-width: none; justify-content: flex-end; }
  .hero-copy { width: 76%; }
  .method-preview, .tower-page, .gate-card { grid-template-columns: 1fr; }
  .tower-visual { min-height: 420px; }
  .method-article { margin-top: 25px; }
  .learning-layout { grid-template-columns: 1fr; }
  .future-items { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .header-main { min-height: 0; padding: 7px 13px; }
  .brand-link .brand-mark { width: 40px; height: 35px; }
  .brand-wordmark strong { font-size: 13px; }
  .brand-wordmark small { font-size: 7px; }
  .brand-link .brand-custom-logo { width: 129px; height: 42px; }
  .account-area { flex-wrap: nowrap; gap: 4px; min-width: 0; }
  .account-name, .role-chip { display: none; }
  .account-area .button { min-height: 31px; padding: 5px 8px; font-size: 11px; }
  .language-switch { order: 0; width: auto; margin-right: auto; }
  .language-switch button { padding: 5px 4px; font-size: 10px; }
  .page { padding: 23px 15px 45px; }
  .hero { margin: 9px 10px 0; min-height: 490px; border-radius: 13px; }
  .hero-copy { width: 100%; min-height: 490px; padding: 26px 20px 18px; justify-content: flex-start; }
  .hero h1 { font-size: clamp(31px,8vw,40px); margin: 12px 0; }
  .hero-intro { font-size: 13px; line-height: 1.55; }
  .hero-actions { margin: 14px 0 14px; gap: 7px; }
  .hero-actions .button { min-height: 38px; padding: 7px 13px; font-size: 11px; }
  .hero-media img { object-position: 70% center; }
  .hero-media::after { background: linear-gradient(180deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.95) 43%,rgba(255,255,255,.16) 95%); }
  .hero-facts { margin-top: auto; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; border: 0; background: rgba(255,255,255,.83); border-radius: 9px; padding: 6px; }
  .hero-fact, .hero-fact + .hero-fact { border: 0; padding: 5px; }
  .hero-fact strong { font-size: 11px; }
  .hero-fact > span { font-size: 9px; }
  .hero-badge { display: none; }
  .modules-section { padding: 22px 13px; }
  .section-heading { display: block; margin-bottom: 12px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading p { margin-top: 5px; font-size: 12px; }
  .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .module-card { min-height: 148px; padding: 13px 9px 10px 12px; }
  .module-card::before { position: static; margin-bottom: 7px; width: 23px; height: 23px; font-size: 10px; }
  .module-card h3 { font-size: 13px; }
  .module-card p { font-size: 10px; }
  .module-card .module-foot { flex-wrap: wrap; font-size: 9px; }
  .method-preview { padding: 16px 13px 24px; gap: 20px; }
  .tower-mini { min-height: 283px; padding: 28px 10px 15px; }
  .tower-mini::before { font-size: 27px; }
  .tower-caption { font-size: 10px; }
  .tower-layer { height: 35px; padding: 0 7px; gap: 4px; font-size: 10px; }
  .tower-layer-number { width: 18px; height: 18px; font-size: 8px; }
  .method-copy h2 { font-size: 28px; }
  .thesis-band { margin: 0 13px 24px; }
  .thesis-inner { display: block; padding: 18px 19px; }
  .thesis-inner h2 { font-size: 21px; }
  .thesis-copy { margin-top: 10px; padding: 0; border: 0; font-size: 11px; }
  .company-preview { padding: 0 13px 30px; grid-template-columns: 1fr; }
  .company-photo { min-height: 190px; border-radius: 12px 12px 0 0; }
  .company-photo img { height: 190px; }
  .company-quote { min-height: 215px; padding: 22px; border-radius: 0 0 12px 12px; }
  .company-quote blockquote { font-size: 21px; }
  .two-column-page { display: block; }
  .section-index { position: relative; top: auto; display: flex; overflow-x: auto; gap: 3px; margin-bottom: 10px; white-space: nowrap; scrollbar-width: thin; }
  .section-index a, .section-index a.active { border-left: 0; border-bottom: 3px solid transparent; }
  .section-index a.active { border-bottom-color: var(--yellow); }
  .content-panel { min-height: 335px; padding: 24px 18px; }
  .founder-panel { display: block; }
  .founder-panel img { max-height: 280px; margin-bottom: 17px; }
  .value-grid { grid-template-columns: 1fr; }
  .tower-visual { min-height: 378px; padding: 22px 12px; }
  .tower-visual h2 { font-size: 23px; }
  .tower-steps { min-height: 275px; }
  .tower-step { font-size: 11px; }
  .method-step-list { grid-template-columns: 1fr; }
  .future-hero { min-height: 225px; padding: 25px 20px; }
  .future-hero h1 { font-size: 34px; }
  .future-items { grid-template-columns: 1fr; }
  .future-item { min-height: 135px; }
  .gate-card { display: flex; flex-direction: column; }
  .gate-art { min-height: 200px; max-height: 220px; }
  .gate-copy { padding: 24px 22px; }
  .learning-head { min-height: 168px; padding: 21px 17px; display: block; }
  .learning-head h1 { font-size: 29px; }
  .learning-actions { margin-top: 17px; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .stat-card { min-height: 94px; padding: 11px; }
  .stat-card strong { font-size: 21px; }
  .book-grid { grid-template-columns: 1fr; }
  .book-card { min-height: 120px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; padding: 22px 16px 15px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 11px 16px; }
}
@media (max-width: 380px) {
  .language-switch button { font-size: 9px; padding-inline: 2px; }
  .account-area .button { padding-inline: 6px; }
  .hero { min-height: 510px; }
  .hero-copy { min-height: 510px; }
  .hero h1 { font-size: 29px; }
}

/* Administrator console. Append after the existing styles.css rules. */

.page.wide:has(> .admin-head) {
  max-width: 1510px;
  padding-top: clamp(24px, 3vw, 42px);
}

.admin-head {
  position: relative;
  isolation: isolate;
  min-height: 205px;
  overflow: hidden;
  align-items: center;
  padding: clamp(30px, 3.7vw, 52px);
  border: 1px solid #17486b;
  border-radius: 20px;
  background: linear-gradient(100deg, rgba(7, 35, 65, .98) 0%, rgba(9, 47, 87, .94) 51%, rgba(9, 47, 87, .72) 100%), url('/assets/german-city-hero.png') center 56% / cover;
  box-shadow: 0 18px 42px rgba(9, 47, 87, .16);
}

.admin-head::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 92px;
  height: 5px;
  background: #f2bc3c;
}

.admin-head .eyebrow {
  color: #f7cf72;
  font-size: 11px;
  letter-spacing: .16em;
}

.admin-head .eyebrow::before { background: #f2bc3c; }
.admin-head h1 { margin: 12px 0 8px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.15; letter-spacing: -.035em; }
.admin-head p { max-width: 680px; margin: 0; color: #d1dfeb; font-size: 14px; line-height: 1.7; }
.admin-head .role-chip { max-width: 260px; border: 1px solid rgba(255, 255, 255, .27); background: rgba(255, 255, 255, .13); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.admin-tabs {
  gap: 5px;
  margin-top: 14px;
  padding: 7px;
  border: 1px solid #e5e9ea;
  border-radius: 14px;
  background: #fffdfa;
  box-shadow: 0 7px 24px rgba(31, 57, 80, .055);
  scrollbar-width: thin;
}

.admin-tabs button {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 9px;
  color: #536678;
  font-size: 13px;
  font-weight: 750;
  transition: background .16s, color .16s;
}

.admin-tabs button:hover,
.admin-tabs button:focus-visible { background: #f5f2e9; color: #06498d; }

/* Keep the exact active text color and inset marker used by the UI QA. */
.admin-tabs button.active {
  background: #fff5dc;
  color: #06498d;
  box-shadow: inset 0 -3px 0 #e8ad29;
}

.admin-content { margin-top: 22px; }
.admin-content .panel {
  min-width: 0;
  padding: clamp(22px, 2.3vw, 32px);
  border: 1px solid #e3e8ec;
  border-radius: 16px;
  background: #fffefd;
  box-shadow: 0 9px 28px rgba(31, 57, 80, .055);
}

.admin-content .panel-head { align-items: flex-start; padding-bottom: 15px; border-bottom: 1px solid #e8ecee; }
.admin-content .panel-head h2 { color: #092f57; font-size: clamp(20px, 2vw, 25px); line-height: 1.25; letter-spacing: -.02em; }
.admin-content .panel-head p { max-width: 680px; margin-top: 6px; color: #617286; font-size: 12px; line-height: 1.6; }
.admin-content .panel-head .level-chip { flex: none; }
.admin-content .level-chip { border: 1px solid #ecdba9; background: #fff6df; color: #79550f; }
.admin-content .help-text { color: #67788a; line-height: 1.6; }
.admin-content .empty-state { border-color: #d9dfdf; border-radius: 12px; background: #fcfaf5; }

.admin-content .button { border-radius: 9px; }
.admin-content .button.primary { border-color: #e3aa29; background: #f2bc3c; color: #092f57; }
.admin-content .button.primary:hover { border-color: #d59a19; background: #f9cb62; }
.admin-content .button.light,
.admin-content .button.ghost { border-color: #cbd9e4; color: #164971; }
.admin-content .button.light:hover,
.admin-content .button.ghost:hover { border-color: #6e9cbd; background: #f0f6f8; }
.admin-content :is(button, input, select, textarea):focus-visible { outline: 2px solid #e8ad29; outline-offset: 2px; }

.admin-content .field { color: #314961; }
.admin-content .field input,
.admin-content .field select,
.admin-content .field textarea,
.admin-content .search-input {
  border-color: #cfd9df;
  border-radius: 9px;
  background: #fff;
  color: #142c42;
}

.admin-content .field input:focus,
.admin-content .field select:focus,
.admin-content .field textarea:focus,
.admin-content .search-input:focus { border-color: #a77b1f; box-shadow: 0 0 0 3px rgba(232, 173, 41, .16); }

.admin-grid { grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 20px; align-items: start; }
.admin-grid > aside { min-width: 0; display: grid; gap: 18px; align-content: start; }
.admin-grid > aside > .panel + .panel { margin-top: 0; }
.admin-grid > #import-form { border-top: 4px solid #e8ad29; }
.admin-content #import-form .hero-actions { margin: 21px 0 16px; }
.admin-grid aside .user-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 13px 0; border-bottom: 1px solid #e8ecee; }
.admin-grid aside .user-row:last-child { border-bottom: 0; }
.admin-grid aside .user-row > div { flex: 1 1 170px; min-width: 0; }
.admin-grid aside .user-row strong,
.admin-grid aside .user-row small { display: block; overflow-wrap: anywhere; }
.admin-grid aside .user-row strong { color: #092f57; font-size: 13px; }
.admin-grid aside .user-row small { color: #718092; font-size: 11px; }
.admin-content .admin-scroll-hint { margin: 12px 0 8px; font-size: 12px; }
.admin-content .admin-book-scroll {
  max-height: 390px;
  overflow-y: auto;
  padding-right: 8px;
  border-top: 1px solid #e8ecee;
  border-bottom: 1px solid #e8ecee;
  scrollbar-width: thin;
  scrollbar-color: #c9ab70 #f7f2e8;
  overscroll-behavior-y: contain;
}
.admin-content .admin-book-scroll .user-row:last-child { border-bottom: 0; }
.admin-content .admin-book-scroll:focus-visible,
.admin-content .admin-message-scroll:focus-visible,
.admin-content .admin-user-scroll:focus-visible { outline: 2px solid #e8ad29; outline-offset: 2px; }

.admin-content .upload-zone { position: relative; min-height: 158px; border-color: #cbb170; border-radius: 12px; background: linear-gradient(135deg, #fffdfa, #f8f5ed); color: #164971; }
.admin-content .upload-zone:hover,
.admin-content .upload-zone:focus-within { border-color: #a77b1f; background: #fff8e8; }
.admin-content .upload-zone input[type="file"] { display: block; position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; overflow: hidden; }
.admin-content .upload-zone strong { font-size: 14px; }
.admin-content .upload-zone span { margin-top: 5px; line-height: 1.6; }
.admin-content .file-ready { border: 1px solid #c9e0d3; border-radius: 9px; background: #f0f8f2; }
.admin-content .preview-wrap { border: 1px solid #e3e8ec; border-radius: 10px; }
.admin-content .preview-table th { background: #f5f6f3; }
.admin-content .rights-check { color: #43586b; }
.admin-content .import-rights { border-top-color: #e8ecee; }

.admin-content .security-list { gap: 8px; }
.admin-content .security-item { align-items: start; border: 1px solid #edf0ec; border-radius: 10px; background: #faf9f5; }
.admin-content .security-item b { background: #fff0c7; color: #9b6a06; }
.admin-content .security-item strong { font-size: 13px; }
.admin-content .security-item span { margin-top: 2px; line-height: 1.5; }

.admin-content .site-editor,
.admin-content .site-content-sections { gap: 20px; }
.admin-content .site-content-sections > .panel + .panel { margin-top: 0; }
.admin-content .site-editor-nav { gap: 7px; padding: 9px; border: 1px solid #e3e8ec; border-radius: 13px; background: #fffdfa; box-shadow: 0 7px 22px rgba(31, 57, 80, .045); }
.admin-content .site-editor-nav button { min-height: 38px; border-radius: 8px; background: #f2f4f2; color: #164971; }
.admin-content .site-editor-nav button:hover,
.admin-content .site-editor-nav button:focus-visible { background: #fff2ce; color: #092f57; text-decoration: none; }
.admin-content .site-text-group,
.admin-content #site-contact-editor,
.admin-content #site-text-editor,
.admin-content #company-section-manager,
.admin-content #site-image-editor,
.admin-content #site-document-editor { scroll-margin-top: 100px; }
.admin-content .site-text-group h3 { color: #092f57; font-size: 21px; letter-spacing: -.02em; }
.admin-content .site-text-fields { gap: 0 20px; }
.admin-content .site-media-grid { gap: 14px; }
.admin-content .media-editor-card { border-color: #e2e8e9; border-radius: 12px; background: #fbfaf6; }
.admin-content .media-preview { border-radius: 9px; background: #eee9df; }
.admin-content .media-upload-form { border-top-color: #e5e8e6; }

.admin-content .admin-document,
.admin-content .word-editor-item,
.admin-content .word-media-item,
.admin-content .image-batch-word,
.admin-content .commons-result { min-width: 0; border-color: #e2e8e9; border-radius: 11px; background: #fffdfa; }
.admin-content .admin-document,
.admin-content .word-editor-item { flex-wrap: wrap; }
.admin-content .word-editor-item > div { flex: 1 1 240px; min-width: 0; }
.admin-content .word-editor-item strong { font-size: 17px; }
.admin-content .word-editor-list,
.admin-content .word-media-list { gap: 9px; }
.admin-content .word-export-actions { gap: 9px; }
.admin-content .word-image-panel,
.admin-content .word-editor-panel { margin-top: 20px; }
.admin-content .image-batch-panel,
.admin-content .image-search-panel { border-color: #dce5e8; border-radius: 12px; background: #f6f8f7; }
.admin-content .image-batch-panel .panel-head { padding-bottom: 12px; }
.admin-content .commons-result img { border-radius: 7px; }

.admin-content .table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #e2e8e9; border-radius: 12px; background: #fff; scrollbar-width: thin; overscroll-behavior-inline: contain; }
.admin-content .admin-message-scroll { max-height: min(64vh, 620px); overflow: auto; overscroll-behavior: contain; }
.admin-content .admin-message-scroll thead th { position: sticky; top: 0; z-index: 1; }
.admin-content .admin-user-scroll { max-height: min(64vh, 620px); overflow: auto; overscroll-behavior: contain; }
.admin-content .admin-user-scroll thead th { position: sticky; top: 0; z-index: 1; }
.admin-content .admin-message-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 14px; }
.admin-content .admin-message-pages label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.admin-content .admin-message-pages select { min-width: 55px; }
.admin-content .admin-message-pages .help-text { margin-left: auto; }
.admin-content .data-table { min-width: 760px; }
.admin-content .data-table th,
.admin-content .data-table td { padding: 13px 12px; border-bottom-color: #e8ecee; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.admin-content .data-table th { background: #f5f6f3; color: #40566b; }
.admin-content .data-table tbody tr:last-child td { border-bottom: 0; }
.admin-content .data-table tbody tr:hover { background: #fffaf0; }
.admin-content .data-table td strong { color: #092f57; }
.admin-content .table-actions { gap: 6px; }
.admin-content .table-actions .button { white-space: nowrap; }
.admin-content .compact-select { min-height: 36px; border-color: #ccd8df; border-radius: 8px; color: #173e5e; }
.admin-content .filter-bar { gap: 10px; }
.admin-content .status-chip.new { background: #fff0c7; color: #805812; }
.admin-content .audit-code { color: #305878; }

body:has(.admin-head) .modal { border: 1px solid #e3e8ec; border-radius: 17px; box-shadow: 0 24px 70px rgba(5, 30, 55, .25); }
body:has(.admin-head) .modal-head h2 { color: #092f57; }

@media (max-width: 1100px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-grid > aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-content .site-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .page.wide:has(> .admin-head) { padding-top: 22px; }
  .admin-head { display: flex; min-height: 0; align-items: flex-start; flex-direction: column; padding: 29px 23px; border-radius: 16px; }
  .admin-head h1 { font-size: 34px; }
  .admin-head .role-chip { display: inline-flex; margin-top: 15px; }
  .admin-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; }
  .admin-tabs button { flex: none; scroll-snap-align: start; min-height: 44px; padding: 10px 13px; }
  .admin-content .panel { padding: 21px 18px; }
  .admin-grid > aside { grid-template-columns: 1fr; }
  .admin-content .site-text-fields,
  .admin-content .site-media-grid,
  .admin-content .word-editor-search { grid-template-columns: 1fr; }
  .admin-content .word-editor-search .button { justify-self: start; }
  .admin-content .site-editor-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .admin-content .site-editor-nav button { flex: none; white-space: nowrap; }
  .admin-content .filter-bar { flex-wrap: wrap; }
  .admin-content .filter-bar .search-input { flex: 1 1 210px; min-width: 0; max-width: none; }
  .admin-content .media-list-head { align-items: stretch; }
  .admin-content .data-table { min-width: 720px; }
}

@media (max-width: 480px) {
  .admin-head { padding: 24px 19px; }
  .admin-head h1 { font-size: 31px; }
  .admin-head p { font-size: 13px; }
  .admin-content .panel { padding: 19px 15px; }
  .admin-content .panel-head { flex-wrap: wrap; gap: 9px; }
  .admin-content .word-media-item { grid-template-columns: 52px minmax(0, 1fr); }
  .admin-content .word-media-item .button { grid-column: 2; justify-self: start; }
  .admin-content .commons-result { grid-template-columns: 70px minmax(0, 1fr); }
  .admin-content .commons-result img { width: 70px; height: 70px; }
}

/* Short task paths for the redesigned management pages. */
.admin-subtabs, .site-group-nav { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-subtabs { margin-bottom: 14px; padding: 7px; border: 1px solid #e2e8e9; border-radius: 12px; background: #fffdfa; }
.admin-subtabs button, .site-group-nav button { border: 1px solid transparent; border-radius: 8px; background: #f1f5f6; color: #34526a; padding: 8px 13px; font-weight: 750; font-size: 12px; }
.admin-subtabs button:hover, .admin-subtabs button:focus-visible, .site-group-nav button:hover, .site-group-nav button:focus-visible { color: var(--blue); background: var(--pale); }
.admin-subtabs button.active, .site-group-nav button.active { border-color: #e9ba45; color: var(--navy); background: #fff2d0; }
.admin-content-pane > .word-editor-panel, .admin-content-pane > .word-image-panel { margin-top: 0; }
.site-editor-nav button.active { color: var(--navy); background: #fff2d0; box-shadow: inset 0 -2px var(--yellow); }
.site-text-intro { border: 1px solid #e3e8e9; border-radius: 12px; background: #fffdfa; padding: 20px; }
.site-text-intro h2 { margin: 0 0 4px; color: var(--navy); font-size: 22px; }
.site-text-intro p { margin: 0 0 14px; }
.site-group-nav { margin-top: 13px; }
.site-group-pickers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e9e9; }
.site-group-picker { display: grid; gap: 6px; min-width: 0; color: var(--navy); font-size: 12px; font-weight: 750; }
.site-group-picker select { width: 100%; min-width: 0; min-height: 41px; padding: 8px 12px; border: 1px solid #cbd8dd; border-radius: 9px; background: #fff; color: var(--navy); font: inherit; font-size: 13px; }
.site-group-picker select:hover { border-color: var(--blue); }
.site-group-picker select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
body:has(.language-switch [data-language="both"].active) .main-nav { justify-content: flex-start; scrollbar-width: thin; }
.page.wide:has(> .admin-head) { padding-top: 21px; }
.admin-head { min-height: 166px; padding: 26px 36px; }
.admin-head h1 { font-size: clamp(28px,3vw,38px); }
.admin-head p { font-size: 12px; line-height: 1.55; }
.stat-card { min-height: 117px; }
.stat-card small { font-size: 12px; }
.stat-card span { font-size: 11px; }
.book-card p { font-size: 11px; }
.future-item > span { font-size: 12px; }
@media (max-width: 760px) {
  .admin-head { min-height: 0; padding: 24px 20px; }
  .admin-subtabs, .site-group-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .admin-subtabs button, .site-group-nav button { flex: none; white-space: nowrap; }
  .site-group-pickers { grid-template-columns: 1fr; }
}

/* German and bilingual labels need a full-width menu rather than a clipped bar. */
@media (min-width: 901px) {
  body:has(.language-switch button.active:not([data-language="zh"])) .header-main { grid-template-columns: 172px 90px minmax(0,1fr); }
  body:has(.language-switch button.active:not([data-language="zh"])) .mobile-menu-toggle { display: inline-flex; align-items: center; gap: 7px; justify-self: start; border: 1px solid #cbd9e2; border-radius: 8px; background: white; color: var(--navy); padding: 7px 10px; font-weight: 750; }
  body:has(.language-switch button.active:not([data-language="zh"])) .mobile-menu-toggle:hover,
  body:has(.language-switch button.active:not([data-language="zh"])) .mobile-menu-toggle[aria-expanded="true"] { background: var(--pale); color: var(--blue); }
  body:has(.language-switch button.active:not([data-language="zh"])) .main-nav { display: none; position: absolute; z-index: 5; top: calc(100% + 1px); left: max(20px,calc((100vw - 1510px)/2 + 195px)); right: 20px; padding: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; border: 1px solid #dce5ea; border-radius: 0 0 13px 13px; background: white; box-shadow: 0 15px 32px rgba(11,46,76,.14); overflow: visible; }
  body:has(.language-switch button.active:not([data-language="zh"])) .site-header.menu-open .main-nav { display: grid; }
  body:has(.language-switch button.active:not([data-language="zh"])) .nav-link { width: 100%; min-height: 40px; text-align: left; white-space: normal; font-size: 12px; padding: 8px 10px; }
  body:has(.language-switch button.active:not([data-language="zh"])) .account-area { grid-column: 3; justify-self: end; max-width: 470px; }
}

/* Company and services editorial layout, based on the client brochure and seven-branch outline. */
.about-page, .services-page { width: 100%; padding-top: 26px; }
.about-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 22px; padding: 0 3px 14px; border-bottom: 1px solid #d8e1e6; }
.about-page-heading h1 { margin: 3px 0 0; color: var(--navy); font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.2; letter-spacing: -.03em; }
.about-page-heading p { margin: 0 0 3px; color: #60758a; font-size: 12px; }
.editorial-language-note { margin: -6px 0 17px; padding: 9px 13px; border-left: 3px solid #e5b643; border-radius: 0 7px 7px 0; background: #fff9e9; color: #6b5525; font-size: 12px; line-height: 1.5; }
.services-page .editorial-language-note { margin: 14px 0 -7px; }
.about-page .two-column-page { grid-template-columns: 224px minmax(0, 1fr); gap: 22px; align-items: start; }
.about-page .section-index { position: sticky; top: 99px; display: block; overflow: visible; padding: 11px; border: 1px solid #103e69; border-radius: 14px; background: linear-gradient(160deg,#0a3158,#12476f); box-shadow: 0 14px 28px rgba(6, 37, 67, .15); }
.about-page .section-index strong { display: block; margin: 0 0 7px; padding: 11px 10px 12px; border-bottom: 1px solid rgba(255,255,255,.18); color: white; font-size: 16px; }
.about-page .section-index strong small { display: block; margin-top: 1px; color: #b7d1e5; font-size: 9px; font-weight: 600; letter-spacing: .18em; }
.about-page .section-index a { display: flex; align-items: center; gap: 10px; min-height: 39px; margin: 2px 0; padding: 8px 10px; border: 0; border-radius: 8px; color: #d8e6f0; font-size: 13px; line-height: 1.25; white-space: normal; transition: background .18s, color .18s, transform .18s; }
.about-page .section-index a em { flex: none; color: #e6c36b; font-size: 10px; font-style: normal; letter-spacing: .04em; }
.about-page .section-index .about-index-text { display: grid; min-width: 0; gap: 2px; }
.about-page .section-index .about-index-text .cms-language-second { display: block; color: #c9dce9; font-size: 10px; font-weight: 550; }
.about-page .section-index a:hover, .about-page .section-index a:focus-visible { border: 0; background: rgba(255,255,255,.13); color: white; transform: translateX(2px); }
.about-page .section-index a.active { border: 0; background: #f4c650; color: #0a3158; font-weight: 850; box-shadow: 0 5px 12px rgba(0,0,0,.14); }
.about-page .section-index a.active em { color: #0a3158; }
.about-page .section-index a.active .cms-language-second { color: #315879; }
.about-index-label { display: block; margin: 11px 10px 4px; color: #a9c4d8; font-size: 10px; letter-spacing: .12em; }
.about-page .content-stack { min-width: 0; }
.about-page .content-panel { min-height: 0; overflow: hidden; border: 1px solid #e0e7ea; border-radius: 15px; background: white; box-shadow: 0 11px 32px rgba(14, 48, 75, .08); scroll-margin-top: 102px; }
.about-overview { padding: 0 !important; }
.about-overview-hero { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(275px, .78fr); min-height: 410px; }
.about-overview-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 3.5vw, 54px); color: #fff; background: radial-gradient(circle at 10% 4%,rgba(97,166,204,.18),transparent 39%), linear-gradient(145deg,#082d52,#124b75); }
.about-overview-copy::after { content: ''; position: absolute; inset: 24px auto 24px 0; width: 4px; background: #f2bf42; }
.about-overview-copy .eyebrow { color: #f5cd6a; font-size: 10px; }
.about-overview-copy .eyebrow::before { background: #f5cd6a; }
.about-overview-copy h2 { max-width: 650px; margin: 17px 0 17px; color: #fff; font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: clamp(31px, 3.1vw, 45px); line-height: 1.21; letter-spacing: -.028em; }
.about-overview-copy h2 .cms-language-second { color: #c9e2ee; font-size: .47em; }
.about-overview-intro { max-width: 610px; }
.about-overview-intro p { margin: 0 0 11px; color: #dcebf3; font-size: 14px; line-height: 1.72; }
.about-overview-intro .cms-language-group .cms-text[lang="de"] { color: #dcebf3; }
.about-overview-intro .cms-language-group .cms-text + .cms-text { border-color: rgba(255,255,255,.26); }
.about-overview-intro p:last-child { margin-bottom: 0; }
.about-overview-copy .button { align-self: start; margin-top: 21px; }
.about-overview-photo { position: relative; min-height: 410px; overflow: hidden; background: #253f52; }
.about-overview-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(5,29,50,.53),transparent 43%); pointer-events: none; }
.about-overview-photo img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; object-position: center 39%; display: block; }
.about-overview-photo span { position: absolute; z-index: 1; bottom: 22px; left: 24px; color: white; font-size: 10px; font-weight: 750; letter-spacing: .19em; }
.about-overview-below { padding: 27px clamp(25px,3vw,45px) 35px; }
.about-page .value-grid { margin: 0; gap: 11px; }
.about-page .value-card { position: relative; min-height: 115px; padding: 15px 15px 14px; border: 1px solid #e1e9ed; border-radius: 10px; background: #f8faf9; }
.about-page .value-card b { display: block; color: #b98715; font-size: 12px; letter-spacing: .12em; }
.about-page .value-card strong { margin: 4px 0; color: var(--navy); font-size: 13px; }
.about-page .value-card span { color: #5f7080; font-size: 11px; line-height: 1.55; }
.about-story { margin-top: 20px; border-top: 1px solid #e5eaec; }
.about-story summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 2px 0; color: var(--blue); font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.about-story summary::-webkit-details-marker { display: none; }
.about-story summary span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #cfdee7; border-radius: 50%; font-size: 16px; font-weight: 400; }
.about-story[open] summary span { transform: rotate(45deg); }
.about-story .editorial-body { padding-top: 20px; }
.about-page .about-detail-panel { position: relative; padding: clamp(28px,3.5vw,52px); border-top: 4px solid #e9b735; }
.about-page .about-detail-panel::before { content: 'BOERDE'; position: absolute; top: 18px; right: 35px; color: rgba(12,61,97,.055); font-family: Georgia,serif; font-size: 68px; letter-spacing: -.04em; pointer-events: none; }
.about-panel-head { position: relative; max-width: 850px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid #e2e8ea; }
.about-chapter { display: inline-block; color: #bb861c; font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.about-panel-kicker { display: block; margin-top: 8px; color: #53718a; font-size: 12px; font-weight: 750; }
.about-page .about-detail-panel h2 { margin: 9px 0 13px; max-width: 780px; color: var(--navy); font-size: clamp(27px,2.7vw,37px); line-height: 1.25; }
.about-panel-summary p { max-width: 790px; margin: 0; color: #4f6578; font-size: 14px; line-height: 1.72; }
.editorial-body { max-width: 920px; color: #40586b; }
.editorial-body .editorial-heading { max-width: 850px; margin: 30px 0 11px; padding-left: 15px; border-left: 3px solid #e8b335; color: var(--navy); font-size: clamp(17px,1.6vw,21px); line-height: 1.45; font-weight: 850; letter-spacing: -.01em; }
.editorial-body .editorial-heading:first-child { margin-top: 0; }
.editorial-body .editorial-paragraph, .editorial-body > p { max-width: 850px; margin: 0 0 15px; color: #465f72; font-size: 14px; line-height: 1.9; }
.editorial-body .cms-language-second { margin-top: .55em; color: #426b88; font-size: .9em; }
.editorial-body .editorial-list { display: grid; gap: 7px; max-width: 850px; margin: 11px 0 22px; padding: 0; list-style: none; }
.editorial-body .editorial-list li { position: relative; padding: 9px 13px 9px 32px; border: 1px solid #e4eaec; border-radius: 8px; background: #f9fbfb; color: #34536a; font-size: 13px; line-height: 1.65; }
.editorial-body .editorial-list li::before { content: ''; position: absolute; top: 17px; left: 13px; width: 7px; height: 7px; border-radius: 50%; background: #e6b03a; }
.editorial-quote { max-width: 850px; margin: 22px 0; padding: 17px 22px; border-left: 4px solid #e8b335; border-radius: 0 9px 9px 0; color: #0b406d; background: #f2f7f8; font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: clamp(18px,2vw,25px); line-height: 1.5; }
.editorial-table-wrap { max-width: 920px; overflow-x: auto; margin: 12px 0 22px; border: 1px solid #dce6ea; border-radius: 10px; }
.editorial-table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.6; }
.editorial-table th { padding: 11px 14px; color: #fff; background: #164c73; text-align: left; font-weight: 800; }
.editorial-table td { padding: 11px 14px; border-top: 1px solid #e6ecee; color: #456074; vertical-align: top; }
.editorial-table tbody tr:nth-child(even) td { background: #f6f9f9; }
.about-founder-photo { float: right; width: min(29%,250px); margin: 0 0 21px 30px; }
.about-founder-photo img { display: block; width: 100%; height: auto; max-height: 390px; object-fit: contain; object-position: center top; border-radius: 10px; }
.about-founder-photo figcaption { padding: 8px 2px; color: #667789; font-size: 11px; }
.about-team-photo { margin: 0 0 25px; }
.about-team-photo img { display: block; width: 100%; height: 260px; object-fit: cover; object-position: center 47%; border-radius: 10px; }
.about-detail-slogan .brand-slogan { max-width: none; margin-top: 0; padding: 30px 34px; border: 0; border-radius: 12px; background: linear-gradient(125deg,#0c355b,#174f7b); color: #fbd979; font-size: clamp(29px,3.8vw,52px); text-align: center; }
.deutsch-x-visual { display: flex; align-items: center; justify-content: center; gap: clamp(12px,3vw,40px); min-height: 160px; margin: 0 0 26px; border-radius: 12px; background: linear-gradient(125deg,#0b345c,#1d6899); color: #fff; font-family: Georgia,serif; }
.deutsch-x-visual span { font-size: clamp(23px,3vw,39px); letter-spacing: .035em; }
.deutsch-x-visual b { color: #f6c44f; font-size: clamp(27px,4vw,51px); font-weight: 400; }
.deutsch-x-visual strong { font-size: clamp(41px,5vw,67px); }
.deutsch-x-visual small { align-self: end; margin-bottom: 20px; color: #d7eaf4; font-family: inherit; font-size: 11px; }
.about-detail-message .editorial-body { font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; }

.services-hero { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(285px,.82fr); min-height: 360px; overflow: hidden; border-radius: 15px; background: #0a3158; box-shadow: 0 13px 34px rgba(7,37,65,.14); }
.services-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px,4vw,58px); color: #fff; background: radial-gradient(circle at 11% 20%,rgba(98,169,208,.14),transparent 40%),linear-gradient(130deg,#082c51,#174d75); }
.services-hero-copy .eyebrow { color: #f8d36d; }
.services-hero-copy .eyebrow::before { background: #f8d36d; }
.services-hero h1 { margin: 16px 0 16px; max-width: 680px; color: #fff; font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: clamp(31px,3.8vw,51px); line-height: 1.19; }
.services-hero-intro p { max-width: 670px; margin: 0 0 10px; color: #d5e7f0; font-size: 14px; line-height: 1.72; }
.services-hero-photo { min-height: 360px; }
.services-hero-photo img { display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: center center; }
.services-layout { display: grid; grid-template-columns: 315px minmax(0,1fr); align-items: start; gap: 23px; margin-top: 24px; }
.services-index { display: grid; gap: 7px; padding: 10px; border: 1px solid #dfe8eb; border-radius: 13px; background: white; box-shadow: 0 8px 23px rgba(14,48,75,.055); }
.services-index button { display: grid; grid-template-columns: 28px minmax(0,1fr) 15px; align-items: center; gap: 10px; min-height: 65px; padding: 10px 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #204b6c; text-align: left; transition: background .18s, transform .18s; }
.services-index button:hover, .services-index button:focus-visible { background: #f0f6f8; transform: translateX(2px); }
.services-index button.active { border-color: #e7cd87; background: #fff7e4; color: #0b3558; }
.services-index button em { align-self: start; padding-top: 2px; color: #bb8a19; font-size: 11px; font-weight: 850; font-style: normal; }
.services-index button span { min-width: 0; font-size: 13px; font-weight: 850; line-height: 1.35; }
.services-index button span.cms-language-second { display: block; margin-top: 3px; color: #71889b; font-size: 10px; font-weight: 550; }
.services-index button small { display: block; margin-top: 2px; color: #75899a; font-size: 9px; font-weight: 550; }
.services-index button b { color: #a4b6c2; font-size: 14px; }
.service-detail { min-height: 440px; padding: clamp(28px,3.5vw,50px); border: 1px solid #dfe7eb; border-top: 4px solid #e7b83c; border-radius: 13px; background: #fff; box-shadow: 0 9px 27px rgba(13,47,75,.06); scroll-margin-top: 102px; }
.service-detail header { max-width: 830px; margin-bottom: 23px; padding-bottom: 16px; border-bottom: 1px solid #e5eaed; }
.service-detail h2 { margin: 10px 0 0; color: var(--navy); font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif; font-size: clamp(25px,2.8vw,37px); line-height: 1.25; }
.services-end { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 0; padding: 17px 20px; border: 1px solid #e1e8eb; border-radius: 10px; background: #fff; }
.services-end p { margin: 0; color: #617589; font-size: 12px; }

@media (max-width: 900px) {
  .about-page .two-column-page, .services-layout { display: block; }
  .about-page .section-index { position: static; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin-bottom: 13px; }
  .about-page .section-index strong { grid-column: 1 / -1; margin: 0 0 2px; }
  .about-page .section-index a { min-height: 37px; margin: 0; }
  .about-index-label { grid-column: 1 / -1; }
  .services-index { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 14px; }
  .services-index button { min-height: 69px; }
}

@media (max-width: 760px) {
  .about-page, .services-page { padding-top: 17px; }
  .about-page-heading { margin-bottom: 12px; }
  .about-page-heading p { display: none; }
  .about-page .section-index { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 9px; }
  .about-page .section-index a { font-size: 12px; }
  .about-overview-hero, .services-hero { display: flex; flex-direction: column; }
  .about-overview-copy { padding: 29px 23px; }
  .about-overview-copy h2 { font-size: 31px; }
  .about-overview-photo, .about-overview-photo img { min-height: 0; height: 240px; }
  .about-overview-below { padding: 20px; }
  .about-page .value-grid { grid-template-columns: 1fr; gap: 8px; }
  .about-page .value-card { min-height: 0; padding: 11px 14px; }
  .about-page .about-detail-panel { padding: 27px 22px; }
  .about-page .about-detail-panel::before { font-size: 49px; right: 18px; }
  .about-founder-photo { float: none; width: min(100%,280px); margin: 0 0 20px; }
  .about-founder-photo img { height: auto; max-height: none; }
  .about-team-photo img { height: 190px; }
  .deutsch-x-visual { flex-wrap: wrap; gap: 8px 16px; min-height: 135px; padding: 20px; }
  .deutsch-x-visual small { flex-basis: 100%; margin: 0; text-align: center; }
  .services-hero-copy { padding: 30px 24px; }
  .services-hero h1 { font-size: 34px; }
  .services-hero-photo, .services-hero-photo img { min-height: 0; height: 190px; }
  .services-index { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .services-index button { min-height: 62px; padding: 9px; grid-template-columns: 23px minmax(0,1fr); }
  .services-index button b, .services-index button small { display: none; }
  .services-index button span { font-size: 11px; }
  .service-detail { min-height: 0; padding: 26px 22px; }
  .services-end { align-items: start; flex-direction: column; }
}

@media (max-width: 430px) {
  .about-page .section-index a { gap: 6px; padding: 8px; }
  .about-overview-copy { padding: 25px 20px; }
  .about-overview-copy h2 { font-size: 28px; }
  .about-overview-photo, .about-overview-photo img { height: 205px; }
  .about-page .about-detail-panel { padding: 24px 18px; }
  .editorial-body .editorial-paragraph, .editorial-body > p { font-size: 13px; line-height: 1.8; }
  .editorial-table { min-width: 480px; }
  .services-hero-copy { padding: 25px 20px; }
  .services-hero h1 { font-size: 30px; }
  .service-detail { padding: 24px 18px; }
}

/* Brand palette: quiet ivory surfaces, charcoal typography, small red and yellow accents. */
.site-header { background: rgba(255,254,251,.98); }
.nav-link { color: #504b43; }
.nav-link:hover, .nav-link:focus-visible, .nav-link.active { color: var(--navy); background: #fff5e6; }
.nav-link:hover::after, .nav-link:focus-visible::after { background: var(--yellow); }
.nav-link.active::after { background: var(--red); }
.language-switch { background: #f8f4ec; }
.language-switch button:hover:not(.active) { color: var(--navy); background: #fff0cf; }
.language-switch button.active { color: var(--navy); background: transparent; box-shadow: inset 0 -2px var(--red); }
.cms-language-group .cms-text[lang="de"] { color: #5d554b; }
.button.primary { border-color: var(--navy); background: var(--navy); color: #fff; }
.button.primary:hover, .button.dark:hover { background: #423b34; }
.button.light { color: var(--navy); border-color: #d7cfc1; }
.button.light:hover, .button.ghost:hover { color: #8e2620; background: #fff5e4; border-color: #cda874; }
.speech-status { border-color: #e6d8b9; background: #fff9eb; }
.speech-status span, .speech-status small { color: #62584d; }
.role-chip, .level-chip { background: #fff0cc; color: #6c4918; }

.hero { border-left: 7px solid var(--red); }
.hero-copy::after, .hero-media::after { display: none; }
.hero h1 { color: var(--navy); }
.hero h1 span { color: var(--red); }
.hero-intro { color: #625b52; }
.hero-facts { background: rgba(255,250,240,.91); }
@media (min-width: 761px) {
  .hero-facts { border: 1px solid rgba(197,176,143,.75); border-radius: 12px; padding: 3px 13px 11px; backdrop-filter: blur(8px); }
}
.hero-media { background: #eee8dc; }
.thesis-band { border-top: 1px solid #eadfcf; border-bottom: 1px solid #eadfcf; background: #f4eee4; color: var(--navy); }
.thesis-label { color: #a52c25; }
.thesis-inner h2 em { color: #a52c25; }
.thesis-copy { border-left-color: #d8cbb9; color: #5d554d; }
.module-card::before { color: #8a5a08; }
.module-card.available { border-top-color: var(--yellow); }
.module-card.coming { background: #fcfaf6; }
.tower-mini { background: #f6f0e5; }
.tower-mini::before { color: rgba(56,43,27,.10); }
.tower-layer { color: #2b261e; box-shadow: 0 8px 24px rgba(56,42,27,.11); }
.tower-layer:nth-child(2) { background: #f8df86; color: #24211e; }
.tower-layer:nth-child(3) { background: #f4cf65; color: #24211e; }
.tower-layer:nth-child(4) { background: #e5b44b; color: #24211e; }
.tower-layer:nth-child(5) { background: #b88937; color: #24211e; }
.tower-layer:nth-child(6) { background: #302a24; color: #fff; }
.tower-layer-number { background: rgba(45,39,31,.10); }
.company-quote { background: #f5eee4; color: var(--navy); border-left: 4px solid var(--yellow); }
.company-quote .eyebrow { color: #a42d25; }
.company-quote footer { color: #6b6257; }
.site-footer { border-top: 1px solid #e6dccc; background: #fffdfa; color: #5d554c; }
.site-footer .footer-col h3, .site-footer .brand-wordmark { color: var(--navy); }
.footer-brand p, .footer-col p, .footer-col a, .footer-bottom { color: #6b6258; }
.footer-col a:hover, .footer-col a:focus-visible { color: #a52c25; }

.tower-visual { background: #f4eee4; color: var(--navy); border: 1px solid #e6dac9; }
.tower-visual::before { color: rgba(66,48,25,.06); }
.tower-step { background: #ead097; color: #2b261f; }
.tower-step:nth-child(1) { background: #fff0c3; }
.tower-step:nth-child(2) { background: #f6d778; }
.tower-step:nth-child(3) { background: #e8bf59; }
.tower-step:nth-child(4) { background: #b68539; color: #24211e; }
.tower-step:nth-child(5) { background: #302a24; color: #fff; }
.tower-step:nth-child(-n+4) { color: #24211e; }
.future-hero { background: #f5eee3; color: var(--navy); border: 1px solid #e5d9c8; }
.future-hero::after { color: rgba(70,50,25,.055); }
.future-hero p { color: #625a50; }
.future-hero-courses p { color: #625a50; }
.future-items-courses .future-item:nth-child(4)::after { background: linear-gradient(130deg,#fff4d6,#e8c77e); }
.future-items-courses .future-item:nth-child(6)::after { background: linear-gradient(130deg,#f3ece1,#d8bd95); }
.contact-panel { background: #f5eee3; color: var(--navy); border: 1px solid #e5d9c8; }
.contact-panel p { color: #625a50; }
.contact-line { border-top-color: #d8cbbb; }
.contact-line small { color: #a52c25; }
.gate-art { background: #f4eee4; color: var(--navy); }
.gate-tile { box-shadow: 16px 18px 0 #f1c653; }
.plan-card { background: #f6f0e4; color: var(--navy); border: 1px solid #e4d6c3; }
.plan-card p, .plan-card .field { color: #60574d; }
.plan-card .field input, .plan-card .field select { border-color: #d2c5b4; }
.admin-head { background: #f4eee4; color: var(--navy); border: 1px solid #e2d7c8; }
.admin-head p { color: #62594e; }
.admin-head .eyebrow { color: #a42d25; }
.admin-head .role-chip { border: 1px solid #e1c985; background: #fff0cc; color: var(--navy); }
.admin-tabs button.active { box-shadow: inset 0 -3px 0 var(--red); }
.admin-tabs button:hover, .admin-tabs button:focus-visible, .admin-tabs button.active { color: var(--navy); }
.admin-content .panel-head h2 { color: var(--navy); }
.admin-content .panel-head p, .admin-content .help-text { color: #6c6258; }
.admin-content .button.primary { color: #fff; background: var(--navy); border-color: var(--navy); }
.admin-content .button.light, .admin-content .button.ghost { border-color: #d6c9b6; color: var(--navy); }
.admin-content .button.light:hover, .admin-content .button.ghost:hover { border-color: #c9a875; background: #fff4df; }
.book-card.selected { border-color: #d4aa59; box-shadow: inset 5px 0 0 var(--yellow); background: #fff8e8; }
.upload-zone { border-color: #d4c3aa; background: #fffaf1; }
.site-editor-nav button:hover, .site-editor-nav button:focus-visible { background: #fff0ce; }

.about-page-heading { border-bottom-color: #e2d8ca; }
.about-page-heading p { color: #766a5e; }
.about-page .section-index { border: 1px solid #e4dacb; background: #fffaf2; box-shadow: 0 12px 27px rgba(60,45,26,.08); }
.about-page .section-index strong { border-bottom-color: #e9dfd0; color: var(--navy); }
.about-page .section-index strong small { color: #6b5c4b; }
.about-page .section-index a { color: #4f4941; }
.about-page .section-index a em { color: #b22c26; }
.about-page .section-index .about-index-text .cms-language-second { color: #817467; }
.about-page .section-index a:hover, .about-page .section-index a:focus-visible { background: #fff0ce; color: var(--navy); }
.about-page .section-index a.active { background: var(--yellow); color: var(--navy); box-shadow: 0 4px 10px rgba(105,78,34,.12); }
.about-page .section-index a.active em { color: #81221e; }
.about-page .section-index a.active .cms-language-second { color: #5f503c; }
.about-index-label { color: #6b5c4b; }
.about-page .content-panel { border-color: #e6ded3; box-shadow: 0 10px 27px rgba(59,45,27,.06); }
.about-overview-copy { color: var(--navy); background: #f7f0e5; }
.about-overview-copy::after { background: var(--red); }
.about-overview-copy .eyebrow, .services-hero-copy .eyebrow { color: #a42d25; }
.about-overview-copy .eyebrow::before, .services-hero-copy .eyebrow::before { background: var(--yellow); }
.about-overview-copy h2, .services-hero h1 { color: var(--navy); }
.about-overview-copy h2 .cms-language-second { color: #8b5443; }
.about-overview-intro p, .about-overview-intro .cms-language-group .cms-text[lang="de"] { color: #5a5148; }
.about-overview-intro .cms-language-group .cms-text + .cms-text { border-color: #dfd2bf; }
.about-overview-copy .button.primary { background: var(--yellow); color: var(--navy); }
.about-overview-copy .button.primary:hover { background: #e9b833; }
.about-overview-photo { background: #e5ddce; }
.about-overview-photo::after { background: linear-gradient(0deg,rgba(35,29,21,.37),transparent 38%); }
.about-page .value-card { border-color: #e9dfd0; background: #fcf9f3; }
.about-page .value-card span, .about-panel-kicker, .about-panel-summary p { color: #62584d; }
.about-page .about-detail-panel { border-top-color: var(--yellow); }
.about-page .about-detail-panel::before { color: rgba(93,65,30,.05); }
.about-panel-head { border-bottom-color: #e5dbce; }
.editorial-body, .editorial-body .editorial-paragraph, .editorial-body > p { color: #554e46; }
.editorial-body .cms-language-second { color: #756452; }
.editorial-body .editorial-list li { border-color: #e9dfd2; background: #fcfaf5; color: #514940; }
.editorial-quote { border-left-color: var(--yellow); background: #fff6e3; color: var(--navy); }
.editorial-table-wrap { border-color: #e1d7c9; }
.editorial-table th { background: #36312b; }
.editorial-table td { border-top-color: #e9e0d5; color: #534a42; }
.editorial-table tbody tr:nth-child(even) td { background: #fbf8f2; }
.about-detail-slogan .brand-slogan { border-left: 5px solid var(--red); background: #fff2d0; color: var(--navy); }
.deutsch-x-visual { border: 1px solid #e6d9c4; background: #f7f0e3; color: var(--navy); }
.deutsch-x-visual b { color: #8a6119; }
.deutsch-x-visual strong { color: var(--red); }
.deutsch-x-visual small { color: #6b5c4b; }

.services-hero { border: 1px solid #e7dac9; background: #f7f0e5; box-shadow: 0 10px 28px rgba(59,45,27,.08); }
.services-hero-copy { color: var(--navy); background: #f7f0e5; }
.services-hero-intro p { color: #5a5148; }
.services-index { border-color: #e7ded2; box-shadow: 0 7px 20px rgba(59,45,27,.05); }
.services-index button { color: #4c453d; }
.services-index button:hover, .services-index button:focus-visible { background: #fff5e4; }
.services-index button.active { border-color: #e2c16d; background: #fff2d3; color: var(--navy); }
.services-index button em { color: #aa3328; }
.services-index button span.cms-language-second, .services-index button small { color: #7a6b5b; }
.services-index button b { color: #ae9a7e; }
.service-detail { border-color: #e7ded2; border-top-color: var(--yellow); box-shadow: 0 8px 24px rgba(59,45,27,.05); }
.service-detail header { border-bottom-color: #e7ded2; }
.services-end { border-color: #e7ded2; background: #fffdf9; }
.services-end p { color: #6e6256; }

/* Keep learning and management screens on the same brand palette. */
.field input, .field select, .field textarea, .search-input { border-color: #d8cdbd; }
.field input:focus, .field select:focus, .field textarea:focus, .search-input:focus { box-shadow: 0 0 0 3px rgba(181,139,58,.16); }
.empty-state, .media-editor-card, .public-document { border-color: #e5d9c8; background: #fcfaf6; }
.preview-table th, .data-table th { color: #5c5145; background: #f5efe5; }
.security-item { background: #faf6ef; }
.media-preview { background: #f2ebdf; }
.image-search-panel, .image-batch-panel { border-color: #e3d3b9; background: #fbf7ee; }
.auth-tabs { background: #f5efe5; }
.study-shell { background: #f8f6f2; }
.study-progress { background: #e6ddcd; }
.flashcard:hover, .flashcard:focus-visible { box-shadow: 0 0 0 3px rgba(181,139,58,.35), var(--shadow); }
.memory-guide { border-color: #e4d4ba; background: #fff9ec; }
.memory-parts span { background: #f3e6c8; }
.rating-button.good:hover { background: #423b34; }
.method-details summary:hover { background: #fff5e4; }
.tower-step { box-shadow: 0 8px 0 rgba(79,60,34,.13),0 15px 20px rgba(79,60,34,.12); }
.book-card::before { color: #3d2d19; background: linear-gradient(150deg,#ffe9b8,#e3bc66); box-shadow: 5px 7px 12px rgba(79,60,34,.13); }
.book-card:nth-child(3n+2)::before { background: linear-gradient(150deg,#fff1d1,#efcc7b); }
.book-card:nth-child(3n)::before { background: linear-gradient(150deg,#f5e9d4,#cdaa74); }
.admin-tabs button:focus-visible { color: var(--navy); background: #fff3da; }
.admin-content .upload-zone, .admin-content .site-editor-nav button { color: var(--navy); }
.admin-content .site-editor-nav button { background: #f5efe5; }
.admin-content .site-editor-nav button:focus-visible { color: var(--navy); }
.admin-subtabs button, .site-group-nav button { background: #f7f1e6; color: var(--navy); }
.admin-content .data-table th { color: #5c5145; }
.stat-card span { color: #75695b; }
.book-card:hover, .book-card:focus-visible { box-shadow: 0 5px 18px rgba(79,60,34,.12); }
.admin-tabs button { color: #5d554b; }
.admin-content .field, .admin-content .rights-check { color: #51483e; }
.admin-content .field input, .admin-content .field select,
.admin-content .field textarea, .admin-content .search-input { border-color: #d8cbb9; color: var(--navy); }
.admin-content .site-text-group h3, .admin-grid aside .user-row strong,
.admin-content .data-table td strong, body:has(.admin-head) .modal-head h2 { color: var(--navy); }
.admin-content .site-editor-nav button:hover,
.admin-content .site-editor-nav button:focus-visible { color: var(--navy); }
.admin-content .audit-code, .admin-content .compact-select { color: #594e43; }
.admin-content .compact-select, .site-group-picker select { border-color: #d8cbb9; }

/* Founder-led homepage. Keep the supplied portrait and its embedded logo in frame. */
.founder-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, .63fr);
  max-width: 1380px;
  min-height: 520px;
  margin: 16px 24px 0;
  overflow: hidden;
  border: 1px solid #e8ddce;
  border-radius: 18px;
  background: #f7f1e7;
  box-shadow: 0 17px 40px rgba(53, 40, 24, .09);
}
.founder-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 34px clamp(30px, 4.6vw, 68px);
}
.founder-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #7a5841;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.founder-hero-kicker::before {
  content: "";
  width: 23px;
  height: 3px;
  flex: none;
  border-radius: 3px;
  background: var(--yellow);
}
.founder-hero h1 {
  max-width: 680px;
  margin: 18px 0 16px;
  color: var(--navy);
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif;
  font-size: clamp(33px, 3.5vw, 51px);
  line-height: 1.19;
  letter-spacing: -.035em;
}
.founder-hero-name {
  display: block;
  margin-bottom: 6px;
  font-size: .51em;
  font-weight: 600;
  letter-spacing: .04em;
}
.founder-hero-headline { display: block; color: var(--red); }
.founder-hero-headline .cms-language-second { color: #665747; font-family: "Segoe UI", Arial, sans-serif; font-size: .45em; font-weight: 600; letter-spacing: 0; }
.founder-hero-role { margin: 0 0 13px; color: #574b3e; font-size: 14px; font-weight: 800; }
.founder-hero-intro { max-width: 610px; margin: 0 0 17px; color: #60584e; font-size: 14px; line-height: 1.74; }
.founder-hero-coverage {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 610px;
  margin: 0 0 18px;
  padding: 9px 13px;
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, .66);
  color: #443b33;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}
.founder-hero-coverage-mark { flex: none; color: var(--red); font-size: 14px; line-height: 1.3; }
.founder-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.founder-hero-actions .button { min-height: 43px; border-radius: 999px; padding-inline: 20px; }
.founder-hero-quote {
  max-width: 610px;
  margin: 0;
  padding: 0 0 0 15px;
  border-left: 2px solid #dfbc76;
  color: #726556;
  font-size: 12px;
  line-height: 1.6;
}
.founder-hero-media { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 24px; background: #eee6d9; }
.founder-hero-media img { position: static; display: block; width: auto; height: auto; max-width: 100%; max-height: 470px; object-fit: contain; border-radius: 12px; box-shadow: 0 14px 28px rgba(61,44,24,.14); }

/* The course banner follows the founder story as a quieter second feature. */
.hero {
  min-height: 306px;
  margin-top: 18px;
  border: 1px solid #e7ddcf;
  border-radius: 15px;
  background: #f8f3ea;
  box-shadow: 0 10px 27px rgba(53, 40, 24, .06);
}
.hero-copy { width: min(72%, 860px); min-height: 306px; padding: 24px clamp(27px, 4vw, 55px); }
.hero h2 {
  max-width: 700px;
  margin: 10px 0;
  color: var(--navy);
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  letter-spacing: -.025em;
}
.hero h2 span { display: block; color: var(--red); }
.hero h2 .cms-language-second { color: #665747; font-family: "Segoe UI", Arial, sans-serif; font-size: .44em; letter-spacing: 0; }
.hero-intro { max-width: 560px; font-size: 13px; line-height: 1.6; }
.hero-actions { margin: 11px 0 15px; }
.hero-fact { padding-top: 8px; }
.hero-fact + .hero-fact { padding-left: 13px; }
.hero-media::after {
  display: block;
  background: linear-gradient(90deg, rgba(248, 243, 234, .99) 0%, rgba(248, 243, 234, .96) 35%, rgba(248, 243, 234, .78) 55%, rgba(248, 243, 234, .03) 86%);
}
.hero-badge { display: none; }

@media (max-width: 900px) {
  .founder-hero-copy { padding: 35px 30px; }
  .founder-hero h1 { font-size: clamp(31px, 4.1vw, 42px); }
}
@media (max-width: 760px) {
  .founder-hero { grid-template-columns: 1fr; margin: 11px 15px 0; min-height: 0; }
  .founder-hero-media { order: -1; min-height: 0; height: auto; padding: 18px 15px 0; }
  .founder-hero-media img { max-width: min(77%,300px); max-height: 415px; }
  .founder-hero-copy { padding: 27px 29px 32px; }
  .founder-hero h1 { margin: 15px 0 14px; font-size: clamp(32px, 5.7vw, 44px); }
  .hero { min-height: 0; }
  .hero-copy { width: 100%; min-height: 0; }
}
@media (max-width: 640px) {
  .founder-hero { margin: 9px 10px 0; border-radius: 14px; }
  .founder-hero-media { height: auto; padding: 15px 10px 0; }
  .founder-hero-media img { max-width: min(79%,275px); max-height: 395px; }
  .founder-hero-copy { padding: 21px 20px 25px; }
  .founder-hero-kicker { font-size: 10px; }
  .founder-hero h1 { margin: 12px 0 11px; font-size: clamp(30px, 8vw, 39px); }
  .founder-hero-name { margin-bottom: 4px; }
  .founder-hero-role { margin-bottom: 9px; font-size: 12px; }
  .founder-hero-intro { margin-bottom: 12px; font-size: 12px; line-height: 1.62; }
  .founder-hero-coverage { margin-bottom: 14px; font-size: 11px; }
  .founder-hero-actions { gap: 8px; margin-bottom: 14px; }
  .founder-hero-actions .button { min-height: 38px; padding: 7px 13px; font-size: 11px; }
  .founder-hero-quote { font-size: 11px; }
  .hero { min-height: 355px; margin: 12px 10px 0; }
  .hero-copy { min-height: 355px; padding: 21px 18px 15px; }
  .hero h2 { margin: 9px 0; font-size: clamp(27px, 7vw, 33px); }
  .hero-actions { margin: 11px 0 12px; }
  .hero-facts { margin-top: auto; }
  .hero-media::after { background: linear-gradient(180deg, rgba(248, 243, 234, .99) 0%, rgba(248, 243, 234, .98) 44%, rgba(248, 243, 234, .55) 76%, rgba(248, 243, 234, .04) 100%); }
}
@media (max-width: 380px) {
  .founder-hero-media img { max-width: min(79%,250px); max-height: 375px; }
  .founder-hero h1 { font-size: 29px; }
  .hero { min-height: 380px; }
  .hero-copy { min-height: 380px; }
}

/* Give the full navigation its own row so labels align and never squeeze the logo or account controls. */
@media (min-width: 901px) {
  .header-main {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(63px, auto) 49px;
    column-gap: 20px;
    row-gap: 0;
    padding: 0 25px;
  }
  .brand-link { grid-column: 1; grid-row: 1; justify-self: start; }
  .account-area {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    max-width: none;
    flex-wrap: nowrap;
    gap: 7px;
  }
  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    gap: 3px;
    overflow: visible;
    border-top: 1px solid #ede3d5;
  }
  .main-nav:has([data-route="#/admin"]) { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 47px;
    padding: 8px clamp(7px, 1.05vw, 16px);
    text-align: center;
    font-size: clamp(11px, .95vw, 13px);
    line-height: 1.25;
    white-space: normal;
  }
  .nav-link sup { position: absolute; top: 4px; right: 7px; margin: 0; line-height: 1; }
  body:has(.language-switch button.active:not([data-language="zh"])) .header-main {
    grid-template-columns: 172px minmax(0, 1fr) auto;
    grid-template-rows: minmax(67px, auto);
  }
  body:has(.language-switch button.active:not([data-language="zh"])) .mobile-menu-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }
  body:has(.language-switch button.active:not([data-language="zh"])) .account-area {
    grid-column: 3;
    grid-row: 1;
    max-width: none;
  }
  body:has(.language-switch button.active:not([data-language="zh"])) .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    left: 25px;
    right: 25px;
    width: auto;
    max-width: 950px;
    margin: 0 auto;
    border-top: 1px solid #e5dac9;
    gap: 6px;
  }
  body:has(.language-switch button.active:not([data-language="zh"])) .nav-link {
    justify-content: flex-start;
    padding-right: 22px;
  }
}
@media (max-width: 900px) {
  .site-header.menu-open .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 5px;
    max-height: min(68vh, 520px);
    overflow-y: auto;
  }
  .main-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 8px 20px 8px 12px;
    text-align: left;
    line-height: 1.3;
    white-space: normal;
  }
  .main-nav .nav-link sup { position: absolute; top: 4px; right: 7px; margin: 0; line-height: 1; }
}
.main-nav .nav-link sup {
  top: 9px;
  right: 9px;
  width: 5px;
  height: 5px;
  padding: 0;
  border-radius: 50%;
  background: #dba532;
  overflow: hidden;
  font-size: 0;
}
.main-nav .nav-link sup::after { content: none; }

/* Keep the AJ product identity and the editable Boerde identity visible together. */
.brand-link, .footer-lockup { display: inline-flex; align-items: center; gap: 10px; }
.aj-wordmark { display: grid; flex: 0 1 auto; min-width: 0; gap: 1px; line-height: 1.05; white-space: nowrap; color: var(--navy); }
.aj-wordmark strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 19px; font-weight: 900; letter-spacing: -.045em; }
.aj-wordmark small { color: #986723; font-size: 9px; font-weight: 850; letter-spacing: .11em; }
.brand-divider { width: 1px; height: 29px; flex: none; background: #ded3c4; }
.brand-link .brand-owner-logo, .footer-lockup .brand-owner-logo {
  width: 94px; height: 45px; flex: none; object-fit: contain; object-position: left center;
  background: transparent; padding: 0;
}
.footer-lockup { justify-content: flex-start; }

@media (min-width: 901px) {
  /* German labels use the same tidy two-row header, with a deliberate menu row. */
  body:has(.language-switch button.active:not([data-language="zh"])) .header-main {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(63px, auto) 49px;
  }
  body:has(.language-switch button.active:not([data-language="zh"])) .mobile-menu-toggle {
    grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: flex-start;
    min-height: 45px; border: 0; border-top: 1px solid #ede3d5; border-radius: 0;
    padding: 8px 13px;
  }
  body:has(.language-switch button.active:not([data-language="zh"])) .account-area {
    grid-column: 2; grid-row: 1; justify-self: end;
  }
  body:has(.language-switch button.active:not([data-language="zh"])) .main-nav {
    top: calc(100% + 1px); left: max(25px, calc((100vw - 1510px) / 2 + 25px));
    right: max(25px, calc((100vw - 1510px) / 2 + 25px));
    width: auto; max-width: none; margin: 0;
  }
}
@media (max-width: 640px) {
  .brand-link, .footer-lockup { gap: 7px; }
  .aj-wordmark strong { font-size: 16px; }
  .aj-wordmark small { font-size: 7px; }
  .brand-divider { height: 25px; }
  .brand-link .brand-owner-logo { width: 75px; height: 38px; }
}

/* Offline learning games use the same warm paper palette as the public site. */
.study-shell { background: #f5efe5; }
.study-bar { background: #fffdfa; border-bottom-color: #e7dac8; }
.study-brand { color: #352a21; }
.study-meta { color: #775c42; }
.study-progress, .study-progress::-webkit-progress-bar { background: #e9dcc7; }
.study-progress::-webkit-progress-value { background: linear-gradient(90deg,#bd3429,#e7ab32); }
.study-progress::-moz-progress-bar { background: #bd3429; }
.study-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  background: linear-gradient(100deg,rgba(248,243,234,.94),rgba(248,243,234,.80)),url('/assets/vocabulary-desk.png') center 55% / cover;
}
.study-stage > .flashcard, .study-stage > .study-finished { flex: none; margin: auto; }
.flashcard {
  width: min(720px,100%);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 15px;
  padding: 0 50px 36px;
  overflow: hidden;
  border: 1px solid #e4d6be;
  border-radius: 22px;
  background: #fffdfa;
  box-shadow: 0 10px 0 #e8d9c3,0 23px 54px rgba(53,37,20,.18);
  text-align: center;
  cursor: default;
}
.flashcard[data-flip-card] { cursor: pointer; }
.flashcard::before {
  position: absolute;
  inset: 0 0 auto;
  width: auto;
  height: 80px;
  border-radius: 21px 21px 0 0;
  background: linear-gradient(180deg,rgba(247,231,202,.85),rgba(255,253,250,0));
  pointer-events: none;
}
.flashcard::after {
  content: "";
  position: absolute;
  top: 0;
  left: 29px;
  width: 28px;
  height: 44px;
  background: #c3372d;
  clip-path: polygon(0 0,100% 0,100% 100%,50% 78%,0 100%);
  box-shadow: 0 4px 8px rgba(94,24,18,.2);
}
.flashcard:hover, .flashcard:focus-within { box-shadow: 0 10px 0 #e8d9c3,0 23px 54px rgba(53,37,20,.18); }
.flashcard[data-flip-card]:focus-visible { outline: 3px solid #b93d33; outline-offset: 3px; }
.flashcard:hover h2, .flashcard:focus-within h2 { color: #2f2923; }
.card-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 80px; padding-left: 44px; border-bottom: 1px solid #eee4d6; }
.card-label { position: static; color: #a2322a; font-size: 11px; letter-spacing: .15em; }
.card-sequence { color: #9a856a; font-size: 12px; font-weight: 750; letter-spacing: .12em; white-space: nowrap; }
.card-illustration { width: min(260px,70%); height: 145px; margin: 2px auto -3px; object-fit: contain; pointer-events: none; }
.card-word { position: relative; z-index: 1; min-width: 0; }
.word-gender { display: inline-block; margin: 0 0 2px; padding: 1px 10px; border-radius: 99px; background: #fff0df; color: #a43229; font-size: 18px; }
.flashcard h2 { margin: 4px 0; color: #2f2923; font-size: clamp(42px,7vw,72px); overflow-wrap: anywhere; }
.flashcard .phonetic { color: #86796a; font-size: 14px; }
.card-speak { align-self: center; border-color: #dfceb4 !important; background: #fffaf2 !important; color: #6b3f2c !important; }
.card-speak:hover, .card-speak:focus-visible { background: #f8ead5 !important; border-color: #b88943 !important; }
.card-turn { align-self: center; width: min(390px,100%); min-height: 52px; margin: auto 0 0; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid #d6b57a; border-radius: 12px; background: #fff1d6; color: #713b23; font-weight: 800; box-shadow: 0 4px 0 #ecd5ad; }
.card-turn span { color: #ae3529; font-size: 22px; line-height: 1; }
.card-turn:hover, .card-turn:focus-visible { background: #ffe7b9; border-color: #ad693b; color: #7d2c23; }
.card-answer { width: 100%; margin-top: 9px; padding-top: 22px; border-top: 1px solid #eadcc6; }
.card-answer > strong { color: #a83229; font-size: clamp(21px,3vw,28px); overflow-wrap: anywhere; }
.grammar-row span { border-radius: 99px; background: #f8edda; color: #654c37; font-size: 12px; }
.example-de { color: #392e25; }
.example-zh { color: #70665c; }
.card-picture { width: min(390px,100%); margin: 21px auto 0; padding: 11px; border: 1px solid #e9ddca; border-radius: 14px; background: #faf5ec; }
.card-image { display: block; max-width: 100%; max-height: 220px; margin: auto; border-radius: 8px; object-fit: contain; }
.image-credit { margin-top: 10px; }
.memory-guide { margin-top: 21px; border-left: 4px solid #d9a73e; }
.study-actions { background: #fffdfa; border-top-color: #e7dac8; }
.rating-button { border-radius: 11px; border-color: #e0d3c0; background: #fffdfa; color: #43372c; box-shadow: 0 3px 0 #ebdfd0; }
.rating-button.again { background: #fff3f0; border-color: #ebc8c3; }
.rating-button.good { background: #44382d; border-color: #44382d; color: white; }
.rating-button.good small { color: #efe4d5; }
.rating-button:not(.good):hover { background: #fff1d6; border-color: #be8c46; color: #633922; }
.rating-button.good:hover { background: #6b4430; }
.study-finished { width: min(520px,100%); padding: 36px 24px 40px; border: 1px solid #e2d3bb; border-radius: 22px; background: #fffdfa; box-shadow: var(--shadow); }
.study-finished .finish-mark { width: 62px; height: 62px; margin-bottom: 0; border-radius: 50%; background: #f2c850; color: #51331e; font-size: 34px; }
.study-finished img { display: block; width: 190px; height: 115px; margin: 10px auto; object-fit: contain; }
.study-finished h2 { font-size: clamp(26px,4vw,38px); }


@media (max-width: 900px) {
  .study-stage { padding: 16px; }
  .flashcard { min-height: 460px; padding: 0 22px 24px; }
  .card-topline { min-height: 66px; padding-left: 42px; }
  .flashcard::after { left: 22px; width: 24px; height: 36px; }
  .card-illustration { height: 128px; }
}
@media (max-width: 480px) {
  .study-bar { min-height: 60px; }
  .study-brand img { width: 47px; height: 31px; }
  .study-meta { font-size: 11px; }
  .study-stage { padding: 12px; }
  .flashcard { width: 100%; min-height: 455px; gap: 10px; border-radius: 16px; padding: 0 17px 23px; }
  .flashcard::before { border-radius: 15px 15px 0 0; }
  .flashcard::after { left: 19px; }
  .card-topline { padding-left: 40px; }
  .card-illustration { height: 116px; }
  .flashcard h2 { font-size: clamp(37px,10vw,54px); }
  .card-turn { min-height: 48px; margin-top: 13px; font-size: 13px; }
  .card-answer { padding-top: 17px; }
  .study-actions { min-height: 78px; gap: 7px; padding: 10px; }
  .rating-button { min-height: 49px; font-size: 12px; }
  .rating-button small { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
}

/* Keep account controls on the same typographic scale as the navigation. */
.site-header .account-area { gap: 8px; font-size: 13px; line-height: 1.25; }
.site-header .account-area .language-switch {
  align-items: center; min-height: 34px; padding: 3px;
  border: 1px solid #e8dfd0; border-radius: 999px; background: #f8f4ed;
}
.site-header .account-area .language-switch button {
  min-height: 26px; padding: 4px 8px; border-radius: 999px;
  font-family: inherit; font-size: 12px; font-weight: 650; line-height: 1.2;
}
.site-header .account-area .role-chip {
  min-height: 30px; padding: 5px 10px; background: #fbf1df;
  color: #604929; font-size: 12px; font-weight: 650;
}
.site-header .account-area .account-name { max-width: 120px; font-size: 13px; font-weight: 650; }
.site-header .account-area .button.small {
  min-height: 34px; padding: 6px 12px; border-radius: 999px;
  font-family: inherit; font-size: 12px; font-weight: 650; line-height: 1.2;
}

/* Quiet, local feedback belongs beside the plan; errors remain visible globally. */
.plan-card .plan-feedback {
  margin: 10px 0 0; padding: 8px 11px; border: 1px solid #e4d4b4;
  border-radius: 8px; background: #fffaf0; color: #654a24;
  font-size: 12px; font-weight: 650; line-height: 1.45;
}
.plan-card .plan-feedback:empty { display: none; }
.plan-card .plan-feedback::before { content: '✓'; margin-right: 6px; color: #368060; }
#toast-root { width: min(360px, calc(100vw - 36px)); right: 18px; bottom: 18px; }
.toast {
  padding: 12px 15px; border: 1px solid #e5dacb; border-left: 3px solid #d5ab63;
  border-radius: 10px; background: #fffdfa; color: #3e372d;
  box-shadow: 0 12px 34px rgba(48,36,21,.14); font-size: 13px; line-height: 1.5;
}
.toast.bad { border-left-color: var(--red); background: #fff7f4; color: #6b3028; }
.service-issue button {
  border: 1px solid #d8c3a9; border-radius: 7px; background: white;
  color: #5c3d29;
}

/* Learning copy stays readable when six stats and three books share a row. */
.learning-page .stat-card small { font-size: 12px; }
.learning-page .stat-card span { font-size: 12px; line-height: 1.45; }
.learning-page .panel-head p, .learning-page .plan-card p:not(.plan-feedback) { font-size: 13px; line-height: 1.5; }
.learning-page .book-card h3 { font-size: 15px; }
.learning-page .book-card p { font-size: 12px; line-height: 1.5; }
.learning-page .book-card b { font-size: 11px; }
.learning-page .book-card .level-chip { font-size: 11px; }
.learning-page .search-box .button { white-space: nowrap; min-width: 76px; }

@media (max-width: 640px) {
  .site-header .account-area { gap: 4px; }
  .site-header .account-area .language-switch button { padding: 4px 5px; font-size: 11px; }
  .site-header .account-area .button.small { min-height: 32px; padding: 5px 8px; font-size: 11px; }
  #toast-root { width: auto; right: 12px; left: 12px; bottom: 12px; }
}
@media (max-width: 380px) {
  .site-header .account-area .language-switch button { padding-inline: 3px; font-size: 10px; }
  .site-header .account-area .button.small { padding-inline: 6px; }
}

/* Customer editorial redesign, 2026-10: public pages and shared navigation. */
:root {
  --red: #ae382f;
  --yellow: #dfb857;
  --canvas: #faf8f4;
  --pale: #f7f0e5;
  --line: #e7dfd4;
}
.site-header { background: rgba(252,250,247,.98); box-shadow: 0 6px 20px rgba(49,38,26,.035); }
.site-header .brand-link { border-radius: 3px; }
.site-header .language-switch button.active { color: #fff; background: #3b3129; }
.site-header .account-area .button.small { border-radius: 5px; }
.site-header .account-area .button.primary { background: var(--red); color: #fff; }
.site-header .account-area .button.primary:hover { background: #8d2923; }
.site-footer { background: #fffdfa; color: #594f45; }
.site-footer .footer-col h3 { color: #2d2823; }
.site-footer .footer-col a:hover, .site-footer .footer-col a:focus-visible { color: var(--red); }
.site-footer .footer-bottom { border-top-color: #e7dfd4; color: #6b6258; }
.site-footer .footer-brand p, .site-footer .footer-col p, .site-footer .footer-col a { color: #665d53; }
.site-footer [data-footer-description] { max-width: 36ch; line-height: 1.7; text-wrap: pretty; overflow-wrap: anywhere; }
.site-footer [data-footer-description] > span { display: block; }
.site-footer [data-footer-copy] { margin-top: .2em; }
.site-footer .footer-brand img { background: transparent; }

/* Message actions stay together so long messages cannot squeeze Save below Status. */
.admin-content #admin-message-section [data-message-row] > td:last-child {
  min-width: 190px;
}
.admin-content #admin-message-section .message-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  white-space: nowrap;
}
.admin-content #admin-message-section [data-message-status] { max-width: 118px; }
.admin-content #admin-message-section [data-message-save] {
  flex: none;
}
.site-shell .button.primary { background: #ae382f; color: #fff; }
.site-shell .button.primary:hover { background: #8c2c26; }
.site-shell .button.light { border-color: #d8cabb; color: #3d352c; }
.site-shell .button.light:hover { border-color: #a98e6c; background: #fffaf2; }
.site-shell .eyebrow { color: #8e4c32; letter-spacing: .15em; }
.site-shell .eyebrow::before { height: 2px; background: var(--yellow); }
.main-nav .nav-label { display: grid; justify-items: center; align-content: center; width: 100%; min-width: 0; line-height: 1.18; }
.main-nav .nav-primary, .main-nav .nav-secondary {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.main-nav .nav-primary { font-size: 12px; font-weight: 750; }
.main-nav .nav-secondary { margin-top: 3px; color: #796f63; font-size: 10px; font-weight: 550; }
.main-nav .nav-link:hover .nav-secondary, .main-nav .nav-link.active .nav-secondary { color: #86554b; }

@media (min-width: 901px) {
  .site-header .header-main,
  body:has(.language-switch button.active:not([data-language="zh"])) .site-header .header-main {
    max-width: 1480px; padding-inline: 28px;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-rows: minmax(68px,auto) 57px;
  }
  .site-header .mobile-menu-toggle,
  body:has(.language-switch button.active:not([data-language="zh"])) .site-header .mobile-menu-toggle { display: none; }
  .site-header .account-area,
  body:has(.language-switch button.active:not([data-language="zh"])) .site-header .account-area {
    grid-column: 2; grid-row: 1; max-width: none; flex-wrap: nowrap;
  }
  .site-header .main-nav,
  body:has(.language-switch button.active:not([data-language="zh"])) .site-header .main-nav {
    position: static; display: grid; grid-column: 1 / -1; grid-row: 2;
    grid-template-columns: repeat(9,minmax(0,1fr)); width: 100%;
    max-width: none; min-width: 0; margin: 0; gap: 0;
    overflow: visible; border-top: 1px solid #e9e1d6;
  }
  .site-header .main-nav:has([data-route="#/admin"]),
  body:has(.language-switch button.active:not([data-language="zh"])) .site-header .main-nav:has([data-route="#/admin"]) {
    grid-template-columns: repeat(10,minmax(0,1fr));
  }
  .site-header .main-nav .nav-link,
  body:has(.language-switch button.active:not([data-language="zh"])) .site-header .main-nav .nav-link {
    display: flex; justify-content: center; align-items: center;
    min-height: 56px; padding: 7px 5px; border-radius: 0;
    color: #423b33; font-size: clamp(11px,.9vw,14px); font-weight: 650;
    text-align: center; line-height: 1.22; white-space: normal;
  }
  .site-header .main-nav .nav-link:hover,
  .site-header .main-nav .nav-link:focus-visible,
  .site-header .main-nav .nav-link.active { color: #97352e; background: #fcf5ea; }
  .site-header .main-nav .nav-link.active::after {
    left: 12px; right: 12px; bottom: 0; height: 3px; background: #b43930;
  }
}

.founder-hero, .home-video-feature, .method-preview {
  width: min(1330px,calc(100% - 60px)); max-width: 1330px;
  min-height: 425px; margin: 26px auto 0;
  overflow: hidden; border: 1px solid #e6ded2;
  border-radius: 4px; background: #f9f6f1; box-shadow: 0 7px 24px rgba(44,34,24,.045);
}
.founder-hero { grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); }
.founder-hero-copy { padding: 42px clamp(28px,4.3vw,64px); }
.founder-hero-kicker { color: #765e48; }
.founder-hero h1 { margin: 17px 0 18px; font-size: clamp(38px,3.7vw,58px); line-height: 1.13; }
.founder-hero-headline { color: #a7372e; }
.founder-hero-intro { font-size: 15px; line-height: 1.75; }
.founder-hero-coverage { background: transparent; border-left: 2px solid #b99059; }
.founder-hero-actions .button { border-radius: 4px; }
.founder-hero-media { position: relative; min-height: 425px; padding: 15px; background: #e9e1d6; }
.founder-hero-media img {
  width: 100%; height: 100%; max-width: none; max-height: none;
  border-radius: 2px; object-fit: cover; object-position: 32% center; box-shadow: none;
}
.founder-hero-media.founder-hero-media-poster img {
  width: auto; height: clamp(360px,54vh,500px); max-width: 100%; max-height: none;
  object-fit: contain; object-position: center;
}
.founder-hero-media-poster .founder-photo-caption { display: none; }
.founder-photo-caption {
  position: absolute; right: 34px; bottom: 33px; left: 34px; z-index: 1;
  padding: 12px 17px; border-left: 3px solid #a73830;
  background: rgba(255,253,250,.95); color: #312b26;
}
.founder-photo-caption strong, .founder-photo-caption small { display: block; }
.founder-photo-caption strong { font-size: 15px; }
.founder-photo-caption small { margin-top: 3px; color: #776557; font-size: 11px; }
.founder-hero-media .site-image-credit { z-index: 2; }
.home-video-feature { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.home-video-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 46px clamp(28px,4.2vw,62px); }
.home-video-copy h2 {
  max-width: 580px; margin: 16px 0; color: #302a25;
  font-family: "Noto Serif CJK SC","Source Han Serif SC","Songti SC",SimSun,Georgia,serif;
  font-size: clamp(32px,3.6vw,54px); line-height: 1.2;
}
.home-video-copy h2 .cms-language-second { font-family: "Segoe UI",Arial,sans-serif; font-size: .43em; }
.home-video-copy p { max-width: 560px; color: #645b50; font-size: 16px; line-height: 1.8; }
.home-video-copy .button { margin-top: 10px; border-radius: 4px; }
.home-video-player { position: relative; display: grid; place-items: center; min-height: 425px; background: #ddd2c0; }
.home-video-player video { width: 100%; height: 100%; max-height: 425px; object-fit: contain; background: #181715; }
.home-video-placeholder { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 425px; color: #fff; text-align: center; }
.home-video-placeholder::after { content: ''; position: absolute; inset: 0; background: rgba(27,25,22,.45); }
.home-video-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-video-placeholder > span, .home-video-placeholder > strong { position: relative; z-index: 1; }
.home-video-placeholder .home-video-play { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 16px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; font-size: 24px; }
.home-video-placeholder strong { font-size: 21px; }
.home-video-placeholder > strong + span { margin-top: 6px; font-size: 13px; }
.home-video-placeholder .site-image-credit { position: absolute; z-index: 2; right: 10px; bottom: 10px; max-width: min(72%, 390px); padding: 4px 7px; border-radius: 5px; background: rgba(255,253,247,.92); color: #514535; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; text-align: left; }
.method-preview { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0; padding: 0; }
.method-preview .tower-mini { min-height: 425px; padding: 24px 45px; background: #f0e9dc; }
.method-preview .tower-mini::before { color: rgba(112,72,34,.07); }
.method-preview .tower-layer { height: 52px; color: #332b24; box-shadow: 0 5px 0 rgba(72,55,35,.12); }
.method-preview .tower-layer:nth-of-type(1) { background: #fff0bd; }
.method-preview .tower-layer:nth-of-type(2) { background: #f7d672; }
.method-preview .tower-layer:nth-of-type(3) { background: #eac05a; }
.method-preview .tower-layer:nth-of-type(4) { background: #b78740; color: #24211e; }
.method-preview .tower-layer:nth-of-type(5) { background: #352c26; color: #fff; }
.method-preview .method-copy { align-self: center; padding: 38px clamp(28px,4vw,60px); }
.method-preview .method-copy h2 { font-size: clamp(31px,3.4vw,49px); }
.method-preview .method-copy p { font-size: 15px; }
.method-preview .principle-list { margin: 20px 0; }
.method-preview .principle b { background: #f8ebc8; border-radius: 50%; }
.method-preview .button { border-radius: 4px; }

.about-page .content-panel { border-radius: 4px; box-shadow: 0 5px 20px rgba(52,40,25,.045); }
.about-page .section-index { border-radius: 4px; }
.about-page .section-index a.active { background: #f4d276; }
.about-overview-hero { grid-template-columns: minmax(0,1.03fr) minmax(0,.97fr); min-height: 440px; }
.about-overview-copy { background: #f5ece1; }
.about-overview-copy h2 { font-size: clamp(34px,3.5vw,53px); }
.about-overview-intro p { font-size: 15px; line-height: 1.8; }
.about-overview-photo { min-height: 440px; overflow: hidden; background: #dfd8ce; }
.about-overview-photo::after { display: none; }
.about-overview-below { padding: 44px clamp(28px,5vw,72px) 60px; }
.about-overview-below .editorial-body { max-width: 76ch; margin: auto; }
.about-overview-below .editorial-body p { line-height: 1.9; }
.public-gallery { position: relative; width: 100%; height: 100%; min-height: 350px; margin: 0; overflow: hidden; background: #eee8dc; }
.gallery-stage, .gallery-slide { width: 100%; height: 100%; min-height: inherit; }
.gallery-slide { position: relative; }
.gallery-slide img { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; object-position: center; }
.gallery-slide figcaption {
  position: absolute; bottom: 15px; left: 17px; z-index: 1;
  max-width: calc(100% - 130px); padding: 5px 9px;
  background: rgba(33,29,24,.72); color: #fff; font-size: 11px;
}
.gallery-controls { position: absolute; right: 14px; bottom: 13px; z-index: 2; display: flex; align-items: center; gap: 5px; }
.gallery-controls button { width: 36px; height: 36px; border: 1px solid #ddcdbc; border-radius: 3px; background: rgba(255,253,249,.96); color: #352b24; font-size: 24px; line-height: 1; }
.gallery-controls button:hover, .gallery-controls button:focus-visible { border-color: #a83830; color: #a83830; background: #fff; }
.gallery-controls output { min-width: 36px; padding: 5px; background: rgba(255,253,249,.96); color: #352b24; font-size: 11px; text-align: center; }
.about-detail-founder .founder-story-lead { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.44fr); align-items: start; gap: 28px; margin: 18px 0 26px; }
.about-detail-founder .founder-story-lead .editorial-body { margin: 0; }
.about-detail-founder .public-gallery { min-height: 350px; height: 350px; border: 1px solid #e7dfd3; }
.about-detail-founder .gallery-slide img { object-position: 32% center; }
.about-detail-founder .gallery-slide.poster-slide img { object-fit: contain; object-position: center; background: #eee8dc; }
.founder-videos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin: 24px 0 32px; }
.founder-video-card { min-width: 0; padding: 15px; border: 1px solid #e7dfd3; background: #fcfaf6; }
.founder-video-card h3 { margin: 2px 0 12px; color: #322a25; font-size: 16px; }
.founder-video-card video { display: block; width: 100%; aspect-ratio: 16/9; background: #1d1b19; }
.founder-video-card small { display: block; margin-top: 8px; color: #74675b; }
.founder-video-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; background: #f0e9de; color: #6b5e50; text-align: center; }
.founder-video-empty > span { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid #bea98a; border-radius: 50%; }
.founder-video-empty p { margin: 8px 10px 0; color: inherit; font-size: 12px; }
.method-details { margin-top: 30px; }

@media (max-width: 900px) {
  .founder-hero, .home-video-feature, .method-preview { width: min(100% - 32px,760px); }
  .founder-hero { grid-template-columns: 1fr; }
  .founder-hero-media { order: 0; min-height: 340px; padding: 12px; }
  .founder-hero-media img { width: 100%; height: 340px; max-width: none; max-height: none; object-fit: cover; object-position: 32% center; }
  .founder-hero-media.founder-hero-media-poster img { width: auto; height: min(450px,55vh); max-width: 100%; object-fit: contain; object-position: center; }
  .home-video-feature, .method-preview { grid-template-columns: 1fr; }
  .home-video-player, .home-video-placeholder { min-height: 300px; }
  .home-video-player video { max-height: none; aspect-ratio: 16/9; }
  .method-preview .tower-mini { min-height: 330px; }
  .about-detail-founder .founder-story-lead { grid-template-columns: minmax(0,1fr) minmax(210px,.55fr); }
}
@media (max-width: 640px) {
  .founder-hero, .home-video-feature, .method-preview { width: calc(100% - 20px); min-height: 0; margin-top: 13px; }
  .founder-hero-copy { padding: 28px 23px; }
  .founder-hero h1 { font-size: clamp(32px,8vw,45px); }
  .founder-hero-media { padding: 0; }
  .founder-hero-media img { height: 270px; }
  .founder-hero-media.founder-hero-media-poster img { width: min(78%,260px); height: auto; max-height: 390px; margin: 12px auto; }
  .founder-photo-caption { right: 14px; bottom: 14px; left: 14px; padding: 8px 11px; }
  .founder-photo-caption strong { font-size: 12px; }
  .founder-photo-caption small { font-size: 9px; }
  .home-video-copy { padding: 28px 22px; }
  .home-video-copy h2 { font-size: clamp(29px,7.5vw,39px); }
  .home-video-copy p { font-size: 14px; }
  .home-video-player, .home-video-placeholder { min-height: 230px; }
  .method-preview .tower-mini { min-height: 310px; padding: 22px; }
  .method-preview .method-copy { padding: 29px 23px; }
  .about-overview-hero { display: block; }
  .about-overview-photo, .about-overview-photo .public-gallery { min-height: 260px; height: 260px; }
  .about-overview-below { padding: 30px 22px 42px; }
  .about-detail-founder .founder-story-lead { grid-template-columns: 1fr; }
  .about-detail-founder .public-gallery { width: 100%; min-height: 280px; height: 280px; }
  .founder-videos { grid-template-columns: 1fr; }
  .gallery-slide figcaption { max-width: calc(100% - 120px); font-size: 10px; }
}

@media (max-width: 1100px) {
}
@media (max-width: 760px) {
}
@media (max-width: 540px) {
}
@media (prefers-reduced-motion: reduce) {
}
.import-preview-pages,
.site-gallery-admin-item,
.site-video-admin-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.import-preview-pages { flex-wrap: wrap; margin: 12px 0; }
.preview-wrap { max-height: 440px; overflow: auto; }
.site-media-extras { margin-top: 28px; display: grid; gap: 18px; }
.site-media-extra { border-top: 1px solid var(--line); padding-top: 18px; }
.site-media-extra h3 small { font-size: .7em; color: var(--muted); }
.site-media-extra details { margin-top: 12px; }
.site-media-extra summary { cursor: pointer; color: var(--navy); font-weight: 700; }
.site-gallery-admin-list { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.site-gallery-admin-item,
.site-video-admin-item { padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.site-gallery-admin-item img { width: 76px; height: 60px; object-fit: cover; border-radius: 6px; }
.site-gallery-admin-item div,
.site-video-admin-item div { flex: 1; min-width: 0; }
.site-gallery-admin-item small,
.site-video-admin-item small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.site-video-admin-item video { width: 145px; max-width: 30vw; aspect-ratio: 16 / 9; background: #1e2329; }
.wordbook-cover-preview { display: block; max-width: 260px; max-height: 190px; object-fit: contain; margin-bottom: 12px; }
.legacy-image-list { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.message-full-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60vh; overflow: auto; font-size: 1rem; line-height: 1.7; }
#admin-message-section [data-message-read] { display: block; margin-top: 6px; }
