/* The room of emilefilm.com (its DESIGN.md): dark, hairlines, one orange */
:root { --room: #100f0e; --ink: #f7f4ee; --ink-2: rgb(247 244 238 / 0.74); --ink-3: rgb(247 244 238 / 0.56); --line: rgb(247 244 238 / 0.16); --fill: rgb(247 244 238 / 0.08); --accent: #d95926; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--room); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, 'PingFang SC', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
header, main { width: min(1200px, 100% - 40px); margin: 0 auto; }
header { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding: 18px 0; background: var(--room); border-bottom: 1px solid var(--line); }
h1 { margin: 0; font: 900 24px/1.2 Georgia, 'Songti SC', serif; }
h2 { margin: 0 0 4px; font: 900 26px/1.2 Georgia, 'Songti SC', serif; }
h3 { margin: 26px 0 8px; font-size: 16px; font-weight: 650; }
#filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-right: auto; font-size: 15px; color: var(--ink-2); }
.presets { display: flex; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
button, select, input { font: inherit; color: var(--ink); }
button { cursor: pointer; border: 0; background: none; }
.presets button { height: 34px; padding: 0 14px; }
.presets button[aria-pressed='true'] { background: var(--ink); color: var(--room); }
select, input { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #1b1917; }
.quiet { color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
section { padding: 40px 0 8px; }
section + section { border-top: 1px solid var(--line); margin-top: 32px; }
.note { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; max-width: 46em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; padding-top: 32px; }
.tiles b { display: block; font-size: 38px; line-height: 1.1; font-weight: 650; letter-spacing: -0.02em; }
.tiles span { color: var(--ink-2); font-size: 15px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px 56px; }
svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
svg text { fill: var(--ink-3); font-size: 13px; }
svg .grid { stroke: var(--line); stroke-width: 1; }
svg .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
svg .area { fill: var(--accent); opacity: 0.12; }
svg .cross { stroke: var(--ink-2); stroke-width: 1; }
svg .dot { fill: var(--accent); stroke: var(--room); stroke-width: 2; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 14px; }
th, td { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.zero td { color: var(--ink-3); }
tbody tr[data-event] { cursor: pointer; }
tbody tr[data-event]:hover td { background: var(--fill); }
code { font: 13px ui-monospace, Menlo, monospace; color: var(--ink-3); }
.bar { display: block; height: 12px; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--accent); }
.barcell { width: 34%; }
.retention td { text-align: center; padding: 9px 4px; border: 2px solid var(--room); font-variant-numeric: tabular-nums; }
.retention td:first-child, .retention th:first-child { text-align: left; white-space: nowrap; }
.retention th { text-align: center; }
.scroll { overflow-x: auto; }
details > summary { cursor: pointer; color: var(--ink-2); font-size: 15px; margin-top: 10px; }
.detail > td { padding: 0 0 20px; }
.tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 8px; }
.tools input[type='search'] { flex: 0 1 300px; border-radius: 18px; padding: 0 16px; }
.tools label { color: var(--ink-2); font-size: 15px; }
.tools input[type='checkbox'] { height: auto; accent-color: var(--accent); }
#tip { position: fixed; z-index: 9; pointer-events: none; padding: 8px 12px; border-radius: 10px; background: #2c2926; font-size: 14px; white-space: nowrap; }
#tip b { display: block; font-size: 17px; }
#tip[hidden] { display: none; }
.login { min-height: 100svh; display: grid; place-content: center; }
.login form { display: grid; gap: 18px; width: 300px; }
.login h1 { font-size: 40px; }
.login label { display: grid; gap: 6px; color: var(--ink-2); }
.login input { height: 46px; }
.login p { margin: 0; color: var(--ink); }
.login button { height: 46px; border-radius: 23px; background: var(--accent); color: #fff; font-weight: 650; }
