/* SciNexID – plain CSS, flexbox/grid, no framework */
/* Montserrat (variable, 100-900) served from assets/css/montserrat.ttf: no Google Fonts request. */
@font-face {
  font-family: "Montserrat";
  src: url("montserrat.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #13264B;
  --navy-2: #1E3A6E;
  --orange: #C2571A;
  --orange-2: #E8772E;
  --orange-ink: #9A4412;
  --ink: #1B2333;
  --ink-2: #2D3748;
  --muted: #4A5568;
  --muted-2: #5B6577;
  --line: #E2E5EC;
  --line-2: #EEF0F4;
  --bg: #F4F5F8;
  --card: #FFFFFF;
  --soft: #F1F3F7;
  --blue-soft: #E8EEF9;
  --green: #1F6B3A;
  --green-soft: #E3F1E7;
  --orange-soft: #FCEFE6;
  --red: #B42318;
  --red-soft: #FDECEA;
  --radius: 12px;
  --serif: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'SF Mono', Menlo, monospace;
  /* Printable CV designs "Classic" and "Academic" keep a book serif (cv.css). */
  --cv-serif: Georgia, 'Times New Roman', Times, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: var(--navy-2); }
a:hover { color: var(--orange); }
h1, h2, h3 { margin: 0; color: var(--navy); }
p { margin: 0 0 12px; }
img { max-width: 100%; }
.icon { flex-shrink: 0; vertical-align: -3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 520px; }
.narrow-wide { max-width: 900px; }
.page { padding-top: 24px; padding-bottom: 64px; }
.muted { color: var(--muted-2); }
.small { font-size: 13px; }
.strong { font-weight: 600; color: var(--ink); }
.mono { font-family: var(--mono); color: var(--navy); }
.c-green { color: var(--green); }
.c-blue { color: var(--navy-2); }
.c-grey { color: var(--muted); }
.empty { color: var(--muted-2); background: var(--soft); border-radius: 8px; padding: 12px 14px; font-size: 14px; }

/* ---------- Header / footer ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand-name span { color: var(--orange); }
.brand-sub { font-size: 13px; color: var(--muted-2); }
.header-search { flex: 1 1 240px; max-width: 420px; margin-left: auto; }
.header-search input { width: 100%; height: 40px; border: 1px solid #D5D9E2; border-radius: 8px; padding: 0 14px; font: inherit; font-size: 14px; background: #F8F9FB; }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav form { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-2); cursor: pointer; }
.link-btn:hover { color: var(--orange); }
.site-header .nav-toggle { display: none; }
.site-footer { background: var(--navy); color: #C9D3E8; font-size: 13px; margin-top: auto; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #fff; }

/* ---------- Buttons / pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-ink); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--blue-soft); color: var(--navy); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: #D5D9E2; }
.btn-ghost:hover { background: var(--soft); color: var(--navy); }
.btn-soft { background: #F8F9FB; color: var(--navy); border-color: #D5D9E2; margin-top: 8px; }
.btn-ghost-light { background: transparent; color: #fff; border-color: #7C8BA6; }
.btn-ghost-light:hover { color: #fff; border-color: #fff; }
.icon-btn { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--soft); color: var(--navy); }
.icon-btn-sm { width: 28px; height: 28px; }
.icon-btn-box { width: 44px; height: 44px; border: 1px solid #D5D9E2; background: #fff; color: var(--navy); border-radius: 8px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.pill-blue { background: var(--blue-soft); color: var(--navy-2); }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-grey { background: var(--soft); color: var(--muted); }
.pill-sm { font-size: 11px; padding: 2px 8px; }
a.pill-green:hover { color: var(--green); background: #D3EADB; }
.tag { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: #EEF2F9; color: var(--navy-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vis-badge { display: inline-flex; align-items: center; gap: 4px; font-family: var(--sans); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.vis-followers { background: var(--blue-soft); color: var(--navy-2); }
.vis-hidden { background: var(--soft); color: var(--muted); }
.count { font-family: var(--sans); font-size: 13px; font-weight: 600; background: var(--soft); color: var(--muted); padding: 2px 9px; border-radius: 999px; vertical-align: middle; }

/* ---------- Cards / sections ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.section { padding: 24px 28px; }
.section + .section, .cols .section { margin-top: 0; }
.section h2 { font-family: var(--serif); font-size: 22px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin-bottom: 0; }
.mono-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: #C9D3E8; }
.mono-label.dark { color: var(--orange-ink); }
.flash-wrap { padding-top: 16px; }
.flash { margin: 0 0 8px; padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.flash-success { background: var(--green-soft); color: var(--green); }
.flash-error { background: var(--red-soft); color: var(--red); }
.flash-info { background: var(--blue-soft); color: var(--navy-2); }
.center-card { padding: 40px 32px; text-align: center; margin-top: 40px; }

/* ---------- Owner bar ---------- */
.owner-bar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; background: var(--blue-soft); border: 1px solid #CBD7EE; color: var(--navy); border-radius: 10px; padding: 10px 16px; font-size: 14px; margin-bottom: 16px; }
.owner-bar-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 600; }

/* ---------- Profile hero ---------- */
.hero { overflow: hidden; }
.hero-cover { height: 150px; background: var(--navy); border-bottom: 4px solid var(--orange-2); display: flex; justify-content: flex-end; align-items: flex-start; padding: 16px 20px; }
.hero-body { padding: 0 32px 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; }
.avatar { border-radius: 50%; object-fit: cover; background: #DCE3F0; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.avatar-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.photo-lock { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; }
.photo-note { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.avatar-xl { width: 152px; height: 152px; margin-top: -76px; border: 5px solid #fff; font-family: var(--serif); font-size: 52px; }
.avatar-lg { width: 112px; height: 112px; font-size: 38px; font-family: var(--serif); }
.avatar-sm { width: 44px; height: 44px; font-size: 15px; }
.hero-main { flex: 999 1 420px; min-width: 0; padding-top: 18px; }
.name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.name-row h1 { font-family: var(--serif); font-size: 38px; line-height: 1.15; }
.headline { margin: 6px 0 10px; font-size: 17px; color: var(--ink-2); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.meta-row > span { display: inline-flex; align-items: center; gap: 6px; }
.sid-chip { font-family: var(--mono); font-size: 13px; color: var(--navy); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 4px 2px 10px; }
.hero-actions { flex: 1 1 300px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end;margin-top:20px; }
.stat-strip { margin: 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; }
.stat-strip > div { flex: 1 1 140px; padding: 16px 24px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column-reverse; }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip dd { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--navy); }
.stat-strip dt { font-size: 13px; color: var(--muted-2); }
.section-nav { margin-top: 20px; padding: 0 12px; display: flex; gap: 4px; overflow-x: auto; font-size: 14px; font-weight: 500; }
.section-nav a { padding: 14px 12px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.section-nav a:hover, .section-nav a.on { color: var(--navy); border-bottom-color: var(--orange-2); }

.cols { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.section[id] { scroll-margin-top: 16px; }
.side { padding: 22px 24px; }
.side h2 { font-size: 19px; margin-bottom: 12px; }
.side-note { padding: 0 4px; margin: 0; }
.bio { color: var(--ink-2); white-space: normal; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 30px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--navy); background: #fff; }
.timeline li::after { content: ''; position: absolute; left: 5px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.tl-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tl-head h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.tl-org { font-size: 14px; color: var(--navy-2); font-weight: 500; }
.timeline p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #D5D9E2; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 500; text-decoration: none; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.list { display: flex; flex-direction: column; }
.pub { padding: 16px 0; border-top: 1px solid var(--line-2); }
.pub-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; font-size: 12px; }
.kind { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange-ink); }
.pub h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.pub h3 a { text-decoration: none; color: var(--navy); }
.pub h3 a:hover { color: var(--orange); }
.pub-authors { font-size: 14px; color: var(--muted); }
.pub-authors strong { color: var(--ink); }
.pub-venue { font-size: 14px; color: var(--muted); font-style: italic; }
.pub-links { margin-top: 6px; font-size: 13px; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.grid-cards.wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.talk { border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; gap: 14px; }
.date-box { width: 52px; flex-shrink: 0; text-align: center; border-radius: 8px; background: var(--soft); padding: 6px 0; display: flex; flex-direction: column; }
.date-box span { font-size: 11px; font-weight: 600; color: var(--orange-ink); letter-spacing: 0.06em; }
.date-box b { font-family: var(--serif); font-size: 18px; color: var(--navy); line-height: 1.1; }
.talk-body { min-width: 0; }
.talk-role { font-size: 12px; font-weight: 600; color: var(--navy-2); }
.talk-title { font-size: 15px; font-weight: 600; line-height: 1.35; margin: 2px 0; }
.cert { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.cert:first-child { border-top: 0; }
.cert-ico { width: 40px; height: 40px; border-radius: 8px; background: var(--orange-soft); color: var(--orange-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cert-body { flex: 1 1 260px; min-width: 0; }

.post-card { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 16px; text-decoration: none; color: var(--ink); }
.post-card:hover { border-color: #C3CBDA; color: var(--ink); }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-2); }
.kind-dark { padding: 2px 8px; border-radius: 4px; background: var(--navy); color: #fff; font-weight: 600; }
.post-title { font-weight: 600; color: var(--navy); line-height: 1.35; }
.post-text { font-size: 14px; color: var(--ink-2); }
.post-foot { font-size: 12px; color: var(--muted-2); border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: auto; }
.project { border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.project h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.project h3 a { text-decoration: none; color: var(--navy); }
.project p { margin: 0; font-size: 14px; color: var(--muted); }
.project-top { display: flex; justify-content: space-between; align-items: center; }
.tile { width: 38px; height: 38px; border-radius: 8px; background: #EEF2F9; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.st-ongoing { background: var(--green-soft); color: var(--green); }
.st-paused { background: var(--orange-soft); color: var(--orange-ink); }
.st-done { background: var(--soft); color: var(--muted); }
.project-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted-2); border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: auto; }

.aff-list, .contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.aff-list li { display: flex; gap: 12px; align-items: flex-start; }
.aff-ini { width: 40px; height: 40px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.aff-list .strong { font-size: 14px; line-height: 1.35; }
.contact-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; word-break: break-all; }
.locked { display: flex; align-items: center; gap: 8px; color: var(--muted-2); }
.link-card { background: var(--navy); border-color: var(--navy); color: #fff; padding: 22px 24px; }
.link-url { font-family: var(--mono); font-size: 14px; margin: 8px 0 14px; word-break: break-all; }
.qr-row { display: flex; gap: 14px; align-items: center; }
.qr-row p { margin: 0; font-size: 13px; color: #DCE3F0; }
.qr { width: 84px; height: 84px; flex-shrink: 0; background: #fff; border-radius: 6px; padding: 6px; }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }
.qr:empty { display: none; }

/* ---------- Home / search ---------- */
.home-hero { padding: 48px 40px; }
.home-hero h1 { font-family: var(--serif); font-size: 40px; line-height: 1.15; max-width: 760px; margin: 10px 0 14px; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 720px; }
.home-search { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 18px; max-width: 640px; }
.home-search input { flex: 1 1 260px; height: 48px; border: 1px solid #C9D0DC; border-radius: 8px; padding: 0 16px; font: inherit; }
.home-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.feature-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.feature { flex: 1 1 260px; padding: 22px 24px; }
.feature h2 { font-family: var(--serif); font-size: 19px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.page-title { font-family: var(--serif); font-size: 26px; margin-bottom: 16px; }
.result-list { list-style: none; margin: 0; padding: 0; }
.result-list a { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.result-list li:first-child a { border-top: 0; }
.result-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sid-mini { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span:first-child, .field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; border: 1px solid #C9D0DC; border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; min-height: 96px; }
.field input[type=file] { padding: 8px; }
.field [aria-invalid=true] { border-color: var(--red); }
.hint { font-size: 12px; color: var(--muted-2); }
.field-error { font-size: 13px; color: var(--red); }
.req { color: var(--red); }
.phone-row { display: flex; gap: 8px; flex-wrap: wrap; }
.phone-row select { flex: 1 1 200px; width: auto; min-width: 0; }
.phone-row input { flex: 2 1 180px; width: auto; min-width: 0; }
.hint .icon { vertical-align: -2px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-grid-4 { grid-template-columns: 110px repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-height: 32px; cursor: pointer; }
.check input, .check-row input { width: 18px; height: 18px; accent-color: var(--navy); }
.form-foot { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.section .form h2 { margin-top: 8px; margin-bottom: 0; }
.auth-card { padding: 32px; margin-top: 24px; }
.auth-card h1 { font-family: var(--serif); font-size: 28px; margin-bottom: 6px; }
.auth-links { margin: 16px 0 0; text-align: center; }

/* ---------- Owner settings / edit ---------- */
.settings-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.side-nav { flex: 1 1 220px; padding: 10px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 500; }
.side-nav a { padding: 11px 14px; border-radius: 8px; text-decoration: none; color: var(--ink-2); }
.side-nav a:hover { background: var(--soft); color: var(--navy); }
.side-nav a.on { background: var(--navy); color: #fff; }
.side-nav hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; width: auto; }
.settings-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--serif); font-size: 32px; }
.page-head p { margin: 6px 0 0; }
.meter { min-width: 200px; }
.meter-label { font-size: 13px; font-weight: 600; color: var(--navy); }
.meter-bar { display: block; height: 8px; border-radius: 999px; background: var(--line); margin-top: 6px; overflow: hidden; }
.meter-bar span { display: block; height: 100%; background: var(--orange-2); border-radius: 999px; }
.photo-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.photo-form { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; }
.edit-list { list-style: none; margin: 0; padding: 0; }
.edit-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.edit-list li:first-child { border-top: 0; }
.edit-list li.is-hidden .edit-main { opacity: 0.6; }
.edit-main { flex: 1 1 280px; min-width: 0; }
.edit-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.edit-actions form { margin: 0; }

.summary-card { padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.mini-stats { display: flex; gap: 14px; margin: 0; }
.mini-stats > div { text-align: center; min-width: 76px; display: flex; flex-direction: column-reverse; }
.mini-stats dd { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.mini-stats dt { font-size: 12px; color: var(--muted-2); }

.ver-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.ver-ico { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ver-ico.ok { background: var(--green-soft); color: var(--green); }
.ver-ico.todo { border: 2px dashed #A0AABB; }
.ver-main { flex: 1 1 260px; min-width: 0; }
.ver-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ver-actions form { margin: 0; }
.review-box { border-top: 1px solid var(--line-2); padding-top: 14px; }
.review-box summary { cursor: pointer; font-weight: 600; color: var(--navy-2); min-height: 32px; }
.review-box .form { margin-top: 12px; }

.vis-form { padding-bottom: 0; overflow: hidden; }
.vis-table { margin: 0 -28px; }
.vis-row { display: flex; align-items: center; gap: 14px; padding: 14px 28px; border: 0; border-bottom: 1px solid var(--line-2); margin: 0; flex-wrap: wrap; min-width: 0; }
.vis-row > div:first-child { flex: 1 1 220px; min-width: 0; }
.vis-head { background: #F8F9FB; font-size: 12px; font-weight: 600; color: var(--muted-2); letter-spacing: 0.04em; text-transform: uppercase; padding-top: 10px; padding-bottom: 10px; border-top: 1px solid var(--line); }
.vis-head span:first-child { flex: 1; }
.vis-head span:last-child, .vis-row > .seg, .vis-row > .locked { width: 330px; max-width: 100%; }
.seg { display: flex; background: var(--soft); border-radius: 9px; padding: 3px; }
.seg-opt { flex: 1; position: relative; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg-opt input:checked + span { color: #fff; font-weight: 600; }
.seg-public input:checked + span { background: var(--green); }
.seg-followers input:checked + span { background: var(--navy-2); }
.seg-hidden input:checked + span { background: var(--muted); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--orange-2); outline-offset: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 16px 0 0; color: var(--muted); }
.preview-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 0 24px; }
.save-bar { position: sticky; bottom: 0; margin: 0 -28px; padding: 14px 28px; background: var(--navy); color: #fff; display: none; align-items: center; gap: 12px; flex-wrap: wrap; }
.save-bar span { flex: 1; font-size: 14px; }
.save-bar.show { display: flex; }

.import-list { list-style: none; margin: 0 0 14px; padding: 0; }
.import-list li { border-top: 1px solid var(--line-2); }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
.check-row input { margin-top: 3px; flex-shrink: 0; }
.check-row > span { display: flex; flex-direction: column; min-width: 0; }

/* ---------- Organisation picker, Experience, Education ---------- */
.org-picker { position: relative; }
.org-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #C9D0DC; border-radius: 10px; box-shadow: 0 8px 24px rgba(19, 38, 75, .14); max-height: 320px; overflow-y: auto; }
.org-list li { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 7px; cursor: pointer; }
.org-list li[aria-selected="true"], .org-list li:hover { background: var(--blue-soft); }
.org-list .org-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.org-list .org-meta { font-size: 12px; color: var(--muted-2); }
.org-list .org-meta em { font-style: normal; color: var(--orange-ink); }
.org-list .org-new { border-top: 1px solid var(--line-2); margin-top: 2px; }
.org-list .org-new .org-name { color: var(--navy-2); }
.org-list .org-empty { cursor: default; color: var(--muted-2); font-size: 13px; }
.org-pending { color: var(--orange-ink); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.intro-note { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.seg-field { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.seg-field legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.seg-2 { max-width: 320px; }
.sub-head { font-size: 15px; font-weight: 600; color: var(--navy); margin: 18px 0 8px; }
.member-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.member-list li { display: flex; flex-direction: column; }
.edu { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.edu:first-child { border-top: 0; padding-top: 4px; }
.edu-ico { background: #EEF2F9; color: var(--navy); }
.edu-body { min-width: 0; }

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 12px; }
  .header-row { gap: 10px; }
  .brand-sub { display: none; }
  .site-header .nav-toggle { display: inline-flex; margin-left: auto; width: 44px; height: 44px; }
  .header-search { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .site-nav { display: none; order: 6; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav > a, .site-nav .link-btn { padding: 12px 4px; border-top: 1px solid var(--line-2); min-height: 44px; display: flex; align-items: center; width: 100%; }
  .site-nav .btn { margin-top: 8px; }
  .section { padding: 18px 16px; }
  .hero-cover { height: 96px; }
  .hero-body { padding: 0 16px 18px; gap: 12px; }
  .avatar-xl { width: 104px; height: 104px; margin-top: -52px; border-width: 4px; font-size: 36px; }
  .avatar-wrap { align-items: flex-start; }
  .photo-lock { right: auto; left: 76px; bottom: 2px; }
  .hero-main { padding-top: 0; flex-basis: 100%; }
  .name-row h1 { font-size: 26px; }
  .hero-actions { justify-content: flex-start; flex-basis: 100%; }
  .hero-actions .btn { flex: 1 1 140px; }
  .stat-strip > div { flex: 1 1 33%; padding: 10px 12px; text-align: center; }
  .stat-strip dd { font-size: 20px; }
  .stat-strip dt { font-size: 11px; }
  .field-grid, .field-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .vis-table, .save-bar { margin: 0 -16px; }
  .vis-row, .save-bar { padding-left: 16px; padding-right: 16px; }
  .vis-head span:last-child { display: none; }
  .vis-row > .seg, .vis-row > .locked { width: 100%; }
  .home-hero { padding: 28px 18px; }
  .home-hero h1 { font-size: 28px; }
  .page-head h1 { font-size: 26px; }
}

/* ---------- contact form (sc-config/shared/contact.php: .scq) ---------- */
.scq-page, .scq, .scq-done { --scq-card: var(--card); --scq-line: var(--line); --scq-ink: var(--ink); --scq-muted: var(--muted); --scq-accent: var(--navy); --scq-on-accent: #fff; --scq-bad: var(--red); --scq-input: var(--card); --scq-radius: var(--radius); }

.scq-page { max-width: 760px; margin: 0 auto; padding: 28px 16px 56px; }
.scq-page h1 { margin: 0 0 8px; }
.scq-page .scq-lead { margin: 0 0 22px; color: var(--scq-muted); }
.scq, .scq-done { display: flex; flex-direction: column; gap: 16px; padding: 22px; background: var(--scq-card); border: 1px solid var(--scq-line); border-radius: var(--scq-radius); color: var(--scq-ink); }
.scq-row { display: flex; flex-wrap: wrap; gap: 16px; }
.scq-row > .scq-field { flex: 1 1 240px; min-width: 0; }
.scq-field, .scq-captcha { display: flex; flex-direction: column; gap: 6px; }
.scq label { font-size: 14px; font-weight: 600; color: var(--scq-ink); }
.scq-req { color: var(--scq-bad); font-weight: 700; }
.scq input[type=text], .scq input[type=email], .scq input[type=tel], .scq select, .scq textarea {
    width: 100%; min-height: 42px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--scq-ink);
    background: var(--scq-input); border: 1px solid var(--scq-line); border-radius: calc(var(--scq-radius) * .7); box-sizing: border-box; }
.scq textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.scq input:focus, .scq select:focus, .scq textarea:focus { outline: 0; border-color: var(--scq-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--scq-accent) 22%, transparent); }
.scq-invalid input, .scq-invalid select, .scq-invalid textarea { border-color: var(--scq-bad); }
.scq-hint { font-size: 12.5px; color: var(--scq-muted); }
.scq-err { font-size: 13px; color: var(--scq-bad); font-weight: 600; }
.scq-alert { margin: 0; padding: 10px 14px; border-radius: calc(var(--scq-radius) * .7); background: color-mix(in srgb, var(--scq-bad) 10%, transparent); color: var(--scq-bad); font-weight: 600; }
.scq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.scq-cap-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.scq-cap-img { border-radius: 6px; flex: 0 0 auto; max-width: 100%; height: auto; }
.scq-cap-row input { flex: 1 1 160px; max-width: 220px; letter-spacing: .12em; }
.scq-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.45; }
.scq-consent input { margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; }
.scq-consent a { color: var(--scq-accent); }
.scq-actions { display: flex; justify-content: flex-end; }
.scq-btn { min-height: 44px; padding: 10px 22px; border: 0; border-radius: calc(var(--scq-radius) * .7); background: var(--scq-accent); color: var(--scq-on-accent); font: inherit; font-weight: 700; cursor: pointer; }
.scq-btn:hover { filter: brightness(1.08); }
.scq-done h2 { margin: 0; font-size: 20px; }
.scq-done p { margin: 0; }
.scq-done a { color: var(--scq-accent); font-weight: 600; }
@media (max-width: 560px) { .scq, .scq-done { padding: 16px; } .scq-actions .scq-btn { width: 100%; } }

/* APAAR (DigiLocker) education verification */
.apaar-stamp { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 2px 9px; white-space: nowrap; vertical-align: middle; }
.apaar-stamp-sm { font-size: 11px; padding: 1px 8px; }
.apaar-facts { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.apaar-facts li { display: flex; gap: 8px; align-items: flex-start; }
.apaar-facts .icon { flex: none; margin-top: 2px; }
.apaar-review h2 { margin-bottom: 12px; }
.apaar-item { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; }
.apaar-item legend { padding: 0 6px; font-size: 15px; }
.apaar-choices { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; }
.apaar-diff { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.apaar-diff th, .apaar-diff td { text-align: left; padding: 7px 8px; border-top: 1px solid var(--line-2); vertical-align: top; }
.apaar-diff thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 12px; }
.apaar-diff input { width: 17px; height: 17px; accent-color: var(--navy); }
@media (max-width: 560px) { .apaar-diff thead { display: none; } .apaar-diff tr { display: flex; flex-wrap: wrap; gap: 4px 10px; border-top: 1px solid var(--line-2); padding: 6px 0; } .apaar-diff th, .apaar-diff td { border: 0; padding: 2px 0; } }
