/* DevRight's own faces, served from here (nothing is loaded from another site). */
@font-face { font-family: "PT Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/pt-sans-latin-400-normal.3f66ddcf744f.woff2") format("woff2"); }
@font-face { font-family: "PT Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/pt-sans-latin-700-normal.35e5705c45cf.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/roboto-condensed-latin-700-normal.d7fa0ca17dfd.woff2") format("woff2"); }
:root { --bg: #0e1110; --panel: #171c1a; --line: #2a322e; --text: #eef2ef; --muted: #9aa69f; --accent: hsl(140 44% 57%);
  --accent-ink: #08130c; --danger-line: #7a3b3b; --danger: #f0b4b4; --tabs: 64px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 17px/1.5 "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, .brand, button, .button, .tabs a, summary { font-family: "Roboto Condensed", "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1, h2, h3 { font-weight: 700; letter-spacing: .01em; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Frame. Signed out: one centered card. Signed in: a column with the tabs under the thumb. */
.strip { margin: 0; padding: 6px 16px; padding-top: max(6px, env(safe-area-inset-top)); background: #3a2f12; color: #f3dfa6;
  font-size: 13px; text-align: center; }
.top { max-width: 600px; margin: 0 auto; padding: 14px 20px 0; padding-top: max(14px, env(safe-area-inset-top)); }
.strip + .top { padding-top: 14px; }
.strip.alarm { background: #5a1f1f; color: #ffd9d9; font-weight: 700; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  font-weight: 700; text-decoration: none; }
.brand img { display: block; height: 28px; width: auto; }
.brand span { padding-left: 10px; border-left: 1px solid var(--line); line-height: 20px; }
.card { width: 100%; max-width: 600px; margin: 0 auto; padding: 14px 20px 28px; }
body.app .card { padding-bottom: calc(var(--tabs) + 36px + env(safe-area-inset-bottom)); }
body.plain { display: flex; flex-direction: column; justify-content: center; padding: 16px; }
body.plain .top, body.plain .card { max-width: 420px; }
body.plain .top { padding: 22px 22px 0; background: var(--panel); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; width: 100%; }
body.plain .card { padding: 14px 22px 28px; background: var(--panel); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; }
body.plain .strip { margin: 0 auto 12px; border-radius: 10px; max-width: 420px; width: 100%; padding-top: 6px; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: center;
  padding: 0 8px env(safe-area-inset-bottom); background: rgba(14, 17, 16, .96); border-top: 1px solid var(--line); }
.tabs a { flex: 1 1 0; max-width: 150px; min-height: var(--tabs); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current] { color: var(--accent); }
.tabs a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 10px; }

/* Text */
h1 { margin: 6px 0 10px; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
h1.quiet { font-size: 22px; }
h2 { margin: 26px 0 6px; font-size: 19px; line-height: 1.25; }
h3 { margin: 18px 0 4px; font-size: 16px; }
h3 + .fine { margin: 0 0 8px; }
p { margin: 0 0 18px; color: var(--muted); }
.fine { font-size: 13px; margin: 18px 0 0; }
.fine + form { margin-top: 18px; }
.meta { margin: -4px 0 18px; font-size: 15px; }
.back { margin: 0 0 4px; font-size: 15px; }
.back a { color: var(--accent); text-decoration: none; display: inline-block; padding: 8px 12px 8px 0; }
.status { min-height: 1.5em; margin: 14px 0; color: var(--text); }
.empty { padding: 28px 0; text-align: center; }
.label { margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mark { margin: 4px 0 0; font-size: 12px; color: var(--muted); text-align: right; }
dl { margin: 0 0 18px; }
dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
dd { margin: 2px 0 0; overflow-wrap: anywhere; }

/* Buttons and fields: nothing smaller than a thumb. */
button, .button { display: block; width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font-size: 17px; line-height: 1.5; font-weight: 700; letter-spacing: .02em; text-align: center; text-decoration: none; cursor: pointer; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.big { min-height: 64px; font-size: 20px; }
button:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .55; cursor: default; }
button.small { min-height: 44px; padding: 8px 14px; font-size: 15px; }
button.danger, .button.danger { border-color: var(--danger-line); color: var(--danger); }
p > .button { margin-top: 0; }
form + form { margin-top: 12px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 0; }
.pair form + form, .pair form { margin: 0; }
label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=search], input[type=date], input[type=tel], input[type=password], input[type=file], select, textarea { display: block; width: 100%; min-height: 52px; padding: 12px 14px; margin-bottom: 14px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; -webkit-appearance: none; appearance: none; }
body.plain input[type=text], body.plain select, body.plain textarea { background: var(--bg); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
textarea { min-height: 120px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; resize: vertical; }

.check { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text); }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.gen { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; flex-wrap: wrap; }
.gen button { width: auto; flex: 1 1 auto; }
.gen select { width: auto; min-height: 44px; margin: 0; padding: 8px 12px; flex: 0 0 auto; }
.xrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.xrow input, .xrow select { margin: 0; }
.xrow input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
details.add > .inner { margin: 16px; }
details.add.more > summary { text-align: left; font-weight: 500; color: var(--muted); }
.under { margin-top: 12px; }
.title { display: flex; align-items: flex-start; gap: 8px; }
.title h1 { flex: 1 1 auto; min-width: 0; }
.title form { margin: 0; flex: 0 0 auto; }
button.star { width: 48px; min-height: 48px; padding: 0; border-color: transparent; font-size: 26px; line-height: 1; color: var(--line); }
button.star.on, .starred { color: #e6c34f; }
.tags { margin: -8px 0 14px; }
.tags .tag { margin: 0 6px 6px 0; }
.tag.bad { border-color: var(--danger-line); color: var(--danger); }
.ask { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.ask .name { margin: 0 0 4px; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.ask .meta { margin: 0 0 12px; font-size: 14px; }
.ask form { margin: 0; }
.inline { display: flex; gap: 10px; align-items: center; }
.inline input { margin: 0; flex: 1 1 auto; }
.inline button { width: auto; flex: 0 0 auto; }
.check.line { margin: 4px 0 16px; align-items: flex-start; line-height: 1.35; }
.tag.crown { border-color: #b08d2b; color: #f0d27a; }
.count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; line-height: 18px; }
.dim { color: var(--muted); font-weight: 400; }
.facts { margin: 0 0 6px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.facts dt { margin: 0; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.facts dd { margin: 0; text-align: right; color: var(--text); font-weight: 700; }
.members { margin: 0; }
.members .tag { margin: 0 6px 6px 0; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.filters select, .filters input { margin: 0; }
.filters input { grid-column: 1 / 2; }
.filters button { grid-column: 2 / 3; }
.log .name { font: 600 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.log .meta { margin-bottom: 0; overflow-wrap: anywhere; }
.notice { margin: 0 0 14px; padding: 10px 14px; border: 1px solid #7a6a2b; border-radius: 12px; color: #f3dfa6; font-size: 15px; }
.notice.bad { border-color: var(--danger-line); color: var(--danger); }

/* Finding things */
.find input { margin-bottom: 12px; }
.chips { display: flex; gap: 8px; margin: 0 -20px 8px; padding: 2px 20px 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.chip[aria-current] { border-color: var(--accent); color: var(--accent); }
.rows { list-style: none; margin: 0 0 18px; padding: 0; }
.rows li { border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.row { display: block; position: relative; min-height: 64px; padding: 11px 28px 11px 0; color: var(--text); text-decoration: none; }
.row::after { content: "›"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 22px; }
.row .name { display: block; font-weight: 600; overflow-wrap: anywhere; }
.row .meta { display: block; margin: 0; font-size: 14px; color: var(--muted); }
.row:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* Older lists (administration, passkeys) */
.list { list-style: none; margin: 0 0 18px; padding: 0; }
.list li { padding: 14px 0; border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list .name { margin: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.list .meta { margin: 2px 0 10px; font-size: 14px; }
.list a { color: var(--text); text-underline-offset: 3px; }
.list .meta a, .fine a { color: var(--accent); }
.list li.act { display: flex; align-items: center; gap: 12px; }
.list li.act > div { flex: 1 1 auto; min-width: 0; }
.list li.act .meta { margin-bottom: 0; }
.list li.act form { margin: 0; flex: 0 0 auto; }
.list li.act button { width: auto; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px;
  font-weight: 600; color: var(--muted); vertical-align: 2px; }
.tag.warn { border-color: #7a6a2b; color: #f3dfa6; }
.tag.ok { border-color: var(--accent); color: var(--accent); }

/* A form that stays folded until it is wanted */
details.add { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; }
details.add > summary { min-height: 52px; padding: 14px 16px; font-weight: 600; cursor: pointer; list-style: none; text-align: center; }
details.add > summary::-webkit-details-marker { display: none; }
details.add > summary::before { content: "+ "; color: var(--accent); }
details.add[open] > summary { border-bottom: 1px solid var(--line); }
details.add[open] > summary::before { content: "– "; }
details.add > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
details.add > form, details.add > p, details.add > .chips { margin-left: 16px; margin-right: 16px; }
details.add > form { margin-top: 16px; margin-bottom: 16px; }
details.add > .label { margin-top: 16px; }
details.add > .chips { padding: 2px 0 6px; }

/* What the device is doing, where the thumb is */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabs) + 14px + env(safe-area-inset-bottom)); z-index: 6; max-width: 568px;
  margin: 0 auto; padding: 12px 16px; min-height: 0; border: 1px solid var(--accent); border-radius: 12px; background: #1d2823; text-align: center; }
.toast:empty { display: none; }

/* Revealed contents */
.secret { margin: 0 0 10px; padding: 14px; border: 1px solid var(--accent); border-radius: 12px; background: var(--panel); color: var(--text);
  font: 16px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.secret.plainer { border-color: var(--line); }
.secret + button { margin-bottom: 18px; }

@media (min-width: 720px) {
  .tabs { position: static; max-width: 600px; margin: 0 auto 24px; border: 1px solid var(--line); border-radius: 14px; padding: 0 8px; }
  body.app { display: flex; flex-direction: column; }
  body.app .tabs { order: 1; margin-top: 12px; }
  body.app .card { order: 2; padding-bottom: 40px; }
  body.app .top { order: 0; }
  body.app .strip { order: -1; }
  .toast { bottom: 24px; }
}
