:root {
  color-scheme: light;
  --bg: #f4efe7;
  --ink: #18211d;
  --muted: #5a655f;
  --panel: rgba(255, 252, 247, 0.92);
  --line: rgba(24, 33, 29, 0.12);
  --accent: #0c5f4d;
  --accent-strong: #083d32;
  --accent-soft: rgba(12, 95, 77, 0.09);
  --shadow: 0 22px 60px rgba(24, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(12, 95, 77, 0.14), transparent 24%),
    linear-gradient(145deg, #f8f2e7 0%, #e7efe9 100%);
}

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto 36px;
}

.card,
.card-lite {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card-lite {
  border-radius: 18px;
  box-shadow: none;
  background: rgba(12, 95, 77, 0.06);
}

.hero,
.form-card,
.output-card {
  padding: 22px;
}

.hero-top,
.modal-head,
.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  flex-wrap: wrap;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.lede,
.status,
.session-documents {
  color: var(--muted);
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(12, 95, 77, 0.12);
  font-size: 0.88rem;
}

.chip.muted {
  background: rgba(24, 33, 29, 0.06);
  color: var(--muted);
}

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

.section-head,
.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
}

.modal {
  width: min(980px, calc(100% - 24px));
  border: 0;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(24, 33, 29, 0.35);
  backdrop-filter: blur(4px);
}

.modal-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 28px 80px rgba(24, 33, 29, 0.22);
}

.modal-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

button.secondary {
  background: rgba(12, 95, 77, 0.11);
  color: var(--accent-strong);
}

.file-list,
.session-documents,
.guide pre {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(24, 33, 29, 0.05);
  white-space: pre-wrap;
  word-break: break-word;
}

.file-list.empty {
  color: #7b847f;
}

.hint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide {
  padding: 16px;
}

.output-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
}

.result {
  min-height: 780px;
  overflow: auto;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 245, 239, 0.95)),
    radial-gradient(circle at top right, rgba(12, 95, 77, 0.06), transparent 35%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  font-size: 0.97rem;
  line-height: 1.7;
}

.result-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(24, 33, 29, 0.05);
}

.report-shell {
  display: grid;
  gap: 16px;
}

.report-header {
  padding: 22px 24px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(12, 95, 77, 0.12), rgba(255, 255, 255, 0.82)),
    linear-gradient(180deg, #faf6ef, #f7f1e8);
  border: 1px solid rgba(12, 95, 77, 0.12);
}

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

.report-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.report-meta {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 33, 29, 0.08);
}

.meta-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.meta-label {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-value {
  color: var(--ink);
}

.report-section {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 33, 29, 0.08);
}

.report-section.pass {
  border-left: 6px solid #2d8a57;
}

.report-section.flag,
.report-section.user-verified {
  border-left: 6px solid #b8622f;
}

.report-section.verdict,
.report-section.clearance,
.report-section.summary {
  border-left: 6px solid var(--accent);
}

.report-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.report-section-head h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.report-badge {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-badge.pass {
  color: #16593a;
  background: rgba(45, 138, 87, 0.14);
}

.report-badge.flag {
  color: #7f3f1d;
  background: rgba(184, 98, 47, 0.14);
}

.report-copy p,
.report-section > p,
.claim-card p,
.user-verified p {
  margin: 0 0 10px;
}

.claim-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(184, 98, 47, 0.08), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(184, 98, 47, 0.16);
}

.claim-card + .claim-card {
  margin-top: 12px;
}

.claim-label {
  margin-bottom: 10px;
  font-weight: 700;
  color: #6f2c12;
}

.detail-label {
  display: inline-block;
  min-width: 58px;
  margin-right: 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-table {
  display: grid;
  gap: 10px;
}

.summary-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(12, 95, 77, 0.06);
}

.summary-label {
  color: var(--accent);
  font-weight: 700;
}

.verdict-line {
  font-size: 1.02rem;
  line-height: 1.7;
}

.clearance-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clearance-pill.yes {
  color: #16593a;
  background: rgba(45, 138, 87, 0.14);
}

.clearance-pill.no {
  color: #7f2f24;
  background: rgba(180, 68, 47, 0.16);
}

.clearance-pill.conditional {
  color: #7f531d;
  background: rgba(192, 140, 44, 0.16);
}

.user-verified-item {
  padding-left: 18px;
  position: relative;
}

.user-verified-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #b8622f;
}

q {
  color: #583326;
  font-style: italic;
}

em {
  background: rgba(233, 202, 73, 0.18);
  padding: 0 4px;
  border-radius: 6px;
}

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

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

  .result {
    min-height: 520px;
  }

  .meta-row,
  .summary-row {
    grid-template-columns: 1fr;
  }

  .report-section-head {
    align-items: start;
    flex-direction: column;
  }
}
