/* ITI CareerTrack — main stylesheet (no external CSS framework) */
:root {
  --blue-900: #0b2f6b; --blue-800: #0f3d8a; --blue-700: #1550b5; --blue-600: #1d64d8; --blue-500: #2f7cf6;
  --blue-100: #e6efff; --blue-50: #f3f7ff;
  --green: #17944a; --green-bg: #e3f6ea; --amber: #c27803; --amber-bg: #fff4dc;
  --red: #d33a2c; --red-bg: #fde8e6; --purple: #7c3aed; --purple-bg: #f1e9ff; --orange: #ea7a0a; --orange-bg: #fff0e0;
  --grey-900: #1b2333; --grey-700: #44506a; --grey-500: #7a869c; --grey-300: #d5dbe6; --grey-200: #e7ebf2; --grey-100: #f2f4f8;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 2px 8px rgba(16,24,40,.06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--grey-900); background: #eef2f8; font-size: 14px; line-height: 1.45; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
small, .muted { color: var(--grey-500); }
.ic { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.ic-sm { width: 14px; height: 14px; } .ic-lg { width: 26px; height: 26px; } .rot90 { transform: rotate(90deg); } .rot180 { transform: rotate(180deg); }

.demo-ribbon { background: #fff4dc; color: #7a4b00; text-align: center; font-size: 12px; padding: 4px 8px; border-bottom: 1px solid #f1d699; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; background: linear-gradient(90deg, var(--blue-900) 236px, transparent 236px); }
.sidebar { width: 236px; flex: none; background: linear-gradient(180deg, var(--blue-800), var(--blue-900)); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; font-weight: 700; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.sidebar nav { display: flex; flex-direction: column; padding: 6px 10px; gap: 2px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; color: #dce7ff; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; }
.sidebar nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.sidebar nav a.active { background: var(--blue-500); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.sidebar-foot { margin-top: auto; padding: 16px 18px; font-size: 11px; color: #9fb6e6; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; background: #fff; padding: 10px 22px; border-bottom: 1px solid var(--grey-200); position: sticky; top: 0; z-index: 5; }
.topbar-scope { color: var(--grey-700); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }
.bell { position: relative; color: var(--grey-700); display: flex; }
.bell .dot { position: absolute; top: -6px; right: -9px; background: var(--red); color: #fff; font-size: 10px; border-radius: 10px; padding: 1px 5px; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.usermenu summary::-webkit-details-marker { display: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.who { display: flex; flex-direction: column; line-height: 1.15; } .who small { font-size: 11.5px; }
.usermenu .menu { position: absolute; right: 0; top: 44px; background: #fff; border: 1px solid var(--grey-200); border-radius: 10px; box-shadow: var(--shadow); min-width: 210px; padding: 6px; z-index: 10; }
.usermenu .menu a, .usermenu .menu button { display: flex; gap: 8px; align-items: center; width: 100%; padding: 8px 10px; color: var(--grey-900); background: none; border: 0; font: inherit; cursor: pointer; border-radius: 6px; text-align: left; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--grey-100); text-decoration: none; }
.content { padding: 22px; max-width: 1400px; width: 100%; }

/* ---------- page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { margin: 2px 0 0; color: var(--grey-500); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- cards & grids ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.card > h2, .card > h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-tight { padding: 0; overflow: hidden; } .card-tight > h2 { padding: 16px 18px 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g-2-1 { grid-template-columns: 2fr 1fr; } .g-1-2 { grid-template-columns: 1fr 2fr; }
.grid > .card { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }

.kpi { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.kpi .kpi-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.kpi .kpi-ic .ic { width: 22px; height: 22px; }
.kpi .kpi-label { color: var(--grey-500); font-size: 12px; }
.kpi .kpi-value { font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.kpi .kpi-sub { font-size: 11.5px; color: var(--grey-500); }
.tone-blue .kpi-ic { background: var(--blue-100); color: var(--blue-600); }
.tone-green .kpi-ic { background: var(--green-bg); color: var(--green); }
.tone-amber .kpi-ic { background: var(--amber-bg); color: var(--amber); }
.tone-purple .kpi-ic { background: var(--purple-bg); color: var(--purple); }
.tone-red .kpi-ic { background: var(--red-bg); color: var(--red); }
.tone-orange .kpi-ic { background: var(--orange-bg); color: var(--orange); }
.tone-orange .kpi-value { color: var(--orange); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 9px 12px; border-bottom: 1px solid var(--grey-200); text-align: left; vertical-align: middle; }
.table th { background: var(--blue-50); color: var(--grey-700); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.table tr:hover td { background: #fafcff; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 26px; text-align: center; color: var(--grey-500); }
.pager { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 12px 16px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .span2 { grid-column: span 2; } .form-grid .span3 { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 4px; color: var(--grey-700); }
.field .req { color: var(--red); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--grey-300); border-radius: 8px; font: inherit; background: #fff; color: var(--grey-900); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-100); border-color: var(--blue-500); }
textarea { min-height: 80px; resize: vertical; }
.field .hint { font-size: 11.5px; color: var(--grey-500); margin-top: 3px; }
.field .error { font-size: 12px; color: var(--red); margin-top: 3px; }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters .field { min-width: 150px; }
.inline-form { display: inline; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; background: var(--blue-600); color: #fff; white-space: nowrap; }
.btn:hover { background: var(--blue-700); text-decoration: none; }
.btn-light { background: #fff; color: var(--blue-700); border-color: var(--grey-300); }
.btn-light:hover { background: var(--blue-50); }
.btn-green { background: var(--green); } .btn-green:hover { background: #12783c; }
.btn-red { background: var(--red); } .btn-red:hover { background: #b02c20; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge-green { background: var(--green-bg); color: var(--green); } .badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-blue { background: var(--blue-100); color: var(--blue-700); } .badge-red { background: var(--red-bg); color: var(--red); }
.badge-grey { background: var(--grey-100); color: var(--grey-700); }

.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid; }
.alert-success { background: var(--green-bg); border-color: #b5e3c6; color: #0d5c2e; }
.alert-error { background: var(--red-bg); border-color: #f4bcb6; color: #8a1d13; }
.alert-info { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-800); }
.alert-warning { background: var(--amber-bg); border-color: #f1d699; color: #7a4b00; }

/* ---------- dashboard parts ---------- */
.iti-head { display: flex; gap: 14px; align-items: center; }
.iti-head .logo-box { width: 52px; height: 52px; border-radius: 10px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; }
.iti-head h2 { margin: 0; }
.quick-actions { display: flex; flex-direction: column; gap: 8px; }
.quick-actions .btn { justify-content: flex-start; }
.progress { height: 10px; background: var(--grey-200); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #4cc27a); border-radius: 999px; }
.progress.blue > span { background: linear-gradient(90deg, var(--blue-600), var(--blue-500)); }
.list-rows { display: flex; flex-direction: column; }
.list-rows .row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--grey-200); }
.list-rows .row:last-child { border-bottom: 0; }
.list-rows .row .grow { flex: 1; min-width: 0; }
.district-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.district-tiles .tile { border-radius: 8px; padding: 7px 9px; color: #fff; font-size: 11.5px; line-height: 1.25; }
.district-tiles .tile b { display: block; font-size: 14px; }
.legend { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.legend span.sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.donut-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* ---------- charts ---------- */
.chart { width: 100%; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); fill: var(--grey-700); }

/* ---------- profile & timeline ---------- */
.profile-card { text-align: center; }
.photo { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-size: 30px; font-weight: 700; object-fit: cover; }
.pcid { font-family: ui-monospace, Consolas, monospace; background: var(--blue-50); border: 1px dashed var(--blue-500); padding: 3px 8px; border-radius: 6px; color: var(--blue-800); font-weight: 700; white-space: nowrap; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13px; text-align: left; }
.kv dt { color: var(--grey-500); } .kv dd { margin: 0; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; }
.timeline li { position: relative; padding: 0 0 18px 34px; }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--grey-200); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.timeline .dot .ic { width: 13px; height: 13px; }
.timeline .t-title { font-weight: 700; }
.timeline .t-meta { color: var(--grey-500); font-size: 12.5px; }
.dot-green { background: var(--green); } .dot-blue { background: var(--blue-600); } .dot-purple { background: var(--purple); }
.dot-orange { background: var(--orange); } .dot-grey { background: var(--grey-500); } .dot-red { background: var(--red); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--grey-200); margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 8px 8px 0 0; color: var(--grey-700); font-weight: 600; }
.tabs a.active { background: var(--blue-600); color: #fff; }
.tabs a:hover { text-decoration: none; background: var(--blue-50); } .tabs a.active:hover { background: var(--blue-600); }

/* ---------- wizard ---------- */
.steps { display: flex; justify-content: space-between; margin: 4px 0 22px; position: relative; }
.steps::before { content: ""; position: absolute; top: 15px; left: 6%; right: 6%; height: 2px; background: var(--grey-200); }
.steps .step { position: relative; flex: 1; text-align: center; font-size: 12px; color: var(--grey-500); }
.steps .step .n { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; background: #fff; border: 2px solid var(--grey-300); font-weight: 700; color: var(--grey-500); }
.steps .step.active .n { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.steps .step.done .n { background: var(--green); border-color: var(--green); color: #fff; }
.steps .step.active { color: var(--blue-700); font-weight: 600; }
.wizard-pane { display: none; } .wizard-pane.active { display: block; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 18px; }
.review-list { columns: 2; column-gap: 30px; }
.review-list div { break-inside: avoid; padding: 4px 0; border-bottom: 1px dashed var(--grey-200); display: flex; justify-content: space-between; gap: 10px; }
.review-list span { color: var(--grey-500); }

/* ---------- auth ---------- */
.auth-body { background: linear-gradient(180deg, #e9f0ff 0%, #eef2f8 40%); }
.auth-hero { background: linear-gradient(100deg, var(--blue-900), var(--blue-600)); color: #fff; padding: 26px 20px; }
.auth-hero-inner { max-width: 980px; margin: 0 auto; display: flex; gap: 16px; align-items: center; }
.auth-hero h1 { font-size: 2rem; margin: 0; } .auth-hero p { margin: 2px 0; color: #dbe7ff; } .tagline { font-style: italic; }
.auth-main { max-width: 980px; margin: 24px auto; padding: 0 16px; }
.auth-grid { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.demo-accounts td, .demo-accounts th { font-size: 12.5px; }
.role-list { display: grid; gap: 10px; }
.role-list button { text-align: left; padding: 14px; border-radius: 10px; border: 1px solid var(--grey-300); background: #fff; cursor: pointer; font: inherit; display: flex; gap: 12px; align-items: center; }
.role-list button:hover { border-color: var(--blue-500); background: var(--blue-50); }

/* ---------- misc ---------- */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt { margin-top: 16px; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.flex { display: flex; gap: 10px; align-items: center; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.big { font-size: 1.3rem; font-weight: 700; }
.note { background: var(--blue-50); border-left: 3px solid var(--blue-500); padding: 8px 12px; border-radius: 6px; font-size: 12.5px; color: var(--grey-700); }
.dup-box { border: 1px solid #f1d699; background: #fffaf0; border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
pre.json { white-space: pre-wrap; word-break: break-word; font-size: 11.5px; background: var(--grey-100); padding: 8px; border-radius: 6px; max-height: 160px; overflow: auto; margin: 0; }

@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-2-1, .g-1-2, .g3 { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; left: -260px; z-index: 20; transition: left .2s; } .sidebar.open { left: 0; }
  .menu-toggle { display: block; } .g2, .g4, .form-grid { grid-template-columns: 1fr; } .form-grid .span2 { grid-column: auto; }
  .who { display: none; } .content { padding: 14px; } .review-list { columns: 1; }
}
@media print { .sidebar, .topbar, .demo-ribbon, .actions, .filters { display: none !important; } .card { box-shadow: none; border: 1px solid #ddd; } }

/* =====================================================================
   Public website, new login, PCID card, task tabs
   ===================================================================== */
.pub-body { background: #f5f8fe; }
.pub-header { background: #fff; border-bottom: 1px solid var(--grey-200); position: sticky; top: 0; z-index: 10; }
.pub-header .inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 10px 20px; }
.pub-brand { display: flex; align-items: center; gap: 10px; color: var(--blue-800); font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.pub-brand small { display: block; font-size: 11px; font-weight: 600; color: var(--grey-500); }
.pub-brand:hover { text-decoration: none; }
.pub-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.pub-nav a { color: var(--grey-700); font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.pub-nav a:hover, .pub-nav a.active { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.pub-nav a.btn { color: #fff; } .pub-nav a.btn:hover { background: var(--blue-700); color: #fff; }
.pub-main { max-width: 1200px; margin: 0 auto; padding: 26px 20px 40px; }
.hero { background: linear-gradient(110deg, var(--blue-900) 0%, var(--blue-700) 55%, #2f7cf6 100%); color: #fff; overflow: hidden; }
.hero .inner { max-width: 1200px; margin: 0 auto; padding: 46px 20px 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.hero h1 { font-size: 2.6rem; margin-bottom: 8px; letter-spacing: -.5px; }
.hero h1 .dot { color: #ffd166; padding: 0 4px; }
.hero p.lead { font-size: 1.1rem; color: #dbe7ff; margin: 0 0 18px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero .cta .btn { padding: 11px 22px; font-size: 15px; }
.btn-white { background: #fff; color: var(--blue-800); } .btn-white:hover { background: #eaf1ff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); } .btn-outline-white:hover { background: rgba(255,255,255,.12); }
.feature-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.feature-row .f { text-align: center; width: 92px; font-size: 12px; color: #e6eeff; }
.feature-row .f .circle { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); }
.feature-row .f .circle .ic { width: 26px; height: 26px; color: #fff; }
.hero-art { width: 100%; max-width: 520px; justify-self: end; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -28px; position: relative; }
.stat-strip .s { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; }
.stat-strip .s b { display: block; font-size: 1.6rem; color: var(--blue-800); }
.stat-strip .s span { color: var(--grey-500); font-size: 12.5px; }
.section-title { text-align: center; margin: 40px 0 6px; font-size: 1.6rem; }
.section-sub { text-align: center; color: var(--grey-500); margin: 0 0 22px; }
.steps-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.steps-flow .st { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 16px 12px; text-align: center; position: relative; }
.steps-flow .st .n { width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; color: #fff; background: var(--blue-600); }
.steps-flow .st b { display: block; font-size: 13.5px; } .steps-flow .st small { font-size: 11.5px; }
.role-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.role-cards .rc { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 18px; }
.role-cards .rc .ic { width: 28px; height: 28px; color: var(--blue-600); }
.role-cards .rc h3 { margin-top: 8px; }
.role-cards .rc p { color: var(--grey-700); font-size: 13px; margin: 0; }
.pub-footer { background: var(--blue-900); color: #c9d8f5; margin-top: 40px; }
.pub-footer .inner { max-width: 1200px; margin: 0 auto; padding: 26px 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; font-size: 13px; }
.pub-footer a { color: #fff; } .pub-footer h4 { color: #fff; margin-bottom: 8px; }
.page-banner { background: linear-gradient(110deg, var(--blue-900), var(--blue-600)); color: #fff; }
.page-banner .inner { max-width: 1200px; margin: 0 auto; padding: 28px 20px; }
.page-banner h1 { font-size: 1.9rem; margin: 0; } .page-banner p { margin: 4px 0 0; color: #dbe7ff; }

/* login */
.login-wrap { max-width: 1020px; margin: 34px auto; padding: 0 16px; }
.login-card { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border-radius: 18px; box-shadow: 0 10px 40px rgba(15,61,138,.15); overflow: hidden; }
.login-left { padding: 34px 38px; }
.login-left .logo-c { text-align: center; margin-bottom: 18px; }
.login-left .logo-c h2 { margin: 8px 0 0; color: var(--blue-800); font-size: 1.5rem; }
.login-left .logo-c h2 span { color: var(--orange); }
.login-left .logo-c small { color: var(--grey-500); }
.login-left h3 { text-align: center; margin: 8px 0 16px; font-size: 1.15rem; }
.pw-wrap { position: relative; } .pw-wrap input { padding-right: 42px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--grey-500); padding: 6px; }
.login-right { background: linear-gradient(180deg, #f3f7ff, #e9f0ff); padding: 30px 28px; border-left: 1px solid var(--grey-200); }
.login-right h4 { margin: 0 0 12px; }
.role-pick { display: flex; flex-direction: column; gap: 6px; }
.role-pick button { padding: 9px 14px !important; }
.role-pick button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; background: #fff; border: 1.5px solid var(--grey-300); border-radius: 10px; font: inherit; font-weight: 600; color: var(--blue-800); cursor: pointer; text-align: left; }
.role-pick button .ic { color: var(--orange); }
.role-pick button:hover { border-color: var(--blue-500); }
.role-pick button.sel { border-color: var(--blue-600); background: var(--blue-600); color: #fff; } .role-pick button.sel .ic { color: #ffd166; }
.login-meta { display: flex; justify-content: space-between; font-size: 12.5px; margin-top: 8px; }
.login-role-label { text-align: center; font-size: 12.5px; color: var(--grey-500); margin-top: 10px; }

/* PCID card */
.pcid-card { width: 520px; max-width: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(15,61,138,.25); background: #fff; border: 1px solid var(--grey-200); }
.pcid-card .top { background: linear-gradient(110deg, var(--blue-900), var(--blue-600)); color: #fff; padding: 12px 18px; display: flex; align-items: center; gap: 12px; }
.pcid-card .top b { font-size: 1.2rem; } .pcid-card .top b span { color: #ffd166; } .pcid-card .top small { display: block; color: #dbe7ff; }
.pcid-card .title { text-align: center; font-weight: 800; color: var(--blue-800); padding: 10px 0 2px; letter-spacing: .3px; }
.pcid-card .body { display: grid; grid-template-columns: 100px 1fr 146px; gap: 14px; padding: 12px 18px 16px; align-items: center; }
.pcid-card .body .photo { width: 100px; height: 120px; border-radius: 10px; margin: 0; font-size: 28px; }
.pcid-card .kv { font-size: 12.5px; gap: 4px 10px; }
.pcid-card .foot { background: var(--blue-50); font-size: 11px; color: var(--grey-700); padding: 7px 18px; display: flex; justify-content: space-between; }
.pcid-card .qr svg { display: block; }
@media print {
  body.print-card * { visibility: hidden; } body.print-card .pcid-card, body.print-card .pcid-card * { visibility: visible; }
  body.print-card .pcid-card { position: absolute; left: 10mm; top: 10mm; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* verify */
.verify-box { max-width: 640px; margin: 0 auto; }
.verify-ok { border-left: 5px solid var(--green); } .verify-bad { border-left: 5px solid var(--red); }

/* task status tabs */
.status-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.status-tabs a { padding: 9px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--grey-300); color: var(--grey-700); font-weight: 700; }
.status-tabs a.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.status-tabs a:hover { text-decoration: none; border-color: var(--blue-500); }
.call-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-bg); color: var(--green); }
.call-btn:hover { background: var(--green); color: #fff; }
.mini-bars { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 1000px) {
  .hero .inner, .login-card { grid-template-columns: 1fr; } .hero-art { display: none; }
  .stat-strip, .role-cards { grid-template-columns: repeat(2, 1fr); } .steps-flow { grid-template-columns: repeat(3, 1fr); }
  .pub-footer .inner { grid-template-columns: 1fr; } .login-right { border-left: 0; border-top: 1px solid var(--grey-200); }
  .pcid-card .body { grid-template-columns: 90px 1fr; } .pcid-card .qr { grid-column: 1 / -1; justify-self: center; }
}

/* =====================================================================
   v2 theme — modern look, smooth interactions, fully responsive
   ===================================================================== */
:root { --radius: 14px; --ring: 0 0 0 4px rgba(47,124,246,.16);
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 14px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 40px rgba(11,47,107,.16); --ease: cubic-bezier(.2,.7,.2,1); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: #f3f6fb; -webkit-font-smoothing: antialiased; }
::selection { background: #cfe0ff; }

/* shell: sticky sidebar, no colour bleed */
.shell { background: none; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin;
  background: radial-gradient(120% 60% at 0% 0%, #1d4fa8 0%, transparent 60%), linear-gradient(180deg, #0f3d8a 0%, #08224f 100%); }
.sidebar::-webkit-scrollbar { width: 6px; } .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 6px; }
.brand { letter-spacing: -.2px; }
.sidebar nav a { position: relative; transition: background .15s var(--ease), color .15s; }
.sidebar nav a .ic { opacity: .85; }
.sidebar nav a.active { background: rgba(255,255,255,.14); box-shadow: none; color: #fff; font-weight: 600; }
.sidebar nav a.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: #ffb547; }
.sidebar nav a.active .ic { opacity: 1; color: #ffd166; }
.sidebar-backdrop { display: none; }
.topbar { background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid #e6ebf3; min-height: 58px; }
.content { padding: 24px 26px; }
.page-head h1 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.4px; color: #12203a; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* cards, KPIs */
.card { border: 1px solid #e8edf5; box-shadow: var(--shadow); }
.card h2 { font-size: 1.05rem; font-weight: 700; color: #12203a; }
.kpi { border: 1px solid #e8edf5; transition: transform .18s var(--ease), box-shadow .18s var(--ease); position: relative; overflow: hidden; }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16,24,40,.10); }
.kpi .kpi-ic { width: 46px; height: 46px; border-radius: 12px; }
.kpi .kpi-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.5px; }
.tone-blue .kpi-ic { background: linear-gradient(135deg, #e6efff, #d2e2ff); } .tone-green .kpi-ic { background: linear-gradient(135deg, #e3f6ea, #c9eed7); }
.tone-purple .kpi-ic { background: linear-gradient(135deg, #f1e9ff, #e2d4ff); } .tone-orange .kpi-ic { background: linear-gradient(135deg, #fff0e0, #ffe0c0); }
.tone-red .kpi-ic { background: linear-gradient(135deg, #fde8e6, #fbd3cf); } .tone-amber .kpi-ic { background: linear-gradient(135deg, #fff4dc, #ffe9b8); }

/* buttons, inputs, badges */
.btn { border-radius: 10px; padding: 9px 15px; transition: background .15s, box-shadow .15s, transform .08s; box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.btn:not(.btn-light):not(.btn-white):not(.btn-outline-white) { background-image: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0)); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--ring); }
input, select, textarea { border-radius: 10px; padding: 9px 11px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--ring); }
.badge { border-radius: 999px; }

/* tables */
.table tr:hover td { background: #f7faff; }
.table th { position: sticky; top: 0; z-index: 1; background: #f4f7fd; text-transform: none; }
.table-wrap { -webkit-overflow-scrolling: touch; border-radius: 10px; }

/* tabs */
.tabs a { transition: background .15s; }

/* ---------- public header + hamburger ---------- */
.pub-header { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pub-burger { display: none; margin-left: auto; background: #fff; border: 1px solid var(--grey-300); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--blue-800); }

/* ---------- login (lx) ---------- */
.lx { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 34px 16px;
  background: radial-gradient(60% 50% at 10% 10%, #dbe8ff 0%, transparent 60%), radial-gradient(50% 50% at 90% 90%, #ffe9cf 0%, transparent 60%), #f3f6fb; }
.lx-card { width: 100%; max-width: 1080px; display: grid; grid-template-columns: 1fr 1.08fr; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid #e6ecf6; }
.lx-brand { position: relative; color: #fff; padding: 40px 38px; overflow: hidden;
  background: radial-gradient(70% 60% at 100% 0%, rgba(255,181,71,.35) 0%, transparent 60%), radial-gradient(80% 60% at 0% 100%, rgba(47,124,246,.55) 0%, transparent 60%), linear-gradient(150deg, #0f3d8a 0%, #08224f 100%); }
.lx-brand::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.lx-brand > * { position: relative; z-index: 1; }
.lx-logo { display: flex; align-items: center; gap: 12px; }
.lx-logo img { background: #fff; border-radius: 14px; padding: 4px; }
.lx-logo b { display: block; font-size: 1.35rem; } .lx-logo b span { color: #ffd166; } .lx-logo small { color: #c8d8f7; }
.lx-brand h1 { font-size: 2rem; line-height: 1.15; margin: 34px 0 10px; letter-spacing: -.6px; }
.lx-brand p { color: #d6e3fb; margin: 0 0 22px; }
.lx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lx-stats div { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 12px; text-align: center; backdrop-filter: blur(4px); }
.lx-stats b { display: block; font-size: 1.5rem; } .lx-stats span { font-size: 12px; color: #c8d8f7; }
.lx-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 13.5px; color: #e3ecfd; }
.lx-points li { display: flex; gap: 10px; align-items: center; } .lx-points .ic { color: #ffd166; flex: none; }
.lx-form { padding: 36px 38px; }
.lx-form h2 { font-size: 1.6rem; margin: 0; letter-spacing: -.4px; color: #12203a; }
.lx-form > .muted { margin: 4px 0 18px; }
.lx-label { font-weight: 700; font-size: 12.5px; color: var(--grey-700); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .4px; }
.lx .role-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lx .role-pick button { flex-direction: column; gap: 6px; padding: 11px 4px !important; text-align: center; justify-content: center; font-size: 11.5px; line-height: 1.2;
  border: 1.5px solid #e1e7f2; border-radius: 12px; color: var(--grey-700); background: #fbfcff; transition: all .15s var(--ease); min-height: 66px; }
.lx .role-pick button .ic { width: 22px; height: 22px; color: var(--blue-600); }
.lx .role-pick button:hover { border-color: var(--blue-500); background: #f2f7ff; transform: translateY(-1px); }
.lx .role-pick button.sel { background: linear-gradient(150deg, var(--blue-600), #0f3d8a); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(29,100,216,.35); }
.lx .role-pick button.sel .ic { color: #ffd166; }
.lx-input { position: relative; } .lx-input > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--grey-500); width: 18px; height: 18px; pointer-events: none; }
.lx-input input { padding: 12px 42px 12px 40px; font-size: 15px; background: #fbfcff; }
.lx-submit { margin-top: 16px; padding: 13px !important; font-size: 15px; justify-content: center; background: linear-gradient(135deg, var(--blue-600), #0f3d8a) !important; box-shadow: 0 8px 20px rgba(29,100,216,.30); }
.lx-submit:hover { filter: brightness(1.06); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .lx-card { grid-template-columns: 1fr; max-width: 560px; }
  .lx-brand { padding: 24px 24px 22px; } .lx-brand h1 { font-size: 1.45rem; margin: 18px 0 6px; } .lx-brand p, .lx-points { display: none; }
  .lx-stats b { font-size: 1.2rem; }
}
@media (max-width: 900px) {
  .pub-burger { display: grid; place-items: center; }
  .pub-header .inner { flex-wrap: wrap; position: relative; }
  .pub-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 10px 14px 14px; border-bottom: 1px solid var(--grey-200); box-shadow: 0 14px 30px rgba(16,24,40,.12); }
  .pub-nav.open { display: flex; }
  .pub-nav a { padding: 11px 12px; } .pub-nav a.btn { justify-content: center; margin-top: 6px; }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; top: 0; left: -280px; width: 260px; height: 100vh; z-index: 40; transition: left .22s var(--ease); box-shadow: 0 0 40px rgba(0,0,0,.25); }
  .sidebar.open { left: 0; }
  body.sb-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(8,20,45,.45); z-index: 30; }
  body.sb-open { overflow: hidden; }
  .menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--grey-300); background: #fff; }
  .topbar { padding: 8px 12px; gap: 8px; } .topbar-scope { font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content { padding: 14px 12px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 10px; } .page-head h1 { font-size: 1.3rem; }
  .page-head .actions .btn { flex: 1; justify-content: center; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; } .kpi .kpi-value { font-size: 1.3rem; } .kpi .kpi-ic { width: 38px; height: 38px; }
  .card { padding: 14px; border-radius: 12px; }
  .filters { flex-direction: column; align-items: stretch; } .filters .field { width: 100%; }
  .table th, .table td { padding: 8px 9px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; } .tabs a { white-space: nowrap; }
  .steps .step { font-size: 10.5px; }
  .lx { padding: 16px 10px; } .lx-form { padding: 22px 18px; } .lx-form h2 { font-size: 1.35rem; }
  .lx .role-pick { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .lx .role-pick button { min-height: 58px; font-size: 10.5px; padding: 8px 2px !important; }
  .stat-strip, .role-cards, .steps-flow { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.8rem; } .hero .inner { padding: 30px 16px 40px; }
}
@media (max-width: 520px) {
  .lx .role-pick { grid-template-columns: 1fr 1fr; }
  .lx .role-pick button { flex-direction: row; justify-content: flex-start; min-height: 44px; font-size: 12.5px; padding: 8px 10px !important; text-align: left; }
  .lx .role-pick button .ic { width: 18px; height: 18px; }
}
@media (max-width: 420px) {
  .lx-stats { gap: 6px; } .lx-stats div { padding: 8px 4px; }
  .g4 { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.g-side { grid-template-columns: 290px minmax(0, 1fr); }
.pcid-card .body > * { min-width: 0; }
@media (max-width: 900px) { .g-side { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .pcid-card .body { grid-template-columns: 80px minmax(0, 1fr); padding: 10px 12px 14px; }
  .pcid-card .body .photo { width: 80px; height: 96px; }
  .pcid-card .foot { flex-direction: column; gap: 2px; }
}
.grid > * { min-width: 0; }
/* desktop: the sidebar column is dark all the way down, however long the page (or a full-page screenshot) is */
@media (min-width: 761px) { .shell { background: linear-gradient(90deg, #08224f 0, #08224f 236px, transparent 236px); } }
.form-grid > * { min-width: 0; } input[type=file] { max-width: 100%; width: 100%; }
.trade-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; max-height: 260px; overflow: auto;
  border: 1px solid var(--grey-300); border-radius: 10px; padding: 10px 12px; background: #fbfcff; }
.trade-pick label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 500; color: var(--grey-900); margin: 0; }
.trade-pick input { width: auto; margin-top: 2px; }
#email::placeholder, [data-username-input]::placeholder { text-transform: none; }
.lx .role-pick button.sel span { color: #fff; }
