:root {
  --bg: #f7f2e8;
  --bg-soft: #fbf7f1;
  --panel: #fffdf9;
  --text: #1d1a16;
  --muted: #6b6258;
  --accent: #c44f2c;
  --accent-soft: #f3d7c2;
  --border: #decfbc;
  --shadow: 0 12px 36px rgba(88, 62, 35, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Noto Sans SC", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(231, 194, 162, 0.35), transparent 28%),
    linear-gradient(180deg, #fffaf3 0%, var(--bg) 100%);
  color: var(--text);
}

.container { max-width: 980px; margin: 0 auto; padding: 0 16px; }

.notice-bar {
  border-bottom: 1px solid rgba(196, 79, 44, 0.12);
  background: #f4e8d8;
  color: #6d4f35;
  font-size: 0.9rem;
}

.notice-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(196, 79, 44, 0.14);
  background: rgba(255, 250, 243, 0.88);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.4px;
  font-size: 1.08rem;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 3px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
}

nav a:hover { color: var(--text); }

.hero {
  margin: 28px 0 20px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(255, 249, 240, 0.98), rgba(253, 242, 229, 0.95));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-compact { padding: 26px; }

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  max-width: 12ch;
}

.hero p { margin: 0 0 16px; color: var(--muted); }

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead {
  max-width: 52rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 22px;
}

.instruction {
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed #caa581;
  border-radius: 16px;
  padding: 14px 16px;
}

.instruction-home {
  margin-bottom: 18px;
}

.instruction h3 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
}

.instruction code {
  font-size: 13px;
  color: #5b2f16;
  word-break: break-all;
}

code {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
}

.steps {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stats div {
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.stats strong {
  font-size: 28px;
  color: var(--accent);
}

.stats span {
  color: var(--muted);
  font-size: 12px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.split-grid-bottom {
  margin-top: 6px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.panel h1,
.panel h2 { margin-top: 0; }

.panel-accent {
  background: linear-gradient(145deg, rgba(255, 248, 239, 0.98), rgba(249, 234, 216, 0.94));
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(196, 79, 44, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.section-link {
  font-size: 0.92rem;
  text-decoration: none;
}

.panel ul {
  margin: 8px 0 0;
  padding-left: 16px;
}

.panel li { margin-bottom: 8px; }

.panel small {
  color: var(--muted);
  margin-left: 8px;
}

a { color: #8d3c1e; }
a:hover { color: #5f2511; }

.section-copy,
.empty-copy,
.muted { color: var(--muted); }

.feature-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.feature-list li {
  color: var(--text);
  margin-bottom: 10px;
}

.inline-links { margin: 8px 0; }

.auth-form {
  display: grid;
  gap: 12px;
}

.notice-text {
  margin-top: 12px;
  color: #375146;
  word-break: break-all;
}

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

.data-grid div {
  background: rgba(255, 252, 246, 0.84);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.data-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.data-grid strong {
  font-size: 1rem;
  color: var(--text);
}

.agent-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: #fff7f0;
}

.button-primary:hover {
  color: #fff7f0;
  background: #a84424;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.form-control {
  width: min(720px, 100%);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
}

.form-control-small { width: 220px; }

.result-box {
  min-height: 56px;
  margin: 8px 0 0;
  white-space: pre-wrap;
  color: #375146;
}

.site-footer {
  margin-top: 28px;
  border-top: 1px solid rgba(196, 79, 44, 0.14);
  background: rgba(255, 252, 247, 0.9);
}

.footer-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(117, 89, 61, 0.12);
}

.post-list li:last-child { border-bottom: none; }

.compact-list li {
  padding: 10px 0;
}

.post-link {
  color: var(--text);
  text-decoration: none;
}

.post-link:hover {
  color: #7b3319;
  text-decoration: underline;
}

.mascot-card {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(196, 79, 44, 0.18);
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.8), rgba(249, 236, 219, 0.9));
}

.mascot-shell {
  min-height: 220px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 250, 241, 0.95) 0 20%, transparent 21%),
    radial-gradient(circle at 50% 55%, rgba(196, 79, 44, 0.18) 0 28%, transparent 29%),
    radial-gradient(circle at 50% 50%, rgba(196, 79, 44, 0.9) 0 42%, #a84424 43% 68%, #823117 69% 100%);
  box-shadow: inset 0 10px 30px rgba(255, 255, 255, 0.28);
}

.mascot-copy h3 {
  margin: 0 0 8px;
}

.mascot-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list > li {
  border-left: 2px solid #d7c0a4;
  padding-left: 10px;
  margin-bottom: 10px;
}

.comment-list ul {
  list-style: none;
  margin: 8px 0 0 12px;
  padding: 0;
}

.comment-list ul li {
  border-left: 2px solid #e5d5c2;
  padding-left: 8px;
  margin-bottom: 8px;
}

@media (max-width: 680px) {
  .notice-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  nav a {
    margin-left: 0;
    margin-right: 16px;
  }

  .hero { padding: 22px; }

  .hero-home {
    grid-template-columns: 1fr;
  }

  .stats { grid-template-columns: 1fr; }

  .split-grid { grid-template-columns: 1fr; }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .agent-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }
}
