:root {
  color-scheme: light;
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --ink: #1d2733;
  --muted: #657384;
  --line: #d9e0e8;
  --brand: #126a75;
  --brand-dark: #0e545d;
  --success: #167153;
  --danger: #b44141;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease;
}

button:hover {
  background: var(--brand-dark);
  box-shadow: 0 8px 18px rgba(18, 106, 117, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  width: fit-content;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: white;
}

.shell {
  min-height: 100vh;
  padding: clamp(18px, 5vw, 48px);
}

.workspace {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.page-title,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.notice {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 13px 16px;
  background: #fff8e8;
  border: 1px solid #edd39e;
  border-radius: 6px;
  color: #73420a;
  font-weight: 650;
}

.notice.ok {
  background: #ecf8f3;
  border-color: #b8dfd0;
  color: var(--success);
}

.notice.error {
  background: #fff0f0;
  border-color: #efc1c1;
  color: var(--danger);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

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

.summary article,
.details {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary span,
.admin-result span,
dt {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary strong,
.admin-result strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1.25rem;
}

.details {
  display: grid;
  align-content: start;
  gap: 18px;
}

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

dl div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 650;
}

.admin-panel {
  min-height: 210px;
}

.admin-result {
  padding: 16px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

@media (max-width: 760px) {
  .page-title,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  button {
    width: 100%;
  }
}
