:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --text: #172026;
  --muted: #5f6c72;
  --line: #d9e0e3;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-subtle: #ccfbf1;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(245, 247, 248, 0.98)),
    var(--bg);
  line-height: 1.5;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 18px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-link:hover {
  color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.header-right form {
  margin: 0;
}

.shell {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 4px 16px rgba(23, 32, 38, 0.04);
  margin-bottom: 20px;
}

.panel-narrow {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.error {
  border: 1px solid var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.error p {
  margin: 0 0 6px;
}

.error ul {
  margin: 0;
  padding-left: 20px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

input[type="text"],
input[type="number"],
input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

input[type="range"] {
  accent-color: var(--accent);
  cursor: pointer;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover,
.button-link:hover {
  background: var(--accent-strong);
}

.button-secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  background: #f1f5f9;
  color: var(--text);
}

.button-small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.85rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 12px 10px;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 48px;
  padding: 20px 0;
  font-size: 0.85rem;
}

.chart-wrap {
  width: 540px;
  max-width: 100%;
  margin: 0 auto;
}

svg {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(23, 32, 38, 0.04);
}

.axis {
  stroke: #475569;
  stroke-width: 1.2;
}

.grid {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.pop {
  fill: rgba(100, 116, 139, 0.12);
}

.dot {
  fill: #e11d48;
  stroke: #ffffff;
  stroke-width: 2;
}

.team-dot {
  fill: rgba(15, 118, 110, 0.85);
  stroke: #ffffff;
  stroke-width: 1.5;
}

.label {
  font-family: inherit;
  font-size: 12px;
  fill: #334155;
  font-weight: 500;
}

.monospace {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
}

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

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta {
  margin: 20px 0;
  display: grid;
  gap: 12px;
}

.meta div {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.meta div:last-child {
  border-bottom: 1px solid var(--line);
}

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

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.question-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.slider-val {
  min-width: 44px;
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 600;
  color: var(--accent-strong);
}

ul.workshops-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.workshops-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

ul.workshops-list li:last-child {
  border-bottom: none;
}
