/* ==========================================================================
   BAP Online — Kanim Kelas II TPI Kulon Progo
   Palet: Deep Ocean  (#E0F7FF → #7FD4F5 → #2A8FD8 → #1446A0 → #0A1A4A, 180°)
   ========================================================================== */
:root {
  --ocean-0: #e0f7ff;
  --ocean-25: #7fd4f5;
  --ocean-50: #2a8fd8;
  --ocean-75: #1446a0;
  --ocean-100: #0a1a4a;
  --gradient-deep-ocean: linear-gradient(180deg, #e0f7ff 0%, #7fd4f5 25%, #2a8fd8 50%, #1446a0 75%, #0a1a4a 100%);
  --grad-primary: linear-gradient(135deg, #2a8fd8 0%, #1446a0 100%);
  --grad-dark: linear-gradient(160deg, #1446a0 0%, #0a1a4a 100%);
  --grad-soft: linear-gradient(180deg, #e0f7ff 0%, #f6fbfe 100%);

  --bg: #f3f8fc;
  --surface: #ffffff;
  --border: #d8e6f2;
  --border-strong: #b9d2e8;
  --text: #0a1a4a;
  --text-2: #31446e;
  --muted: #61739a;
  --focus: #2a8fd8;

  --green: #0f8a5f;  --green-bg: #e3f6ee;
  --amber: #a15c00;  --amber-bg: #fff3dc;
  --red: #c2362b;    --red-bg: #fde8e6;
  --teal: #0a7c86;   --teal-bg: #def5f5;
  --sky: #0b6aa8;    --sky-bg: #e0f7ff;
  --blue: #1446a0;   --blue-bg: #e3ecfb;
  --gray: #55627d;   --gray-bg: #edf1f6;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 26, 74, 0.06), 0 4px 16px rgba(10, 26, 74, 0.06);
  --shadow-lg: 0 10px 40px rgba(10, 26, 74, 0.18);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
svg, .spinner { flex-shrink: 0; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ocean-75); }
h1, h2, h3, h4 { margin: 0 0 0.4em; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 0.8em; }
small, .small { font-size: 0.86rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.center { text-align: center; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 20px; }
.grow { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid rgba(42, 143, 216, 0.45); outline-offset: 2px; border-radius: 6px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--grad-dark);
  color: #fff;
  box-shadow: 0 2px 12px rgba(10, 26, 74, 0.25);
}
.topbar-inner { max-width: 880px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: linear-gradient(180deg, #7fd4f5, #2a8fd8);
  display: grid; place-items: center; color: var(--ocean-100);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b { font-size: 0.98rem; }
.brand-text span { font-size: 0.75rem; color: var(--ocean-25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.icon-btn {
  position: relative; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.22); }
.badge-dot {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #ff6b5a; color: #fff; font-size: 0.72rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--ocean-100);
}

/* ---------- layout ---------- */
.container { max-width: 880px; margin: 0 auto; padding: 20px 16px 64px; }
.page-head { margin: 6px 0 18px; }
.page-head h1 { margin-bottom: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 0.92rem; margin-bottom: 10px; }
.back-link:hover { color: var(--text); }

/* ---------- card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-title h2, .card-title h3 { margin: 0; }
.card.flat { box-shadow: none; }
.card.tinted { background: var(--grad-soft); }
.card-link { display: block; text-decoration: none; color: inherit; transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s; }
.card-link:hover { border-color: var(--border-strong); box-shadow: 0 6px 22px rgba(10, 26, 74, 0.1); transform: translateY(-1px); }
.divider { height: 1px; background: var(--border); margin: 16px 0; border: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: #fff; color: var(--text);
  font: inherit; font-weight: 600; font-size: 0.96rem; cursor: pointer; text-decoration: none;
  transition: filter 0.12s, background 0.12s, transform 0.06s;
}
.btn:hover { background: #f4f9fd; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(20, 70, 160, 0.3); }
.btn-primary:hover { background: var(--grad-primary); filter: brightness(1.08); }
.btn-dark { background: var(--ocean-100); color: #fff; border-color: transparent; }
.btn-dark:hover { background: var(--ocean-75); }
.btn-success { background: var(--green); color: #fff; border-color: transparent; }
.btn-success:hover { background: #0c7550; }
.btn-warn { background: #fff; color: var(--amber); border-color: #f0c98a; }
.btn-warn:hover { background: var(--amber-bg); }
.btn-danger { background: #fff; color: var(--red); border-color: #f2b8b2; }
.btn-danger:hover { background: var(--red-bg); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ocean-75); }
.btn-ghost:hover { background: var(--blue-bg); }
.btn-lg { min-height: 54px; font-size: 1.05rem; padding: 12px 22px; border-radius: 14px; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 0.86rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #c9d3df; }
.btn-wa { background: #128c4a; color: #fff; border-color: transparent; }
.btn-wa:hover { background: #0f7a40; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > label, .label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 6px; color: var(--text); }
.field .req { color: var(--red); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; color: var(--text);
  background: #fff; border: 1.5px solid var(--border-strong); border-radius: 11px;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ocean-50); box-shadow: 0 0 0 4px rgba(42, 143, 216, 0.15); }
.input.invalid { border-color: var(--red); }
.hint { font-size: 0.84rem; color: var(--muted); margin-top: 5px; }
.error-text { font-size: 0.86rem; color: var(--red); margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.input-otp { font-size: 1.6rem; letter-spacing: 0.5em; text-align: center; font-family: var(--mono); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ocean-75); flex: none; }

/* ---------- choice tiles ---------- */
.tiles { display: grid; gap: 12px; }
.tile {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%;
  transition: border-color 0.12s, background 0.12s;
}
.tile:hover { border-color: var(--ocean-25); }
.tile.selected { border-color: var(--ocean-50); background: var(--ocean-0); box-shadow: 0 0 0 3px rgba(42, 143, 216, 0.15); }
.tile-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--blue-bg); color: var(--ocean-75); }
.tile.selected .tile-icon { background: var(--grad-primary); color: #fff; }
.tile b { display: block; font-size: 1.02rem; margin-bottom: 2px; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; white-space: nowrap; line-height: 1.4;
}
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.plain::before { display: none; }
.tone-gray { color: var(--gray); background: var(--gray-bg); }
.tone-sky { color: var(--sky); background: var(--sky-bg); }
.tone-blue { color: var(--blue); background: var(--blue-bg); }
.tone-amber { color: var(--amber); background: var(--amber-bg); }
.tone-teal { color: var(--teal); background: var(--teal-bg); }
.tone-navy { color: #fff; background: var(--ocean-75); }
.tone-green { color: var(--green); background: var(--green-bg); }
.tone-red { color: var(--red); background: var(--red-bg); }

/* ---------- alerts ---------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid; align-items: flex-start; }
.alert .ic { flex: none; margin-top: 1px; }
.alert p:last-child { margin-bottom: 0; }
.alert-info { background: var(--ocean-0); border-color: #b5e4f7; color: #0b4d7a; }
.alert-warn { background: var(--amber-bg); border-color: #f2d49b; color: #6f4100; }
.alert-ok { background: var(--green-bg); border-color: #a9e0c8; color: #0a5c40; }
.alert-err { background: var(--red-bg); border-color: #f4b9b3; color: #8c241c; }

/* ---------- hero (landing) ---------- */
.hero {
  background: var(--gradient-deep-ocean);
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
}
.hero-inner { width: 100%; max-width: 1040px; margin: 0 auto; padding: 22px 20px 40px; display: flex; flex-direction: column; flex: 1; }
.hero-brand { display: flex; align-items: center; gap: 12px; color: var(--ocean-100); }
.hero-brand .brand-mark { width: 44px; height: 44px; background: var(--ocean-100); color: var(--ocean-25); }
.hero-brand b { display: block; font-size: 1rem; }
.hero-brand span { font-size: 0.82rem; color: var(--ocean-75); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; flex: 1; padding: 36px 0 0; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); color: var(--ocean-100); letter-spacing: -0.025em; margin-bottom: 14px; }
.hero .lead { font-size: 1.12rem; color: #0d2d6b; max-width: 30em; }
.hero-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; counter-reset: s; }
.hero-steps li {
  counter-increment: s; display: flex; gap: 12px; align-items: center;
  background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 10px 14px; border-radius: 12px; color: var(--ocean-100); font-weight: 600; max-width: 26em;
}
.hero-steps li::before {
  content: counter(s); width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: var(--ocean-100); color: #fff; display: grid; place-items: center; font-size: 0.9rem;
}
.login-card { background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); }
.login-card h2 { margin-bottom: 4px; }
.secure-note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--muted); margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.secure-note svg { flex: none; color: var(--green); margin-top: 1px; }
.hero-foot { color: #cfe6fb; font-size: 0.85rem; text-align: center; padding-top: 30px; }
.hero-foot a { color: #fff; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.84rem; margin: 14px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---------- stepper ---------- */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 2px; }
.step { text-align: center; position: relative; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.step .dot {
  width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gray-bg); color: var(--muted); font-weight: 700; position: relative; z-index: 1; border: 2px solid #fff;
}
.step::after { content: ''; position: absolute; top: 17px; left: calc(50% + 17px); right: calc(-50% + 17px); height: 3px; background: var(--gray-bg); border-radius: 2px; }
.step:last-child::after { display: none; }
.step.done .dot { background: var(--ocean-50); color: #fff; }
.step.done::after { background: var(--ocean-50); }
.step.current .dot { background: var(--grad-primary); color: #fff; box-shadow: 0 0 0 5px rgba(42, 143, 216, 0.2); }
.step.current { color: var(--text); }
.step.warn .dot { background: #f0a630; color: #fff; box-shadow: 0 0 0 5px rgba(240, 166, 48, 0.2); }

.wizard-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.wizard-progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--border); }
.wizard-progress span.on { background: var(--grad-primary); }

/* ---------- application card ---------- */
.app-card { display: flex; gap: 14px; align-items: center; }
.app-card .kode { font-family: var(--mono); font-weight: 700; font-size: 1.02rem; }
.app-card .meta { font-size: 0.88rem; color: var(--muted); }
.app-card .action { font-size: 0.88rem; font-weight: 600; color: var(--ocean-75); margin-top: 4px; }
.app-card .action.warn { color: var(--amber); }
.kode-big { font-family: var(--mono); font-size: 1.6rem; font-weight: 800; letter-spacing: 0.04em; color: var(--ocean-100); }

/* ---------- uploads ---------- */
.upload-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.stack > *, .tiles > * { min-width: 0; }
.upload {
  display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px;
  border: 1.5px dashed var(--border-strong); background: #fbfdff;
}
.upload.has { border-style: solid; border-color: #a9e0c8; background: #f4fcf8; }
.upload.need { border-color: #f0c98a; background: #fffaf0; }
.upload .u-icon { width: 42px; height: 42px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--blue-bg); color: var(--ocean-75); }
.upload.has .u-icon { background: var(--green-bg); color: var(--green); }
.upload .u-body { flex: 1; min-width: 0; }
.upload .u-body b { display: block; font-size: 0.96rem; }
.upload .u-body .hint { margin-top: 2px; }
.upload .u-file { font-size: 0.84rem; color: var(--green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload input[type=file] { display: none; }
.thumb { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--border); }

.progress { height: 10px; border-radius: 6px; background: var(--border); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--grad-primary); transition: width 0.2s; }

/* ---------- slots ---------- */
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.date-chip {
  flex: none; scroll-snap-align: start; width: 72px; padding: 10px 6px; border-radius: 14px; text-align: center;
  border: 1.5px solid var(--border); background: #fff; cursor: pointer; font: inherit; color: var(--text);
}
.date-chip .dw { font-size: 0.75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.date-chip .dd { font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.date-chip .dm { font-size: 0.75rem; color: var(--muted); }
.date-chip.full { opacity: 0.45; }
.date-chip.selected { background: var(--grad-primary); border-color: transparent; color: #fff; }
.date-chip.selected .dw, .date-chip.selected .dm { color: var(--ocean-0); }
.slot-list { display: grid; gap: 10px; margin-top: 8px; }
.slot {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--border); background: #fff; cursor: pointer; font: inherit; color: inherit; width: 100%; text-align: left;
}
.slot:hover:not([disabled]) { border-color: var(--ocean-25); }
.slot.selected { border-color: var(--ocean-50); background: var(--ocean-0); box-shadow: 0 0 0 3px rgba(42, 143, 216, 0.15); }
.slot[disabled] { opacity: 0.5; cursor: not-allowed; }
.slot b { font-size: 1.05rem; }
.slot .left { font-size: 0.86rem; font-weight: 600; color: var(--green); }
.slot .left.low { color: var(--amber); }
.slot .left.none { color: var(--red); }

/* ---------- ticket ---------- */
.ticket { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.ticket-top { background: var(--gradient-deep-ocean); padding: 22px 22px 70px; color: var(--ocean-100); }
.ticket-top .label { color: var(--ocean-75); }
.ticket-body { margin: -50px 14px 14px; background: #fff; border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.ticket-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row svg { flex: none; color: var(--ocean-50); margin-top: 2px; }
.ticket-row .k { font-size: 0.8rem; color: var(--muted); }
.ticket-row .v { font-weight: 700; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 26px; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: -6px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ocean-25); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--ocean-25); }
.timeline li:last-child::after { background: var(--ocean-50); box-shadow: 0 0 0 2px var(--ocean-50); }
.timeline .t { font-size: 0.8rem; color: var(--muted); }

/* ---------- notifications ---------- */
.notif { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.notif:last-child { border-bottom: 0; }
.notif .n-ic { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--blue-bg); color: var(--ocean-75); }
.notif.unread .n-ic { background: var(--grad-primary); color: #fff; }
.notif b { display: block; }
.notif p { margin: 2px 0 4px; color: var(--text-2); font-size: 0.94rem; }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .e-ic { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; background: var(--ocean-0); color: var(--ocean-50); }

/* ---------- toast & modal ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast {
  background: var(--ocean-100); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: 0.94rem; display: flex; gap: 10px; align-items: flex-start; animation: up 0.2s ease-out;
}
.toast.err { background: #8c241c; }
.toast.ok { background: #0a5c40; }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
.modal-back { position: fixed; inset: 0; background: rgba(10, 26, 74, 0.5); z-index: 90; display: grid; place-items: center; padding: 16px; animation: fade 0.15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); }
.modal.wide { width: min(760px, 100%); }
.modal-head { padding: 18px 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 16px 20px; }
.modal-foot { padding: 0 20px 20px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.x-btn { border: 0; background: var(--gray-bg); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; color: var(--text); display: grid; place-items: center; }

/* WA simulation bubble */
.wa-sim { background: #e7f8ee; border: 1px solid #b8e6cb; border-radius: 14px; padding: 12px 14px; font-size: 0.92rem; color: #0a4d2c; }
.wa-sim .wa-h { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 4px; font-size: 0.82rem; }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(42, 143, 216, 0.25); border-top-color: var(--ocean-50); animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle; }
.btn .spinner { width: 18px; height: 18px; border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-page { display: grid; place-items: center; min-height: 50vh; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 0.94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }

.demo-ribbon {
  background: repeating-linear-gradient(135deg, #fff3dc, #fff3dc 12px, #ffe9bf 12px, #ffe9bf 24px);
  color: #6f4100; font-size: 0.8rem; text-align: center; padding: 5px 10px; font-weight: 600;
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dd { margin-bottom: 8px; }
  h1 { font-size: 1.5rem; }
  .card { padding: 16px; }
}
