
:root{
  --ref-bg:#0b0f14;
  --ref-surface:rgba(17,24,38,.65);
  --ref-surface-strong:rgba(17,24,38,.78);
  --ref-surface-soft:rgba(255,255,255,.04);
  --ref-card:rgba(17,24,38,.72);
  --ref-card-light:rgba(255,255,255,.90);
  --ref-text:#eaf0f7;
  --ref-text-strong:#f7fbff;
  --ref-text-light:#0f172a;
  --ref-muted:#93a4b7;
  --ref-muted-light:rgba(15,23,42,.66);
  --ref-line:rgba(255,255,255,.08);
  --ref-line-strong:rgba(255,255,255,.12);
  --ref-line-light:rgba(15,23,42,.10);
  --ref-brand-blue:#0a84ff;
  --ref-brand-red:#ff3b30;
  --ref-brand-blue-soft:rgba(10,132,255,.12);
  --ref-brand-red-soft:rgba(255,59,48,.10);
  --ref-success:#22c55e;
  --ref-warning:#f59e0b;
  --ref-error:#ef4444;
  --ref-info:#38bdf8;
  --ref-radius-sm:12px;
  --ref-radius-md:12px;
  --ref-radius-lg:12px;
  --ref-radius-xl:12px;
  --ref-shadow-soft:0 12px 30px rgba(0,0,0,.18);
  --ref-shadow-lg:0 18px 44px rgba(0,0,0,.24);
  --ref-shadow-card:0 18px 40px rgba(0,0,0,.45);
  --ref-blur:10px;
  --ref-blur-strong:16px;
  --ref-space-1:4px;
  --ref-space-2:8px;
  --ref-space-3:12px;
  --ref-space-4:16px;
  --ref-space-5:20px;
  --ref-space-6:24px;
}
html.theme-light{
  --ref-bg:#f5f8fc;
  --ref-surface:rgba(255,255,255,.88);
  --ref-surface-strong:rgba(255,255,255,.96);
  --ref-surface-soft:rgba(15,23,42,.04);
  --ref-card:rgba(255,255,255,.92);
  --ref-text:#0f172a;
  --ref-text-strong:#0b1220;
  --ref-muted:#5e7188;
  --ref-line:rgba(15,23,42,.10);
  --ref-line-strong:rgba(15,23,42,.14);
  --ref-shadow-soft:0 10px 26px rgba(15,23,42,.08);
  --ref-shadow-lg:0 18px 44px rgba(15,23,42,.12);
  --ref-shadow-card:0 18px 40px rgba(15,23,42,.12);
}
html,body{scroll-behavior:smooth}
.ref-card,.ref-panel,.ref-surface,.ref-topbar,.ref-modal,.ref-widget{
  background:var(--ref-surface);
  border:1px solid var(--ref-line);
  border-radius:12px;
  box-shadow:var(--ref-shadow-lg);
  backdrop-filter:blur(var(--ref-blur));
  -webkit-backdrop-filter:blur(var(--ref-blur));
}
.ref-pill,.ref-btn,.ref-chip,.ref-input,.ref-badge{
  border-radius:12px;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .16s ease,box-shadow .18s ease;
}
.ref-btn,.ref-pill,.ref-chip,.ref-badge{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:1px solid var(--ref-line);background:var(--ref-surface-soft);color:inherit;
  font-weight:800;text-decoration:none;
}
.ref-btn:hover,.ref-pill:hover,.ref-chip:hover,.ref-badge:hover{transform:translateY(-1px);border-color:rgba(10,132,255,.35);background:rgba(10,132,255,.08)}
.ref-btn-primary,.ref-pill-primary{background:var(--ref-brand-blue-soft);border-color:rgba(10,132,255,.40)}
.ref-btn-danger{background:var(--ref-brand-red-soft);border-color:rgba(255,59,48,.32)}
.ref-input, input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select{
  background:var(--ref-surface-soft);
  border:1px solid var(--ref-line);
  color:inherit;
  border-radius:12px;
  outline:none;
}
.ref-input:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="search"]:focus, textarea:focus, select:focus{
  border-color:rgba(10,132,255,.45);
  box-shadow:0 0 0 3px rgba(10,132,255,.10);
}
.ref-status{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;border:1px solid var(--ref-line);font-weight:800;font-size:13px}
.ref-status.success{background:rgba(34,197,94,.10);border-color:rgba(34,197,94,.26)}
.ref-status.warning{background:rgba(245,158,11,.10);border-color:rgba(245,158,11,.26)}
.ref-status.error{background:rgba(239,68,68,.10);border-color:rgba(239,68,68,.26)}
.ref-status.info{background:rgba(56,189,248,.10);border-color:rgba(56,189,248,.26)}
.ref-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.ref-kicker{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ref-muted)}
.ref-muted{color:var(--ref-muted)!important}
.ref-empty{padding:18px;border:1px dashed var(--ref-line-strong);border-radius:12px;background:var(--ref-surface-soft);color:var(--ref-muted)}
.ref-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ref-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width: 900px){.ref-grid-2,.ref-grid-3{grid-template-columns:1fr}}


html{ color-scheme:dark; }
html.theme-light{ color-scheme:light; }
body{
  background: radial-gradient(1200px 680px at 8% 0%, rgba(10,132,255,.16), transparent 42%),
              radial-gradient(980px 620px at 100% 100%, rgba(255,59,48,.12), transparent 34%),
              var(--ref-bg);
  color: var(--ref-text);
}
html.theme-light body{
  background: radial-gradient(1200px 680px at 8% 0%, rgba(10,132,255,.10), transparent 42%),
              radial-gradient(980px 620px at 100% 100%, rgba(255,59,48,.08), transparent 34%),
              var(--ref-bg);
  color: var(--ref-text);
}
.ref-theme-toggle-btn{
  min-width:44px;
  width:44px;
  height:38px;
  padding:0 !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.ref-theme-toggle__icon{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid var(--ref-line);
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  font-size:16px;
  line-height:1;
}
html.theme-light .ref-theme-toggle__icon{
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.72));
  border-color:rgba(15,23,42,.14);
}
.ref-theme-toggle__sr{
  position:absolute !important;
  width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
