:root {
  color-scheme: light;
  --bg: #eef4f5;
  --panel: #ffffff;
  --text: #17212b;
  --muted: #64717d;
  --line: #d8e2e5;
  --brand: #0f6f78;
  --brand-strong: #0a5961;
  --accent: #238451;
  --warn: #a33a3a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1.15fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 48px) 48px;
}

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

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f3ef;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.status.muted {
  background: #eef2f4;
  color: var(--muted);
}

.lead {
  color: var(--muted);
  line-height: 1.75;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

a, button {
  font: inherit;
}

.header-link,
.primary-button,
.secondary-button,
.hearing-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.header-link,
.primary-button,
.hearing-form button {
  background: var(--brand);
  color: #fff;
}

.secondary-button,
.ghost-button {
  background: #fff;
  color: var(--brand);
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

dd {
  margin: 0;
  line-height: 1.6;
}

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

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.wide,
.form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 860px) {
  .app-header,
  .layout,
  .hearing-form {
    grid-template-columns: 1fr;
  }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .layout {
    padding-bottom: 32px;
  }
}
