:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #20242b;
  --muted: #68707d;
  --line: #dfe3ea;
  --accent: #ce342f;
  --accent-dark: #ad2824;
  --ok: #208a49;
  --warn: #a55b00;
  --shadow: 0 12px 30px rgba(20, 26, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 32px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.15;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

.status {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
}

.status.ok {
  color: var(--ok);
  border-color: rgba(32, 138, 73, 0.3);
}

.status.bad {
  color: var(--accent);
  border-color: rgba(206, 52, 47, 0.35);
}

.layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
}

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

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

input,
select {
  width: 100%;
  margin-top: 8px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(206, 52, 47, 0.18);
  border-color: var(--accent);
}

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

button,
.link-button {
  height: 42px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.launch-panel .primary {
  width: 100%;
  margin-top: 8px;
}

.icon {
  width: 42px;
  padding: 0;
  font-size: 18px;
}

.danger {
  color: var(--accent);
  border-color: rgba(206, 52, 47, 0.3);
}

.empty {
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.hidden {
  display: none;
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

dd {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.warnings {
  margin-top: 16px;
  color: var(--warn);
  font-size: 13px;
  line-height: 1.5;
}

.detail-panel {
  margin-top: 18px;
}

pre {
  margin: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: #f9fafb;
  color: #303640;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .shell {
    width: min(100vw - 24px, 680px);
    padding: 20px 0;
  }

  .topbar,
  .layout {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .actions {
    flex-direction: column;
  }

  .actions > * {
    width: 100%;
  }
}
