/* AkiliGreen Academy — interface styles */
:root {
  --brand: #00A857;
  --brand-dark: #00703C;
  --brand-darker: #005C31;
  --brand-ink: #00582F;
  --tint: #E6F5EC;
  --tint-2: #F1FAF5;
  --grey-brand: #858688;
  --ink: #17201B;
  --ink-2: #2F3632;
  --muted: #4A514D;
  --muted-2: #5A615D;
  --line: #DDE2DF;
  --line-2: #E8ECEA;
  --field: #C9D0CC;
  --bg: #F4F6F5;
  --surface: #FFFFFF;
  --warn-bg: #FEF0E7;
  --warn-line: #F5C3A0;
  --warn-ink: #8A3A0A;
  --warn: #C2570C;
  --info-bg: #E8EEF9;
  --info-ink: #2A4E96;
  --radius: 12px;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand-darker); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.sidebar { flex: 1 1 248px; background: var(--surface); border-right: 1px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; }
.content { flex: 999 1 560px; min-width: 0; padding: 32px clamp(16px, 4vw, 44px) 72px; }
.content-inner { max-width: 1160px; margin: 0 auto; }
@media (min-width: 900px) { .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; flex: 0 0 256px; } }
@media (max-width: 899px) {
  .sidebar { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-block { padding: 0; margin-right: auto; }
  .sidebar .wordmark { font-size: 22px; }
  .sidebar .wordmark-sub { display: none; }
  .sidebar { min-width: 0; max-width: 100%; }
  .sidebar .nav { order: 3; width: 100%; min-width: 0; max-width: 100%; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 2px; }
  .sidebar .nav-title { display: none; }
  .sidebar .nav a { white-space: nowrap; min-height: 40px; padding: 8px 12px; }
  .sidebar .user-chip { margin-top: 0; padding: 0; background: transparent; }
  .sidebar .user-chip .who { display: none; }
  .content { padding-top: 20px; }
}

.wordmark { font-family: var(--serif); font-size: 27px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.wordmark .a { color: var(--grey-brand); }
.wordmark .g { color: var(--brand); }
.wordmark-sub { margin-top: 7px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.brand-block { padding: 0 8px; text-decoration: none; display: block; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-title { margin: 0 0 6px 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 44px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.nav a:hover { background: #EEF2EF; color: var(--ink); }
.nav a.active { background: var(--tint); color: var(--brand-ink); font-weight: 600; }
.nav a svg { flex: none; opacity: .8; }

.user-chip { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--bg); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.user-chip .name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .role { font-size: 12px; color: var(--muted-2); }
.user-chip .who { min-width: 0; flex: 1; }

/* ---------- type ---------- */
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dark); }
h1, .h1 { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h2, .h2 { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.25; font-weight: 700; }
h3, .h3 { margin: 0; font-size: 16px; font-weight: 600; }
.lead { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 66ch; }
.muted { color: var(--muted-2); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted-2); margin-bottom: 14px; }
.crumbs a { font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .main { flex: 999 1 520px; min-width: 0; }
.split > .side { flex: 1 1 300px; min-width: 0; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 20px; }
.card-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-body { padding: 20px; }
.empty { padding: 32px 20px; text-align: center; color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.notice-warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.notice-ok { background: var(--tint); color: var(--brand-ink); border: 1px solid #9ED9B8; }
.notice-info { background: var(--info-bg); color: var(--info-ink); border: 1px solid #C3D2EE; }

/* ---------- buttons ---------- */
.btn { font-size: 14px; font-weight: 600; border-radius: 8px; padding: 10px 16px; min-height: 44px; cursor: pointer; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none; line-height: 1.1; }
.btn-p { background: var(--brand-dark); color: #fff; }
.btn-p:hover { background: var(--brand-darker); color: #fff; }
.btn-s { background: #fff; color: var(--ink); border-color: var(--field); }
.btn-s:hover { background: #EEF2EF; color: var(--ink); }
.btn-g { background: transparent; color: var(--brand-dark); padding: 10px 12px; }
.btn-g:hover { background: var(--tint); }
.btn-danger { background: #fff; color: var(--warn-ink); border-color: var(--warn-line); }
.btn-danger:hover { background: var(--warn-bg); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.ib { width: 40px; height: 40px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: #4A514D; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.ib:hover { background: #EEF2EF; color: var(--ink); }
.ib-d:hover { background: var(--warn-bg); color: var(--warn); }
.ib:disabled { opacity: .35; cursor: default; background: transparent; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 600; color: var(--ink); }
.hint { font-size: 12px; color: var(--muted-2); margin: 0; }
.inp { width: 100%; font-size: 14px; padding: 10px 12px; min-height: 44px; border: 1px solid var(--field); border-radius: 8px; background: #fff; color: var(--ink); }
.inp:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
textarea.inp { min-height: 96px; resize: vertical; line-height: 1.5; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; padding: 6px 0; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand-dark); flex: none; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; font-size: 14px; }
.radio-card:has(input:checked) { border-color: var(--brand-dark); background: var(--tint-2); }
.radio-card input { accent-color: var(--brand-dark); margin-top: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line-2); padding-top: 18px; margin-top: 4px; }
.search { position: relative; flex: 1 1 260px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.search .inp { padding-left: 38px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed #9AA39E; border-radius: 12px; padding: 26px 16px; text-align: center; cursor: pointer; background: #FAFBFA; }
.drop:hover, .drop.drag { border-color: var(--brand); background: var(--tint-2); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.progress-bar { height: 8px; border-radius: 999px; background: #E3E8E5; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.b-green { background: var(--tint); color: var(--brand-ink); }
.b-amber { background: #FDE7D4; color: var(--warn-ink); }
.b-blue { background: var(--info-bg); color: var(--info-ink); }
.b-grey { background: #EEF1EF; color: var(--muted); }
.b-red { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFBFA; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.clickable { cursor: pointer; }
.t tr.clickable:hover td { background: #F7F9F8; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-main { font-weight: 600; }
.cell-sub { font-size: 13px; color: var(--muted-2); }
.minibar { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.minibar .progress-bar { flex: 1; height: 6px; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .v { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 13px; color: var(--muted); margin-top: 4px; }
.kpi .s { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.kpi.warn .v { color: var(--warn); }

/* ---------- course cards ---------- */
.course-card { display: flex; flex-direction: column; overflow: hidden; }
.course-cover { height: 96px; padding: 16px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; color: #fff; }
.course-cover .cat { font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-body h3 { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.25; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.course-foot { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; }
.add-tile { min-height: 280px; border: 1.5px dashed #9AA39E; border-radius: 12px; background: transparent; color: var(--brand-dark); font-size: 15px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.add-tile:hover { background: var(--tint-2); }
.add-tile .plus { width: 48px; height: 48px; border-radius: 50%; background: var(--tint); display: flex; align-items: center; justify-content: center; }

/* ---------- builder ---------- */
.module { overflow: hidden; }
.module-head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 8px; background: #FAFBFA; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.module-tag { font-size: 12px; font-weight: 700; color: var(--brand-dark); background: var(--tint); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.module-title { flex: 1 1 200px; min-width: 0; font-size: 16px; font-weight: 600; border: 1px solid transparent; border-radius: 6px; padding: 8px; background: transparent; }
.module-title:hover { border-color: var(--line); }
.module-title:focus { border-color: var(--brand); background: #fff; outline: none; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px 8px 8px; border-bottom: 1px solid #F0F2F1; }
.lesson-row:last-child { border-bottom: 0; }
.licon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.licon.v { background: var(--tint); color: var(--brand-dark); }
.licon.q { background: var(--info-bg); color: var(--info-ink); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--brand-ink); border-bottom-color: var(--brand-dark); }
.title-input { width: 100%; font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 700; border: 1px solid transparent; border-radius: 8px; padding: 2px 8px; margin-left: -9px; background: transparent; }
.title-input:hover { border-color: var(--line); }
.title-input:focus { border-color: var(--brand); background: #fff; outline: none; }

/* quiz editor */
.opt-row { display: flex; align-items: center; gap: 8px; }
.correct-btn { width: 40px; height: 40px; flex: none; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.correct-btn .ring { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #9AA39E; background: #fff; display: flex; align-items: center; justify-content: center; }
.correct-btn[aria-pressed="true"] .ring { border-color: var(--brand-dark); background: var(--brand-dark); }
.opt-row.is-correct .inp { border-color: var(--brand); background: var(--tint-2); }
.opt-letter { font-size: 13px; font-weight: 700; color: var(--muted-2); width: 16px; }

/* group tree */
.tree { list-style: none; margin: 0; padding: 0; }
.tree .tree { padding-left: 26px; border-left: 1px dashed var(--field); margin-left: 18px; }
.tree-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.tree-item:hover { background: #F7F9F8; }
.gicon { width: 36px; height: 36px; border-radius: 9px; background: var(--tint); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.gicon.sub { background: #EEF1EF; color: var(--muted); }
.check-tree { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; }
.pick-list { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.pick-list label { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.pick-list label:last-child { border-bottom: 0; }
.pick-list input { width: 18px; height: 18px; accent-color: var(--brand-dark); }

/* ---------- learner player ---------- */
.player-video { aspect-ratio: 16 / 9; border-radius: 14px; background: #0E1F16; color: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.player-video video, .player-video iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player-ph { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; text-align: center; }
.play-dot { width: 72px; height: 72px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; }
.les { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-radius: 8px; padding: 9px 10px; min-height: 44px; font-size: 14px; cursor: pointer; background: transparent; color: var(--ink); text-decoration: none; }
.les:hover { background: #EEF2EF; color: var(--ink); }
.les.active { background: var(--tint); color: var(--brand-ink); font-weight: 600; }
.les .tick { width: 22px; height: 22px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; border: 2px solid #B5BDB9; background: #fff; color: transparent; }
.les.done .tick { border-color: var(--brand); background: var(--brand); color: #fff; }
.les .sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted-2); margin-top: 1px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border-radius: 10px; padding: 12px 14px; min-height: 48px; font-size: 15px; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.opt:hover:not(:disabled) { border-color: #9AA39E; }
.opt .letter { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #EEF1EF; color: var(--ink-2); }
.opt[aria-pressed="true"] { border-color: var(--brand-dark); background: var(--tint-2); }
.opt[aria-pressed="true"] .letter { background: var(--brand-dark); color: #fff; }
.opt.right { border-color: var(--brand); background: var(--tint); }
.opt.right .letter { background: var(--brand-dark); color: #fff; }
.opt.wrong { border-color: var(--warn); background: var(--warn-bg); }
.opt.wrong .letter { background: var(--warn); color: #fff; }
.opt:disabled { cursor: default; }
.opt .tag { font-size: 12px; font-weight: 700; margin-left: auto; }
.q-block { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.q-block legend { font-size: 16px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.q-mark { font-size: 13px; font-weight: 700; margin-left: 8px; }

.hero { border-radius: 16px; background: #0E2A1B; color: #fff; padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.hero h1 { color: #fff; }
.hero p { color: #CFDDD5; }
.hero .k { font-family: var(--serif); font-size: 34px; font-weight: 700; }
.hero .kl { font-size: 13px; color: #CFDDD5; }
.hero .eyebrow { color: #7FDCAA; }

/* certificate preview */
.cert-mini { border: 4px solid var(--brand); outline: 1px solid var(--grey-brand); outline-offset: -10px; border-radius: 6px; padding: 28px 24px; text-align: center; background: #fff; }
.cert-mini .t { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--brand-dark); margin-top: 10px; }
.cert-mini .n { font-family: var(--serif); font-size: 26px; font-weight: 700; margin: 10px 0 4px; }
.cert-mini .c { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--brand-dark); }

/* ---------- public pages ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: radial-gradient(circle at 20% 0%, #E6F5EC 0, transparent 50%), var(--bg); }
.auth-card { width: 100%; max-width: 440px; padding: 32px; }
.auth-card .wordmark { font-size: 32px; }

/* ---------- overlays ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 26, 20, .45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line-2); background: #FAFBFA; border-radius: 0 0 14px 14px; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast.err { background: #7A2E05; }
.loading { padding: 48px; text-align: center; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-banner { background: #0E2A1B; color: #CFDDD5; font-size: 13px; padding: 8px 16px; text-align: center; }
.demo-banner b { color: #fff; }
.demo-banner button { background: transparent; border: 1px solid #4F6B5B; color: #fff; border-radius: 6px; padding: 3px 10px; margin-left: 8px; cursor: pointer; font-size: 12px; }

@media print {
  .sidebar, .no-print, .toasts, .demo-banner { display: none !important; }
  .content { padding: 0; }
  body { background: #fff; }
}
