:root {
  color-scheme: light;
  --bg: #f3f0e8;
  --ink: #1e2422;
  --muted: #68726e;
  --panel: #fffdf7;
  --line: #d8d0c1;
  --line-strong: #9f947f;
  --accent: #146c63;
  --accent-soft: #dbeee9;
  --accent-deep: #0d433f;
  --gold: #c7832d;
  --red: #ad3b30;
  --green: #227456;
  --shadow: 0 16px 40px rgba(40, 36, 28, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(30, 36, 34, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(30, 36, 34, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.92);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 3px;
  font-size: 19px;
}

.service-pill,
.latency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.status-dot.ok {
  background: var(--green);
}

.workspace {
  width: min(1440px, calc(100% - 32px));
  margin: 22px auto 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-summary,
.panel-shot {
  min-height: 360px;
}

.stack {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

label,
.section-label {
  display: grid;
  gap: 7px;
  color: #414943;
  font-size: 14px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8bfad;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 3px solid rgba(20, 108, 99, 0.18);
  border-color: var(--accent);
}

