/* Shared components (public site + portals) */

/* Icons */
.ico { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }

/* Buttons */
.btn { --bg: var(--ink); --fg: #fff; --bd: var(--bg); position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .65em; min-height: 50px; padding: .8em 1.5em; border: 1.5px solid var(--bd); border-radius: var(--r-pill); background: var(--bg); color: var(--fg); font: 700 .95rem/1 var(--f-body); letter-spacing: .005em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: color .35s var(--ease), border-color .35s, transform .35s var(--ease), box-shadow .35s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand); transform: translateY(102%); border-radius: inherit; transition: transform .45s var(--ease); }
.btn:hover { color: #fff; border-color: var(--brand); box-shadow: 0 14px 30px -14px rgba(10,111,176,.7); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.98); }
.btn .ico { width: 1.05em; height: 1.05em; }
.btn:hover .ico-arrow { transform: translateX(4px); }
.btn--primary { --bg: var(--brand); } .btn--primary::before { background: var(--ink); } .btn--primary:hover { border-color: var(--ink); box-shadow: var(--sh-2); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); } .btn--ghost:hover { --fg: #fff; }
.btn--light { --bg: #fff; --fg: var(--ink); --bd: #fff; } .btn--light::before { background: var(--cyan); } .btn--light:hover { color: var(--ink); border-color: var(--cyan); }
.btn--glass { --bg: rgba(255,255,255,.12); --fg: #fff; --bd: rgba(255,255,255,.45); backdrop-filter: blur(8px); } .btn--glass::before { background: #fff; } .btn--glass:hover { color: var(--ink); border-color: #fff; }
.btn--soft { --bg: var(--mist); --fg: var(--brand-3); --bd: transparent; } .btn--soft:hover { border-color: transparent; }
.btn--danger { --bg: var(--danger); } .btn--danger::before { background: #7f2410; }
.btn--sm { min-height: 38px; padding: .5em 1.05em; font-size: .85rem; } .btn--lg { min-height: 60px; padding: 1em 2em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .65; }
.btn.is-loading::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-circle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: all .3s var(--ease); flex: none; }
.btn-circle:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-circle--glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; backdrop-filter: blur(8px); } .btn-circle--glass:hover { background: #fff; color: var(--ink); }
.link { position: relative; display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--ink); text-decoration: none; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform: scaleX(.25); transform-origin: left; transition: transform .45s var(--ease); }
.link:hover::after { transform: scaleX(1); } .link:hover .ico { transform: translateX(4px); } .link--light { color: #fff; }

/* Badges, chips, markers */
.badge { display: inline-flex; align-items: center; gap: .4em; padding: .3em .8em; border-radius: var(--r-pill); font: 700 .72rem/1.2 var(--f-body); letter-spacing: .02em; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.badge--ok { background: var(--ok-2); color: var(--ok); } .badge--warn { background: var(--warn-2); color: var(--warn); } .badge--danger { background: var(--danger-2); color: var(--danger); } .badge--info { background: var(--info-2); color: var(--info); }
.badge--usa { background: var(--usa-2); color: var(--usa); } .badge--uk { background: var(--uk-2); color: var(--uk); } .badge--canada { background: var(--canada-2); color: var(--canada); } .badge--australia { background: var(--australia-2); color: var(--australia); } .badge--ireland { background: var(--ireland-2); color: var(--ireland); } .badge--nz { background: var(--nz-2); color: var(--nz); }
.badge--glass { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); }
.badge--sample { background: var(--sun-2); color: var(--warn); border: 1px dashed #d8b468; }
.chip { display: inline-flex; align-items: center; gap: .45em; min-height: 42px; padding: .45em 1.05em; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 .9rem/1.1 var(--f-body); cursor: pointer; transition: all .25s var(--ease); text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
/* Segmented filter row: one line always; scrolls sideways (with an edge fade) only when the screen is too narrow */
.seg { display: flex; flex-wrap: nowrap; gap: .4rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 3px; margin: -3px; }
.seg::-webkit-scrollbar { display: none; }
.seg > .chip { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; text-decoration: none; }
.seg.is-scrollable { --fade: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); -webkit-mask-image: var(--fade); mask-image: var(--fade); }
.seg.is-scrollable.is-start { --fade: linear-gradient(90deg, #000 calc(100% - 24px), transparent); } .seg.is-scrollable.is-end { --fade: linear-gradient(90deg, transparent, #000 24px); }

.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.verify { display: inline-flex; align-items: center; gap: .45em; font: 600 .72rem/1.3 var(--f-body); color: var(--warn); background: var(--warn-2); padding: .3em .7em; border-radius: var(--r-xs); }
.verify::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); flex: none; }
.tbc { background: repeating-linear-gradient(135deg, var(--sun-2) 0 7px, #fff8e8 7px 14px); border: 1px dashed #d8b468; color: var(--warn); padding: .05em .45em; border-radius: 5px; font-size: .92em; }

/* Cards */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.2rem, 1rem + .8vw, 1.9rem); box-shadow: var(--sh-1); }
.card--flat { box-shadow: none; } .card--tint { background: var(--mist); border-color: var(--mist-2); } .card--paper { background: var(--paper-2); border-color: transparent; box-shadow: none; }
.card--hover { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: transparent; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; } .card__head h3, .card__head h4 { margin: 0; font-size: 1.05rem; }
.card-link { text-decoration: none; color: inherit; display: block; } .card-link:hover { color: inherit; }
.icon-tile { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--mist); color: var(--brand); } .icon-tile .ico { width: 24px; height: 24px; }

/* Forms */
.field { display: grid; gap: .45rem; margin-bottom: 1.15rem; }
.field > label, .label { font: 700 .86rem/1.3 var(--f-body); color: var(--ink); }
.field .hint { font-size: var(--t-xs); color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: .8em 1.05em; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6878' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; background-size: 18px; padding-right: 2.6em; }
.input:hover, .select:hover, .textarea:hover { border-color: #cbc4b4; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); background: #fffaf8; }
.field__error { color: var(--danger); font-size: var(--t-xs); font-weight: 700; }
.check { display: flex; gap: .75em; align-items: flex-start; cursor: pointer; font-size: var(--t-sm); }
.check input { width: 20px; height: 20px; margin-top: .15em; accent-color: var(--brand); flex: none; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: .7em 1em; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-weight: 600; font-size: .92rem; transition: all .2s var(--ease); }
.option input:checked + span { border-color: var(--brand); background: var(--info-2); color: var(--brand-3); box-shadow: inset 0 0 0 1px var(--brand); }
.option input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.search { position: relative; } .search > .ico { position: absolute; left: 1.05em; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; } .search .input { padding-left: 2.9em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; } .form-grid .full { grid-column: 1 / -1; }
.toggle { appearance: none; width: 46px; height: 28px; border-radius: 28px; background: var(--line); position: relative; cursor: pointer; transition: background .25s; flex: none; margin: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .3s var(--ease-back); }
.toggle:checked { background: var(--brand); } .toggle:checked::after { transform: translateX(18px); }
.dropzone { display: grid; place-items: center; gap: .5rem; text-align: center; border: 2px dashed #b7c7d4; border-radius: var(--r-lg); padding: 2rem 1.2rem; background: var(--mist); cursor: pointer; transition: all .25s; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--brand); background: var(--info-2); }

/* Alerts / flash */
.alert { display: flex; gap: .8rem; align-items: flex-start; padding: .95rem 1.15rem; border-radius: var(--r-md); font-size: var(--t-sm); border: 1px solid transparent; }
.alert--success { background: var(--ok-2); color: var(--ok); border-color: #bfe3cf; } .alert--error { background: var(--danger-2); color: var(--danger); border-color: #f2c2b6; }
.alert--info { background: var(--info-2); color: var(--brand-3); border-color: #c4e0f2; } .alert--warn { background: var(--warn-2); color: var(--warn); border-color: #efd8a6; }
.flashes { display: grid; gap: .6rem; }

/* Tabs */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 1.6rem; } .tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; background: none; border: 0; padding: .95em 1.1em; font: 700 .92rem/1 var(--f-body); color: var(--muted); cursor: pointer; white-space: nowrap; text-decoration: none; }
.tab::after { content: ""; position: absolute; left: 1.1em; right: 1.1em; bottom: -1px; height: 2.5px; border-radius: 3px; background: var(--brand); transform: scaleX(0); transition: transform .35s var(--ease); }
.tab:hover { color: var(--ink); } .tab[aria-selected="true"], .tab.is-on { color: var(--ink); } .tab[aria-selected="true"]::after, .tab.is-on::after { transform: scaleX(1); }

/* Accordion */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 1.35rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; font: 600 1.08rem/1.4 var(--f-body); color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .pm { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); flex: none; transition: all .35s var(--ease); }
.acc summary .pm::before, .acc summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.acc summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc details[open] summary .pm { background: var(--ink); border-color: var(--ink); } .acc details[open] summary .pm::before, .acc details[open] summary .pm::after { background: #fff; }
.acc details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); }
.acc .acc__body { padding: 0 3.5rem 1.4rem 0; color: var(--ink-2); max-width: 75ch; animation: rise .4s var(--ease); }

/* Progress */
.bar { height: 8px; background: var(--line-2); border-radius: var(--r-pill); overflow: hidden; }
.bar > span { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--cyan)); transition: width 1.2s var(--ease); }
.bar--ok > span { background: var(--ok); }
.ring { --p: 0; --sz: 96px; width: var(--sz); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line-2) 0); display: grid; place-items: center; position: relative; transition: --p 1s; flex: none; }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font: 500 1.35rem/1 var(--f-display); color: var(--ink); }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.stepper { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.6rem; }
.stepper li { flex: 1; font: 700 .72rem/1.3 var(--f-body); color: var(--faint); letter-spacing: .02em; margin: 0; }
.stepper li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: .5em; transition: background .4s; }
.stepper li.done::before, .stepper li.now::before { background: var(--brand); } .stepper li.now { color: var(--brand); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 2.1rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 1.35rem; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -2.1rem; top: .15em; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.timeline li.done::before { background: var(--brand); border-color: var(--brand); }
.timeline li.done::after { content: ""; position: absolute; left: calc(-2.1rem + 7px); top: calc(.15em + 7px); width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.timeline li.now::before { border-color: var(--brand); box-shadow: 0 0 0 6px var(--cyan-2); }
.timeline strong { display: block; color: var(--ink); } .timeline span { font-size: var(--t-sm); color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.table th { text-align: left; font: 700 .7rem/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: .95em 1.05em; background: #fcfbf7; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .95em 1.05em; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; } .table tbody tr { transition: background .2s; } .table tbody tr:hover { background: #fcfbf7; }
.table .strong, .table a.strong { font-weight: 700; color: var(--ink); text-decoration: none; display: block; }
.table--compare th:first-child, .table--compare td:first-child { position: sticky; left: 0; background: #fcfbf7; z-index: 1; min-width: 150px; }

/* Avatars, stats */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--cyan-2); color: var(--brand-3); font: 800 .8rem/1 var(--f-body); flex: none; }
.avatar--lg { width: 60px; height: 60px; font-size: 1.05rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; }
.stat .k { font: 700 .7rem/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stat .v { font: 400 2.3rem/1.1 var(--f-display); color: var(--ink); margin: .3em 0 .15em; letter-spacing: -.03em; }
.stat .d { font-size: var(--t-xs); color: var(--muted); }

/* Dialog, toast */
.overlay { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 1rem; background: rgba(8,19,31,.55); backdrop-filter: blur(6px); animation: rise .25s var(--ease); }
.dialog { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: var(--r-xl); padding: clamp(1.3rem, 1rem + 1.5vw, 2.2rem); box-shadow: var(--sh-3); animation: rise .35s var(--ease); }
.dialog--wide { width: min(900px, 100%); }
.dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; } .dialog__head h3 { margin: 0; }
.toasts { position: fixed; left: 50%; bottom: calc(1.2rem + var(--dock-h)); transform: translateX(-50%); z-index: 1600; display: grid; gap: .5rem; width: min(460px, calc(100vw - 2rem)); }
.toast { display: flex; gap: .8rem; align-items: flex-start; padding: .95rem 1.15rem; border-radius: var(--r-md); background: var(--ink); color: #fff; box-shadow: var(--sh-3); font-size: var(--t-sm); animation: rise .35s var(--ease); }
.toast--error { background: var(--danger); } .toast--ok .ico { color: var(--cyan); }

/* Empty states */
.empty { text-align: center; padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) 1.5rem; border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--surface); }
.empty .ico { width: 38px; height: 38px; color: var(--faint); margin: 0 auto .8rem; } .empty h4 { margin-bottom: .3em; } .empty p { color: var(--muted); margin-inline: auto; max-width: 46ch; }

/* Chat */
.chat { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2); }
.chat__head { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--mist)); }
.chat__orb { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--cyan), var(--brand) 60%, var(--brand-3)); color: #fff; box-shadow: 0 0 0 4px rgba(65,197,244,.15); animation: pulse 2.6s infinite; flex: none; }
.chat__body { flex: 1; padding: 1.3rem; display: flex; flex-direction: column; gap: .9rem; overflow-y: auto; min-height: 300px; max-height: 520px; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: .85em 1.1em; border-radius: 20px; font-size: .95rem; line-height: 1.55; animation: rise .35s var(--ease); overflow-wrap: anywhere; }
.msg p:last-child, .msg ul:last-child, .msg ol:last-child { margin-bottom: 0; }
.msg--user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg--bot { align-self: flex-start; background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 6px; }
.msg--bot a { color: var(--brand-2); }
.msg__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.msg__meta span { font: 600 .7rem/1 var(--f-body); padding: .4em .7em; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); color: var(--brand); }
.msg--note { align-self: stretch; max-width: none; background: var(--sun-2); border: 1px dashed #d8b468; color: #6b4a07; border-radius: 14px; }
.msg--note::before { content: "Internal note · not visible to the student"; display: block; font: 800 .65rem/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .35em; }
.msg__time { display: block; font-size: .7rem; opacity: .6; margin-top: .35rem; }
.typing { display: inline-flex; gap: 5px; padding: .3em 0; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dots 1.2s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.chat__foot { padding: 1rem 1.3rem 1.2rem; border-top: 1px solid var(--line); background: #fff; }
.chat__prompts { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; margin-bottom: .75rem; } .chat__prompts::-webkit-scrollbar { display: none; }
.chat__prompts .chip { min-height: 36px; font-size: .82rem; white-space: nowrap; }
.chat__form { display: flex; gap: .5rem; } .chat__form .input { border-radius: var(--r-pill); min-height: 50px; }
.fb { display: inline-flex; gap: .3rem; margin-top: .6rem; } .fb button { background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: .25em .7em; font-size: .75rem; cursor: pointer; color: var(--muted); } .fb button:hover { color: var(--brand); border-color: var(--brand); }

/* Charts */
.chart { width: 100%; height: auto; overflow: visible; } .chart text { font: 600 11px var(--f-body); fill: var(--muted); }
.chart .gl { stroke: var(--line-2); } .chart .bar-r { fill: var(--brand); transform-box: fill-box; transform-origin: bottom; animation: growY 1s var(--ease) both; }
@keyframes growY { from { transform: scaleY(0); } }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: var(--t-xs); color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4em; vertical-align: -1px; }
/* Lead funnel: the label and count always get the full row; the stage's share is a separate indicator underneath */
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.funnel__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .45rem .75rem; margin: 0; padding: .6rem .9rem .65rem; border-radius: 12px; color: #fff; background: linear-gradient(90deg, var(--brand), var(--cyan)); background: linear-gradient(90deg, color-mix(in srgb, var(--brand) calc(100% - var(--i, 0) * 9%), var(--cyan)), var(--cyan)); }
.funnel__label { font: 700 .86rem/1.25 var(--f-body); overflow-wrap: anywhere; }
.funnel__count { font: 800 .95rem/1 var(--f-body); font-variant-numeric: tabular-nums; text-align: right; }
.funnel__track { grid-column: 1 / -1; display: block; height: 5px; border-radius: var(--r-pill); background: rgba(255,255,255,.3); overflow: hidden; }
.funnel__fill { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: #fff; transition: width 1.2s var(--ease); }
.hbar { display: grid; gap: .3rem; } .hbar + .hbar { margin-top: .9rem; } .hbar__row { display: flex; justify-content: space-between; font-size: var(--t-sm); }

/* Breadcrumbs, pager */
.crumbs { display: flex; flex-wrap: wrap; gap: .5em; list-style: none; padding: 0; margin: 0 0 1.3rem; font-size: var(--t-sm); }
.crumbs li { margin: 0; } .crumbs li + li::before { content: "/"; margin-right: .5em; opacity: .5; }
.crumbs a { color: inherit; text-decoration: none; opacity: .8; } .crumbs a:hover { opacity: 1; text-decoration: underline; }
.pager { display: flex; gap: .35rem; margin-top: 1.5rem; flex-wrap: wrap; } .pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .85rem; background: var(--surface); } .pager a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 600px) { .stepper li { font-size: 0; } .stepper li.now { font-size: .72rem; } }
