:root {
  --navy: #1e3661;
  --navy-dark: #152847;
  --navy-ink: #071422;
  --orange: #e29f61;
  --orange-dark: #cf8848;
  --gold: #c4a574;
  --gold-line: #a68b67;
  --grey: #45515b;
  --muted: #6a747d;
  --bg: #f4f6f8;
  --surface: #fff;
  --border: rgba(30, 54, 97, 0.12);
  --ok: #2f6b4f;
  --warn: #9a6b2f;
  --danger: #9b3b3b;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --shadow: 0 12px 40px rgba(30, 54, 97, 0.1);
  --radius: 3px;
  --radius-control: 2px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
body {
  font-family: var(--font);
  color: var(--grey);
  overflow-x: clip;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(30, 54, 97, 0.08), transparent 55%),
    var(--bg);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; max-width: 100%; }
.header, .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}
.page-landing .header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.4rem;
}
.logo { height: 42px; width: auto; }
.header-meta {
  margin: 0;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nav-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.9rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2.4rem;
  align-items: center;
  padding: 2rem 0 3rem;
}
.hero-copy { max-width: 36rem; }
.kicker {
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}
h1, h2, h3 { color: var(--navy); margin: 0 0 0.7rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }
.lead { font-size: 1.05rem; line-height: 1.6; color: var(--muted); margin: 0; }

.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.rules li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
}
.rule-label {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--orange-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rules strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}
.auth-card {
  position: sticky;
  top: 1.25rem;
  padding: 1.15rem 1.2rem 1.3rem;
}
.auth-title {
  margin: 0 0 0.15rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
}
.tabs {
  display: flex;
  position: relative;
  gap: 0.2rem;
  margin-bottom: 1.1rem;
  padding: 0.22rem;
  background: #eef2f6;
  border-radius: var(--radius);
}
.tab, .btn, .btn-link {
  border: 0;
  cursor: pointer;
  border-radius: var(--radius);
}
.tab {
  flex: 1;
  min-width: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.55rem 0.5rem;
  font-weight: 700;
}
.tab.is-on {
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(30, 54, 97, 0.1);
}
.form { display: grid; gap: 0.75rem; position: relative; min-width: 0; }
.autofill-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}
label { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--navy); min-width: 0; max-width: 100%; }
input, textarea, select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 0.7rem 0.85rem;
  background: #f8fafc;
}
input[type="date"] {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(30, 54, 97, 0.35);
  box-shadow: 0 0 0 3px rgba(30, 54, 97, 0.1);
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  padding-right: 2.8rem;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.28rem;
  width: 2.2rem;
  height: 2.2rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--navy);
  opacity: 0.55;
  cursor: pointer;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  opacity: 1;
  background: rgba(30, 54, 97, 0.08);
}
.password-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.password-toggle .icon-hide { display: none; }
.password-toggle.is-on .icon-show { display: none; }
.password-toggle.is-on .icon-hide { display: block; }
.btn {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
}
.btn.secondary { background: #e9edf2; color: var(--navy); }
.btn.orange { background: var(--orange); color: var(--navy-dark); }
.btn.danger { background: var(--danger); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.note, .feedback { min-height: 0; font-size: 0.88rem; }
.feedback:empty { display: none; }
.feedback.err, .feedback.ok {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  line-height: 1.45;
}
.feedback.err {
  color: var(--danger);
  background: #fdecec;
  border: 1px solid #f3d9d9;
}
.feedback.ok {
  color: var(--ok);
  background: #e8f4ee;
  border: 1px solid #dceee4;
}
.hint { color: var(--muted); font-size: 0.82rem; font-weight: 500; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 0.5rem 0 1.4rem;
}
.stat {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.stat span { display: block; color: rgba(255,255,255,0.7); font-size: 0.8rem; }
.stat strong { font-size: 1.45rem; }

.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 0.75rem 0.4rem; border-bottom: 1px solid var(--border); }
.pill {
  display: inline-flex;
  border-radius: var(--radius);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.pill.analise { background: #f4e6cf; color: var(--warn); }
.pill.pontuado { background: #dceee4; color: var(--ok); }
.pill.nao { background: #f3d9d9; color: var(--danger); }
.pill.review { background: #e4ebf6; color: var(--navy); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.muted { color: var(--muted); }
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 0 0 2.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.page-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0e1c33;
}
.page-landing .wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.page-landing .hero { flex: 1; }

.stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  min-height: 0;
}
.brand-column {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(196, 165, 116, 0.14), transparent 58%),
    linear-gradient(180deg, #0c1c33 0%, #071422 52%, #050d18 100%);
}
.id-stage--column,
.brand-glow--column {
  display: none;
}
@media (min-width: 861px) {
  .brand-column {
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }
  .id-stage--column,
  .brand-glow--column {
    display: block;
  }
  .brand-column .id-stage--panel,
  .brand-column .brand-panel > .brand-glow {
    display: none;
  }
  .brand-column .brand-panel {
    background: transparent;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: visible;
    padding-inline: clamp(2.2rem, 5vw, 5rem);
    padding-block: 0.55rem;
  }
  .brand-intro {
    padding-top: clamp(1.4rem, 3vw, 2.4rem);
    padding-bottom: 0.35rem;
  }
  .brand-facts {
    padding-top: 0.2rem;
    padding-bottom: clamp(1.4rem, 3vw, 2.4rem);
  }
  .brand-facts .rule-rail {
    margin-top: 0.9rem;
  }
  .page-landing .brand-inner {
    width: min(44rem, 100%);
    margin-inline: auto;
  }
  .page-landing .journey {
    justify-content: center;
  }
  .auth-panel {
    align-items: center;
    justify-content: center;
    padding-inline: clamp(1.6rem, 4vw, 3.2rem);
  }
  .auth-head,
  .auth-foot {
    width: min(100%, 420px);
  }
  .page-landing .auth-card {
    width: min(100%, 420px);
    margin-block: 1.25rem;
  }
  .id-stage--column .id-raio {
    left: 6%;
    right: auto;
    top: 50%;
    height: 86%;
    max-width: 58%;
    width: auto;
    object-fit: contain;
    object-position: left center;
    transform: translate3d(calc(var(--tx, 0) * 1px), calc(-50% + var(--ty, 0) * 1px), 0);
    opacity: 0.3;
  }
  .id-stage--column .id-frame {
    inset: 5% 8%;
  }
}

.brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #f7f1e8;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(196, 165, 116, 0.14), transparent 58%),
    linear-gradient(180deg, #0c1c33 0%, #071422 52%, #050d18 100%);
  touch-action: pan-y;
}
.brand-bolt {
  position: absolute;
  right: -6%;
  bottom: -12%;
  height: min(92%, 640px);
  width: auto;
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
}
.id-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.id-raio {
  position: absolute;
  right: -8%;
  top: 6%;
  height: 92%;
  width: auto;
  max-width: none;
  opacity: 0.42;
  transform: translate3d(calc(var(--tx, 0) * 1px), calc(var(--ty, 0) * 1px), 0);
  filter: drop-shadow(0 0 28px rgba(196, 165, 116, 0.18));
}
.id-frame {
  position: absolute;
  inset: 4% 6%;
  width: auto;
  height: auto;
  max-width: none;
  opacity: 0.9;
}
.brand-inner {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  text-align: center;
}
.id-card {
  width: min(100%, 22.5rem);
  margin: 0 auto 1.15rem;
  padding: 0.55rem 0.65rem 0.45rem;
  background: rgba(7, 20, 34, 0.72);
  border: 1px solid rgba(196, 165, 116, 0.38);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}
.id-lockup {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.page-landing .kicker,
.page-landing .kicker {
  color: var(--gold);
  margin-bottom: 1rem;
}
.page-landing h1,
.page-landing h1 {
  color: #f7f1e8;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.page-landing .lead,
.page-landing .lead {
  color: rgba(247, 241, 232, 0.74);
  font-size: 0.98rem;
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}
.rule-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  perspective: 760px;
  text-align: left;
}
.rule-rail li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(196, 165, 116, 0.28);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  backdrop-filter: blur(10px);
}
.rule-rail span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rule-rail strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background:
    radial-gradient(ellipse 80% 40% at 80% -10%, rgba(30, 54, 97, 0.08), transparent 50%),
    #f6f7f9;
  padding: 1.25rem 1.5rem 1rem;
}
.auth-head,
.auth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.auth-head { padding: 0.35rem 0.25rem 0.5rem; }
.auth-foot {
  padding: 1rem 0.25rem 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.page-landing .auth-card,
.page-landing .auth-card {
  width: min(100%, 420px);
  margin: auto;
  padding: 1.45rem 1.4rem 1.5rem;
  border: 0;
  box-shadow: 0 28px 80px rgba(14, 28, 51, 0.14);
  animation: card-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.18s backwards;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}
.page-landing .auth-title {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.page-landing .btn {
  margin-top: 0.2rem;
  padding: 0.95rem 1.1rem;
  letter-spacing: 0.01em;
}

@media (max-width: 860px) {
  .hero, .grid-2, .rules, .form-row { grid-template-columns: 1fr; }
  .header, .topbar { flex-wrap: wrap; }
  .hero { align-items: stretch; padding-top: 1.4rem; gap: 1.5rem; }
  .auth-card { position: static; }
  .stage {
    grid-template-columns: 1fr;
  }
  .brand-panel {
    min-height: auto;
    padding: 2rem 1.25rem 2.4rem;
  }
  .brand-bolt { height: 70%; opacity: 0.1; }
  .page-landing h1 { font-size: 1.85rem; }
  .page-landing .auth-card { margin: 0.4rem auto 0.8rem; }
}

.page-landing {
  --mx: 42%;
  --my: 28%;
  --tx: 0;
  --ty: 0;
}
.brand-glow {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(circle 280px at var(--mx) var(--my), rgba(226, 159, 97, 0.28), transparent 62%),
    radial-gradient(circle 420px at calc(var(--mx) + 12%) calc(var(--my) + 18%), rgba(90, 140, 220, 0.16), transparent 70%);
  transition: background-position 0.12s linear;
  animation: glow-breathe 7s ease-in-out infinite;
}
.brand-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.brand-orbs span {
  position: absolute;
  border-radius: 50%;
  background: rgba(226, 159, 97, 0.45);
  filter: blur(1px);
  animation: orb-float 11s ease-in-out infinite;
}
.brand-orbs span:nth-child(1) {
  width: 10px;
  height: 10px;
  left: 18%;
  top: 22%;
  animation-duration: 9s;
}
.brand-orbs span:nth-child(2) {
  width: 6px;
  height: 6px;
  left: 68%;
  top: 18%;
  background: rgba(247, 241, 232, 0.55);
  animation-duration: 13s;
  animation-delay: -3s;
}
.brand-orbs span:nth-child(3) {
  width: 8px;
  height: 8px;
  left: 42%;
  top: 72%;
  animation-duration: 10s;
  animation-delay: -6s;
}
.page-landing .brand-bolt {
  transform: translate3d(calc(var(--tx) * 1px), calc(var(--ty) * 1px), 0);
  filter: drop-shadow(0 0 28px rgba(226, 159, 97, 0.28));
  animation: bolt-breathe 5.4s ease-in-out infinite;
  will-change: transform, filter, opacity;
}
.page-landing .brand-inner > * {
  animation: rise-in 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.page-landing .brand-inner > :nth-child(1) { animation-delay: 0.05s; }
.page-landing .brand-inner > :nth-child(2) { animation-delay: 0.14s; }
.page-landing .brand-inner > :nth-child(3) { animation-delay: 0.22s; }
.page-landing .brand-inner > :nth-child(4) { animation-delay: 0.32s; }
.page-landing .brand-inner > :nth-child(5) { animation-delay: 0.44s; }

.rule-rail li {
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}
.rule-rail li::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 159, 97, 0.35), transparent 68%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.rule-rail li em {
  display: block;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(247, 241, 232, 0.62);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.35;
  transition: max-height 0.32s ease, margin 0.32s ease;
}
.rule-rail li:hover,
.rule-rail li:focus-visible {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(226, 159, 97, 0.5);
  box-shadow: 0 14px 30px rgba(8, 16, 32, 0.28);
  outline: none;
}
.rule-rail li:hover::after,
.rule-rail li:focus-visible::after { opacity: 1; }
.rule-rail li:hover em,
.rule-rail li:focus-visible em {
  max-height: 3.2rem;
  margin-top: 0.45rem;
}

.journey {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}
.journey li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(247, 241, 232, 0.62);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.journey li + li::before {
  content: "";
  width: 18px;
  height: 1px;
  margin-right: 0.15rem;
  background: linear-gradient(90deg, rgba(226, 159, 97, 0.15), var(--orange));
  animation: path-pulse 2.4s linear infinite;
}
.journey span {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1px solid rgba(226, 159, 97, 0.4);
  color: var(--orange);
  font-size: 0.68rem;
}
.journey .is-now {
  color: #fff;
}
.journey .is-now span {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy-dark);
  box-shadow: 0 0 0 0 rgba(226, 159, 97, 0.55);
  animation: pulse-ring 2.2s ease-out infinite;
}

.page-landing .tabs {
  position: relative;
}
.tab-glider {
  position: absolute;
  top: 0.22rem;
  left: 0.22rem;
  width: calc((100% - 0.44rem - 0.2rem) / 2);
  height: calc(100% - 0.44rem);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 14px rgba(30, 54, 97, 0.1);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.page-landing .tabs.is-register .tab-glider {
  transform: translateX(calc(100% + 0.2rem));
}
.page-landing .tab {
  position: relative;
  z-index: 1;
  background: transparent;
  box-shadow: none;
  transition: color 0.25s ease;
}
.page-landing .tab.is-on {
  background: transparent;
  box-shadow: none;
}

.page-landing .auth-card:hover {
  box-shadow: 0 36px 90px rgba(14, 28, 51, 0.2);
}
.page-landing .form {
  animation: form-swap 0.38s ease backwards;
}
.page-landing .nav-link {
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.page-landing .nav-link:hover {
  background: #fff;
  border-color: rgba(30, 54, 97, 0.28);
  transform: translateY(-1px);
}
.page-landing input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.page-landing input:hover { background: #fff; }
.page-landing input:focus {
  transform: translateY(-1px);
  background: #fff;
}
.page-landing .password-field input:focus {
  transform: none;
}
.page-landing .btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.page-landing .btn span { position: relative; z-index: 1; }
.page-landing .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 48%, transparent 72%);
  transform: translateX(-120%);
}
.page-landing .btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.page-landing .btn:hover::after {
  animation: shine 0.7s ease;
}
.page-landing .btn:active { transform: translateY(0); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes form-swap {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bolt-breathe {
  0%, 100% { opacity: 0.16; filter: drop-shadow(0 0 18px rgba(226, 159, 97, 0.18)); }
  50% { opacity: 0.28; filter: drop-shadow(0 0 42px rgba(226, 159, 97, 0.48)); }
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); opacity: 0.35; }
  50% { transform: translate(18px, -28px); opacity: 0.9; }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(226, 159, 97, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(226, 159, 97, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 159, 97, 0); }
}
@keyframes path-pulse {
  0% { opacity: 0.25; }
  50% { opacity: 1; }
  100% { opacity: 0.25; }
}
@keyframes shine {
  to { transform: translateX(120%); }
}

.page-app {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 42% at 8% -8%, rgba(30, 54, 97, 0.12), transparent 52%),
    var(--bg);
}
.app-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  --app-content: 1120px;
}
.app-shell > .app-grid,
.app-shell > .solutions-card,
.app-shell > .support-card,
.app-shell > .rules-doc,
.app-shell > .footer {
  width: min(var(--app-content), calc(100% - 2.5rem));
  margin-inline: auto;
}
.app-shell > .app-grid,
.app-shell > .footer {
  padding-inline: 0;
}
.app-bar,
.app-bar-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.app-bar { padding: 1.1rem 0; }
.app-bar-right { justify-content: flex-end; }
.user-chip {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
}
.dash-hero {
  position: relative;
  overflow: hidden;
  color: #f7f1e8;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(196, 165, 116, 0.14), transparent 58%),
    linear-gradient(180deg, #0c1c33 0%, #071422 55%, #050d18 100%);
  border-radius: 0;
  padding: clamp(1.4rem, 3.5vw, 2.6rem) 0;
  --mx: 72%;
  --my: 28%;
  box-shadow: 0 24px 60px rgba(14, 28, 51, 0.18);
}
.dash-id .id-raio {
  right: -12%;
  top: -18%;
  height: 140%;
  opacity: 0.28;
}
.dash-id .id-frame {
  inset: -6% -4%;
  opacity: 0.55;
}
.dash-glow {
  position: absolute;
  inset: -18%;
  pointer-events: none;
  background: radial-gradient(circle 280px at var(--mx) var(--my), rgba(226, 159, 97, 0.26), transparent 62%);
}
.dash-bar,
.dash-bar-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}
.dash-bar { margin-bottom: 1.35rem; }
.dash-bar .logo { height: 86px; width: auto; object-fit: contain; filter: none; }
.dash-bar-right { justify-content: flex-end; flex-wrap: wrap; }
.dash-bar .user-chip { color: #f7f1e8; }
.dash-bar .btn.ghost {
  background: transparent;
  color: #f7f1e8;
  border: 1px solid rgba(247, 241, 232, 0.28);
  border-radius: var(--radius);
  padding: 0.55rem 0.95rem;
}
.rules-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  min-height: 2.7rem;
  padding: 0.7rem 1.15rem;
  box-shadow: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.rules-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.dash-hero > :not(.id-stage):not(.dash-glow) {
  position: relative;
  z-index: 1;
  width: min(var(--app-content), calc(100% - 2.5rem));
  margin-inline: auto;
}
.dash-hero .kicker,
.dash-hero h1,
.dash-hero .dash-lead {
  text-align: left;
}
.dash-hero .journey {
  justify-content: center;
}
.dash-hero h1 {
  color: #f7f1e8;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
}
.dash-lead {
  max-width: none;
  margin: 0 0 1.4rem;
  color: rgba(247, 241, 232, 0.74);
  font-size: 1.02rem;
  line-height: 1.55;
}
.dash-stats {
  margin: 0;
}
.dash-stats .stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(226, 159, 97, 0.24);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.dash-stats .stat:hover,
.dash-stats .stat:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(226, 159, 97, 0.7);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}
.dash-stats .stat em {
  display: block;
  margin-top: 0.25rem;
  color: rgba(247, 241, 232, 0.55);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 500;
}
.dash-stats .stat.is-rank strong { color: var(--orange); }
.dash-journey { margin-top: 1.4rem; }
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 1.2rem;
  margin-top: 1.2rem;
  box-sizing: border-box;
}
.dash-card {
  animation: rise-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.dash-card:nth-child(2) { animation-delay: 0.08s; }
.dash-card h2 { margin-bottom: 0.35rem; }
.check-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.check-card:hover,
.check-card:has(input:checked) {
  border-color: rgba(226, 159, 97, 0.7);
  background: #fff;
  transform: translateY(-1px);
}
.check-card input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--navy); }
.check-card em {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 500;
}
.file-drop {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 1.15rem 1rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-drop:hover,
.file-drop.is-over {
  border-color: var(--orange);
  background: rgba(226, 159, 97, 0.08);
  transform: translateY(-1px);
}
.file-drop em { color: var(--muted); font-style: normal; font-weight: 500; white-space: pre-line; }
.project-list { display: grid; gap: 0.85rem; }
.project-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem 1.2rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 3px 0 0 transparent;
  animation: rise-in 0.45s ease both;
}
.project-card.is-pontuado { box-shadow: inset 3px 0 0 var(--ok); }
.project-card.is-analise { box-shadow: inset 3px 0 0 var(--warn); }
.project-card.is-nao { box-shadow: inset 3px 0 0 var(--danger); }
.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.1rem;
}
.project-copy { min-width: 0; flex: 1; }
.project-copy strong {
  display: block;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.project-card .hint { display: block; margin-top: 0.28rem; }
.project-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}
.project-card .pill { white-space: nowrap; }
.project-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.project-metric {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}
.project-metric.is-points { justify-items: end; text-align: right; }
.project-metric-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-value,
.project-points {
  color: var(--navy);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.project-value { font-size: 0.98rem; font-weight: 600; }
.project-points {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.15rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.review-modal {
  width: min(32rem, calc(100% - 2rem));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.review-modal::backdrop {
  background: rgba(15, 28, 51, 0.46);
}
.setup-modal {
  max-height: min(92dvh, 40rem);
  overflow: auto;
}
.setup-modal .hint { margin-bottom: 0.4rem; }
.review-modal h2 {
  margin: 0.1rem 0 0.35rem;
  color: var(--navy);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.review-modal textarea {
  min-height: 7.5rem;
  resize: vertical;
}
.btn.small {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}
.empty-state {
  margin: 0;
  padding: 0.4rem 0;
  color: var(--muted);
}
.nav-link {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.9rem;
}
.nav-link:hover { background: #fff; }
.rules-doc {
  margin-top: 1.2rem;
  padding: 1.7rem 1.85rem 1.8rem;
  scroll-margin-top: 1.2rem;
}
.rules-doc h3 {
  color: var(--navy);
  font-size: 1rem;
}
.rules-doc h2, .rules-doc h3 { margin-bottom: 0.4rem; }
.rules-doc p:not(.rules-more), .rules-doc li {
  color: var(--grey);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;
}
.rules-doc ul, .rules-doc ol { margin: 0.3rem 0 0; padding-left: 1.15rem; }
.rules-doc ol { display: grid; gap: 0.55rem; }
.rules-doc section { margin-top: 1.15rem; }
.rules-grid > section { margin-top: 0; }
.rules-doc h2 {
  color: var(--navy);
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}
.rules-full { padding: 1.7rem 1.7rem 2rem; }
.rules-lead {
  font-size: 1.08rem !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
}
.rules-toolbar,
.rules-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
}
.rules-toc a {
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.38rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f8fafc;
}
.rules-toc a:hover { background: #fff; border-color: rgba(226, 159, 97, 0.5); }
.prize-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.9rem;
}
.prize-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.05rem;
  background: #f8fafc;
}
.prize-card span {
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prize-card strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin: 0.28rem 0 0.45rem;
}
.prize-card p { margin: 0; }
.rules-callout {
  margin: 0.9rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--orange);
  background: rgba(226, 159, 97, 0.1);
  color: var(--navy);
  font-weight: 700;
}
.rules-example {
  margin: 0.9rem 0 0;
  padding: 0.95rem 1.05rem;
  border: 1px dashed rgba(30, 54, 97, 0.22);
  background: #fff;
}
.rules-example strong { color: var(--navy); }
.rules-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 0.8rem;
}
.rules-channels a {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  background: #fff;
}
.rules-channels span {
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rules-channels strong { color: var(--navy); }
.rules-close {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.rules-close p {
  color: var(--navy) !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
}
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.4rem;
  margin-top: 1.1rem;
}
.solutions-card {
  margin-top: 1.2rem;
  scroll-margin-top: 1.2rem;
  padding: 1.85rem 1.9rem 1.95rem;
}
.solutions-card > .hint {
  max-width: 40rem;
  line-height: 1.55;
  margin: 0;
}
.support-card {
  margin-top: 1.2rem;
  scroll-margin-top: 1.2rem;
  padding: 1.85rem 1.9rem 1.95rem;
}
.support-card > .hint {
  max-width: 38rem;
  line-height: 1.55;
  margin: 0;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.35rem 0 0;
}
.support-tile {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  min-height: 8.4rem;
  padding: 1.35rem 1.35rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
a.support-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 159, 97, 0.55);
  box-shadow: 0 10px 24px rgba(30, 54, 97, 0.08);
}
.support-tile span {
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.support-tile strong {
  color: var(--navy);
  font-size: 1.05rem;
}
.support-tile em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
}
.support-topics {
  margin-top: 1.6rem;
  padding: 1.35rem 1.45rem 1.3rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.support-topics h2 {
  margin: 0 0 0.75rem;
}
.support-topics ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.5rem;
}
.support-card .rules-more {
  margin-top: 1.55rem;
}
.rules-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 1.2rem 0 0;
}
.rules-more .rules-btn,
.rules-more .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.7rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-sizing: border-box;
}
.app-shell.rules-shell {
  width: min(920px, calc(100% - 2rem));
  margin-inline: auto;
  padding-bottom: 2.5rem;
}
.app-shell.rules-shell > .support-card,
.app-shell.rules-shell > .rules-doc {
  width: 100%;
  margin-inline: 0;
}
.page-app.is-loading .stat strong {
  animation: pulse-skel 1.1s ease-in-out infinite;
}
@keyframes pulse-skel {
  50% { opacity: 0.4; }
}

@media (max-width: 860px) {
  .app-grid,
  .form-row,
  .rules-grid,
  .support-grid,
  .prize-split,
  .rules-channels { grid-template-columns: 1fr; }
  .support-tile { min-height: 0; }
  .project-top { flex-wrap: wrap; }
  .project-pills { justify-content: flex-start; }
  .app-bar,
  .dash-bar { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-glow,
  .brand-orbs span,
  .page-landing .brand-bolt,
  .page-landing .brand-inner > *,
  .page-landing .auth-card,
  .page-landing .form,
  .journey .is-now span,
  .journey li + li::before,
  .page-landing .btn::after {
    animation: none !important;
  }
  .rule-rail li,
  .page-landing .auth-card,
  .page-landing .btn,
  .tab-glider {
    transition: none !important;
  }
  .page-landing .auth-card:hover,
  .rule-rail li:hover {
    transform: none;
  }
  .dash-card,
  .project-card,
  .page-app.is-loading .stat strong {
    animation: none !important;
  }
  .dash-stats .stat:hover,
  .check-card:hover,
  .file-drop:hover {
    transform: none;
  }
}

.support-dock {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}
.support-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  cursor: pointer;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  box-shadow: 0 12px 28px rgba(7, 20, 34, 0.28);
  font-weight: 700;
}
.support-fab-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy-ink);
  display: grid;
  place-items: center;
}
.support-fab-icon svg { width: 1.15rem; height: 1.15rem; }
.support-badge {
  min-width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--navy-ink);
  font-size: 0.7rem;
  display: grid;
  place-items: center;
}
.support-panel {
  width: min(22.5rem, calc(100vw - 1.6rem));
  max-height: min(34rem, calc(100vh - 6rem));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.support-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1rem 0.7rem;
  background: var(--navy);
  color: #fff;
}
.support-panel-head .kicker { color: var(--orange); margin: 0; }
.support-panel-head h2 { margin: 0.15rem 0 0; font-size: 1.05rem; color: #fff; }
.support-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.support-lead,
.support-status,
.support-empty {
  margin: 0;
  padding: 0.65rem 1rem 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.support-status { padding-bottom: 0.7rem; }
.support-status.err { color: var(--danger); }
.support-contact {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem 1rem 0;
}
.support-contact label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy);
}
.support-contact input,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
}
.support-thread {
  flex: 1;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  min-height: 8rem;
}
.support-msg {
  max-width: 90%;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
}
.support-msg span,
.support-msg em {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
}
.support-msg p { margin: 0.2rem 0; }
.support-msg.is-user {
  justify-self: end;
  background: #eef3f8;
}
.support-msg.is-luzzo {
  justify-self: start;
  background: #fff6ec;
}
.support-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  align-items: end;
}
@media (max-width: 640px) {
  .support-fab-text { display: none; }
  .support-fab { padding: 0.65rem; }
}

@media (max-width: 860px) {
  :root { --mobile-gutter: max(1rem, env(safe-area-inset-left, 0px)); }
  .wrap {
    width: calc(100% - 2 * var(--mobile-gutter));
  }
  .page-landing {
    min-height: auto;
  }
  .stage {
    align-content: start;
    grid-template-rows: auto;
  }
  .brand-column {
    display: contents;
  }
  .brand-intro { order: 1; }
  .auth-panel { order: 2; }
  .brand-facts { order: 3; }
  .auth-panel {
    justify-content: flex-start;
    padding: 0.85rem max(1rem, env(safe-area-inset-right, 0px)) 1.1rem var(--mobile-gutter);
  }
  .page-landing .auth-card {
    width: 100%;
    margin: 0 auto;
    padding: 1.15rem 1rem 1.2rem;
  }
  .auth-head,
  .auth-foot {
    gap: 0.65rem;
    padding-inline: 0;
  }
  .auth-foot {
    flex-wrap: wrap;
    padding-bottom: 0.15rem;
  }
  .auth-foot a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }
  .brand-panel {
    overflow-x: clip;
    overflow-y: visible;
    padding: 1.5rem max(1rem, env(safe-area-inset-right, 0px)) 1.35rem var(--mobile-gutter);
  }
  .brand-intro {
    padding-top: max(1.25rem, env(safe-area-inset-top, 0px));
    padding-bottom: 1.25rem;
  }
  .brand-facts {
    padding-top: 0.35rem;
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }
  .brand-inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-landing .lead {
    width: 100%;
    max-width: 100%;
    font-size: 0.95rem;
    padding-inline: 0.15rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    text-wrap: pretty;
  }
  .id-card {
    width: min(100%, 16.5rem);
    margin-bottom: 0.85rem;
  }
  .id-lockup {
    width: auto;
    max-width: 100%;
    height: auto;
  }
  .rule-rail {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-top: 0;
  }
  .rule-rail li {
    padding: 0.85rem 0.9rem;
  }
  .page-landing .journey,
  .dash-hero .journey {
    justify-content: flex-start;
    row-gap: 0.5rem;
  }
  .journey li {
    font-size: 0.72rem;
  }
  .journey li + li::before {
    width: 10px;
  }
  .tab,
  .btn,
  .nav-link,
  .rules-btn,
  .password-toggle {
    min-height: 2.75rem;
  }
  .password-toggle {
    width: 2.75rem;
  }
  .page-landing .btn {
    width: 100%;
  }
  .app-shell > .app-grid,
  .app-shell > .solutions-card,
  .app-shell > .support-card,
  .app-shell > .rules-doc,
  .app-shell > .footer,
  .dash-hero > :not(.id-stage):not(.dash-glow) {
    width: 100%;
    margin-inline: 0;
    padding-inline: var(--mobile-gutter) max(1rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }
  .app-shell.rules-shell {
    width: 100%;
  }
  .dash-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
  }
  .dash-bar .logo {
    width: auto;
    height: 52px;
    max-width: min(240px, 100%);
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
    align-self: flex-start;
    flex-shrink: 0;
  }
  .dash-bar-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    justify-content: stretch;
    align-items: center;
    gap: 0.5rem 0.75rem;
  }
  .dash-bar-right .rules-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .dash-bar .user-chip {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .dash-hero {
    padding-top: 1.05rem;
    padding-bottom: 1.35rem;
  }
  .dash-hero h1 {
    font-size: 1.55rem;
  }
  .dash-lead {
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
  }
  .dash-stats .stat {
    padding: 0.85rem 0.95rem;
  }
  .page-app {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }
  .app-grid {
    margin-top: 0.9rem;
    gap: 0.9rem;
  }
  .card,
  .project-card {
    padding: 1rem 0.95rem 0.95rem;
  }
  .rules-full {
    padding: 1.15rem 1rem 1.4rem;
  }
  .rules-toc {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0.2rem;
  }
  .rules-toc a {
    flex: 1 1 calc(50% - 0.55rem);
    min-width: 0;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .project-metrics {
    grid-template-columns: 1fr;
  }
  .project-metric.is-points {
    justify-items: start;
    text-align: left;
  }
  .project-value,
  .project-points {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .project-actions,
  .form-actions,
  .ticket-card .form-actions,
  .rules-more,
  .rules-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .project-actions .btn,
  .form-actions .btn,
  .rules-more .rules-btn,
  .rules-more .nav-link,
  .rules-toolbar .rules-btn,
  .rules-toolbar .nav-link {
    width: 100%;
  }
  .file-drop {
    padding: 1rem 0.85rem;
  }
  .support-topics {
    padding: 1.05rem 1rem;
  }
  .support-dock {
    right: max(0.7rem, env(safe-area-inset-right, 0px));
    bottom: max(0.7rem, env(safe-area-inset-bottom, 0px));
  }
  .support-panel {
    width: min(22.5rem, calc(100vw - 1.1rem));
    max-height: min(78dvh, calc(100dvh - 5.2rem - env(safe-area-inset-bottom, 0px)));
  }
  .support-form {
    grid-template-columns: 1fr;
  }
  .support-form .btn {
    width: 100%;
  }
  .support-contact input,
  .support-form textarea {
    font-size: 1rem;
    min-height: 2.75rem;
  }
  .page-app .app-bar {
    padding-inline: var(--mobile-gutter) max(1rem, env(safe-area-inset-right, 0px));
  }
  .card:has(.table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .app-bar .logo {
    height: 36px;
  }
}

@media (hover: none) {
  .page-landing .auth-card:hover,
  .dash-stats .stat:hover,
  .check-card:hover,
  .file-drop:hover,
  a.support-tile:hover,
  .rule-rail li:hover,
  .rules-btn:hover {
    transform: none;
  }
}
.ticket-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  margin: 0.7rem 0 0;
}
.ticket-card .form-actions { margin-top: 0.6rem; display: flex; gap: 0.45rem; flex-wrap: wrap; }

@media (max-width: 860px) {
  .ticket-card .form-actions { flex-direction: column; }
}

@media (max-width: 860px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  body,
  .page-landing,
  .page-app {
    min-height: 100dvh;
    overflow-x: clip;
  }
  a,
  button,
  .tab,
  .nav-link,
  .rules-btn,
  .support-fab,
  .file-drop,
  .check-card {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(30, 54, 97, 0.12);
  }
  input,
  textarea,
  select {
    font-size: 16px;
    min-height: 2.75rem;
    max-width: 100%;
  }
  textarea { min-height: 5.5rem; }
  input[type="date"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="text"] {
    min-height: 2.75rem;
    min-width: 0;
    max-width: 100%;
  }
  input[type="date"] {
    padding-inline: 0.65rem;
    overflow: hidden;
  }

  .id-raio {
    right: -28%;
    top: 8%;
    height: 78%;
    opacity: 0.28;
  }
  .id-frame {
    inset: 6% 4%;
  }
  .page-landing .auth-head .logo {
    height: 36px;
  }
  .page-landing .auth-title {
    font-size: 1.05rem;
  }
  .page-landing .tabs {
    margin-bottom: 0.35rem;
    min-width: 0;
  }
  .page-landing .tab {
    white-space: nowrap;
    font-size: 0.92rem;
    padding-inline: 0.35rem;
  }
  .page-landing .auth-card {
    min-width: 0;
    max-width: 100%;
  }
  .page-landing .journey,
  .dash-hero .journey {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    justify-content: stretch;
    margin-top: 1.1rem;
  }
  .journey li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.28rem;
    text-align: center;
    font-size: 0.64rem;
    line-height: 1.2;
    min-width: 0;
    overflow-wrap: normal;
    word-break: keep-all;
  }
  .journey li + li::before {
    display: none;
  }

  .dash-stats.stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0 0 0.35rem;
  }
  .dash-stats .stat {
    padding: 0.7rem 0.45rem;
  }
  .dash-stats .stat span {
    font-size: 0.68rem;
  }
  .dash-stats .stat strong {
    font-size: 1.05rem;
    line-height: 1.15;
    overflow-wrap: normal;
    font-variant-numeric: tabular-nums;
  }
  .dash-stats .stat em {
    font-size: 0.62rem;
    line-height: 1.25;
  }
  .dash-bar .logo {
    width: auto;
    height: 52px;
    max-width: min(240px, 100%);
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
    align-self: flex-start;
    flex-shrink: 0;
  }
  .page-app .app-bar {
    gap: 0.65rem;
  }
  .page-app .app-bar-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .page-app .app-bar-right .nav-link,
  .page-app .app-bar-right .rules-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .support-dock {
    left: max(0.55rem, env(safe-area-inset-left, 0px));
    right: max(0.55rem, env(safe-area-inset-right, 0px));
    bottom: max(0.55rem, env(safe-area-inset-bottom, 0px));
    align-items: stretch;
  }
  .support-fab {
    align-self: flex-end;
    min-height: 2.85rem;
  }
  .support-panel {
    width: 100%;
    max-height: min(88dvh, calc(100dvh - 5rem - env(safe-area-inset-bottom, 0px)));
  }
  .review-modal {
    width: calc(100% - 1.2rem);
    max-height: min(90dvh, 100%);
    overflow: auto;
    padding: 1.05rem 1rem 1.15rem;
  }
  .page-landing .brand-inner > *,
  .page-landing .auth-card,
  .page-landing .form {
    animation: none;
  }
  .id-stage,
  .dash-id {
    overflow: hidden;
  }
}

@media (max-width: 430px) {
  .id-card {
    width: min(100%, 14.5rem);
  }
  .page-landing .lead {
    font-size: 0.9rem;
    padding-inline: 0.15rem;
    line-height: 1.5;
  }
  .dash-hero h1 {
    font-size: 1.38rem;
  }
  .dash-stats .stat strong {
    font-size: 0.95rem;
  }
  .journey li {
    font-size: 0.6rem;
  }
  .brand-panel {
    padding-top: 1.15rem;
  }
}
