/* Kademy — shared design system.
   Carried over from the approved demo (light airy canvas, indigo→blue
   gradient accent, glassy cards, pill badges) so the real product feels
   identical to what Steven approved. Portal additions at the bottom. */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
:root{
  --ink:#0f172a; --body:#475569; --muted:#64748b; --faint:#94a3b8;
  --line:#e5e7eb; --line-soft:#eef1f5; --bg:#f7f8fa; --card:#ffffff;
  --accent:#4f46e5; --accent2:#2563eb; --accent-dark:#4338ca;
  --accent-soft:rgba(79,70,229,.07); --accent-ring:rgba(79,70,229,.16);
  --tg:#229ed9; --tg-soft:#e8f5fc;
  --green:#16a34a; --green2:#22c55e; --green-dark:#15803d; --green-soft:#f0fdf4;
  --amber-bg:#fef3c7; --amber-tx:#b45309;
  --red:#dc2626; --red-soft:#fef2f2;
  --sh-card:0 1px 2px rgba(16,24,40,.04), 0 10px 30px -12px rgba(16,24,40,.10);
  --sh-float:0 2px 4px rgba(16,24,40,.04), 0 16px 40px -12px rgba(79,70,229,.16), 0 28px 64px -28px rgba(16,24,40,.18);
}
::selection{ background:#c7d2fe; }
body{ font-family:-apple-system,"Inter","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; background:var(--bg); color:var(--ink); font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased; }
.wrap{ max-width:520px; margin:0 auto; padding:0 16px 44px; }
.wrap-wide{ max-width:860px; }

header{ background:rgba(255,255,255,.86); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); color:var(--ink); padding:16px 16px 14px; border-bottom:1px solid var(--line-soft); }
.brand{ max-width:860px; margin:0 auto; display:flex; align-items:center; gap:12px; }
.logo{ width:42px; height:42px; border-radius:13px; background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:800; box-shadow:0 6px 16px -4px rgba(79,70,229,.5); flex-shrink:0; }
.brand h1{ font-size:20px; font-weight:800; letter-spacing:-.02em; }
.brand p{ font-size:12.5px; color:var(--muted); margin-top:1px; }
.top-nav{ margin-left:auto; display:flex; gap:4px; }
.top-nav a{ font-size:13.5px; font-weight:600; color:var(--muted); text-decoration:none; padding:8px 11px; border-radius:999px; white-space:nowrap; }
.top-nav a:hover{ color:var(--accent-dark); background:var(--accent-soft); }

.sub{ color:var(--muted); font-size:16px; margin-top:10px; }
.hint{ font-size:13px; font-weight:500; color:var(--muted); }
.err{ color:var(--red); font-size:14px; font-weight:600; min-height:20px; margin-top:10px; }
.cta-row{ display:flex; gap:10px; margin-top:20px; flex-wrap:wrap; }
.btn{ display:inline-block; border:none; cursor:pointer; font-family:inherit; font-weight:600; font-size:15.5px; padding:13px 22px; border-radius:999px; text-align:center; transition:all .18s ease; text-decoration:none; }
.btn-primary{ background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; box-shadow:0 8px 20px -8px rgba(79,70,229,.6), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-ghost{ background:#fff; color:var(--ink); border:1px solid var(--line); box-shadow:0 1px 2px rgba(16,24,40,.05); }
.btn-green{ background:linear-gradient(135deg,var(--green2),var(--green)); color:#fff; box-shadow:0 8px 20px -8px rgba(22,163,74,.55), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-danger-ghost{ background:#fff; color:var(--red); border:1px solid #fecaca; box-shadow:0 1px 2px rgba(16,24,40,.05); }
.btn[disabled]{ opacity:.45; box-shadow:none; cursor:default; }
.btn-full{ width:100%; }
.btn-sm{ padding:9px 16px; font-size:13.5px; }
.btn-xs{ padding:6px 12px; font-size:12.5px; }

.card{ background:var(--card); border:1px solid var(--line); border-radius:20px; padding:20px; margin-top:16px; box-shadow:var(--sh-card); }
.card h3{ font-size:17px; font-weight:700; letter-spacing:-.01em; color:var(--ink); }
.card p{ color:var(--muted); font-size:14.5px; margin-top:6px; }

.note{ background:var(--green-soft); border:1px solid #bbf7d0; color:#166534; border-radius:16px; padding:14px 16px; margin-top:16px; font-size:14.5px; }
.note b{ color:var(--green-dark); }
.note a{ color:var(--green-dark); font-weight:700; }
.warn-note{ background:#fffbeb; border:1px solid #fde68a; color:#92400e; border-radius:16px; padding:14px 16px; margin-top:16px; font-size:14.5px; }

.stat-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.stat-grid-3{ grid-template-columns:1fr 1fr 1fr; }
@media (max-width:560px){ .stat-grid-3{ grid-template-columns:1fr 1fr; } }
.stat{ background:#fff; border:1px solid var(--line); border-radius:20px; padding:18px; box-shadow:var(--sh-card); }
.stat .num{ font-size:29px; font-weight:800; letter-spacing:-.03em; color:var(--ink); }
.stat .lbl{ font-size:13px; color:var(--muted); font-weight:500; margin-top:2px; }
.stat .delta{ display:inline-block; font-size:12px; font-weight:700; color:var(--green-dark); background:var(--green-soft); padding:3px 9px; border-radius:999px; margin-top:8px; }
.stat .delta.grey{ color:var(--muted); background:#f1f5f9; }
.tbl-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
table{ width:100%; border-collapse:collapse; margin-top:10px; font-size:14px; }
th{ text-align:left; color:var(--faint); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; padding:8px 6px; border-bottom:1px solid var(--line); white-space:nowrap; }
td{ padding:12px 6px; border-bottom:1px solid var(--line-soft); color:var(--body); white-space:nowrap; vertical-align:middle; }
td b{ color:var(--ink); }
tr:last-child td{ border-bottom:none; }
td.num, th.num{ text-align:right; font-weight:600; color:var(--ink); }
.pill{ display:inline-block; font-size:11px; font-weight:700; padding:3px 9px; border-radius:999px; letter-spacing:.02em; white-space:nowrap; }
.pill-auto{ background:var(--green-soft); color:var(--green-dark); }
.pill-pend{ background:var(--amber-bg); color:var(--amber-tx); }
.pill-on{ background:var(--accent-soft); color:var(--accent-dark); }
.pill-done{ background:#f1f5f9; color:var(--muted); }
.pill-closed{ background:var(--red-soft); color:var(--red); }

/* ===== Landing / hero pieces ===== */
.lp-badge{ display:inline-block; background:rgba(255,255,255,.75); border:1px solid rgba(79,70,229,.22); color:var(--accent-dark); font-size:11.5px; font-weight:700; letter-spacing:.09em; padding:6px 13px; border-radius:999px; text-transform:uppercase; box-shadow:0 1px 2px rgba(16,24,40,.05); }
.lp-badge::before{ content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background:linear-gradient(135deg,var(--accent),var(--accent2)); margin-right:7px; vertical-align:2px; }
.lp-hero{ text-align:center; padding-top:26px; position:relative; z-index:0; }
.lp-hero::before{ content:""; position:absolute; z-index:-1; left:50%; transform:translateX(-50%); top:-44px; width:min(720px,100vw); height:430px; background:radial-gradient(closest-side at 50% 32%, rgba(79,70,229,.15), rgba(79,70,229,0) 72%), radial-gradient(rgba(15,23,42,.13) 1px, transparent 1.4px); background-size:680px 360px, 22px 22px; background-position:top center, top center; background-repeat:no-repeat, repeat; -webkit-mask-image:linear-gradient(180deg,#000 52%,transparent 97%); mask-image:linear-gradient(180deg,#000 52%,transparent 97%); }
.lp-hero h2{ font-size:clamp(30px,9vw,40px); line-height:1.1; font-weight:800; letter-spacing:-.03em; color:var(--ink); margin-top:18px; }
.lp-hero .sub{ max-width:440px; margin-left:auto; margin-right:auto; color:var(--muted); }
.lp-hero .cta-row{ justify-content:center; }

/* ===== Browse view ===== */
.search-box{ margin-top:22px; position:relative; }
.search-box input{ width:100%; border:1.5px solid var(--line); border-radius:999px; padding:14px 18px 14px 46px; font-size:15.5px; font-family:inherit; color:var(--ink); background:#fff; outline:none; box-shadow:var(--sh-card); transition:all .15s ease; }
.search-box input:focus{ border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-ring); }
.search-box .sic{ position:absolute; left:17px; top:50%; transform:translateY(-50%); font-size:16px; color:var(--faint); pointer-events:none; }
.cat-pills{ display:flex; gap:8px; margin-top:14px; overflow-x:auto; padding:2px 2px 6px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.cat-pills::-webkit-scrollbar{ display:none; }
.cat-pill{ flex-shrink:0; border:1.5px solid var(--line); background:#fff; border-radius:999px; padding:8px 16px; font-size:13.5px; font-weight:600; color:var(--body); cursor:pointer; font-family:inherit; transition:all .15s ease; text-decoration:none; }
.cat-pill.sel{ border-color:transparent; background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; box-shadow:0 6px 14px -6px rgba(79,70,229,.55); }
.course-grid{ display:grid; gap:14px; margin-top:14px; }
.course-card{ background:#fff; border:1px solid var(--line); border-radius:22px; padding:19px; box-shadow:var(--sh-card); text-align:left; }
.cc-top{ display:flex; align-items:center; gap:8px; }
.cc-ic{ font-size:20px; width:42px; height:42px; border-radius:13px; background:var(--accent-soft); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.tag-cat{ font-size:10.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--accent-dark); background:var(--accent-soft); padding:4px 10px; border-radius:999px; }
.cc-top .seats{ margin-left:auto; }
.course-card h3{ font-size:18px; font-weight:800; letter-spacing:-.02em; line-height:1.25; margin-top:13px; }
.cc-prov{ font-size:13.5px; color:var(--muted); margin-top:5px; }
.cc-prov b{ color:var(--body); font-weight:600; }
.cc-meta{ display:grid; gap:6px; margin-top:13px; padding-top:13px; border-top:1px solid var(--line-soft); font-size:13.5px; color:var(--body); }
.cc-meta div{ display:flex; gap:8px; align-items:baseline; }
.cc-meta .mi{ flex-shrink:0; width:17px; text-align:center; }
.cc-foot{ display:flex; align-items:center; margin-top:15px; }
.cc-price{ font-size:21px; font-weight:800; letter-spacing:-.02em; color:var(--ink); }
.cc-price small{ font-size:12px; font-weight:600; color:var(--faint); letter-spacing:0; }
.cc-foot .btn{ margin-left:auto; }
.empty-note{ text-align:center; color:var(--muted); font-size:14.5px; padding:26px 10px; background:#fff; border:1px dashed var(--line); border-radius:18px; }

/* ===== Course / enroll flow ===== */
.back-link{ display:inline-block; font-size:14px; font-weight:600; color:var(--accent-dark); text-decoration:none; margin-top:18px; }
.bk-card{ background:rgba(255,255,255,.97); border:1px solid var(--line); border-radius:24px; padding:22px 20px; margin-top:16px; box-shadow:var(--sh-float); }
.bk-step{ display:none; padding-top:16px; }
.bk-step.active{ display:block; }
.bk-step h4{ font-size:16px; font-weight:700; letter-spacing:-.01em; margin-bottom:12px; }
.bk-step h4 .hint{ display:block; margin-top:2px; }
.c-head .tag-cat{ margin-bottom:10px; display:inline-block; }
.c-head h3{ font-size:22px; font-weight:800; letter-spacing:-.025em; line-height:1.22; }
.c-meta-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px; }
.c-meta{ background:#f8fafc; border:1px solid var(--line-soft); border-radius:14px; padding:11px 13px; }
.c-meta .k{ font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); }
.c-meta .v{ font-size:14px; font-weight:700; color:var(--ink); margin-top:2px; line-height:1.35; }
.learn-list{ list-style:none; display:grid; gap:9px; margin-top:4px; }
.learn-list li{ display:flex; gap:10px; font-size:14.5px; color:var(--body); align-items:flex-start; }
.learn-list .ck{ color:var(--green); font-weight:800; flex-shrink:0; }
.bio-line{ display:flex; gap:12px; align-items:center; background:#f8fafc; border:1px solid var(--line-soft); border-radius:16px; padding:13px 15px; margin-top:16px; }
.bio-line .av{ width:42px; height:42px; border-radius:50%; background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; font-weight:800; font-size:15px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.bio-line b{ font-size:14.5px; color:var(--ink); display:block; }
.bio-line p{ font-size:13px; color:var(--muted); margin-top:1px; }
.stepper-row{ display:flex; align-items:center; gap:14px; }
.stepper{ display:flex; align-items:center; gap:6px; }
.step-btn{ width:42px; height:42px; border-radius:50%; border:1.5px solid var(--line); background:#fff; font-size:19px; font-weight:700; color:var(--ink); cursor:pointer; font-family:inherit; display:flex; align-items:center; justify-content:center; transition:all .15s ease; }
.step-btn:active{ border-color:var(--accent); }
.step-btn[disabled]{ opacity:.35; cursor:default; }
.step-count{ min-width:64px; text-align:center; font-size:17px; font-weight:800; color:var(--ink); }
.step-count small{ display:block; font-size:11px; font-weight:600; color:var(--faint); letter-spacing:.05em; text-transform:uppercase; }
.bk-summary{ background:#f8fafc; border:1px solid var(--line-soft); border-radius:16px; padding:15px 16px; display:grid; gap:7px; margin-top:18px; }
.bk-summary .row{ display:flex; justify-content:space-between; font-size:14.5px; color:var(--body); gap:10px; }
.bk-summary .row b{ color:var(--ink); font-weight:700; text-align:right; }
.bk-summary .row.total{ border-top:1px solid var(--line); padding-top:9px; margin-top:2px; font-size:16px; }
.bk-summary .row.total b{ font-size:18px; }
.bk-nav{ display:flex; gap:10px; margin-top:20px; }
.bk-nav .btn{ flex:1; }

/* KHQR panel */
.khqr-wrap{ text-align:center; }
.khqr-box{ width:196px; min-height:196px; margin:6px auto 0; background:#fff; border:2px solid var(--ink); border-radius:18px; padding:12px; position:relative; display:flex; align-items:center; justify-content:center; }
.khqr-box canvas{ width:100%; height:100%; display:block; image-rendering:pixelated; }
.khqr-placeholder{ font-size:13px; color:var(--muted); line-height:1.5; padding:8px; }
.khqr-tag{ display:inline-block; margin-top:12px; background:var(--red); color:#fff; font-size:11px; font-weight:800; letter-spacing:.14em; padding:4px 12px; border-radius:6px; }
.pay-amt{ font-size:27px; font-weight:800; letter-spacing:-.02em; margin-top:12px; }
.pay-ref{ font-family:Consolas,monospace; font-size:13.5px; color:var(--muted); margin-top:2px; }
.pay-status{ display:inline-flex; align-items:center; gap:8px; margin-top:14px; background:var(--amber-bg); color:var(--amber-tx); font-size:13.5px; font-weight:700; padding:8px 14px; border-radius:999px; }
.pay-status.ok{ background:var(--green-soft); color:var(--green-dark); }
.pay-status .dot{ width:8px; height:8px; border-radius:50%; background:currentColor; animation:pulse 1.1s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.45; transform:scale(.8);} }

/* Success / pass */
.ok-wrap{ text-align:center; padding-top:6px; }
.ok-ic{ width:66px; height:66px; margin:0 auto; border-radius:50%; background:linear-gradient(135deg,var(--green2),var(--green)); color:#fff; font-size:31px; font-weight:800; display:flex; align-items:center; justify-content:center; box-shadow:0 0 0 9px rgba(34,197,94,.14), 0 12px 24px -8px rgba(22,163,74,.5); }
.ok-wrap h4{ font-size:21px; font-weight:800; letter-spacing:-.02em; margin-top:16px; }
.ok-wrap .ok-sub{ color:var(--muted); font-size:14.5px; margin-top:5px; }
.pass-card{ margin-top:20px; text-align:left; background:linear-gradient(150deg,#1e1b4b,#0f172a 55%); border-radius:20px; padding:20px; color:#e2e8f0; box-shadow:0 18px 36px -14px rgba(15,23,42,.5); position:relative; overflow:hidden; }
.pass-card::before{ content:""; position:absolute; top:-50px; right:-50px; width:150px; height:150px; border-radius:50%; background:radial-gradient(closest-side, rgba(99,102,241,.45), transparent); }
.pass-card .pk{ font-size:10.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#a5b4fc; }
.pass-card .pv{ font-size:16px; font-weight:700; color:#fff; margin-top:2px; line-height:1.35; }
.pass-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:16px; position:relative; }
.pass-code{ margin-top:18px; background:rgba(255,255,255,.08); border:1.5px dashed rgba(255,255,255,.35); border-radius:14px; padding:13px; text-align:center; font-family:Consolas,monospace; font-size:19px; font-weight:700; letter-spacing:.14em; color:#fff; position:relative; }
.pass-code small{ display:block; font-family:inherit; font-size:10.5px; font-weight:700; letter-spacing:.12em; color:#a5b4fc; margin-bottom:5px; }

/* ===== Forms ===== */
.field{ margin-top:14px; }
.field label{ display:block; font-size:11.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); margin-bottom:7px; }
.field input, .field select, .field textarea{ width:100%; border:1.5px solid var(--line); border-radius:14px; padding:13px 15px; font-size:16px; font-family:inherit; color:var(--ink); background:#fff; outline:none; transition:all .15s ease; }
.field textarea{ min-height:84px; resize:vertical; font-size:15px; }
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-ring); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.field-row .field{ margin-top:14px; }

/* ===== Trainer / rows ===== */
.prov-head{ display:flex; gap:14px; align-items:center; }
.prov-head .av{ width:52px; height:52px; border-radius:16px; background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; font-weight:800; font-size:19px; display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:0 8px 18px -6px rgba(79,70,229,.5); }
.prov-head h3{ font-size:18.5px; }
.prov-head p{ margin-top:1px; }
.bar-track{ height:7px; border-radius:99px; background:#eef1f5; overflow:hidden; min-width:86px; margin-top:5px; }
.bar-fill{ height:100%; border-radius:99px; background:linear-gradient(90deg,var(--accent),var(--accent2)); }
.bar-fill.full{ background:linear-gradient(90deg,var(--green2),var(--green)); }
.cap-txt{ font-size:12px; color:var(--muted); font-weight:600; }
.enrol-row{ display:flex; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line-soft); }
.enrol-row:last-child{ border-bottom:none; padding-bottom:2px; }
.enrol-row:first-child{ padding-top:4px; }
.enrol-row .av{ width:38px; height:38px; border-radius:50%; background:var(--accent-soft); color:var(--accent-dark); font-weight:800; font-size:13px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.enrol-row .en{ font-weight:700; font-size:14.5px; color:var(--ink); letter-spacing:-.01em; }
.enrol-row .es{ font-size:12.5px; color:var(--muted); margin-top:1px; }
.enrol-row .ep{ margin-left:auto; text-align:right; flex-shrink:0; }
.enrol-row .ep .amt{ font-weight:800; font-size:14.5px; color:var(--ink); }
.settle-rows{ display:grid; gap:7px; margin-top:12px; }
.settle-rows .row{ display:flex; justify-content:space-between; font-size:14.5px; color:var(--body); }
.settle-rows .row b{ color:var(--ink); }
.settle-rows .row.total{ border-top:1px solid var(--line); padding-top:9px; font-size:16px; }

/* ===== Bookmark (saved courses) ===== */
.bm-btn{ margin-left:8px; width:38px; height:38px; border-radius:50%; border:1.5px solid var(--line); background:#fff; font-size:16px; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:all .15s ease; padding:0; font-family:inherit; }
.bm-btn.saved{ border-color:#fecdd3; background:#fff1f2; }

/* ===== SuperAdmin ===== */
.q-row{ display:flex; gap:12px; align-items:center; padding:13px 0; border-bottom:1px solid var(--line-soft); }
.q-row:last-child{ border-bottom:none; padding-bottom:2px; }
.q-row:first-child{ padding-top:4px; }
.q-row .av{ width:40px; height:40px; border-radius:13px; background:var(--accent-soft); color:var(--accent-dark); font-weight:800; font-size:14px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.q-row .qn{ font-weight:700; font-size:14.5px; color:var(--ink); letter-spacing:-.01em; }
.q-row .qs{ font-size:12.5px; color:var(--muted); margin-top:1px; }
.q-row .qa{ margin-left:auto; display:flex; gap:7px; flex-shrink:0; align-items:center; }
.role-row{ display:flex; align-items:center; padding:10px 0; border-bottom:1px solid var(--line-soft); font-size:14.5px; }
.role-row:last-child{ border-bottom:none; padding-bottom:2px; }
.role-row .rn{ color:var(--body); }
.role-row .rn b{ color:var(--ink); }
.role-row .rv{ margin-left:auto; font-weight:800; color:var(--ink); }

/* ===== My Learning ===== */
.learn-head{ display:flex; gap:14px; align-items:center; }
.learn-head .av{ width:52px; height:52px; border-radius:50%; background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; font-weight:800; font-size:19px; display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:0 8px 18px -6px rgba(79,70,229,.5); }
.learn-head h3{ font-size:18.5px; }
.tg-chip{ display:inline-flex; align-items:center; gap:6px; background:var(--tg-soft); color:#0369a1; font-size:12px; font-weight:700; padding:4px 11px; border-radius:999px; margin-top:5px; }
.sec-title{ font-size:13px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); margin-top:26px; }
.my-pass{ display:none; margin-top:14px; }
.my-pass.open{ display:block; }
.my-pass .pass-card{ margin-top:0; }
.saved-row{ display:flex; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line-soft); }
.saved-row:last-child{ border-bottom:none; padding-bottom:2px; }
.saved-row:first-child{ padding-top:4px; }
.saved-row .si{ font-size:19px; width:40px; height:40px; border-radius:13px; background:var(--accent-soft); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.saved-row .st{ font-weight:700; font-size:14.5px; color:var(--ink); letter-spacing:-.01em; }
.saved-row .ss{ font-size:12.5px; color:var(--muted); margin-top:1px; }

/* ===== Portal additions ===== */
.portal-nav{ display:flex; gap:6px; margin-top:18px; overflow-x:auto; scrollbar-width:none; }
.portal-nav::-webkit-scrollbar{ display:none; }
.cohort-list{ display:grid; gap:9px; margin-bottom:4px; }
.cohort-opt{ display:flex; gap:11px; align-items:center; border:1.5px solid var(--line); border-radius:15px; padding:12px 14px; cursor:pointer; background:#fff; transition:all .15s ease; }
.cohort-opt.sel{ border-color:var(--accent); background:var(--accent-soft); }
.cohort-opt.full{ opacity:.5; cursor:default; }
.cohort-opt .co-t{ font-weight:700; font-size:14.5px; color:var(--ink); }
.cohort-opt .co-s{ font-size:12.5px; color:var(--muted); }
.cohort-opt .co-r{ margin-left:auto; text-align:right; flex-shrink:0; }
.login-wrap{ max-width:420px; margin:6vh auto 0; }
.once-box{ background:#0f172a; color:#e2e8f0; border-radius:16px; padding:16px; margin-top:14px; font-size:14.5px; }
.once-box .pw{ font-family:Consolas,monospace; font-size:19px; font-weight:700; color:#fff; letter-spacing:.06em; }
.toast{ position:fixed; left:50%; bottom:22px; transform:translateX(-50%) translateY(20px); background:#0f172a; color:#fff; font-size:14px; font-weight:600; padding:11px 18px; border-radius:999px; opacity:0; pointer-events:none; transition:all .25s ease; z-index:50; box-shadow:var(--sh-float); max-width:92vw; text-align:center; }
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
details.edit-box{ margin-top:10px; }
details.edit-box summary{ cursor:pointer; font-size:13px; font-weight:700; color:var(--accent-dark); }

footer{ text-align:center; color:var(--faint); font-size:12.5px; margin-top:30px; line-height:1.6; }

@media (max-width:420px){
  .wrap{ padding:0 14px 40px; }
  .card,.bk-card{ padding:18px; }
  table{ font-size:13px; }
  td,th{ padding-left:4px; padding-right:4px; }
  .top-nav a{ padding:8px 7px; font-size:12.5px; }
}
