/* ==========================================================================
   Global Talent Bootcamp: design system
   Lavender / indigo palette from the team's design, Pretendard type,
   soft elevation, generous radius. All colours are tokens below.
   ========================================================================== */
:root {
  --brand: #6553e0;
  --brand-600: #5543cf;
  --brand-700: #4535b0;
  --brand-50: #f5f3ff;
  --brand-100: #ece9fe;
  --brand-200: #dcd6fd;
  --accent: #8b7cf6;
  --grad: linear-gradient(135deg, #6553e0 0%, #8b5cf6 55%, #a78bfa 100%);
  --grad-soft: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);

  --ink: #171a2c;
  --ink-2: #3c4057;
  --muted: #6b7088;
  --line: #e7e6f0;
  --line-2: #f0eff6;
  --surface: #ffffff;
  --canvas: #f7f7fb;

  --ok: #16a34a;   --ok-bg: #e8f7ee;   --ok-ink: #166534;
  --warn: #d97706; --warn-bg: #fef4e2; --warn-ink: #92400e;
  --bad: #dc2626;  --bad-bg: #fdeceb;  --bad-ink: #991b1b;
  --info-bg: #e8f3fd; --info-ink: #1e5a8a;

  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(23, 26, 44, .05);
  --shadow: 0 1px 2px rgba(23, 26, 44, .04), 0 4px 16px rgba(23, 26, 44, .05);
  --shadow-lg: 0 10px 40px rgba(69, 53, 176, .16);

  --bs-body-font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
                         "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: .95rem;
  --bs-body-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 101, 83, 224;
  --bs-link-hover-color: var(--brand-700);
  --bs-link-hover-color-rgb: 69, 53, 176;
  --bs-primary: var(--brand);
  --bs-primary-rgb: 101, 83, 224;
}

body { background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
h1, h2, h3, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.text-muted { color: var(--muted) !important; }
.small, small { font-size: .84rem; }
a { text-underline-offset: 3px; }
::selection { background: var(--brand-200); }

/* ---------- utilities ---------- */
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; }
.border-brand { border-color: var(--brand-200) !important; }
.fw-600 { font-weight: 600; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.icon-chip { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 1.15rem;
             background: var(--brand-100); color: var(--brand-600); flex-shrink: 0; }
.icon-chip.ok { background: var(--ok-bg); color: var(--ok); }
.icon-chip.warn { background: var(--warn-bg); color: var(--warn); }
.icon-chip.bad { background: var(--bad-bg); color: var(--bad); }
.icon-chip.info { background: var(--info-bg); color: var(--info-ink); }
.icon-chip.lg { width: 52px; height: 52px; border-radius: 16px; font-size: 1.5rem; }

/* ---------- buttons & forms ---------- */
.btn { border-radius: 10px; font-weight: 600; padding: .55rem 1rem; transition: all .15s ease; }
.btn-sm { border-radius: 8px; padding: .35rem .7rem; font-size: .84rem; }
.btn-lg { border-radius: 12px; padding: .8rem 1.4rem; font-size: 1rem; }
.btn-brand { background: var(--brand); border: 1px solid var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(69, 53, 176, .3), inset 0 1px 0 rgba(255,255,255,.15); }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--brand-600); border-color: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(101, 83, 224, .3); }
.btn-brand:disabled { background: var(--brand); opacity: .7; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }
.btn-outline-secondary { border-color: var(--line); color: var(--ink-2); background: var(--surface); }
.btn-outline-secondary:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }
.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(101, 83, 224, .18); outline: 0; }
.form-label { font-weight: 600; font-size: .88rem; color: var(--ink-2); margin-bottom: .35rem; }
.form-control, .form-select { border-radius: 10px; border-color: var(--line); padding: .6rem .8rem; background-color: var(--surface); }
.form-control::placeholder { color: #a3a6b8; }
.form-text { color: var(--muted); font-size: .8rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-range::-webkit-slider-thumb { background: var(--brand); }
.form-range::-moz-range-thumb { background: var(--brand); }
.input-group-text { background: var(--surface); border-color: var(--line); color: var(--muted); border-radius: 10px; }
.input-group > .form-control:not(:first-child) { border-left: 0; }
.input-group > .btn { border-radius: 0 10px 10px 0; }

/* file inputs styled as drop-zones */
.file-drop { position: relative; display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1.5px dashed var(--brand-200);
             border-radius: var(--r); background: var(--brand-50); transition: all .15s ease; }
.file-drop:hover, .file-drop:focus-within { border-color: var(--brand); background: var(--brand-100); }
.file-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .fd-title { font-weight: 600; color: var(--ink); font-size: .92rem; }
.file-drop .fd-name { font-size: .82rem; color: var(--muted); }
.file-drop.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.file-drop.has-file .icon-chip { background: #fff; color: var(--ok); }

/* ---------- surfaces ---------- */
.card-soft { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-soft > .card-body { padding: 1.35rem 1.5rem; }
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.section-title { font-size: .95rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.section-title i { color: var(--brand); }
.empty-state { text-align: center; padding: 3.5rem 1rem; border: 1.5px dashed var(--line); border-radius: var(--r-lg);
               background: var(--surface); color: var(--muted); }
.empty-state i { font-size: 2.2rem; color: var(--brand-200); display: block; margin-bottom: .6rem; }
.alert { border-radius: var(--r); border: 1px solid transparent; }
.alert-success { background: var(--ok-bg); color: var(--ok-ink); border-color: #cdeedb; }
.alert-warning { background: var(--warn-bg); color: var(--warn-ink); border-color: #fbe3b5; }
.alert-danger { background: var(--bad-bg); color: var(--bad-ink); border-color: #f8cfcc; }
.alert-info, .alert-primary { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.alert-light { background: var(--surface); border-color: var(--line); }
.alert-secondary { background: #f1f2f6; color: var(--ink-2); border-color: var(--line); }
.alert-dark { background: #eceaf6; color: var(--ink); }

/* soft badges */
.badge { font-weight: 600; letter-spacing: 0; }
.badge[class*="badge-soft-"] { border-radius: 999px; padding: .38em .75em; font-size: .76rem; }
.badge-soft-success { background: var(--ok-bg); color: var(--ok-ink); }
.badge-soft-warning { background: var(--warn-bg); color: var(--warn-ink); }
.badge-soft-danger { background: var(--bad-bg); color: var(--bad-ink); }
.badge-soft-primary { background: var(--brand-100); color: var(--brand-700); }
.badge-soft-info { background: var(--info-bg); color: var(--info-ink); }
.badge-soft-secondary { background: #eef0f4; color: #4b5162; }
.badge-soft-dark { background: #e7e5f3; color: #2a2d44; }
.badge-soft-success::before, .badge-soft-warning::before, .badge-soft-danger::before { content: ""; display: inline-block;
  width: .45em; height: .45em; border-radius: 50%; background: currentColor; margin-right: .4em; vertical-align: .1em; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; font-size: .78rem;
        font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.chip.brand { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }

/* ---------- top bar ---------- */
.app-navbar { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px);
              border-bottom: 1px solid var(--line); padding: .6rem 0; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
              color: #fff; font-size: 1.05rem; box-shadow: 0 4px 12px rgba(101, 83, 224, .35); }
.brand-name { font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-size: 1.05rem; line-height: 1.1; }
.brand-name small { display: block; font-weight: 600; font-size: .7rem; color: var(--muted); letter-spacing: 0; }
.top-link { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem; padding: .45rem .8rem; border-radius: 10px; }
.top-link:hover { background: var(--brand-50); color: var(--brand-700); }
.top-link.active { background: var(--brand-100); color: var(--brand-700); }
.lang-switch { display: inline-flex; padding: 3px; background: #f1f0f7; border-radius: 10px; }
.lang-switch a { white-space: nowrap; padding: .25rem .6rem; border-radius: 8px; font-size: .78rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.lang-switch a.on { background: var(--surface); color: var(--brand-700); box-shadow: var(--shadow-sm); }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .7rem .25rem .25rem; border-radius: 999px;
             background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.user-chip .role { font-size: .7rem; font-weight: 700; color: var(--brand-700); background: var(--brand-50); padding: .1rem .45rem; border-radius: 999px; }

.app-footer { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--grad); color: #fff; padding: 2.4rem 2.2rem; }
.hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
               background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 70%); }
.hero::before { content: ""; position: absolute; right: 120px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%;
                background: radial-gradient(circle, rgba(255,255,255,.14), rgba(255,255,255,0) 70%); }
.hero h1 { color: #fff; font-size: 1.9rem; margin-bottom: .4rem; }
.hero p { color: rgba(255,255,255,.88); max-width: 640px; margin: 0; }
.hero .hero-pill { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28);
                   padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600; margin-bottom: .9rem; }

/* ---------- process stepper ---------- */
.process { display: flex; list-style: none; padding: 0; margin: 0; gap: 0; counter-reset: s; }
.process li { flex: 1; position: relative; display: flex; align-items: center; gap: .55rem; font-size: .84rem; font-weight: 600; color: var(--muted);
              padding-right: 1rem; min-width: 0; }
.process li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; min-width: 1rem; }
.process li .dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
                   background: var(--surface); border: 2px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 800; }
.process li .lbl { white-space: nowrap; }
.process li.done { color: var(--ok-ink); }
.process li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; font-size: 0; }
.process li.done .dot::before { content: "\F26E"; font-family: "bootstrap-icons"; font-size: .9rem; }
.process li.done::after { background: var(--ok); }
.process li.active { color: var(--brand-700); }
.process li.active .dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-100); }
@media (max-width: 767.98px) { .process li .lbl { display: none; } .process li.active .lbl { display: inline; } }

/* ---------- auth split screen ---------- */
.auth-shell { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 62px); }
.auth-aside { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: 3.5rem 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.auth-aside::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%;
                     background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,0) 70%); }
.auth-aside h1 { color: #fff; font-size: 2.1rem; line-height: 1.25; margin-bottom: 1rem; }
.auth-aside p { color: rgba(255,255,255,.85); max-width: 460px; }
.auth-steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; max-width: 440px; }
.auth-steps li { display: flex; gap: .8rem; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
                 border-radius: 14px; padding: .75rem 1rem; font-weight: 600; }
.auth-steps li span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--brand-700); font-weight: 800; font-size: .8rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: var(--surface); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 1.6rem; }
@media (max-width: 991.98px) { .auth-shell { grid-template-columns: 1fr; } .auth-aside { padding: 2rem 1.5rem; } .auth-aside h1 { font-size: 1.5rem; } .auth-steps { display: none; } }

/* ---------- programs ---------- */
.program-card { display: flex; flex-direction: column; height: 100%; }
.program-card .card-body { flex: 1; }
.program-card h2 { font-size: 1.05rem; line-height: 1.35; }
.program-card .desc { color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.program-card .card-foot { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-top: 1px solid var(--line-2); }
.applied-ribbon { position: absolute; top: 1rem; right: 1rem; }

/* apply form sections */
.form-section { padding: 1.4rem 0; border-top: 1px solid var(--line-2); }
.form-section:first-of-type { border-top: 0; padding-top: .4rem; }
.form-section-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.form-section-head .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-100);
                          color: var(--brand-700); font-weight: 800; font-size: .8rem; }
.form-section-head h3 { font-size: 1rem; margin: 0; }
.sticky-side { position: sticky; top: 84px; }
.privacy-note { display: flex; gap: .7rem; padding: .9rem 1rem; border-radius: var(--r); background: var(--brand-50); color: var(--brand-700); font-size: .84rem; }

/* ---------- admin layout ---------- */
.admin-shell { display: flex; min-height: 0; }
.admin-sidebar { width: 248px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--line); padding: 1.25rem .9rem;
                 display: flex; flex-direction: column; position: sticky; top: 59px; height: calc(100vh - 59px); }
.sidebar-brand { display: flex; align-items: center; gap: .7rem; padding: .4rem .5rem 1.4rem; }
.sidebar-brand .brand-mark { width: 38px; height: 38px; }
.sidebar-brand b { display: block; line-height: 1.15; font-size: .95rem; color: var(--ink); }
.sidebar-brand small { color: var(--muted); font-size: .72rem; }
.sidebar-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9a9db2; padding: 0 .75rem; margin: .4rem 0 .5rem; }
.admin-sidebar .nav-link { display: flex; align-items: center; gap: .7rem; color: var(--ink-2); border-radius: 10px; padding: .6rem .75rem;
                           margin-bottom: .15rem; font-weight: 600; font-size: .9rem; transition: background .12s ease; }
.admin-sidebar .nav-link i { font-size: 1.05rem; color: #9a9db2; width: 1.2rem; text-align: center; }
.admin-sidebar .nav-link:hover { background: var(--brand-50); color: var(--brand-700); }
.admin-sidebar .nav-link.active { background: var(--brand-100); color: var(--brand-700); }
.admin-sidebar .nav-link.active i { color: var(--brand); }
.sidebar-foot { margin-top: auto; padding: .9rem; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--brand-100); font-size: .8rem; color: var(--ink-2); }
.admin-main { flex: 1; min-width: 0; padding: 1.75rem 2rem 2.5rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.page-head h1 { font-size: 1.55rem; margin: 0; }
.page-head p { color: var(--muted); margin: .25rem 0 0; font-size: .9rem; }
@media (max-width: 767.98px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--line); padding: .5rem; }
  .admin-sidebar .nav { flex-direction: row !important; overflow-x: auto; flex-wrap: nowrap; }
  .admin-sidebar .nav-link { white-space: nowrap; }
  .sidebar-brand, .sidebar-label, .sidebar-foot { display: none; }
  .admin-main { padding: 1rem; }
}

/* KPI */
.kpi .card-body { display: flex; gap: .9rem; align-items: center; }
.kpi .kpi-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.kpi .kpi-label { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* tables */
.table-modern { margin: 0; --bs-table-bg: transparent; }
.table-modern thead th { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a8ea5;
                         background: #fafafd; border-bottom: 1px solid var(--line); padding: .8rem 1rem; white-space: nowrap; }
.table-modern td { padding: .85rem 1rem; border-color: var(--line-2); }
.table-modern tbody tr { transition: background .12s ease; }
.table-modern tbody tr:hover { background: var(--brand-50); }
.table-modern tbody tr:last-child td { border-bottom: 0; }
.table-card { overflow: hidden; }
.score-pill { display: inline-grid; place-items: center; min-width: 2.8rem; height: 2rem; padding: 0 .55rem; border-radius: 10px;
              background: var(--brand-100); color: var(--brand-700); font-weight: 800; font-size: .95rem; }
.score-pill.hi { background: var(--grad); color: #fff; box-shadow: 0 3px 10px rgba(101, 83, 224, .3); }
.toolbar .form-select { width: auto; max-width: 300px; padding-right: 2.25rem; text-overflow: ellipsis; }
.toolbar .search { flex: 1 1 240px; max-width: 360px; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; padding: 1rem; border-bottom: 1px solid var(--line); background: var(--surface); }

/* avatar + flags */
.avatar { border-radius: 50%; object-fit: cover; vertical-align: middle; flex-shrink: 0; }
.avatar-initials { display: inline-grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; }
.flag { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

/* report */
.report-head { position: relative; overflow: hidden; }
.report-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 84px; background: var(--grad); }
.report-head .card-body { position: relative; padding-top: 36px; align-items: flex-start !important; }
.report-head .rh-text { margin-top: 58px; }
.report-head .rh-score { margin-top: 26px; }
.report-head .avatar { border: 4px solid #fff; box-shadow: var(--shadow); }
.total-box { padding: .9rem 1.4rem; border-radius: 16px; background: var(--brand-50); border: 1px solid var(--brand-100); text-align: center; min-width: 150px; }
.total-box .num { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--brand-700); }
.grade-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; font-weight: 800; }
.verify-box { background: linear-gradient(180deg, #f3f6ff 0%, #fff 100%); border-color: #dfe6fb; }
.verify-box .section-title i { color: #3b6fd8; }
.qa-item { padding: 1rem 0; border-top: 1px solid var(--line-2); }
.qa-item:first-child { border-top: 0; padding-top: 0; }
.qa-answer { background: #fafafd; border: 1px solid var(--line-2); border-radius: 12px; padding: .75rem .9rem; font-size: .88rem; color: var(--ink-2); }
.criterion-row { margin-bottom: .85rem; }
.criterion-row .progress { height: 8px; border-radius: 99px; background: var(--line-2); }
.criterion-row .progress-bar { background: var(--grad); border-radius: 99px; }

/* radar */
.radar { width: 100%; max-width: 540px; height: auto; }
.radar-grid { fill: none; stroke: #e2def5; stroke-width: 1; }
.radar-area { fill: rgba(101, 83, 224, .2); stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.radar-dot { fill: #fff; stroke: var(--brand); stroke-width: 2.5; }
.radar-label { font-size: 12.5px; fill: var(--ink); font-weight: 600; }
.radar-weight { fill: var(--muted); font-weight: 500; }
.radar-value { font-size: 13px; font-weight: 800; fill: var(--brand-700); }

/* interview */
.q-card .q-text { font-size: 1.12rem; font-weight: 600; line-height: 1.55; color: var(--ink); }
.q-card.answered { background: #fcfcfe; }
.rec-btn { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .6rem 1.15rem; }
.rec-start { background: #ef4444; border-color: #ef4444; color: #fff; }
.rec-start:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
.rec-stop { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .35); } 50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } }
details > summary { cursor: pointer; font-weight: 600; font-size: .86rem; list-style: none; }
details > summary::before { content: "\F4CB"; font-family: "bootstrap-icons"; margin-right: .35rem; }
details > summary::-webkit-details-marker { display: none; }

/* tags (program form) */
.tags { margin-top: .35rem; }
.tag { display: inline-flex !important; align-items: center; font-size: .8rem; font-weight: 600; background: var(--brand-100) !important;
       color: var(--brand-700) !important; border-radius: 999px !important; padding: .25rem .7rem !important; margin: .2rem .25rem .2rem 0 !important; }
.tag .remove-tag { margin-left: .4rem !important; opacity: .6; }

/* print */
.print-only { display: none; }
@media print {
  .no-print, .admin-sidebar, .app-footer, .app-navbar { display: none !important; }
  .print-only { display: inline; }
  body { background: #fff; }
  .admin-main { padding: 0; }
  .card-soft { box-shadow: none; break-inside: avoid; }
  .report-head::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.doc-link { transition: background .12s ease; }
.doc-link:hover { background: var(--brand-50); }

/* ---------- small screens ---------- */
@media (max-width: 575.98px) {
  .app-navbar .container-fluid { flex-wrap: nowrap; gap: .5rem; }
  .app-navbar .nav-right { flex-wrap: nowrap !important; gap: .35rem !important; }
  .brand-name { display: none; }
  .top-link { padding: .35rem .5rem; font-size: .8rem; white-space: nowrap; }
  .lang-switch a { padding: .2rem .45rem; }
  .process li.active { flex: 3; }
  .hero { padding: 1.6rem 1.3rem; }
  .hero h1 { font-size: 1.45rem; }
  .card-soft > .card-body { padding: 1.1rem 1.1rem; }
}

/* ==========================================================================
   BeNext components (mockups: FirstTask/BeNext)
   ========================================================================== */
:root { --game: #c2410c; --game-bg: #fff4ec; --game-line: #fbd5bd; --people: #1d6b5c; --people-bg: #e6f4f0; }
.text-game { color: var(--game) !important; }

/* legend pills: people / AI / game */
.tagpill { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; padding: .22rem .6rem;
           border-radius: 999px; background: #eef0f4; color: var(--ink-2); white-space: nowrap; }
.tagpill.people { background: var(--people-bg); color: var(--people); }
.tagpill.ai { background: var(--brand-100); color: var(--brand-700); }
.tagpill.game { background: var(--game-bg); color: var(--game); }
.tagpill.plain { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.num-circle { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink);
              font-size: .95rem; margin-right: .35rem; }
.icon-chip.solid { background: var(--brand); color: #fff; }

/* chips */
.chip.ok { background: var(--ok-bg); border-color: #cdeedb; color: var(--ok-ink); }
.chip.warn { background: #fdf3d8; border-color: #f6e2a6; color: #8a5a00; }
.chip.bad { background: var(--bad-bg); border-color: #f8cfcc; color: var(--bad-ink); }

/* levels (no numbers, ever) */
.lvl { display: inline-block; padding: .3rem .75rem; border-radius: 999px; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.lvl-weak { background: #fdf0c8; color: #8a5a00; }
.lvl-solid { background: #eceef2; color: #3c4057; }
.lvl-strong { background: var(--brand-100); color: var(--brand-700); }
.lvl-met { background: var(--people-bg); color: var(--people); }
.lvl-notyet { background: var(--bad-bg); color: var(--bad-ink); }
.lvl-none { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.dec { display: inline-block; padding: .3rem .75rem; border-radius: 999px; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.dec-interview { background: var(--people); color: #fff; }
.dec-more_info { background: #fdf0c8; color: #8a5a00; }
.dec-not_this_time { background: #eceef2; color: #4b5162; }
.dec-none { background: #fff; border: 1px solid var(--line); color: var(--muted); }

/* candidate list */
.filter-chip { display: inline-block; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
               color: var(--ink); font-weight: 600; text-decoration: none; font-size: .9rem; }
.filter-chip:hover { border-color: var(--brand-200); color: var(--brand-700); }
.filter-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.blind-banner { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-radius: var(--r); background: var(--people-bg);
                color: var(--people); font-weight: 500; }
.cand-table td, .cand-table th { white-space: nowrap; }
.cand-table thead th { text-transform: none; letter-spacing: 0; font-size: .82rem; color: var(--ink-2); }

/* report */
.decision-bar { border: 2px solid var(--people); border-radius: var(--r-lg); background: #fff; padding: 1rem 1.25rem; }
.crit-ai { border-color: var(--game-line); border-width: 2px; }
.quote-box { display: flex; gap: .5rem; padding: .75rem .9rem; border-radius: 12px; background: #f6f6fa; font-size: .88rem; }
.quote-box i { color: var(--brand); margin-top: .1rem; }
.gap-box { padding: .7rem .9rem; border-radius: 12px; background: #fdf3d8; color: #7a4f00; font-size: .86rem; }
.uncertain-box { padding: .7rem .9rem; border-radius: 12px; background: #eef0f4; color: var(--ink-2); font-size: .86rem; }
.korean-box { padding: .8rem .9rem; border-radius: 12px; background: #f6f6fa; font-size: .9rem; line-height: 1.7; }
.check-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 10px; border: 1px solid var(--line);
              font-size: .82rem; background: #fff; }
.check-pill.ok i { color: var(--ok); }
.check-pill.no { color: var(--muted); }
.ai-cell { padding: .7rem .8rem; border-radius: 12px; background: var(--game-bg); }
.obs-box { padding: .7rem .9rem; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); font-size: .86rem; }
.endorse-box { padding: .8rem .9rem; border-radius: 12px; background: #f6f6fa; }

/* skill path */
.xp-bar { height: 10px; border-radius: 99px; background: var(--game-line); overflow: hidden; }
.xp-bar > div { height: 100%; background: var(--game); border-radius: 99px; }
.path-card { height: 100%; padding: 1rem; border-radius: 14px; background: #f3f3f8; color: var(--muted); }
.path-card.done { background: var(--people-bg); color: var(--people); }
.path-card.current { background: #fff; border: 2px solid var(--brand); color: var(--ink); }
.path-card.locked { opacity: .85; }
.dot-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #dcdde6; color: var(--ink-2);
         font-size: .78rem; font-weight: 800; flex-shrink: 0; }
.dot-n.ok, .dot-n.people { background: var(--people); color: #fff; }
.dot-n.brand { background: var(--brand); color: #fff; }
.dot-n.game { background: var(--game); color: #fff; }
.path-tile { padding: 1rem; border-radius: 14px; background: #f6f6fa; }
.path-tile.game { background: var(--game-bg); }
.path-tile.people { background: var(--people-bg); }
.quest-card { padding: 1rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.quest-card:not(.tried) { background: #fffaf6; border-color: var(--game-line); }
.btn-quest { border: 1.5px solid var(--game); color: var(--game); background: #fff; }
.btn-quest:hover { background: var(--game); color: #fff; }
.ai-feedback { padding: .65rem .8rem; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); }
.badge-row { display: flex; gap: .8rem; align-items: center; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 14px; }
.badge-row.locked { border-style: dashed; color: var(--muted); }

/* task page */
.data-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.data-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem .9rem; border-top: 1px solid var(--line-2); }
.data-row:first-child { border-top: 0; }
.comment-box { padding: .75rem .85rem; border-radius: 12px; background: #f6f6fa; font-size: .9rem; }
.glossary { padding: .8rem .9rem; border-radius: 12px; background: #f6f6fa; }
.ai-log { border: 1px solid var(--game-line); background: var(--game-bg); border-radius: 14px; padding: .9rem 1rem 1rem; }
.ai-log legend { float: none; width: auto; font-size: .95rem; font-weight: 700; padding: 0 .4rem; margin: 0; }
.question-box { padding: 1rem 1.2rem; border-radius: 14px; background: var(--brand-50); }
.scene { padding: .9rem 1rem; border-radius: 12px; background: #f6f6fa; border-left: 3px solid var(--brand-200); line-height: 1.6; }

/* role form */
.level-card { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.level-card .lv { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #eef0f4; font-weight: 800; flex-shrink: 0; }
.btn-check:checked + .level-card { border: 2px solid var(--brand); background: var(--brand-50); }
.btn-check:checked + .level-card .lv { background: var(--brand); color: #fff; }
.btn-check:focus-visible + .level-card { box-shadow: 0 0 0 .22rem rgba(101, 83, 224, .18); }
.options-box { padding: 1rem 1.1rem; border-radius: 14px; background: #f6f6fa; }
.draft-label { font-weight: 700; color: var(--brand-700); font-size: .92rem; margin-bottom: .4rem; }
.crit-card { padding: .8rem .9rem; border-radius: 12px; background: #f6f6fa; }
.crit-card.ai { background: var(--game-bg); }
.btn-outline-brand { border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.btn-check:checked + .btn-outline-brand { border: 2px solid var(--brand); background: var(--brand-50); color: var(--brand-700); }
.form-select-sm.w-auto { padding-right: 2rem; }
.cand-table td, .cand-table th { padding: .75rem .6rem; }
.cand-table td:first-child, .cand-table th:first-child { padding-left: 1.1rem; }

/* ---------- job list (Skill Path) & AI decisions ---------- */
.app-row { display: grid; grid-template-columns: auto minmax(180px, 1.4fr) minmax(160px, 1fr) auto auto; gap: 1rem; align-items: center; padding: 1rem 1.25rem; }
.app-progress .seg { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.app-progress .seg.done { background: var(--people); }
.app-progress .seg.now { background: var(--brand); }
@media (max-width: 767.98px) { .app-row { grid-template-columns: auto 1fr; } .app-progress, .app-state, .app-cta { grid-column: 2; } }
.role-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cat-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4rem .85rem; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.cat-chip:hover { border-color: var(--brand-200); color: var(--brand-700); }
.cat-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.role-card { display: flex; flex-direction: column; height: 100%; padding: 1.2rem 1.25rem; }
.role-problem { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.role-cta { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line-2); font-weight: 600; font-size: .86rem; color: var(--brand); }
.src-tag { display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem; font-weight: 700; padding: .15rem .45rem; border-radius: 6px; vertical-align: middle; }
.src-tag.ai { background: var(--brand-100); color: var(--brand-700); }
.src-tag.human { background: var(--people-bg); color: var(--people); }
.src-tag.review { background: var(--bad-bg); color: var(--bad-ink); }
.ai-banner { display: flex; align-items: center; gap: .8rem; padding: .85rem 1.1rem; border-radius: var(--r); background: var(--brand-50); color: var(--brand-700); flex-wrap: wrap; }
.ai-decision { padding: .85rem 1rem; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--brand-100); }
.ai-notice { padding: .85rem 1rem; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); }
.admin-sidebar .nav-link { min-width: 0; }
.admin-sidebar .nav-link .text-truncate { min-width: 0; flex: 1; display: block; }
.dec-cell { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; max-width: 150px; }
.admin-sidebar .nav { min-width: 0; width: 100%; }
.admin-sidebar .nav-link { max-width: 100%; overflow: hidden; }
.admin-sidebar .nav-link .text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- busy overlay ("analysis in progress") ---------- */
body.busy { overflow: hidden; }
.busy-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 1rem;
                background: rgba(23, 26, 44, .45); backdrop-filter: blur(4px); animation: busy-in .2s ease; }
.busy-overlay[hidden] { display: none; }
.busy-card { width: 100%; max-width: 440px; background: #fff; border-radius: var(--r-xl); padding: 2rem 1.75rem;
             box-shadow: 0 20px 60px rgba(23, 26, 44, .25); text-align: center; }
.busy-spinner { position: relative; width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%;
                display: grid; place-items: center; font-size: 1.5rem; color: var(--brand); background: var(--brand-50); }
.busy-spinner::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--brand-100);
                        border-top-color: var(--brand); animation: busy-spin 1s linear infinite; }
.busy-steps { list-style: none; padding: 0; margin: 0; text-align: left; display: grid; gap: .55rem; }
.busy-steps li { display: flex; align-items: center; gap: .65rem; font-size: .9rem; color: var(--muted); }
.busy-steps .mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: grid; place-items: center; }
.busy-steps li.now { color: var(--ink); font-weight: 600; }
.busy-steps li.now .mark { border-color: var(--brand-200); border-top-color: var(--brand); animation: busy-spin .9s linear infinite; }
.busy-steps li.done { color: var(--ok-ink); }
.busy-steps li.done .mark { border-color: var(--ok); background: var(--ok); }
.busy-steps li.done .mark::after { content: "\F26E"; font-family: "bootstrap-icons"; color: #fff; font-size: .75rem; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@keyframes busy-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .busy-spinner::before, .busy-steps li.now .mark { animation-duration: 3s; } }

/* centre the tick glyphs inside their circles (icon fonts carry their own line height) */
.busy-steps .mark { background: #fff; }
.busy-steps li.done .mark::after, .process li.done .dot::before {
  display: block; line-height: 1; width: 1em; height: 1em; text-align: center; }
.busy-steps li.done .mark::after { font-size: .72rem; margin-top: .02em; }

/* ---------- trial-period daily limit ---------- */
.quota-banner { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.1rem; border-radius: var(--r);
                background: #fdf6e7; border: 1px solid #f6e2a6; color: #7a4f00; }
.quota-banner.empty { background: var(--bad-bg); border-color: #f8cfcc; color: var(--bad-ink); }
.quota-dots { display: flex; gap: .3rem; }
.quota-dots span { width: 12px; height: 12px; border-radius: 50%; background: #f1dfb4; }
.quota-dots span.on { background: #d97706; }
.role-card.locked { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ---------- Skill Path side column ---------- */
@media (min-width: 1200px) {
  .path-aside { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 2px; }
}
.quest-row { display: flex; align-items: center; gap: .7rem; padding: .6rem .5rem; margin: 0 -.5rem; border-radius: 10px;
             text-decoration: none; color: inherit; }
.quest-row:hover { background: var(--game-bg); }
.quest-row + .quest-row { border-top: 1px solid var(--line-2); }
.quest-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
             background: var(--game-bg); color: var(--game); }
.quest-ico.done { background: var(--ok-bg); color: var(--ok); }
.path-aside .badge-row { padding: .55rem .7rem; gap: .65rem; }
.path-aside .badge-row .icon-chip { width: 32px; height: 32px; font-size: 1rem; border-radius: 10px; }
.path-aside .badge-row .lvl { padding: .1rem .5rem; font-size: .72rem; margin-left: .2rem; }

/* consent (sign-up, /consent) and privacy notice */
.consent-box { border: 1px solid var(--bs-border-color); border-radius: 12px; padding: .9rem 1rem; background: var(--bs-tertiary-bg); }
.consent-box .form-check-label a { white-space: nowrap; }
.badge-req { display: inline-block; font-size: .68rem; font-weight: 700; color: var(--bs-danger); border: 1px solid currentColor;
             border-radius: 999px; padding: 0 .4rem; margin-right: .2rem; vertical-align: 1px; }
.privacy-doc section { scroll-margin-top: 80px; }
.privacy-doc .data-row b { text-align: right; }
.app-footer a { color: inherit; }
