:root {
  --ink: #171713;
  --muted: #68685f;
  --paper: #f4f1e9;
  --surface: rgba(255, 255, 255, 0.65);
  --line: rgba(23, 23, 19, 0.14);
  --acid: #d9ff43;
  --blue: #6277ff;
  --coral: #ff735f;
  --shadow: 0 24px 70px rgba(37, 36, 28, 0.11);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(23, 23, 19, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 19, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

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

button,
select,
label[for] {
  cursor: pointer;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.24;
  pointer-events: none;
}

.ambient-one {
  top: -12rem;
  right: -8rem;
  background: var(--acid);
}

.ambient-two {
  bottom: 8rem;
  left: -18rem;
  background: #8f9cff;
}

.topbar,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand small {
  margin-left: 5px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-family: Georgia, serif;
  font-style: italic;
}

.topbar-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.user-menu {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  padding-left: 4px;
}

.user-menu span {
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu .credit-pill {
  max-width: none;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(217, 255, 67, 0.34);
  font-weight: 850;
}

.account-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: min(280px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(37, 36, 28, 0.14);
}

.account-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.account-panel div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.account-panel dt,
.account-panel dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.account-panel dt {
  color: var(--muted);
  font-weight: 750;
}

.account-panel dd {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 800;
}

.version-pill {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.language-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.language-switcher span {
  white-space: nowrap;
}

.language-switcher select {
  min-width: 128px;
  height: 36px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  outline: 0;
}

.language-switcher select:focus {
  border-color: var(--blue);
}

.status {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7a82c;
  box-shadow: 0 0 0 4px rgba(215, 168, 44, 0.12);
}

.status.ready .status-dot {
  background: #74a829;
  box-shadow: 0 0 0 4px rgba(116, 168, 41, 0.12);
}

.status.error .status-dot {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 115, 95, 0.12);
}

.auth-required main {
  display: none;
}

.auth-panel {
  width: min(520px, calc(100% - 40px));
  margin: 66px auto 40px;
}

.auth-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0 0 12px;
  font-size: 32px;
  letter-spacing: -0.055em;
}

.auth-card > p:not(.card-kicker):not(.form-error) {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

.compact-button {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 11px;
}

.hero {
  padding: 88px 0 62px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.2em;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(54px, 8vw, 105px);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.hero h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--blue);
}

.hero-copy {
  max-width: 620px;
  margin: 38px 0 0 auto;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.025em;
  color: var(--muted);
}

.trust-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.trust-panel article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.trust-panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.035em;
}

.trust-panel p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.upload-panel,
.brief-panel {
  padding: 38px;
}

.brief-panel {
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.section-heading > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--acid);
  font-size: 11px;
  font-weight: 800;
}

.section-heading p {
  margin: 1px 0 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.drop-zone {
  position: relative;
  display: grid;
  min-height: 470px;
  overflow: hidden;
  border: 1px dashed rgba(23, 23, 19, 0.3);
  border-radius: 20px;
  background: rgba(244, 241, 233, 0.6);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: var(--blue);
  background: rgba(98, 119, 255, 0.06);
  transform: translateY(-2px);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.empty-state strong {
  margin-top: 12px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.empty-state span,
.empty-state small {
  color: var(--muted);
}

.empty-state small {
  margin-top: 18px;
  font-size: 11px;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 29px;
  transform: rotate(-45deg);
}

.preview-state {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview-state img {
  display: block;
  width: 100%;
  height: 470px;
  object-fit: contain;
  background: #151513;
}

.preview-meta {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-radius: 12px;
  color: white;
  background: rgba(15, 15, 13, 0.76);
  backdrop-filter: blur(16px);
  font-size: 11px;
}

.preview-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replace-button {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 9px 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 750;
}

.privacy-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 14px 2px 0;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}

.field {
  position: relative;
  display: block;
  margin-bottom: 23px;
}

.field > span,
.field legend {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 750;
}

.field > span small {
  margin-left: 5px;
  color: var(--muted);
  font-weight: 450;
}

.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 150ms ease;
}

.field select {
  height: 48px;
  padding: 0 13px;
}

.field textarea {
  min-height: 92px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.45;
}

.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
}

.counter {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 2px 4px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  font-size: 9px;
}

.mode-field {
  padding: 0;
  border: 0;
}

.profile-note {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.profile-note strong {
  font-size: 12px;
}

.profile-note small {
  color: var(--muted);
  font-size: 10px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.segmented label {
  position: relative;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented label > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.55);
  transition: 150ms ease;
}

.segmented input:checked + span {
  border-color: var(--ink);
  color: white;
  background: var(--ink);
}

.segmented strong {
  font-size: 12px;
}

.segmented small {
  font-size: 9px;
  color: var(--muted);
}

.segmented input:checked + span small {
  color: rgba(255, 255, 255, 0.66);
}

.language-field {
  margin-bottom: 18px;
}

.editor-field {
  margin-bottom: 28px;
}

.consent-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.consent-box input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}

.consent-box a {
  color: var(--ink);
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.consent-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(98, 119, 255, 0.12);
}

.analyze-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 17px 18px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(98, 119, 255, 0.24);
  font-weight: 750;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.analyze-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.analyze-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.analyze-button b {
  font-size: 20px;
}

.form-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: #b83e2d;
  font-size: 11px;
  line-height: 1.45;
}

.form-note,
.result-credit-note {
  min-height: 18px;
  margin: 8px 0 0;
  color: #49612c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.result-credit-note {
  flex: 1 0 100%;
  margin: -6px 0 0;
  text-align: right;
}

.report-brief {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 40px rgba(37, 36, 28, 0.05);
}

.report-photo-wrap {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  background: #171713;
}

.report-photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}

.report-photo-wrap > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  overflow: hidden;
  padding: 9px 11px;
  border-radius: 8px;
  color: white;
  background: rgba(15, 15, 13, 0.74);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.report-brief-copy {
  padding: 30px;
}

.report-brief-copy h3 {
  margin: 0 0 15px;
  font-size: 27px;
  letter-spacing: -0.05em;
}

.brief-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.brief-chips span {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--acid);
  font-size: 8px;
  font-weight: 800;
}

.brief-intent {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.brief-intent small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brief-intent p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.analysis-meta {
  padding: 12px;
  border-radius: 10px;
  background: rgba(98, 119, 255, 0.08);
}

.analysis-meta p + p {
  margin-top: 8px;
}

.loading-panel,
.results {
  margin-top: 60px;
}

.loading-panel {
  position: relative;
  overflow: hidden;
  padding: 90px 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  text-align: center;
  background: #191915;
  color: white;
}

.loading-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -0.05em;
}

.loading-panel > p:last-child {
  color: rgba(255, 255, 255, 0.58);
}

.scanner {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--acid);
  box-shadow: 0 0 28px 8px rgba(217, 255, 67, 0.3);
  animation: scan 2.2s ease-in-out infinite alternate;
}

@keyframes scan {
  from {
    left: 10%;
  }
  to {
    left: 90%;
  }
}

.results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.results-header h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.06em;
}

.ghost-button {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.pdf-button {
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(98, 119, 255, 0.22);
  font-size: 11px;
  font-weight: 750;
}

.score-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 38px;
  align-items: center;
  padding: 38px;
  border-radius: 24px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.score-ring {
  --score: 0;
  display: grid;
  place-content: center;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, var(--ink) 82%, transparent 84% 99%),
    conic-gradient(var(--acid) calc(var(--score) * 1%), #35352f 0);
  text-align: center;
}

.score-ring span {
  font-size: 56px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.score-ring small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

.verdict .category {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--acid);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verdict h3 {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: clamp(27px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.verdict p {
  max-width: 750px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.verdict small {
  color: rgba(255, 255, 255, 0.42);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.result-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 40px rgba(37, 36, 28, 0.05);
}

.result-card h3 {
  margin: 0 0 24px;
  font-size: 24px;
  letter-spacing: -0.045em;
}

.editorial-card {
  background: rgba(23, 23, 19, 0.94);
  color: white;
}

.editorial-card .card-kicker,
.editorial-meta small {
  color: var(--acid);
}

.editorial-decision {
  margin: -10px 0 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.editorial-meta {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.editorial-meta + .editorial-meta {
  margin-top: 14px;
}

.editorial-meta small {
  display: block;
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.55;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.evidence-item {
  padding: 10px;
  border-radius: 8px;
  background: rgba(98, 119, 255, 0.07);
}

.evidence-item small,
.evidence-item strong {
  display: block;
}

.evidence-item small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.evidence-item strong {
  font-size: 11px;
}

.crop-card {
  margin-top: 16px;
}

.crop-card h3 {
  margin-bottom: 0;
}

.crop-preview {
  position: relative;
  max-width: 720px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink);
}

.crop-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.crop-overlays {
  position: absolute;
  inset: 0;
}

.crop-overlay {
  position: absolute;
  border: 2px solid var(--acid);
  background: rgba(217, 255, 67, 0.06);
  box-shadow: inset 0 0 0 1px rgba(23, 23, 19, 0.5);
}

.crop-overlay-2 {
  border-color: #72d7ff;
}

.crop-overlay-3 {
  border-color: #ffb86b;
}

.crop-overlay-4 {
  border-color: #ff8fb1;
}

.crop-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.crop-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.crop-legend i {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--acid);
}

.crop-legend-2 i {
  background: #72d7ff;
}

.crop-legend-3 i {
  background: #ffb86b;
}

.crop-legend-4 i {
  background: #ff8fb1;
}

.crop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  margin-top: 22px;
}

.crop-item {
  min-width: 0;
  min-height: 86px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(23, 23, 19, 0.055);
}

.crop-item.recommended {
  background: rgba(217, 255, 67, 0.24);
}

.crop-item.rejected {
  border: 1px solid rgba(255, 115, 95, 0.25);
  background: rgba(255, 115, 95, 0.08);
}

.crop-item.rejected small:first-child {
  color: var(--coral);
}

.crop-item small,
.crop-item strong {
  display: block;
}

.crop-item small {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crop-item strong {
  font-size: 12px;
  line-height: 1.45;
}

.crop-item p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

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

.crop-meta span {
  margin-right: 5px;
  color: var(--ink);
  font-weight: 850;
}

.quick-report .technical-card,
.quick-report .creative-card,
.quick-report .limitations-card {
  display: none;
}

.quick-report .score-hero {
  padding: 28px;
}

.quick-report .score-hero h3 {
  font-size: clamp(26px, 4vw, 40px);
}

.quick-report .result-card,
.quick-report .lightroom-card {
  padding: 24px;
}

.quick-report .crop-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-report .crop-item {
  min-height: 0;
  padding: 10px;
}

.quick-report .recipe-layout {
  grid-template-columns: 1fr;
}

.quick-report .recipe-layout > div,
.quick-report .recipe-lower > div,
.quick-report .recipe-checks > div {
  padding: 16px;
}

.quick-report .recipe-step {
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.quick-report .recipe-details {
  grid-template-columns: 0.7fr 1.3fr;
  gap: 4px 10px;
  margin: 9px 0;
}

.quick-report .recipe-details dt,
.quick-report .recipe-details dd {
  margin: 0;
}

.quick-report .recipe-step p,
.quick-report .mask-card p,
.quick-report .cleanup-item p {
  margin: 5px 0 4px;
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--blue);
}

.score-row {
  display: grid;
  grid-template-columns: 100px 1fr 54px 76px;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.score-label {
  font-size: 11px;
  font-weight: 750;
}

.score-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 23, 19, 0.09);
}

.score-bar i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.score-value {
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.score-rating {
  padding: 4px 6px;
  border-radius: 5px;
  color: var(--ink);
  background: var(--acid);
  font-size: 8px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.score-comment {
  grid-column: 1 / -1;
  margin: -6px 0 4px;
  padding-left: 112px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

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

.insight-list li {
  position: relative;
  margin-bottom: 13px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.insight-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "→";
  color: var(--blue);
  font-weight: 800;
}

.positive li::before {
  content: "✓";
  color: #6c9727;
}

.improvement {
  margin-bottom: 17px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.improvement:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.improvement-heading {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.priority {
  padding: 3px 6px;
  border-radius: 4px;
  color: white;
  background: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.priority.high {
  background: var(--coral);
}

.priority.medium {
  color: var(--ink);
  background: #efc74e;
}

.improvement strong {
  font-size: 12px;
}

.improvement p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.improvement .action {
  color: var(--ink);
  font-weight: 650;
}

.edit-card {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 40px;
  margin-top: 16px;
  color: white;
  background: var(--blue);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: edit-step;
}

.timeline li {
  position: relative;
  padding: 0 0 25px 44px;
  counter-increment: edit-step;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline li::before {
  position: absolute;
  top: -3px;
  left: -15px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: var(--blue);
  background: white;
  content: counter(edit-step);
  font-size: 10px;
  font-weight: 850;
}

.timeline strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.timeline p {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.5;
}

.timeline small {
  color: rgba(255, 255, 255, 0.48);
}

.caveat-card {
  background: rgba(217, 255, 67, 0.2);
}

.feedback-card {
  background: rgba(98, 119, 255, 0.08);
}

.feedback-card p {
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.feedback-form .field {
  gap: 7px;
}

.feedback-form .field > span,
.feedback-consent span {
  font-size: 11px;
  font-weight: 750;
}

.feedback-message-field,
.feedback-consent,
.feedback-form .feedback-link,
.feedback-form .form-note {
  grid-column: 1 / -1;
}

.feedback-message-field textarea {
  min-height: 96px;
  resize: vertical;
}

.feedback-consent {
  margin: 0;
}

.feedback-link {
  display: inline-flex;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.lightroom-card {
  margin-top: 16px;
  padding: 36px;
  background: #f8f9ff;
}

.lightroom-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.editor-badge,
.panel-pill,
.value-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.editor-badge {
  padding: 7px 10px;
  color: white;
  background: var(--blue);
}

.recipe-strategy {
  max-width: 900px;
  margin: -8px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.recipe-layout,
.recipe-lower,
.recipe-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.recipe-layout > div,
.recipe-lower > div,
.recipe-checks > div {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.recipe-lower,
.recipe-checks {
  margin-top: 18px;
}

.lightroom-card h4 {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.recipe-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: recipe-step;
}

.recipe-step {
  position: relative;
  margin-bottom: 19px;
  padding: 0 0 19px 34px;
  counter-increment: recipe-step;
  border-bottom: 1px solid var(--line);
}

.recipe-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.recipe-step::before {
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  content: counter(recipe-step);
  font-size: 9px;
  font-weight: 850;
}

.recipe-step.optional::before {
  color: var(--ink);
  background: var(--acid);
}

.recipe-step-header {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.recipe-step-header strong {
  font-size: 12px;
}

.panel-pill {
  padding: 4px 7px;
  color: var(--blue);
  background: rgba(98, 119, 255, 0.1);
}

.value-pill {
  padding: 4px 7px;
  color: var(--ink);
  background: var(--acid);
}

.recipe-step p,
.mask-card p,
.cleanup-item p {
  margin: 7px 0 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.recipe-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0;
}

.recipe-details dt,
.recipe-details dd {
  margin: 0;
}

.recipe-details dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipe-details dd {
  margin-top: -5px;
  font-size: 11px;
  font-weight: 800;
}

.recipe-step small,
.mask-card small,
.cleanup-item small {
  color: #8a675f;
  font-size: 9px;
  line-height: 1.45;
}

.mask-card {
  margin-bottom: 12px;
  padding: 15px;
  border: 1px solid rgba(98, 119, 255, 0.2);
  border-radius: 12px;
  background: rgba(98, 119, 255, 0.035);
}

.mask-card:last-child {
  margin-bottom: 0;
}

.mask-card h5 {
  margin: 0;
  font-size: 12px;
}

.mask-selection {
  font-weight: 700;
  color: var(--blue) !important;
}

.adjustment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
}

.adjustment-chips span {
  padding: 5px 7px;
  border-radius: 5px;
  color: white;
  background: var(--ink);
  font-size: 9px;
}

.mask-purpose {
  color: var(--ink) !important;
}

.cleanup-item {
  margin-bottom: 13px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.cleanup-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.cleanup-item strong {
  font-size: 11px;
}

.empty-recipe {
  color: var(--muted);
  font-size: 11px;
}

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

.export-item {
  padding: 11px;
  border-radius: 9px;
  background: var(--paper);
}

.export-item small,
.export-item strong {
  display: block;
}

.export-item small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.export-item strong {
  font-size: 10px;
  line-height: 1.4;
}

.avoid-box {
  background: rgba(255, 115, 95, 0.07) !important;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 70px;
  padding: 28px 0 45px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-links a {
  color: inherit;
  font-weight: 750;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.legal-page {
  max-width: 860px;
  padding: 76px 0 20px;
}

.legal-page h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.legal-updated {
  margin: 18px 0 44px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.legal-page section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-page h2 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.legal-page p {
  margin: 0;
}

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

.legal-page li + li {
  margin-top: 8px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 850px) {
  .trust-panel {
    grid-template-columns: 1fr;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .brief-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .result-grid,
  .crop-grid,
  .edit-card,
  .report-brief,
  .recipe-layout,
  .recipe-lower,
  .recipe-checks {
    grid-template-columns: 1fr;
  }

  .crop-grid {
    display: flex;
    flex-direction: column;
  }

  .edit-card {
    gap: 10px;
  }

  .recipe-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    min-height: 68px;
    height: auto;
    gap: 8px;
    padding-block: 10px;
    align-items: flex-start;
    overflow: visible;
  }

  .brand {
    flex: 0 0 auto;
    gap: 8px;
    max-width: 128px;
  }

  .brand small {
    display: block;
    margin: 2px 0 0;
  }

  .topbar-actions {
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
  }

  .version-pill {
    display: none;
  }

  .language-switcher span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .language-switcher select {
    min-width: 108px;
    height: 34px;
    padding-left: 10px;
  }

  .status {
    font-size: 0;
  }

  .user-menu {
    flex: 1 0 100%;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
    padding-left: 0;
  }

  .user-menu #user-email {
    display: none;
  }

  .user-menu .credit-pill,
  .user-menu .compact-button {
    padding: 6px 8px;
    font-size: 11px;
  }

  .account-panel {
    right: 0;
  }

  .hero {
    padding: 62px 0 45px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero-copy {
    margin-top: 28px;
  }

  .upload-panel,
  .brief-panel,
  .result-card {
    padding: 24px;
  }

  .workspace {
    border-radius: 20px;
  }

  .drop-zone,
  .preview-state img {
    min-height: 360px;
    height: 360px;
  }

  .score-hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .report-photo-wrap {
    min-height: 280px;
  }

  .score-ring {
    width: 135px;
    height: 135px;
  }

  .score-ring span {
    font-size: 44px;
  }

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

  .results-actions {
    width: 100%;
    justify-content: stretch;
  }

  .results-actions button {
    flex: 1 1 145px;
  }

  .result-credit-note {
    text-align: left;
  }

  .score-row {
    grid-template-columns: 82px 1fr 50px;
  }

  .score-rating {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .score-comment {
    padding-left: 94px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    margin: 12mm;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: white;
  }

  .ambient,
  .topbar,
  .hero,
  .workspace,
  .loading-panel,
  footer,
  .ghost-button,
  .pdf-button,
  .results-actions {
    display: none !important;
  }

  main,
  .results {
    width: 100%;
    margin: 0;
  }

  .results-header {
    margin-bottom: 14px;
  }

  .results-header h2 {
    font-size: 32px;
  }

  .score-hero,
  .report-brief,
  .result-card,
  .footer-grid > .result-card,
  .timeline li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .crop-grid,
  .recipe-layout,
  .recipe-lower,
  .recipe-checks {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .crop-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .result-card {
    box-shadow: none;
  }

  .quick-report .result-card,
  .quick-report .lightroom-card {
    padding: 18px;
  }

  .quick-report .crop-grid {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 14px;
  }

  .quick-report .crop-item {
    min-height: 0;
    padding: 9px 10px;
  }

  .quick-report .crop-item strong {
    font-size: 10px;
    line-height: 1.3;
  }

  .quick-report .recipe-layout,
  .quick-report .recipe-lower,
  .quick-report .recipe-checks {
    gap: 10px;
  }

  .quick-report .recipe-layout {
    grid-template-columns: 1fr;
  }

  .quick-report .recipe-layout > div,
  .quick-report .recipe-lower > div,
  .quick-report .recipe-checks > div {
    padding: 14px;
  }

  .quick-report .recipe-step {
    margin-bottom: 11px;
    padding-bottom: 11px;
  }

  .quick-report .recipe-details {
    grid-template-columns: 0.62fr 1.38fr;
    gap: 2px 8px;
    margin: 6px 0;
  }

  .quick-report .recipe-step p,
  .quick-report .mask-card p,
  .quick-report .cleanup-item p {
    margin: 5px 0 4px;
    line-height: 1.45;
  }
}
