:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17373a;
  background: #f3f7f6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --teal: #0b6670;
  --line: #d8e5e3;
  --muted: #5c7476;
}
* { box-sizing: border-box; }
body { min-width: 0; min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
.topbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(18px, env(safe-area-inset-left)); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--teal); font-weight: 750; letter-spacing: .01em; text-decoration: none; }
.mark { width: 34px; height: 34px; flex: 0 0 auto; }
.environment { padding: 6px 10px; border-radius: 999px; background: #e8f3f1; color: #145d62; font-size: 12px; font-weight: 650; text-align: center; }
.page { width: min(820px, 100%); flex: 1; margin: 0 auto; padding: 30px 18px 42px; }
.intro { max-width: 630px; margin: 0 0 25px; }
.eyebrow { margin: 0 0 7px; color: var(--teal); font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: 0; color: #14383c; font-size: clamp(29px, 8vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
.intro > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 32px #123b3c0a; }
h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.muted { color: var(--muted); font-size: 13px; }
.login-panel { max-width: 440px; margin: 0 auto; }
.login-panel form { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 6px; color: #31575a; font-size: 13px; font-weight: 650; }
input { min-width: 0; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #bdd2d0; border-radius: 10px; background: #fff; color: #17373a; font: inherit; }
input:focus-visible, button:focus-visible { outline: 3px solid #75c6c5; outline-offset: 2px; }
.button { min-height: 40px; padding: 9px 14px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.button:disabled { opacity: .55; cursor: wait; }
.primary { background: var(--teal); color: #fff; }
.secondary { border-color: #bbd4d1; background: #fff; color: #155c62; }
.text { background: transparent; color: #4e6e70; }
.error { color: #a13832; font-size: 13px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.toolbar .muted { margin: 0; }
.toolbar-actions { display: flex; align-items: center; gap: 5px; }
.status { min-height: 20px; margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.status.error { color: #a13832; }
.fixture-list { display: grid; gap: 14px; }
.fixture { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 5px 18px #123b3c08; }
.fixture-head { padding: 15px 16px 12px; border-bottom: 1px solid #e8efee; }
.fixture-head h2 { font-size: 16px; }
.fixture-meta { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.action { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 15px 16px; }
.action + .action { border-top: 1px solid #e8efee; }
.action-text { margin: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.state { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #62787a; font-size: 12px; }
.state::before { width: 7px; height: 7px; border-radius: 50%; background: #8ca1a0; content: ""; }
.state.completed { color: #146451; }
.state.completed::before { background: #2c9b78; }
.history { margin-top: 8px; color: #63797a; font-size: 11px; line-height: 1.5; }
.history p { margin: 2px 0; }
footer { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: #698082; font-size: 11px; }
[hidden] { display: none !important; }
@media (max-width: 430px) {
  .topbar { align-items: flex-start; padding-right: 12px; padding-left: 12px; }
  .environment { max-width: 178px; font-size: 10px; }
  .page { padding: 24px 13px 32px; }
  .panel { padding: 18px 15px; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
  .action { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
  .action .button { justify-self: start; }
  footer { flex-direction: column; }
}
