:root {
  --bg: var(--p3-b446a0d15a,#f2f0ea);
  --panel: var(--p3-301d63aab1,rgba(255, 255, 255, 0.82));
  --panel-border: var(--p3-debc77ee2a,rgba(24, 34, 44, 0.08));
  --text: var(--p3-f0db94e630,#18222c);
  --muted: var(--p3-7e47ed1132,#66717c);
  --accent: var(--p3-5960447d83,#d40511);
  --accent-dark: var(--p3-0de57ce09c,#aa0812);
  --shadow: 0 24px 60px var(--p3-debc77ee2a,rgba(24, 34, 44, 0.08));
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--p3-ac88302dc4,rgba(212, 5, 17, 0.11)), var(--p3-2923c2e2c2,transparent) 28%),
    linear-gradient(180deg, var(--p3-eef6da34e0,#f8f6f1) 0%, var(--bg) 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero {
  margin-bottom: 28px;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.language-switch {
  display: flex;
  gap: 8px;
}

.language-switch button {
  min-width: 56px;
  padding: 10px 14px;
}

.language-switch .is-active {
  color: var(--p3-7673b214d9,white);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.intro {
  max-width: 58ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

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

label {
  display: grid;
  gap: 8px;
}

label span,
.hint,
.panel-header p,
.summary,
.format-list {
  color: var(--muted);
}

input,
select,
textarea,
button {
  border-radius: 16px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--p3-a9b2338666,rgba(24, 34, 44, 0.12));
  background: var(--p3-2cf56a522a,rgba(255, 255, 255, 0.9));
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

textarea {
  min-height: 320px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--p3-4274b16a8f,rgba(212, 5, 17, 0.65));
  box-shadow: 0 0 0 4px var(--p3-a64ab396dd,rgba(212, 5, 17, 0.12));
}

.panel-header,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

button {
  border: 0;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--p3-7673b214d9,white);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

button.secondary {
  color: var(--text);
  background: var(--p3-a97d031172,rgba(24, 34, 44, 0.06));
}

.summary {
  margin-left: auto;
}

@media (max-width: 860px) {
  .panel-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .panel-header,
  .actions,
  .hero-top {
    flex-direction: column;
    align-items: stretch;
  }

  .summary {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }

  button,
  input,
  select,
  textarea {
    transition: none;
  }
}

.summary.is-error {
  color: var(--p3-6b4ea64045,#b42318);
}

/* Display-P3 palette; original sRGB values remain as var() fallbacks. */
@supports (color: color(display-p3 1 0 0)) {
  @media (color-gamut: p3) {
    :root {
      --p3-0de57ce09c: color(display-p3 0.666667 0.031373 0.070588);
      --p3-2923c2e2c2: color(display-p3 0 0 0 / 0);
      --p3-2cf56a522a: color(display-p3 1 1 1 / 0.9);
      --p3-301d63aab1: color(display-p3 1 1 1 / 0.82);
      --p3-4274b16a8f: color(display-p3 0.831373 0.019608 0.066667 / 0.65);
      --p3-5960447d83: color(display-p3 0.831373 0.019608 0.066667);
      --p3-6b4ea64045: color(display-p3 0.705882 0.137255 0.094118);
      --p3-7673b214d9: color(display-p3 1 1 1);
      --p3-7e47ed1132: color(display-p3 0.4 0.443137 0.486275);
      --p3-a64ab396dd: color(display-p3 0.831373 0.019608 0.066667 / 0.12);
      --p3-a97d031172: color(display-p3 0.094118 0.133333 0.172549 / 0.06);
      --p3-a9b2338666: color(display-p3 0.094118 0.133333 0.172549 / 0.12);
      --p3-ac88302dc4: color(display-p3 0.831373 0.019608 0.066667 / 0.11);
      --p3-b446a0d15a: color(display-p3 0.94902 0.941176 0.917647);
      --p3-debc77ee2a: color(display-p3 0.094118 0.133333 0.172549 / 0.08);
      --p3-eef6da34e0: color(display-p3 0.972549 0.964706 0.945098);
      --p3-f0db94e630: color(display-p3 0.094118 0.133333 0.172549);
    }
  }
}
