/* platometro.shop: shared styles. Phone first, system fonts, one warm accent. */
:root {
  --accent: #c2571a;
  --accent-dark: #9a4413;
  --accent-soft: #fbefe7;
  --ink: #1d1a17;
  --ink-2: #4a443e;
  --ink-3: #6e665e;
  --line: #e7e1da;
  --bg: #fffdfa;
  --bg-2: #f7f3ee;
  --up: #b3261e;
  --down: #2f6b3a;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.up { color: var(--up); }
.down { color: var(--down); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 10px; background: #fff; padding: 12px 16px; min-height: 44px; z-index: 10; }

/* buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn:focus-visible, .field:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #f0b48f; outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--accent-dark); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn.quiet { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { background: var(--bg-2); color: var(--ink); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn.danger { background: #fff; color: var(--up); border-color: #e3b9b5; }
.btn.danger:hover { background: #fbeeed; color: var(--up); }
.btn[disabled] { opacity: .55; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; min-height: 44px; color: var(--accent-dark); font: inherit; text-decoration: underline; cursor: pointer; }
label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.field, select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cfc6bc; border-radius: 8px; background: #fff; font: 16px/1.4 var(--font); color: var(--ink); }
textarea.field { min-height: 120px; resize: vertical; }
.row { margin: 0 0 16px; }
.hint { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.msg { padding: 12px 14px; border-radius: 8px; font-size: 15px; margin: 0 0 16px; }
.msg.err { background: #fbeeed; color: #8c1d17; }
.msg.ok { background: #edf5ee; color: #24532d; }
.msg.info { background: var(--bg-2); color: var(--ink-2); }
.msg:empty { display: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(255, 253, 250, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav .links { display: none; gap: 22px; margin-left: 12px; }
.nav .links a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 10px 0; }
.nav .links a:hover { color: var(--accent-dark); }
.nav .end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav .login { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 12px 8px; }
@media (min-width: 860px) { .nav .links { display: flex; } }
@media (max-width: 420px) { .nav .end .btn { padding: 0 14px; font-size: 15px; } .brand span { font-size: 17px; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 40px; font-size: 14px; color: var(--ink-3); }
.foot .wrap { display: grid; gap: 14px; }
.foot .syng-legal-links a { color: var(--ink-2); display: inline-block; padding: 10px 2px; }
.foot .credit { max-width: 65ch; }
.foot .brand { justify-self: start; }

/* cards and tables */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.tag.draft { background: #fff4d6; color: #7a5300; }
.tag.mine { background: #e8f1fb; color: #1d4d7a; }
.tag.alt { background: #f1ecf8; color: #4f3a78; }
.tag.over { background: #fbeeed; color: #8c1d17; }
.tag.okk { background: #edf5ee; color: #24532d; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th, table.t td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 13px; font-weight: 600; color: var(--ink-3); }
table.t td.r, table.t th.r { text-align: right; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 480px) { table.t .wk { display: none; } table.t th, table.t td { padding: 10px 6px; } }

/* auth pages */
.auth { min-height: calc(100vh - 64px); display: flex; flex-direction: column; }
.auth main { flex: 1; padding: 48px 0; }
.auth .box { max-width: 440px; margin: 0 auto; }
.auth h1 { font-size: 28px; }
