:root {
  color-scheme: light;
  --bg: #f4f2ec;
  --panel: #ffffff;
  --ink: #1c2430;
  --muted: #667085;
  --line: #d8d2c4;
  --accent: #b42318;
  --accent-dark: #7a271a;
  --soft: #fff7ed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f4ea 0%, #f2f4f7 55%, #e9eef5 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding: 3rem clamp(1rem, 4vw, 4rem) 2rem;
}

.eyebrow {
  margin: 0 0 .5rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: .98;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

.hero-card {
  min-width: 280px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 20px 45px rgba(16, 24, 40, .08);
}

.hero-card span {
  display: block;
  color: var(--muted);
  font-size: .86rem;
}

.hero-card strong {
  display: block;
  margin-top: .5rem;
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
}

.layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 380px)) 1fr;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 4rem) 3rem;
}

.auth-shell {
  max-width: 480px;
  margin: 0 clamp(1rem, 4vw, 4rem) 3rem;
}

.app-shell[hidden],
.auth-shell[hidden] {
  display: none;
}

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

.account-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.account-box[hidden] {
  display: none;
}

.account-box span {
  color: var(--muted);
}

.account-box button {
  width: auto;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  padding: .55rem .8rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
  padding: 1.2rem;
}

.wide {
  grid-column: span 2;
}

.form-grid,
.wire-form {
  display: grid;
  gap: .8rem;
}

.compact-form {
  margin-top: 1rem;
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

label {
  display: grid;
  gap: .35rem;
  color: var(--muted);
  font-size: .9rem;
}

input,
select,
textarea,
button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  padding: .75rem .85rem;
}

textarea {
  font-family: "Courier New", monospace;
  resize: vertical;
}

button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.secondary-button:hover {
  background: #f9fafb;
}

.section-title {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.section-title button {
  width: auto;
  padding: .55rem .8rem;
}

.component-list {
  display: grid;
  gap: .8rem;
}

.status {
  border: 1px solid #fedf89;
  border-radius: 12px;
  background: #fffaeb;
  color: #93370d;
  padding: .7rem .85rem;
}

.status:empty {
  display: none;
}

.component-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.component-head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .8rem 1rem;
  background: var(--soft);
}

.component-head strong {
  font-family: "Courier New", monospace;
}

.meta,
.terminal-grid,
.wire-list {
  padding: .8rem 1rem;
}

.meta {
  color: var(--muted);
  font-size: .92rem;
}

.terminal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.terminal-grid::before {
  content: "Klemmen:";
  flex-basis: 100%;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .82rem;
}

.terminal {
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  background: #eff4ff;
  color: #1d3d8f;
  font-family: "Courier New", monospace;
  font-size: .86rem;
  padding: .35rem .55rem;
}

.wire-form {
  grid-template-columns: 1fr 1fr .65fr auto;
  align-items: end;
}

.wire-list {
  display: grid;
  gap: .5rem;
  padding-inline: 0;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.wire-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .9rem;
  background: #fff;
  font-family: "Courier New", monospace;
}

.wire-row span {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.small-button {
  width: auto;
  padding: .4rem .6rem;
}

@media (max-width: 900px) {
  .hero,
  .layout,
  .wire-form {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: span 1;
  }

  .hero-card {
    min-width: 0;
  }
}
