:root {
  color-scheme: light;
  --background: #f6f7ef;
  --white: #fff;
  --ink: #16261d;
  --muted: #4f6054;
  --line: #dce3d6;
  --green: #1a4a33;
  --green-deep: #102c20;
  --soft-green: #edf4e7;
  --lime: #d9f394;
  --radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, .dropzone:focus-within {
  outline: 3px solid #497b34;
  outline-offset: 4px;
}
a { color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
.container { width: min(1152px, calc(100% - 72px)); margin-inline: auto; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-content {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 25px;
  letter-spacing: -.05em;
  font-weight: 750;
  text-decoration: none;
}
.brand-icon {
  width: 33px;
  height: 33px;
  display: grid;
  align-content: center;
  justify-content: center;
  gap: 3px;
  border-radius: 10px;
  background: var(--green-deep);
}
.brand-icon i { display: block; width: 15px; height: 2px; border-radius: 4px; background: var(--lime); }
.brand-icon i:nth-child(2) { width: 11px; }
.header-label { color: var(--muted); font-size: .84rem; font-weight: 550; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 390px);
  gap: 50px;
  align-items: end;
  padding-block: 55px 32px;
}
h1 {
  font-size: clamp(3.3rem, 6.4vw, 6rem);
  font-weight: 740;
  line-height: .96;
  letter-spacing: -.047em;
}
.intro-copy { margin-top: 22px; max-width: 480px; font-size: 1.07rem; line-height: 1.55; color: var(--muted); }
.photo-tip {
  background: #e9efd9;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-radius: 18px;
  padding: 23px;
}
.photo-tip h2 { font-size: 1rem; margin-bottom: 5px; }
.photo-tip p { font-size: .88rem; color: #425344; line-height: 1.52; }
.shelf-diagram {
  padding: 5px 7px;
  border: 1px solid #8eab7c;
  border-radius: 5px;
  display: grid;
  gap: 4px;
}
.shelf-diagram div { display: flex; align-items: end; justify-content: space-between; height: 13px; border-bottom: 1px solid #6c9065; }
.shelf-diagram i { height: 8px; width: 7px; background: #769b6a; border-radius: 2px 2px 0 0; }
.shelf-diagram i:nth-child(2n) { height: 10px; background: #44764e; }
.shelf-diagram div:nth-child(2) i:nth-child(3) { visibility: hidden; }

.workspace { padding: 0 0 48px; }
.upload-grid, .evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.upload-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px;
  min-width: 0;
}
.card-heading { display: flex; gap: 13px; align-items: center; margin-bottom: 18px; }
.card-heading h2 { font-size: 1.17rem; line-height: 1.2; letter-spacing: -.025em; }
.card-heading p { color: var(--muted); font-size: .86rem; margin-top: 5px; line-height: 1.3; }
.card-index {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--soft-green);
  color: var(--green);
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}
.dropzone {
  min-height: 182px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #f7f9f2;
  border-radius: 13px;
  border: 1px dashed #9aab96;
  color: var(--green);
  transition: background .15s, border-color .15s;
}
.dropzone:hover, .dropzone.is-dragging { background: #edf4e3; border-color: #446949; }
.dropzone:has(input:disabled) { cursor: wait; }
.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.dropzone input:disabled { cursor: wait; }
.drop-instructions { padding: 17px; text-align: center; display: grid; justify-items: center; gap: 4px; }
.drop-instructions > span:last-child { color: var(--muted); font-size: .83rem; }
.upload-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 7px;
}
.dropzone.has-photo { background: var(--green-deep); border: 1px solid var(--green-deep); }
.preview { width: 100%; height: 180px; object-fit: contain; border-radius: 12px; display: block; }
.replace-file {
  position: absolute;
  right: 9px;
  bottom: 9px;
  color: var(--white);
  background: var(--green-deep);
  border: 1px solid #c4d2c5;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: .75rem;
}
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: var(--muted); }
.remove-file { background: transparent; border: 0; color: var(--green); text-decoration: underline; font-size: .8rem; padding: 6px; }
.remove-file:disabled { opacity: .55; }
.form-footer, .form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-footer { margin-top: 17px; }
.format-note, .upload-status { font-size: .85rem; color: var(--muted); }
.upload-status { white-space: nowrap; }
.primary-button, .secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .92rem;
  line-height: 1.2;
  font-weight: 700;
}
.primary-button { color: var(--green-deep); background: var(--lime); min-height: 48px; }
.primary-button:hover:not(:disabled) { background: #c9e880; }
.primary-button:disabled { color: #516050; background: #e3e9dc; }
.button-arrow { font-size: 1.15rem; }
.secondary-button { border-color: var(--line); color: var(--green); background: var(--white); }
.secondary-button:hover { background: var(--soft-green); }
.form-error, .loading { margin-top: 16px; border-radius: 12px; padding: 13px 16px; line-height: 1.45; font-size: .93rem; }
.form-error { color: #862b28; background: #ffece7; }
.loading { display: flex; gap: 12px; align-items: center; background: var(--soft-green); color: var(--green-deep); }
.loading div { display: grid; gap: 2px; }
.loading div span { color: var(--muted); }
.spinner { flex: 0 0 20px; height: 20px; border: 2px solid #abc1aa; border-top-color: var(--green); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.report { padding-block: 12px 56px; }
.report-heading, .section-heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.report-heading { margin-bottom: 16px; }
.report-heading h2 { font-size: clamp(1.7rem, 4vw, 2.45rem); letter-spacing: -.035em; }
.report-heading h2:focus { outline: none; }
.report-overview { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); gap: 12px; }
.score-panel, .report-summary {
  padding: 22px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.score-panel { background: var(--green-deep); color: var(--white); }
.score-panel p { font-size: .83rem; font-weight: 570; }
.score-value { display: flex; align-items: baseline; gap: 7px; font-variant-numeric: tabular-nums; }
.score-value strong { color: var(--lime); font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -.055em; line-height: 1; }
.score-value span, #score-coverage { color: #cadbcc; }
.report-summary, .metrics > div, .evidence figure, .shelf-row {
  border: 1px solid var(--line);
  background: var(--white);
}
.report-summary p { overflow-wrap: anywhere; }
.coverage-label { color: var(--green); font-size: .82rem; font-weight: 700; }
.coverage-label[data-coverage="partial"], .coverage-label[data-coverage="none"] { color: #77530c; }
#analysis-summary { font-size: 1.09rem; font-weight: 650; line-height: 1.4; }
#coverage-note, #shelf-count { color: var(--muted); font-size: .87rem; line-height: 1.45; }
.metrics { margin: 12px 0 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metrics > div { padding: 15px; border-radius: 13px; }
.metrics dt { color: var(--muted); font-size: .85rem; line-height: 1.3; }
.metrics dd { margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.metric-value { display: block; margin-bottom: 8px; font-weight: 720; font-size: 1.25rem; }
.metric-track { height: 4px; border-radius: 5px; background: #e9eee5; overflow: hidden; }
.metric-track span { display: block; height: 100%; background: #4a8055; border-radius: inherit; }
.metric-coverage { margin-top: 6px; font-size: .73rem; color: var(--muted); }

.section-heading { align-items: center; margin-bottom: 13px; }
.section-heading h3 { font-size: 1.32rem; letter-spacing: -.035em; }
.section-heading p { color: var(--muted); font-size: .87rem; line-height: 1.4; margin-top: 4px; }
.evidence { margin-bottom: 36px; scroll-margin-top: 14px; }
.evidence figure { display: flex; flex-direction: column; border-radius: 15px; overflow: hidden; }
.evidence figcaption { padding: 9px 13px; font-size: .85rem; font-weight: 650; }
.photo-frame { flex: 1; background: #17271e; display: flex; align-items: center; justify-content: center; }
.image-wrap { position: relative; max-width: 100%; }
.image-wrap img { display: block; max-width: 100%; max-height: min(62vh, 510px); object-fit: contain; }
.highlight {
  position: absolute;
  border: 2px solid var(--lime);
  background: #d9f39426;
  box-shadow: 0 0 0 1px var(--green-deep);
}
.highlight span {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-deep);
  background: var(--lime);
  font-size: .75rem;
  font-weight: 700;
  padding: 1px 4px;
}

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { border: 1px solid var(--line); color: var(--muted); background: var(--white); border-radius: 8px; font-size: .81rem; padding: 7px 9px; }
.filters button[aria-pressed="true"] { border-color: #a2bc94; color: var(--green-deep); background: var(--soft-green); font-weight: 700; }
.shelf-row { border-radius: 15px; margin-bottom: 10px; padding: 17px; }
.shelf-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.shelf-heading h4 { font-size: 1.03rem; line-height: 1.35; overflow-wrap: anywhere; }
.shelf-heading p { color: var(--muted); font-size: .81rem; margin-top: 4px; }
.shelf-heading .secondary-button { min-height: 34px; padding: 6px 9px; font-size: .8rem; white-space: nowrap; }
.shelf-heading button[aria-pressed="true"] { background: var(--soft-green); border-color: #a2bc94; }
.findings { padding: 0; margin: 11px 0 0; list-style: none; }
.finding { border-top: 1px solid var(--line); padding: 11px 0 0; margin-top: 11px; }
.finding-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 5px; }
.finding-badge { display: inline-block; padding: 3px 6px; border-radius: 5px; background: #eaf1e8; color: var(--green-deep); font-weight: 650; font-size: .77rem; }
.finding-badge.review { background: #fff0d2; color: #6c490c; }
.finding-title { font-size: .88rem; overflow-wrap: anywhere; }
.finding p, .empty { font-size: .89rem; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.finding p + p { margin-top: 5px; }
.finding p strong { color: var(--ink); font-weight: 600; }
.shelf-row .empty { margin-top: 9px; }

@media (max-width: 830px) {
  .container { width: min(100% - 44px, 1152px); }
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 25px; padding-top: 40px; }
  .photo-tip { grid-template-columns: 45px minmax(0, 1fr); padding: 15px; gap: 10px; }
  .shelf-diagram { padding-inline: 4px; }
  .shelf-diagram i { width: 5px; }
}
@media (max-width: 650px) {
  .container { width: calc(100% - 32px); }
  .header-content { min-height: 57px; }
  .header-label { font-size: .72rem; text-align: right; }
  .intro { grid-template-columns: 1fr; gap: 18px; padding-block: 28px 19px; }
  .title-break { display: none; }
  h1 { font-size: clamp(2rem, 8.7vw, 3.8rem); letter-spacing: -.035em; }
  .intro-copy { margin-top: 12px; font-size: .94rem; }
  .photo-tip { padding: 12px; }
  .photo-tip p { font-size: .8rem; }
  .upload-grid { grid-template-columns: 1fr; gap: 9px; }
  .upload-card { padding: 12px; border-radius: 15px; }
  .card-heading { margin-bottom: 9px; }
  .card-heading h2 { font-size: 1rem; }
  .card-heading p { font-size: .8rem; }
  .card-index { flex-basis: 32px; height: 32px; border-radius: 8px; }
  .dropzone { min-height: 118px; }
  .drop-instructions { padding: 8px; gap: 2px; }
  .upload-icon { width: 29px; height: 29px; margin-bottom: 4px; }
  .preview { height: 132px; }
  .form-footer { flex-wrap: wrap; gap: 10px; margin-top: 12px; }
  .form-actions { width: 100%; }
  .workspace { padding-bottom: 35px; }
  .report-overview { grid-template-columns: 1fr; }
  .score-panel, .report-summary { padding: 16px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metrics > div { padding: 11px; }
  .section-heading, .report-heading { flex-wrap: wrap; }
  .evidence-grid { gap: 7px; }
  .evidence figcaption { padding: 7px; font-size: .74rem; }
  .shelf-row { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
