/* NOVA palette — GSM brand colours taken from GSM's own documents (tax invoice, ISF):
   deep teal #134947 and gold #b08d57. */
:root {
  --brand: #134947;
  --brand-ink: #0c3331;
  --accent: #b08d57;
  --accent-ink: #0c3331;
  --gold: #b08d57;
  --teal-light: #e8efee;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1c2330;
  --muted: #5b6575;
  --line: #dde1e8;
  --ok: #1d7a4b;
  --warn: #9a5b00;
  --danger: #b3261e;
  --demo: #7a1fa2;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.5; font-size: 16px; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* Header */
.top { background: var(--brand); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand b { font-size: 26px; letter-spacing: .12em; font-weight: 800; }
.brand span { font-size: 13px; opacity: .85; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.top nav a { color: #fff; text-decoration: none; font-weight: 500; }
.top nav a:hover { text-decoration: underline; }
.pill { background: var(--gold); color: var(--brand-ink); border-radius: 999px; padding: 1px 8px; font-size: 13px; font-weight: 700; }

.demo-banner { background: var(--demo); color: #fff; text-align: center; font-weight: 700; padding: 6px 12px; font-size: 14px; letter-spacing: .03em; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; vertical-align: middle; }
.badge.demo { background: #f3e5f9; color: var(--demo); border: 1px solid #dcb6ea; }
.badge.stale { background: #fff4e0; color: var(--warn); border: 1px solid #f0d199; }
.badge.ok { background: #e6f4ec; color: var(--ok); }
.badge.grey { background: #eef0f3; color: var(--muted); }
.badge.danger { background: #fdecea; color: var(--danger); }
.badge.warn { background: #fff4e0; color: var(--warn); border: 1px solid #f0d199; }
.badge.info { background: #e7f0fb; color: #1f5fa8; }
.unv { color: var(--warn); font-style: italic; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

main { padding: 28px 0 48px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; color: var(--brand-ink); letter-spacing: -.01em; }
h2 { font-size: 21px; margin: 28px 0 12px; color: var(--brand-ink); }
h3 { font-size: 17px; margin: 0 0 6px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }

.hero { background: linear-gradient(160deg, #134947 0%, #1d5c59 100%); color: #fff; padding: 36px 0 40px; overflow: hidden; border-bottom: 4px solid var(--gold); }
.hero .wrap { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: center; }
.hero .mascot { width: 100%; height: auto; -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 52%, transparent 71%); mask-image: radial-gradient(circle at 50% 48%, #000 52%, transparent 71%); }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } .hero .mascot-wrap { order: -1; max-width: 200px; margin: 0 auto -8px; } }
.hero h1 { color: #fff; font-size: 36px; max-width: 720px; }
.hero p { max-width: 640px; opacity: .92; font-size: 18px; }
.hero form { display: flex; gap: 8px; max-width: 640px; margin-top: 20px; flex-wrap: wrap; }
.hero input { flex: 1 1 280px; }

/* Forms */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c4cad4; border-radius: 8px; font: inherit; background: #fff;
}
textarea { resize: vertical; }
.field { margin-bottom: 14px; }
.field .help { font-size: 13px; color: var(--muted); margin-top: 4px; }
.errorlist { list-style: none; padding: 0; margin: 4px 0 0; color: var(--danger); font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.btn { display: inline-block; border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--brand); color: #fff; text-decoration: none; }
.btn:hover { background: var(--brand-ink); }
.btn.accent { background: var(--gold); color: var(--brand-ink); }
.btn.accent:hover { background: #c4a26d; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn.small { padding: 6px 10px; font-size: 14px; }
.btn.link { background: none; color: var(--brand); padding: 0; text-decoration: underline; font-weight: 500; }

/* Search layout */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
@media (max-width: 860px) { .search-layout { grid-template-columns: 1fr; } }
.filters .field { margin-bottom: 10px; }
.result { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.result .facts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 6px; }
.result .facts b { color: var(--text); font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--teal-light); color: var(--brand-ink); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 18px; }

dl.facts-table { display: grid; grid-template-columns: 220px 1fr; gap: 8px 16px; margin: 0; }
dl.facts-table dt { font-weight: 600; color: var(--muted); }
dl.facts-table dd { margin: 0; }
@media (max-width: 640px) { dl.facts-table { grid-template-columns: 1fr; } dl.facts-table dd { margin-bottom: 8px; } }

table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
th { background: #f0f2f5; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages li { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; background: #e9eef6; }
.messages li.success { background: #e6f4ec; color: var(--ok); }
.messages li.error { background: #fdecea; color: var(--danger); }
.messages li.warning { background: #fff4e0; color: var(--warn); }

.cta { background: #fbf6ef; border: 1px solid #e6d5b8; }
.mascot-tile { border-radius: 16px; width: 100%; max-width: 220px; height: auto; display: block; }
.with-mascot { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; }
@media (max-width: 560px) { .with-mascot { grid-template-columns: 1fr; } .with-mascot img { max-width: 140px; } }
.source-line { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 14px; }
footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 14px; background: #fff; }

/* Staff */
body.staff { background: #f3f4f6; }
body.staff .top { background: var(--brand-ink); border-bottom: 3px solid var(--gold); }
.top { border-bottom: 3px solid var(--gold); }
.staff-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.staff-cols > * { min-width: 0; } /* wide tables scroll inside their box instead of widening the page */
@media (max-width: 960px) { .staff-cols { grid-template-columns: minmax(0, 1fr); } }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 3px solid var(--line); padding: 4px 0 12px 14px; }
.timeline li.system { border-color: #c4cad4; color: var(--muted); }
.timeline li.system { }
.timeline li:not(.system) { border-color: var(--accent); }
.overdue { color: var(--danger); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.kpi b { display: block; font-size: 28px; color: var(--brand-ink); }
.bell { position: relative; color: #fff; text-decoration: none; }
.bell .count, nav .count, .nav .count { background: var(--gold); color: var(--brand-ink); border-radius: 999px; font-size: 12px; padding: 0 6px; margin-left: 2px; }
.unread { border-left: 4px solid var(--gold); }
details.panel summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.internal { background: #fffbe8; border: 1px dashed #e0c76e; padding: 6px 10px; border-radius: 6px; font-size: 13px; }

/* ISF */
.isf-section { border: 1px solid var(--line); margin: 0; }
.isf-section legend { font-weight: 700; font-size: 18px; color: var(--brand-ink); padding: 0 6px; display: flex; align-items: center; gap: 8px; }
.isf-section .step { background: var(--brand); color: #fff; border-radius: 999px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.isf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 16px; }
.isf-wide { grid-column: 1 / -1; }
.isf-row { display: grid; grid-template-columns: 1.1fr 2fr 1fr 1fr; gap: 0 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
@media (max-width: 700px) { .isf-row { grid-template-columns: 1fr 1fr; } }
.isf-section ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.isf-section ul label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
.isf-section ul input { width: 18px; height: 18px; }

/* Student case */
.stage-track { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0 12px; }
.stage-track span { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: #eef0f3; color: var(--muted); }
.stage-track span.done { background: #e6f4ec; color: var(--ok); }
.stage-track span.now { background: var(--brand); color: #fff; font-weight: 700; }
.ids { display: flex; gap: 10px; flex-wrap: wrap; }
.ids .id { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.ids .id b { display: block; font-size: 18px; letter-spacing: .03em; }
.checklist { list-style: none; padding: 0; margin: 0; columns: 2; font-size: 14px; }
@media (max-width: 640px) { .checklist { columns: 1; } }
.checklist li::before { content: "○ "; color: var(--muted); }
.checklist li.ok::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.missing { background: #fff4e0; border: 1px solid #f0d199; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.timeline li.comment { border-color: var(--gold); }
details.app > summary { list-style: none; cursor: pointer; }
details.app > summary::-webkit-details-marker { display: none; }

/* NOVA portrait poses (transparent) */
.nova-pose { height: auto; max-width: 100%; display: block; }
.nova-pose-right { float: right; margin: 0 0 8px 12px; }
.nova-pose-left { float: left; margin: 0 12px 8px 0; }
.nova-pose-inline { display: inline-block; vertical-align: middle; }
.pose-head { display: flex; align-items: center; gap: 12px; }
.pose-head .nova-pose { flex: none; }
.clearfix::after { content: ""; display: table; clear: both; }
.mascot[src*="/poses/"], .mascot-tile[src*="/poses/"] { -webkit-mask-image: none; mask-image: none; border-radius: 0; }

/* Student portal: on phones, show "Documents GSM needs" before the application list */
@media (max-width: 960px) { .portal-cols > :last-child { order: -1; } }
@media (max-width: 600px) { h1 { font-size: 24px; } .hero h1 { font-size: 30px; } }

/* --- Reports & library (M3) --- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-top: 14px; }
.tabs a { padding: 8px 12px; border-radius: 8px 8px 0 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.tabs a[aria-current="page"] { color: var(--brand-ink); border: 1px solid var(--line); border-bottom-color: var(--surface); background: var(--surface); margin-bottom: -1px; font-weight: 600; }
a.chip { text-decoration: none; }
a.chip.on { background: var(--brand, #134947); color: #fff; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.tile b { font-size: 26px; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.report-grid { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.report-grid h2 { font-size: 16px; margin-top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.report-table tfoot th { background: #e8efee; }
.definitions { margin-top: 16px; padding-left: 18px; }
.card.empty { text-align: center; }
.report-filters > div { min-width: 140px; }
@media (max-width: 640px) { .report-grid { grid-template-columns: 1fr; } }
.card > h2:first-child { margin-top: 0; }
.report-table th:first-child, .report-table td:first-child { min-width: 190px; }
.bar-chart { display: block; }

/* --- NOVA welcome (after sign-in) and public splash --- */
.nova-welcome-page { margin: 0; min-height: 100vh; background: radial-gradient(circle at 30% 30%, #1d6a66 0%, #134947 45%, #0c3331 100%); color: #fff; }
.welcome-stage { min-height: calc(100vh - 40px); display: flex; align-items: center; justify-content: center; gap: 48px; padding: 32px 24px; flex-wrap: wrap; }

.welcome-text { max-width: 560px; animation: nova-fade 900ms ease 250ms both; }
.welcome-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: #d9c49d; margin: 0 0 10px; }
.welcome-text h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.15; margin: 0 0 20px; color: #fff; }
.welcome-text h1 span { font-weight: 400; color: #e8efee; }
.welcome-text h1 b { color: #d9c49d; }
.welcome-text h1 { margin-bottom: 10px; }
.welcome-tagline { font-size: clamp(17px, 2vw, 20px); color: #d9c49d; margin: 0 0 20px; font-weight: 600; }
.welcome-quote { margin: 0 0 18px; padding: 14px 18px; border-left: 3px solid #b08d57; background: rgba(255,255,255,.07); border-radius: 0 10px 10px 0; animation: nova-fade 900ms ease 900ms both; }
.welcome-quote p { margin: 0 0 6px; font-size: 18px; font-style: italic; }
.welcome-quote cite { display: block; font-style: normal; font-size: 13px; color: #d9c49d; }
.welcome-glance { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; animation: nova-fade 900ms ease 1300ms both; }
.welcome-glance li { background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.welcome-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.welcome-progress { width: 160px; height: 4px; background: rgba(255,255,255,.2); border-radius: 4px; overflow: hidden; }
.welcome-progress span { display: block; height: 100%; background: #b08d57; transform-origin: left; animation: nova-progress var(--welcome-seconds, 7s) linear both; }
.nova-splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; text-align: center; color: #fff; padding: 24px;
  background: radial-gradient(circle at 50% 35%, #1d6a66 0%, #134947 50%, #0c3331 100%);
  animation: nova-splash-out 500ms ease 5s forwards; }
.nova-splash.is-gone { animation: nova-splash-out 400ms ease forwards; }
.splash-inner { max-width: 560px; animation: nova-fade 800ms ease both; }
.splash-inner .nova-greeter { margin: 0 auto 4px; }
.nova-splash h1 { font-size: clamp(30px, 5vw, 48px); margin: 6px 0 6px; color: #fff; }
.nova-splash h1 b { color: #d9c49d; }
.splash-tag { font-size: clamp(18px, 2.4vw, 22px); margin: 0 0 10px; color: #e8efee; }
.splash-sub { margin: 0 auto 22px; max-width: 460px; color: #cfe0de; }
/* NOVA greeter: rises in, bows (about 1 s in), then floats gently while the speech bubble types the greeting. */
.nova-greeter { position: relative; display: inline-block; padding-top: 58px; }
.nova-figure { perspective: 700px; animation: nova-rise 900ms cubic-bezier(.2,.8,.2,1) both; }
.nova-bow { transform-origin: 50% 92%; animation: nova-bow 1300ms cubic-bezier(.45,0,.25,1) 950ms both, nova-float 5s ease-in-out 2.4s infinite; }
.greeter-portrait { display: block; width: min(var(--nova-size, 280px), 60vw); height: auto; filter: drop-shadow(0 0 16px rgba(255,222,140,.35)) drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.splash-inner .greeter-portrait { width: min(240px, 52vw); }
.nova-floor { width: 55%; height: 14px; margin: -10px auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.35), transparent); animation: nova-floor 1300ms cubic-bezier(.45,0,.25,1) 950ms both; }
.nova-say { position: absolute; top: 0; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; color: #134947; font-weight: 700; font-size: 15px;
  padding: 9px 16px; border-radius: 16px; box-shadow: 0 8px 22px rgba(0,0,0,.25); animation: nova-pop 450ms cubic-bezier(.2,1.4,.4,1) 1400ms both; z-index: 2; }
.nova-say::after { content: ""; position: absolute; left: calc(50% - 9px); bottom: -8px; border: 9px solid transparent; border-top-color: #fff; border-bottom: 0; }
.nova-say-text.is-typing::after { content: "▍"; color: #b08d57; margin-left: 1px; animation: nova-blink 700ms steps(1) infinite; }
/* NOVA's starlight: a nova is a star that suddenly blazes brighter. Burst on arrival, then a soft
   pulsing golden halo, slowly turning rays and twinkling stars. All decorative, behind NOVA. */
.nova-figure { position: relative; }
.nova-bow { position: relative; z-index: 1; }
.nova-light { position: absolute; inset: -18%; pointer-events: none; }
.nova-light > span { position: absolute; inset: 0; border-radius: 50%; }
.nova-burst { background: radial-gradient(circle, rgba(255,252,235,1) 0%, rgba(255,230,160,.8) 22%, rgba(217,196,157,0) 62%); mix-blend-mode: screen;
  animation: nova-burst 1300ms ease-out 250ms both; }
.nova-halo { background: radial-gradient(circle, rgba(255,222,140,.42) 0%, rgba(217,196,157,.18) 38%, rgba(217,196,157,0) 66%);
  animation: nova-fade-in 900ms ease 500ms both, nova-halo 3.2s ease-in-out 1.4s infinite; }
.nova-rays { background: repeating-conic-gradient(from 0deg, rgba(255,236,180,.16) 0deg 6deg, transparent 6deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%);
  animation: nova-fade-in 1200ms ease 700ms both, nova-spin 40s linear infinite; }
.nova-light .spark { position: absolute; left: var(--x); top: var(--y); width: calc(var(--s) * 1.7); height: calc(var(--s) * 1.7); background: #fffaf0;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px rgba(255,214,110,1)); opacity: 0; animation: nova-twinkle 3s ease-in-out var(--d) infinite; }
@keyframes nova-burst { 0% { opacity: 0; transform: scale(.1); } 22% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(2); } }
@keyframes nova-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nova-halo { 0%, 100% { transform: scale(.94); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes nova-spin { to { transform: rotate(360deg); } }
@keyframes nova-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 20%, 30% { opacity: 1; transform: scale(1) rotate(45deg); } 50% { opacity: 0; transform: scale(.4) rotate(90deg); } }
@keyframes nova-bow { 0% { transform: none; } 35%, 55% { transform: translateY(16px) rotateX(-24deg) scaleY(.9); } 100% { transform: none; } }
@keyframes nova-floor { 0%, 100% { transform: scaleX(1); opacity: 1; } 35%, 55% { transform: scaleX(1.12); opacity: .8; } }
@keyframes nova-pop { from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.6); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes nova-blink { 50% { opacity: 0; } }
@keyframes nova-rise { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes nova-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes nova-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes nova-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nova-splash-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) {
  .nova-figure, .nova-bow, .nova-floor, .nova-say, .nova-light *, .welcome-text, .welcome-quote, .welcome-glance, .splash-inner { animation: none; }
  .nova-splash { animation-duration: 1ms; animation-delay: 4s; }
  .nova-burst, .nova-light .spark { display: none; }
}

/* --- Application pack (D-059) --- */
.pack { margin-top: 12px; border-left: 4px solid var(--accent, #b08d57); }
.pack-list { list-style: none; padding: 0; margin: 8px 0; font-size: 14px; }
.pack-list li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; border-bottom: 1px solid var(--line, #e5e7eb); }
.pack-list li label { display: block; cursor: pointer; }
.pack-list li input[type=checkbox] { margin-right: 6px; }
.pack-icon { width: 18px; flex: none; font-weight: 700; color: var(--muted); }
.pack-ok .pack-icon { color: var(--ok); }
.pack-correction .pack-icon, .pack-missing .pack-icon { color: var(--warn); }
.pack-list li.flagged { background: #fff4e0; border-radius: 6px; padding-left: 6px; }
.warn-text { color: var(--warn); }
.d-block { display: block; }
.pack textarea { width: 100%; }
tr.overdue td { background: #fff8ec; }

/* NOVA Journeys narrator (Travel) — portrait is decorative; the status is always written out */
.journey-narrator { display: flex; gap: 14px; align-items: center; background: #f4f8fb; border: 1px solid #dbe6ee;
  border-radius: 14px; padding: 10px 14px; margin: 12px 0; }
.journey-narrator .journey-pose { flex: none; object-fit: contain; }
.journey-line { margin: 0 0 4px; font-size: 1.02rem; }
.journey-state { margin: 0; }
@media (max-width: 520px) { .journey-narrator { flex-direction: column; text-align: center; } }
.journey-grid { width: 100%; border-collapse: collapse; }
.journey-grid th, .journey-grid td { border-top: 1px solid #e3e9ee; padding: 10px 8px; vertical-align: top; text-align: left; }
.journey-grid td img { margin: 0 auto 6px; max-width: none; }
.journey-grid td:has(img) { min-width: 118px; }
@media (max-width: 760px) { .journey-grid thead { display: none; } .journey-grid td, .journey-grid th { display: block; } }

/* ---------- NOVA Journeys (public travel pages) ---------- */
body.journeys .top { background: #0c3331; }
.jr-hero { position: relative; overflow: hidden; color: #fff; min-height: 420px; display: flex; align-items: stretch; }
.jr-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.jr-hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding-top: 36px; padding-bottom: 28px; }
.jr-copy { max-width: 560px; }
.jr-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: #e8d2a6; margin: 0 0 10px; font-weight: 700; }
.jr-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.1; margin: 0 0 14px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.jr-slogan { font-size: clamp(17px, 2.2vw, 21px); color: #f3dcae; margin: 0 0 22px; font-weight: 600; }
.jr-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.ghost.light { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.jr-nova { flex: none; align-self: flex-end; filter: drop-shadow(0 12px 18px rgba(0,0,0,.35)); }
.jr-nova img { width: min(320px, 34vw); height: auto; }
.jr-plane { animation: jr-fly 9s ease-in-out infinite alternate; }
@keyframes jr-fly { from { transform: translate(690px, 262px) rotate(-52deg); } to { transform: translate(736px, 204px) rotate(-42deg); } }
@media (prefers-reduced-motion: reduce) { .jr-plane { animation: none; } }
@media (max-width: 720px) {
  .jr-hero-inner { flex-direction: column; align-items: flex-start; }
  .jr-nova { align-self: center; } .jr-nova img { width: 200px; }
}
.jr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.jr-card { display: flex; gap: 14px; align-items: flex-start; }
.jr-card img { flex: none; object-fit: contain; }
.jr-card p { margin: 6px 0 10px; }
.jr-deps { display: grid; gap: 10px; margin-bottom: 12px; }
.jr-dep { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.jr-dep:hover { border-color: var(--gold); }
.jr-date { text-align: center; background: var(--teal-light); border-radius: 8px; padding: 6px 4px; font-size: 13px; line-height: 1.2; color: var(--brand-ink); }
.jr-date b { display: block; font-size: 26px; }
.jr-from { text-align: right; font-weight: 800; color: var(--brand-ink); font-size: 18px; }
.jr-from .small { font-weight: 500; display: block; }
@media (max-width: 560px) { .jr-dep { grid-template-columns: 64px 1fr; } .jr-from { grid-column: 1 / -1; text-align: left; } }
.jr-scroll { overflow-x: auto; }
.jr-table { width: 100%; border-collapse: collapse; }
.jr-table th, .jr-table td { padding: 8px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.jr-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.jr-prices { min-width: 720px; }
.jr-how ol { margin: 0; padding-left: 20px; } .jr-how li { margin-bottom: 6px; }
@media (max-width: 520px) { .jr-table th, .jr-table td { padding: 6px 5px; font-size: 14px; } }
.jr-flights-m, .jr-options-m { display: none; }
.jr-flights-m { list-style: none; padding: 0; margin: 0 0 8px; } .jr-flights-m li { padding: 6px 0; border-top: 1px solid var(--line); }
.jr-opt { border-top: 1px solid var(--line); padding: 12px 0; } .jr-opt h3 { margin: 0 0 4px; } .jr-opt p { margin: 0 0 8px; }
.jr-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 0 0 10px; }
.jr-chips div { background: var(--teal-light); border-radius: 8px; padding: 6px 8px; }
.jr-chips dt { font-size: 13px; color: var(--muted); } .jr-chips dd { margin: 0; font-weight: 800; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .jr-wide { display: none; } .jr-flights-m, .jr-options-m { display: block; } }

/* ---------- NOVA Journeys assistant ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.na { position: fixed; right: 16px; bottom: 16px; z-index: 50; font-size: 15px; }
.na-launch { display: flex; align-items: center; gap: 6px; background: #0c3331; color: #fff; border: 2px solid var(--gold);
  border-radius: 999px; padding: 4px 16px 4px 4px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.na-launch img { border-radius: 50%; background: #fff; }
.na-panel { position: absolute; right: 0; bottom: 72px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px));
  background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden; }
.na-panel[hidden] { display: none; }
.na-head { display: flex; align-items: center; gap: 10px; background: #0c3331; color: #fff; padding: 8px 12px; }
.na-head img { background: #fff; border-radius: 50%; }
.na-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; } .na-head span { font-size: 12px; opacity: .85; }
.na-close { background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }
.na-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f6f7f9; }
.na-msg { max-width: 88%; padding: 8px 12px; border-radius: 14px; line-height: 1.4; }
.na-msg.nova { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.na-msg.visitor { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.na-typing { color: var(--muted); font-style: italic; }
.na-src { font-size: 12px; color: var(--muted); align-self: flex-start; max-width: 88%; }
.na-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.na-chips button, .na-chips a { border: 1px solid var(--brand); background: #fff; color: var(--brand); border-radius: 999px;
  padding: 5px 10px; font-size: 13px; cursor: pointer; text-decoration: none; font-weight: 600; }
.na-wa { background: #1f8a4c !important; border-color: #1f8a4c !important; color: #fff !important; }
.na-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.na-form input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
.na-foot { padding: 6px 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.na-foot .na-wa { text-align: center; border-radius: 8px; padding: 7px; font-weight: 700; text-decoration: none; }
.na-details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 6px; }
.na-details label { display: grid; gap: 2px; font-size: 13px; } .na-details input:not([type=checkbox]) { border: 1px solid var(--line); border-radius: 6px; padding: 6px; font: inherit; }
.na-details .check { display: flex; gap: 6px; align-items: flex-start; }
@media (max-width: 520px) { .na-launch img { width: 40px; height: 40px; } .na-launch { padding: 4px 12px 4px 4px; } }
@media print { .na { display: none; } }
.jr-alert { border-color: #f0c2bd; background: #fdf2f1; } .jr-alert h2 { margin-top: 0; color: var(--danger); }
.jr-note { background: #fff8ea; border-color: #f0d199; }
.jr-build fieldset { margin: 0 0 14px; } .jr-build legend { font-weight: 800; color: var(--brand-ink); padding: 0 6px; font-size: 18px; }
.jr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; }
.jr-wide-field { grid-column: 1 / -1; }
.jr-build ul:not(.jr-airline-notes) { list-style: none; padding: 0; margin: 4px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 12px; }
.jr-build ul label { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.jr-airline-notes { margin: 4px 0 0; padding-left: 18px; }
.jr-build input[type=date] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.jr-group-label { font-weight: 600; margin: 0 0 6px; }
.jr-cards-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.jr-opt-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; cursor: pointer; font-weight: 400; }
.jr-opt-card:has(input:checked) { border-color: var(--brand); background: var(--teal-light); box-shadow: 0 0 0 1px var(--brand); }
.jr-opt-card input { margin-top: 3px; flex: none; }
.jr-opt-card > span { display: flex; flex-direction: column; gap: 2px; }
.jr-tbc { color: var(--warn); }

/* NOVA Journeys staff tables: stack each enquiry as a card on phones (T2) */
@media (max-width: 700px) {
  .jr-staff-table thead { display: none; }
  .jr-staff-table, .jr-staff-table tbody, .jr-staff-table tr, .jr-staff-table td { display: block; width: 100%; }
  .jr-staff-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .jr-staff-table td { border: 0; padding: 4px 12px; }
  .jr-staff-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  .jr-handout select { flex: 1; min-width: 0; }
}

/* Official sources (D-064) */
.diff { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--surface); }
.diff > div { white-space: pre-wrap; padding: 1px 4px; }
.diff-add { background: #e7f6ec; color: #135c2c; }
.diff-remove { background: #fdecec; color: #8a1f1f; text-decoration: line-through; }
.diff-gap { color: var(--muted); }
.page-copy { max-height: 480px; overflow: auto; }
tr.muted td { color: var(--muted); }
.notice-update { border-left: 4px solid var(--gold); background: #fff8ec; margin-bottom: 16px; }
.proposal { margin-bottom: 12px; }
.proposal blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--bg, #f6f7f9); white-space: pre-wrap; }
.proposal-values { display: grid; gap: 4px; margin-top: 8px; }
.ai-status { margin-bottom: 8px; }
.fact-quote { margin: 4px 0 0; padding: 4px 8px; border-left: 3px solid var(--line); color: var(--muted); font-style: italic; }
a.dest-card { display: block; text-decoration: none; color: inherit; }
a.dest-card:hover { border-color: var(--gold); }

/* T-032: social media Umrah page */
.offer-options { display: grid; gap: 10px; }
.offer-option { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 400; margin: 0; }
.offer-option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--teal-light); }
.offer-option input { margin-top: 4px; flex: none; }
.offer-option > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.offer-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin-top: 6px; }
.offer-prices > span { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; display: flex; flex-direction: column; }

/* GSM Travel & Tours badge in the travel header (T-033) */
.brand img.gsm-travel-logo { width: 68px !important; height: 68px !important; max-width: none; margin: -10px 4px -10px 0; flex: none;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.6)); }
body.journeys .brand b { letter-spacing: .04em; font-size: 22px; }
.offers-hero { display: flex; gap: 18px; align-items: center; }
.offers-hero img.gsm-travel-badge { width: 120px; height: 120px; flex: none; }
@media (max-width: 520px) {
  .brand img.gsm-travel-logo { width: 52px !important; height: 52px !important; margin: -6px 2px -6px 0; }
  body.journeys .brand b { font-size: 17px; } body.journeys .brand span { display: none; }
  .offers-hero { flex-direction: column; align-items: flex-start; } .offers-hero img.gsm-travel-badge { width: 96px; height: 96px; }
}
