:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  --bg: #f4f5fa;
  --surface: #fff;
  --line: #e1e3ee;
  --text: #171829;
  --muted: #55586c;
  --accent: #4733b8;
  --accent-soft: #eeeaff;
  --live: #16835a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-underline-offset: .2em; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner, .shell { width: min(calc(100% - 2rem), 69rem); margin: 0 auto; }
.header-inner { min-height: 4.25rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.wordmark { color: var(--text); text-decoration: none; font-weight: 780; display: flex; align-items: center; gap: .55rem; }
.brand-mark { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: .65rem; background: var(--accent); color: #fff; font-size: .74rem; letter-spacing: .04em; }
.site-header nav { display: flex; align-items: center; gap: .3rem; }
.site-header nav a { text-decoration: none; color: var(--muted); padding: .45rem .75rem; font-size: .875rem; border-radius: .55rem; }
.site-header nav a[aria-current="page"] { color: var(--accent); font-weight: 700; background: var(--accent-soft); }
.shell { margin-top: 2.5rem; margin-bottom: 4rem; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -.045em; }
h2 { margin: 0; font-size: 1.22rem; letter-spacing: -.02em; }
.intro { margin: .75rem 0 1.25rem; color: var(--muted); }
.connection { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .65rem; min-height: 3rem; border: 1px solid var(--line); border-radius: .75rem; padding: .65rem .9rem; background: var(--surface); }
.dot { width: .62rem; height: .62rem; flex: none; border-radius: 50%; background: var(--muted); }
.dot.live { background: var(--live); }
#updated { color: var(--muted); margin-left: auto; font-size: .875rem; }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0; }
.summary div, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; }
.summary div { padding: .85rem 1rem; min-width: 0; }
.summary span { display: block; color: var(--muted); font-size: .875rem; }
.summary strong { display: block; margin-top: .35rem; font-size: clamp(1.35rem, 5vw, 1.9rem); font-variant-numeric: tabular-nums; }
.panel-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1rem; border-bottom: 1px solid var(--line); }
#visible-count { display: inline-block; background: var(--accent-soft); color: var(--accent); margin-left: .35rem; padding: .2rem .55rem; border-radius: 2rem; font-size: .88rem; vertical-align: middle; }
.filter { display: flex; gap: .55rem; align-items: center; color: var(--muted); font-size: .9rem; }
button, select, input { font: inherit; color: var(--text); background: var(--surface); border: 1px solid #c9ccdb; border-radius: .56rem; min-height: 2.5rem; padding: .4rem .65rem; }
button:enabled { cursor: pointer; }
button:enabled:hover { border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: .5; }
button[type="submit"], #begin-feed { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 650; }
button[type="submit"]:enabled:hover, #begin-feed:enabled:hover { background: #362398; color: #fff; }
select { appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2355586c' stroke-width='1.5' d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-position: right .6rem center; background-repeat: no-repeat; }
.hosted { margin-top: 1rem; padding: .9rem 1rem; }
.panel > .hosted { margin-top: 0; }
.hosted form, #login-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.hosted label { font-weight: 650; font-size: .9rem; }
.hosted input { min-width: 0; max-width: 100%; }
.hosted p { color: var(--muted); margin: .75rem 0 0; font-size: .9rem; }
.empty { margin: 0; padding: 1.65rem 1rem; color: var(--muted); }
#requests { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: .75rem; padding: 1rem; margin: 0; list-style: none; }
#requests li { padding: .85rem; border: 1px solid var(--line); border-radius: .8rem; background: #fafaff; display: grid; grid-template-columns: 3.15rem minmax(0, 1fr); gap: .55rem .75rem; align-items: start; }
.avatar { width: 3.15rem; height: 3.15rem; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 780; }
.identity { min-width: 0; display: grid; gap: .28rem; justify-items: start; }
.identity strong { overflow-wrap: anywhere; }
.identity time { font-size: .82rem; color: var(--muted); }
.source-label { border-radius: 1rem; padding: .13rem .5rem; background: var(--accent-soft); color: var(--accent); font-size: .8rem; overflow-wrap: anywhere; }
#requests a { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: .48rem; padding: .42rem .6rem; background: var(--surface); font-size: .88rem; font-weight: 650; text-align: center; text-decoration: none; }
#requests a:hover { border-color: var(--accent); }
#pager { margin: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .55rem; color: var(--muted); font-size: .875rem; }
.key-list { padding: 0; margin: 0; list-style: none; }
.key-list li { padding: .85rem 1rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem 1rem; align-items: center; }
.key-info { min-width: 0; display: grid; gap: .25rem; }
.key-info strong, .key-info code { overflow-wrap: anywhere; }
.key-info span { color: var(--muted); font-size: .875rem; }
.key-info code { display: block; background: var(--accent-soft); color: var(--accent); border-radius: .42rem; padding: .45rem .55rem; max-width: 100%; width: fit-content; font-size: .87rem; }
.key-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 36rem) {
  .shell { margin-top: 1.5rem; }
  .header-inner, .shell { width: calc(100% - 1.25rem); }
  .site-header nav a { padding: .4rem .48rem; }
  .summary { gap: .4rem; }
  .summary div { padding: .65rem .45rem; }
  .summary span { overflow-wrap: anywhere; }
  #updated { margin-left: 0; width: 100%; }
  .key-list li { grid-template-columns: minmax(0, 1fr); }
}
