/* internal.ai2n.ai — corporate learning portal. White, quiet, brand navy with an orange accent. */
:root {
  --navy: #102A43;
  --navy-2: #243B53;
  --ink: #1F2933;
  --muted: #627D98;
  --line: #E4E7EB;
  --soft: #F5F7FA;
  --orange: #E96224;
  --orange-soft: #FDF0EA;
  --green: #1F7A4D;
  --green-soft: #E8F5EE;
  --red: #B3261E;
  --red-soft: #FDECEA;
  --amber-soft: #FFF8E6;
  --radius: 12px;
  --canvas: #F5F7FA;
  --line-strong: #D5DCE3;
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, .05);
  --shadow-lg: 0 2px 4px rgba(16, 42, 67, .04), 0 12px 32px rgba(16, 42, 67, .10);
  --shadow: 0 1px 2px rgba(16, 42, 67, .05), 0 4px 14px rgba(16, 42, 67, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--canvas); color: var(--ink); font: 15px/1.6 var(--font); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 30px; font-weight: 750; letter-spacing: -.015em; }
h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); position: sticky; top: 0; z-index: 10; box-shadow: var(--shadow-sm); }
.topbar-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 30px; width: auto; }
.brand-divider { width: 1px; height: 24px; background: var(--line); }
.brand-name { font-weight: 650; color: var(--navy); font-size: 17px; letter-spacing: .01em; }
.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: 14.5px; transition: color .15s, background .15s; }
.mainnav a:hover { color: var(--navy); background: var(--soft); }
.mainnav a.active { color: var(--navy); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.usermenu { display: flex; align-items: center; gap: 12px; }
.user-name { color: var(--navy-2); font-weight: 550; }

.app { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 32px 24px 48px; }
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 16px 24px; color: var(--muted); font-size: 13px; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 10px 18px; font: 600 14px/1.3 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 1px 2px rgba(16,42,67,.2); }
.btn-primary:hover:not(:disabled) { background: var(--navy-2); }
.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 1px 2px rgba(233,98,36,.3); }
.btn-accent:hover:not(:disabled) { filter: brightness(.95); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--soft); border-color: #B9C4CF; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-ms { background: #fff; color: #1F2933; border: 1px solid #C9D2DB; }
.btn-ms:hover { background: var(--soft); }
.ms-logo { width: 18px; height: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ms-logo i { display: block; }
.ms-logo i:nth-child(1) { background: #F25022; } .ms-logo i:nth-child(2) { background: #7FBA00; }
.ms-logo i:nth-child(3) { background: #00A4EF; } .ms-logo i:nth-child(4) { background: #FFB900; }
label { display: block; font-weight: 600; color: var(--navy-2); font-size: 13px; margin: 0 0 6px; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=date], input[type=datetime-local], input[type=number], input[type=tel], input[type=search], select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font: 15px var(--font); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover { border-color: #B9C4CF; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(233,98,36,.15); outline: none; }
textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font: 15px/1.5 var(--font); color: var(--ink); resize: vertical; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.field { margin-bottom: 16px; }
.error { color: var(--red); background: var(--red-soft); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.notice { background: var(--amber-soft); border: 1px solid #F3D99B; color: #5C4813; border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.success { color: var(--green); background: var(--green-soft); border-radius: 8px; padding: 10px 12px; font-size: 14px; }

/* Sign-in */
.auth-wrap { min-height: calc(100vh - 80px); display: grid; place-items: center; }
.auth-split { display: grid; grid-template-columns: 1.05fr 1fr; width: 100%; max-width: 960px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.auth-brand { background: radial-gradient(130% 120% at 100% 0%, #24476F 0%, var(--navy) 60%); color: #fff; padding: 52px 46px; display: flex; flex-direction: column; justify-content: center; }
.auth-brand .eyebrow { color: #FFB38A; }
.auth-motto-ta { font-size: 36px; font-weight: 800; line-height: 1.3; margin: 12px 0 6px; }
.auth-motto-en { color: #FFB38A; font-weight: 650; font-size: 16px; margin-bottom: 30px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: #DCE4EC; }
.auth-points li { position: relative; padding-left: 28px; }
.auth-points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: rgba(255,179,138,.18); box-shadow: inset 0 0 0 2px #FFB38A; }
.auth-card { width: 100%; padding: 48px 44px; background: #fff; }
.auth-card h1 { margin-bottom: 4px; }
.auth-card > .muted { margin-bottom: 22px; }
.auth-logo { height: 36px; margin-bottom: 20px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Page header */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head > div:first-child { flex: 1 1 520px; min-width: 0; }
.page-head p.muted { margin-bottom: 0; max-width: 820px; }
.eyebrow { color: var(--orange); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }

/* "Karpom Karpipom" motto */
.motto-line { color: var(--orange); font-weight: 700; margin: -4px 0 6px; font-size: 16px; }
.motto-line span { color: var(--navy-2); font-weight: 600; }
.motto { border-left: 4px solid var(--orange); background: linear-gradient(90deg, #FFF6F0 0%, #FFFFFF 70%); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 26px; margin-bottom: 32px; box-shadow: var(--shadow-sm); }
.motto-ta { font-size: 22px; font-weight: 700; color: var(--navy); }
.motto-en { color: var(--orange); font-weight: 700; margin: 2px 0 10px; }
.motto p { color: var(--navy-2); margin: 0; max-width: 900px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
.stat span { color: var(--muted); font-size: 13px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s, transform .2s; }
/* A card's progress bar and the line after it sit at the bottom, so cards in a row line up. */
.card > .progress { margin-top: auto; }
a.card:hover { box-shadow: var(--shadow-lg); border-color: #CBD2D9; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card h3 { margin: 0; font-size: 16.5px; line-height: 1.35; }
.card .meta { color: var(--muted); font-size: 13px; }
.tag { display: inline-block; font-size: 12px; font-weight: 650; color: var(--navy-2); background: var(--soft); border-radius: 999px; padding: 2px 10px; }
.tag-orange { background: var(--orange-soft); color: #9A3F12; }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-grey { background: #EEF1F4; color: var(--muted); }
.progress { height: 6px; background: #EEF1F4; border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--orange); }
.progress.done > i { background: var(--green); }
.section { margin-bottom: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.empty { border: 1px dashed #CBD2D9; border-radius: var(--radius); padding: 32px; text-align: center; color: var(--muted); background: #fff; }
/* My learning dashboard */
.dash-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-bottom: 18px; }
.level-card { display: flex; gap: 20px; align-items: center; border-radius: var(--radius); padding: 24px 26px; background: radial-gradient(120% 140% at 100% 0%, #1E3A5F 0%, var(--navy) 55%); color: #fff; box-shadow: var(--shadow); }
.level-card .eyebrow { color: #FFB38A; }
.level-card h2 { color: #fff; margin: 2px 0 10px; }
.level-card .muted { color: #C9D4DF; }
.level-badge { flex: 0 0 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: var(--navy); background: #fff; box-shadow: 0 0 0 4px var(--orange); }
.level-body { flex: 1; min-width: 0; }
.xp-line { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; }
.xp-line b { font-size: 20px; }
.xp-bar { height: 10px; background: rgba(255,255,255,.18); }
.xp-how { margin-top: 12px; font-size: 13px; color: #DCE4EC; }
.xp-how summary { cursor: pointer; font-weight: 650; color: #fff; }
.xp-how ul { margin: 8px 0 0; padding-left: 18px; }
.continue-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: #fff; box-shadow: var(--shadow-sm); }
.continue-card h2 { margin: 0; }
.continue-card .progress { width: 100%; }
.continue-card p { margin: 4px 0; }
.stat-warn { border-color: var(--red-soft); background: var(--red-soft); }
.stat-warn b { color: var(--red); }
.dash-mid { margin-bottom: 32px; align-items: start; }
.dash-mid .panel { margin-bottom: 0; }
.track-row { margin: 12px 0; }
.track-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-weight: 600; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.activity li:last-child { border-bottom: 0; }
.xp-chip { flex: 0 0 64px; text-align: center; font-size: 12px; font-weight: 750; color: #9A3F12; background: var(--orange-soft); border-radius: 999px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.xp-earned { font-size: 15px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: min(380px, calc(100vw - 32px)); background: var(--navy); color: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: 0 10px 30px rgba(16,42,67,.25); font-size: 14px; transition: opacity .5s, transform .5s; }
.toast b { color: #FFB38A; font-size: 16px; margin-right: 4px; }
.toast-level { margin-top: 6px; font-weight: 700; }
.toast.out { opacity: 0; transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Catalogue filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font: 600 13px var(--font); color: var(--navy-2); cursor: pointer; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.filters input[type=search] { max-width: 280px; margin-left: auto; }

/* Module page */
.module-layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.lesson-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 84px; background: #fff; box-shadow: var(--shadow-sm); }
.lesson-list h3 { padding: 14px 16px; margin: 0; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 14px; }
.lesson { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; background: #fff; border-left: 3px solid transparent; width: 100%; text-align: left; font: inherit; color: inherit; border-top: 0; border-right: 0; }
.lesson:last-child { border-bottom: 0; }
.lesson:hover { background: var(--soft); }
.lesson.current { border-left-color: var(--orange); background: #FFFBF8; }
.lesson .tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #CBD2D9; flex: none; margin-top: 2px; display: grid; place-items: center; font-size: 12px; color: #fff; }
.lesson.done .tick { background: var(--green); border-color: var(--green); }
.lesson .lt { font-weight: 600; font-size: 14px; color: var(--navy); }
.lesson .lm { font-size: 12px; color: var(--muted); }
.player { background: #0B1A2A; border-radius: var(--radius); aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; color: #D9E2EC; }
.player iframe, .player video { width: 100%; height: 100%; border: 0; display: block; }
.player-empty { text-align: center; padding: 24px; }
.player-empty b { color: #fff; display: block; margin-bottom: 6px; font-size: 17px; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 24px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { background: none; border: 0; padding: 10px 14px; font: 600 14px var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--navy); border-bottom-color: var(--orange); }
.side-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.obj-level { font-weight: 700; color: var(--orange); font-size: 12px; margin-top: 10px; }
ul.clean { margin: 6px 0 0; padding-left: 20px; }
ul.clean li { margin-bottom: 6px; }
.transcript { white-space: pre-wrap; background: var(--soft); border-radius: var(--radius); padding: 18px; max-height: 420px; overflow: auto; font-size: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; color: var(--muted); font-weight: 650; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: #FAFBFC; }
table.data a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 550; }
table.data a:not(.btn):hover { text-decoration: underline; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background: #fff; box-shadow: var(--shadow-sm); }
.draft-banner { background: var(--amber-soft); border: 1px solid #F3D99B; color: #5C4813; border-radius: 8px; padding: 8px 14px; font-size: 13px; margin-bottom: 18px; }

/* Assessment */
.question { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.question .qh { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.question .qn { color: var(--orange); font-weight: 700; font-size: 13px; }
.question .qt { font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; cursor: pointer; font-weight: 400; color: var(--ink); font-size: 15px; transition: background .15s, border-color .15s; }
.option:has(input:checked) { border-color: var(--navy-2); background: #F3F6FA; }
.option:hover { background: var(--soft); }
.option input { margin-top: 4px; }
.option.correct { border-color: var(--green); background: var(--green-soft); }
.option.wrong { border-color: var(--red); background: var(--red-soft); }
.why { font-size: 14px; color: var(--navy-2); background: var(--soft); border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.result-head { border-radius: 14px; padding: 24px 28px; margin-bottom: 24px; }
.result-head.pass { background: var(--green-soft); }
.result-head.fail { background: var(--red-soft); }
.result-head b { font-size: 34px; color: var(--navy); }
.sticky-submit { position: sticky; bottom: 0; background: rgba(245,247,250,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Admin */
.admin-tabs { margin-bottom: 24px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--navy-2); margin: 0; }
.row-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.checklist { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.checklist label { font-weight: 400; color: var(--ink); font-size: 14px; display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.log { font-family: Consolas, monospace; font-size: 12px; background: var(--soft); border-radius: 8px; padding: 10px; max-height: 220px; overflow: auto; white-space: pre-wrap; }
.profile-group { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 14px; margin: 14px 0 0; }
.profile-group legend { font-weight: 700; color: var(--navy); font-size: 13px; padding: 0 6px; }
.profile-group input:disabled, .profile-group select:disabled { background: var(--soft); color: var(--muted); }
.from-ms { font-size: 12px; color: var(--muted); font-weight: 500; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; margin: 0; }
.kv div { min-width: 0; }
.kv dt { font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kv dd { margin: 2px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.kv-section { font-size: 14px; color: var(--navy); margin: 22px 0 10px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.btn-danger { background: #fff; color: var(--red); border-color: var(--red-soft); }
.btn-danger:hover:not(:disabled) { background: var(--red-soft); }
details.more summary { cursor: pointer; font-weight: 650; color: var(--navy-2); margin-top: 14px; }

@media (max-width: 860px) {
  .module-layout, .two-col, .side-cards, .dash-top, .auth-split { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 24px; }
  .auth-motto-ta { font-size: 27px; }
  .auth-motto-en { margin-bottom: 0; }
  .auth-points { display: none; }
  .auth-card { padding: 28px 24px 32px; }
  .auth-wrap { min-height: auto; padding: 8px 0; }
  .dash-mid .panel + .panel { margin-top: 18px; }
  .lesson-list { position: static; }
  /* Navigation drops to its own scrollable row rather than disappearing. */
  .topbar-inner { height: auto; flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; }
  .mainnav { order: 3; flex: 1 0 100%; overflow-x: auto; }
  .mainnav a { white-space: nowrap; }
  .usermenu { margin-left: auto; }
  .user-name, .brand-name, .brand-divider { display: none; }
  .app { padding: 24px 16px 40px; }
  .filters input[type=search] { max-width: none; margin-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 14px 16px; }
  .stat b { font-size: 22px; }
  h1 { font-size: 25px; }
  .page-head { margin-bottom: 20px; }
  .mainnav { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a { font-size: 14px; padding: 8px 10px; }
  .level-card { padding: 20px; }
  .panel { padding: 18px; }
}

/* Certifications */
.tier-fundamentals { background: #E6F0FA; color: #1F4E79; }
.tier-associate { background: var(--orange-soft); color: #9A3F12; }
.tier-expert { background: #EDE7F6; color: #4A2C82; }
.tag-red { background: var(--red-soft); color: var(--red); }
.cert-layout { grid-template-columns: 1fr 340px; }
.cert-modules { list-style: none; margin: 0; padding: 0; }
.cert-modules li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cert-modules a { color: var(--navy); text-decoration: none; font-weight: 550; }
.cert-modules a:hover { text-decoration: underline; }
.kv-tight dd { font-size: 14.5px; }
.cert-modules li:last-child { border-bottom: 0; }
.cert-action .cert-standing { margin: 12px 0; }
.cert-action .btn-block { margin-bottom: 16px; }
.kv-tight { grid-template-columns: 1fr; gap: 10px; margin: 6px 0 14px; }
.exam-bar { position: sticky; top: 64px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(245,247,250,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 14px; }
.exam-clock { display: flex; gap: 14px; align-items: center; }
.exam-clock b { font: 700 22px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--navy); background: var(--soft); border-radius: 8px; padding: 6px 12px; }
.exam-clock b.clock-low { color: #fff; background: var(--red); }
.cert-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.certificate { position: relative; overflow: hidden; max-width: 1000px; margin: 0 auto; background: #fff; border: 2px solid var(--navy); outline: 6px solid #fff; box-shadow: 0 0 0 8px var(--orange-soft), 0 12px 32px rgba(16,42,67,.12); border-radius: 6px; padding: 40px 56px 28px; text-align: center; }
.cert-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.cert-head img { height: 46px; }
.cert-brand { text-align: right; font-weight: 800; color: var(--navy); letter-spacing: .06em; text-transform: uppercase; font-size: 15px; }
.cert-brand span { display: block; color: var(--orange); font-size: 13px; }
.cert-lead { color: var(--muted); margin: 6px 0; font-size: 15px; }
.cert-name { font-size: clamp(28px, 5vw, 44px); margin: 6px 0 10px; color: var(--navy); border-bottom: 2px solid var(--orange); display: inline-block; padding: 0 24px 6px; overflow-wrap: anywhere; }
.cert-title { font-size: clamp(19px, 3vw, 26px); color: var(--navy); margin: 8px 0 10px; }
.cert-desc { max-width: 680px; margin: 0 auto 26px; color: var(--ink); font-size: 14px; }
.cert-foot { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; align-items: end; text-align: left; border-top: 1px solid var(--line); padding-top: 18px; }
.cert-meta div { margin-bottom: 6px; }
.cert-meta span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cert-meta b { color: var(--navy); }
.cert-sign { text-align: center; }
.cert-sig-name { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 30px; color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 2px; }
.cert-sig-print { font-size: 13px; font-weight: 700; color: var(--navy); margin-top: 6px; }
.cert-sig-role { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cert-qr { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); text-align: center; }
.cert-qr img { width: 96px; height: 96px; }
.cert-motto { margin: 18px 0 0; color: var(--orange); font-weight: 650; font-size: 14px; }
.cert-motto span { color: var(--muted); font-weight: 500; }
.cert-void .cert-name, .cert-void .cert-title { opacity: .55; }
.cert-stamp { position: absolute; top: 34px; right: -46px; transform: rotate(35deg); background: var(--red); color: #fff; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 60px; }
.verify-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--soft); }
.verify-card { width: min(560px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow-lg); }
.verify-result { border-radius: 10px; padding: 16px 18px; margin: 16px 0 20px; }
.verify-result.ok { background: var(--green-soft); }
.verify-result.bad { background: var(--red-soft); }
.verify-status { font-weight: 800; font-size: 18px; margin-bottom: 12px; color: var(--navy); }
.verify-result.ok .verify-status { color: var(--green); }
.verify-result.bad .verify-status { color: var(--red); }
.verify-form { margin: 8px 0 14px; }
.verify-row { display: flex; gap: 8px; }
.verify-row input { flex: 1; min-width: 0; text-transform: uppercase; }
@media (max-width: 720px) {
  .cert-layout { grid-template-columns: 1fr; }
  .certificate { padding: 28px 20px 20px; }
  .cert-foot { grid-template-columns: 1fr; text-align: center; }
  .cert-head { flex-direction: column; }
  .cert-brand { text-align: center; }
}
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .topbar, .footer, .no-print, .toast { display: none !important; }
  .app { padding: 0 !important; max-width: none !important; }
  body { background: #fff; }
  .certificate { box-shadow: none; outline: none; max-width: none; page-break-inside: avoid; }
  .cert-foot { grid-template-columns: 1fr 1fr auto; text-align: left; }
}

/* Start here: programme guide, find my path, certification map */
.guide h2 { margin: 34px 0 10px; }
.guide h3 { margin: 18px 0 8px; }
.guide p, .guide li { max-width: 860px; }
.guide-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 22px 0 6px; }
.guide-step { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.guide-step:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.guide-step span:last-child { color: var(--muted); font-size: 14px; }
.guide-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; }
.guide-list { padding-left: 20px; }
.guide-list li { margin: 6px 0; }
.kv-levels { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.faq { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--navy); }
.faq p { margin: 8px 0 0; }
.path-nudge { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(90deg, #FFF1E8, #FFF8F3); border: 1px solid #F6D3C2; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.path-action { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.cert-path { margin: 8px 0; padding-left: 20px; }
.cert-path li { margin: 8px 0; }
.cert-path a { color: var(--navy); font-weight: 600; text-decoration: none; margin-left: 4px; }
.cert-path a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.path-table { table-layout: fixed; min-width: 760px; }
.path-table th:nth-child(1) { width: 52px; } .path-table th:nth-child(3) { width: 78px; } .path-table th:nth-child(4) { width: 120px; }
.path-table th:nth-child(5) { width: 84px; } .path-table th:nth-child(6) { width: 210px; } .path-table th:nth-child(7) { width: 104px; }
.path-table td:nth-child(2) { overflow-wrap: anywhere; }
.path-table tr.optional td { color: var(--muted); }
.cert-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.cert-col { display: flex; flex-direction: column; gap: 12px; }
.cert-col h2 { margin: 0 0 4px; }
.cert-node { border-left-width: 4px; }
.tier-border-fundamentals { border-left-color: #1F4E79; }
.tier-border-associate { border-left-color: var(--orange); }
.tier-border-expert { border-left-color: #4A2C82; }
@media (max-width: 860px) { .cert-map { grid-template-columns: 1fr; } }

/* Course materials and the PDF reader */
.material { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; row-gap: 8px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.material-name { display: contents; }
.material-name b { grid-column: 2; }
.material-actions { grid-column: 2; }
.material b { color: var(--navy); }
.material-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.material-icon { grid-row: span 2; width: 30px; height: 36px; border-radius: 4px; position: relative; flex: none; box-shadow: inset 0 0 0 1px rgba(16,42,67,.12); }
.material-icon::after { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font: 800 9px/1 var(--font); color: #fff; }
.material-guide { background: #2B5797; } .material-guide::after { content: "DOC"; }
.material-deck { background: #C4472B; } .material-deck::after { content: "PPT"; }
body.reading { overflow: hidden; }
.reader { position: fixed; inset: 0; z-index: 100; background: rgba(11,26,42,.82); display: flex; flex-direction: column; padding: 16px; gap: 10px; }
.reader-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow-lg); }
.reader-title { color: var(--navy); }
.reader-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.reader-frame { flex: 1; width: 100%; border: 0; border-radius: 10px; background: #525659; box-shadow: var(--shadow-lg); }
@media (max-width: 720px) { .reader { padding: 8px; } .reader-actions .btn { padding: 6px 10px; } }

/* Workspace: portal switcher, decks, portal menus */
.user-name { text-decoration: none; }
.user-name:hover { text-decoration: underline; }
.portal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.side { position: sticky; top: 88px; }
.side-nav { display: flex; flex-direction: column; gap: 18px; }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-title { font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 6px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--navy-2); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s; }
.side-nav a:hover { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.side-nav a.active { background: #fff; color: var(--navy); box-shadow: inset 3px 0 0 var(--orange), var(--shadow-sm); }
.side-badge { min-width: 22px; text-align: center; font-size: 11.5px; font-weight: 750; color: #fff; background: var(--orange); border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.decks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.deck { --deck: var(--navy); --deck-soft: #E6EDF5; position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; min-height: 200px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.deck::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; background: var(--deck-soft); opacity: .7; z-index: 0; }
.deck > * { position: relative; z-index: 1; }
.deck:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--line-strong); }
.deck-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--deck); color: #fff; margin-bottom: 6px; }
.deck-name { font-size: 21px; font-weight: 750; color: var(--navy); letter-spacing: -.01em; }
.deck-blurb { color: var(--muted); font-size: 14px; }
.deck-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; }
.deck-note { font-size: 13px; color: var(--navy-2); font-weight: 550; }
.deck-hr { --deck: #7B4BB7; --deck-soft: #F1EAFA; }
.deck-sales { --deck: #1F7A4D; --deck-soft: #E8F5EE; }
.deck-it { --deck: #2563A8; --deck-soft: #E6F0FA; }
.deck-learning { --deck: var(--orange); --deck-soft: var(--orange-soft); border-color: #F6C8B0; }
.deck-tools { --deck: #47586B; --deck-soft: #EEF1F4; }
.deck-travel { --deck: #0E7C86; --deck-soft: #E3F4F5; }
@media (prefers-reduced-motion: reduce) { .deck:hover { transform: none; } }
.soon-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius); background: var(--amber-soft); border: 1px solid #F3E2B3; margin-bottom: 24px; color: var(--navy-2); font-size: 14px; }
.soon { text-align: center; padding: 48px 24px; border-radius: var(--radius); background: #fff; border: 1px dashed #CBD2D9; }
.soon-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--soft); color: var(--navy-2); margin-bottom: 12px; }
.soon-icon svg { width: 32px; height: 32px; }
.soon .muted { max-width: 520px; margin: 0 auto 18px; }

/* Learning workspace */
.text-red { color: var(--red); }
.done-list { columns: 2; margin-top: 10px; }
.done-list a { text-decoration: none; }
.class-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.class-card.is-cancelled { opacity: .7; }
.class-card.is-cancelled h3 { text-decoration: line-through; }
.class-date { text-align: center; border-radius: 10px; background: var(--orange-soft); color: #9A3F12; padding: 8px 0; }
.class-date b { display: block; font-size: 24px; line-height: 1.1; }
.class-date span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.class-body h3 { margin: 0 0 4px; }
.class-body .meta { color: var(--muted); font-size: 13.5px; }
.class-desc { margin-top: 8px; font-size: 14.5px; }
.class-desc p:last-child { margin-bottom: 0; }
.class-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.task-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.brief p:last-child { margin-bottom: 0; }
.feedback { border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: 14.5px; }
.feedback p { margin: 6px 0 0; }
.fb-ok { background: var(--green-soft); color: #14532D; }
.fb-change { background: var(--amber-soft); color: #6B4E00; }
.task-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.task-form h3 { margin-bottom: 12px; }
.messages { display: flex; flex-direction: column; gap: 12px; }
.message { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.message.unread { box-shadow: inset 3px 0 0 var(--orange), var(--shadow-sm); }
.message.important { border-color: #F2C4C0; }
.message-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.message-head h2 { font-size: 17px; margin: 0 0 2px; }
.message-body { margin-top: 10px; }
.message-body p:last-child { margin-bottom: 0; }
.portfolio-head { display: flex; gap: 20px; align-items: center; padding: 24px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 32px; }
.portfolio-head h2 { margin: 0 0 2px; font-size: 22px; }
.avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 750; font-size: 24px; letter-spacing: .02em; }
.pf-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; color: var(--navy-2); }
.pf-work { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pf-item { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-item h3 { margin: 0; }
.pf-note { font-size: 14px; color: var(--navy-2); background: var(--soft); border-radius: 8px; padding: 10px 12px; margin: 6px 0; }
.pf-note p:last-child { margin-bottom: 0; }
.ladder { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ladder li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 6px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.ladder b { color: var(--muted); font-weight: 650; }
.ladder-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #EEF1F4; color: var(--muted); font-weight: 750; font-size: 13px; margin-bottom: 4px; }
.ladder li.reached .ladder-dot { background: var(--green-soft); color: var(--green); }
.ladder li.reached b { color: var(--navy-2); }
.ladder li.current { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(233, 98, 36, .12); }
.ladder li.current .ladder-dot { background: var(--orange); color: #fff; }
.ladder li.current b { color: var(--navy); }
.review-item { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.review-item:first-of-type { border-top: 0; }
.review-item .card-top { display: flex; justify-content: space-between; gap: 10px; }

@media (max-width: 1080px) {
  .decks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  /* The portal menu becomes a scrollable row of chips above the page. */
  .portal-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .side { position: static; margin: 0 -16px; min-width: 0; }
  .side-nav { flex-direction: row; gap: 0; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-group { flex-direction: row; gap: 6px; padding-right: 6px; }
  .side-title { display: none; }
  .side-nav a { white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; }
  .side-nav a.active { background: var(--navy); color: #fff; box-shadow: none; border-color: var(--navy); }
  .decks { grid-template-columns: 1fr; gap: 14px; }
  .deck { min-height: 0; padding: 20px; }
  .class-card { grid-template-columns: 56px minmax(0, 1fr); }
  .class-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
  .task-layout { grid-template-columns: 1fr; }
  .portfolio-head { flex-direction: column; align-items: flex-start; padding: 20px; }
  .pf-work { grid-template-columns: 1fr; }
  .done-list { columns: 1; }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .side { display: none !important; }
  .portal-layout { display: block; }
}

/* IT > User administration: per-portal access */
.access-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 24px; }
.access-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.access-name { font-weight: 650; color: var(--navy-2); font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: #fff; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); border-left: 1px solid var(--line); cursor: pointer; }
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: -2px; }
.seg input:disabled + span { opacity: .45; cursor: not-allowed; }
.seg input:disabled { cursor: not-allowed; }
.access-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tag-off { text-decoration: line-through; }
.data td .row-actions { flex-wrap: nowrap; }

/* Tools > ID & business cards */
.card-builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.card-preview { position: sticky; top: 88px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.preview-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.preview-sides { display: grid; grid-template-columns: 1fr; gap: 14px; }
.preview-sides.is-portrait { grid-template-columns: 1fr 1fr; }
.preview-sides figure { margin: 0; text-align: center; }
.preview-sides img { width: 100%; height: auto; display: block; border-radius: 8px; background: repeating-conic-gradient(#EEF1F4 0% 25%, #fff 0% 50%) 50% / 16px 16px; box-shadow: 0 1px 2px rgba(16,42,67,.12), 0 6px 18px rgba(16,42,67,.10); }
.preview-sides img:not([src]) { aspect-ratio: 1125 / 675; }
.preview-sides.is-portrait img:not([src]) { aspect-ratio: 709 / 1082; }
.preview-sides figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.photo-tune { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; margin-top: 10px; }
.photo-tune label { margin: 0; font-weight: 600; }
.ai-box { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); }
.ai-box table { margin: 8px 0; }
.ai-box ul { margin: 6px 0; padding-left: 18px; }
.order-card { display: flex; gap: 8px; align-items: baseline; font-weight: 400; color: var(--ink); font-size: 14px; }
.order-list li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.order-list li:first-child { border-top: 0; }
input[type=range] { width: 100%; accent-color: var(--orange); }
@media (max-width: 1080px) { .card-builder { grid-template-columns: 1fr; } .card-preview { position: static; } }

/* Teacher programme (teach.ai2n.ai) */
.auth-alt { margin: 18px 0 6px; text-align: center; }
.level-list { display: grid; gap: 16px; margin-top: 16px; }
.level-panel .level-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.level-panel .level-badge { flex-basis: 48px; height: 48px; font-size: 22px; }
.level-panel h3 { font-size: 15px; margin: 8px 0 4px; }
.level-panel .row-actions { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.guide .notice, .page-head + .notice { margin-bottom: 16px; }
.auth-forgot { margin: 10px 0 0; text-align: right; font-size: 14px; }

/* Sales portal */
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.queue li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline li.done b { color: var(--muted); }
.funnel { display: grid; gap: 8px; margin-bottom: 10px; }
.funnel-row { display: grid; grid-template-columns: 150px 1fr 160px; gap: 12px; align-items: center; color: inherit; text-decoration: none; font-size: 14px; }
.funnel-bar { height: 12px; background: var(--soft); border-radius: 6px; overflow: hidden; }
.funnel-bar i { display: block; height: 100%; background: var(--orange); border-radius: 6px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.board-col { background: var(--soft); border-radius: var(--radius); padding: 10px; min-height: 160px; display: flex; flex-direction: column; gap: 8px; }
.board-head { display: flex; flex-direction: column; gap: 2px; padding: 2px 4px 6px; }
.deal-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.deal-card:hover { border-color: var(--navy-2); }
.deal-meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.deal-meta .overdue { color: var(--red); }
.stepper { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: st; }
.stepper li { flex: 1 1 100px; text-align: center; font-size: 12.5px; font-weight: 600; padding: 7px 6px; background: var(--soft); color: var(--muted); border-radius: 6px; }
.stepper li.done { background: var(--green-soft); color: var(--green); }
.stepper li.current { background: var(--navy); color: #fff; }
.stepper li.current.lost { background: var(--red); }
.stepper li.current.won { background: var(--green); }
.disc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 18px; }
.quote-lines input, .quote-lines select { width: 100%; min-width: 0; }
.quote-totals { display: grid; justify-content: end; gap: 4px; margin-top: 14px; font-size: 14px; }
.quote-totals div { display: grid; grid-template-columns: 140px 160px; text-align: right; gap: 12px; }
.quote-totals .grand { font-size: 16px; color: var(--navy); border-top: 1px solid var(--line); padding-top: 6px; }
.add-box { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.add-box > summary { cursor: pointer; font-weight: 650; color: var(--navy-2); }
.dup-list { margin: 8px 0 10px; padding-left: 18px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-list .chip { cursor: default; display: inline-flex; gap: 6px; align-items: center; }
.link-btn { background: none; border: 0; color: var(--orange); font: inherit; font-size: 12px; cursor: pointer; padding: 0; text-decoration: underline; }
label.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.act-form textarea { width: 100%; }
@media (max-width: 720px) {
  .funnel-row { grid-template-columns: 1fr; gap: 4px; }
  .quote-totals div { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: auto 1fr; }
  .timeline li > .btn { grid-column: 2; justify-self: start; }
}
a.chip { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
