@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-display: swap; src: url(/assets/schibsted-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-display: swap; src: url(/assets/schibsted-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root { --ground: #111417; --ink: #eef1f3; --muted: #a9b4bc; --line: #2a3137; --edge: #66727c; --pick: #26304d; --accent: #9db2ff; --on-accent: #10162e; --field: #0b0d0f; --panel: #0d0f12; --bad: #ffb4a8; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.45 "Schibsted Grotesk", system-ui, sans-serif; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input::placeholder { color: var(--muted); opacity: 1; }
.off { position: absolute; left: -9999px; }
.row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.primary { min-height: 48px; padding: 0 22px; border: 0; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.primary.big { min-height: 58px; padding: 0 30px; font-size: 18px; }
.primary:disabled { opacity: .6; cursor: default; }
.plain { min-height: 44px; padding: 0 14px; border: 0; background: transparent; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.outline { align-self: flex-start; min-height: 48px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 6px; background: transparent; font-weight: 700; }
.check { display: flex; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; }
.check input { appearance: none; width: 24px; height: 24px; margin: 0; flex: none; border: 2px solid var(--edge); border-radius: 5px; background: var(--field); cursor: pointer; }
.check input:checked { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310162e' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l5 5 9-11'/%3E%3C/svg%3E") center / 18px no-repeat; }
.small { font-size: 15px; color: var(--muted); max-width: 52ch; }

.login { min-height: 100%; max-width: 760px; margin: 0 auto; padding: 40px max(24px, env(safe-area-inset-left)); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.login h1 { font-size: clamp(64px, 12vw, 132px); font-weight: 800; letter-spacing: -.045em; line-height: .9; }
.login p { font-size: 22px; max-width: 34ch; }
.login p.small { font-size: 16px; max-width: 52ch; }
.login p.note { font-size: 18px; max-width: 52ch; color: var(--bad); }

.home { max-width: 860px; margin: 0 auto; padding: 32px 24px 64px; display: flex; flex-direction: column; gap: 24px; }
.home header { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.home header.stay { position: sticky; top: 0; z-index: 1; margin: -20px 0 0; padding: 20px 0 14px; background: var(--ground); }
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.brand.large { font-size: 40px; letter-spacing: -.03em; flex: 1; }
.state { flex: 1 1 60px; color: var(--muted); font-size: 15px; }
#find { border-bottom: 3px solid var(--ink); }
#find input { width: 100%; min-height: 84px; padding: 0; border: 0; background: transparent; font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -.03em; outline: none; border-radius: 0; }
#find:focus-within { border-color: var(--accent); }
.rows button { width: 100%; min-height: 64px; padding: 8px 14px; display: flex; align-items: center; gap: 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.rows button:hover, .rows li.first button { background: var(--pick); }
.mark { flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
/* the thin light edge keeps dark icons visible on the dark ground */
.mark img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 .6px #cfd6db) drop-shadow(0 0 .6px #cfd6db); }
.mark:has(img) { background: none; border-radius: 0; }
.rows .name { font-size: 24px; font-weight: 700; letter-spacing: -.015em; min-width: 0; overflow-wrap: anywhere; }
.rows .note { margin-left: auto; font-size: 16px; color: var(--muted); text-align: right; }
.empty { color: var(--muted); font-size: 18px; max-width: 52ch; }

.open { height: 100%; display: flex; flex-direction: column; position: relative; }
.strip { flex: none; display: flex; gap: 2px; align-items: center; min-height: 48px; padding: 0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left)); padding-top: env(safe-area-inset-top); background: var(--field); }
.strip button { min-width: 44px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; font-weight: 800; }
.strip button:hover, .strip button[aria-expanded=true] { background: var(--pick); }
.strip button:disabled { opacity: .4; cursor: default; }
.strip svg { display: block; width: 22px; height: 22px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.strip .title { flex: 1; min-width: 0; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.strip .loading { color: var(--accent); font-size: 15px; }
#frame { flex: 1; width: 100%; border: 0; background: #fff; color-scheme: normal; }
#frame.blank { background: var(--ground); }
.over { position: absolute; top: calc(52px + env(safe-area-inset-top)); left: 12px; right: 12px; max-width: 560px; max-height: calc(100% - 72px); overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--ground); border: 2px solid var(--edge); border-radius: 8px; }
.over input { width: 100%; min-height: 52px; padding: 0 2px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; font-size: 22px; font-weight: 700; outline: none; }
.over input:focus { border-color: var(--accent); }
.where { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.rows.compact button { min-height: 48px; padding: 4px 8px; gap: 12px; border: 0; border-radius: 6px; }
.rows.compact .mark { width: 32px; height: 32px; font-size: 13px; }
.rows.compact .name { font-size: 18px; font-weight: 500; letter-spacing: 0; }

.tiles li { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px 16px; align-items: end; padding: 20px 0; border-top: 1px solid var(--line); }
.tiles label:not(.check) { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
.tiles input:not([type=checkbox]) { min-height: 46px; min-width: 0; padding: 0 12px; border: 1px solid var(--edge); border-radius: 6px; background: var(--field); color: var(--ink); font-size: 17px; }
.tiles .check { grid-column: span 1; font-size: 16px; }
.tiles .row { gap: 4px; grid-column: 1 / -1; margin-left: -14px; }
.tiles .pick { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.tiles .pick input { flex: 1; width: 100%; }

.notice { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; background: var(--ground); border: 2px solid var(--accent); border-radius: 8px; z-index: 5; }
.notice span { flex: 1 1 260px; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .rows .note { display: none; }
  .home { padding: 20px 16px 48px; }
  .home header { gap: 4px; flex-wrap: nowrap; }
  .home header .plain { padding: 0 8px; white-space: nowrap; }
  .home header .plain:last-child { margin-right: -8px; }
  .brand.large { font-size: 30px; }
  .state { font-size: 13px; line-height: 1.2; }
  #find input { min-height: 68px; }
  .rows button { padding: 8px 4px; }
}
