/* ============================================================
   Mehmet Kissacik — Website V2
   Professional educator dossier
   Light, calm, navy-accented. Serif headings / sans body.
   ============================================================ */

:root {
  /* Palette — cool monochrome */
  --page:        #fbfcfe;   /* crisp near-white page */
  --page-tint:   #f4f7fb;   /* cool blue-gray alt band / chips */
  --card:        #ffffff;
  --card-soft:   #fbfcfe;

  --ink:         #0f2340;   /* primary navy text */
  --ink-2:       #20334f;   /* secondary text */
  --muted:       #5f6b7c;   /* accessible secondary text */
  --muted-2:     #6f7a8a;

  --navy:        #0c2344;   /* primary dark fill (buttons, logo, icons) */
  --navy-deep:   #07182f;   /* deepest navy — hover */
  --navy-soft:   #25466f;
  --link:        #183e70;   /* "view all" links */

  --bronze:      #8a671d;   /* eyebrow accent */
  --bronze-soft: #91a0b4;   /* bullet & timeline dots */
  --sage:        #91a0b4;

  --line:        #dfe5ee;   /* borders */
  --line-2:      #edf1f6;
  --line-strong: #cad3df;

  --ok:          #2F7D58;
  --warn:        #B07A2E;
  --lock:        #94785A;

  /* Type */
  --serif: "Source Serif 4", "Newsreader", Georgia, serif;
  --sans:  "Public Sans", system-ui, -apple-system, sans-serif;

  /* Shape */
  --r-sm: 6px;
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 18px;

  --shadow-1: 0 1px 2px rgba(15, 35, 64, 0.04), 0 1px 3px rgba(15, 35, 64, 0.05);
  --shadow-2: 0 2px 7px rgba(15, 35, 64, 0.05), 0 8px 22px rgba(15, 35, 64, 0.06);
  --shadow-3: 0 8px 30px rgba(15, 35, 64, 0.13);

  --maxw: 1540px;
  --gut:  34px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--navy); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* ---------------- Typography helpers ---------------- */
.serif { font-family: var(--serif); }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bronze);
}
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}

h1, h2, h3, h4 { font-weight: 600; margin: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--navy-soft); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn-block { width: 100%; justify-content: center; padding: 15px 20px; }

.link-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--link);
  transition: gap .18s var(--ease), color .18s;
}
.link-all svg { width: 14px; height: 14px; }
.link-all:hover { gap: 9px; color: var(--navy); }

.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--link);
  font-weight: 500;
}
.ext-link svg { width: 12px; height: 12px; opacity: .8; }
.ext-link:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- Tags / chips ---------------- */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--page-tint);
  border: 1px solid var(--line-2);
  padding: 4px 10px;
  border-radius: 100px;
  line-height: 1.3;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 252, 254, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 58px;
}
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.02em;
  color: var(--navy);
  display: inline-flex;
  align-items: baseline;
}
.brand-mark .dot { color: var(--bronze); }
.brand-url {
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--line-strong);
  padding-left: 14px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 auto;
}
.nav-links a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color .18s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--bronze);
  transition: width .22s var(--ease);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 31px;
  padding: 0 13px;
  border: 1px solid var(--navy);
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s, background .18s;
}
.nav-cv-btn:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.nav-toggle { display: none; background: none; border: none; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--card);
}
.lang-switcher button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
}
.lang-switcher button.active {
  background: var(--navy);
  color: #fff;
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; }
.band { padding: 24px 0 32px; }
.band-tint { background: var(--page-tint); border-block: 1px solid var(--line-2); }

.sec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.sec-head-left { display: flex; gap: 12px; }
.sec-icon {
  flex-shrink: 0;
  width: 27px; height: 27px;
  color: var(--navy);
  margin-top: 2px;
}
.sec-icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.sec-title {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.sec-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

.two-col {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 22px;
  align-items: start;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 28px 0 20px; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.18fr 0.94fr;
  gap: 30px;
  align-items: start;
}

/* -- Intro column -- */
.intro-eyebrow { margin-bottom: 10px; }
.intro-namerow { display: flex; align-items: center; gap: 14px; }
.intro-namegroup { min-width: 0; }
.intro-name-line { display: flex; align-items: center; gap: 9px; }
.intro-name {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.name-pronunciation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  color: var(--navy);
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: color .18s, border-color .18s, background .18s, transform .18s var(--ease);
}
.name-pronunciation svg { width: 16px; height: 16px; }
.name-pronunciation:hover,
.name-pronunciation:focus-visible {
  color: var(--bronze-dark);
  border-color: var(--bronze);
  background: var(--page-tint);
  transform: translateY(-1px);
}
.name-pronunciation.is-speaking { color: #fff; border-color: var(--navy); background: var(--navy); }
.name-pronunciation-guide {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  transition: max-height .2s var(--ease), margin-top .2s var(--ease), opacity .2s;
}
.name-pronunciation-guide.is-visible { max-height: 22px; margin-top: 3px; opacity: 1; }
.headshot {
  flex-shrink: 0;
  width: 58px; height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow-2);
}
.headshot image-slot, .headshot img { width: 100%; height: 100%; }
.intro-lede {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 12px 0 10px;
  max-width: 34ch;
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 0;
}

.hero-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}
.personal-info-card .ccard-head { padding: 11px 12px; }
.personal-info-logo { color: var(--navy); }
.personal-info-card .ccard-name { font-size: 14px; }
.personal-info-card .ccard-meta { font-size: 10px; }
.personal-info-inner { padding: 0 12px 12px; border-top: 1px solid var(--line-2); }
.personal-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 10px;
}
.personal-info-grid span { min-width: 0; }
.personal-info-grid em,
.personal-info-grid b { display: block; font-style: normal; }
.personal-info-grid em {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
}
.personal-info-grid b {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}
.personal-info-request {
  width: 100%; margin-top: 10px; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--page-tint); color: var(--navy);
  font: 600 10.5px var(--sans); cursor: pointer;
}
.personal-info-request:hover { border-color: var(--navy-soft); background: var(--card); }
.info-choice-groups { display: grid; gap: 12px; max-height: 330px; overflow: auto; padding-right: 4px; }
.info-choice-group { border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.info-choice-group h4 { padding: 9px 11px; background: var(--page-tint); color: var(--navy); font-size: 12px; text-transform: capitalize; }
.info-choice-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 10px; }
.info-choice-list .check { margin: 0; padding: 7px; border: 1px solid var(--line-2); border-radius: 6px; }
.info-choice-list .sensitive { background: #fffaf2; }
.info-loading { color: var(--muted); font-size: 13px; padding: 14px; text-align: center; }
.info-share-scrim { padding-top: 34px; }
.info-share-modal { max-height: calc(100vh - 68px); display: flex; flex-direction: column; overflow: hidden; }
.info-share-modal .modal-body { overflow: auto; }
.info-share-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 24px; border-bottom: 1px solid var(--line-2); background: var(--page-tint); }
.info-language-switch { display: inline-flex; margin-right: auto; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.info-language-switch button { border: 0; border-right: 1px solid var(--line); background: var(--card); padding: 7px 10px; color: var(--muted); cursor: pointer; }
.info-language-switch button:last-child { border: 0; }
.info-language-switch button.active { background: var(--navy); color: #fff; }
.info-share-content { display: grid; gap: 18px; }
.info-share-group { display: grid; gap: 8px; }
.info-share-group h4 { color: var(--bronze); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.info-answer { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); padding: 12px 48px 12px 13px; }
.info-answer b { display: block; margin-bottom: 4px; color: var(--navy); font-size: 12px; }
.info-answer p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.info-copy-one { position: absolute; top: 9px; right: 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--page); color: var(--muted); padding: 5px 7px; font-size: 10px; cursor: pointer; }
.info-result-code { display: grid; gap: 7px; }
.info-result-code strong { color: var(--navy); font-size: 19px; letter-spacing: .05em; }
@media (max-width:680px) { .info-choice-list { grid-template-columns: 1fr; } .info-share-toolbar { flex-wrap: wrap; padding: 10px 14px; } }

/* Recruiter information admin */
.info-admin-card { width: min(100%, 1500px); }
.info-admin-shell { min-height: calc(100vh - 80px); background: #f5f7fa; padding: 22px; }
.info-admin-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:16px; }
.info-admin-head h1 { font-family:var(--serif); color:var(--navy); font-size:28px; }
.info-admin-head p { color:var(--muted); font-size:13px; }
.info-admin-head nav { display:flex; flex-wrap:wrap; gap:7px; }
.info-admin-grid { display:grid; grid-template-columns:minmax(360px,.8fr) minmax(480px,1.2fr); gap:16px; align-items:start; }
.info-fields-card { grid-column:1/-1; }
.info-admin-form,.info-admin-list { display:grid; gap:10px; }
.info-admin-checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; max-height:310px; overflow:auto; }
.info-admin-checks .check { margin:0; padding:7px; border:1px solid var(--line-2); border-radius:6px; align-items:flex-start; }
.info-admin-checks .check.sensitive { background:#fffaf2; }
.info-admin-checks b,.info-admin-checks small { display:block; }
.info-admin-checks small { color:var(--muted); font-size:10px; text-transform:capitalize; }
.info-field-edit textarea { min-height:100px; }
.info-inline-options,.info-admin-actions { display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
.info-inline-options label { font-size:12px; color:var(--muted); }
.info-link-items { display:grid; gap:7px; }
.info-link-item { display:grid; grid-template-columns:minmax(200px,1fr) 110px minmax(160px,.7fr); gap:8px; padding:9px; border:1px solid var(--line-2); border-radius:var(--r-sm); align-items:start; }
.info-link-item b,.info-link-item small { display:block; }
.info-link-item small { color:var(--muted); font-size:10.5px; line-height:1.35; margin-top:2px; }
.info-link-item select,.info-link-item textarea { width:100%; border:1px solid var(--line); border-radius:5px; padding:6px; font:11px var(--sans); }
.info-link-item textarea { min-height:54px; margin-top:5px; }
.info-status { padding:4px 7px; border-radius:999px; font-size:10px; text-transform:uppercase; }
.info-status.active { background:#e7f5ed; color:#26724c; }.info-status.pending { background:#fff3d8; color:#855f13; }.info-status.inactive { background:#eee; color:#666; }
.info-requester { border-left:3px solid var(--bronze); padding:8px 10px; background:var(--page-tint); font-size:12px; color:var(--muted); line-height:1.5; }
.info-add-fields summary { cursor:pointer; color:var(--navy); font-size:12px; margin-bottom:8px; }
.admin-error { color:#b3402f; font-size:12.5px; margin-bottom:12px; }
@media(max-width:900px){.info-admin-grid{grid-template-columns:1fr}.info-fields-card{grid-column:auto}.info-admin-head{flex-direction:column}.info-link-item{grid-template-columns:1fr}.info-admin-checks{grid-template-columns:1fr}}
.badge { text-align: left; }
.badge-ic {
  width: 28px; height: 28px;
  color: var(--navy);
  margin-bottom: 8px;
}
.badge-ic svg { width: 100%; height: 100%; stroke-width: 1.3; }
.badge-label {
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 500;
}

/* -- Video column -- */
.video-col { padding-top: 0; }
.video-frame {
  position: relative;
  width: var(--intro-player-width, 88%);
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-3);
  background: #11151c;
  aspect-ratio: 16 / 9;
  transition: width .25s var(--ease), aspect-ratio .25s var(--ease);
}
.video-frame image-slot { width: 100%; height: 100%; }
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform-origin: var(--intro-poster-x, 50%) var(--intro-poster-y, 50%);
  transform: scale(var(--intro-poster-scale, 1));
  background: #11151c;
  z-index: 1;
}
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  transition: transform .2s var(--ease), background .2s;
  z-index: 2;
}
.video-play svg { width: 26px; height: 26px; color: var(--navy); margin-left: 3px; }
.video-play:hover { transform: scale(1.07); background: #fff; }
.video-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(10,12,16,0.78));
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  z-index: 2;
}
.video-bar .vb-ic { width: 16px; height: 16px; opacity: .9; }
.video-bar .vb-time { font-variant-numeric: tabular-nums; }
.video-bar .vb-track { flex: 1; height: 3px; background: rgba(255,255,255,0.3); border-radius: 2px; }
.video-bar .vb-track i { display: block; width: 4%; height: 100%; background: #fff; border-radius: 2px; }
.video-bar .vb-right { display: flex; gap: 12px; align-items: center; }

/* Real video element */
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform-origin: var(--intro-video-x, 50%) var(--intro-video-y, 50%);
  transform: scale(var(--intro-video-scale, 1));
  background: #11151c;
}
.video-frame.playing .video-poster { opacity: 0; pointer-events: none; }
.video-frame.playing .video-play { opacity: 0; pointer-events: none; }
.video-frame.playing .video-bar { opacity: 0; pointer-events: none; }
.video-play { transition: transform .2s var(--ease), background .2s, opacity .25s; }

/* ============================================================
   POLISHED MEDIA PLACEHOLDERS (EdTech / Timeline)
   ============================================================ */
.media-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: rgba(255, 255, 255, 0.94);
}
.et-shot .media-ph, .tl-shot .media-ph { position: relative; }
.media-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.14), transparent 42%),
    radial-gradient(circle at 14% 88%, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}
.media-ph.v-bronze { background: linear-gradient(135deg, var(--bronze), #8a5f24); }
.media-ph.v-sage   { background: linear-gradient(135deg, var(--sage), #3e4f2f); }
.media-ph.v-navy   { background: linear-gradient(135deg, var(--navy-soft), var(--navy-deep)); }
.media-ph svg { width: 32px; height: 32px; opacity: 0.95; position: relative; z-index: 1; }
.media-ph .ph-label {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}
.tl-shot .media-ph { gap: 6px; padding: 12px; }
.tl-shot .media-ph svg { width: 24px; height: 24px; }
.tl-shot .media-ph .ph-label { font-size: 12px; }

/* Real photos in EdTech / Timeline media areas */
.et-shot img, .tl-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   AI ASSISTANT PANEL
   ============================================================ */
.ai-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-head { display: flex; align-items: center; gap: 11px; }
.ai-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.ai-title { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.ai-mobile-toggle { display: none; }
.ai-content { min-width: 0; }
.ai-intro { font-size: 11.5px; color: var(--ink-2); line-height: 1.4; margin: -2px 0 0; }
.ai-chips { display: flex; flex-direction: column; gap: 4px; }
.ai-chip {
  text-align: left;
  background: var(--page-tint);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 500;
  transition: background .16s, border-color .16s, transform .16s var(--ease);
}
.ai-chip:hover { background: #fff; border-color: var(--navy-soft); transform: translateX(2px); }
.ai-inputrow {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 3px 3px 3px 10px;
  background: var(--card-soft);
}
.ai-inputrow:focus-within { border-color: var(--navy-soft); box-shadow: 0 0 0 3px rgba(46,68,112,0.08); }
.ai-inputrow input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink);
  outline: none;
}
.ai-send {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  border: none;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .16s;
}
.ai-send svg { width: 16px; height: 16px; }
.ai-send:hover { background: var(--navy-deep); }

.ai-answer {
  background: var(--page-tint);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
}
.ai-answer .ai-ans-head { display: flex; align-items: center; gap: 7px; color: var(--bronze); margin-bottom: 7px; }
.ai-answer .ai-ans-head svg { width: 15px; height: 15px; }
.ai-answer .ai-ans-head span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ai-main-answer { margin: 0 0 8px; color: var(--ink); font-weight: 600; }
.ai-bullets {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
}
.ai-bullets li { padding-left: 2px; }
.ai-sources {
  margin-top: 11px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-sources span {
  font-size: 10px;
  color: var(--muted-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.ai-source {
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 600;
}
.ai-source:hover { border-color: var(--navy-soft); color: var(--navy); }
.ai-actions { display: flex; gap: 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.ai-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--link);
  background: none; border: none; padding: 0;
}
.ai-action svg { width: 14px; height: 14px; }
.ai-action:hover { color: var(--navy); }
.ai-foot {
  display: flex; align-items: center; gap: 6px;
  font-size: 9.5px; color: var(--muted-2);
  margin-top: 2px;
}
.ai-foot svg { width: 13px; height: 13px; }
.ai-typing { font-style: italic; color: var(--muted); }

/* ============================================================
   COLLAPSIBLE CARDS (Experience / Qualifications)
   ============================================================ */
.cards { display: flex; flex-direction: column; gap: 8px; }
.see-more {
  width: 100%;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--link);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 650;
  box-shadow: var(--shadow-1);
  transition: border-color .18s, color .18s, box-shadow .18s, transform .18s var(--ease);
}
.see-more svg {
  width: 15px;
  height: 15px;
  transition: transform .2s var(--ease);
}
.see-more:hover {
  border-color: var(--navy-soft);
  color: var(--navy);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}
.see-more.expanded svg { transform: rotate(180deg); }
.ccard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  transition: box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.ccard.open { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.ccard-head {
  display: grid;
  grid-template-columns: max-content 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 14px 16px;
  cursor: pointer;
}
.ccard-logo-link {
  display: block;
  border-radius: 8px;
}
.ccard-logo-link:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}
.ccard-logo {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 14px; font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}
.ccard-logo.sm { width: 36px; height: 36px; }
.ccard-logo.logo-lg {
  width: 44px;
  height: 44px;
}
.ccard-logo.logo-img {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
.ccard-logo.logo-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ccard-logo.logo-wide {
  width: 62px;
}
.ccard-logo.sm.logo-wide {
  width: 56px;
}
.ccard-logo.logo-fill {
  padding: 3px;
}
.ccard-logo.logo-sna {
  padding: 7px;
}
.ccard-logo.logo-sna img {
  height: 100%;
  width: auto;
  margin: 0 auto;
}
.ccard-main { min-width: 0; }
.ccard-name { font-family: var(--serif); font-size: 15px; font-weight: 650; color: var(--ink); }
.ccard-role { font-size: 11.5px; color: var(--ink-2); margin-top: 1px; }
.ccard-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.language-card .ccard-head { cursor: default; }
.language-logo { background: var(--page-tint); color: var(--navy); border: 1px solid var(--line); }
.language-logo svg { width: 22px; height: 22px; }
.language-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.language-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--page-tint);
  font-size: 10.5px;
  line-height: 1;
}
.language-list b { color: var(--ink-2); font-weight: 650; }
.language-list em { color: var(--muted); font-style: normal; }
.ccard-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
}
.ccard-right:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 7px; }
.ccard-arrow {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  color: var(--muted);
  background: var(--page-tint);
  transition: transform .25s var(--ease), background .18s, color .18s;
}
.ccard-arrow svg { width: 15px; height: 15px; }
.ccard.open .ccard-arrow { transform: rotate(180deg); background: var(--navy); color: #fff; }

.ccard-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--ease);
}
.ccard.open .ccard-body { grid-template-rows: 1fr; }
.ccard-body > div { overflow: hidden; }
.ccard-inner {
  padding: 2px 16px 16px;
  border-top: 1px solid var(--line-2);
  margin: 0 0 0;
}
.ccard-inner-pad { padding-top: 14px; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-grid.two { grid-template-columns: 1.1fr 1fr; }
.case-col h3 {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  font-weight: 700;
  margin-bottom: 7px;
}
.case-col p { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; margin: 0; }
.case-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.case-list li {
  font-size: 11.2px; color: var(--ink-2); line-height: 1.42;
  padding-left: 13px; position: relative;
}
.case-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--bronze-soft);
}
.case-list.hl li::before { border-radius: 1px; background: var(--navy-soft); }
.case-sub { margin-top: 12px; }
.case-admin-note {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10.8px;
  line-height: 1.45;
}
.case-admin-note strong {
  color: var(--ink-2);
  font-weight: 700;
}
.case-admin-note button {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--link);
  font-size: 10.8px;
  font-weight: 700;
  padding: 3px 0;
}
.case-admin-note button:hover { color: var(--navy); text-decoration: underline; }

/* ============================================================
   TEACHING PHILOSOPHY
   ============================================================ */
.philosophy-panel,
.philosophy-page {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
}
.philosophy-panel {
  padding: 22px 24px;
}
.philosophy-copy { max-width: none; }
.philosophy-page { max-width: 980px; }
.philosophy-copy p,
.philosophy-page p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.72;
  margin: 0;
}
.philosophy-copy p + p,
.philosophy-page p + p {
  margin-top: 14px;
}
.philosophy-more {
  margin-top: 14px;
}
.philosophy-toggle {
  margin-top: 18px;
}
.philosophy-toggle.expanded svg {
  transform: rotate(180deg);
}
.philosophy-page {
  padding: 30px 34px;
}

/* ============================================================
   EDTECH & AI
   ============================================================ */
.edtech-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.et-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.et-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.et-shot { position: relative; aspect-ratio: 16 / 11; background: #11151c; }
.et-shot image-slot { width: 100%; height: 100%; }
.post-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
img.post-media[data-full-src] { cursor: zoom-in; }
.post-media-empty { background: linear-gradient(135deg, #eef3f9, #dfe5ee); }
.et-live {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 8px; border-radius: 5px;
  z-index: 2;
}
.et-live i { width: 6px; height: 6px; border-radius: 50%; background: #e0533b; box-shadow: 0 0 0 3px rgba(224,83,59,0.25); }
.et-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.et-name { font-family: var(--serif); font-size: 15px; font-weight: 650; }
.et-desc { font-size: 11.5px; color: var(--ink-2); line-height: 1.45; }
.et-body .tag-row { margin-top: auto; }
.et-visit {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--link);
  margin-top: 6px;
}
.et-visit svg { width: 13px; height: 13px; }
.et-visit:hover { color: var(--navy); gap: 8px; }

/* ============================================================
   PORTFOLIO CASE STORIES
   ============================================================ */
.portfolio-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 18px;
  margin-right: calc(var(--gut) * -1);
  scrollbar-width: thin;
}
.portfolio-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.portfolio-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.portfolio-controls button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--navy);
}
.portfolio-controls button:hover { border-color: var(--navy-soft); background: var(--page-tint); }
.portfolio-controls button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.portfolio-controls svg { width: 15px; height: 15px; }
.portfolio-controls span { min-width: 34px; text-align: center; }
.tl-card {
  flex: 0 0 clamp(280px, 32vw, 390px);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.tl-card { color: inherit; text-decoration: none; }
.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.tl-shot { position: relative; aspect-ratio: 16 / 10; background: #d9d3c6; overflow: hidden; }
.tl-shot image-slot { width: 100%; height: 100%; }
.tl-body { padding: 13px 14px 15px; }
.tl-title { font-family: var(--serif); font-size: 16px; font-weight: 650; line-height: 1.22; color: var(--navy); }
.tl-cap { font-size: 12.5px; color: var(--muted); line-height: 1.48; margin: 7px 0 11px; }

/* ============================================================
   DETAIL POST PAGES
   ============================================================ */
.detail-hero { padding-top: 36px; padding-bottom: 24px; }
.detail-hero .intro-name { margin: 8px 0 10px; }
.post-detail-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.post-detail-card {
  display: grid;
  grid-template-columns: minmax(260px, 430px) 1fr;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.post-detail-media {
  min-height: 260px;
  background: #11151c;
}
.post-detail-media .post-media {
  min-height: 100%;
  aspect-ratio: 16 / 11;
}
.post-detail-body {
  padding: 24px 24px 24px 0;
  min-width: 0;
}
.post-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 7px;
}
.post-detail-body h2 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 6px;
}
.post-subtitle {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 650;
  margin: 0 0 10px;
}
.post-summary,
.post-body-copy {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.58;
  margin: 0 0 12px;
}
.post-body-copy { color: var(--muted); }
.post-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.post-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.post-gallery figure {
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--page-tint);
}
.post-gallery .post-media {
  aspect-ratio: 16 / 10;
}
.post-gallery figcaption {
  padding: 8px 10px;
  font-size: 11.5px;
  color: var(--muted);
}

/* Full-resolution portfolio and EdTech media viewer */
body.media-viewer-open { overflow: hidden; }
.media-viewer[hidden] { display: none; }
.media-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 22px;
}
.media-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 15, 28, 0.94);
  backdrop-filter: blur(5px);
}
.media-viewer-shell {
  position: relative;
  width: min(96vw, 1500px);
  height: min(94vh, 1000px);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  grid-template-rows: 44px minmax(0, 1fr);
  color: #fff;
}
.media-viewer-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.media-viewer-count { margin-right: 6px; font-size: 12px; color: rgba(255,255,255,.72); }
.media-viewer-action,
.media-viewer-nav {
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.media-viewer-action { width: 36px; height: 36px; border-radius: 6px; }
.media-viewer-action svg { width: 17px; height: 17px; }
.media-viewer-nav {
  align-self: center;
  width: 42px;
  height: 58px;
  border-radius: 6px;
}
.media-viewer-nav svg { width: 25px; height: 25px; }
.media-viewer-action:hover,
.media-viewer-nav:hover { background: rgba(255,255,255,.18); }
.media-viewer figure {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}
.media-viewer figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}
.media-viewer figcaption {
  min-height: 18px;
  text-align: center;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  line-height: 1.45;
}
.media-viewer-single .media-viewer-nav { visibility: hidden; }

@media (max-width: 640px) {
  .media-viewer { padding: 10px; }
  .media-viewer-shell {
    width: 100%;
    height: 96vh;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }
  .media-viewer-nav { width: 36px; height: 48px; }
}

/* ============================================================
   CONTACT + RECRUITERS
   ============================================================ */
.contact-lede { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.contact-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 14px;
  box-shadow: var(--shadow-1);
  transition: transform .18s var(--ease), box-shadow .18s, border-color .18s;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.contact-ic {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--page-tint);
  display: grid; place-items: center; color: var(--navy); flex-shrink: 0;
}
.contact-ic svg { width: 19px; height: 19px; }
.contact-card.wechat .contact-ic { color: #09b83e; }
.contact-card.whatsapp .contact-ic { color: #25b34c; }
.contact-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.contact-meta { font-size: 12px; color: var(--muted); }
.contact-actions { display: grid; grid-template-columns: minmax(220px, 280px); gap: 12px; }

/* Recruiter panel */
.recruiter { }
.recruiter-lede { font-size: 14px; color: var(--muted); margin: 0 0 18px; max-width: 42ch; }
.access-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  padding: 18px;
  margin-bottom: 16px;
}
.access-box h3 { font-family: var(--serif); font-size: 17px; margin-bottom: 4px; }
.access-box p { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.voucher-row { display: flex; gap: 10px; }
.voucher-row input {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  background: var(--card-soft);
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.voucher-row input:focus { border-color: var(--navy-soft); box-shadow: 0 0 0 3px rgba(46,68,112,0.08); }
.voucher-msg { font-size: 12.5px; margin-top: 10px; min-height: 16px; }
.voucher-msg.ok { color: var(--ok); }
.voucher-msg.err { color: #b3402f; }
button:disabled,
.btn:disabled,
.mini-btn:disabled,
.doc-btn:disabled {
  cursor: wait;
  opacity: .62;
}
.is-loading {
  position: relative;
}
.access-tray {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: linear-gradient(90deg, rgba(12,35,68,.975), rgba(22,50,84,.965));
  border-bottom: 1px solid rgba(12,35,68,.32);
  box-shadow: 0 14px 30px rgba(12,35,68,.18);
  backdrop-filter: blur(12px);
  color: #fff;
}
.access-tray-inner {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  position: relative;
  border-left: 3px solid #d6b36a;
}
.access-tray-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}
.access-tray-label b {
  display: block;
  font-size: 13.5px;
  color: #fff;
}
.access-tray-label small {
  display: block;
  color: rgba(255,255,255,.74);
  font-size: 11.5px;
  margin-top: 1px;
}
.access-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(47,125,88,.12);
  flex: 0 0 auto;
}
.access-tray.loading .access-dot {
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(176,122,46,.14);
}
.access-tray.error .access-dot {
  background: #b3402f;
  box-shadow: 0 0 0 4px rgba(179,64,47,.12);
}
.access-tray-files {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 2px 0;
}
.access-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 260px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font: 600 12px var(--sans);
  white-space: nowrap;
  transition: border-color .16s, transform .16s var(--ease), box-shadow .16s;
}
.access-file-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.access-file-chip:hover {
  border-color: rgba(255,255,255,.42);
  box-shadow: 0 10px 20px rgba(0,0,0,.14);
  transform: translateY(-1px);
}
.tray-file-ic {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.tray-file-ic svg { width: 12px; height: 12px; }
.access-tray-zip {
  min-height: 36px;
  padding: 9px 14px;
  white-space: nowrap;
}
.access-tray-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.access-tray-close:hover {
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.access-tray-empty {
  color: rgba(255,255,255,.74);
  font-size: 12.5px;
}
.access-result-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card-soft);
  padding: 14px;
  box-shadow: var(--shadow-1);
}
.access-result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.access-result-head h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 17px;
}
.access-result-head p,
.access-download-row small {
  color: var(--muted);
  font-size: 12px;
}
.access-download-list {
  display: grid;
  gap: 8px;
}
.access-download-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
  padding: 9px;
}
.access-download-row b {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.recruiter-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.ract {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  padding: 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  transition: transform .18s var(--ease), box-shadow .18s, border-color .18s;
}
.ract:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.ract-ic { width: 24px; height: 24px; color: var(--navy); margin-bottom: 5px; display: grid; place-items: center; flex-shrink: 0; }
.ract-ic svg { width: 22px; height: 22px; stroke-width: 1.5; }
.ract-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ract-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ract-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  justify-content: center;
}
.ract-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.ract-primary .ract-ic,
.ract-primary .ract-title,
.ract-primary .ract-sub { color: #fff; }
.ract-primary .ract-sub { opacity: .82; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line-2);
  background: var(--page-tint);
  padding: 30px 0;
  margin-top: 8px;
}
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-left { display: flex; align-items: center; gap: 18px; }
.footer-tagline { font-size: 12px; color: var(--muted); line-height: 1.5; max-width: 36ch; }
.footer-copy { font-size: 12.5px; color: var(--muted); }
.footer-social { display: flex; gap: 8px; }
.fs-ic {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  color: var(--muted); background: var(--card);
  border: 1px solid var(--line);
  transition: color .16s, border-color .16s, transform .16s var(--ease);
}
.fs-ic svg { width: 17px; height: 17px; }
.fs-ic:hover { color: var(--navy); border-color: var(--navy-soft); transform: translateY(-2px); }
.footer-admin {
  font-size: 11.5px; color: var(--muted-2); background: none; border: none;
  padding: 0; margin-top: 6px; text-align: left;
}
.footer-admin:hover { color: var(--navy); text-decoration: underline; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 25, 33, 0.42);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  overflow-y: auto;
}
.modal-scrim.show { display: flex; }
.modal {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  width: 100%;
  max-width: 520px;
  animation: modal-in .28s var(--ease);
}
.modal.wide { max-width: 960px; }
.modal.cv-modal {
  max-width: 1180px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line-2);
  gap: 16px;
  flex-shrink: 0;
}
.modal-head h3 { font-family: var(--serif); font-size: 20px; }
.modal-head .mh-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.modal-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cv-header-action {
  padding: 10px 15px;
  font-size: 13px;
}
.modal-close {
  width: 34px; height: 34px; border-radius: 8px; border: none;
  background: var(--page-tint); color: var(--muted); display: grid; place-items: center;
  transition: background .16s, color .16s;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-body { padding: 24px; }
.cv-modal .modal-body {
  overflow: auto;
  padding: 18px 24px 24px;
}

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-family: var(--sans); font-size: 14px;
  background: var(--card); color: var(--ink);
  outline: none; transition: border-color .16s, box-shadow .16s;
}
.field textarea { resize: vertical; min-height: 86px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--navy-soft); box-shadow: 0 0 0 3px rgba(46,68,112,0.08);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: 13px; cursor: pointer;
  transition: border-color .16s, background .16s;
}
.check input { width: 16px; height: 16px; accent-color: var(--navy); }
.check:hover { border-color: var(--navy-soft); background: var(--card-soft); }
.form-msg {
  display: none;
  background: rgba(47,125,88,0.08);
  border: 1px solid rgba(47,125,88,0.25);
  color: var(--ok);
  padding: 14px 16px; border-radius: var(--r-sm);
  font-size: 13.5px; margin-bottom: 16px;
}
.form-msg.show { display: block; }
.request-code-result {
  margin-top: 14px;
  border: 1px solid rgba(47,125,88,.28);
  background: rgba(47,125,88,.08);
  border-radius: var(--r-sm);
  padding: 12px;
  display: grid;
  gap: 4px;
}
.request-code-result b,
.request-code-result span {
  font-size: 12.5px;
  color: var(--ink-2);
}
.request-code-result strong {
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--ok);
}

/* CV builder */
.cv-builder {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 18px;
  align-items: start;
}
.cv-options {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  position: sticky;
  top: 18px;
}
.cv-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.cv-option-subhead {
  border-top: 1px solid var(--line-2);
  margin-top: 14px;
  padding-top: 14px;
}
.cv-option-head h4 {
  font-family: var(--serif);
  font-size: 18px;
}
.cv-language-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: -2px 0 14px;
}
.cv-language-options label {
  position: relative;
  cursor: pointer;
}
.cv-language-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cv-language-options span {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 6px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card-soft);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}
.cv-language-options input:checked + span {
  border-color: var(--navy-soft);
  background: var(--navy);
  color: #fff;
}
.cv-language-options input:focus-visible + span {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.cv-options .check {
  margin-bottom: 8px;
  background: var(--card-soft);
}
.cv-actions {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.cv-actions .btn {
  padding: 11px 12px;
  font-size: 12.5px;
}
.cv-preview-shell {
  background: #e9edf3;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  overflow: auto;
  max-height: calc(100vh - 170px);
}
.cv-preview {
  width: min(100%, 794px);
  margin: 0 auto;
  color: #17243a;
  font-family: var(--sans);
}
.cv-pages {
  display: grid;
  gap: 18px;
}
.cv-pages-zh {
  font-family: "Arial Unicode MS", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", Arial, sans-serif;
}
.cv-pages-zh .cv-doc-name,
.cv-pages-zh .cv-doc-section h4 {
  font-family: "Arial Unicode MS", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", Arial, sans-serif;
  font-weight: 700;
}
.cv-page {
  width: 794px;
  min-height: 1123px;
  background: #fff;
  border: 1px solid #d8dee8;
  box-shadow: 0 10px 30px rgba(15,35,64,0.12);
  box-sizing: border-box;
}
.cv-page .cv-doc {
  min-height: 1123px;
  padding: 34px 40px;
  box-sizing: border-box;
  overflow: hidden;
}
.cv-paginate-scratch {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 794px;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
}
.cv-paginate-scratch .cv-page {
  height: 1123px;
  min-height: 1123px;
  border: none;
  box-shadow: none;
}
.cv-paginate-scratch .cv-doc {
  height: 1123px;
  min-height: 1123px;
  box-sizing: border-box;
}
.cv-doc a {
  color: #0c2344;
  text-decoration: none;
}
.cv-doc-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  border-bottom: 2px solid #0c2344;
  padding-bottom: 13px;
  margin-bottom: 14px;
}
.cv-doc-headshot {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #dfe5ee;
}
.cv-doc-name {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.05;
  color: #0c2344;
}
.cv-doc-role {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #8a671d;
}
.cv-doc-contact {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  font-size: 11.5px;
  color: #42516a;
}
.cv-doc-section { margin-top: 14px; }
.cv-doc-section h4 {
  font-family: var(--serif);
  font-size: 17px;
  color: #0c2344;
  border-bottom: 1px solid #dfe5ee;
  padding-bottom: 5px;
  margin-bottom: 8px;
}
.cv-doc-summary,
.cv-doc-philosophy p {
  font-size: 11.5px;
  line-height: 1.45;
  color: #25344f;
}
.cv-doc-philosophy p {
  margin: 0 0 7px;
}
.cv-doc-item {
  break-inside: avoid;
  margin-bottom: 8px;
}
.cv-doc-item-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.cv-doc-visuals {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cv-doc-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border: 1px solid #dfe5ee;
  border-radius: 6px;
  padding: 3px;
  background: #fff;
}
.cv-doc-item-main { min-width: 0; }
.cv-doc-item-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}
.cv-doc-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #162640;
}
.cv-doc-item-meta {
  font-size: 11px;
  color: #66748a;
  white-space: nowrap;
}
.cv-doc-item-role {
  font-size: 11.5px;
  color: #42516a;
  margin-top: 1px;
}
.cv-doc-item p {
  margin: 4px 0 0;
  font-size: 10.8px;
  line-height: 1.38;
  color: #25344f;
}
.cv-doc-media-side {
  width: 92px;
  aspect-ratio: 16 / 10;
  border: 1px solid #dfe5ee;
  border-radius: 6px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cv-doc-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cv-doc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.cv-doc-tags span {
  font-size: 10px;
  color: #20334f;
  background: #f4f7fb;
  border: 1px solid #dfe5ee;
  border-radius: 999px;
  padding: 2px 7px;
}

/* Document cards */
.doc-list { display: flex; flex-direction: column; gap: 11px; }
.doc-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px; align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
}
.doc-ic { width: 40px; height: 40px; border-radius: 9px; background: var(--page-tint); color: var(--navy); display: grid; place-items: center; }
.doc-ic svg { width: 20px; height: 20px; }
.doc-name { font-size: 14.5px; font-weight: 600; }
.doc-desc { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.doc-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 100px; margin-top: 6px;
}
.doc-status svg { width: 11px; height: 11px; }
.st-public { background: rgba(47,125,88,0.1); color: var(--ok); }
.st-restricted { background: rgba(176,122,46,0.12); color: var(--warn); }
.st-voucher { background: rgba(148,120,90,0.12); color: var(--lock); }
.doc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
  transition: all .16s;
}
.doc-btn svg { width: 13px; height: 13px; }
.doc-btn.unlocked { background: var(--navy); color: #fff; border-color: var(--navy); }
.doc-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.doc-card.locked { opacity: .82; }

/* ============================================================
   ADMIN
   ============================================================ */

/* Admin dashboards must remain structurally hidden until authentication succeeds.
   Several admin shells set display:grid/flex, which otherwise overrides the HTML hidden attribute. */
.admin-page [hidden],
.admin-page [aria-hidden="true"] {
  display: none !important;
}

.admin-page {
  min-height: 100vh;
  background: var(--page-tint);
}
.admin-page-wrap {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 28px 20px;
}
.admin-card {
  width: min(100%, 1480px);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-2);
  background: var(--card);
}
.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-page:not(.admin-authenticated) .admin-top-actions {
  display: none;
}
.admin-page:not(.admin-authenticated) .admin-card-head {
  display: none;
}
.admin-page:not(.admin-authenticated) .admin-card {
  width: min(100%, 460px);
}
.admin-page:not(.admin-authenticated) .admin-page-wrap {
  place-items: center;
}
.admin-page-title {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--ink);
  margin-bottom: 6px;
}
.admin-page-lede {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}
.admin-page .admin-login {
  max-width: 420px;
  margin: 0 auto;
  padding: 44px 22px;
}
.admin-page-dash {
  padding: 0;
}
.cms-editor {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: calc(100vh - 132px);
}
.cms-panel {
  background: var(--card);
  border-right: 1px solid var(--line-2);
  padding: 18px;
  overflow: auto;
}
.cms-panel-head {
  margin-bottom: 18px;
}
.cms-panel-head h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 4px;
}
.cms-panel-head p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}
.admin-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}
.admin-mode-tab {
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--ink-2);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 700;
}
.admin-mode-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.cms-tool-panel { display: none; }
.cms-tool-panel.active { display: block; }
.cms-actions {
  display: grid;
  gap: 8px;
}
.post-admin-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 210px;
  overflow: auto;
  margin: 8px 0 12px;
}
.post-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--page);
  border-radius: var(--r-sm);
  padding: 8px 9px;
  text-align: left;
}
.post-list-item span {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-list-item small {
  color: var(--muted);
  font-size: 10.5px;
  flex-shrink: 0;
}
.post-list-item.active {
  border-color: var(--navy-soft);
  background: #eef3f9;
}
.post-toggle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 10px 0;
}
.cms-panel input[type="file"] {
  width: 100%;
  font-size: 12px;
  margin: 8px 0;
}
.cms-preview-wrap {
  background: #dfe5ee;
  padding: 12px;
}
.cms-preview-wrap iframe {
  width: 100%;
  height: calc(100vh - 156px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: #fff;
}
.cms-edit-selected {
  outline: 3px solid #2f6fed !important;
  outline-offset: 2px !important;
}
.cms-edit-hover {
  outline: 2px dashed rgba(47, 111, 237, .75) !important;
  outline-offset: 2px !important;
}
.admin-shell { display: grid; grid-template-columns: 200px 1fr; min-height: 460px; }
.admin-side { background: var(--page-tint); border-right: 1px solid var(--line-2); padding: 16px 10px; border-radius: 0 0 0 var(--r-lg); }
.admin-side h5 { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); padding: 8px 12px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-navitem {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500;
  color: var(--ink-2); background: none; border: none; text-align: left; width: 100%;
  transition: background .14s, color .14s;
}
.admin-navitem svg { width: 16px; height: 16px; }
.admin-navitem:hover { background: rgba(0,0,0,0.03); }
.admin-navitem.active { background: var(--navy); color: #fff; }
.admin-main { padding: 22px 24px; }
.admin-pane { display: none; }
.admin-pane.active { display: block; }
.admin-pane h4 { font-family: var(--serif); font-size: 20px; margin-bottom: 4px; }
.admin-pane > p.lead { font-size: 13px; color: var(--muted); margin: 0 0 18px; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.kpi b { font-family: var(--serif); font-size: 24px; color: var(--navy); display: block; }
.kpi span { font-size: 11.5px; color: var(--muted); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.admin-table tr:last-child td { border-bottom: none; }
.mini-btn { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-2); transition: all .14s; }
.mini-btn:hover { border-color: var(--navy-soft); color: var(--navy); }
.mini-btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.mini-btn.danger:hover { border-color: #c0432f; color: #c0432f; }
.pill { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 100px; }
.pill.on { background: rgba(47,125,88,0.12); color: var(--ok); }
.pill.off { background: rgba(150,150,150,0.14); color: var(--muted); }
.admin-actions-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-login { max-width: 360px; margin: 10px auto; }
.admin-login .hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }
.toggle-switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; }
.tsw { width: 38px; height: 22px; border-radius: 100px; background: var(--line-strong); position: relative; transition: background .18s; flex-shrink: 0; cursor: pointer; }
.tsw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .18s var(--ease); }
.tsw.on { background: var(--ok); }
.tsw.on::after { transform: translateX(16px); }

/* ============================================================
   POSTS ADMIN
   ============================================================ */
.posts-admin-card { width: min(100%, 1640px); }
.posts-dash {
  display: grid;
  grid-template-columns: 330px 1fr;
  min-height: calc(100vh - 112px);
}
.posts-side {
  background: var(--card);
  border-right: 1px solid var(--line-2);
  padding: 18px;
  overflow: auto;
}
.posts-side-head,
.posts-composer-head,
.post-admin-section-head,
.posts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.posts-side-head h2,
.posts-composer-head h1 {
  font-family: var(--serif);
  color: var(--navy);
  margin: 0;
}
.posts-side-head h2 { font-size: 24px; }
.posts-composer-head h1 { font-size: 30px; }
.posts-composer-head p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.posts-filter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0;
}
.post-filter {
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--ink-2);
  border-radius: var(--r-sm);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 700;
}
.post-filter.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.post-admin-list-large {
  max-height: calc(100vh - 240px);
}
.posts-composer {
  padding: 22px;
  overflow: auto;
}
.posts-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}
.posts-form-main,
.posts-preview-panel,
.post-admin-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
}
.posts-form-main { padding: 18px; }
.posts-preview-panel {
  padding: 16px;
  position: sticky;
  top: 18px;
}
.posts-preview-panel h3,
.post-admin-section h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  margin: 0;
}
.posts-toolbar {
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 12px;
}
.posts-toolbar .field { min-width: 170px; flex: 1; }
.post-inline-check { padding-bottom: 11px; }
.post-body-editor { min-height: 180px; }
.posts-small-grid {
  display: grid;
  grid-template-columns: 1fr 160px 120px;
  gap: 12px;
}
.post-admin-section {
  padding: 14px;
  margin-top: 14px;
}
.post-admin-section-head {
  margin-bottom: 12px;
  align-items: center;
}
.post-admin-section-head input[type="file"] {
  max-width: 220px;
  font-size: 12px;
}
.post-media-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-media-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--page);
}
.post-media-thumb {
  aspect-ratio: 16 / 10;
  background: #11151c;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.post-media-thumb img,
.post-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-media-fields {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.post-media-fields input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 9px;
  font-size: 12px;
}
.post-media-fields code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}
.post-media-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-admin-preview-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-1);
}

.posts-feed-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 112px);
  background: #f5f7fa;
}
.posts-feed-rail {
  border-right: 1px solid var(--line-2);
  background: var(--card);
  padding: 18px;
  position: sticky;
  top: 0;
  align-self: start;
  min-height: calc(100vh - 112px);
}
.post-admin-counts {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.post-admin-counts div {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px;
  background: var(--page);
}
.post-admin-counts strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  line-height: 1;
}
.post-admin-counts span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.posts-filter-row-feed {
  grid-template-columns: 1fr;
}
.posts-feed-main {
  width: min(760px, calc(100vw - 340px));
  margin: 0 auto;
  padding: 22px 18px 40px;
}
.posts-admin-message {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  margin-top: 18px;
  padding: 11px 12px;
  box-shadow: var(--shadow-2);
}
.posts-admin-message:empty { display: none; }
.posts-feed {
  display: grid;
  gap: 16px;
}
.feed-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  padding: 16px;
}
.feed-card-head,
.feed-post-top,
.feed-title-row,
.feed-actions,
.feed-editor-actions,
.feed-lang-tabs,
.media-tile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.feed-card-head,
.feed-post-top {
  justify-content: space-between;
}
.feed-card h2,
.feed-post-copy h2 {
  font-family: var(--serif);
  color: var(--navy);
  margin: 0;
}
.feed-card h2 { font-size: 24px; }
.feed-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}
.feed-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-size: 20px;
}
.feed-post-copy {
  min-width: 0;
  flex: 1;
}
.feed-post-copy p {
  margin: 5px 0 4px;
  color: var(--ink-2);
  line-height: 1.45;
}
.feed-post-copy small {
  color: var(--muted);
  font-weight: 700;
}
.feed-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.feed-badges span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--ink-2);
  background: var(--page);
  font-size: 11px;
  font-weight: 800;
}
.feed-post-media {
  margin-top: 12px;
}
.feed-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: #11151c;
  display: block;
}
.feed-cover-empty {
  background: linear-gradient(135deg, #e7edf5, #f7f9fc);
  border: 1px dashed var(--line);
}
.feed-tags {
  margin-top: 10px;
}
.feed-actions {
  flex-wrap: wrap;
  border-top: 1px solid var(--line-2);
  margin-top: 12px;
  padding-top: 12px;
}
.feed-inline-editor {
  border-top: 1px solid var(--line-2);
  margin-top: 14px;
  padding-top: 14px;
}
.feed-editor {
  display: grid;
  gap: 14px;
}
.feed-lang-tabs button {
  border: 1px solid var(--line);
  background: var(--page);
  border-radius: var(--r-sm);
  padding: 7px 11px;
  color: var(--ink-2);
  font-weight: 800;
}
.feed-lang-tabs button.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.feed-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.feed-edit-grid label,
.feed-links-editor label {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 800;
}
.feed-edit-grid label.wide,
.feed-links-editor label {
  grid-column: 1 / -1;
}
.feed-edit-grid input,
.feed-edit-grid select,
.feed-edit-grid textarea,
.feed-links-editor textarea,
.media-tile input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  padding: 9px 10px;
  color: var(--ink);
  font: inherit;
  margin-top: 5px;
}
.feed-edit-grid textarea,
.feed-links-editor textarea {
  min-height: 82px;
  resize: vertical;
}
.feed-edit-grid .post-body-editor {
  min-height: 170px;
}
.feed-check {
  align-self: end;
  padding-bottom: 10px;
}
.feed-media-editor,
.feed-links-editor {
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px;
  background: var(--page);
}
.feed-media-editor h3,
.feed-links-editor h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  color: var(--navy);
  font-size: 18px;
}
.media-upload-label {
  position: relative;
  overflow: hidden;
}
.media-upload-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.media-drop {
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
  text-align: center;
  color: var(--muted);
  background: var(--card);
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 12px;
}
.media-drop.dragging {
  border-color: var(--accent);
  color: var(--navy);
  background: #eef4fb;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.media-tile {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  padding: 10px;
}
.media-tile-preview {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #11151c;
}
.media-tile-preview img,
.media-tile-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-tile code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}
.feed-editor-actions {
  justify-content: flex-end;
}

/* ============================================================
   DOCUMENTS ADMIN
   ============================================================ */
.docs-admin-card { width: min(100%, 1640px); }
.docs-admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 112px);
  background: #f5f7fa;
}
.docs-admin-rail {
  border-right: 1px solid var(--line-2);
  background: var(--card);
  padding: 18px;
}
.docs-admin-main {
  padding: 22px;
  overflow: auto;
}
.docs-admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr);
  gap: 18px;
  align-items: start;
}
.docs-request-list,
.docs-library-list {
  display: grid;
  gap: 12px;
}
.doc-admin-item,
.compact-panel,
.doc-detail-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: 14px;
  box-shadow: var(--shadow-1);
}
.doc-admin-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.doc-admin-top h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
}
.doc-admin-top p,
.doc-admin-note,
.doc-admin-item small,
.doc-admin-file {
  color: var(--muted);
  font-size: 12.5px;
}
.doc-admin-note { margin: 8px 0 0; }
.doc-admin-file {
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--page-tint);
  padding: 8px 10px;
  margin-top: 10px;
}
.doc-admin-actions {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 80px auto auto auto;
  gap: 8px;
  align-items: center;
  margin: 12px 0 8px;
}
.compact-panel {
  padding: 0;
  overflow: hidden;
}
.compact-summary {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.compact-summary b {
  display: block;
  font-size: 13.5px;
  color: var(--navy);
}
.compact-summary small,
.compact-meta {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}
.compact-body {
  border-top: 1px solid var(--line-2);
  padding: 12px;
  display: grid;
  gap: 10px;
}
.compact-actions {
  grid-template-columns: minmax(180px, 1fr) repeat(4, auto);
}
.limit-line {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.limit-line input {
  width: 76px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 7px;
}
.docs-request-items {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.doc-admin-request-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto auto auto;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--line-2);
  background: var(--page);
  border-radius: var(--r-sm);
  padding: 8px;
}
.doc-admin-request-row b {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
}
.doc-admin-request-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.doc-admin-actions input,
.doc-admin-actions select,
.doc-admin-actions textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  padding: 8px 9px;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}
.doc-admin-edit {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.doc-admin-edit textarea,
.doc-admin-edit input[type="file"] {
  grid-column: 1 / -1;
}
.access-code-box {
  border: 1px solid rgba(47,125,88,.28);
  background: rgba(47,125,88,.08);
  border-radius: var(--r-sm);
  padding: 9px 10px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.access-code-box b {
  font-size: 15px;
  color: var(--ok);
  letter-spacing: .04em;
}
.access-code-box span {
  color: var(--muted);
  font-size: 12px;
}
.docs-create-panel {
  border: 1px solid var(--line-2);
  background: var(--page);
  border-radius: var(--r);
  padding: 12px;
  margin-bottom: 12px;
  display: grid;
  gap: 8px;
}
.docs-create-panel > .compact-summary {
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
}
.docs-create-panel input,
.docs-create-panel textarea,
.docs-create-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  padding: 8px 9px;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}
.docs-check-list {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: var(--r-sm);
  padding: 8px;
}
.docs-voucher-panel { grid-column: auto; }
.docs-activity-panel { grid-column: 1 / -1; }
.doc-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}
.doc-tile {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  padding: 10px;
  text-align: left;
  display: grid;
  align-content: start;
  gap: 6px;
  cursor: pointer;
}
.doc-tile.selected {
  border-color: var(--navy-soft);
  box-shadow: 0 0 0 3px rgba(46,68,112,.08);
}
.file-badge {
  width: 38px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
  color: var(--navy);
  background: var(--page-tint);
}
.doc-tile b {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}
.doc-tile small {
  color: var(--muted);
  font-size: 11px;
}
.docs-detail-panel {
  margin-top: 12px;
}
.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr);
  gap: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
  padding: 9px 10px;
}
.activity-row b,
.activity-row span {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
}
.activity-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.activity-report-head {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.activity-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.activity-stat-grid div {
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--page-tint);
  padding: 10px;
}
.activity-stat-grid strong,
.activity-stat-grid span {
  display: block;
}
.activity-stat-grid strong {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
}
.activity-stat-grid span {
  font-size: 11px;
  color: var(--muted);
}
.activity-controls {
  display: grid;
  grid-template-columns: 180px minmax(180px, 1fr) auto;
  gap: 8px;
}
.activity-controls select,
.activity-controls input {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
}
.activity-top-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.activity-top-page {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff;
}
.activity-top-page b {
  color: var(--navy);
}
.activity-list-page {
  display: grid;
  gap: 7px;
}
.activity-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .nav-links { gap: 13px; }
  .nav-links a { font-size: 12px; }
}
@media (max-width: 1024px) {
  :root { --gut: 28px; }
  .hero-grid { gap: 22px; }
  .badge-grid { gap: 9px; }
  .badge-label { font-size: 11px; }
  .nav { gap: 16px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 11.5px; }
  .brand-url { display: none; }
  .recruiter-actions { grid-template-columns: repeat(2, 1fr); }
  .cv-builder { grid-template-columns: 1fr; }
  .cv-options { position: static; }
  .posts-feed-shell { grid-template-columns: 1fr; }
  .posts-feed-rail { position: static; min-height: auto; border-right: none; border-bottom: 1px solid var(--line-2); }
  .posts-feed-main { width: 100%; }
  .posts-filter-row-feed { grid-template-columns: repeat(2, 1fr); }
  .feed-edit-grid { grid-template-columns: 1fr; }
  .docs-admin-shell,
  .docs-admin-grid { grid-template-columns: 1fr; }
  .docs-admin-rail { border-right: none; border-bottom: 1px solid var(--line-2); }
  .philosophy-panel,
  .philosophy-page { padding: 20px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 28px; }
  .hero-side { grid-column: 1 / -1; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  :root { --gut: 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--page); border-bottom: 1px solid var(--line);
    padding: 14px 24px; margin: 0;
  }
  .nav-links.open a { padding: 10px 0; }
  .nav { position: relative; }
  .lang-switcher { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .intro-col { order: 1; }
  .video-col { order: 2; padding-top: 0; }
  .hero-side { order: 3; }
  .ai-panel { padding: 14px 16px; }
  .ai-panel .ai-head { margin: 0; }
  .ai-mobile-toggle {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--page-tint);
    color: var(--navy);
  }
  .ai-mobile-toggle svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
  .ai-panel.mobile-open .ai-mobile-toggle svg { transform: rotate(180deg); }
  .ai-panel:not(.mobile-open) .ai-content { display: none; }
  .ai-panel.mobile-open .ai-content { margin-top: 12px; }
  .intro-name { font-size: 44px; }
  .badge-grid { grid-template-columns: repeat(4, 1fr); }
  .portfolio-strip { margin-right: calc(var(--gut) * -1); }
  .portfolio-actions { gap: 8px; }
  .portfolio-actions .link-all { display: none; }
  .tl-card { flex-basis: min(82vw, 360px); }
  .post-detail-card { grid-template-columns: 1fr; }
  .post-detail-body { padding: 20px; }
  .post-detail-media { min-height: 0; }
  .post-gallery { grid-template-columns: 1fr; }
  .contact-grid, .recruiter-actions { grid-template-columns: 1fr; }
  .contact-actions { grid-template-columns: 1fr; }
  .access-tray {
    top: var(--header-h);
  }
  .access-tray-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 9px;
    align-items: start;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .access-tray-label {
    min-width: 0;
    grid-column: 1 / 2;
  }
  .access-tray-files {
    grid-column: 1 / -1;
    margin-right: calc(var(--gut) * -1);
    padding-bottom: 3px;
  }
  .access-tray-zip {
    grid-column: 2 / 3;
    min-height: 32px;
    padding: 7px 10px;
    font-size: 12px;
  }
  .access-tray-close {
    grid-column: 3 / 4;
    width: 30px;
    height: 30px;
  }
  .access-file-chip {
    max-width: 220px;
    flex: 0 0 auto;
  }
  .case-grid, .case-grid.two { grid-template-columns: 1fr; gap: 16px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .admin-shell { grid-template-columns: 1fr; }
  .cms-editor { grid-template-columns: 1fr; }
  .cms-preview-wrap iframe { height: 72vh; }
  .admin-side { display: flex; gap: 6px; overflow-x: auto; border-radius: 0; }
  .admin-nav { flex-direction: row; }
  .posts-dash { grid-template-columns: 1fr; }
  .posts-side { border-right: none; border-bottom: 1px solid var(--line-2); }
  .posts-form-grid { grid-template-columns: 1fr; }
  .posts-small-grid { grid-template-columns: 1fr; }
  .post-media-row { grid-template-columns: 1fr; }
  .posts-preview-panel { position: static; }
  .doc-admin-actions,
  .doc-admin-edit,
  .doc-admin-request-row { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .modal-scrim { padding: 30px 14px; }
  .modal.cv-modal { max-height: calc(100vh - 24px); }
  .cv-modal .modal-head {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px;
  }
  .cv-modal .modal-head-actions {
    width: 100%;
    justify-content: space-between;
  }
  .cv-header-action {
    flex: 1;
    justify-content: center;
  }
  .cv-modal .modal-body {
    padding: 14px;
  }
  .cv-preview-shell { padding: 10px; max-height: 64vh; }
  .cv-preview { width: 100%; }
  .cv-page {
    width: 100%;
    min-height: auto;
  }
  .cv-page .cv-doc {
    min-height: auto;
    padding: 24px 20px;
  }
  .cv-doc-item-row { grid-template-columns: 1fr; }
  .cv-doc-visuals { flex-wrap: wrap; }
  .cv-doc-item-head { display: block; }
  .cv-doc-item-meta { margin-top: 2px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 560px) {
  .badge-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .field-row, .check-grid { grid-template-columns: 1fr; }
  .brand-url { display: none; }
  .intro-name { font-size: 38px; }
}
