/* Selyo: shared design tokens and components (landing, demo app, report) */
:root {
  --ink: #0d1b2a; --ink2: #1b2d44; --navy: #10243e; --paper: #f7f4ee; --card: #ffffff;
  --line: #e2dccf; --muted: #5f6b7a; --gold: #c8962e; --gold2: #e9c46a; --teal: #1f7a6d;
  --red: #b23a3a; --ok: #1f7a4d; --warn: #b7791f; --radius: 14px;
  --shadow: 0 1px 2px rgba(13,27,42,.06), 0 8px 24px rgba(13,27,42,.08);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--paper); }
a { color: var(--teal); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }
h1 { font-family: var(--serif); font-weight: 700; }
h2 { font-family: var(--serif); font-weight: 700; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; font: 600 15px var(--font); cursor: pointer; text-decoration: none; background: var(--ink); color: #fff; transition: transform .12s, background .12s; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: var(--gold); color: #1a1205; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.ok { background: var(--ok); }
.btn.red { background: var(--red); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #efe9dc; color: var(--ink2); }
.pill.ok { background: #dcefe4; color: var(--ok); } .pill.warn { background: #f8ebd2; color: var(--warn); } .pill.red { background: #f6dede; color: var(--red); } .pill.blue { background: #dde8f5; color: #1d4f8a; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .9em; word-break: break-all; }
.seal { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold2), var(--gold) 60%, #8a6219); color: #2a1c03; font: 800 15px var(--serif); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(13,27,42,.96); color: #fff; backdrop-filter: blur(8px); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 21px var(--serif); }
.brand small { font: 500 12px var(--font); color: #b9c4d2; letter-spacing: .04em; }
.topbar nav { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: #dbe3ee; text-decoration: none; padding: 7px 11px; border-radius: 8px; font-size: 14.5px; }
.topbar nav a:hover, .topbar nav a[aria-current] { background: rgba(255,255,255,.1); color: #fff; }
.install-btn[hidden] { display: none !important; }
.ios-hint { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: var(--ink); color: #fff; padding: 14px 16px; border-radius: 14px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
.ios-hint[hidden] { display: none; }
.ios-hint button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
footer.site { background: var(--ink); color: #b9c4d2; padding: 36px 0; margin-top: 60px; font-size: 14px; }
footer.site a { color: var(--gold2); }
.disclaimer { font-size: 13px; color: var(--muted); border-left: 3px solid var(--gold); padding: 8px 12px; background: #fbf7ee; border-radius: 0 8px 8px 0; }
table.dataTable { font-size: 14px; }
table.dataTable thead th { background: #f1ece1; }
div.dt-container .dt-search input, div.dt-container .dt-length select { border-radius: 8px; border: 1px solid var(--line); padding: 5px 8px; }
@media (max-width: 760px) {
  .topbar nav a.hide-sm { display: none; }
  .topbar .wrap { height: auto; min-height: 58px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .brand small { display: none; }
}
