/* Capture Notes owner dashboard: paper, ink and one highlighter (the app's brand). */
:root {
	--paper: #fffdf7; --card: #ffffff; --ink: #17213a; --ink2: #4a5470; --muted: #7c859a; --rule: #e7e3d6;
	--hl: #f2d94e; --hl-soft: #fff4bf; --ok: #23946a; --ok-bg: #e1f4ec; --bad: #b5381d; --bad-bg: #fce4e0;
	--f-ui: "Onest", "Segoe UI", Roboto, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--f-ui); }
main { margin: 0 auto; padding: 24px 16px 60px; display: grid; gap: 18px; }
main.narrow { max-width: 460px; }
main.wide { max-width: 1100px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
a { color: inherit; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em; }
.muted { color: var(--muted); font-size: 0.9rem; margin: 0; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 20px; display: grid; gap: 14px; }
.center { justify-items: center; text-align: center; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand div { display: grid; line-height: 1.15; }
.brand span { font-size: 0.8rem; color: var(--muted); }
.top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px; }
.top nav a { text-decoration: none; font-size: 0.85rem; font-weight: 600; padding: 6px 11px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tile { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; }
.tile span { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tile b { font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.tile small { color: var(--ink2); }
.stack { display: grid; gap: 14px; }
.grid2, .grid3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.inline h3 { flex-basis: 100%; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label, label[for] { font-weight: 600; font-size: 0.88rem; }
.field small { color: var(--muted); font-size: 0.8rem; }
input:not([type="checkbox"]) { font: inherit; padding: 9px 11px; border: 1px solid #cfcbbd; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; }
button { font: inherit; font-weight: 700; border-radius: 12px; padding: 10px 16px; cursor: pointer; border: 1px solid transparent; }
button.pri { background: var(--ink); color: #fff; }
button.sec { background: var(--hl); color: var(--ink); }
button.link { background: none; padding: 4px 0; color: var(--ink2); font-weight: 600; }
button.danger { color: var(--bad); }
.switch { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 46px; height: 28px; border-radius: 999px; background: #d9d6cb; position: relative; transition: background 0.15s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: left 0.15s; }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track .knob { left: 21px; background: var(--hl); }
.switch input:focus-visible + .track { outline: 3px solid var(--hl); outline-offset: 2px; }
.switch .txt { display: grid; }
.switch small { color: var(--muted); }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.pill, .src { font-size: 0.78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.off { background: #efede6; color: var(--ink2); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.src { background: var(--hl-soft); }
.flash { background: var(--ok-bg); color: var(--ok); padding: 10px 14px; border-radius: 12px; margin: 0; font-weight: 600; }
.warn { background: var(--hl-soft); padding: 10px 14px; border-radius: 12px; margin: 0; }
.err { background: var(--bad-bg); color: var(--bad); padding: 8px 12px; border-radius: 10px; margin: 0; }
.chart { width: 100%; height: auto; }
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 0.85rem; }
.events .muted { font-size: 0.8rem; word-break: break-all; }
.login { gap: 10px; margin-top: 10vh; }
.pro { justify-items: center; text-align: center; margin-top: 6vh; }
.pro .perks { text-align: left; display: grid; gap: 6px; padding-left: 1.2em; margin: 0; }
.pro .price { font-weight: 700; font-size: 1.1rem; background: var(--hl-soft); padding: 4px 12px; border-radius: 10px; }
.pro .row { display: flex; gap: 10px; justify-content: center; }
.key { font-size: 1.3rem; font-weight: 700; background: var(--hl); padding: 10px 16px; border-radius: 12px; user-select: all; }
