:root {
  color-scheme: light;
  --ink: #172524;
  --subtle: #49605b;
  --paper: #ffffff;
  --canvas: #f1f5f2;
  --line: #dce6e0;
  --accent: #135c46;
  --bad: #8b2836;
  font-family: system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
p { margin-block: 0 .8rem; }
a { color: var(--accent); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #167c60; outline-offset: 3px; }
.shell { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 4.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: flex; flex-wrap: wrap; gap: .1rem .7rem; align-items: baseline; font-weight: 750; color: var(--ink); font-size: 1.25rem; text-decoration: none; }
.brand span { font-size: .825rem; font-weight: 550; color: var(--subtle); }
main { padding-block: clamp(1.75rem, 5vw, 3rem) 4rem; }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.13; letter-spacing: -.04em; overflow-wrap: anywhere; margin: 0 0 1.5rem; }
h2 { line-height: 1.2; font-size: 1.15rem; margin: 0 0 1rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: .65rem; padding: clamp(1rem, 3vw, 1.5rem); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.panel-heading h2 { margin: 0; }
.login { width: min(100%, 30rem); margin: 2rem auto 0; }
.login h1 { margin-bottom: .75rem; }
.login form { display: grid; gap: .85rem; }
.login form p { margin: 0; }
.login > a { display: inline-block; margin-top: 1rem; font-size: .875rem; }
.join, .pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; align-items: end; gap: .85rem; }
.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
input:not([type=checkbox]), select, textarea { width: 100%; min-width: 0; padding: .58rem .7rem; border: 1px solid #93a69d; color: var(--ink); background: white; border-radius: .3rem; }
textarea { resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.65rem; padding: .45rem .82rem; border: 1px solid var(--line); border-radius: .3rem; background: white; color: var(--ink); text-decoration: none; cursor: pointer; font-size: .875rem; font-weight: 650; text-align: center; }
button:hover, .button:hover { background: #f0f6f2; }
.primary { background: var(--accent); color: white; border-color: var(--accent); }
.primary:hover { background: #0e4938; }
.quiet { border-color: transparent; }
button:disabled { opacity: .5; cursor: default; }
.compact { min-height: 2.4rem; }
.sites, .logs { margin-top: 2rem; }
.site-list { list-style: none; margin: 0; padding: 0; background: white; border: 1px solid var(--line); border-radius: .65rem; }
.site-list li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.15fr) minmax(0, .85fr); gap: .85rem; align-items: center; padding: 1.05rem 1.25rem; }
.site-list li + li { border-top: 1px solid var(--line); }
.site-name { display: grid; gap: .1rem; overflow-wrap: anywhere; }
.site-name a { color: var(--ink); font-weight: 680; }
.badges, .buttons { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.status { display: inline-flex; gap: .38rem; align-items: center; background: #edf3ef; color: #39534a; border-radius: .3rem; padding: .24rem .45rem; font-size: .78rem; font-weight: 650; }
.status::before { content: ""; width: .38rem; height: .38rem; border-radius: 50%; background: currentColor; }
.status.good { color: #175c45; background: #e5f3eb; }
.status.problem, .notice.error { color: var(--bad); background: #faedf0; }
.status.waiting { color: #6a4900; background: #fff0c9; }
.last-job { display: flex; gap: .55rem; justify-content: space-between; align-items: center; font-size: .83rem; color: var(--subtle); }
.last-job .button { margin-inline-start: auto; }
.muted, .repo, .empty, .back { color: var(--subtle); font-size: .875rem; overflow-wrap: anywhere; }
.empty { padding: 1.2rem 0; }
.notice { padding: .75rem 1rem; border-radius: .35rem; background: #e5f3eb; color: var(--accent); overflow-wrap: anywhere; }
.back { display: inline-block; margin-bottom: .65rem; }
.site-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.site-head h1 { margin-bottom: .25rem; }
.site-head p { margin: 0; }
.facts { margin: 0 0 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
dt { font-weight: 700; font-size: .84rem; margin-bottom: .35rem; }
dd { margin: 0 0 .2rem; }
.disclosure { margin-top: .55rem; padding-block: .8rem; }
.disclosure summary { cursor: pointer; font-weight: 650; padding-block: .1rem; }
.disclosure summary span { display: inline-block; margin-left: .45rem; color: var(--subtle); font-size: .78rem; font-weight: 450; }
pre { max-height: 25rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: .8rem; margin: .75rem 0 0; background: #f1f5f2; border-radius: .3rem; font-size: .8rem; }
.settings, .danger { margin-top: 1rem; }
.settings form, .danger form { display: grid; gap: .8rem; justify-items: start; padding-top: 1rem; }
.settings label:not(.check), .settings .pair, .danger label:not(.check) { width: 100%; max-width: 38rem; }
.check { display: flex; align-items: baseline; }
.destructive { color: var(--bad); border-color: #d8a0aa; }
.danger form + form { margin-top: .9rem; border-top: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 48rem) {
  .join, .site-list li { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .last-job { justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 25rem) {
  .brand span { display: none; }
  .pair { grid-template-columns: minmax(0, 1fr); }
}
