/* GovJam — GIE brand system
   Primary: #635493 purple · #759AA4 teal · #DDDDDD light gray · #1E1E1E dark gray
   Secondary: #3D3779 · #446E73 · #CE5928 · #DE7833
   Typeface: Articulat CF (self-host in /assets/fonts to enable) → IBM Plex Sans Arabic fallback */

/* Brand typeface is Articulat CF (licensed). If it is installed on the device it is used automatically;
   to serve it to everyone, add the licensed .woff2 files to /assets/fonts and extend these rules. */
@font-face { font-family: 'Articulat CF'; src: local('Articulat CF'), local('ArticulatCF-Regular'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: local('Articulat CF Medium'), local('ArticulatCF-Medium'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: local('Articulat CF Bold'), local('ArticulatCF-Bold'); font-weight: 700 800; font-display: swap; }
/* Self-hosted IBM Plex Sans Arabic (OFL) — no third-party font requests */
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('/assets/fonts/plex-arabic-arabic-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('/assets/fonts/plex-arabic-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('/assets/fonts/plex-arabic-arabic-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('/assets/fonts/plex-arabic-latin-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('/assets/fonts/plex-arabic-arabic-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('/assets/fonts/plex-arabic-latin-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('/assets/fonts/plex-arabic-arabic-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('/assets/fonts/plex-arabic-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #1E1E1E; --ink-2: #2A2A2C; --ink-3: #3A3A3E;
  --paper: #FFFFFF; --mist: #DDDDDD; --bg: #F2F2F3; --line: #E3E3E6; --line-2: #D2D2D7;
  --muted: #6B6B73; --muted-2: #8E8E96;
  --purple: #635493; --purple-deep: #3D3779; --purple-soft: #EEEBF6;
  --teal: #759AA4; --teal-deep: #446E73; --teal-soft: #E6EFF1;
  --orange: #CE5928; --orange-2: #DE7833; --orange-soft: #FBEDE6;
  --ok: #2F7D5B; --ok-soft: #E4F3EC;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30,30,30,.05), 0 8px 24px -12px rgba(30,30,30,.18);
  --font: 'Articulat CF', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 15px; }
img { max-width: 100%; }
a { color: var(--purple); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px;
  padding: 10px 18px; font: 600 14px/1.2 var(--font); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: #564889; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; border-color: var(--muted-2); }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }
.btn-pass { background: var(--teal-deep); color: #fff; }
.btn-pass:hover { background: #3a5f63; }
.btn-reject { background: #fff; color: var(--orange); border-color: #EBC2AF; }
.btn-reject:hover { background: var(--orange-soft); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn-linkedin { background: #0A66C2; color: #fff; }
.btn-linkedin:hover { background: #084f96; }
.linklike { background: none; border: 0; padding: 0; color: var(--purple); font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- form controls */
label.f { display: block; margin-bottom: 16px; }
label.f > span, .f-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.req { color: var(--orange); margin-inline-start: 3px; }
.opt { color: var(--muted-2); font-weight: 400; font-size: 12px; margin-inline-start: 6px; }
input:not([type]), input[type=text], input[type=search], input[type=email], input[type=password], input[type=url], input[type=number], input[type=tel], input[type=date], input[type=time], select, textarea {
  width: 100%; font: 400 15px/1.5 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(99,84,147,.15); }
input[dir=ltr] { text-align: left; }
.invalid input, .invalid textarea, .invalid select, .invalid .choice-grid { border-color: var(--orange) !important; box-shadow: 0 0 0 3px rgba(206,89,40,.12); }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.counter { float: left; color: var(--muted-2); font-size: 12px; font-weight: 400; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-radius: 12px; }
.choice { position: relative; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-2); background: #fff; border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 500; }
.choice input { margin-top: 5px; accent-color: var(--purple); }
.choice:has(input:checked) { border-color: var(--purple); background: var(--purple-soft); box-shadow: inset 0 0 0 1px var(--purple); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--purple); flex: none; }
.check:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.file-box { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 14px; background: #fff; flex-wrap: wrap; }
.file-box.has { border-style: solid; border-color: var(--teal); background: var(--teal-soft); }
.file-box .fname { flex: 1; min-width: 160px; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- cards / layout */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-title h2, .card-title h3 { margin: 0; font-size: 17px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #EFEFF1; color: var(--ink-3); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.b-draft { background: #EFEFF1; color: #6B6B73; }
.b-submitted { background: var(--purple-soft); color: var(--purple); }
.b-passed { background: var(--teal-soft); color: var(--teal-deep); }
.b-rejected { background: var(--orange-soft); color: var(--orange); }
.b-winner { background: #FFF1DA; color: #A45B00; }
.b-warn { background: #FFF4E5; color: #9A5B00; }
.b-track-individual { background: #EEF4F5; color: var(--teal-deep); }
.b-track-startup { background: var(--purple-soft); color: var(--purple-deep); }

/* ---------- toast & modal */
#toasts { position: fixed; inset-inline: 0; bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 100; pointer-events: none; padding: 0 16px; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 500; max-width: 520px; pointer-events: auto; animation: tin .2s ease-out; }
.toast.err { background: var(--orange); }
.toast.ok { background: var(--teal-deep); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(20,20,24,.55); backdrop-filter: blur(3px); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 520px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.35); position: relative; }
.modal.wide { max-width: 860px; }
.modal h2 { font-size: 20px; }
.modal .x { position: absolute; top: 14px; inset-inline-end: 14px; border: 0; background: #F1F1F3; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--ink); }

/* ---------- brand header (dark) */
.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.brand-pair { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-pair .logo-gie { height: 26px; }
.brand-pair .logo-dga { height: 34px; }
.brand-pair .sep { width: 1px; height: 26px; background: rgba(255,255,255,.25); }
.topbar .who { font-size: 13px; color: #cfcfd4; }
@media (max-width: 560px) { .brand-pair .logo-gie { height: 20px; } .brand-pair .logo-dga { height: 23px; } .topbar .who { display: none; } }

/* ---------- brand elements: blurred geometric shapes + grain */
.shape { position: absolute; display: block; filter: blur(9px); pointer-events: none; }
.shape::before { content: ''; position: absolute; inset: 0; }
.shape-semis { width: 240px; height: 240px; }
.shape-semis::before { background: linear-gradient(180deg, #2f4f53 0%, #759AA4 55%, #cfe9f2 100%);
  -webkit-mask: radial-gradient(circle at 50% 0, #000 70%, transparent 70.5%) top/100% 50% no-repeat, radial-gradient(circle at 50% 0, #000 70%, transparent 70.5%) bottom/100% 50% no-repeat;
          mask: radial-gradient(circle at 50% 0, #000 70%, transparent 70.5%) top/100% 50% no-repeat, radial-gradient(circle at 50% 0, #000 70%, transparent 70.5%) bottom/100% 50% no-repeat; }
.shape-semis.warm::before { background: linear-gradient(180deg, #6a2e14 0%, #CE5928 45%, #F2A36B 100%); }
.shape-tri { width: 220px; height: 220px; }
.shape-tri::before { background: linear-gradient(135deg, #3D3779 10%, #635493 55%, #9C8FD0 90%);
  clip-path: polygon(50% 0, 100% 50%, 0 50%, 50% 0, 50% 50%, 100% 100%, 0 100%, 50% 50%); }
.shape-diamonds { width: 220px; height: 220px; }
.shape-diamonds::before { background: linear-gradient(90deg, #3D3779, #635493 55%, rgba(176,160,240,.5));
  clip-path: polygon(50% 0, 100% 25%, 50% 50%, 0 25%, 50% 0, 50% 50%, 100% 75%, 50% 100%, 0 75%, 50% 50%); }
.shape-k { width: 200px; height: 200px; }
.shape-k::before { background: linear-gradient(135deg, #CE5928, #DE7833 60%, #F2A36B);
  clip-path: polygon(0 0, 50% 0, 0 50%, 50% 100%, 0 100%, 0 0, 50% 0, 100% 0, 50% 50%, 100% 100%, 50% 100%, 50% 50%); }
.grain { position: absolute; inset: 0; background-image: var(--grain); opacity: .09; mix-blend-mode: overlay; pointer-events: none; }

/* ---------- dark pages */
.dark-page { background: var(--ink); color: #fff; }
.center-msg { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; }

/* ---------- landing */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 10% 100%, rgba(99,84,147,.55), transparent 60%), radial-gradient(40% 60% at 95% 10%, rgba(117,154,164,.35), transparent 60%); }
.hero .grain { opacity: .12; }
.hero-in { position: relative; max-width: 1200px; margin: 0 auto; padding: 22px 20px 90px; }
.hero-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 70px; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 700; letter-spacing: -.5px; max-width: 760px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #B9AEE0; }
.hero .lead { font-size: clamp(16px, 2vw, 19px); color: #D4D4DA; max-width: 620px; margin-bottom: 30px; }
.hero .kicker { display: inline-block; font-size: 13px; letter-spacing: 1px; color: #B0DDFF; border: 1px solid rgba(176,221,255,.3); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
.hero-shapes { position: absolute; inset-inline-end: 4%; top: 90px; width: 380px; height: 460px; }
.hero-shapes .shape-semis { inset-inline-end: 110px; top: 0; }
.hero-shapes .shape-tri { inset-inline-end: 0; top: 220px; opacity: .9; }
@media (max-width: 980px) { .hero-shapes { opacity: .3; inset-inline-end: -120px; } }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #cfd; background: rgba(47,125,91,.2); border: 1px solid rgba(80,180,130,.35); padding: 5px 12px; border-radius: 999px; margin-inline-start: 10px; }
.status-pill.closed { color: #fdd; background: rgba(206,89,40,.18); border-color: rgba(206,89,40,.4); }

.section { max-width: 1200px; margin: 0 auto; padding: 70px 20px; }
.section h2.sec { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 8px; }
.section .sec-sub { color: var(--muted); margin-bottom: 30px; max-width: 700px; }
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: st; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.journey .st { padding: 24px 22px; position: relative; border-inline-start: 1px solid var(--line); }
.journey .st:first-child { border-inline-start: 0; }
.journey .st .n { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.journey .st h3 { font-size: 18px; margin: 6px 0 6px; }
.journey .st p { color: var(--muted); font-size: 14px; margin: 0; }
.journey .st .bar { height: 4px; border-radius: 4px; margin-bottom: 16px; }
@media (max-width: 860px) { .journey { grid-template-columns: 1fr 1fr; } .journey .st:nth-child(3) { border-inline-start: 0; } .journey .st:nth-child(n+3) { border-top: 1px solid var(--line); } }
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.track-card { border-radius: 18px; padding: 26px; color: #fff; position: relative; overflow: hidden; min-height: 250px; }
.track-card.t-ind { background: linear-gradient(120deg, #1E1E1E 0%, #2c4447 60%, #446E73 100%); }
.track-card.t-su { background: linear-gradient(120deg, #1E1E1E 0%, #3D3779 60%, #635493 100%); }
.track-card h3 { font-size: 22px; }
.track-card p { color: #dcdce2; max-width: 440px; }
.wbars { display: grid; gap: 7px; margin-top: 14px; max-width: 420px; position: relative; }
.wbar { display: grid; grid-template-columns: 130px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; color: #e8e8ec; }
.wbar i { display: block; height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden; }
.wbar i b { display: block; height: 100%; background: #fff; border-radius: 6px; }
@media (max-width: 860px) { .tracks { grid-template-columns: 1fr; } }
.ch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ch { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.ch .ent { font-size: 12.5px; color: var(--purple); font-weight: 600; }
.ch h4 { margin: 4px 0 6px; font-size: 16px; }
.ch p { color: var(--muted); font-size: 14px; margin: 0; }
.site-foot { background: var(--ink); color: #aaa; }
.site-foot .in { max-width: 1200px; margin: 0 auto; padding: 30px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- auth */
.auth-tabs { display: flex; gap: 4px; background: #F1F1F3; padding: 4px; border-radius: 12px; margin-bottom: 20px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 9px; font: 600 14px var(--font); cursor: pointer; color: var(--muted); }
.auth-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.form-err { background: var(--orange-soft); color: var(--orange); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }

/* ---------- app shell (applicant / judge) */
.page { max-width: 980px; margin: 0 auto; padding: 28px 20px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; margin: 0; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.tl { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; position: relative; }
.tl .n { font-size: 12px; color: var(--muted-2); font-weight: 600; }
.tl b { display: block; font-size: 14.5px; }
.tl .s { font-size: 12.5px; color: var(--muted); }
.tl.done { border-color: #bcd3d7; background: var(--teal-soft); }
.tl.done .n { color: var(--teal-deep); }
.tl.now { border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
.tl.now .n { color: var(--purple); }
.tl.fail { border-color: #EBC2AF; background: var(--orange-soft); }
@media (max-width: 700px) { .timeline { grid-template-columns: 1fr 1fr; } }
.hero-card { border-radius: 18px; padding: 26px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(115deg, #1E1E1E 0%, #3D3779 70%, #635493 100%); margin-bottom: 18px; }
.hero-card.teal { background: linear-gradient(115deg, #1E1E1E 0%, #2c4447 60%, #446E73 100%); }
.hero-card.warm { background: linear-gradient(115deg, #1E1E1E 0%, #6a2e14 60%, #CE5928 100%); }
.hero-card h2 { font-size: 22px; margin-bottom: 8px; }
.hero-card p { color: #e1e1e6; max-width: 620px; }
.hero-card .shape { opacity: .8; }
.hero-card > *:not(.shape):not(.grain) { position: relative; }
.form-steps { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: thin; }
.form-steps button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 7px 14px; font: 500 13px var(--font); cursor: pointer; white-space: nowrap; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }
.form-steps button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.form-steps button .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.form-steps button.ok .dot { background: var(--teal); }
.form-steps button.miss .dot { background: var(--orange-2); }
.member { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: #FAFAFB; }
.member-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.sticky-actions { padding: 16px 0 8px; margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; z-index: 5; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; } }
.cert-tile { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); }
.cert-tile:hover { border-color: var(--purple); }
.cert-tile .mini { width: 84px; height: 58px; border-radius: 8px; background: linear-gradient(120deg, #1E1E1E, #3D3779 70%, #635493); position: relative; overflow: hidden; flex: none; }
.cert-tile .mini::after { content: ''; position: absolute; width: 26px; height: 26px; inset-inline-start: 8px; bottom: 6px; background: #759AA4; filter: blur(5px); border-radius: 50% 50% 0 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.loading { display: flex; justify-content: center; padding: 60px; }
.spin { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--purple); border-radius: 50%; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* print */
@media print { .no-print { display: none !important; } }
.grid-2 > .card + .card, .grid-3 > .card + .card, .grid-4 > .card + .card { margin-top: 0; }
.grid-2 + .card, .grid-2 + .grid-2 { margin-top: 16px; }
