@font-face { font-family: "EB Garamond"; font-weight: 400 600; font-display: swap; src: url("/shared/fonts/eb-garamond-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400 600; font-display: swap; src: url("/shared/fonts/source-sans-3-latin.woff2") format("woff2"); }

:root {
  --blue-50: #f4f8fc; --blue-100: #e8f1fa; --blue-200: #d3e5f5; --blue-400: #86bce8; --blue-500: #5da1d6;
  --blue-700: #2c6a9a; --blue-800: #22557d; --blue-900: #183d5a;
  --ink: #16212b; --text: #3a4652; --muted: #5f6b77; --line: #e2e8ee; --sand: #f7f5f1; --white: #fff;
  --ok: #2f7a4f; --ok-bg: #e7f4ec; --warn: #8a5a00; --warn-bg: #fdf3dc; --bad: #a33a3a; --bad-bg: #fbeaea;
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 16px; --r-sm: 10px;
  --shadow: 0 10px 30px -14px rgba(24, 61, 90, .25);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.5; color: var(--text); background: var(--blue-50); }
h1, h2 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.45rem; }
h3 { font-size: 1.05rem; color: var(--ink); margin: 0 0 .35em; font-weight: 600; }
p { margin: 0 0 .8em; }
a { color: var(--blue-700); }
.muted { color: var(--muted); font-size: .95rem; }
.small { font-size: .85rem; }
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 110px; }
.wrap-wide { max-width: 1100px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.hero-card { background: linear-gradient(160deg, var(--blue-700), var(--blue-900)); color: #fff; border: 0; }
.hero-card h2, .hero-card h3 { color: #fff; }
.hero-card .muted { color: #d6e6f4; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--blue-700); background: var(--blue-700); color: #fff; font: 600 1rem var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .1s ease, background .15s ease; }
.btn:hover { background: var(--blue-800); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--blue-700); }
.btn-ghost:hover { background: var(--blue-100); }
.btn-wa { background: #1f8f4e; border-color: #1f8f4e; }
.btn-wa:hover { background: #18723e; }
.btn-ok { background: var(--ok); border-color: var(--ok); }
.btn-bad { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; }

label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin: 10px 0 4px; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9d3dc; border-radius: var(--r-sm);
  font: 1rem var(--sans); color: var(--ink); background: #fff; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--blue-100); color: var(--blue-800); }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); }
.b-gray { background: #eef1f4; color: var(--muted); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }

.code { font: 600 1.6rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; color: var(--blue-900);
  background: var(--blue-100); padding: 12px 16px; border-radius: var(--r-sm); text-align: center; }

.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar img { width: 40px; height: 40px; border-radius: 10px; }
.topbar .t { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); line-height: 1.1; }
.topbar .s { font-size: .8rem; color: var(--muted); }
.topbar .spacer { flex: 1; }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #fff; border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); z-index: 6; }
.tabbar button { flex: 1; background: none; border: 0; padding: 8px 4px; font: 600 .82rem var(--sans); color: var(--muted); border-radius: 12px; cursor: pointer; position: relative; }
.tabbar button[aria-current="page"] { color: var(--blue-700); background: var(--blue-100); }
.tabbar .count { position: absolute; top: 2px; right: 18%; background: var(--bad); color: #fff; font-size: .7rem; border-radius: 999px; padding: 0 6px; }

dialog { border: 0; border-radius: var(--r); padding: 0; width: min(520px, calc(100vw - 24px)); box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(22, 33, 43, .45); }
dialog .dlg { padding: 20px; }
.demo-note { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-sm); padding: 8px 12px; font-size: .85rem; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 999px; font-size: .95rem; z-index: 20; box-shadow: var(--shadow); }
.empty { text-align: center; color: var(--muted); padding: 18px 8px; }
.hub { display: grid; min-height: 100vh; place-items: center; text-align: center; }
.hub img { border-radius: 18px; margin-bottom: 10px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
