* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
}

body.report-body {
  min-height: 100vh;
}

.commerce-shell,
.shell,
.report-shell,
.status-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.report-shell,
.status-shell {
  padding: 22px 0 56px;
}

.report {
  width: min(980px, calc(100% - 32px));
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #b9cec6;
  font-weight: 700;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-domain {
  margin-top: 1px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

p {
  line-height: 1.5;
}

.hero-text {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: stretch;
  margin-bottom: 30px;
}

.report-intro-panel,
.report-summary-card,
.status-card,
.report-panel,
.report-warning {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.report-intro-panel,
.report-summary-card {
  padding: 18px;
  box-shadow: var(--shadow);
}

.report-intro-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.report-intro-panel h1 {
  line-height: 1.12;
}

.report-intro-panel .hero-text {
  margin-top: 12px;
}

.report-summary-card p,
.status-list p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.report-summary-card p:last-child,
.status-list p:last-child {
  border-bottom: 0;
}

.report-summary-card span,
.status-list span {
  color: var(--muted);
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ticket-section {
  margin-bottom: 24px;
}

.section-lead {
  margin-bottom: 14px;
}

.range-explanation {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.range-explanation strong {
  color: var(--ink);
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ticket-card {
  overflow: hidden;
  border: 1px solid #b9cec6;
  border-radius: 8px;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.ticket-numbers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 16px;
}

.ticket-numbers span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.ticket-notes {
  padding: 13px 16px 0;
}

.ticket-notes p {
  margin: 0 0 8px;
  color: #46534e;
}

.ticket-balance {
  margin: 0;
  padding: 12px 16px 14px;
  color: var(--muted);
  font-size: 13px;
}

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

.report-panel p,
.report-panel li {
  color: #46534e;
}

.report-panel ol {
  margin: 12px 0;
  padding-left: 20px;
}

.report-warning {
  padding: 18px;
}

.status-card {
  padding: 28px;
  box-shadow: var(--shadow);
}

.primary-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.inline-link {
  width: auto;
  min-width: 150px;
  padding: 0 18px;
}

.status-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.secondary-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: #fff;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 700;
}

.secondary-link:hover {
  background: var(--accent-soft);
}

fieldset {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: #263830;
  font-weight: 700;
}

label {
  color: #25342e;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 10px 11px;
  border: 1px solid #bbc9c2;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(18, 96, 79, 0.16);
}

button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  padding: 13px 16px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

button:hover {
  background: var(--accent-dark);
}

.notice,
.small {
  color: var(--muted);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

.numbers {
  color: var(--accent-dark);
  font-family: Consolas, "Courier New", monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.warning {
  background: var(--warning);
  border-color: #d2ad47;
}

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

@media (max-width: 680px) {
  .commerce-shell,
  .shell,
  .report-shell,
  .status-shell {
    width: min(100% - 24px, 1120px);
  }

  .commerce-header,
  .report-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
  }

  h1 {
    font-size: 31px;
  }

  .hero-text {
    font-size: 16px;
  }

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

  .status-actions {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: white;
  }

  .shell,
  .commerce-shell,
  .report-shell,
  .status-shell {
    width: 100%;
    padding: 0;
  }
}

/* Identidade visual Palpite Facil: tema escuro e dourado compartilhado. */

:root {
  color-scheme: dark;
  --bg: #07110e;
  --ink: #f3eee2;
  --muted: #bbb8ad;
  --line: #526159;
  --panel: #14251f;
  --soft: #1c3029;
  --accent: #d5aa4b;
  --accent-dark: #efd17e;
  --accent-soft: #20362e;
  --ticket: #101c18;
  --warning: #2a2414;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

body.report-body {
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body.utility-body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.legal-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0 64px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-back-link {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.legal-back-link:hover,
.legal-back-link:focus-visible {
  color: #fff1bc;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-label {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-document {
  padding: 8px 0 24px;
  color: #d8d5cb;
  font-size: 13px;
  line-height: 1.62;
}

.legal-document h1 {
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 38px;
  font-size: 28px;
  line-height: 1.2;
}

.legal-document h2 {
  margin: 26px 0 9px;
  padding-top: 17px;
  border-top: 1px solid #34443d;
  color: var(--ink);
  font-size: 17px;
}

.legal-document p,
.legal-document ul {
  max-width: 820px;
}

.legal-document ul {
  padding-left: 22px;
}

.legal-document li + li {
  margin-top: 6px;
}

.legal-document strong {
  color: var(--accent-dark);
}

.legal-document code {
  overflow-wrap: anywhere;
  color: #fff0ba;
  font-family: inherit;
}

.legal-document-secondary {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 2px solid #b48a33;
}

@media (max-width: 680px) {
  .legal-shell {
    width: min(100% - 24px, 920px);
    padding-top: 8px;
  }

  .legal-document h1 {
    font-size: 24px;
  }

  .legal-document h2 {
    font-size: 16px;
  }

  .legal-document {
    font-size: 12.5px;
  }
}

.utility-shell {
  width: min(680px, calc(100% - 32px));
  margin-inline: auto;
  padding: 14px 0 56px;
}

.utility-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 82px;
  margin-bottom: 28px;
}

.utility-header::before,
.utility-header::after {
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 1px;
  content: "";
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(116, 73, 14, 0.45) 0%,
    #d5aa4b 28%,
    #f1d583 50%,
    #d5aa4b 72%,
    rgba(116, 73, 14, 0.45) 100%
  );
}

.utility-header::before {
  top: 0;
}

.utility-header::after {
  bottom: 0;
}

.utility-card {
  padding: 34px;
  border: 1px solid #665b3e;
  border-radius: 8px;
  background: #14251f;
  box-shadow: var(--shadow);
}

.utility-card h1 {
  color: var(--ink);
  font-size: 34px;
}

.utility-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.utility-card form,
.utility-card .primary-link {
  margin-top: 24px;
}

.utility-card button {
  border: 1px solid #e3bd61;
  background: linear-gradient(180deg, #f6d77b 0%, #dda633 48%, #ab6b12 100%);
  color: #142019;
}

.utility-card button:hover {
  background: linear-gradient(180deg, #ffe49b 0%, #e8b84b 48%, #bc7817 100%);
}

.report-shell {
  width: min(1180px, calc(100% - 40px));
  padding-top: 14px;
}

.report-header {
  position: relative;
  min-height: 82px;
  margin-bottom: 28px;
}

.report-header::before,
.report-header::after {
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 1px;
  content: "";
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(116, 73, 14, 0.45) 0%,
    #d5aa4b 28%,
    #f1d583 50%,
    #d5aa4b 72%,
    rgba(116, 73, 14, 0.45) 100%
  );
  box-shadow: 0 0 8px rgba(213, 170, 75, 0.2);
}

.report-header::before {
  top: 0;
}

.report-header::after {
  bottom: 0;
}

.brand {
  color: var(--ink);
}

.brand-copy strong {
  font-size: 20px;
}

.brand-domain {
  color: var(--accent-dark);
  font-size: 16px;
}

.brand-logo {
  border: 1px solid #71613d;
  background: #10231d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.report-status {
  border-color: #74633c;
  border-radius: 6px;
  background: #101b18;
  color: var(--accent-dark);
  font-size: 14px;
}

.report-hero {
  gap: 22px;
}

.report-intro-panel,
.report-summary-card,
.report-panel,
.report-warning {
  border-color: #526159;
  background: var(--panel);
}

.report-intro-panel {
  padding: 30px;
  background: #172d25;
}

.report-intro-panel h1 {
  color: var(--ink);
  font-size: 36px;
}

.report-intro-panel .eyebrow,
.report-summary-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
}

.report-intro-panel .hero-text {
  color: #d4d0c5;
  font-size: 17px;
}

.report-summary-card {
  padding: 22px;
  background: #101b18;
}

.report-summary-card p {
  border-bottom-color: #405047;
  font-size: 15px;
}

.report-summary-card span {
  color: var(--muted);
}

.report-summary-card strong {
  color: var(--ink);
}

.primary-link {
  border: 1px solid #e3bd61;
  background: linear-gradient(180deg, #f6d77b 0%, #dda633 48%, #ab6b12 100%);
  color: #142019;
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 206, 0.65),
    0 10px 22px rgba(213, 170, 75, 0.18);
  font-size: 15px;
}

.primary-link:hover {
  background: linear-gradient(180deg, #ffe49b 0%, #e8b84b 48%, #bc7817 100%);
}

.section-lead h2 {
  color: var(--ink);
  font-size: 28px;
}

.ticket-grid {
  gap: 18px;
}

.ticket-card {
  border-color: #526159;
  background: #101b18;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.ticket-head {
  border-bottom: 1px solid #72551e;
  background: #172d25;
  color: var(--ink);
  font-size: 16px;
}

.ticket-head span {
  color: var(--accent-dark);
  font-size: 14px;
}

.ticket-numbers {
  background: #0d1815;
}

.ticket-numbers span {
  width: 40px;
  min-height: 40px;
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid #b98429;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    #dca536 0%,
    #9a5f15 45%,
    #4b2d0d 72%,
    #17140e 100%
  );
  color: #fff8df;
  text-shadow: 0 1px 2px rgba(48, 27, 3, 0.8);
  box-shadow:
    inset 0 1px 1px rgba(255, 230, 151, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.34);
  font-size: 15px;
}

.ticket-notes {
  border-top: 1px solid #34443d;
}

.ticket-notes p,
.ticket-balance,
.report-panel p,
.report-panel li {
  color: var(--muted);
  font-size: 14px;
}

.report-panel {
  padding: 22px;
  background: #111f1b;
}

.report-panel h2,
.report-warning h2 {
  color: var(--ink);
  font-size: 22px;
}

.report-panel strong {
  color: var(--accent-dark);
}

.report-warning {
  border-color: #8b7139;
  border-left: 4px solid var(--accent);
  background: var(--warning);
}

.report-warning p {
  color: #e0d4b4;
  font-size: 15px;
}

@media (max-width: 680px) {
  .utility-card {
    padding: 26px 20px;
  }

  .utility-card h1 {
    font-size: 29px;
  }

  .report-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 8px;
  }

  .report-header {
    align-items: center;
    flex-direction: row;
    min-height: 72px;
    margin-bottom: 20px;
  }

  .report-status {
    font-size: 12px;
  }

  .report-intro-panel {
    padding: 24px 20px;
  }

  .report-intro-panel h1 {
    font-size: 30px;
  }

  .ticket-numbers {
    gap: 7px;
    padding: 13px;
  }

  .ticket-numbers span {
    width: 38px;
    min-height: 38px;
  }
}
