:root {
  --ink: #171512;
  --muted: #6f675d;
  --paper: #f6f0e7;
  --panel: #fffaf1;
  --line: #221c141f;
  --red: #d54032;
  --green: #0f8c62;
  --gold: #c98515;
  --blue: #245fbf;
  --shadow: 0 24px 70px rgba(26, 18, 10, .14);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes lb-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes lb-scan {
    from { transform: translateY(-120%); }
    to { transform: translateY(420%); }
  }

  @keyframes lb-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(213, 64, 50, 0); }
    50% { box-shadow: 0 0 34px rgba(213, 64, 50, .2); }
  }

  @keyframes lb-shine {
    0%, 38% { transform: translateX(-120%); }
    68%, 100% { transform: translateX(120%); }
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  background:
    linear-gradient(90deg, rgba(23, 21, 18, .045) 1px, transparent 1px),
    linear-gradient(rgba(23, 21, 18, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

body.is-report-mode .shell {
  width: min(980px, calc(100% - 32px));
  align-items: start;
}

body.is-report-mode .intro,
body.is-report-mode .form-panel,
body.is-report-mode .seo-copy,
body.is-report-mode .site-footer {
  display: none;
}

body.is-report-mode .workspace {
  grid-template-columns: 1fr;
}

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

.shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  align-items: center;
}

.workspace {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 18px;
  align-items: start;
}

.intro {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 18px;
  align-items: end;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 18px;
}

@media (prefers-reduced-motion: no-preference) {
  .intro { animation: lb-rise .55s ease both; }
  .form-panel { animation: lb-rise .55s ease .08s both; }
  .result-panel { animation: lb-rise .55s ease .16s both; }
}

.kicker {
  margin: 0;
  font: 700 13px/1.1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 104px);
  line-height: .86;
  letter-spacing: -.02em;
}

.lede {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.panel {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.form-panel {
  padding: 22px;
  display: grid;
  gap: 16px;
}

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

label span {
  color: var(--muted);
  font: 700 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink);
  outline: none;
}

input,
select {
  height: 48px;
  padding: 0 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 95, 191, .14);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.segmented {
  position: relative;
  height: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fffdf8;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  font: 700 14px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.segmented input:checked + label {
  background: var(--ink);
  color: var(--paper);
}

button {
  height: 52px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: 800 16px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 18, 10, .18);
}

button:active {
  transform: translateY(0);
}

#unlockSubmit {
  position: relative;
  overflow: hidden;
}

#unlockSubmit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, .24) 48%, transparent 62% 100%);
  transform: translateX(-120%);
}

@media (prefers-reduced-motion: no-preference) {
  #unlockSubmit::after {
    animation: lb-shine 2.8s ease-in-out infinite;
  }
}

.result-panel {
  padding: 24px;
  display: grid;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.result-panel.is-locked {
  min-height: 710px;
}

.result-panel:not(.is-locked) {
  grid-column: 1 / -1;
}

.result-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 58%, rgba(213, 64, 50, .1) 58% 100%);
  pointer-events: none;
}

.result-panel > * {
  position: relative;
}

.lock-screen {
  display: none;
}

.result-panel.is-locked .lock-screen {
  position: absolute;
  inset: 18px;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 250, 241, .92);
  backdrop-filter: blur(8px);
}

.preview-card {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 14px;
  overflow: hidden;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 241, 226, .88)),
    var(--paper);
}

.preview-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(26, 18, 10, .24);
  border-radius: 6px;
  pointer-events: none;
}

.preview-scan {
  position: absolute;
  inset: -20% auto -20% -35%;
  width: 46%;
  background: linear-gradient(90deg, transparent, rgba(255, 76, 59, .2), rgba(246, 185, 57, .22), transparent);
  filter: blur(4px);
  transform: skewX(-12deg);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .preview-scan {
    animation: lb-scan 3.4s ease-in-out infinite;
  }
}

.lock-screen h2,
.lock-screen p {
  margin: 0;
}

.lock-screen h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: .95;
}

.lock-screen p {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.55;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preview-metrics span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, .82);
  color: var(--muted);
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
}

.preview-metrics strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  text-transform: none;
}

.lock-art {
  width: 100%;
  height: 190px;
  min-height: 190px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff8d9;
  box-shadow: 0 12px 28px rgba(26, 18, 10, .12);
}

@media (min-width: 1080px) {
  .result-panel.is-locked {
    min-height: 620px;
  }

  .result-panel.is-locked .lock-screen {
    grid-template-columns: minmax(0, 1.15fr) minmax(190px, .85fr);
  }

  .lock-art {
    height: 100%;
    min-height: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lock-art {
    animation: lb-pulse 3.8s ease-in-out infinite;
  }
}

.analysis-art {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.result-panel:not(.is-locked) .analysis-art {
  min-height: 100%;
  grid-template-rows: 1fr auto auto;
}

.analysis-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 320px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf8;
  transition: opacity .3s ease;
}

.analysis-art img.is-loading {
  opacity: .45;
}

.art-status {
  margin: 0;
  color: var(--muted);
  font: 700 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.analysis-art button {
  display: none !important;
  height: 44px;
  padding: 0 18px;
  background: var(--blue);
}

.teaser-list {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.teaser-list div {
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink);
  font: 800 12px/1.1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.result-panel.is-locked .report-sheet,
.result-panel.is-locked .report-loading {
  opacity: .28;
  filter: blur(2px);
  pointer-events: none;
}

.report-sheet,
.report-loading {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.result-panel:not(.is-locked) .report-sheet,
.result-panel:not(.is-locked) .report-loading {
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(23, 21, 18, .045) 1px, transparent 1px),
    linear-gradient(rgba(23, 21, 18, .035) 1px, transparent 1px),
    #fffdf8;
  background-size: 34px 34px;
}

.report-loading[hidden],
.report-sheet[hidden] {
  display: none;
}

.report-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.report-toolbar button {
  width: auto;
  height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 12px;
}

.report-toolbar button:first-child {
  background: #fffdf8;
  color: var(--ink);
}

.report-loading {
  min-height: 520px;
  align-content: center;
}

.report-loading h2,
.report-loading p {
  margin: 0;
}

.report-loading h2 {
  max-width: 620px;
  font-family: var(--display);
  font-size: clamp(42px, 8vw, 92px);
  line-height: .9;
}

.report-loading p {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.report-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: end;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 18px;
}

.result-panel:not(.is-locked) .meter,
body.is-report-mode .share {
  display: none;
}

.verdict {
  display: grid;
  gap: 4px;
}

.verdict p {
  margin: 0;
  color: var(--red);
  font: 800 14px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.verdict strong {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 92px);
  line-height: .88;
  letter-spacing: -.02em;
}

.verdict span {
  color: var(--muted);
  font-size: 18px;
}

.meter {
  height: 74px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 6px;
  position: relative;
  color: var(--muted);
  font: 700 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(320px, 1.35fr);
  gap: 18px;
  align-items: stretch;
}

.meter::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  height: 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
}

#needle {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 2px;
  height: 38px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: left .45s ease;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.facts div {
  min-width: 0;
  padding: 14px;
  display: grid;
  gap: 8px;
  border-right: 1px solid var(--line);
}

.facts div:last-child {
  border-right: 0;
}

.facts span {
  color: var(--muted);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.facts strong {
  font-size: 22px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.actions {
  display: grid;
  gap: 10px;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 18px;
  align-items: start;
}

.roast-card,
.red-flags,
.income-analysis,
.seo-copy {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fffdf8;
}

.roast-card {
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
  box-shadow: inset 0 0 0 6px rgba(213, 64, 50, .08);
}

.result-panel:not(.is-locked) .roast-card {
  min-height: 0;
  padding: 20px;
}

.roast-card span {
  color: var(--red);
  font: 800 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.roast-card p,
.seo-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.roast-card p {
  color: var(--ink);
  font-size: 17px;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-weight: 500;
  line-height: 1.58;
}

.red-flags {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.income-analysis {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.data-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.data-item {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.data-item span {
  color: var(--muted);
  font: 800 10px/1.1 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
}

.data-item strong {
  font-family: var(--display);
  font-size: 25px;
  line-height: .95;
}

.data-item p {
  margin: 0;
  color: #322c24;
  font-size: 13px;
  line-height: 1.42;
}

#flagList {
  display: grid;
  gap: 10px;
}

.flag-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 6px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.flag-item span {
  grid-row: 1 / span 2;
  align-self: start;
  padding: 7px 8px;
  border-radius: 999px;
  text-align: center;
  color: #fffdf8;
  background: var(--muted);
  font: 800 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.flag-item.high span {
  background: var(--red);
}

.flag-item.medium span {
  background: var(--gold);
}

.flag-item.low span {
  background: var(--green);
}

.flag-item strong {
  line-height: 1.1;
}

.flag-item p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.finding-item {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.finding-item:last-child {
  border-bottom: 0;
}

.finding-item strong {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.1;
}

.finding-item p {
  margin: 0;
  color: #322c24;
  line-height: 1.55;
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -.01em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

li {
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 8px;
  height: 8px;
  background: var(--blue);
}

.share {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 10px;
}

.share-card {
  grid-column: 1 / -1;
  min-height: 170px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(213, 64, 50, .12), transparent 42%),
    #fffdf8;
}

.share-card span,
.share-card small {
  font: 800 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.share-card span {
  color: var(--red);
}

.share-card strong {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  line-height: .95;
  letter-spacing: -.01em;
}

.share-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.share-card small {
  color: var(--ink);
}

textarea {
  min-height: 86px;
  resize: none;
  padding: 12px;
  line-height: 1.5;
}

.form-panel textarea {
  min-height: 104px;
}

.share button {
  height: auto;
  background: var(--red);
}

.seo-copy {
  margin-top: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.seo-copy h2 {
  margin-bottom: 10px;
}

.seo-copy h2 + p,
.seo-copy h2 + ul,
.seo-copy h2 + ol {
  margin-top: 0;
}

.seo-copy > h2 ~ h2 {
  margin-top: 26px;
}

.seo-list,
.seo-steps {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.seo-list li,
.seo-steps li {
  margin-bottom: 7px;
}

.seo-steps li strong {
  color: var(--ink);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.faq-grid article {
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

.faq-grid h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: block;
  padding: 18px;
  overflow-y: auto;
  background: rgba(23, 21, 18, .52);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(480px, 100%);
  margin: 0 auto;
  position: relative;
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-card h2,
.modal-card p {
  margin: 0;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.55;
}

.checkout-error {
  min-height: 20px;
  color: var(--red) !important;
  font: 800 12px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.paypal-buttons {
  min-height: 48px;
}

.modal-card ul {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 24px;
}

#checkoutBtn {
  background: var(--green);
}

.checkout-consent {
  margin: 0;
  color: var(--muted);
  font: 600 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.checkout-consent a {
  color: var(--ink);
}

.site-footer {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
  display: grid;
  gap: 16px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: start;
  justify-content: space-between;
}

.footer-tag {
  margin: 6px 0 0;
  max-width: 440px;
  color: var(--muted);
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s ease;
}

.footer-nav a:hover {
  border-color: var(--red);
}

.footer-disclaimer {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-legal {
  margin: 0;
  color: var(--muted);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.legal {
  display: block;
  max-width: 760px;
}

.legal-head {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--ink);
  text-decoration: none;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.back-link:hover {
  color: var(--red);
}

.legal-head h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.legal-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font: 700 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.legal-body-copy {
  display: block;
}

.legal-body-copy h2 {
  margin: 32px 0 10px;
  font-size: 22px;
}

.legal-body-copy p {
  margin: 0 0 14px;
  color: #322c24;
  font-size: 17px;
  line-height: 1.7;
}

.legal-body-copy a {
  color: var(--blue);
}

.legal-list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: disc;
}

.legal-list li {
  padding-left: 4px;
  color: #322c24;
  font-size: 17px;
  line-height: 1.6;
}

.legal-list li::before {
  content: none;
}

.legal .site-footer {
  margin-top: 40px;
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 24px, 560px);
    padding: 24px 0;
  }

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

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

  body.is-report-mode .shell {
    width: min(100% - 24px, 680px);
  }

  .report-head,
  .report-hero,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .result-panel.is-locked {
    min-height: 720px;
  }

  .result-panel.is-locked .lock-screen {
    grid-template-columns: 1fr;
  }

  .lock-art {
    min-height: 220px;
    height: 220px;
  }

  .data-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-panel:not(.is-locked) .report-sheet {
    padding: 14px;
  }

  .result-panel:not(.is-locked) .analysis-art img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  h1 {
    font-size: clamp(48px, 17vw, 76px);
  }
}

@media (max-width: 520px) {
  .split,
  .facts,
  .data-list,
  .share {
    grid-template-columns: 1fr;
  }

  .facts div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .facts div:last-child {
    border-bottom: 0;
  }

  .share button {
    height: 48px;
  }

  .flag-item {
    grid-template-columns: 1fr;
  }

  .flag-item span,
  .flag-item p {
    grid-column: 1;
  }

  .preview-metrics {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  body {
    background: #fffdf8 !important;
  }

  body * {
    visibility: hidden !important;
  }

  .result-panel,
  .result-panel *,
  .report-sheet,
  .report-sheet * {
    visibility: visible !important;
  }

  .shell,
  .workspace,
  .result-panel {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .result-panel {
    position: static !important;
    overflow: visible !important;
  }

  .report-sheet {
    position: static !important;
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fffdf8 !important;
  }

  .report-toolbar,
  .share,
  .meter,
  .art-status,
  #downloadArt {
    display: none !important;
  }

  .report-head,
  .facts,
  .report-hero,
  .income-analysis,
  .report-grid {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
