/* =============================================================
   Sabah Tourism Board — Research Portal
   Design System  |  "Feel Sabah, North Borneo" inspired
   Palette: Ocean teal / Sunset orange / Rainforest green
   ============================================================= */

:root {
  /* Brand palette */
  --ocean:        #0B7FAB;   /* sea & sky */
  --ocean-deep:   #034C6B;   /* deep sea */
  --ocean-soft:   #E6F4F9;
  --sunset:       #F47B20;   /* Kota Kinabalu sunset */
  --coral:        #FF5A5F;
  --forest:       #1E9E6A;   /* rainforest */
  --gold:         #F6B73C;
  --sand:         #FBF6EE;
  --charcoal:     #16242C;
  --slate:        #4A5C66;
  --muted:        #8A9AA3;
  --line:         #E7EDF0;
  --white:        #ffffff;

  /* Chart series colors */
  --c1: #0B7FAB; --c2: #F47B20; --c3: #1E9E6A;
  --c4: #FF5A5F; --c5: #F6B73C; --c6: #6C5CE7; --c7: #00B4D8;

  /* Tokens */
  --radius:   18px;
  --radius-sm:12px;
  --radius-lg:26px;
  --shadow-sm: 0 2px 8px rgba(3,76,107,.06);
  --shadow:    0 12px 34px rgba(3,76,107,.10);
  --shadow-lg: 0 24px 60px rgba(3,76,107,.18);
  --grad: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-deep) 60%);
  --grad-warm: linear-gradient(135deg, var(--sunset), var(--coral));
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-head: 'Poppins', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--charcoal); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: .95rem; }
::selection { background: var(--sunset); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: min(1240px, 92vw); margin-inline: auto; }
.container--wide { width: min(1760px, 95vw); margin-inline: auto; }
.flex { display: flex; }
.between { justify-content: space-between; align-items: center; }
.center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: .6rem; } .gap { gap: 1rem; } .gap-lg { gap: 1.6rem; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  background: var(--grad); color: #fff; transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
  box-shadow: 0 8px 20px rgba(11,127,171,.28); position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(11,127,171,.36); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--warm { background: var(--grad-warm); box-shadow: 0 8px 20px rgba(244,123,32,.32); }
.btn--ghost { background: #fff; color: var(--ocean-deep); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.btn--ghost:hover { color: var(--ocean); }
.btn--sm { padding: .5rem .9rem; font-size: .82rem; }
.btn--block { width: 100%; }
.btn--danger { background: linear-gradient(135deg,#ff5a5f,#e02e33); box-shadow: 0 8px 20px rgba(224,46,51,.3); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__txt b { font-family: var(--font-head); font-size: 1.02rem; display: block; letter-spacing: -.2px; }
.brand__txt span { font-size: .72rem; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { font-size: .9rem; font-weight: 500; color: var(--slate); transition: color .2s; }
.nav__links a:hover, .nav__links a.active { color: var(--ocean); }
.nav__burger { display: none; font-size: 1.5rem; color: var(--ocean-deep); }

/* ---------- Logo (inline SVG sized via class) ---------- */
.logo-sun { animation: spin 28s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(3rem,8vw,6rem) 0 clamp(4rem,9vw,7rem); }
.hero::before {
  content:""; position: absolute; inset: 0; z-index: -2;
  background: var(--grad);
}
.hero::after {
  content:""; position: absolute; inset: 0; z-index: -1; opacity:.5;
  background:
    radial-gradient(620px 320px at 12% 0%, rgba(244,123,32,.55), transparent 60%),
    radial-gradient(520px 360px at 92% 30%, rgba(30,158,106,.45), transparent 55%);
  animation: floatbg 16s ease-in-out infinite alternate;
}
@keyframes floatbg { to { transform: translateY(-22px) scale(1.05); } }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); color: #fff; max-width: 16ch; }
.hero p { max-width: 56ch; margin-top: 1rem; color: rgba(255,255,255,.9); font-size: 1.05rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.2rem;
}
.hero__cta { margin-top: 2rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: -1; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); }
/* min(560px,100%) keeps big cards on desktop but never overflows narrow screens */
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(560px, 100%), 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Stat card */
.stat { padding: 1.4rem 1.5rem; position: relative; overflow: hidden; }
.stat__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; margin-bottom: .9rem; font-size: 1.2rem; }
.stat__val { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; letter-spacing: -1px; }
.stat__label { color: var(--muted); font-size: .85rem; }
.stat__trend { font-size: .78rem; font-weight: 600; margin-top: .4rem; display: inline-flex; gap: .25rem; }
.up { color: var(--forest); } .down { color: var(--coral); }

/* Content / research card */
.rcard { padding: 1.3rem; display: flex; flex-direction: column; gap: .9rem; }
.rcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: 999px;
}
.tag--finding { background: var(--ocean-soft); color: var(--ocean-deep); }
.tag--report  { background: #FFF1E6; color: #B45309; }
.rcard h3 { font-size: 1.08rem; }
.rcard__meta { font-size: .78rem; color: var(--muted); display: flex; gap: .8rem; flex-wrap: wrap; }
.rcard__desc { font-size: .9rem; color: var(--slate); }
.rcard__source { font-size: .8rem; color: var(--slate); line-height: 1.4; }
.rcard__source strong { color: var(--charcoal); font-weight: 600; }
.chart-cap { font-size: .72rem; text-align: right; letter-spacing: .3px; margin-top: -.3rem; }
.rcard__method { font-size: .82rem; border-top: 1px dashed var(--line); padding-top: .7rem; }
.rcard__method summary { cursor: pointer; color: var(--ocean); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: .35rem; }
.rcard__method summary::before { content: "▸"; transition: transform .2s var(--ease); display: inline-block; }
.rcard__method[open] summary::before { transform: rotate(90deg); }
.rcard__method summary::-webkit-details-marker { display: none; }
.rcard__method p { margin-top: .5rem; color: var(--muted); line-height: 1.5; animation: fade .3s var(--ease); }
.chart-box { width: 100%; height: 280px; position: relative; display: flex; flex-direction: column; }
.chart-box .stbchart { flex: 1; min-height: 0; }
.rcard__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-top: auto; }
.chart-switch { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 3px; gap: 2px; }
.chart-switch button {
  width: 30px; height: 28px; border-radius: 999px; color: var(--slate); display: grid; place-items: center;
  transition: background .2s, color .2s; font-size: .9rem;
}
.chart-switch button.active { background: #fff; color: var(--ocean); box-shadow: var(--shadow-sm); }
.dl-group { display: flex; gap: .5rem; }
.chip-dl {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600;
  padding: .42rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  transition: border-color .2s, color .2s, transform .2s;
}
.chip-dl:hover { transform: translateY(-2px); }
.chip-dl.pdf:hover { color: var(--coral); border-color: var(--coral); }
.chip-dl.csv:hover { color: var(--forest); border-color: var(--forest); }

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.field {
  display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: .55rem 1rem; box-shadow: var(--shadow-sm);
}
.field input, .field select { border: none; outline: none; background: transparent; min-width: 120px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-sm); }
.seg button { padding: .45rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--slate); transition: .2s; }
.seg button.active { background: var(--grad); color: #fff; }

/* ---------- Section heading ---------- */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.sec-head h2 { font-size: clamp(1.4rem,3vw,2rem); }
.sec-head p { color: var(--muted); font-size: .92rem; }
.eyebrow { color: var(--ocean); font-weight: 700; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-aside { position: relative; overflow: hidden; color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside::before { content:""; position:absolute; inset:0; z-index:-2; background: var(--grad); }
.auth-aside::after { content:""; position:absolute; inset:0; z-index:-1; opacity:.55;
  background: radial-gradient(500px 300px at 20% 10%, rgba(244,123,32,.6), transparent 60%),
              radial-gradient(460px 320px at 90% 80%, rgba(30,158,106,.5), transparent 55%);
  animation: floatbg 14s ease-in-out infinite alternate; }
.auth-aside h2 { color:#fff; font-size: 2rem; max-width: 18ch; }
.auth-aside ul { list-style: none; display: grid; gap: .8rem; margin-top: 1.4rem; }
.auth-aside li { display: flex; gap: .6rem; align-items: center; font-size: .95rem; color: rgba(255,255,255,.92); }
.auth-aside li::before { content:"✦"; color: var(--gold); }
.auth-main { display: grid; place-items: center; padding: 2rem; background: #fff; }
.auth-card { width: min(420px, 92vw); }
.auth-card h1 { font-size: 1.7rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.6rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--slate); margin-bottom: .35rem; }
.input {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(11,127,171,.12); }
.auth-tabs { display: flex; background: var(--sand); border-radius: 999px; padding: 4px; margin-bottom: 1.6rem; }
.auth-tabs button { flex: 1; padding: .6rem; border-radius: 999px; font-weight: 600; color: var(--slate); transition: .25s; }
.auth-tabs button.active { background: #fff; color: var(--ocean); box-shadow: var(--shadow-sm); }
.alt-line { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 1.2rem; }
.alt-line a { color: var(--ocean); font-weight: 600; }

/* Toast / alert */
.alert { padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 1rem; display: none; }
.alert.show { display: block; animation: pop .3s var(--ease); }
.alert--err { background: #FEECEC; color: #B91C1C; border: 1px solid #f6caca; }
.alert--ok  { background: #E7F8EF; color: #15803D; border: 1px solid #c4ecd5; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: .6rem; }
.toast {
  background: var(--charcoal); color: #fff; padding: .8rem 1.1rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-size: .88rem; display: flex; align-items: center; gap: .6rem;
  animation: slideIn .35s var(--ease); max-width: 320px;
}
.toast--ok { background: #16633f; } .toast--err { background: #93242b; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } }

/* ---------- Admin layout ---------- */
.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  background: linear-gradient(180deg, var(--ocean-deep), #02394f); color: #fff; padding: 1.5rem 1.1rem;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side .brand__txt b, .side .brand__txt span { color: #fff; }
.side__nav { display: grid; gap: .3rem; margin-top: 2rem; }
.side__nav a { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 12px; color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 500; transition: .2s; }
.side__nav a:hover, .side__nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.side__foot { margin-top: auto; font-size: .8rem; color: rgba(255,255,255,.6); }
.admin-main { padding: 1.6rem clamp(1rem,3vw,2.4rem); overflow-x: hidden; background: var(--sand); }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.5rem; }

/* Table */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
thead th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: .9rem 1rem; background: #fafcfd; border-bottom: 1px solid var(--line); }
tbody td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s; } tbody tr:hover { background: #fafcfd; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--slate); border: 1px solid var(--line); background: #fff; transition: .2s; }
.icon-btn:hover { color: var(--ocean); border-color: var(--ocean); }
.icon-btn.del:hover { color: var(--coral); border-color: var(--coral); }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(8,34,46,.5); backdrop-filter: blur(3px); z-index: 100; display: none; place-items: center; padding: 1rem; }
.modal-back.show { display: grid; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; width: min(640px, 96vw); max-height: 92vh; overflow-y: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.modal__body { padding: 1.5rem; }
.modal__foot { padding: 1.1rem 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: .7rem; position: sticky; bottom: 0; background: #fff; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Footer */
.footer { background: var(--charcoal); color: rgba(255,255,255,.72); padding: 2.4rem 0; margin-top: 4rem; font-size: .88rem; }
.footer a { color: rgba(255,255,255,.85); }
.footer__grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* ---------- Animations on load ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stagger > * { opacity: 0; transform: translateY(18px); animation: rise .55s var(--ease) forwards; }
.stagger > *:nth-child(1){animation-delay:.05s} .stagger > *:nth-child(2){animation-delay:.12s}
.stagger > *:nth-child(3){animation-delay:.19s} .stagger > *:nth-child(4){animation-delay:.26s}
.stagger > *:nth-child(5){animation-delay:.33s} .stagger > *:nth-child(6){animation-delay:.40s}
.stagger > *:nth-child(7){animation-delay:.47s} .stagger > *:nth-child(8){animation-delay:.54s}

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty svg { opacity: .5; margin-bottom: .8rem; }

.skeleton { background: linear-gradient(90deg,#eef3f5 25%,#f7fafb 50%,#eef3f5 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: -260px; z-index: 80; transition: left .3s var(--ease); width: 248px; }
  .side.open { left: 0; }
  .nav__links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: #fff; padding: 1rem 6vw; gap: 1rem; border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s; }
  .nav__links.open { transform: none; opacity: 1; pointer-events: all; }
  .nav__burger { display: block; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .footer__grid { flex-direction: column; }
}
/* ---------- Page transition overlay ---------- */
.page-fade {
  position: fixed; inset: 0; background: var(--sand); z-index: 9999;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.page-fade.show { opacity: 1; pointer-events: all; }

/* ---------- Theme toggle button ---------- */
.theme-toggle {
  position: fixed; left: 18px; bottom: 18px; z-index: 300;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); color: var(--charcoal);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 1.15rem; display: grid; place-items: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.theme-toggle:hover { transform: translateY(-3px) rotate(-14deg); box-shadow: var(--shadow-lg); }
.theme-toggle:active { transform: scale(.92); }

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  --ocean-soft: #10242F;
  --sand: #0c1620;
  --charcoal: #E8EFF3;
  --slate: #AEBEC8;
  --muted: #7E929E;
  --line: #21323E;
  --white: #13212B;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow: 0 12px 34px rgba(0,0,0,.4);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
}
:root[data-theme="dark"] body { background: var(--sand); }
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .auth-main,
:root[data-theme="dark"] .input,
:root[data-theme="dark"] .field,
:root[data-theme="dark"] .seg,
:root[data-theme="dark"] .chart-switch,
:root[data-theme="dark"] .chip-dl,
:root[data-theme="dark"] .btn--ghost,
:root[data-theme="dark"] .icon-btn,
:root[data-theme="dark"] .modal,
:root[data-theme="dark"] .modal__head,
:root[data-theme="dark"] .modal__foot,
:root[data-theme="dark"] .table-wrap { background: #13212B; color: var(--charcoal); border-color: var(--line); }
:root[data-theme="dark"] .nav { background: rgba(13,24,33,.85); }
:root[data-theme="dark"] thead th,
:root[data-theme="dark"] tbody tr:hover { background: #0f1c25; }
:root[data-theme="dark"] .auth-tabs { background: #0f1c25; }
:root[data-theme="dark"] .chart-switch button.active,
:root[data-theme="dark"] .auth-tabs button.active { background: #1d2f3b; color: #fff; }
:root[data-theme="dark"] .footer { background: #08111a; }
:root[data-theme="dark"] .toast { background: #1f3340; }
:root[data-theme="dark"] .tag--finding { background: #10242F; color: #7FD4EE; }
:root[data-theme="dark"] .tag--report { background: #2c1d10; color: #F2B27A; }
:root[data-theme="dark"] .input::placeholder { color: #5f7682; }
:root[data-theme="dark"] .modal__head, :root[data-theme="dark"] .modal__foot { border-color: var(--line); }

/* ---------- Skeleton shells ---------- */
.sk-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.3rem; }
.sk { border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .page-fade { display: none; }
}
