/* The Spark Group – Spark Courses
   Spark orange-and-teal interface. */
:root {
  --green: #087e65; --green-dark: #075948; --green-deep: #0b3b31; --green-pale: #e9f4ef; --green-mist: #f4f9f6;
  --orange: #f68b1f; --orange-text: #9a4b00; --orange-pale: #fff2e5;
  --ink: #173f3a; --muted: #4f6864; --line: #cbdad4; --paper: #f5f8f7; --white: #fff;
  --good: #11663f; --good-bg: #e8f5ee; --bad: #9b2c1f; --bad-bg: #fdf0ed;
  --radius: 10px; --shadow: 0 10px 28px rgba(23, 43, 58, .10);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); }
h1, h2, h3 { font-family: var(--serif); color: var(--green-deep); line-height: 1.15; letter-spacing: -.01em; }
a { color: var(--green-dark); }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--green-mist); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.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; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--green-deep); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 8px; }
.small { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 18px; border: 2px solid var(--green); border-radius: 999px; background: #fff; color: var(--green-dark); font: 700 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-pale); color: var(--green-deep); }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.link { border: 0; background: none; padding: 6px 4px; min-height: 36px; text-decoration: underline; font-weight: 600; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; min-height: 68px; padding: 10px clamp(14px, 3vw, 32px); background: #fff; border-bottom: 4px solid var(--green); }
.brand img { width: 200px; height: auto; }
.top-links { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.top-links a { font-weight: 700; font-size: 15px; }
.account { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.account span { display: grid; text-align: right; }
.account strong { font-size: 13px; color: var(--green-deep); }
.account small { font-size: 12px; color: var(--muted); }
.course-title { display: grid; min-width: 0; flex: 1; border-left: 1px solid var(--line); padding-left: 18px; }
.course-title span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-text); }
.course-title strong { font-family: var(--serif); font-size: 20px; color: var(--green-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn.exit { margin-left: auto; white-space: nowrap; }

/* library */
.library, .about, .assessor { max-width: 1180px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 32px) 40px; }
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 18px; color: #fff; background: radial-gradient(circle at 92% 10%, rgba(244,144,30,.35), transparent 34%), linear-gradient(130deg, var(--green-deep), var(--green) 75%); box-shadow: var(--shadow); }
.hero h1 { color: #fff; font-size: clamp(36px, 5vw, 56px); margin: 6px 0 12px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffd8a8; }
.lede { font-size: 19px; max-width: 46ch; margin: 0 0 14px; }
.hero-note { margin: 0; padding: 12px 14px; border-left: 4px solid var(--orange); background: rgba(255,255,255,.1); border-radius: 0 8px 8px 0; font-size: 15px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-stats div { padding: 16px 10px; text-align: center; background: rgba(255,255,255,.12); border-radius: 12px; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; }
.hero-stats span { font-size: 13px; }
.filters { margin: 26px 0 6px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row.sub { margin-top: 10px; }
.chip-btn { min-height: 42px; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 700 15px var(--sans); cursor: pointer; }
.chip-btn.small { min-height: 36px; font-size: 14px; }
.chip-btn[aria-pressed="true"] { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.cat-section { margin-top: 30px; }
.cat-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.cat-head h2 { font-size: 30px; margin: 0 0 8px; }
.cat-head p { margin: 0 0 8px; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #e1ebe6; }
.card-img img { width: 100%; height: 170px; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.card h3 { font-size: 24px; margin: 4px 0 0; }
.card p { margin: 0; }
.card .topic { font-size: 14px; font-weight: 700; color: var(--orange-text); }
.card .status { font-size: 14px; font-weight: 700; color: var(--green-dark); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.card.planned { background: repeating-linear-gradient(135deg, #fff, #fff 12px, #f7faf8 12px, #f7faf8 24px); box-shadow: none; border-style: dashed; }
.card.planned h3 { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 800; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; background: var(--green-mist); color: var(--green-deep); border: 1px solid #d6e7de; }
.tag.cat-employability { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.tag.cat-digital { background: var(--green); color: #fff; border-color: var(--green); }
.tag.cat-functional { background: var(--orange-pale); color: var(--orange-text); border-color: #f6d3a8; }
.planned-tag { background: #fff; border-style: dashed; color: var(--muted); }
.meter { height: 6px; background: var(--green-pale); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--orange); }
.restart-confirm { margin-top: 8px; padding: 12px; background: var(--bad-bg); border-radius: 8px; }
.restart-confirm p { margin: 0 0 8px !important; font-size: 14px; }
.site-footer { max-width: 1180px; margin: 30px auto 0; padding: 20px clamp(16px, 3vw, 32px) 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer p { margin: 4px 0; }

/* authenticated entry */
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, .85fr) minmax(420px, 1.15fr); background: #eef5f2; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 6vw, 84px); background: #fff; }
.auth-card > img { width: min(250px, 80%); margin-bottom: 30px; }
.auth-card h1 { margin: 7px 0 15px; font-size: clamp(36px, 4vw, 52px); }
.auth-card .eyebrow { color: var(--orange-text); }
.auth-google { width: 100%; margin: 22px 0 12px; }
.auth-google strong { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--green-deep); background: #fff; }
.auth-welcome { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(32px, 6vw, 72px); color: #fff; background: radial-gradient(circle at 85% 12%, rgba(244,144,30,.6), transparent 30%), linear-gradient(145deg, var(--green-deep), var(--green)); }
.auth-welcome > img { width: 180px; filter: brightness(0) invert(1); }
.auth-welcome p { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.auth-welcome h2 { max-width: 9ch; margin: 0; color: #fff; font-size: clamp(48px, 6vw, 78px); }
@media(max-width:800px){.auth-screen{grid-template-columns:1fr}.auth-welcome{min-height:300px;order:-1}.auth-welcome h2{font-size:42px}.account span{display:none}}

/* player */
.player { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.nav-toggle { display: none; }
.actnav { position: sticky; top: 72px; align-self: start; height: calc(100vh - 72px); overflow-y: auto; padding: 22px 14px; background: linear-gradient(180deg, var(--green-pale), var(--green-mist)); border-right: 1px solid var(--line); }
.nav-head { margin: 0 8px 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.actnav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.actnav a { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 12px; border-radius: 10px; border: 2px solid transparent; text-decoration: none; color: var(--ink); font-weight: 600; background: rgba(255,255,255,.5); }
.actnav a:hover { background: #fff; border-color: var(--line); }
.actnav a .num { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-size: 14px; font-weight: 800; color: var(--muted); }
.actnav a.done .num { background: var(--green); border-color: var(--green); color: #fff; }
.actnav a.current { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.actnav a.current .num { border-color: var(--orange); background: var(--orange); color: var(--green-deep); }
.nav-progress { margin: 18px 8px 4px; font-weight: 700; font-size: 14px; }
.save-status { margin: 0 8px; font-size: 13px; color: var(--muted); }
.stage { padding: 30px clamp(16px, 4vw, 56px) 60px; }
.stage-inner { max-width: 900px; }
.step-count { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); }
.act-title { font-size: clamp(30px, 4vw, 44px); margin: 6px 0 18px; }
.intro { font-size: 18px; max-width: 70ch; }
.prose p { max-width: 65ch; }
.tip { padding: 12px 16px; background: var(--orange-pale); border-left: 4px solid var(--orange); border-radius: 0 8px 8px 0; }
blockquote { margin: 12px 0; padding: 14px 18px; background: #fff; border-left: 4px solid var(--green); border-radius: 0 8px 8px 0; font-style: italic; box-shadow: var(--shadow); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager-done { font-weight: 700; color: var(--good); }

/* intro */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.photo { margin: 0; }
.photo img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.photo figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.outcomes { margin-top: 18px; padding: 16px 18px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.outcomes h2 { font-size: 20px; margin: 0 0 6px; }
.outcomes ul { margin: 0; padding-left: 20px; }

/* stimulus */
.phone { max-width: 440px; margin: 18px 0 24px; padding: 16px; background: #eef3f1; border-radius: 22px; border: 8px solid #1f2d33; }
.phone figcaption { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 10px; }
.phone figcaption span { color: var(--muted); }
.bubble { margin: 0 0 8px; padding: 10px 13px; background: #fff; border-radius: 14px 14px 14px 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08); font-size: 16px; }
.table-wrap { overflow-x: auto; margin: 18px 0 24px; }
table.data { border-collapse: collapse; width: 100%; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
table.data caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
table.data th, table.data td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e3ece8; }
table.data thead th { background: var(--green-deep); color: #fff; font-size: 14px; }
table.data tbody th { font-weight: 700; }
.app-alert { display: flex; gap: 12px; align-items: center; max-width: 560px; margin: 18px 0 22px; padding: 14px 16px; border-radius: 12px; background: #fff7ef; border: 2px solid var(--orange); font-weight: 600; }
.app-alert span { font-size: 28px; }
.app-alert p { margin: 0; }
.mail { max-width: 640px; margin: 18px 0 22px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.mail dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.mail dt { font-weight: 700; color: var(--muted); }
.mail dd { margin: 0; word-break: break-word; }

/* questions */
.question { margin: 20px 0 26px; padding: 20px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.options { border: 0; margin: 0 0 12px; padding: 0; }
.options legend { font-weight: 700; font-size: 18px; margin-bottom: 12px; padding: 0; }
.qn { color: var(--orange-text); }
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--green-mist); }
.opt:hover { border-color: var(--green); }
.opt input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); flex: 0 0 auto; }
.opt:has(input:checked) { border-color: var(--green-dark); background: var(--green-pale); }
.fb { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; border-left: 5px solid; }
.fb.good { background: var(--good-bg); border-color: var(--good); color: #0b3a26; }
.fb.bad { background: var(--bad-bg); border-color: var(--bad); color: #5e1a10; }
.write { margin-top: 18px; padding: 18px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.write label, .field label, .calc label, .rename-card > label { display: block; font-weight: 700; margin-bottom: 6px; }
textarea, input[type="text"], input[inputmode], select { width: 100%; padding: 11px 12px; border: 2px solid #a9bdb5; border-radius: 8px; font: 16px/1.4 var(--sans); color: var(--ink); background: #fff; }
textarea:focus, input:focus, select:focus { border-color: var(--green); }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0; }
.selfcheck { margin: 12px 0 0; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; }
.selfcheck legend { font-size: 14px; font-weight: 700; padding: 0 6px; }
.selfcheck label { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 4px 0; }
.selfcheck input { width: 20px; height: 20px; accent-color: var(--green); }

/* sort */
.sort-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.sort-item { padding: 14px 16px; background: #fff; border-radius: 12px; border: 2px solid var(--line); }
.sort-item.right { border-color: var(--good); }
.sort-item.wrong { border-color: var(--bad); }
.item-name { margin: 0 0 10px; font-weight: 700; }
.bucket-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bucket { min-height: 42px; padding: 7px 14px; border: 2px solid var(--line); border-radius: 8px; background: var(--green-mist); font: 600 15px var(--sans); color: var(--ink); cursor: pointer; }
.bucket:hover { border-color: var(--green); }
.bucket[aria-pressed="true"] { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.sort-item .fb { margin-top: 8px; padding: 6px 10px; font-size: 15px; }
.sort-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.pill { padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; }

/* order */
.order-list { padding: 0; margin: 18px 0; display: grid; gap: 8px; counter-reset: o; list-style: none; }
.order-list li { counter-increment: o; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 2px solid var(--line); border-radius: 12px; }
.order-list li::before { content: counter(o); flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--green-pale); font-weight: 800; color: var(--green-deep); }
.order-list li.right { border-color: var(--good); }
.order-list li.wrong { border-color: var(--bad); }
.order-text { flex: 1; font-weight: 600; }
.order-btns { display: flex; gap: 6px; }
.icon { width: 44px; height: 44px; border-radius: 8px; border: 2px solid var(--line); background: var(--green-mist); font-size: 16px; cursor: pointer; color: var(--green-deep); }
.icon:hover:not(:disabled) { border-color: var(--green); }
.icon:disabled { opacity: .35; cursor: default; }
.mark { font-weight: 800; font-size: 20px; width: 22px; }
.right .mark { color: var(--good); } .wrong .mark { color: var(--bad); }

/* form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.field { position: relative; padding: 14px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.field.ok { border-color: #9cd0b4; }
.field.ok .field-ok::after { content: "✓"; position: absolute; top: 12px; right: 14px; color: var(--good); font-weight: 800; }
.field label { padding-right: 20px; }
.form-progress { font-weight: 700; color: var(--green-dark); }

/* rename */
.rename-card { margin: 16px 0; padding: 18px; background: #fff; border: 2px solid var(--line); border-radius: 14px; }
.rename-card.ok { border-color: var(--good); }
.old-name { margin: 0 0 4px; font-weight: 600; }
.name-input { display: flex; align-items: stretch; }
.name-input input { border-radius: 8px 0 0 8px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.ext { display: grid; place-items: center; padding: 0 12px; border: 2px solid #a9bdb5; border-left: 0; border-radius: 0 8px 8px 0; background: var(--green-mist); font-family: ui-monospace, Menlo, monospace; }
.checks { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; gap: 4px; font-size: 15px; }
.checks li { color: var(--muted); }
.checks li.ok { color: var(--good); font-weight: 600; }
.example { margin: 4px 0 0; }

/* video */
.video-box { position: relative; aspect-ratio: 16/9; max-width: 820px; border-radius: 14px; overflow: hidden; background: var(--green-deep); box-shadow: var(--shadow); }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(244,144,30,.35), transparent 40%), linear-gradient(135deg, var(--green-deep), var(--green)); }
.video-poster p { margin: 0; }
.video-poster .small { color: #d8efe5; max-width: 46ch; }
.source { font-size: 14px; color: var(--muted); }
.keypoints { margin-top: 18px; padding: 18px 22px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.keypoints h2 { font-size: 22px; margin: 0 0 6px; }

/* email */
.compose { margin-top: 18px; background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.compose-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: var(--green-deep); color: #fff; font-weight: 700; }
.compose-bar span { font-weight: 500; font-size: 14px; color: #ffd8a8; }
.crow { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #e3ece8; }
.crow label { font-weight: 700; color: var(--muted); }
.crow.body { align-items: start; }
.attach { margin: 0; padding: 12px 16px; border: 0; border-bottom: 1px solid #e3ece8; }
.attach legend { font-weight: 700; padding: 12px 0 6px; float: left; width: 100%; }
.attach label { display: flex; gap: 10px; align-items: center; margin: 6px 0; clear: both; }
.attach input { width: 20px; height: 20px; accent-color: var(--green); flex: 0 0 auto; }
.compose-actions { padding: 12px 16px; }
.email-checks { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.email-checks li { padding: 10px 12px; border-radius: 8px; }
.email-checks li.ok { background: var(--good-bg); }
.email-checks li.no { background: var(--bad-bg); }
.sent { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--good-bg); border: 2px solid var(--good); }
.sent-head { margin: 0 0 8px; font-weight: 800; color: var(--good); }
.sent dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.sent dt { font-weight: 700; } .sent dd { margin: 0; word-break: break-word; }

/* menu + basket */
.menu-board { margin-top: 18px; padding: clamp(18px, 3vw, 30px); border-radius: 16px; background: #1f2d33; color: #f3efe6; box-shadow: var(--shadow); }
.menu-board h2 { color: #fff; font-size: 34px; margin: 0; }
.menu-sub { margin: 4px 0 16px; color: #cfc8b8; }
.menu-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
table.menu { width: 100%; border-collapse: collapse; }
table.menu caption { text-align: left; font-family: var(--serif); font-size: 20px; color: #ffc77f; padding-bottom: 6px; }
table.menu th, table.menu td { padding: 5px 0; border-bottom: 1px dotted #52706a; font-weight: 500; text-align: left; }
table.menu td { text-align: right; font-variant-numeric: tabular-nums; }
.menu-board .veg { color: #9de3bf; }
.deal { margin: 18px 0 0; padding: 10px 14px; border: 2px dashed #ffc77f; border-radius: 10px; color: #ffe2bd; font-weight: 700; }
.veg { color: var(--good); font-weight: 700; font-size: 14px; }
.basket-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 22px; align-items: start; margin-top: 18px; }
.shop-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 16px; box-shadow: var(--shadow); }
.shop-table caption { text-align: left; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--green-deep); padding: 4px 0 8px; }
.shop-table th, .shop-table td { padding: 8px 12px; border-bottom: 1px solid #e3ece8; text-align: left; }
.shop-table thead th { font-size: 13px; color: var(--muted); background: var(--green-mist); }
.shop-table td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 42px; height: 40px; border: 0; background: var(--green-mist); font-size: 20px; font-weight: 800; color: var(--green-deep); cursor: pointer; }
.stepper button:disabled { color: #aab9b3; cursor: default; }
.stepper output { min-width: 34px; text-align: center; font-weight: 800; }
.order-panel { position: sticky; top: 92px; padding: 18px; background: #fff; border-radius: 14px; border: 2px solid var(--green); box-shadow: var(--shadow); }
.order-panel h2 { font-size: 22px; margin: 0 0 8px; }
.order-panel .total { font-size: 22px; margin: 0; }
.order-panel .left { color: var(--good); font-weight: 700; margin: 4px 0 8px; }
.order-panel .over { color: var(--bad); font-weight: 800; margin: 4px 0 8px; }
.budget-bar { height: 10px; background: var(--green-pale); border-radius: 999px; overflow: hidden; }
.budget-bar span { display: block; height: 100%; background: var(--green); }
.budget-bar span.over { background: var(--bad); }
.calc { margin: 16px 0; padding: 18px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.calc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.calc-row .unit { font-weight: 800; font-size: 20px; }
.calc-row input { width: 140px; font-size: 20px; font-variant-numeric: tabular-nums; }
.mini-receipt { margin: 12px 0; }
table.receipt { border-collapse: collapse; width: 100%; max-width: 560px; background: #fff; font-variant-numeric: tabular-nums; }
table.receipt th, table.receipt td { border-bottom: 1px solid #e3ece8; padding: 6px 10px; text-align: left; }
table.receipt thead th { font-size: 13px; color: var(--muted); }
table.receipt tfoot th, table.receipt tfoot td { font-weight: 800; }

/* output doc */
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.doc { padding: clamp(18px, 4vw, 40px); background: #fff; border-radius: 6px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.doc-head { padding-bottom: 14px; border-bottom: 3px solid var(--green); }
.doc-head img { width: 200px; }
.doc-head h2 { font-size: 30px; margin: 14px 0 4px; }
.doc-meta { margin: 2px 0; color: var(--muted); font-size: 15px; }
.doc section h3 { font-size: 19px; margin: 20px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--green-pale); }
.doc section p { margin: 0; }
.doc .empty { color: var(--orange-text); font-style: italic; }
.doc-dl dt { font-weight: 700; margin-top: 6px; } .doc-dl dd { margin: 0; word-break: break-word; }
.doc-checklist ul { list-style: none; padding: 0; }
.doc-checklist li { margin: 6px 0; }
.doc-foot { margin-top: 26px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.warn { color: var(--bad); font-weight: 700; }

/* review + assessor */
.review { margin-top: 30px; padding: 20px; background: #fff; border-radius: 14px; border: 2px dashed var(--line); }
.review h2 { font-size: 24px; margin-top: 0; }
.demo-tag { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; padding: 3px 9px; border-radius: 999px; background: var(--orange-pale); color: var(--orange-text); border: 1px solid #f6d3a8; }
.demo-banner { margin: 12px 0; padding: 12px 14px; background: var(--orange-pale); border-left: 5px solid var(--orange); border-radius: 0 8px 8px 0; font-size: 15px; }
.thread { list-style: none; padding: 0; display: grid; gap: 8px; }
.thread li { padding: 10px 14px; border-radius: 10px; background: var(--green-mist); border-left: 4px solid var(--green); }
.thread li.assessor { background: var(--orange-pale); border-left-color: var(--orange); }
.thread .who { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.thread li p { margin: 0; }
.assessor-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; margin-top: 18px; }
.sub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sub-list a { display: grid; gap: 2px; padding: 12px 14px; background: #fff; border-radius: 10px; border: 2px solid var(--line); text-decoration: none; color: var(--ink); }
.sub-list a span { font-size: 14px; color: var(--muted); }
.sub-list a[aria-current] { border-color: var(--green); background: var(--green-pale); }
.assess-main { padding: 20px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.assess-main h2 { margin-top: 0; }
.evidence pre { white-space: pre-wrap; font: 14px/1.5 ui-monospace, Menlo, monospace; background: var(--green-mist); padding: 14px; border-radius: 8px; max-height: 360px; overflow: auto; }
.evidence summary { font-weight: 700; cursor: pointer; padding: 6px 0; }
.assess-box { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.assess-box h3 { font-size: 19px; margin: 12px 0 8px; }
.assess-box label { display: block; font-weight: 700; margin: 8px 0 4px; }
.assess-box label.inline { display: flex; gap: 8px; align-items: center; }
.assess-box input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--green); }
.assess-box .btn { margin-top: 8px; }
.about table.data td, .about table.data th { vertical-align: top; font-size: 15px; }
.credits li { margin-bottom: 8px; }


/* ---------- v0.2: home doors ---------- */
.home-hero { grid-template-columns: 1fr; padding: clamp(22px, 3.5vw, 36px); }
.home-hero h1 { margin-bottom: 8px; }
.home-hero .lede { max-width: 60ch; margin: 0; }
.doors { list-style: none; margin: 26px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.door a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 18px; background: #fff; border: 3px solid transparent; box-shadow: 0 14px 34px rgba(23, 43, 58, .14); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.door a:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(23, 43, 58, .2); border-color: var(--orange); }
.door a:focus-visible { outline: 4px solid var(--orange); outline-offset: 3px; }
.door-img { position: relative; display: block; height: 180px; }
.door-img img { width: 100%; height: 100%; object-fit: cover; }
.door-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(23,43,58,.58)); }
.door-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; border-top: 6px solid var(--green); }
.door-employability .door-body { border-top-color: var(--green-deep); }
.door-functional .door-body { border-top-color: var(--orange); }
.door-title { font-family: var(--serif); font-size: clamp(25px, 2.4vw, 31px); line-height: 1.1; color: var(--green-deep); font-weight: 700; }
.door-blurb { color: var(--muted); font-size: 16px; }
.door-go { margin-top: auto; display: inline-flex; align-self: flex-start; align-items: center; min-height: 48px; padding: 10px 20px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 800; }
.door a:hover .door-go { background: var(--green-dark); }
.continue { margin-top: 26px; padding: 16px 20px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.continue h2 { font-size: 22px; margin: 0 0 8px; }
.continue ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.continue a { display: grid; padding: 10px 14px; border-radius: 10px; background: var(--green-mist); border: 2px solid var(--line); text-decoration: none; color: var(--ink); }
.continue a span { font-size: 14px; color: var(--muted); }
.how { margin-top: 30px; }
.how h2 { font-size: 28px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-grid > div { padding: 16px 18px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.how-grid h3 { font-size: 20px; margin: 0 0 6px; }
.how-grid p { margin: 0; }
.how-grid .practice { border-left: 5px solid var(--orange); }
.crumbs { margin: 0 0 10px; font-size: 15px; }
.door-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.door-switch a { padding: 8px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 700; text-decoration: none; color: var(--ink); }
.door-switch a[aria-current] { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.cat-hero { padding: 26px 28px; border-radius: 16px; color: #fff; background: linear-gradient(130deg, var(--green-deep), var(--green)); margin-bottom: 16px; }
.cat-hero.cat-functional { background: linear-gradient(130deg, var(--green-deep), #2c6b3f 60%, #8a5a12); }
.cat-hero h1 { color: #fff; font-size: clamp(32px, 4vw, 46px); margin: 0 0 8px; }
.cat-hero p { margin: 0 0 6px; max-width: 70ch; }
.practice-line { font-size: 15px; padding: 8px 12px; border-left: 4px solid var(--orange); background: rgba(255,255,255,.1); border-radius: 0 8px 8px 0; }
.list-h { font-size: 26px; margin: 26px 0 12px; }
.practice-tag { background: var(--orange-pale); color: var(--orange-text); border-color: #f6d3a8; }
.tag.tbc { background: #fff; border-style: dashed; color: var(--orange-text); border-color: var(--orange); }
.map-line { font-size: 14px; color: var(--muted); }
.card-visual { height: 170px; display: grid; place-items: center; background: linear-gradient(135deg, var(--green-pale), var(--orange-pale)); }
.practice-flag { padding: 1px 7px; border-radius: 999px; background: var(--orange-pale); color: var(--orange-text); font-weight: 800; }
.nav-help { margin: 14px 8px 0; font-size: 14px; font-weight: 700; }

/* safety + privacy */
.safety { margin: 26px 0 0; padding: 18px 20px; background: #fff; border-radius: 14px; border: 2px solid var(--green); border-left-width: 8px; }
.safety h2 { font-size: 22px; margin: 0 0 8px; }
.safety ul { margin: 0 0 8px; padding-left: 20px; }
.safety li { margin-bottom: 4px; }
.safety p { margin: 6px 0 0; }
.safety.big { border-color: var(--orange); }
.privacy-note { padding: 10px 14px; background: var(--green-mist); border-left: 4px solid var(--green); border-radius: 0 8px 8px 0; font-size: 15px; }
.signpost { margin: 12px 0 0; padding: 10px 14px; background: var(--orange-pale); border-left: 4px solid var(--orange); border-radius: 0 8px 8px 0; }
.status-box { margin-top: 22px; padding: 14px 18px; background: var(--orange-pale); border-radius: 12px; border: 1px solid #f6d3a8; font-size: 15px; }
.status-box p { margin: 0 0 6px; }
.tutor-notes { margin-top: 18px; padding: 0 18px; background: #fff; border: 1px dashed var(--green); border-radius: 12px; }
.tutor-notes summary { cursor: pointer; padding: 14px 0; font-weight: 800; color: var(--green-dark); }
.tutor-notes dl { margin: 0 0 16px; }
.tutor-notes dt { font-weight: 800; margin-top: 10px; }
.tutor-notes dd { margin: 2px 0 0; }
.tutor-notes ul { margin: 4px 0; padding-left: 20px; }
.clear-box { margin: 14px 0 22px; padding: 16px; border-radius: 12px; background: var(--bad-bg); }
.clear-box p { margin: 8px 0; }
.help ul li { margin-bottom: 6px; }

/* payslip */
.payslip { margin: 18px 0 22px; max-width: 720px; padding: 22px; background: #fffdf8; border: 1px solid #d9d2c1; border-radius: 4px; box-shadow: 0 10px 24px rgba(0,0,0,.08); font-variant-numeric: tabular-nums; }
.payslip figcaption { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 12px; }
.payslip figcaption span { font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.ps-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; margin: 0 0 14px; }
.ps-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ps-meta dd { margin: 0; font-weight: 700; }
.ps-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
table.ps { width: 100%; border-collapse: collapse; }
table.ps caption { text-align: left; font-weight: 800; padding-bottom: 4px; }
table.ps th, table.ps td { padding: 5px 6px; border-bottom: 1px solid #e3dccb; text-align: left; font-size: 15px; }
table.ps thead th { font-size: 12px; color: var(--muted); }
.ps-totals { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 0; padding-top: 10px; border-top: 2px solid var(--ink); }
.ps-totals dt { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.ps-totals dd { margin: 0; font-weight: 800; font-size: 18px; }
.ps-totals .net dd { color: var(--good); font-size: 22px; }
.ps-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.ps-details { margin: 14px 0; }
.ps-details summary { cursor: pointer; font-weight: 800; color: var(--green-dark); padding: 6px 0; }
.ps-mini { width: 210px; padding: 14px; background: #fffdf8; border: 1px solid #d9d2c1; box-shadow: 0 8px 18px rgba(0,0,0,.1); display: grid; gap: 6px; font-size: 12px; transform: rotate(-3deg); }
.ps-mini span { letter-spacing: .1em; color: var(--muted); }
.ps-mini i { display: block; height: 6px; background: #e6e0d2; border-radius: 3px; }
.ps-mini i.short { width: 60%; }
.ps-mini em { font-style: normal; font-weight: 800; color: var(--good); font-size: 14px; }
.doc-visual { display: grid; place-items: center; min-height: 240px; background: linear-gradient(135deg, var(--green-pale), var(--orange-pale)); border-radius: 14px; }
.doc-visual figcaption { text-align: center; }
.glossary { margin-top: 16px; padding: 16px 20px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.glossary h2 { font-size: 22px; margin: 0 0 6px; }
.glossary dt { font-weight: 800; margin-top: 8px; }
.glossary dd { margin: 0; }
.unit-after { color: var(--muted); font-weight: 600; }
.doc-practice { display: inline-block; margin: 12px 0 0; padding: 3px 10px; border: 2px solid var(--orange); color: var(--orange-text); font-weight: 800; font-size: 13px; letter-spacing: .06em; }

@media (max-width: 900px) {
  .doors, .how-grid { grid-template-columns: 1fr; }
  .door a { flex-direction: row; }
  .door-img { width: 38%; height: auto; min-height: 150px; flex: 0 0 38%; }
  .door-body { border-top: 0; border-left: 6px solid var(--green); }
  .door-employability .door-body { border-left-color: var(--green-deep); }
  .door-functional .door-body { border-left-color: var(--orange); }
  .ps-meta { grid-template-columns: 1fr 1fr; }
  .ps-cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .door a { flex-direction: column; }
  .door-img { width: 100%; height: 120px; min-height: 0; flex: none; }
  .door-body { border-left: 0; border-top: 6px solid var(--green); }
  .door-functional .door-body { border-top-color: var(--orange); }
  .door-employability .door-body { border-top-color: var(--green-deep); }
  .door-go { align-self: stretch; justify-content: center; }
  .payslip { padding: 14px; }
}
@media print { .safety, .tutor-notes, .status-box, .privacy-note { display: none !important; } .doc-practice { border-color: #000; color: #000; } }

/* ---------- v0.3: Spot the Scam interaction types ---------- */
/* minis */
.mini-phone { position: relative; width: 170px; padding: 26px 10px 14px; border-radius: 26px; background: #1f2d33; border: 6px solid #1f2d33; display: grid; gap: 6px; box-shadow: 0 10px 22px rgba(0,0,0,.18); }
.mp-notch { position: absolute; top: 8px; left: 50%; width: 46px; height: 6px; margin-left: -23px; border-radius: 3px; background: #3c4c52; }
.mp-n { display: block; padding: 6px 8px; border-radius: 9px; background: #fff; font-size: 11px; line-height: 1.25; color: var(--ink); border-left: 4px solid var(--green); }
.mp-n.bad { border-left-color: var(--bad); }
.mp-n.warn { border-left-color: var(--orange); }
.card-visual .mini-phone { transform: scale(.75); }

/* inbox */
.inbox { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 1.3fr); gap: 0; margin-top: 18px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.ib-list { background: var(--green-mist); border-right: 1px solid var(--line); }
.ib-head { margin: 0; padding: 12px 14px; font-size: 14px; background: var(--green-deep); color: #fff; }
.ib-list ul { list-style: none; margin: 0; padding: 0; }
.ib-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 2px 8px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); border-left: 5px solid transparent; background: transparent; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.ib-row:hover { background: #fff; }
.ib-row.open { background: #fff; border-left-color: var(--orange); }
.ib-ch { grid-row: 1 / 4; font-size: 20px; }
.ib-row > span { min-width: 0; overflow-wrap: anywhere; }
.inbox > * { min-width: 0; }
.ib-from { font-weight: 800; }
.ib-time { font-size: 13px; color: var(--muted); }
.ib-prev { grid-column: 2 / 4; font-size: 14px; color: var(--muted); }
.ib-state { grid-column: 2 / 4; font-size: 12px; font-weight: 800; color: var(--muted); }
.ib-row.right .ib-state { color: var(--good); }
.ib-row.wrong .ib-state { color: var(--bad); }
.ib-read { padding: 20px 22px; }
.ib-meta { margin: 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-text); }
.ib-read h2 { font-size: 24px; margin: 4px 0 12px; word-break: break-word; }
.ib-body { padding: 12px 14px; background: var(--green-mist); border-radius: 12px; }
.ib-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }

/* hotspot */
.hs-count { font-size: 18px; }
.hs-frame { max-width: 720px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.hs-head { display: grid; gap: 4px; padding: 12px 16px; background: var(--green-mist); border-bottom: 1px solid var(--line); }
.hs-body { display: grid; gap: 6px; padding: 16px; }
.hs-part { display: block; width: 100%; padding: 8px 10px; border: 2px dashed transparent; border-radius: 8px; background: transparent; text-align: left; font: inherit; color: var(--ink); cursor: pointer; word-break: break-word; }
.hs-part:hover { border-color: var(--line); background: var(--green-mist); }
.hs-part.hit { border: 2px solid var(--bad); background: #fdecea; }
.hs-part.hit::after { content: " ⚠"; color: var(--bad); font-weight: 800; }
.hs-part.miss { border: 2px solid var(--line); background: #f6f6f6; color: var(--muted); }
.hs-label { font-weight: 800; color: var(--muted); }

/* call */
.call-ui { max-width: 640px; margin-top: 16px; border-radius: 22px; overflow: hidden; background: var(--green-deep); box-shadow: var(--shadow); padding-bottom: 16px; }
.call-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; color: #fff; background: #062b25; }
.call-dot { width: 10px; height: 10px; border-radius: 50%; background: #4cd17b; }
.call-tag { margin-left: auto; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--orange); color: var(--green-deep); font-weight: 800; }
.call-log { list-style: none; margin: 0; padding: 16px; display: grid; gap: 10px; }
.call-log li { max-width: 85%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; }
.call-log .them { background: var(--green-pale); color: var(--green-deep); border-bottom-left-radius: 4px; }
.call-log .me { justify-self: end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.call-log .who { display: block; font-size: 12px; font-weight: 800; }
.call-log .call-end { max-width: 100%; color: var(--green-deep); }
.call-end.safe { background: var(--good-bg); border: 2px solid var(--good); }
.call-end.risky { background: var(--bad-bg); border: 2px solid var(--bad); }
.call-opts { display: grid; gap: 8px; padding: 0 16px; }
.call-opt { padding: 12px 14px; min-height: 48px; border-radius: 14px; border: 2px solid #3d766a; background: var(--green-dark); color: #fff; text-align: left; font: inherit; cursor: pointer; }
.call-opt:hover { border-color: var(--orange); }
.call-ui > .btn { margin-left: 16px; }

/* url guide */
.urlguide { margin: 16px 0; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; max-width: 700px; }
.urlguide figcaption { font-weight: 800; margin-bottom: 6px; }
.url { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; margin: 6px 0; padding: 8px 10px; background: var(--green-mist); border-radius: 8px; word-break: break-all; }
.url.bad { background: #fdf0ed; }
.u-dim { color: #4a5a61; }
.u-key { font-weight: 800; background: #fff3a8; color: #3d3300; padding: 0 3px; border-radius: 3px; }

/* match */
table.match { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); margin: 16px 0; }
table.match th, table.match td { padding: 12px 14px; border-bottom: 1px solid #e3ece8; text-align: left; vertical-align: top; }
table.match thead th { background: var(--green-deep); color: #fff; font-size: 14px; }
table.match tr.right { background: #f3faf6; }
table.match tr.wrong { background: #fdf5f3; }
table.match select { min-width: 220px; }
.mark-cell { font-size: 20px; font-weight: 800; width: 30px; }
tr.right .mark-cell { color: var(--good); } tr.wrong .mark-cell { color: var(--bad); }
table.match .fb { font-size: 14px; padding: 6px 10px; }

/* wallet card */
.action-card { margin: 18px 0; }
.ac-cut { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.ac-pair { display: flex; flex-wrap: wrap; width: max-content; max-width: 100%; border: 2px dashed #658078; border-radius: 6px; overflow: hidden; }
.ac-face { width: 8.5cm; min-height: 5.4cm; padding: 12px 14px; box-sizing: border-box; }
.ac-front { background: var(--green-deep); color: #fff; }
.ac-back { background: #fff; border-left: 2px dashed #658078; }
.ac-title { font-family: var(--serif); font-weight: 800; font-size: 16px; margin: 0 0 8px; }
.ac-step { margin: 0 0 6px; font-size: 12.5px; line-height: 1.35; }
.ac-step strong { display: block; color: #ffc77f; letter-spacing: .06em; }
.ac-line { font-size: 12.5px; line-height: 1.35; margin-bottom: 6px; }
@media print { .ac-front { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .action-card { break-inside: avoid; } }

@media (max-width: 900px) {
  .inbox { grid-template-columns: 1fr; }
  .ib-list { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .ac-face { width: 100%; }
  .ac-pair { width: 100%; }
  .ac-back { border-left: 0; border-top: 2px dashed #658078; }
  table.match select { min-width: 0; width: 100%; }
  table.match thead { display: none; }
  table.match tr { display: block; padding: 10px 0; border-bottom: 1px solid #e3ece8; }
  table.match th, table.match td { display: block; border: 0; padding: 4px 12px; }
  .call-log li { max-width: 100%; }
}

/* ---------- v0.3: Write a Clear Complaint Email interaction types ---------- */
.mini-board { position: relative; width: 230px; height: 150px; border-radius: 8px; background: #c9a77c; box-shadow: inset 0 0 0 6px #a8835a; }
.mini-board .note { position: absolute; width: 92px; padding: 6px; font-size: 10.5px; line-height: 1.2; background: #fff59a; box-shadow: 0 2px 4px rgba(0,0,0,.2); color: #3d3300; }
.mini-board .n1 { left: 12px; top: 12px; transform: rotate(-4deg); }
.mini-board .n2 { left: 120px; top: 10px; transform: rotate(3deg); background: #ffd2c2; }
.mini-board .n3 { left: 16px; top: 66px; transform: rotate(2deg); background: #ffd2c2; }
.mini-board .n4 { left: 124px; top: 62px; transform: rotate(-3deg); background: #cfeedd; }
.mini-board .env { position: absolute; left: 34px; bottom: 8px; padding: 4px 8px; font-size: 11px; background: #fff; border-radius: 4px; }
.card-visual .mini-board { transform: scale(.8); }
/* facts */
.facts-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 16px; align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs [role="tab"] { padding: 10px 14px; min-height: 44px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--green-mist); font: 700 15px var(--sans); color: var(--ink); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--green-deep); box-shadow: inset 0 4px 0 var(--orange); }
.tabpanel { min-height: 260px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 0 12px 12px 12px; box-shadow: var(--shadow); }
.tabpanel .doc-hl { padding: 8px 12px; background: #fff7d6; border-left: 4px solid var(--orange); font-weight: 700; }
.tabpanel .doc-from { font-size: 14px; color: var(--muted); }
.sms p { max-width: 85%; padding: 10px 12px; border-radius: 14px; background: #eef6f3; margin: 0 0 10px; }
.sms p.me { margin-left: auto; background: var(--green-pale); }
.notes { padding: 14px 16px; background: #fffbe6; border-radius: 6px; font-family: "Comic Sans MS", "Segoe Print", cursive, var(--sans); box-shadow: 0 2px 6px rgba(0,0,0,.08); background-image: repeating-linear-gradient(transparent, transparent 27px, #e7dfb5 28px); line-height: 28px; }
.notes p { margin: 0; }
.factsheet { padding: 18px; background: #fff; border: 2px solid var(--green); border-radius: 14px; }
.factsheet h2 { font-size: 22px; margin: 0 0 8px; }
.fact { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #e3ece8; }
.fact label { display: block; font-weight: 700; margin-bottom: 4px; }
.fact-row { display: flex; gap: 8px; }
.fact.ok input { border-color: var(--good); }
.fact .fb { font-size: 14px; padding: 6px 10px; }

/* scale */
.scale-list { display: grid; gap: 12px; margin-top: 16px; }
.scale-item { margin: 0; padding: 14px 16px; background: #fff; border: 2px solid var(--line); border-radius: 14px; }
.scale-item.right { border-color: var(--good); } .scale-item.wrong { border-color: var(--bad); }
.scale-item legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; }
.scale-item .scale-row { clear: both; }
.quote { font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--green-deep); }
.scale-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 10px; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.scale-opt { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 10px; cursor: pointer; font-weight: 700; font-size: 15px; text-align: center; border-left: 1px solid var(--line); }
.scale-opt:first-child { border-left: 0; }
.scale-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale-opt:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: -3px; }
.scale-opt.s0:has(input:checked) { background: #fde2dc; color: #7a1d10; }
.scale-opt.s1:has(input:checked) { background: var(--green); color: #fff; }
.scale-opt.s2:has(input:checked) { background: #fff1c9; color: #5f4200; }
.scale-item .fb { font-size: 14px; padding: 6px 10px; }

/* edit */
.edit-item { margin: 14px 0; padding: 16px; background: #fff; border: 2px solid var(--line); border-radius: 14px; }
.edit-item.ok { border-color: var(--good); }
.edit-orig { margin: 0 0 10px; padding: 8px 12px; background: #fdf5f3; border-radius: 8px; text-decoration: underline wavy #d86a5a; text-underline-offset: 4px; }
.edit-n { font-weight: 800; color: var(--orange-text); text-decoration: none; display: inline-block; }
.edit-item label { display: block; font-weight: 700; margin-bottom: 4px; }
.edit-actions { margin-top: 8px; }

/* compose + review */
.compose-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 20px; align-items: start; margin-top: 16px; }
.compose.letter .crow-l { font-weight: 700; color: var(--muted); }
.compose.letter textarea { font-family: Georgia, serif; font-size: 17px; line-height: 1.6; }
.wc { margin: 0; padding: 8px 16px 12px; font-size: 14px; color: var(--muted); }
.cp-check { position: sticky; top: 92px; padding: 18px; background: #fff; border: 2px solid var(--green); border-radius: 14px; }
.cp-check h2 { font-size: 22px; margin: 0 0 4px; }
.cp-score { font-weight: 800; color: var(--green-dark); margin: 0 0 6px; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; align-items: start; }
.rv-mine label { display: block; font-weight: 800; margin-bottom: 6px; }
.rv-mine textarea { font-family: Georgia, serif; font-size: 16px; line-height: 1.6; }
.rv-sub { margin: 0 0 8px; font-size: 15px; }
.rv-model { padding: 16px 18px; background: #fffdf8; border: 1px solid #d9d2c1; border-radius: 8px; }
.rv-model h2 { font-size: 20px; margin: 0 0 8px; }
.model-text { font-family: Georgia, serif; font-size: 15px; line-height: 1.6; max-height: 520px; overflow: auto; }
.rv-checks { margin-top: 18px; background: #fff; }

@media (max-width: 900px) {
  .facts-grid, .compose-grid, .review-grid { grid-template-columns: 1fr; }
  .cp-check { position: static; }
}
@media (max-width: 600px) {
  .scale-row { grid-template-columns: 1fr; border-radius: 12px; }
  .scale-opt { border-left: 0; border-top: 1px solid var(--line); justify-content: flex-start; }
  .scale-opt:first-child { border-top: 0; }
  .fact-row { flex-wrap: wrap; }
}

/* responsive */
.mobile-total { display: none; }
@media (max-width: 900px) {
  .mobile-total { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; position: sticky; bottom: 0; z-index: 20; margin: 14px -16px 0; padding: 10px 16px; background: var(--green-deep); color: #fff; font-size: 14px; box-shadow: 0 -6px 18px rgba(0,0,0,.15); }
  .mobile-total strong { font-size: 20px; }
  .mobile-total b { color: #ffd8a8; }
  .mobile-total b.over { color: #ffb4a8; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .player { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 50px; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line); background: var(--green-pale); font: 700 16px var(--sans); color: var(--green-deep); cursor: pointer; }
  .nav-toggle span { font-weight: 500; }
  .actnav { display: none; position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .actnav.open { display: block; }
  .intro-grid, .basket-grid, .form-grid, .assessor-grid { grid-template-columns: 1fr; }
  .order-panel { position: static; }
  .course-title strong { font-size: 17px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar { flex-wrap: wrap; gap: 10px; }
  .brand img { width: 160px; }
  .course-title { order: 3; flex-basis: 100%; border-left: 0; padding-left: 0; }
  .btn.exit span { display: none; }
  .btn.exit { min-width: 44px; padding: 8px 12px; }
  .top-links { margin-left: 0; flex-basis: 100%; }
  .crow { grid-template-columns: 1fr; gap: 4px; }
  .pager .btn { flex: 1; }
  .pager-done { order: -1; flex-basis: 100%; }
  .order-list li { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* print: only the learner document */
@media print {
  body { background: #fff; font-size: 12pt; }
  .topbar, .actnav, .nav-toggle, .pager, .no-print, .skip, .step-count, .act-title, .site-footer { display: none !important; }
  .player { display: block; }
  .stage { padding: 0; }
  .doc { border: 0; box-shadow: none; padding: 0; }
  .doc section { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* ================= Spark Plus activities (v0.8) ================= */
/* search results */
.srch { max-width: 760px; margin: 16px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.srch-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--green-mist); }
.srch-logo { font: 800 20px var(--sans); color: var(--green-deep); letter-spacing: -.02em; }
.srch-q { flex: 1; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 16px; }
.srch-count { margin: 10px 18px 0; font-size: 13px; color: var(--muted); }
.srch-list { list-style: none; margin: 0; padding: 6px 0 10px; }
.srch-res { position: relative; padding: 12px 18px; border-left: 4px solid transparent; }
.srch-res.right { border-left-color: var(--good); background: var(--good-bg); }
.srch-res.wrong { border-left-color: var(--bad); background: var(--bad-bg); }
.srch-ad { display: inline-block; margin: 0 0 4px; padding: 1px 8px; border-radius: 4px; background: #fff2cc; border: 1px solid #e3c36a; font-size: 12px; font-weight: 800; color: #6b5200; }
.srch-url { margin: 0; font-size: 14px; color: #3b5b54; word-break: break-all; }
.srch-title { display: block; margin: 2px 0; padding: 0; border: 0; background: none; font: 700 19px var(--sans); color: #1a4fa0; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.srch-title:hover { color: #0b3376; }
.srch-desc { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.srch-insp { font-size: 14px; min-height: 32px; }
.srch-full { margin: 4px 0 0; font-size: 14px; }

/* live online form */
.lf-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 22px; align-items: start; margin-top: 16px; }
.lf-card { position: sticky; top: 90px; padding: 16px 18px; background: var(--orange-pale); border: 2px dashed var(--orange); border-radius: 12px; }
.lf-card h2 { margin: 0 0 8px; font-size: 19px; }
.lf-card dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; margin: 0 0 8px; font-size: 14.5px; }
.lf-card dt { font-weight: 700; color: var(--muted); }
.lf-card dd { margin: 0; word-break: break-word; }
.lf-svc { background: #fff; border: 1px solid #b1b4b6; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); font-family: Arial, "Helvetica Neue", sans-serif; color: #0b0c0c; }
.lf-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: #0b0c0c; color: #fff; font-weight: 700; font-size: 18px; border-bottom: 8px solid #1d70b8; flex-wrap: wrap; }
.lf-crown { color: #fff; }
.lf-url { margin-left: auto; font-weight: 400; font-size: 13px; color: #d0d3d4; }
.lf-body { padding: 18px 22px 24px; }
.lf-cap { margin: 0; color: #505a5f; font-size: 16px; }
.lf-title { margin: 2px 0 18px; font-family: Arial, sans-serif; font-size: 28px; color: #0b0c0c; letter-spacing: 0; }
.lf-field { margin: 0 0 20px; }
.lf-field.lf-err { padding-left: 14px; border-left: 5px solid #d4351c; }
.lf-inner { border: 0; margin: 0; padding: 0; min-width: 0; }
.lf-inner > label, .lf-inner > legend { display: block; font-weight: 700; font-size: 18px; margin: 0 0 4px; padding: 0; }
.lf-hint { margin: 0 0 6px; color: #505a5f; font-size: 16px; }
.lf-msg { margin: 0 0 6px; color: #d4351c; font-weight: 700; font-size: 16px; }
.lf-svc input[type="text"], .lf-svc select { min-height: 40px; padding: 5px 8px; border: 2px solid #0b0c0c; border-radius: 0; font: 18px Arial, sans-serif; width: 100%; max-width: 100%; background: #fff; }
.lf-svc input.w5 { max-width: 7.5ch; } .lf-svc input.w10 { max-width: 15ch; } .lf-svc input.w20 { max-width: 26ch; } .lf-svc input.w30 { max-width: 38ch; }
.lf-err input[type="text"], .lf-err select { border-color: #d4351c; }
.lf-svc input:focus, .lf-svc select:focus { outline: 3px solid #fd0; outline-offset: 0; box-shadow: inset 0 0 0 2px; }
.lf-radios { display: grid; gap: 8px; }
.lf-radios label, .lf-check { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.lf-radios input, .lf-check input { width: 26px; height: 26px; accent-color: #0b0c0c; }
.lf-btn { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 0; background: #00703c; color: #fff; font: 700 18px Arial, sans-serif; box-shadow: 0 2px 0 #002d18; cursor: pointer; }
.lf-btn:hover { background: #005a30; }
.lf-btn:focus-visible { outline: 3px solid #fd0; color: #0b0c0c; background: #fd0; box-shadow: 0 2px 0 #0b0c0c; }
.lf-summary { margin: 0 0 22px; padding: 16px 18px; border: 5px solid #d4351c; }
.lf-summary:focus { outline: 3px solid #fd0; }
.lf-summary h3 { margin: 0 0 8px; font: 700 22px Arial, sans-serif; color: #0b0c0c; }
.lf-summary ul { margin: 0; padding-left: 0; list-style: none; }
.lf-summary a { color: #d4351c; font-weight: 700; }
.lf-done { padding: 22px; background: #00703c; color: #fff; text-align: center; }
.lf-done h3 { margin: 0 0 8px; font: 700 26px Arial, sans-serif; color: #fff; }
.lf-done p { margin: 0; }
.lf-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(11, 12, 12, .62); }
.lf-mbox { max-width: 480px; padding: 26px; background: #fff; border: 5px solid #0b0c0c; font-family: Arial, sans-serif; }
.lf-mbox h3 { margin: 0 0 10px; font: 700 24px Arial, sans-serif; color: #0b0c0c; }
.lf-mbtns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 16px; }

/* social feed */
.feed { display: grid; gap: 16px; max-width: 640px; }
.post { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 10px rgba(23, 43, 58, .06); }
.post.right { border-color: var(--good); box-shadow: 0 0 0 2px var(--good-bg); }
.post.wrong { border-color: var(--bad); }
.post header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.post header div { display: grid; flex: 1; }
.post header small { color: var(--muted); font-size: 13px; }
.av { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 18px; flex: none; }
.post-body { margin: 0 0 6px; font-size: 16.5px; }
.post-link { margin: 0 0 6px; padding: 8px 10px; background: var(--green-mist); border-radius: 8px; font-size: 14px; word-break: break-all; }
.post-stats { margin: 0 0 10px; font-size: 13px; color: var(--muted); }

/* settings switches */
.tg-phone { max-width: 520px; margin: 16px 0; border: 8px solid #1f2d33; border-radius: 26px; background: #fff; overflow: hidden; }
.tg-head { padding: 14px 18px; background: var(--green-deep); color: #fff; font-weight: 800; }
.tg-list { list-style: none; margin: 0; padding: 0; }
.tg-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: #fff7f5; }
.tg-row.good { background: #fff; }
.tg-text { flex: 1; display: grid; }
.tg-text small { color: var(--bad); font-size: 13.5px; }
.tg-row.good .tg-text small { color: var(--good); }
.tg-sw { position: relative; flex: none; width: 58px; height: 32px; border: 2px solid #586a66; border-radius: 999px; background: #dbe3e0; cursor: pointer; }
.tg-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: left .15s; }
.tg-sw[aria-checked="true"] { background: var(--orange); border-color: #b85f00; }
.tg-sw[aria-checked="true"]::after { left: 29px; }

/* statement / leaks */
.stmt { margin: 16px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.stmt-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--green-deep); color: #fff; flex-wrap: wrap; }
.stmt-t { width: 100%; border-collapse: collapse; font-size: 15px; }
.stmt-t th, .stmt-t td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.stmt-t thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--green-mist); }
.stmt-t tr.right { background: var(--good-bg); } .stmt-t tr.wrong { background: var(--bad-bg); }
.stmt-note { color: var(--muted); max-width: 26ch; }
.stmt-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.stmt-opts .bucket { min-height: 38px; padding: 5px 10px; font-size: 14px; }
.till { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.till div { flex: 1 1 130px; padding: 12px 14px; border-radius: 12px; background: var(--green-deep); color: #fff; }
.till span { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.till strong { font: 700 26px var(--serif); }
.till strong.over { color: #ffb39b; }

/* shop */
.shop-grid { display: grid; grid-template-columns: 1fr minmax(240px, 320px); gap: 20px; align-items: start; margin-top: 14px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.prod { display: flex; flex-direction: column; padding: 12px; background: #fff; border: 2px solid var(--line); border-radius: 12px; }
.prod.in { border-color: var(--green); background: var(--green-mist); }
.prod-top { display: grid; gap: 4px; }
.tag-need { justify-self: start; padding: 1px 8px; border-radius: 999px; background: var(--orange-pale); color: var(--orange-text); font-size: 12px; font-weight: 800; }
.prod-price { margin: 6px 0 2px; font: 700 20px var(--serif); color: var(--green-deep); }
.prod-price small { font: 400 13px var(--sans); color: var(--muted); }
.prod-deal { margin: 0 0 6px; padding: 2px 8px; align-self: start; background: #ffe16b; border-radius: 4px; font-size: 13px; font-weight: 800; color: #4a3a00; }
.qty { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.qty span { min-width: 1.5em; text-align: center; font-weight: 800; }
.basket-side { position: sticky; top: 90px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.basket-side h2 { margin: 0 0 8px; font-size: 22px; }
.basket-lines { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.basket-lines li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dotted var(--line); }
.basket-lines em { font-style: normal; font-size: 12px; background: #ffe16b; padding: 0 5px; border-radius: 3px; }
.basket-side .till div { flex-basis: 100px; }

/* chat */
.chat-ui { max-width: 560px; margin-top: 16px; border: 8px solid #1f2d33; border-radius: 28px; overflow: hidden; background: #e8efe9; box-shadow: var(--shadow); }
.chat-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--green-deep); color: #fff; }
.chat-bar div { display: grid; flex: 1; }
.chat-bar small { opacity: .8; font-size: 12.5px; }
.chat-log { list-style: none; margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.cm { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 15.5px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.cm small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); text-align: right; }
.cm.them { align-self: flex-start; background: #fff; border-radius: 4px 14px 14px 14px; }
.cm.me { align-self: flex-end; background: #d9f2df; border-radius: 14px 4px 14px 14px; }
.cm.sys { align-self: center; max-width: 92%; background: #fff7dc; color: #5c4b00; font-size: 14px; font-style: italic; text-align: center; }
.cm-end { align-self: stretch; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.cm-end.safe { background: var(--good-bg); border: 2px solid var(--good); color: #0b3a26; }
.cm-end.risky, .cm-end.lost { background: var(--bad-bg); border: 2px solid var(--bad); color: #5e1a10; }
.chat-opts { display: grid; gap: 8px; padding: 0 14px 14px; }
.chat-opts .call-opt { text-align: left; }

@media (max-width: 820px) {
  .lf-grid, .shop-grid { grid-template-columns: 1fr; }
  .lf-card, .basket-side { position: static; }
  .stmt-t thead { display: none; }
  .stmt-t tr { display: grid; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .stmt-t th, .stmt-t td { border: 0; padding: 4px 12px; }
}
@media print { .lf-modal { display: none; } }
/* card illustrations for v0.8 lessons */
.mini-form { width: 210px; padding: 0 0 10px; background: #fff; border: 1px solid #b1b4b6; border-radius: 6px; display: grid; gap: 4px; font: 11px Arial, sans-serif; color: #0b0c0c; overflow: hidden; box-shadow: 0 10px 22px rgba(0,0,0,.15); }
.mini-form .mf-bar { padding: 7px 9px; background: #0b0c0c; color: #fff; font-weight: 700; border-bottom: 4px solid #1d70b8; }
.mini-form .mf-err { margin: 4px 9px 0; padding: 4px 6px; border: 3px solid #d4351c; font-weight: 700; }
.mini-form .mf-l { margin: 2px 9px 0; font-weight: 700; }
.mini-form .mf-row { display: flex; gap: 4px; margin: 0 9px; }
.mini-form .mf-row i { font-style: normal; width: 26px; padding: 2px 4px; border: 2px solid #0b0c0c; }
.mini-form .mf-row i.w { width: 60px; }
.mini-form .mf-btn { justify-self: start; margin: 4px 9px 0; padding: 4px 9px; background: #00703c; color: #fff; font-weight: 700; }
.mini-doc { position: relative; width: 190px; height: 150px; padding: 10px; background: #fff; border-radius: 4px; display: grid; align-content: start; gap: 6px; box-shadow: 0 10px 22px rgba(0,0,0,.15); }
.mini-doc .md-h { font: 700 13px var(--serif); color: var(--green-deep); }
.mini-doc .md-l { height: 7px; border-radius: 3px; background: #dfe6e3; font-size: 9px; line-height: 7px; color: transparent; }
.mini-doc .md-l.bad { height: auto; padding: 2px 4px; background: #fdecea; color: var(--bad); border: 1px solid var(--bad); line-height: 1.2; }
.mini-doc .md-l.short { width: 60%; }
.mini-doc .md-stamp { position: absolute; right: -14px; bottom: 10px; padding: 3px 8px; transform: rotate(-8deg); border: 3px solid var(--orange); color: var(--orange-text); background: #fff; font: 800 12px var(--sans); }
.mini-stmt { width: 210px; background: #fff; border-radius: 8px; overflow: hidden; display: grid; font-size: 11px; box-shadow: 0 10px 22px rgba(0,0,0,.15); }
.mini-stmt .ms-h { padding: 6px 9px; background: var(--green-deep); color: #fff; font-weight: 700; }
.mini-stmt .ms-r { display: flex; justify-content: space-between; padding: 5px 9px; border-bottom: 1px solid var(--line); }
.mini-stmt .ms-r s { color: var(--bad); }
.mini-stmt .ms-r em { font-style: normal; color: var(--good); font-weight: 700; }
.mini-stmt .ms-save { padding: 6px 9px; background: var(--orange); color: #fff; font-weight: 800; text-align: center; }
.mini-feed .mf-post { display: block; padding: 5px 6px; border-radius: 8px; background: #fff; font-size: 9.5px; line-height: 1.25; color: var(--ink); }
.mini-feed .mf-post b { display: block; font-size: 9px; }
.mini-feed .mf-post.bad { box-shadow: inset 3px 0 0 var(--bad); }
.card-visual .mini-form, .card-visual .mini-doc, .card-visual .mini-stmt { transform: scale(.8); }
