@font-face {
  font-family: "Inter Tight";
  src: url("./inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* CoAI Work production theme.css and portal-recipes.ts. */
:root {
  color-scheme: light dark;
  --background: #fcfdfe;
  --foreground: #161c2d;
  --card: #fff;
  --muted: #f5faff;
  --muted-foreground: #5b6278;
  --accent: #e6f8fb;
  --border: #e7e9ed;
  --link: #086f7e;
  --link-hover: #065a66;
  --success: #0f7a43;
  --success-tint: #e8fff3;
  --warning: #7a4a00;
  --warning-tint: #fdf2e2;
  --radius: .5rem;
  --shadow-card: 0 0 1px rgb(0 0 0 / 7%), 0 2px 24px rgb(0 0 0 / 6%);
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1a1a1c;
    --foreground: #e4e6eb;
    --card: #222225;
    --muted: #26272a;
    --muted-foreground: #909497;
    --accent: #123036;
    --border: #34363a;
    --link: #4ad6e8;
    --link-hover: #8be6f1;
    --success: #3fb27a;
    --success-tint: #142a20;
    --warning: #c98a2b;
    --warning-tint: #33291a;
    --shadow-card: none;
  }
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-decoration: none; text-underline-offset: .2em; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.wrap { width: min(100% - 2rem, 56rem); margin-inline: auto; }
.top { background: var(--card); border-bottom: 1px solid var(--border); }
.top-inner, nav, .foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top-inner { justify-content: space-between; min-height: 4rem; }
.brand { color: var(--foreground); display: inline-flex; align-items: center; gap: .55rem; font-weight: 650; white-space: nowrap; }
.brand img { display: block; }
nav, .foot { font-size: .875rem; font-weight: 550; }
.subscribe { border: 1px solid var(--link); border-radius: .375rem; padding: .32rem .65rem; }
.summary {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2.5rem); margin: 2rem 0 0; border: 1px solid var(--border);
  border-radius: var(--radius); background: linear-gradient(135deg, var(--muted), var(--accent));
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.875rem, 5vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; }
.summary div > p { margin-top: .5rem; color: var(--muted-foreground); font-size: .875rem; }
.section { margin-top: 2rem; }
.section > h2 { margin-bottom: .65rem; font-size: 1.25rem; letter-spacing: -.01em; }
.components, .history { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.components { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); list-style: none; padding: 0; }
.component { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; justify-content: space-between; background: var(--card); padding: .9rem 1rem; }
.component h3, .history h3 { font-size: .975rem; font-weight: 650; }
.indicator {
  display: inline-flex; align-items: center; width: fit-content; gap: .42rem; white-space: nowrap;
  padding: .24rem .55rem; border-radius: .375rem; background: var(--muted); color: var(--muted-foreground); font-size: .78rem; font-weight: 650;
}
.indicator::before { content: ''; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.indicator.operational { color: var(--success); background: var(--success-tint); }
.indicator.investigating, .indicator.degraded { color: var(--warning); background: var(--warning-tint); }
.indicator.pending, .indicator.checking { color: var(--link); background: var(--accent); }
.history { background: var(--card); }
.history article + article { border-top: 1px solid var(--border); }
.history > p, .history article { padding: 1rem; }
.history p { font-size: .875rem; color: var(--muted-foreground); }
.incident-meta { margin-bottom: .25rem; }
.incident-message { margin-top: .25rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.foot { min-height: 4.5rem; }

@media (max-width: 43rem) {
  .components { grid-template-columns: 1fr; }
}
