/* manage.flunda.com: the Flunda brand (Ink, Paper, Night, Sea glass), Urbanist and DM Sans, self-hosted. */
@font-face { font-family: 'Urbanist'; src: url('/fonts/urbanist-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 100 1000; font-display: swap; }

:root {
  --ink: #0b1f2a; --paper: #f3f7f6; --night: #081419; --sea: #0d9488; --sea-text: #0b7a70;
  --bg: var(--paper); --card: #ffffff; --fg: var(--ink); --muted: #5f6d73; --line: #dce3e2;
  --good: #0a7c56; --warn: #a15c07; --bad: #b42318;
  --display: 'Urbanist', system-ui, sans-serif; --body: 'DM Sans', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: var(--night); --card: #142024; --fg: #f3f7f6; --muted: #a1a8a9; --line: #22343a; --sea-text: #3fc7b9; --good: #34c38f; --warn: #f0b429; --bad: #f87171; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--body); }
a { color: var(--sea-text); }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.mark { width: 32px; height: 32px; border-radius: 24%; background: var(--sea); display: grid; place-items: center; }
.lockup b { font: 800 22px var(--display); }
.lockup span { font: 500 22px var(--display); color: var(--sea-text); }
nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
nav a, .btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--fg); border: 1px solid var(--line); background: var(--card); font: 500 14px var(--body); cursor: pointer; }
nav a[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--primary { background: var(--sea); color: #fff; border-color: var(--sea); font-weight: 600; padding: 12px 20px; font-size: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.stack > * + *, :not(.grid):not(.charts) > .card + .card { margin-top: 16px; }
.app-name { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 8px; }
.figure b { display: block; font: 700 26px var(--display); font-variant-numeric: tabular-nums; }
.figure small, .muted { color: var(--muted); font-size: 14px; }
.spark { width: 100%; height: 60px; display: block; }
.chart { width: 100%; height: 140px; display: block; }
.status { font-size: 13px; }
.status--bad { color: var(--bad); }
.status--good { color: var(--good); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-weight: 500; }
.num { text-align: right; }
.centre { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.panel { width: 100%; max-width: 420px; text-align: center; }
.panel p { color: var(--muted); }
.error { color: var(--bad); min-height: 1.5em; }
.tabs { display: flex; gap: 6px; margin: 12px 0; }
.charts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
@media (max-width: 520px) { .charts { grid-template-columns: 1fr; } h1 { font-size: 24px; } }
.lockup--centre { justify-content: center; }
.section-head { margin: 32px 0 12px; }
.app-name-card { display: block; text-decoration: none; color: var(--fg); }
.dot { display: inline-flex; }
.scroll { overflow-x: auto; margin: 8px 0; }
.scroll table { min-width: 640px; }
/* Forms (the Emails page) and the Stores card. */
label { display: block; font-weight: 500; margin-bottom: 4px; }
input:not([type=radio]):not([type=hidden]), select, textarea { width: 100%; font: 16px/1.5 var(--body); color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 500; margin-bottom: 6px; }
.choice { font-weight: 400; display: flex; gap: 8px; align-items: baseline; padding: 4px 0; }
.form-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-row label { margin: 0; }
.form-row select { width: auto; flex: 1 1 200px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.email-preview { white-space: pre-wrap; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg); }
ul.status { padding-left: 18px; }
.stars { color: #b7791f; letter-spacing: 1px; white-space: nowrap; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 6px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.review { border-top: 1px solid var(--line); padding: 12px 0; }
.review p { margin: 4px 0; }
.figures--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .figures--4 { grid-template-columns: repeat(2, 1fr); } }
.card--stores h3 { font-size: 16px; font-weight: 700; margin: 16px 0 6px; }
