:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f9;
  color: #18202a;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 6px; padding: 10px 14px; background: #1f5f8b; color: #fff; }
button:hover { background: #174b70; }
button.ghost, button.back { background: #e7ebef; color: #17202a; }
button.ghost:hover, button.back:hover { background: #d8dee5; }

.topbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; background: #fff; border-bottom: 1px solid #dfe3e8; }
.brand { font-size: 22px; font-weight: 700; }
.muted { color: #66717d; }
main { width: min(1180px, calc(100% - 32px)); margin: 28px auto; }
.panel, .workspace { background: #fff; border: 1px solid #dfe3e8; border-radius: 8px; padding: 24px; }
.hero { margin-bottom: 22px; }
.hero h1 { margin: 0 0 6px; font-size: 30px; }
.hero p { margin: 0; color: #66717d; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.action { text-align: left; min-height: 130px; display: flex; flex-direction: column; gap: 10px; justify-content: center; background: #fff; color: #18202a; border: 1px solid #cfd7df; }
.action:hover { background: #eef5fa; border-color: #8fb6d2; }
.action span { font-size: 20px; font-weight: 700; }
.action small { color: #66717d; line-height: 1.4; }
.sectionHead { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.sectionHead h2 { margin: 0; }
.gridForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
input, textarea, select { width: 100%; border: 1px solid #cfd7df; border-radius: 6px; padding: 10px 12px; background: #fff; color: #18202a; }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.wide { grid-column: 1 / -1; }
.row { display: flex; gap: 10px; align-items: center; }
.result { white-space: pre-wrap; background: #f0f3f6; border-radius: 6px; padding: 14px; overflow: auto; }
.reviewLayout { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 18px; }
.list { display: grid; gap: 10px; margin-top: 12px; }
.listItem { border: 1px solid #dfe3e8; border-radius: 6px; padding: 12px; background: #fff; text-align: left; color: #18202a; }
.listItem:hover { background: #eef5fa; }
.detail { border: 1px solid #dfe3e8; border-radius: 6px; padding: 16px; background: #fff; min-height: 260px; overflow: auto; }
.detail pre { white-space: pre-wrap; overflow: auto; background: #f0f3f6; padding: 12px; border-radius: 6px; }
.danger { background: #9b2d30; }
.danger:hover { background: #7e2427; }
@media (max-width: 760px) {
  .actions, .gridForm, .reviewLayout { grid-template-columns: 1fr; }
  .topbar { padding: 14px 16px; }
}
select { height: 76px; padding-top: 0; padding-bottom: 0; }
