:root {
  color-scheme: light;
  --ink: #32272b;
  --muted: #8f747c;
  --line: #f0dce2;
  --paper: #fff7f8;
  --panel: rgba(255, 255, 255, 0.88);
  --rose: #e87d9a;
  --rose-deep: #b94d72;
  --rose-soft: #ffe1e9;
  --cream: #fffaf4;
  --gold: #b99a62;
  --shadow: 0 22px 56px rgba(126, 62, 82, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 196, 211, 0.62), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(255, 238, 213, 0.82), transparent 24%),
    linear-gradient(180deg, #fff8fa 0%, #fff2f5 48%, #fffaf4 100%);
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.workspace {
  display: grid;
  gap: 20px;
}

.brand-strip {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 8px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rose-deep);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: #2b2024;
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.ghost-button {
  min-height: 42px;
  border: 1px solid rgba(185, 77, 114, 0.22);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(126, 62, 82, 0.09);
  cursor: pointer;
}

.compat-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(360px, 1.3fr) minmax(220px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.panel,
.result-card {
  border: 1px solid rgba(240, 220, 226, 0.9);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
}

.section-heading {
  display: grid;
  gap: 6px;
}

.section-heading h2 {
  color: var(--rose-deep);
  font-size: 1rem;
}

.section-heading p,
.notice {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.upload-zone {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  min-height: 220px;
  overflow: hidden;
  border: 1px dashed rgba(185, 77, 114, 0.4);
  border-radius: 20px;
  color: var(--rose-deep);
  font-weight: 800;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.92), transparent 20%),
    linear-gradient(145deg, #fff, #ffe6ed 54%, #fff5e8);
  cursor: pointer;
}

.upload-zone::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  pointer-events: none;
}

.upload-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.upload-zone img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-zone.has-image img {
  display: block;
}

.upload-zone.has-image span {
  position: absolute;
  inset: auto 14px 14px;
  border-radius: 999px;
  padding: 9px 12px;
  color: #fff;
  text-align: center;
  background: rgba(185, 77, 114, 0.78);
  box-shadow: 0 10px 24px rgba(126, 62, 82, 0.18);
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(240, 220, 226, 0.95);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline-color: var(--rose);
}

.analysis-list {
  display: grid;
  gap: 12px;
}

.analysis-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(240, 220, 226, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.analysis-item div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.analysis-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.analysis-item strong {
  color: var(--rose-deep);
  font-size: 1rem;
  line-height: 1.45;
}

.analysis-item meter {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #f7e7ec;
}

.analysis-item meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: #f7e7ec;
}

.analysis-item meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #f59ab4, #b94d72);
}

.analysis-item meter::-moz-meter-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #f59ab4, #b94d72);
}

.result-card {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 242, 246, 0.9)),
    radial-gradient(circle at 88% 8%, rgba(255, 210, 221, 0.9), transparent 30%);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-topline span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.score-hero {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(240, 220, 226, 0.86);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 226, 235, 0.84)),
    radial-gradient(circle at 100% 0%, rgba(255, 197, 213, 0.7), transparent 34%);
}

.score-hero span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.score-hero strong {
  color: var(--rose-deep);
  font-size: clamp(3.2rem, 8vw, 5.2rem);
  line-height: 0.92;
}

.result-copy {
  display: grid;
  gap: 10px;
}

.result-copy h2 {
  max-width: 13ch;
  color: #35262b;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.result-copy p {
  color: #69515a;
  font-size: 1.03rem;
  line-height: 1.75;
}

.insight-list {
  display: grid;
  gap: 10px;
}

.insight {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: start;
  padding: 13px;
  border: 1px solid rgba(240, 220, 226, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.insight span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  font-weight: 850;
  background: linear-gradient(135deg, #f49ab4, #b94d72);
}

.insight p {
  color: #5f4951;
  line-height: 1.6;
}

.notice {
  max-width: 900px;
}

@media (max-width: 920px) {
  .compat-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    min-height: 500px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100vw - 20px, 1180px);
    padding: 16px 0;
  }

  .brand-strip {
    align-items: start;
    flex-direction: column;
  }

  .panel,
  .result-card {
    border-radius: 18px;
    padding: 16px;
  }

  .result-copy h2 {
    max-width: 12ch;
  }
}
