/* XCL Technologies — Employee & Intern Portal
   VOICE   confident software-house, same voice as xcltechnologies.com
   IDEA    the XCL umbrella: one company sheltering every person's record
   PICTURE the eight-panel orange/charcoal umbrella, spinning open
   COLOUR  off-white #FBFAF9, charcoal #252324, XCL orange #F67510
   TYPE    Unbounded display · Instrument Sans text · JetBrains Mono labels */

:root {
  color-scheme: light;
  --bg: #FBFAF9; --surface: #FFFFFF; --tint: #F3F0EE; --tint-2: #ECE7E4;
  --ink: #1F1C1D; --ink-2: #4B4547; --muted: #7A7274; --line: #E6E0DD; --line-2: #D9D1CD;
  --orange: #F67510; --orange-2: #FF8B2E; --orange-ink: #B65108; --orange-soft: #FFF0E3;
  --char: #252324; --char-2: #33302F; --char-3: #403C3B; --on-char: #F4F1EF; --on-char-2: #A9A2A0;
  --ok: #1E8E5A; --ok-soft: #E6F4EC; --err: #C2361F; --err-soft: #FDEEEA; --warn: #8A5A00; --warn-soft: #FFF5DE;
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-mark: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .75, .15, 1);
  --r: 18px; --r-lg: 24px;
  --shadow: 0 1px 0 rgba(37, 35, 36, .04), 0 18px 40px -22px rgba(37, 35, 36, .28);
  --shadow-lg: 0 2px 0 rgba(37, 35, 36, .04), 0 40px 80px -30px rgba(37, 35, 36, .38);
}
:root[data-theme=light], :root[data-theme=dark] { color-scheme: light; }

* { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--f-body); overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; }
body > #app { flex: 1; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; color: var(--ink); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1220px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--f-mono); letter-spacing: .02em; }
.accent { color: var(--orange); }
.nowrap { white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 13px; height: 13px; flex: none; background: url("../img/logo.svg") center / contain no-repeat; }
.on-char .eyebrow { color: var(--on-char-2); }
.display { font: 700 clamp(2.3rem, 5.6vw, 4.6rem)/1.02 var(--f-display); letter-spacing: -.035em; text-wrap: balance; }
.display-sm { font: 700 clamp(1.8rem, 3.6vw, 3rem)/1.05 var(--f-display); letter-spacing: -.03em; text-wrap: balance; }
.h2 { font: 700 clamp(1.5rem, 2.6vw, 2.15rem)/1.1 var(--f-display); letter-spacing: -.025em; text-wrap: balance; }
.h3 { font: 600 1.2rem/1.2 var(--f-display); letter-spacing: -.02em; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-2); max-width: 600px; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; animation: wordIn .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }

/* ---------- buttons ---------- */
.btn { --bg: var(--surface); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; background: var(--bg); color: var(--fg); font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, border-color .25s, color .25s; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .arr { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover:not(:disabled) .arr { transform: translateX(4px); }
.btn-orange { --bg: var(--orange); --fg: #fff; box-shadow: 0 14px 28px -14px rgba(246, 117, 16, .7); }
.btn-orange:hover:not(:disabled) { --bg: var(--orange-2); box-shadow: 0 20px 34px -14px rgba(246, 117, 16, .75); }
.btn-char { --bg: var(--char); --fg: #fff; }
.btn-char:hover:not(:disabled) { --bg: #000; }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn-light { --bg: rgba(255, 255, 255, .08); --fg: var(--on-char); border-color: rgba(255, 255, 255, .18); }
.btn-light:hover:not(:disabled) { --bg: rgba(255, 255, 255, .16); }
.btn-danger { --bg: var(--err); --fg: #fff; }
.btn-danger-ghost { --fg: var(--err); border-color: #F1C9C0; }
.btn-danger-ghost:hover:not(:disabled) { --bg: var(--err-soft); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; gap: 7px; }
.btn-block { width: 100%; }
.play { width: 28px; height: 28px; border-radius: 50%; background: var(--char); display: grid; place-items: center; color: #fff; }
.link { background: none; border: 0; padding: 2px 0; font: 600 14px/1.3 var(--f-body); color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--orange); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { color: var(--orange-ink); }
.link.danger { color: var(--err); border-color: #F1C9C0; }

/* ---------- nav ---------- */
.topnav { position: sticky; top: 0; z-index: 40; background: rgba(251, 250, 249, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.topnav.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(37, 35, 36, .4); }
.topnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .mark svg { width: 100%; height: 100%; animation: spinIn 1.1s var(--ease) both; }
.brand:hover .mark svg { animation: spinSlow 1.6s var(--ease); }
.wordmark { font: 800 17px/1 var(--f-mark); letter-spacing: .06em; text-transform: uppercase; }
.wordmark small { display: block; font: 500 10px/1.2 var(--f-mono); letter-spacing: .18em; color: var(--muted); margin-top: 4px; }
.pillnav { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.pillnav a { padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background .25s, color .25s; white-space: nowrap; }
.pillnav a:hover { color: var(--ink); background: var(--tint); }
.pillnav a.on { background: var(--char); color: #fff; }
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--orange), var(--orange-2)); transition: transform .25s linear; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.on-char { background: var(--char); color: var(--on-char); }
.on-char h1, .on-char h2, .on-char h3, .on-char h4 { color: #fff; }
.band { padding: clamp(56px, 8vw, 110px) 0; }
.band-tint { background: var(--tint); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.chip.dark { background: var(--char); color: #fff; border-color: var(--char); }
.chip.orange { background: var(--orange-soft); color: var(--orange-ink); border-color: #FBD9BC; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s ease-out infinite; }
.dot.orange { background: var(--orange); }

/* ---------- umbrella ---------- */
.umb { display: block; overflow: visible; }
.umb path { transform-box: view-box; transform-origin: 50% 50%; }
.umb.opening path { animation: segIn .9s var(--ease) both; animation-delay: calc(var(--k) * 70ms + 150ms); }
.umb .gloss { pointer-events: none; }
.spin-slow { animation: spinSlow 60s linear infinite; }

/* ---------- hero (home) ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(30px, 4vw, 56px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; }
.hero-art .umb-wrap { position: absolute; inset: 6%; filter: drop-shadow(0 40px 40px rgba(37, 35, 36, .22)); }
.hero-art .umb-wrap svg, .spin-slow > svg, .side-umb svg, .big-umb svg, .ghost-umb svg, .bg-umb svg { width: 100%; height: 100%; }
.hero-art .shadow { position: absolute; left: 18%; right: 18%; bottom: -2%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(37, 35, 36, .22), transparent); }
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font: 500 12.5px/1.2 var(--f-mono); letter-spacing: .04em; animation: rise .9s var(--ease) both, float 6s ease-in-out infinite; white-space: nowrap; }
.float b { display: block; font: 700 14px/1.2 var(--f-display); letter-spacing: -.01em; }
.float .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); flex: none; }
.float.f1 { top: 6%; left: -4%; animation-delay: .6s, .6s; }
.float.f2 { bottom: 14%; right: -6%; animation-delay: .8s, 1.8s; }
.float.f3 { bottom: 2%; left: 4%; animation-delay: 1s, 3s; }
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(30px, 5vw, 60px); border-top: 1px solid var(--line); }
.stats-strip > div { padding: 24px 12px 6px; text-align: center; border-left: 1px solid var(--line); }
.stats-strip > div:first-child { border-left: 0; }
.stats-strip b { display: block; font: 700 clamp(2rem, 3.6vw, 2.8rem)/1 var(--f-display); letter-spacing: -.03em; }
.stats-strip span { color: var(--muted); font-size: 14.5px; }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-sm { display: grid; gap: 16px; }

/* category cards */
.sec-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-intro .lead { max-width: 440px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cat { position: relative; display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 3.4vw, 40px); border-radius: var(--r-lg); text-decoration: none; overflow: hidden; min-height: 360px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat.dark { background: var(--char); color: var(--on-char); border-color: var(--char); }
.cat.dark h3 { color: #fff; }
.cat .tag-line { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
.cat h3 { font: 700 clamp(1.9rem, 3.4vw, 2.7rem)/1 var(--f-display); letter-spacing: -.035em; }
.cat p { color: inherit; opacity: .8; max-width: 420px; }
.cat .idfmt { display: inline-flex; gap: 8px; align-items: center; font: 500 13px/1 var(--f-mono); padding: 9px 13px; border-radius: 10px; background: var(--tint); color: var(--ink); align-self: flex-start; }
.cat.dark .idfmt { background: var(--char-2); color: #fff; }
.cat .go { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.cat .go .circle { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; transition: transform .45s var(--ease); }
.cat:hover .go .circle { transform: rotate(-45deg) scale(1.06); }
.cat .ghost-umb { position: absolute; right: -70px; bottom: -70px; width: 260px; height: 260px; opacity: .1; transition: transform 1.2s var(--ease), opacity .5s; }
.cat.dark .ghost-umb { opacity: .16; }
.cat:hover .ghost-umb { transform: rotate(90deg); opacity: .22; }

/* process timeline (dark band) */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; margin-top: clamp(30px, 4vw, 50px); }
.process::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 1.5px; background: var(--char-3); }
.process::after { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 1.5px; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.8s var(--ease) .2s; }
.process.in::after { transform: scaleX(1); }
.step { position: relative; display: grid; gap: 12px; align-content: start; }
.step .num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--f-mono); background: var(--orange); color: #fff; box-shadow: 0 0 0 7px rgba(246, 117, 16, .18); position: relative; z-index: 1; }
.step:last-child .num { background: var(--char); border: 1.5px solid var(--char-3); box-shadow: none; }
.step h3 { font: 600 1.15rem/1.2 var(--f-display); margin-top: 8px; }
.step p { color: var(--on-char-2); font-size: 15px; }
.step .out { font: 500 11px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: mq 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; font: 600 clamp(1.1rem, 2vw, 1.5rem)/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.marquee span i { width: 18px; height: 18px; flex: none; background: url("../img/logo.svg") center / contain no-repeat; }
.marquee span:nth-child(even) { color: var(--muted); }

/* footer */
.foot { background: var(--char); color: var(--on-char-2); padding: 40px 0 34px; margin-top: auto; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot .brand { color: #fff; }
.foot .wordmark small { color: var(--on-char-2); }
.foot p { font-size: 14px; }
.foot a { color: #fff; }

/* ---------- form page ---------- */
.form-hero { padding: clamp(30px, 4.5vw, 60px) 0 clamp(22px, 3vw, 36px); }
.form-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; }
.form-hero .copy { display: grid; gap: 18px; }
.form-hero .facts { display: flex; flex-wrap: wrap; gap: 8px; }
.form-hero .side-umb { width: 150px; height: 150px; }
.form-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(22px, 3vw, 44px); align-items: start; padding-bottom: 80px; }
.rail { position: sticky; top: 100px; }
.rail ol { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 4px; }
.rail ol::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 1.5px; background: var(--line); }
.rail ol::after { content: ""; position: absolute; left: 17px; top: 18px; width: 1.5px; height: calc((100% - 36px) * var(--rp, 0)); background: var(--orange); transition: height .4s var(--ease); }
.rail li button { position: relative; z-index: 1; width: 100%; display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 0; background: none; border: 0; cursor: pointer; text-align: left; border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .25s; }
.rail li button:hover { color: var(--ink); }
.rail .n { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 600 11.5px/1 var(--f-mono); background: var(--surface); border: 1.5px solid var(--line-2); color: var(--muted); transition: background .3s, color .3s, border-color .3s, box-shadow .3s; }
.rail li.done .n { background: var(--orange); border-color: var(--orange); color: #fff; }
.rail li.cur button { color: var(--ink); font-weight: 600; }
.rail li.cur .n { background: var(--char); border-color: var(--char); color: #fff; box-shadow: 0 0 0 6px rgba(246, 117, 16, .2); }
.rail li.bad .n { background: var(--err); border-color: var(--err); color: #fff; }
.rail .rail-foot { margin-top: 20px; padding: 16px; border-radius: 16px; background: var(--tint); font-size: 13.5px; color: var(--ink-2); }
.rail .rail-foot b { display: block; font: 700 1.6rem/1 var(--f-display); color: var(--ink); margin-bottom: 4px; }

.form-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 36px); margin-bottom: 22px; }
.section-head { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px dashed var(--line-2); }
.sec-num { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font: 600 13px/1 var(--f-mono); box-shadow: 0 0 0 6px var(--orange-soft); }
.section-head h2 { font: 700 clamp(1.15rem, 2vw, 1.45rem)/1.15 var(--f-display); letter-spacing: -.02em; }
.section-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.sub-head { font: 500 11.5px/1.3 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--orange-ink); margin: 6px 0 16px; display: flex; align-items: center; gap: 10px; }
.sub-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid + .sub-head, .grid + .repeater .sub-head { margin-top: 28px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.lbl { font: 500 11.5px/1.35 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lbl .opt { letter-spacing: .04em; text-transform: none; color: var(--line-2); font-weight: 400; }
.lbl .req { color: var(--orange); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=url], input[type=search], input[type=password], select, textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .25s, background .2s; appearance: none; -webkit-appearance: none; }
select { padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23252324' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
option, optgroup { color: #1F1C1D; background-color: #fff; }
input::placeholder, textarea::placeholder { color: #A9A1A2; }
input:hover, select:hover, textarea:hover { border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); background: var(--surface); box-shadow: 0 0 0 4px rgba(246, 117, 16, .14); }
.hint { color: var(--muted); font-size: 13px; line-height: 1.4; }
.err { color: var(--err); font-size: 13px; font-weight: 600; }
.err:empty { display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .file-box { border-color: var(--err); background: #FFF8F6; }
.field.invalid { animation: shake .45s var(--ease); }
.file-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--bg); transition: border-color .2s, background .2s; }
.file-box:hover, .file-box:focus-within { border-color: var(--orange); background: var(--orange-soft); }
.file-box input[type=file] { font-size: 14px; max-width: 100%; color: var(--ink-2); }
.file-box input[type=file]::file-selector-button { margin-right: 12px; padding: 9px 16px; border-radius: 999px; border: 0; background: var(--char); color: #fff; font: 600 13px/1 var(--f-body); cursor: pointer; }
.file-meta { font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.file-meta .ok { color: var(--ok); font-weight: 600; }
.file-meta a { color: var(--ink); font-weight: 600; }
.photo-preview img { width: 112px; height: 140px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); animation: pop .5s var(--ease) both; }
.link-btn { background: none; border: 0; padding: 0; font: 600 13.5px/1.3 var(--f-body); color: var(--ink); border-bottom: 1.5px solid var(--orange); cursor: pointer; }
.link-btn.danger { color: var(--err); border-color: #F1C9C0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 11px; padding: 11px 14px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; font-size: 15px; transition: border-color .2s, background .2s, transform .2s; }
.check:hover { border-color: var(--line-2); }
.check input { width: 18px; height: 18px; accent-color: var(--orange); flex: none; margin: 0; }
.check:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.check.declaration { align-items: flex-start; line-height: 1.6; padding: 18px 20px; }
.check.declaration input { margin-top: 4px; }
.repeater { margin-top: 24px; }
.repeater > .muted { margin-bottom: 12px; }
.rep-items { display: grid; gap: 16px; margin-bottom: 14px; }
.rep-item { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--bg); animation: rise .5s var(--ease) both; }
.rep-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.rep-head h4 { font: 500 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); }
.repeater > .err { display: block; margin: -4px 0 12px; }
.repeater.invalid .rep-empty { border-color: var(--err); color: var(--err); background: #FFF8F6; }
.custom-grid { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.rep-empty { margin: 0 0 12px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line-2); text-align: center; }
.repeater [data-add] { border-style: dashed; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { background: var(--tint); border-radius: 999px; padding: 7px 13px; font: 500 12px/1 var(--f-mono); color: var(--ink-2); }
.pill b { color: var(--orange-ink); }
.submit-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 26px clamp(22px, 3vw, 34px); border-radius: var(--r-lg); }
.submit-card .status { flex: 1 1 240px; }
.submit-card p { color: var(--on-char-2); font-size: 14.5px; }
.alert { border-radius: 14px; padding: 14px 18px; border: 1px solid; font-size: 14.5px; }
.alert.error { background: var(--err-soft); color: var(--err); border-color: #F4CDC4; }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: #F2DDA4; }
.alert.success { background: var(--ok-soft); color: var(--ok); border-color: #BFE3CF; }
.alert.info { background: var(--orange-soft); color: var(--orange-ink); border-color: #FBD9BC; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* success */
.success { padding: clamp(40px, 8vw, 100px) 0; }
.success .card { max-width: 760px; margin: 0 auto; padding: clamp(30px, 5vw, 56px); text-align: center; display: grid; gap: 18px; justify-items: center; position: relative; overflow: hidden; }
.success .burst { position: relative; width: 150px; height: 150px; }
.success .burst svg { width: 100%; height: 100%; }
.success .burst { margin-bottom: 8px; }
.success .burst::before, .success .burst::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--orange); animation: ring 2.6s ease-out infinite; }
.success .burst::after { animation-delay: 1.2s; }
.id-box { display: inline-flex; align-items: center; gap: 14px; padding: 14px 14px 14px 26px; border-radius: 999px; border: 1.5px dashed var(--orange); background: var(--orange-soft); animation: pop .7s var(--ease) .5s both; }
.id-box b { font: 700 clamp(1.3rem, 3vw, 1.9rem)/1 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: fall 2.6s var(--ease) forwards; }

/* ---------- login ---------- */
.login { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.login-art { position: relative; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; overflow: hidden; }
.login-art .brand { color: #fff; }
.login-art .big-umb { position: absolute; z-index: 0; width: min(500px, 72%); aspect-ratio: 1; right: -14%; top: 6%; opacity: .9; pointer-events: none; }
.login-art > .brand { position: relative; z-index: 1; }
.login-art .copy { position: relative; z-index: 1; display: grid; gap: 20px; max-width: 520px; }
.login-art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; position: relative; }
.login-art li { display: flex; gap: 12px; align-items: center; color: var(--on-char); font-size: 15px; }
.login-art li i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; flex: none; font-style: normal; font: 600 10.5px/1 var(--f-mono); }
.login-form { display: grid; place-items: center; padding: clamp(28px, 4vw, 56px); }
.login-card { width: min(440px, 100%); display: grid; gap: 18px; }
.login-card .h2 { margin-top: 4px; }
.demo-hint { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--orange-soft); border: 1px dashed #F6C49A; font-size: 14px; color: var(--orange-ink); }
.demo-hint code { font: 600 13.5px/1.4 var(--f-mono); color: var(--ink); }
.login-card { animation: rise .8s var(--ease) both; }
.login-card.swap { animation: rise .45s var(--ease) both; }
.login-stack { display: grid; gap: 16px; }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lbl-row .link-btn { font-size: 13px; }
.demo-hint small { color: var(--ink-2); font-size: 12.5px; }
.code-input { font: 600 26px/1 var(--f-mono) !important; letter-spacing: .5em; text-align: center; padding-left: calc(16px + .25em) !important; }
.code-input::placeholder { letter-spacing: .5em; color: var(--line-2); }
.strength { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: -6px; }
.strength span { height: 5px; border-radius: 999px; background: var(--tint-2); transition: background .25s; }
.strength b { grid-column: 1 / -1; font: 500 12px/1.3 var(--f-body); color: var(--muted); }
.strength[data-score="0"] span:nth-child(-n+1), .strength[data-score="1"] span:nth-child(-n+1) { background: var(--err); }
.strength[data-score="2"] span:nth-child(-n+2) { background: #E8A33D; }
.strength[data-score="3"] span:nth-child(-n+3) { background: var(--orange); }
.strength[data-score="4"] span:nth-child(-n+4) { background: var(--ok); }
.steps.recover { margin: 0; }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.side-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pw { position: relative; }
.pw input { padding-right: 72px; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 8px 10px; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-radius: 8px; }

/* ---------- dashboard ---------- */
.dash { flex: 1; display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 24px; }
.side .brand { color: #fff; }
.side .wordmark small { color: var(--on-char-2); }
.side-label { font: 500 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--on-char-2); margin-bottom: 10px; }
.view-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 14px; margin-bottom: 6px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--on-char); font: 500 15px/1 var(--f-body); cursor: pointer; transition: background .25s, border-color .25s; }
.view-btn:hover { background: var(--char-2); }
.view-btn.active { background: var(--char-2); border-color: var(--char-3); }
.view-btn .lab { display: flex; align-items: center; gap: 10px; }
.view-btn .lab svg { width: 18px; height: 18px; color: var(--on-char-2); }
.view-btn.active .lab svg { color: var(--orange); }
.view-btn .count { min-width: 30px; padding: 4px 9px; border-radius: 999px; background: var(--char-3); font: 600 12px/1 var(--f-mono); text-align: center; }
.view-btn.active .count { background: var(--orange); color: #fff; }
.side-field { display: grid; gap: 7px; }
.side-field > span { font-size: 13px; color: var(--on-char-2); }
.side select { background-color: #fff; border-color: #fff; color: var(--ink); min-height: 46px; font-size: 15px; font-weight: 500; }
.side select:hover { border-color: #fff; }
.side select:focus { background-color: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(246, 117, 16, .35); }
.side select.is-set { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.side-clear { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 2px; border: 0; background: none; color: var(--orange); font: 600 13.5px/1 var(--f-body); cursor: pointer; }
.side-clear:hover { color: var(--orange-2); }
.filters select.is-set { border-color: var(--orange); background-color: var(--orange-soft); }
.side .stack { display: grid; gap: 10px; }
.side-bottom { margin-top: auto; display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--char-3); }
.who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--on-char-2); }
.who .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font: 700 12px/1 var(--f-display); flex: none; }
.who b { display: block; color: #fff; font-weight: 600; }

.main { padding: clamp(20px, 3vw, 36px) clamp(18px, 3vw, 40px) 60px; display: grid; gap: 22px; align-content: start; }
.dash-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.dash-top .copy { display: grid; gap: 14px; }
.clock { display: grid; gap: 8px; justify-items: end; text-align: right; }
.clock b { font: 600 clamp(1.4rem, 2.4vw, 1.9rem)/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.stat { position: relative; padding: 20px 20px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 10px; overflow: hidden; }
.stat span { font: 500 11px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat b { font: 700 clamp(1.8rem, 2.8vw, 2.5rem)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 13px; }
.stat.hero-stat { background: var(--char); border-color: var(--char); color: var(--on-char); }
.stat.hero-stat span, .stat.hero-stat small { color: var(--on-char-2); }
.stat.hero-stat b { color: var(--orange); }
.stat .bg-umb { position: absolute; right: -26px; top: -26px; width: 96px; height: 96px; opacity: .16; }
.insights { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.panel-title h3 { font: 600 1.02rem/1.2 var(--f-display); letter-spacing: -.01em; }
.split { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--tint); }
.split i { display: block; height: 100%; width: 0; transition: width 1.1s var(--ease); }
.split .e { background: var(--char); }
.split .n { background: var(--orange); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bars { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 14px; }
.bar-row .track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--orange); transition: width 1.1s var(--ease); }
.bar-row:nth-child(even) .track i { background: var(--char); }
.bar-row b { font: 600 13px/1.4 var(--f-mono); }
.export-box { display: grid; gap: 14px; align-content: start; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 16px; background: var(--tint); }
.seg button { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; font: 600 12px/1 var(--f-mono); letter-spacing: .06em; color: var(--ink-2); transition: background .25s, color .25s, transform .25s; }
.seg button svg { width: 30px; height: 34px; }
.seg button:hover { background: rgba(255, 255, 255, .7); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 6px 16px -10px rgba(37, 35, 36, .5); }
.seg button.on svg .fold { fill: var(--orange); }
.export-box .scope { font-size: 13.5px; color: var(--muted); }

.records-panel { padding: 0; overflow: hidden; }
.records-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); gap: 16px; align-items: end; padding: 22px 22px 18px; }
.records-head h2 { font: 700 1.35rem/1.15 var(--f-display); letter-spacing: -.02em; }
.records-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.filters { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.search { position: relative; }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 42px; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table.records { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 900px; }
table.records th { text-align: left; padding: 13px 14px; font: 500 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.records td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.records tbody tr { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); transition: background .2s; }
table.records tbody tr:hover { background: #FFFAF5; }
table.records td.num { text-align: center; font-family: var(--f-mono); }
table.records td.name { min-width: 190px; }
table.records td.contact { min-width: 180px; overflow-wrap: anywhere; }
.idcell { font: 600 13px/1 var(--f-mono); white-space: nowrap; }
.idcell .tag { margin-top: 8px; }
.avatar { width: 44px; height: 54px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); background: var(--tint); display: grid; place-items: center; font: 700 14px/1 var(--f-display); color: var(--ink); }
.avatar.ph { background: linear-gradient(135deg, var(--orange-soft), var(--tint)); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-employee { background: var(--char); color: #fff; }
.tag-employee::before { background: var(--orange); }
.tag-intern { background: var(--orange-soft); color: var(--orange-ink); }
.row-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 12.5px/1 var(--f-body); color: var(--ink); cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn.sq { width: 34px; height: 34px; padding: 0; justify-content: center; }
.icon-btn.primary { background: var(--char); border-color: var(--char); color: #fff; }
.icon-btn.primary:hover { background: #000; }
.icon-btn.danger { color: var(--err); border-color: #F1C9C0; }
.icon-btn.danger:hover { background: var(--err-soft); }
.empty-row td { text-align: center; color: var(--muted); padding: 50px 14px !important; }
.empty-state { display: grid; justify-items: center; gap: 12px; }
.empty-state svg { width: 64px; height: 64px; opacity: .9; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.pager .btns { display: flex; gap: 8px; align-items: center; }
.cleanup-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.main > * { animation: rise .7s var(--ease) both; }
.main > *:nth-child(2) { animation-delay: .05s; } .main > *:nth-child(3) { animation-delay: .1s; }
.main > *:nth-child(4) { animation-delay: .15s; } .main > *:nth-child(5) { animation-delay: .2s; } .main > *:nth-child(6) { animation-delay: .25s; }
.empty-state b { font: 600 1.05rem/1.2 var(--f-display); color: var(--ink); }
.empty-state span { font-size: 14px; }
.toast b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #FF6A50; color: #fff; font-size: 13px; flex: none; }
.toast svg { flex: none; color: #3CC985; }

/* modals */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 28px 16px; overflow-y: auto; background: rgba(31, 28, 29, .55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fadeIn .3s ease both; }
.modal.confirm-layer { z-index: 80; align-items: center; }
.modal-card { width: min(980px, 100%); background: var(--surface); border-radius: 26px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55); display: flex; flex-direction: column; max-height: calc(100vh - 56px); overflow: hidden; animation: mIn .55s var(--ease) both; }
.modal-card.sm { width: min(470px, 100%); }
.modal-card.md { width: min(820px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font: 700 clamp(1.15rem, 2.2vw, 1.5rem)/1.15 var(--f-display); letter-spacing: -.02em; margin-top: 8px; }
.modal-close { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); transition: transform .35s var(--ease), border-color .2s; }
.modal-close:hover { transform: rotate(90deg); border-color: var(--ink); }
.modal-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 28px; background: var(--bg); border-bottom: 1px solid var(--line); }
.modal-toolbar .grow { flex: 1; }
.modal-toolbar select { width: auto; min-height: 38px; padding: 0 38px 0 14px; font-size: 14px; border-radius: 999px; background-position: right 14px center; }
.modal-body { padding: 24px 28px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--line); background: var(--bg); flex-wrap: wrap; }
.modal-body .form-section { box-shadow: none; padding: 22px; margin-bottom: 16px; }
.modal-body .sec-num { width: 42px; height: 42px; font-size: 12px; }
.profile-top { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; }
.profile-photo { width: 170px; height: 212px; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--orange-soft), var(--tint)); display: grid; place-items: center; font: 700 2.4rem/1 var(--f-display); color: var(--ink); box-shadow: var(--shadow); }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kv { padding: 11px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.kv span { display: block; font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.kv b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.kv a { color: var(--orange-ink); }
.kv.full { grid-column: 1 / -1; }
.pv-section { margin-top: 26px; }
.pv-section > h3 { display: flex; align-items: center; gap: 12px; font: 500 12px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 14px; }
.pv-section > h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pv-list { display: grid; gap: 10px; }
.pv-item { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); }
.pv-item h4 { font: 600 1rem/1.3 var(--f-body); margin-bottom: 4px; }
.pv-item p { margin: 3px 0; font-size: 14.5px; color: var(--ink-2); white-space: pre-wrap; }
.pv-item a { color: var(--orange-ink); font-weight: 600; }
.pv-empty { color: var(--muted); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { animation: pop .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); text-transform: none; letter-spacing: 0; font: 500 13.5px/1 var(--f-body); }
.meta-line { color: var(--muted); font-size: 13px; margin-top: 22px; font-family: var(--f-mono); }
.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.type-pick button { display: grid; gap: 10px; padding: 26px 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; text-align: left; transition: transform .35s var(--ease), border-color .25s, background .25s; }
.type-pick button:hover { transform: translateY(-3px); border-color: var(--orange); background: var(--orange-soft); }
.type-pick strong { font: 700 1.4rem/1 var(--f-display); letter-spacing: -.02em; }
.type-pick .mono { font-size: 12.5px; color: var(--muted); }
.steps { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; }
.steps li::marker { font-family: var(--f-mono); color: var(--orange); }
.import-preview { margin-top: 16px; }
.import-preview table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.import-preview th, .import-preview td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.import-preview th { font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.import-preview .table-wrap { border: 1px solid var(--line); border-radius: 14px; }
.result-list { margin: 8px 0 0; padding-left: 18px; }
.loading { padding: 50px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 14px; }
.loading svg { width: 48px; height: 48px; animation: spinSlow 1.4s var(--ease) infinite; }

/* coming up, trend, backup, activity */
.insights-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; }
.avatar.sm { width: 38px; height: 46px; border-radius: 10px; font-size: 12px; }
.up-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.up-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 12.5px/1 var(--f-body); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.up-tabs button b { font: 600 11px/1 var(--f-mono); padding: 3px 7px; border-radius: 999px; background: var(--tint); color: var(--ink); }
.up-tabs button.on { background: var(--char); border-color: var(--char); color: #fff; }
.up-tabs button.on b { background: var(--orange); color: #fff; }
.up-list { display: grid; gap: 8px; }
.up-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.up-main { display: grid; gap: 2px; }
.up-main b { font-weight: 600; }
.up-what { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.up-what svg { width: 15px; height: 15px; flex: none; }
.tone-soon .up-what svg, .tone-bday .up-what svg { color: var(--orange); }
.tone-anniv .up-what svg { color: var(--ok); }
.tone-late { border-color: #F4CDC4; background: var(--err-soft); }
.tone-late .up-what { color: var(--err); font-weight: 600; }
.up-date { font: 600 12px/1 var(--f-mono); padding: 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.up-acts { display: flex; gap: 6px; }
.up-empty { display: flex; gap: 10px; align-items: center; color: var(--muted); padding: 18px; border: 1px dashed var(--line-2); border-radius: 16px; }
.up-empty svg { color: var(--ok); }
.up-more { margin-top: 8px; justify-self: start; }
.trend-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 210px; }
.tb { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 5px; text-align: center; min-height: 0; }
.tv { font: 600 11px/1 var(--f-mono); color: var(--ink-2); min-height: 11px; }
.tcol { display: flex; flex-direction: column-reverse; background: var(--tint); border-radius: 8px; overflow: hidden; min-height: 0; }
.tcol i { display: block; width: 100%; transform-origin: 50% 100%; animation: growUp .9s var(--ease) both; }
.tcol .e { background: var(--char); }
.tcol .n { background: var(--orange); }
.tb.now .tcol { box-shadow: inset 0 0 0 2px var(--orange); }
.tl { font-size: 11px; line-height: 1.2; color: var(--muted); }
.tl small { font: 500 9.5px/1 var(--f-mono); }
.tb.now .tl { color: var(--ink); font-weight: 600; }
.export-more { display: flex; flex-wrap: wrap; gap: 8px; }
.backup-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.act-list { display: grid; }
.act-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
.act-row:last-child { border-bottom: 0; }
.act-dot { width: 11px; height: 11px; border-radius: 50%; margin-top: 6px; background: var(--char); box-shadow: 0 0 0 4px var(--tint); }
.act-dot.k-rec { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.act-dot.k-warn { background: #E8A33D; }
.act-dot.k-bad { background: var(--err); box-shadow: 0 0 0 4px var(--err-soft); }
.act-dot.k-doc { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.act-dot.k-login { background: var(--line-2); }
.act-main p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.act-meta { display: grid; justify-items: end; align-content: start; gap: 3px; font-size: 12.5px; color: var(--muted); text-align: right; }
.act-meta span:first-child { color: var(--ink-2); font-weight: 500; }
.type-pick button.on { border-color: var(--orange); background: var(--orange-soft); }
@keyframes growUp { from { transform: scaleY(0); } to { transform: none; } }

/* form builder (Customize form) */
.modal-card.xl { width: min(1120px, 100%); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tint); }
.tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font: 600 13.5px/1 var(--f-body); color: var(--ink-2); cursor: pointer; transition: background .25s, color .25s; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 6px 16px -10px rgba(37, 35, 36, .5); }
.tabs button.on svg { color: var(--orange); }
.dirty-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); vertical-align: middle; margin-left: 6px; box-shadow: 0 0 0 4px var(--orange-soft); }
.fb-grid { display: grid; gap: 16px; }
.fb-sec { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 18px 20px; display: grid; gap: 4px; justify-items: start; animation: rise .45s var(--ease) both; }
.fb-sec > * { justify-self: stretch; }
.fb-sec > [data-add-custom] { justify-self: start; margin-top: 4px; border-style: dashed; }
.fb-sec.off { background: var(--bg); border-style: dashed; }
.fb-sec.off .fb-rows, .fb-sec.off [data-add-custom] { display: none; }
.fb-sec.off h3 { color: var(--muted); }
.fb-sec-head { display: flex; align-items: center; gap: 14px; }
.fb-sec-head .sec-num { width: 40px; height: 40px; font-size: 12px; box-shadow: 0 0 0 5px var(--orange-soft); }
.fb-sec.off .sec-num { background: var(--line-2); box-shadow: none; }
.fb-sec-head .grow { flex: 1; }
.fb-sec-head h3 { font: 600 1.02rem/1.25 var(--f-display); letter-spacing: -.01em; }
.fb-rows { display: grid; margin: 12px 0 8px; border-top: 1px dashed var(--line-2); }
.fb-note { padding: 12px 0 4px; }
.fb-row { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fb-row:last-child { border-bottom: 0; }
.fb-row.custom { background: linear-gradient(90deg, var(--orange-soft), transparent 60%); margin: 0 -10px; padding: 10px; border-radius: 12px; border-bottom: 0; margin-top: 6px; }
.fb-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 500; }
.fb-row.is-hidden .fb-name { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.fb-actions { display: flex; gap: 6px; align-items: center; }
.chip.tiny { padding: 4px 9px; font-size: 10.5px; letter-spacing: .06em; }
.tri { display: inline-grid; grid-template-columns: repeat(3, auto); padding: 3px; border-radius: 999px; background: var(--tint); }
.tri button { border: 0; background: transparent; padding: 8px 13px; border-radius: 999px; font: 600 12.5px/1 var(--f-body); color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tri button:hover { color: var(--ink); }
.tri button.on[data-v=required] { background: var(--orange); color: #fff; }
.tri button.on[data-v=optional] { background: var(--surface); color: var(--ink); box-shadow: 0 4px 12px -8px rgba(37, 35, 36, .6); }
.tri button.on[data-v=hidden] { background: var(--char); color: #fff; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: 600 13px/1 var(--f-body); color: var(--ink-2); }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .25s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
.switch input:checked { background: var(--orange); }
.switch input:checked::after { transform: translateX(18px); }
.fb-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fb-lists textarea { min-height: 190px; font-size: 15px; }
.preview-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.fb-preview { border: 1.5px dashed var(--line-2); border-radius: 22px; padding: clamp(10px, 2vw, 22px); background: var(--bg); }
.fb-preview .rv { opacity: 1; transform: none; }
.fb-preview .form-section { box-shadow: none; }

/* toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; max-width: 380px; padding: 14px 18px; border-radius: 16px; background: var(--char); color: #fff; font-size: 14.5px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); border-left: 4px solid var(--orange); animation: toastIn .5s var(--ease) both; }
.toast.error { border-left-color: #FF6A50; }
.toast.success { border-left-color: #3CC985; }
.toast.out { animation: toastOut .35s ease forwards; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes spinIn { from { transform: scale(.2) rotate(-200deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes segIn { from { transform: scale(.15) rotate(-60deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wordIn { from { transform: translateY(105%) rotate(4deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ring { 0% { transform: scale(.92); opacity: .6; } 100% { transform: scale(1.32); opacity: 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 75%, 100% { transform: scale(2.4); opacity: 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes mq { to { transform: translateX(-50%); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes mIn { from { opacity: 0; transform: translateY(36px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
@keyframes fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(var(--fall, 640px)) rotate(var(--rot, 540deg)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insights { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .insights .export-box { grid-column: 1 / -1; }
  .insights-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1060px) {
  .form-layout { grid-template-columns: minmax(0, 1fr); }
  .rail { position: sticky; top: 76px; z-index: 30; margin: 0 -20px; padding: 10px 20px; background: rgba(251, 250, 249, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .rail ol { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .rail ol::-webkit-scrollbar { display: none; }
  .rail ol::before, .rail ol::after, .rail .rail-foot { display: none; }
  .rail ol { padding: 6px 4px; }
  .rail li { flex: none; }
  .rail li button { padding: 0; width: auto; gap: 10px; }
  .rail li .t { display: none; }
  .rail li.cur .t { display: inline; white-space: nowrap; padding-right: 10px; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { width: min(100%, 420px); }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .side > .brand, .side-bottom { grid-column: 1 / -1; }
  .side-bottom { margin-top: 0; display: flex; justify-content: space-between; align-items: center; }
  .records-head { grid-template-columns: minmax(0, 1fr); }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { min-height: 380px; }
  .profile-top { grid-template-columns: minmax(0, 1fr); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .process::before, .process::after { display: none; }
}
@media (max-width: 760px) {
  .pillnav { display: none; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .cat { min-height: 0; }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip > div:nth-child(3) { border-left: 0; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .form-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .form-hero .side-umb { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insights { grid-template-columns: minmax(0, 1fr); }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .kv-grid { grid-template-columns: minmax(0, 1fr); }
  .fb-lists { grid-template-columns: minmax(0, 1fr); }
  .up-item { grid-template-columns: auto minmax(0, 1fr); }
  .up-date, .up-acts { grid-column: 2; justify-self: start; }
  .act-row { grid-template-columns: auto minmax(0, 1fr); }
  .act-meta { grid-column: 2; justify-items: start; text-align: left; }
  .trend-bars { gap: 3px; height: 170px; }
  .tl { font-size: 9.5px; }
  .modal-toolbar .grow { display: none; }
  .type-pick { grid-template-columns: minmax(0, 1fr); }
  .float.f1 { left: 0; } .float.f2 { right: 0; }
  .modal { padding: 10px; }
  .modal-head, .modal-body, .modal-toolbar, .modal-foot { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 560px) {
  .wrap { width: min(1220px, 100% - 28px); }
  .rail { margin: 0 -14px; padding: 10px 14px; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .process { grid-template-columns: minmax(0, 1fr); }
  .seg button { font-size: 11px; }
  .submit-card .btn { width: 100%; }
  .topnav .btn span.hide-sm { display: none; }
  .stat.hero-stat { grid-column: 1 / -1; }
}
