:root {
  --bg: #f5efe4;
  --bg-alt: #e8dcc8;
  --panel: rgba(255, 250, 240, 0.92);
  --panel-strong: rgba(255, 247, 233, 0.98);
  --text: #24180d;
  --muted: #6d5845;
  --line: rgba(36, 24, 13, 0.12);
  --accent: #c96b2c;
  --accent-dark: #8b4415;
  --accent-soft: rgba(201, 107, 44, 0.14);
  --ok: #2f7d54;
  --warn: #9b5d0c;
  --danger: #aa3a2a;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(70, 44, 21, 0.12);
  --font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(201, 107, 44, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(47, 125, 84, 0.14), transparent 28%),
    linear-gradient(180deg, #f8f1e5 0%, #efe2cf 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid var(--line);
  padding: 8px 14px;
  color: var(--muted);
}

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

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

.panel-header,
.panel-body,
.panel-footer {
  padding: 18px 20px;
}

.panel-header,
.panel-footer {
  background: rgba(255, 247, 233, 0.75);
}

.panel-header {
  border-bottom: 1px solid var(--line);
}

.panel-footer {
  border-top: 1px solid var(--line);
}

.panel h2,
.panel h3 {
  margin: 0;
}

.panel p {
  color: var(--muted);
}

.login-shell {
  width: min(520px, calc(100% - 28px));
  margin: 12vh auto 0;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 0.95rem;
}

.text-input,
.text-area,
.select-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff8ee;
  color: var(--text);
}

.text-area {
  min-height: 172px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 16px;
  cursor: pointer;
  background: var(--accent);
  color: #fffaf1;
  font-weight: 600;
}

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

.button.danger {
  background: var(--danger);
}

.button.ghost {
  background: rgba(255, 250, 240, 0.65);
  border-color: var(--line);
  color: var(--muted);
}

.button:hover {
  filter: brightness(0.98);
}

.code-box {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(36, 24, 13, 0.22);
  background: rgba(255, 250, 240, 0.66);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.table-list {
  display: grid;
  gap: 12px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 251, 245, 0.88);
}

.item-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.item-title {
  font-weight: 700;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.meta span,
.tag {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.84rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.tag.warn {
  background: rgba(155, 93, 12, 0.12);
  color: var(--warn);
}

.tag.critical {
  background: rgba(170, 58, 42, 0.12);
  color: var(--danger);
}

.tag.info {
  background: rgba(47, 125, 84, 0.12);
  color: var(--ok);
}

.subtle {
  color: var(--muted);
}

.checkbox-list {
  display: grid;
  gap: 8px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.75);
}

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

.empty {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
}

@media (max-width: 960px) {
  .grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }
}
