/* Groeimachine screen. Design tokens copied from site/public/style.css, so it looks like Ownware. */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f4;
  --ink: #0b0b0c;
  --fg: #18181b;
  --muted: #6b6b70;
  --line: #e7e5e4;
  --accent: #ff5a1f;
  --accent-hover: #e94a12;
  --accent-soft: #fff1eb;
  --dark: #0b0b0c;
  --ok: #15803d;
  --warn: #b45309;
  --error: #b91c1c;
  --radius: 14px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg-2); color: var(--fg); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Header */
.top { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; min-height: 56px; padding: 8px 0; }
.logo { font-weight: 800; letter-spacing: -.03em; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo b { color: var(--accent); }
.top nav a:not(.logo) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.top nav a.on, .top nav a:hover { color: var(--ink); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--bg); font-size: 12px; font-weight: 700; text-align: center; }
.top form { margin: 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; font-size: 15px; }

main { padding: 20px 0 64px; }
h1 { font-size: 24px; letter-spacing: -.02em; margin: 8px 0 16px; color: var(--ink); }
h2 { font-size: 18px; margin: 28px 0 10px; color: var(--ink); }

/* Blocks */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; display: block; }
.stat b { display: block; font-size: 26px; color: var(--ink); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }
.flash { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; }
.banner { border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }
.banner.warn { background: var(--bg); border: 1px solid var(--warn); color: var(--warn); }
.banner.ok { background: var(--bg); border: 1px solid var(--ok); color: var(--ok); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.accent { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }
.facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); margin: 6px 0 12px; }
.facts b { color: var(--fg); font-weight: 600; }

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 10px 0 4px; }
input[type=text], input[type=password], input[type=search], textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
}
/* Grows with the text where supported, so the whole mail is visible before you approve it. */
textarea { font-size: 15px; line-height: 1.5; min-height: 320px; resize: vertical; field-sizing: content; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.btn { display: inline-block; font: inherit; font-weight: 600; border-radius: 10px; padding: 9px 16px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--error); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chips a { text-decoration: none; }
.chips a.on .tag { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.search { display: flex; gap: 8px; margin-bottom: 12px; }

/* Lists */
table { width: 100%; border-collapse: collapse; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; }
.events { list-style: none; margin: 0; padding: 0; }
.events li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.events li:last-child { border-bottom: 0; }
.events time { font-size: 13px; color: var(--muted); margin-right: 6px; }
.pre { white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.quote { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; margin: 8px 0; color: var(--muted); }
details summary { cursor: pointer; }
.timeline .card { margin-bottom: 10px; }
.timeline .in { border-left: 4px solid var(--accent); }

.login { max-width: 360px; margin: 12vh auto 0; }
.error { color: var(--error); font-weight: 600; }
.brand { color: var(--accent); }
.chips.spaced { margin: 12px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
