:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-alt: #eef3f8;
  --ink: #172033;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e4e9f0;
  --line-strong: #d6dde7;
  --primary: #2457d6;
  --primary-dark: #173ea8;
  --primary-soft: #edf3ff;
  --success: #15803d;
  --success-soft: #ecfdf3;
  --danger: #c73737;
  --danger-soft: #fff2f2;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 12px 30px rgba(31, 42, 68, .08);
  --shadow-lg: 0 24px 64px rgba(31, 42, 68, .16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --kbd-h: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(36, 87, 214, .2);
  outline-offset: 2px;
}

button[disabled] {
  cursor: default;
  opacity: .45;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.app-body {
  background: var(--bg);
}

.app-shell {
  min-height: 100dvh;
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 256px;
  flex-direction: column;
  padding: 26px 18px 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 28px;
  color: var(--ink);
  text-decoration: none;
}

.side-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.side-brand b {
  font-size: 17px;
  letter-spacing: -.02em;
}

.side-brand small {
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(36, 87, 214, .24);
}

.side-menu {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #475467;
  cursor: pointer;
  font-weight: 650;
  text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-item:hover {
  background: #f6f8fb;
  color: var(--ink);
}

.nav-item:active {
  transform: scale(.985);
}

.nav-item.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.side-foot {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.side-foot small {
  color: var(--muted);
  line-height: 1.45;
}

.side-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.side-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a35a;
  box-shadow: 0 0 0 4px rgba(34, 163, 90, .1);
}

.app-main {
  min-height: 100dvh;
  margin-left: 256px;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 24;
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 14px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(228, 233, 240, .86);
  background: rgba(244, 246, 249, .92);
  backdrop-filter: blur(18px);
}

.page-title {
  display: grid;
  gap: 2px;
}

.page-title small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-title strong {
  font-size: 15px;
}

.mobile-brand,
.top-back {
  display: none;
}

.avatar-btn,
.icon-btn {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: #344054;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.avatar-btn {
  margin-left: auto;
}

.view-wrap {
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

.app-view {
  display: none;
}

.app-view.is-active {
  display: block;
  animation: viewIn .2s ease-out;
}

@keyframes viewIn {
  from {
    opacity: .35;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.library-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.library-head > div {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.library-head h1,
.help-head h1,
.result-top h1 {
  margin: 6px 0 8px;
  color: #101828;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.library-head p,
.help-head p,
.result-top p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.btn-main,
.btn-ghost,
.btn-soft,
.btn-text {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 750;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.btn-main:active,
.btn-ghost:active,
.btn-soft:active,
.btn-text:active {
  transform: scale(.98);
}

.btn-main {
  padding: 0 20px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 7px 16px rgba(36, 87, 214, .18);
}

.btn-main:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-ghost {
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #344054;
}

.btn-ghost:hover,
.btn-soft:hover {
  border-color: #bdc7d5;
  background: #f9fafb;
}

.btn-soft {
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: #344054;
}

.btn-text {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.btn-text:hover {
  color: var(--primary);
}

.btn-sm {
  min-height: 42px;
  padding-inline: 16px;
}

.progress-card {
  margin-bottom: 14px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-sm);
}

.progress-copy,
.progress-track {
  display: none;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.step-item {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  text-align: left;
}

.step-item::after {
  position: absolute;
  right: 8px;
  left: 44px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--line);
  content: "";
}

.step-item span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.step-item b {
  font-size: 13px;
}

.step-item.is-active,
.step-item.is-done {
  color: var(--primary);
}

.step-item.is-active span,
.step-item.is-done span {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.step-item.is-active::after,
.step-item.is-done::after {
  background: var(--primary);
}

.wizard-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: clip;
}

.step-pane {
  display: none;
  min-height: 520px;
  padding: 32px;
}

.step-pane.is-active {
  display: block;
  animation: paneIn .2s ease;
}

@keyframes paneIn {
  from {
    opacity: .25;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pane-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.pane-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
}

.pane-head small {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.pane-head h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.pane-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.select-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.select-tile {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.select-tile:hover {
  border-color: #b7c5da;
  box-shadow: 0 6px 16px rgba(31, 42, 68, .06);
}

.select-tile:active {
  transform: scale(.99);
}

.select-tile span {
  display: grid;
  gap: 5px;
}

.select-tile small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.select-tile b {
  color: #1d2939;
  font-size: 15px;
}

.select-tile > svg {
  color: var(--muted-2);
}

.select-tile.compact {
  min-height: 70px;
}

.field-block {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.field-title,
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.field-title > span,
.list-head b {
  font-size: 13px;
  font-weight: 750;
}

.field-title small,
.list-head > span {
  color: var(--muted);
  font-size: 12px;
}

.seg-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.seg-row button {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  color: #475467;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.seg-row button.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 18px;
}

.content-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.search-box {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--muted-2);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 87, 214, .08);
}

.search-box svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.search-box input::placeholder,
.custom-row input::placeholder,
.field-area textarea::placeholder {
  color: #98a2b3;
}

.content-panel .list-head {
  margin-top: 16px;
}

.pick-list,
.selected-list {
  display: grid;
  gap: 8px;
  max-height: 292px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.pick-row,
.selected-row,
.bncc-row {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.pick-row {
  cursor: pointer;
  text-align: left;
}

.pick-row:hover {
  border-color: #bac7d8;
}

.pick-row.is-selected {
  border-color: #b5c8fa;
  background: var(--primary-soft);
}

.pick-row > span:first-child,
.selected-row > span:first-child {
  display: grid;
  gap: 3px;
  flex: 1;
}

.pick-row b,
.selected-row b {
  font-size: 13px;
  line-height: 1.35;
}

.pick-row small,
.selected-row small,
.bncc-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.row-check,
.row-remove {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--surface-alt);
  color: var(--muted);
}

.pick-row.is-selected .row-check {
  background: var(--primary);
  color: #fff;
}

.row-remove {
  cursor: pointer;
}

.row-remove:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.row-check svg,
.row-remove svg {
  width: 16px;
  height: 16px;
}

.custom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.custom-row input {
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: 0;
  background: #fff;
}

.custom-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 87, 214, .08);
}

.empty-box {
  padding: 26px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}


.custom-topic {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.custom-topic > div:first-child {
  display: grid;
  gap: 3px;
}

.custom-topic b {
  font-size: 13px;
}

.custom-topic small,
.muted-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.subject-bncc {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

.subject-bncc span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}

.bncc-intro {
  margin-bottom: 16px;
  padding: 15px 16px;
  border: 1px solid #cbd8fb;
  border-radius: 14px;
  background: #f7f9ff;
}

.bncc-intro div {
  display: grid;
  gap: 5px;
}

.bncc-intro b {
  color: var(--ink);
  font-size: 13px;
}

.bncc-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.bncc-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.bncc-related-list {
  max-height: 360px;
}

.bncc-selected-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.bncc-row button:disabled {
  cursor: default;
  opacity: .62;
}

.bncc-box {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}

.bncc-box summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  cursor: pointer;
  list-style: none;
}

.bncc-box summary::-webkit-details-marker {
  display: none;
}

.bncc-box summary span {
  display: grid;
  gap: 2px;
}

.bncc-box summary b {
  font-size: 13px;
}

.bncc-box summary small {
  color: var(--muted);
  font-size: 11px;
}

.bncc-box[open] summary svg {
  transform: rotate(90deg);
}

.bncc-body {
  padding: 0 14px 14px;
}

.compact-list {
  margin-top: 10px;
  max-height: 210px;
}

.bncc-row {
  align-items: flex-start;
}

.bncc-row > div {
  display: grid;
  gap: 4px;
  flex: 1;
}

.bncc-row b {
  color: var(--primary);
  font-size: 12px;
}

.bncc-row button {
  min-width: 72px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.bncc-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.bncc-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 9px 0 11px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
}

.bncc-chip button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.bncc-chip svg {
  width: 14px;
  height: 14px;
}

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

.mode-card {
  display: flex;
  min-height: 126px;
  align-items: flex-start;
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.mode-card:hover {
  border-color: #b7c5da;
}

.mode-card:active {
  transform: scale(.99);
}

.mode-card.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.mode-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  border: 2px solid #c6d0de;
  border-radius: 50%;
  background: #fff;
}

.mode-card.is-active .mode-dot {
  border: 5px solid var(--primary);
}

.mode-card > div {
  display: grid;
  gap: 5px;
}

.mode-card small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
}

.mode-card b {
  font-size: 14px;
}

.mode-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.wide-box {
  margin-top: 16px;
}

.type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.type-chip {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  color: #475467;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.type-chip.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

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

.field-area {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.field-area > span {
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.field-area > span small {
  color: var(--muted);
  font-weight: 500;
}

.field-area textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
}

.field-area textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 87, 214, .08);
}

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

.review-card {
  display: grid;
  gap: 8px;
  min-height: 110px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.review-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.review-card b {
  font-size: 15px;
  line-height: 1.45;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.quality-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #bfe8ca;
  border-radius: 14px;
  background: var(--success-soft);
  color: #166534;
}

.quality-note > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.quality-note div {
  display: grid;
  gap: 4px;
}

.quality-note b {
  font-size: 13px;
}

.quality-note p {
  margin: 0;
  color: #447053;
  font-size: 12px;
  line-height: 1.45;
}

.wizard-foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.foot-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.result-view {
  width: min(100%, 1680px);
  max-width: calc(100vw - clamp(36px, 4vw, 88px));
  margin: 0 auto;
}

.result-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(12px, 1.4vw, 18px);
  margin-bottom: clamp(14px, 1.8vw, 22px);
}

.result-top small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
}

.result-top h1 {
  margin-top: 4px;
  font-size: clamp(26px, 3vw, 36px);
}

.result-toolbar {
  position: sticky;
  top: 84px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.2vw, 16px);
  margin-bottom: clamp(14px, 1.6vw, 20px);
  padding: clamp(10px, 1vw, 14px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.result-navgroup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
}

.result-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: var(--surface-alt);
}

.export-note {
  color: var(--primary);
  font-size: clamp(11px, .76vw, 13px);
  font-weight: 750;
  line-height: 1.35;
}

.export-note span {
  color: #b42318;
}

.result-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.result-tabs button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.result-tabs span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-alt);
  font-size: 10px;
}

.result-actions {
  display: flex;
  gap: 8px;
}

.result-pane {
  display: none;
}

.result-pane.is-active {
  display: grid;
  gap: clamp(12px, 1.4vw, 18px);
}

.activity-card,
.plan-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.activity-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.activity-meta {
  display: grid;
  gap: 4px;
}

.activity-meta small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.activity-meta b {
  font-size: 14px;
}

.activity-tools {
  display: flex;
  gap: 6px;
}

.tool-btn {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #475467;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.tool-btn svg {
  width: 16px;
  height: 16px;
}

.tool-btn:hover {
  border-color: #bdc7d5;
  background: #f9fafb;
}

.tool-btn.is-danger {
  color: #b42318;
}

.tool-btn.is-danger:hover {
  border-color: #f3b4ae;
  background: #fff5f4;
}

.activity-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.question-title {
  margin: 0;
  color: #1d2939;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.6;
}

.alt-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alt-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #344054;
  font-size: 14px;
  line-height: 1.5;
}

.alt-key {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: #475467;
  font-size: 11px;
  font-weight: 800;
}

.support-box,
.answer-box,
.generic-row {
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--surface-soft);
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.answer-box {
  border-left: 3px solid #b9c8ea;
}

.generic-grid {
  display: grid;
  gap: 8px;
}

.generic-row small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-card {
  display: grid;
  gap: 0;
}

.plan-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.plan-section:last-child {
  border-bottom: 0;
}

.plan-section h3 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: capitalize;
}

.plan-section p {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.library-search {
  max-width: 520px;
  margin: 18px 0;
}

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

.history-card {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.history-card:hover {
  border-color: #c5cfdb;
  box-shadow: 0 10px 24px rgba(31, 42, 68, .06);
}

.history-main {
  display: grid;
  gap: 6px;
}

.history-main small {
  color: var(--muted);
  font-size: 11px;
}

.history-main b {
  font-size: 15px;
  line-height: 1.4;
}

.history-main span {
  color: var(--muted);
  font-size: 12px;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.history-actions button {
  flex: 1;
}

.danger-btn {
  color: var(--danger);
}

.help-head {
  max-width: 720px;
  margin-bottom: 24px;
}

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

.help-grid article {
  display: flex;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.help-grid article > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.help-grid article div {
  display: grid;
  gap: 6px;
}

.help-grid b {
  font-size: 14px;
}

.help-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.bottom-nav {
  display: none;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(3px);
}

.bottom-sheet {
  position: fixed;
  z-index: 90;
  right: 50%;
  bottom: 24px;
  width: min(520px, calc(100% - 32px));
  max-height: min(720px, calc(100dvh - 48px));
  transform: translateX(50%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: sheetIn .2s ease-out;
}

@keyframes sheetIn {
  from {
    opacity: .3;
    transform: translate(50%, 12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translate(50%, 0) scale(1);
  }
}

.sheet-handle {
  display: none;
}

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

.sheet-head small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
}

.sheet-head h2 {
  margin: 3px 0 0;
  font-size: 20px;
  letter-spacing: -.02em;
}

.sheet-search {
  padding: 0 18px 10px;
}

.sheet-options {
  display: grid;
  gap: 6px;
  max-height: 480px;
  padding: 4px 12px 16px;
  overflow: auto;
}

.sheet-option {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.sheet-option:hover {
  background: var(--surface-soft);
}

.sheet-option.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 750;
}

.sheet-option svg {
  width: 18px;
  height: 18px;
}

.edit-body {
  padding: 0 18px 4px;
}

.reason-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.reason-sheet .danger-btn {
  border-color: #d92d20;
  background: #d92d20;
  color: #fff;
}

.sheet-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.loading-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(244, 246, 249, .86);
  backdrop-filter: blur(12px);
}

.loading-card {
  display: grid;
  width: min(380px, 100%);
  place-items: center;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.load-orbit {
  position: relative;
  width: 50px;
  height: 50px;
  border: 3px solid #e7edfa;
  border-radius: 50%;
}

.load-orbit i {
  position: absolute;
  inset: -3px;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-card h2 {
  margin: 18px 0 7px;
  font-size: 19px;
}

.loading-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.load-line {
  width: 100%;
  height: 4px;
  margin-top: 22px;
  border-radius: 999px;
  background: #edf1f5;
  overflow: hidden;
}

.load-line i {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  animation: loadMove 1.25s ease-in-out infinite;
}

@keyframes loadMove {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(300%);
  }
}


/* ------------------------------------- showAlerta ---------------------------- */
#mmAlertWrap{
  position:fixed;
  top: 5px;
  right:5px;
  display:flex;
  flex-direction:column;
  gap:12px;
  z-index:9999;
  pointer-events:none;
  max-width:520px;
}

.mm-alert{
  pointer-events:auto;
  position:relative;
  display:flex;
  min-width:320px;
  border-radius:5px;
  overflow:hidden;
  box-shadow:0 14px 34px rgba(0,0,0,.18);
  border:1px solid rgba(0,0,0,.08);
  transition:opacity .14s ease, transform .14s ease;
}

.mm-alert.mm-hide{
  opacity:0;
  transform:translateY(-6px);
}

.mm-left{
  flex:0 0 56px;
  background:var(--mm-brd);
  display:flex;
  align-items:center;
  justify-content:center;
}

.mm-badge{
  width:30px;
  padding: 5px 0 8px 0;
  border-radius:999px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
}

.mm-right{
  flex:1 1 auto;
  background:var(--mm-bg);
  padding:12px 40px 12px 12px;
}

.mm-ttl{
  margin:0;
  font-size:14px;
  line-height:1.2;
  font-weight:800;
  color:#0b0b0b;
}

.mm-msg{
  margin:4px 0 0 0;
  font-size:13px;
  line-height:1.4;
  color:#424242;
}

.mm-close{
  position:absolute;
  top:8px;
  right:8px;
  width:26px;
  height:26px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(0,0,0,.12);
  box-shadow:0 8px 16px rgba(0,0,0,.12);
}

.mm-close:active{
  transform:scale(.97);
}

.mm-close:focus{
  outline:2px solid rgba(0,0,0,.22);
  outline-offset:2px;
}

.mm-x{
  font-size:14px;
  line-height:1;
}

.site-body {
  background: #f8fafc;
}

.site-head {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy b {
  font-size: 16px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
}

.hero-wrap {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .8fr);
  align-items: center;
  gap: 58px;
  min-height: 620px;
  margin: 0 auto;
  padding: 48px 0 74px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  color: #101828;
  font-size: clamp(44px, 5.8vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.btn-lg {
  min-height: 52px;
  padding-inline: 22px;
  text-decoration: none;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.trust-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.hero-card {
  position: relative;
  padding: 20px;
  border: 1px solid #dce4ee;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(34, 54, 90, .13);
}

.hero-card::before {
  position: absolute;
  inset: 20% -15% -12% 20%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(36, 87, 214, .11);
  filter: blur(55px);
  content: "";
}

.hero-cardtop,
.preview-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-cardtop {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.status-pill {
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 11px;
}

.preview-grid {
  margin-top: 16px;
}

.preview-grid > div,
.preview-field {
  display: grid;
  gap: 4px;
  flex: 1;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.preview-grid small,
.preview-field small,
.preview-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.preview-grid b,
.preview-field b {
  font-size: 13px;
}

.preview-field {
  margin-top: 10px;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.preview-tags span {
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
}

.preview-card {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.preview-card b {
  display: block;
  margin-top: 7px;
  font-size: 14px;
}

.preview-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.feature-wrap,
.cta-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.feature-wrap {
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.section-copy {
  max-width: 700px;
  margin-bottom: 28px;
}

.section-copy h2,
.cta-wrap h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.section-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.feature-card {
  min-height: 190px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.feature-card > span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
}

.feature-card h3 {
  margin: 26px 0 8px;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 74px;
  padding: 34px;
  border-radius: 24px;
  background: #172033;
  color: #fff;
}

.cta-wrap .eyebrow {
  color: #a7bfff;
}

.cta-wrap h2 {
  max-width: 720px;
  margin-bottom: 0;
  color: #fff;
}

.site-foot {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .side-nav {
    width: 218px;
  }

  .app-main {
    margin-left: 218px;
  }

  .view-wrap {
    width: min(100% - 36px, 1080px);
  }

  .hero-wrap {
    grid-template-columns: 1fr 390px;
    gap: 38px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  html,
  body {
    background: #f7f8fb;
  }

  .app-body {
    padding-top: var(--safe-top);
    padding-bottom: calc(68px + var(--safe-bottom));
  }

  .side-nav {
    display: none;
  }

  .app-main {
    margin-left: 0;
  }

  .app-top {
    position: fixed;
    inset: var(--safe-top) 0 auto;
    min-height: 58px;
    padding: 0 14px;
    background: rgba(247, 248, 251, .94);
  }

  .page-title,
  .top-reset {
    display: none;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .mobile-brand .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
    font-size: 15px;
    box-shadow: none;
  }

  .mobile-brand b {
    font-size: 15px;
  }

  .top-back {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #344054;
  }

  .avatar-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .view-wrap {
    width: 100%;
    padding: 76px 14px 26px;
  }

  .library-head {
    margin-bottom: 16px;
  }

  .library-head > div {
    max-width: none;
  }

  .library-head h1,
  .help-head h1 {
    margin-top: 4px;
    font-size: 28px;
    line-height: 1.08;
  }

  .library-head p,
  .help-head p {
    font-size: 14px;
    line-height: 1.55;
  }

  .progress-card {
    margin: 0 0 10px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .progress-copy b {
    font-size: 13px;
  }

  .progress-copy span {
    color: var(--muted);
    font-size: 12px;
  }

  .progress-track {
    display: block;
    height: 4px;
    margin-top: 10px;
    border-radius: 999px;
    background: #e8edf4;
    overflow: hidden;
  }

  .progress-track i {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    transition: width .22s ease;
  }

  .stepper {
    display: none;
  }

  .wizard-card {
    border-radius: 18px;
    box-shadow: 0 7px 24px rgba(31, 42, 68, .06);
  }

  .step-pane {
    min-height: 0;
    padding: 20px 16px 18px;
  }

  .pane-head {
    gap: 12px;
    margin-bottom: 20px;
  }

  .pane-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
  }

  .pane-icon svg {
    width: 19px;
    height: 19px;
  }

  .pane-head h2 {
    margin-top: 2px;
    font-size: 21px;
  }

  .pane-head p {
    font-size: 13px;
  }

  .select-stack,
  .content-layout,
  .bncc-layout,
  .mode-grid,
  .adjust-grid,
  .review-grid,
  .history-list,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .select-tile {
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 13px;
  }

  .select-tile b {
    font-size: 16px;
  }

  .field-block {
    margin-top: 14px;
    padding: 14px;
  }

  .seg-row {
    gap: 6px;
  }

  .seg-row button {
    min-height: 46px;
    font-size: 12px;
  }

  .content-layout {
    gap: 12px;
  }

  .content-panel {
    padding: 14px;
    border-radius: 14px;
  }

  .selected-panel {
    background: #fff;
  }

  .search-box {
    min-height: 48px;
  }

  .search-box input {
    font-size: 16px;
  }

  .pick-list,
  .selected-list {
    max-height: 278px;
  }

  .pick-row,
  .selected-row {
    min-height: 54px;
  }

  .custom-row input {
    min-height: 48px;
    font-size: 16px;
  }

  .custom-row .btn-soft {
    min-height: 48px;
  }


  .custom-topic small,
  .muted-note,
  .subject-bncc span {
    font-size: 12px;
  }

  .bncc-intro {
    padding: 14px;
  }

  .bncc-intro p {
    font-size: 13px;
  }

  .mode-card {
    min-height: 104px;
    padding: 14px;
  }

  .mode-card b {
    font-size: 15px;
  }

  .type-chip {
    min-height: 44px;
  }

  .select-tile.compact {
    min-height: 64px;
  }

  .field-area textarea {
    min-height: 118px;
    font-size: 16px;
  }

  .review-card {
    min-height: 96px;
  }

  .wizard-foot {
    position: sticky;
    z-index: 12;
    bottom: 0;
    grid-template-columns: auto 1fr;
    gap: 8px;
    min-height: 72px;
    padding: 10px 12px;
    border-top-color: rgba(228, 233, 240, .86);
  }

  .wizard-foot .foot-copy {
    display: none;
  }

  .wizard-foot .btn-main {
    min-height: 50px;
  }

  .wizard-foot .btn-ghost {
    min-width: 88px;
    min-height: 50px;
  }

  .result-view {
    max-width: none;
  }

  .result-top {
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
    margin: 0 -2px 12px;
  }

  .result-top .icon-btn {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .result-top h1 {
    margin-bottom: 4px;
    font-size: 25px;
  }

  .result-top p {
    font-size: 12px;
    line-height: 1.4;
  }

  .result-toolbar {
    top: calc(var(--safe-top) + 58px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 -2px 12px;
    padding: 8px;
    border-radius: 14px;
  }

  .result-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .result-tabs button {
    min-height: 42px;
  }

  .result-actions {
    display: none;
  }

  .activity-card,
  .plan-card {
    border-radius: 15px;
  }

  .activity-top {
    padding: 13px 14px;
  }

  .activity-tools {
    gap: 4px;
  }

  .tool-btn {
    width: 38px;
    min-height: 38px;
    padding: 0;
    justify-content: center;
  }

  .tool-btn span {
    display: none;
  }

  .activity-body {
    padding: 15px;
  }

  .question-title {
    font-size: 15px;
  }

  .library-head {
    display: block;
  }

  .library-head > .btn-main {
    display: none;
  }

  .library-search {
    max-width: none;
    margin: 14px 0 12px;
  }

  .history-card {
    padding: 14px;
    border-radius: 14px;
  }

  .help-grid article {
    min-height: 112px;
    padding: 15px;
  }

  .bottom-nav {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: calc(62px + var(--safe-bottom));
    padding: 5px 8px var(--safe-bottom);
    border-top: 1px solid rgba(222, 228, 236, .9);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
  }

  .bottom-nav button {
    display: grid;
    min-height: 52px;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #7a8699;
    cursor: pointer;
    font-size: 10px;
    font-weight: 750;
  }

  .bottom-nav button svg {
    width: 21px;
    height: 21px;
  }

  .bottom-nav button.is-active {
    color: var(--primary);
  }

  .sheet-backdrop {
    bottom: 0;
  }

  .bottom-sheet {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: calc(88dvh - var(--safe-top));
    transform: none;
    border: 0;
    border-radius: 22px 22px 0 0;
    padding-bottom: var(--safe-bottom);
    animation: mobileSheetIn .22s ease-out;
  }

  @keyframes mobileSheetIn {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .sheet-handle {
    display: block;
    width: 38px;
    height: 5px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: #d9dee7;
  }

  .sheet-head {
    padding: 12px 14px 10px;
  }

  .sheet-head h2 {
    font-size: 19px;
  }

  .sheet-search {
    padding: 0 14px 8px;
  }

  .sheet-options {
    max-height: 60dvh;
    padding: 4px 8px 12px;
  }

  .sheet-option {
    min-height: 54px;
    font-size: 15px;
  }

  .edit-body {
    padding: 0 14px 6px;
  }

  .sheet-foot {
    padding: 12px 14px calc(12px + var(--safe-bottom));
  }

  .sheet-foot > * {
    flex: 1;
    min-height: 50px;
  }

  .loading-card {
    width: min(340px, 100%);
    padding: 30px 22px;
    border-radius: 20px;
  }
body.keyboard-open {
    padding-bottom: 0;
  }

  body.keyboard-open .bottom-nav {
    display: none;
  }

  body.keyboard-open .wizard-foot {
    bottom: 0;
  }

  .site-head {
    width: calc(100% - 28px);
    min-height: calc(64px + var(--safe-top));
    padding-top: var(--safe-top);
  }

  .site-head .brand-copy small {
    display: none;
  }

  .hero-wrap {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
    padding: 46px 0 64px;
  }

  .hero-copy h1 {
    margin-top: 10px;
    font-size: clamp(42px, 13vw, 64px);
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .btn-lg {
    width: 100%;
  }

  .hero-card {
    border-radius: 20px;
  }

  .feature-wrap,
  .cta-wrap,
  .site-foot {
    width: calc(100% - 28px);
  }

  .feature-wrap {
    padding: 62px 0;
  }

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

  .feature-card {
    min-height: 150px;
  }

  .cta-wrap {
    display: grid;
    margin-bottom: 52px;
    padding: 24px;
    border-radius: 20px;
  }

  .cta-wrap .btn-lg {
    width: 100%;
  }

  .site-foot {
    padding-bottom: calc(28px + var(--safe-bottom));
  }
}

@media (max-width: 430px) {
  .view-wrap {
    padding-inline: 10px;
  }

  .library-head,
  .help-head {
    padding-inline: 4px;
  }

  .library-head h1,
  .help-head h1 {
    font-size: 26px;
  }

  .wizard-card {
    border-radius: 16px;
  }

  .step-pane {
    padding-inline: 14px;
  }

  .seg-row button {
    padding-inline: 4px;
  }

  .custom-row {
    grid-template-columns: 1fr;
  }

  .custom-row .btn-soft {
    width: 100%;
  }

  .type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .type-chip {
    padding-inline: 8px;
  }

  .activity-top {
    gap: 8px;
  }
}

.document-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.document-intro > div {
  display: grid;
  gap: 3px;
}

.document-intro small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
}

.document-intro b {
  font-size: 16px;
}

.document-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.paper-stage {
  overflow: auto;
  padding: clamp(16px, 1.8vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #e8edf4;
}

.paper-page {
  width: min(100%, clamp(860px, 68vw, 1180px));
  min-height: clamp(1123px, 94vw, 1660px);
  margin: 0 auto;
  padding: clamp(28px, 3vw, 54px) clamp(30px, 3.6vw, 64px) clamp(34px, 3.8vw, 60px);
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(13px, .9vw, 15px);
  line-height: 1.55;
  box-shadow: 0 10px 35px rgba(16, 24, 40, .13);
}

.paper-head {
  margin-bottom: clamp(22px, 2.2vw, 30px);
  padding-bottom: clamp(12px, 1.4vw, 16px);
  border-bottom: 2px solid #111;
}

.paper-brand {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 24px);
}

.paper-brand strong {
  font-size: clamp(24px, 1.9vw, 30px);
  letter-spacing: .08em;
}

.paper-brand span {
  font-size: clamp(12px, .82vw, 14px);
  text-align: right;
}

.paper-fields {
  display: grid;
  gap: clamp(12px, 1.2vw, 16px);
  margin-top: clamp(18px, 2.2vw, 26px);
}

.paper-fields > div {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.paper-fields span {
  font-weight: 700;
  white-space: nowrap;
}

.paper-fields i {
  height: 20px;
  flex: 1;
  border-bottom: 1px solid #111;
}

.paper-fields .short-field {
  margin-left: 16px;
}

.paper-fields .short-line {
  max-width: 62px;
}

.paper-fields .date-line {
  max-width: 128px;
}

.student-id-line {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, .7vw, 10px);
  margin-top: clamp(18px, 2vw, 26px);
  font-size: clamp(12px, .82vw, 14px);
}

.student-id-line span {
  font-weight: 700;
  white-space: nowrap;
}

.student-id-line i {
  height: 20px;
  border-bottom: 1px solid #111;
}

.student-id-line .name-line {
  min-width: 160px;
  flex: 1;
}

.student-id-line .series-line {
  width: clamp(54px, 4.5vw, 74px);
}

.student-id-line .year-line {
  width: clamp(48px, 4vw, 66px);
}

.student-id-line .date-part {
  flex: 0 0 auto;
}

.student-id-line .day-part,
.student-id-line .month-part {
  width: clamp(26px, 2.4vw, 34px);
}

.student-id-line .year-part {
  width: clamp(48px, 4vw, 62px);
}

.student-id-line b {
  font-weight: 400;
}

.paper-topic,
.paper-bncc {
  margin-top: clamp(10px, 1vw, 14px);
  font-size: clamp(12px, .82vw, 14px);
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.paper-question {
  margin-bottom: clamp(22px, 2vw, 30px);
  break-inside: avoid;
}

.preview-act-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 clamp(10px, 1vw, 14px);
  padding: 0 0 10px;
  border-bottom: 1px dashed #d0d5dd;
}

.preview-act-tools > span {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.preview-act-tools > div {
  display: flex;
  gap: 8px;
}

.preview-tool {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.preview-tool svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.preview-tool:hover {
  border-color: #98a2b3;
  background: #f9fafb;
}

.preview-tool.is-danger {
  color: #b42318;
}

.paper-question-text {
  margin: 0 0 clamp(10px, 1vw, 14px);
  font-size: clamp(14px, .95vw, 16px);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.paper-alts {
  display: grid;
  gap: clamp(8px, .9vw, 12px);
  margin-left: clamp(8px, 1.1vw, 14px);
}

.paper-alts > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.paper-alts p {
  margin: 0;
  line-height: 1.45;
}

.response-lines {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.response-lines span {
  height: 1px;
  border-bottom: 1px solid #777;
}

.puzzle-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 16px 0;
}

.puzzle-grid {
  margin: auto;
  border-collapse: collapse;
}

.puzzle-grid td {
  width: 30px;
  height: 30px;
  border: 1px solid #333;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.paper-subtitle {
  margin: 16px 0 8px;
  font-weight: 800;
}

.word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: clamp(12px, .82vw, 14px);
  line-height: 1.5;
}

.clue-list {
  margin: 8px 0 0;
  padding-left: 26px;
}

.clue-list li {
  margin: 7px 0;
  line-height: 1.4;
}

.vf-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.vf-list div {
  display: flex;
  gap: 12px;
  line-height: 1.55;
}

.assoc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  margin: clamp(12px, 1.2vw, 18px) 0;
}

.assoc-grid > div {
  padding: clamp(12px, 1.4vw, 18px);
  border: 1px solid #bbb;
}

.assoc-grid p {
  margin: 10px 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.paper-hint {
  font-size: clamp(12px, .8vw, 14px);
  font-style: italic;
}

.gap-text {
  margin: 15px 0;
  line-height: 1.9;
}

.gap-line {
  display: inline-block;
  min-width: 110px;
  border-bottom: 1px solid #111;
}

.problem-box {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #bbb;
  border-radius: 8px;
}

.problem-box p {
  margin: 7px 0 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.problem-box ul {
  margin: 7px 0 0;
  padding-left: 22px;
}

.paper-command {
  line-height: 1.5;
}

.teacher-head {
  border-bottom-width: 3px;
}

.teacher-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: clamp(14px, 1.5vw, 18px);
  font-size: clamp(12px, .82vw, 14px);
  overflow-wrap: anywhere;
}

.teacher-global-plan,
.teacher-guide {
  margin-top: 24px;
}

.teacher-global-plan > h2,
.teacher-guide > h2 {
  margin: 0 0 clamp(10px, 1.2vw, 16px);
  font-size: clamp(18px, 1.35vw, 22px);
}

.plan-detail {
  display: grid;
  gap: clamp(10px, 1.1vw, 14px);
}

.plan-detail section {
  break-inside: avoid;
}

.plan-detail h3 {
  margin: 0 0 5px;
  color: #344054;
  font-size: clamp(11px, .78vw, 13px);
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.plan-detail p,
.plan-detail ol {
  margin: 0;
  color: #101828;
  font-size: clamp(13px, .88vw, 15px);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.plan-detail ol {
  padding-left: 22px;
}

.teacher-question {
  margin-bottom: clamp(16px, 1.6vw, 22px);
  padding: clamp(14px, 1.4vw, 18px);
  border: 1px solid #cfd6df;
  border-radius: 10px;
  break-inside: avoid;
}

.teacher-qhead {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e7ec;
}

.teacher-qhead span {
  font-weight: 850;
}

.teacher-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 10px 0;
  color: #475467;
  font-size: clamp(11px, .78vw, 13px);
  overflow-wrap: anywhere;
}

.teacher-answer,
.teacher-support,
.teacher-item-plan {
  margin-top: 13px;
}

.teacher-answer p {
  margin: 5px 0 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.teacher-support h3,
.teacher-item-plan > h3 {
  margin: 0 0 8px;
  color: #344054;
  font-size: clamp(11px, .78vw, 13px);
  text-transform: uppercase;
}

.teacher-support p,
.teacher-support li {
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.teacher-support p {
  margin: 8px 0;
}

.teacher-support ul,
.teacher-support ol {
  padding-left: 22px;
}

.teacher-item-plan .plan-detail {
  padding-top: 10px;
  border-top: 1px solid #e4e7ec;
}

.edit-activities {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}

.edit-activities summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  list-style: none;
}

.edit-activities summary::-webkit-details-marker {
  display: none;
}

.edit-activities summary span {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
}

.edit-activity-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.edit-activity-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.edit-activity-row small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}

.edit-activity-row b {
  font-size: 13px;
}

.edit-activity-row p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .result-view {
    max-width: calc(100vw - clamp(44px, 5vw, 96px));
  }

  .paper-stage {
    min-height: calc(100vh - 290px);
  }
}

@media (min-width: 1440px) {
  .result-view {
    width: min(100%, 1760px);
  }

  .paper-page {
    width: min(100%, clamp(980px, 70vw, 1240px));
  }
}

@media (max-width: 1280px) and (min-width: 821px) {
  .result-view {
    max-width: calc(100vw - 42px);
  }

  .paper-page {
    width: min(100%, clamp(760px, 74vw, 980px));
    min-height: clamp(1040px, 96vw, 1360px);
    padding: clamp(22px, 2.4vw, 34px) clamp(24px, 2.8vw, 40px) clamp(28px, 3vw, 42px);
    font-size: clamp(12px, .92vw, 14px);
  }
}

@media (max-width: 760px) {
  .preview-act-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .preview-act-tools > div {
    width: 100%;
  }

  .preview-tool {
    min-height: 44px;
    flex: 1;
    justify-content: center;
  }

  .result-navgroup {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .export-note {
    padding: 0 4px;
  }

  .document-intro {
    padding: 14px;
  }

  .document-intro b {
    font-size: 15px;
  }

  .paper-stage {
    margin: 0 -14px;
    padding: 14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .paper-page {
    width: 100%;
    min-height: 0;
    padding: 24px 20px 30px;
    font-size: 13px;
    box-shadow: 0 5px 20px rgba(16, 24, 40, .1);
  }

  .paper-brand {
    display: grid;
    gap: 4px;
  }

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

  .paper-brand span {
    font-size: 11px;
    text-align: left;
  }

  .paper-fields {
    gap: 12px;
    margin-top: 20px;
  }

  .paper-fields > div {
    flex-wrap: wrap;
  }


  .student-id-line {
    display: flex;
    gap: 3px;
    font-size: 10px;
  }

  .student-id-line .name-line {
    min-width: 56px;
  }

  .student-id-line .series-line {
    width: 30px;
  }

  .student-id-line .year-line {
    width: 26px;
  }

  .student-id-line .day-part,
  .student-id-line .month-part {
    width: 16px;
  }

  .student-id-line .year-part {
    width: 30px;
  }

  .paper-fields .short-field {
    margin-left: 8px;
  }

  .paper-topic,
  .paper-bncc {
    font-size: 11px;
  }

  .paper-question {
    margin-bottom: 22px;
  }

  .puzzle-grid td {
    width: 25px;
    height: 25px;
    font-size: 10px;
  }

  .assoc-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .teacher-summary {
    display: grid;
    gap: 5px;
  }

  .teacher-qhead {
    display: grid;
    gap: 3px;
  }

  .edit-activity-row {
    grid-template-columns: 1fr;
  }

  .edit-activity-row .activity-tools {
    justify-content: flex-start;
  }

  .edit-activity-row .tool-btn {
    width: auto;
    padding: 0 12px;
  }

  .edit-activity-row .tool-btn span {
    display: inline;
  }
}

#planCard {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.select-tile.is-static {
  cursor: default;
}

.select-tile.is-static:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.select-tile.is-static:active {
  transform: none;
}

.select-tile.is-static em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
}

.bncc-browser .search-box {
  margin-top: 12px;
}

.bncc-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  border-radius: 11px;
  background: var(--surface-alt);
}

.bncc-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.bncc-tabs button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.bncc-tabs span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
}

.bncc-tab-panel {
  display: none;
  margin-top: 10px;
}

.bncc-tab-panel.is-active {
  display: block;
}

.bncc-scroll-list,
.bncc-added-list {
  max-height: 430px;
  min-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.bncc-load-note {
  padding: 9px 4px 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.bncc-related-row {
  align-items: center;
}

.bncc-row .bncc-trash {
  display: grid;
  min-width: 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border-color: #f3d1d1;
  background: #fff7f7;
  color: var(--danger);
}

.bncc-row .bncc-trash:hover {
  background: var(--danger-soft);
}

.bncc-trash svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 760px) {
  .bncc-scroll-list,
  .bncc-added-list {
    max-height: 52vh;
    min-height: 260px;
  }

}


@media (min-width: 821px) {
  .side-nav {
    width: clamp(205px, 12vw, 230px);
    padding: clamp(16px, 1.4vw, 22px) clamp(12px, 1vw, 16px) 18px;
  }

  .side-brand {
    padding: 0 6px clamp(16px, 1.5vw, 22px);
  }

  .side-status {
    right: clamp(12px, 1vw, 16px);
    bottom: 18px;
    left: clamp(12px, 1vw, 16px);
  }

  .app-main {
    margin-left: clamp(205px, 12vw, 230px);
  }

  .app-top {
    min-height: clamp(60px, 5vw, 72px);
    padding: 0 clamp(18px, 2vw, 34px);
  }

  .page-title {
    gap: 1px;
    min-width: 0;
  }

  .page-title small {
    font-size: clamp(9px, .68vw, 11px);
  }

  .page-title strong {
    overflow: hidden;
    font-size: clamp(15px, 1.15vw, 20px);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-reset {
    min-height: 36px;
    margin-left: auto;
    padding-inline: clamp(8px, 1vw, 14px);
  }

  .avatar-btn {
    margin-left: 0;
  }

  .view-wrap {
    width: min(1760px, calc(100% - clamp(20px, 2.6vw, 52px)));
    padding: clamp(10px, 1.2vw, 18px) 0 0;
  }

  .progress-card {
    margin-bottom: clamp(8px, .8vw, 12px);
    padding: clamp(8px, .7vw, 11px) clamp(12px, 1.2vw, 20px);
    border-radius: 14px;
  }

  .stepper {
    gap: clamp(8px, 1.2vw, 18px);
  }

  .step-item {
    min-height: clamp(34px, 3vw, 40px);
    gap: clamp(6px, .65vw, 10px);
  }

  .step-item::after {
    right: 4px;
    left: clamp(34px, 2.6vw, 42px);
  }

  .step-item span {
    width: clamp(27px, 2vw, 31px);
    height: clamp(27px, 2vw, 31px);
    font-size: clamp(10px, .72vw, 12px);
  }

  .step-item b {
    font-size: clamp(11px, .78vw, 13px);
  }

  .wizard-card {
    display: grid;
    height: calc(100dvh - clamp(166px, 19vh, 186px));
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .step-pane {
    min-height: 0;
    padding: clamp(16px, 1.35vw, 26px) clamp(18px, 1.65vw, 30px);
    overflow-y: auto;
  }

  .pane-head {
    gap: clamp(10px, .9vw, 14px);
    margin-bottom: clamp(14px, 1.15vw, 20px);
  }

  .pane-icon {
    width: clamp(38px, 2.8vw, 44px);
    height: clamp(38px, 2.8vw, 44px);
    flex-basis: clamp(38px, 2.8vw, 44px);
    border-radius: 12px;
  }

  .pane-icon svg {
    width: clamp(18px, 1.35vw, 20px);
    height: clamp(18px, 1.35vw, 20px);
  }

  .pane-head small {
    font-size: clamp(9px, .64vw, 10px);
  }

  .pane-head h2 {
    margin: 2px 0 4px;
    font-size: clamp(18px, 1.3vw, 22px);
    line-height: 1.2;
  }

  .pane-head p {
    max-width: 1050px;
    margin-top: 2px;
    font-size: clamp(11.5px, .8vw, 13px);
    line-height: 1.45;
  }

  .step-pane[data-pane="3"].is-active {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .step-pane[data-pane="3"] .pane-head {
    flex: 0 0 auto;
  }

  .bncc-layout {
    min-height: 0;
    flex: 1;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.38fr);
    gap: clamp(14px, 1.3vw, 24px);
  }

  .bncc-layout > .content-panel {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: clamp(14px, 1.15vw, 20px);
    border-radius: 14px;
  }

  .bncc-related-head {
    align-items: flex-start;
    margin: 0 0 clamp(10px, .8vw, 14px);
  }

  .bncc-related-head > div {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  .bncc-related-head small {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(11px, .74vw, 12px);
    font-weight: 500;
    line-height: 1.45;
  }

  .bncc-related-list {
    min-height: 0;
    max-height: none;
    flex: 1;
    overflow-y: auto;
  }

  .bncc-browser .list-head {
    margin: 0;
  }

  .bncc-browser .search-box {
    min-height: clamp(42px, 3vw, 48px);
    margin-top: clamp(10px, .8vw, 14px);
  }

  .bncc-tabs {
    margin-top: clamp(8px, .7vw, 12px);
  }

  .bncc-tabs button {
    min-height: clamp(36px, 2.7vw, 42px);
    font-size: clamp(11px, .76vw, 12px);
  }

  .bncc-tab-panel.is-active {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
  }

  .bncc-scroll-list,
  .bncc-added-list {
    min-height: 0;
    max-height: none;
    flex: 1;
    overflow-y: auto;
  }

  .bncc-load-note {
    flex: 0 0 auto;
    padding-top: 8px;
    font-size: clamp(10.5px, .7vw, 11.5px);
  }

  .bncc-row {
    min-height: auto;
    align-items: flex-start;
    gap: clamp(10px, .8vw, 14px);
    padding: clamp(10px, .8vw, 14px) clamp(11px, .9vw, 16px);
    border-radius: 11px;
  }

  .bncc-row > div {
    gap: 4px;
  }

  .bncc-row b {
    font-size: clamp(11.5px, .8vw, 13px);
    line-height: 1.3;
  }

  .bncc-row small {
    display: block;
    font-size: clamp(11.25px, .76vw, 12.5px);
    line-height: 1.5;
    overflow: visible;
  }

  .bncc-row button {
    min-height: clamp(36px, 2.6vw, 40px);
    margin-top: 1px;
    flex: 0 0 auto;
    font-size: clamp(11px, .73vw, 12px);
  }

  .wizard-foot {
    min-height: clamp(60px, 5vw, 68px);
    padding: 8px clamp(14px, 1.3vw, 22px);
  }
}

@media (min-width: 821px) and (max-width: 1080px) {
  .side-nav {
    width: 205px;
  }

  .app-main {
    margin-left: 205px;
  }

  .bncc-layout {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
    gap: 12px;
  }

  .bncc-layout > .content-panel {
    padding: 12px;
  }
}

.bncc-related-head {
  align-items: flex-start;
}

.bncc-related-head > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.bncc-related-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}


.top-account-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
}

.credit-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 clamp(10px, 1vw, 14px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font: inherit;
  box-shadow: var(--shadow-sm);
}

.credit-chip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
}

.credit-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.credit-chip b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.account-wrap {
  position: relative;
}

.account-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 80;
  width: clamp(220px, 18vw, 260px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .16);
}

.account-menu-head {
  display: grid;
  gap: 3px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
}

.account-menu-head small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
}

.account-menu-head b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.account-menu button:hover {
  background: var(--surface-alt);
}

.account-menu button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.account-menu .account-logout {
  margin-top: 5px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 9px 9px;
  color: #c62828;
}

.account-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 26px);
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(8px);
}

.account-dialog {
  width: min(100%, 680px);
  max-height: min(760px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
}

.account-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
}

.account-dialog-head small {
  color: var(--primary);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
}

.account-dialog-head h2 {
  margin: 3px 0 0;
  font-size: clamp(20px, 2vw, 26px);
}

.account-dialog-body {
  overflow: auto;
  padding: clamp(16px, 2vw, 24px);
}

.account-pane {
  display: none;
}

.account-pane.is-active {
  display: grid;
  gap: 16px;
}

.account-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #cfe0ff;
  border-radius: 13px;
  background: #f5f8ff;
}

.account-summary span {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.account-summary strong {
  color: var(--primary);
  font-size: 20px;
}

.account-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-data-item {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.account-data-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.account-data-item b {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.payment-list {
  display: grid;
  gap: 8px;
}

.payment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.payment-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.payment-row b {
  font-size: 12px;
}

.payment-row span {
  color: var(--muted);
  font-size: 11px;
}

.payment-row strong {
  font-size: 13px;
  white-space: nowrap;
}

.payment-row em {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.payment-row .is-ok {
  background: #e9f8ef;
  color: #187a42;
}

.payment-row .is-pending {
  background: #fff5db;
  color: #8a6200;
}

.password-form {
  display: grid;
  gap: 13px;
}

.password-form label {
  display: grid;
  gap: 6px;
}

.password-form span {
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.password-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #cfd6df;
  border-radius: 11px;
  outline: none;
  font: inherit;
}

.password-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.account-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 6px;
}

@media (max-width: 760px) {
  .credit-chip {
    min-height: 40px;
    padding: 0 9px;
  }

  .credit-chip span {
    display: none;
  }

  .credit-chip b {
    font-size: 12px;
  }

  .account-menu {
    position: fixed;
    top: calc(58px + env(safe-area-inset-top));
    right: 10px;
    width: min(280px, calc(100vw - 20px));
  }

  .account-layer {
    align-items: end;
    padding: 0;
  }

  .account-dialog {
    width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }

  .account-data-grid {
    grid-template-columns: 1fr;
  }

  .payment-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .payment-row em {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .account-dialog-foot > * {
    flex: 1;
  }
}


.site-user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.site-credit {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.site-credit span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-credit b {
  color: var(--ink);
  font-size: 13px;
}

.site-icon-btn,
.auth-door {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #344054;
  box-shadow: var(--shadow-sm);
}

.site-icon-btn svg,
.auth-door svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-body {
  min-height: 100dvh;
  background: #f5f7fb;
}

.auth-top {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.auth-main {
  display: grid;
  min-height: calc(100dvh - 76px);
  place-items: center;
  padding: clamp(24px, 5vw, 60px) 20px clamp(50px, 8vw, 90px);
}

.auth-card {
  width: min(100%, 480px);
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 2vw, 28px);
  background: #fff;
  box-shadow: 0 28px 70px rgba(16, 24, 40, .1);
}

.auth-register-card {
  width: min(100%, 720px);
}

.auth-copy span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
}

.auth-copy h1 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.auth-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.auth-register-form {
  grid-template-columns: 1fr 1fr;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label > span {
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.auth-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 87, 214, .1);
}

.auth-wide {
  grid-column: 1 / -1;
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .65;
}

.auth-policy {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 760px) {
  .auth-top {
    width: calc(100% - 28px);
    min-height: calc(62px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }

  .auth-main {
    min-height: calc(100dvh - 62px - env(safe-area-inset-top));
    align-items: start;
    padding: 18px 14px calc(32px + env(safe-area-inset-bottom));
  }

  .auth-card,
  .auth-register-card {
    width: 100%;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .auth-register-form {
    grid-template-columns: 1fr;
  }

  .auth-wide {
    grid-column: auto;
  }

  .site-credit span {
    display: none;
  }
}

.credits-layer {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 28px);
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(9px);
}

.credits-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 34px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
}

.credits-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
}

.credits-head small {
  color: var(--primary);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
}

.credits-head h2 {
  margin: 4px 0 4px;
  font-size: clamp(21px, 2vw, 28px);
}

.credits-head p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, .9vw, 14px);
}

.credits-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(270px, .78fr) minmax(440px, 1.45fr);
  overflow: auto;
}

.credits-values {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 2vw, 26px);
  border-right: 1px solid var(--line);
  background: #fbfcfe;
}

.credits-current {
  display: grid;
  gap: 2px;
  padding: 15px 16px;
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  background: #f4f8ff;
}

.credits-current span,
.credits-current small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.credits-current strong {
  color: var(--primary);
  font-size: clamp(22px, 2vw, 28px);
}

.credits-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.credits-section-title b {
  font-size: 13px;
}

.credits-section-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

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

.credits-grid button {
  min-height: 52px;
  border: 1px solid #ccd5e2;
  border-radius: 12px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.credits-grid button:hover,
.credits-grid button:focus-visible {
  border-color: #8eb0ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .09);
}

.credits-grid button.is-active {
  border-color: var(--primary);
  background: #edf4ff;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.credit-other {
  display: grid;
  gap: 7px;
}

.credit-other > span {
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.credit-other > div {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #cfd6df;
  border-radius: 11px;
  background: #fff;
}

.credit-other > div:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .09);
}

.credit-other b {
  color: var(--muted);
  font-size: 13px;
}

.credit-other input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.credit-summary {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.credit-summary span,
.credit-summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.credit-summary strong {
  color: var(--ink);
  font-size: 20px;
}

.credits-payment {
  min-width: 0;
  padding: clamp(18px, 2vw, 26px);
}

.payment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-alt);
}

.payment-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.payment-tabs button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.credit-pay-pane {
  display: none;
}

.credit-pay-pane.is-active {
  display: block;
}

.pix-head,
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.pix-head > div,
.card-head {
  min-width: 0;
}

.pix-head b,
.card-head b {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.pix-head span,
.card-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pix-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475467 !important;
  font-size: 10px !important;
  font-weight: 800;
}

.pix-status.is-wait {
  background: #fff5db;
  color: #8a6200 !important;
}

.pix-status.is-paid {
  background: #e9f8ef;
  color: #187a42 !important;
}

.pix-status.is-error {
  background: #fff0f0;
  color: #b42318 !important;
}

.pix-content {
  min-height: 330px;
}

.pix-qr-wrap {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: center;
}

.pix-qr-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.pix-copy-box {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.pix-copy-box label {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.pix-copy-box textarea {
  width: 100%;
  min-height: 126px;
  resize: none;
  padding: 12px;
  border: 1px solid #cfd6df;
  border-radius: 11px;
  background: #fafbfc;
  color: #344054;
  outline: none;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.pix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pix-actions a {
  text-decoration: none;
}

.pix-note {
  margin: 18px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.pix-loading {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.pix-loading.compact {
  min-height: 64px;
}

.pix-loading i {
  width: 28px;
  height: 28px;
  border: 3px solid #dbe4ef;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.card-box {
  min-height: 300px;
}

.card-message {
  margin-top: 12px;
}

.payment-success,
.payment-error,
.payment-wait {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}

.payment-success {
  border-color: #b7e4c7;
  background: #f2fbf5;
}

.payment-success svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #187a42;
  stroke-width: 2;
}

.payment-error {
  border-color: #f2c1bd;
  background: #fff7f6;
}

.payment-wait {
  border-color: #ead8a5;
  background: #fffaf0;
}

.payment-success b,
.payment-error b,
.payment-wait b {
  font-size: 14px;
}

.payment-success span,
.payment-error span,
.payment-wait span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .credits-dialog {
    width: min(760px, calc(100vw - 24px));
  }

  .credits-body {
    grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr);
  }

  .pix-qr-wrap {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .credits-layer {
    align-items: end;
    padding: 0;
  }

  .credits-dialog {
    width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }

  .credits-head {
    padding: 16px;
  }

  .credits-body {
    display: block;
    overflow: auto;
  }

  .credits-values {
    gap: 14px;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .credits-current {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .credits-current small {
    grid-column: 1 / -1;
  }

  .credits-grid button {
    min-height: 48px;
  }

  .credit-summary {
    margin-top: 0;
  }

  .credits-payment {
    padding: 16px 16px calc(22px + env(safe-area-inset-bottom));
  }

  .pix-head {
    display: grid;
    gap: 9px;
  }

  .pix-status {
    justify-self: start;
  }

  .pix-content {
    min-height: 0;
  }

  .pix-qr-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .pix-qr-image {
    max-width: 260px;
  }

  .pix-copy-box {
    width: 100%;
  }

  .pix-actions > * {
    flex: 1;
    min-width: 0;
    text-align: center;
  }
}

/* Site institucional */
.institutional-site {
  --site-navy: #071d3a;
  --site-navy-2: #0d2d55;
  --site-blue: #1d4ed8;
  --site-blue-soft: #eaf1ff;
  --site-green: #138a58;
  --site-green-soft: #eaf8f1;
  --site-gold: #c99a3d;
  background:
    radial-gradient(circle at 10% 6%, rgba(29, 78, 216, .08), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(19, 138, 88, .08), transparent 28%),
    #f7f9fc;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--site-navy);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-head-institutional {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(1280px, calc(100% - 40px));
  min-height: 72px;
  margin-top: 14px;
  padding: 0 16px 0 18px;
  border: 1px solid rgba(219, 227, 238, .92);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 34px rgba(7, 29, 58, .08);
  backdrop-filter: blur(18px);
}

.site-head-institutional .brand-mark {
  background: linear-gradient(145deg, var(--site-navy), #174b84);
  box-shadow: 0 8px 18px rgba(7, 29, 58, .18);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 10px 11px;
  border-radius: 10px;
  color: #475467;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #eef3f9;
  color: var(--site-navy);
}

.site-head-institutional .site-user-actions {
  margin-left: 10px;
}

.institutional-hero {
  width: min(1280px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  gap: clamp(42px, 6vw, 86px);
  min-height: 700px;
  padding: 78px 0 86px;
}

.institutional-hero .hero-copy h1 {
  max-width: 820px;
  margin: 14px 0 22px;
  color: var(--site-navy);
  font-size: clamp(46px, 5.5vw, 76px);
  line-height: .99;
  letter-spacing: -.055em;
}

.institutional-hero .hero-copy > p {
  max-width: 760px;
  color: #526277;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.68;
}

.eyebrow-authority {
  color: var(--site-green);
}

.trust-row-authority span {
  border-color: #d8e3ee;
  background: rgba(255, 255, 255, .82);
  color: #31445e;
}

.knowledge-visual {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid #d5e0ec;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 250, 255, .96)),
    #fff;
  box-shadow: 0 34px 80px rgba(7, 29, 58, .16);
}

.knowledge-visual::before {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(19, 138, 88, .11);
  content: "";
  filter: blur(2px);
}

.knowledge-head {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 4px 2px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.knowledge-head span,
.knowledge-output small,
.knowledge-engine small {
  color: #6b7c91;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.knowledge-head b {
  color: var(--site-navy);
  font-size: 17px;
}

.knowledge-stack {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.knowledge-source {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: #fff;
}

.knowledge-source > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.knowledge-source b {
  color: #1b2c44;
  font-size: 13px;
}

.knowledge-source small {
  overflow: hidden;
  color: #7b8796;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-seal,
.source-seal {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--site-navy), #174b84);
  color: #fff;
  font-weight: 900;
  letter-spacing: -.02em;
}

.mini-seal {
  width: 52px;
  height: 44px;
  font-size: 10px;
}

.knowledge-ok {
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--site-green-soft);
  color: var(--site-green);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.knowledge-engine {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #bcd8c9;
  border-radius: 15px;
  background: linear-gradient(135deg, #edf9f3, #f7fcfa);
}

.engine-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--site-green);
  color: #fff;
  font-size: 18px;
}

.knowledge-engine div {
  display: grid;
  gap: 3px;
}

.knowledge-engine b {
  color: #173a2b;
  font-size: 13px;
}

.knowledge-output {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border-radius: 15px;
  background: var(--site-navy);
  color: #fff;
}

.knowledge-output > div {
  display: grid;
  gap: 3px;
}

.knowledge-output small {
  color: #9fc0e7;
}

.knowledge-output b {
  font-size: 13px;
}

.knowledge-output > span {
  color: #cfe0f4;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.institution-strip {
  display: grid;
  width: min(1280px, calc(100% - 48px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid #dce5ef;
  border-radius: 20px;
  background: #dce5ef;
  box-shadow: 0 14px 34px rgba(7, 29, 58, .06);
}

.institution-strip > div {
  display: grid;
  gap: 6px;
  padding: 22px;
  background: rgba(255, 255, 255, .96);
}

.institution-strip b {
  color: var(--site-navy);
  font-size: 14px;
}

.institution-strip span {
  color: #69798d;
  font-size: 12px;
  line-height: 1.55;
}

.institutional-site .feature-wrap,
.authority-wrap,
.sources-wrap,
.metrics-wrap,
.commitment-wrap,
.institutional-site .cta-wrap,
.institutional-site .site-foot {
  width: min(1280px, calc(100% - 48px));
}

.institutional-site .feature-wrap {
  padding: 108px 0 96px;
  border-top: 0;
}

.institutional-site .feature-card {
  min-height: 215px;
  padding: 23px;
  border-color: #dbe4ee;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(7, 29, 58, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.institutional-site .feature-card:hover {
  border-color: #bfcfe0;
  box-shadow: 0 18px 38px rgba(7, 29, 58, .08);
  transform: translateY(-3px);
}

.institutional-site .feature-card > span {
  color: var(--site-green);
}

.authority-wrap {
  margin: 0 auto;
  padding: 92px 0 104px;
  border-top: 1px solid #dce4ed;
}

.authority-intro {
  display: grid;
  max-width: 880px;
  gap: 12px;
  margin-bottom: 36px;
}

.authority-intro h2,
.sources-wrap h2,
.metrics-wrap h2,
.commitment-wrap h2 {
  margin: 0;
  color: var(--site-navy);
  font-size: clamp(34px, 4.7vw, 58px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.authority-intro p,
.sources-copy p {
  max-width: 800px;
  margin: 0;
  color: #66778c;
  font-size: 16px;
  line-height: 1.7;
}

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

.pillar-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid #d8e2ec;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 29, 58, .05);
}

.pillar-card::after {
  position: absolute;
  right: -40px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(29, 78, 216, .05);
  content: "";
}

.pillar-card:nth-child(2)::after {
  background: rgba(19, 138, 88, .07);
}

.pillar-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 52px;
  border-radius: 14px;
  background: #eaf1ff;
  color: var(--site-blue);
}

.pillar-card:nth-child(2) .pillar-icon {
  background: var(--site-green-soft);
  color: var(--site-green);
}

.pillar-card:nth-child(3) .pillar-icon {
  background: #f4efff;
  color: #6d4ac7;
}

.pillar-card small {
  color: #75859a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
}

.pillar-card h3 {
  margin: 10px 0 14px;
  color: #152a45;
  font-size: 23px;
  line-height: 1.17;
  letter-spacing: -.025em;
}

.pillar-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #65758a;
  font-size: 14px;
  line-height: 1.72;
}

.sources-wrap {
  margin: 0 auto;
  padding: 96px 0;
}

.sources-copy {
  max-width: 850px;
  margin-bottom: 30px;
}

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

.source-card {
  position: relative;
  display: grid;
  min-height: 190px;
  align-content: start;
  gap: 18px;
  padding: 21px;
  border: 1px solid #d9e3ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(7, 29, 58, .04);
  cursor: help;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.source-card:hover,
.source-card:focus-visible {
  border-color: #a9bed4;
  box-shadow: 0 20px 44px rgba(7, 29, 58, .11);
  transform: translateY(-3px);
}

.source-seal {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  font-size: 11px;
}

.source-seal-long {
  background: linear-gradient(145deg, #0d6645, #159467);
}

.source-card > div {
  display: grid;
  gap: 6px;
}

.source-card b {
  color: #19304d;
  font-size: 15px;
}

.source-card p {
  margin: 0;
  color: #718096;
  font-size: 12px;
  line-height: 1.55;
}

.source-tip {
  position: absolute;
  left: 16px;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: min(310px, calc(100vw - 48px));
  padding: 12px 13px;
  border: 1px solid #24496e;
  border-radius: 12px;
  background: #0b2746;
  color: #fff;
  font-size: 11px;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
}

.source-card:hover .source-tip,
.source-card:focus .source-tip,
.source-card:focus-within .source-tip {
  opacity: 1;
  transform: translateY(0);
}

.source-disclaimer {
  margin: 18px 0 0;
  color: #7c8a9b;
  font-size: 11px;
  line-height: 1.55;
}

.metrics-wrap {
  margin: 16px auto 0;
  padding: 52px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(54, 157, 108, .22), transparent 30%),
    linear-gradient(135deg, #071d3a, #0b2b50);
  color: #fff;
  box-shadow: 0 34px 74px rgba(7, 29, 58, .18);
}

.metrics-head {
  display: grid;
  max-width: 820px;
  gap: 12px;
}

.metrics-wrap .eyebrow {
  color: #72d3a4;
}

.metrics-wrap h2 {
  color: #fff;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.metrics-grid article {
  display: grid;
  min-height: 185px;
  align-content: space-between;
  gap: 22px;
  padding: 21px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 17px;
  background: rgba(255, 255, 255, .07);
}

.metrics-grid strong {
  color: #fff;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -.045em;
}

.metrics-grid sup {
  color: #72d3a4;
  font-size: .52em;
}

.metrics-grid span {
  color: #c9d8e8;
  font-size: 12px;
  line-height: 1.55;
}

.metrics-disciplines {
  margin: 20px 0 0;
  color: #93abc4;
  font-size: 11px;
  line-height: 1.7;
}

.commitment-wrap {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 34px;
  margin: 96px auto;
  padding: 34px;
  border: 1px solid #b8d7c7;
  border-radius: 24px;
  background: linear-gradient(135deg, #f0faf5, #ffffff 66%);
  box-shadow: 0 18px 44px rgba(14, 88, 57, .07);
}

.commitment-seal {
  display: grid;
  width: 126px;
  height: 126px;
  place-content: center;
  justify-self: center;
  border: 1px solid #6fb18e;
  border-radius: 50%;
  outline: 5px double rgba(19, 138, 88, .15);
  color: var(--site-green);
  text-align: center;
}

.commitment-seal span {
  font-size: 31px;
  font-weight: 950;
  letter-spacing: -.05em;
}

.commitment-seal small {
  margin-top: 2px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .13em;
}

.commitment-copy {
  display: grid;
  gap: 11px;
}

.commitment-wrap h2 {
  font-size: clamp(30px, 3.7vw, 48px);
}

.commitment-copy > p {
  max-width: 900px;
  margin: 0;
  color: #566c61;
  font-size: 15px;
  line-height: 1.72;
}

.commitment-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.commitment-points span {
  padding: 8px 10px;
  border: 1px solid #c7e2d4;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #276849;
  font-size: 11px;
  font-weight: 750;
}

.institutional-cta {
  margin-bottom: 74px;
  padding: 42px;
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(8, 28, 55, .98), rgba(15, 61, 102, .98));
}

.institutional-cta .eyebrow {
  color: #75cfa2;
}

.institutional-foot {
  align-items: flex-start;
  padding: 26px 0 36px;
}

.institutional-foot > div {
  display: grid;
  gap: 4px;
}

.institutional-foot b {
  color: #30445d;
}

.institutional-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.institutional-foot a {
  color: #64748b;
  font-weight: 700;
  text-decoration: none;
}

.institutional-foot a:hover,
.institutional-foot a:focus-visible {
  color: var(--site-blue);
}

@media (max-width: 1120px) {
  .site-nav {
    display: none;
  }

  .institutional-hero {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 36px;
  }

  .source-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .institutional-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 58px;
  }

  .knowledge-visual {
    width: min(620px, 100%);
  }

  .institution-strip {
    grid-template-columns: 1fr;
  }

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

  .pillar-card {
    min-height: 0;
  }

  .pillar-icon {
    margin-bottom: 30px;
  }

  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commitment-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-head-institutional {
    top: 8px;
    width: calc(100% - 20px);
    min-height: 62px;
    margin-top: 8px;
    padding: 0 10px 0 12px;
    border-radius: 16px;
  }

  .institutional-hero,
  .institution-strip,
  .institutional-site .feature-wrap,
  .authority-wrap,
  .sources-wrap,
  .metrics-wrap,
  .commitment-wrap,
  .institutional-site .cta-wrap,
  .institutional-site .site-foot {
    width: calc(100% - 28px);
  }

  .institutional-hero {
    padding: 48px 0 58px;
  }

  .institutional-hero .hero-copy h1 {
    font-size: clamp(40px, 12.5vw, 62px);
  }

  .institutional-site .feature-wrap,
  .authority-wrap,
  .sources-wrap {
    padding: 72px 0;
  }

  .metrics-wrap {
    padding: 28px;
    border-radius: 22px;
  }

  .commitment-wrap {
    margin: 72px auto;
    padding: 26px;
  }

  .institutional-cta {
    padding: 28px;
  }
}

@media (max-width: 580px) {
  .site-head-institutional .brand-copy small,
  .site-credit span {
    display: none;
  }

  .site-head-institutional .site-credit {
    padding-inline: 9px;
  }

  .institutional-hero .hero-copy > p {
    font-size: 15px;
  }

  .knowledge-visual {
    padding: 15px;
    border-radius: 20px;
  }

  .knowledge-source {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .mini-seal {
    width: 46px;
  }

  .knowledge-ok {
    display: none;
  }

  .knowledge-output {
    align-items: flex-start;
    flex-direction: column;
  }

  .knowledge-output > span {
    text-align: left;
  }

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

  .source-card {
    min-height: 160px;
  }

  .source-tip {
    position: static;
    display: none;
    width: auto;
    margin-top: 2px;
    opacity: 1;
    transform: none;
  }

  .source-card:focus .source-tip,
  .source-card:focus-within .source-tip {
    display: block;
  }

  .metrics-grid article {
    min-height: 150px;
  }

  .commitment-seal {
    width: 108px;
    height: 108px;
  }

  .institutional-foot {
    display: grid;
  }

  .institutional-foot nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .institutional-site *,
  .institutional-site *::before,
  .institutional-site *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}


.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.type-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.type-entry.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent);
}

.type-entry .type-chip {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.type-entry .type-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-entry .type-chip small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.type-entry .type-chip.is-active small {
  color: var(--primary);
}

.type-qty {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 7px 9px;
  border-left: 1px solid var(--line-strong);
  background: rgba(255,255,255,.76);
}

.type-qty span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.type-qty input {
  width: 100%;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.type-qty input:focus {
  border-color: var(--primary);
  outline: 3px solid color-mix(in srgb, var(--primary) 18%, transparent);
}

.type-qty input:disabled {
  opacity: .45;
  cursor: not-allowed;
}

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

  .type-entry {
    grid-template-columns: minmax(0, 1fr) 96px;
  }
}

.visual-story {
  width: min(1180px, calc(100% - 40px));
  margin: 30px auto 90px;
  display: grid;
  grid-template-columns: 1.25fr .875fr .875fr;
  gap: 16px;
}

.visual-story-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  margin: 0;
  border: 1px solid rgba(124, 151, 178, .22);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 29, 58, .09);
}

.visual-story-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.visual-story-card:hover img {
  transform: scale(1.025);
}

.visual-story-card figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 28px rgba(7, 29, 58, .12);
  backdrop-filter: blur(14px);
}

.visual-story-card figcaption small {
  color: #0f6e52;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
}

.visual-story-card figcaption b {
  color: #10213a;
  font-size: 15px;
  line-height: 1.35;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.existing-btn {
  min-height: 46px;
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
  background: var(--primary-soft);
}

.existing-btn svg {
  width: 17px;
  height: 17px;
}

.history-list {
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  align-items: start;
  gap: 18px;
}

.history-card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 16;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 33, 58, .09);
  scroll-snap-align: start;
}

.history-card:hover {
  transform: translateY(-2px);
  border-color: #b7c8d8;
  box-shadow: 0 20px 46px rgba(16, 33, 58, .13);
}

.history-cover {
  position: relative;
  flex: 0 0 38%;
  min-height: 0;
  overflow: hidden;
  background: #071d3a;
}

.history-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 29, 58, .06) 26%, rgba(7, 29, 58, .84) 100%);
}

.history-cover > span,
.history-cover > strong {
  position: absolute;
  left: 14px;
  z-index: 2;
  color: #fff;
}

.history-cover > span {
  bottom: 38px;
  max-width: calc(100% - 28px);
  overflow: hidden;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-cover > strong {
  bottom: 14px;
  font-size: 18px;
  line-height: 1;
}

.history-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px 12px;
}

.history-title {
  display: grid;
  gap: 3px;
}

.history-title small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.history-title b {
  display: -webkit-box;
  overflow: hidden;
  color: #10213a;
  font-size: 14px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.history-data {
  display: grid;
  gap: 7px;
  margin: 0;
}

.history-data div {
  min-width: 0;
}

.history-data dt {
  margin: 0 0 2px;
  color: #667085;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-data dd {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #344054;
  font-size: 11px;
  line-height: 1.34;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.history-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.history-actions .history-btn {
  flex: 1;
  min-height: 33px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.history-actions .history-btn:last-child {
  flex: 0 0 34px;
  width: 34px;
  padding: 0;
}

.history-actions .history-btn svg {
  width: 14px;
  height: 14px;
}

.history-actions .history-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.history-actions .history-btn.danger-btn:hover {
  border-color: #f0b8b3;
  color: var(--danger);
  background: #fff5f4;
}

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

  .visual-story-large {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .visual-story {
    width: min(100% - 24px, 620px);
    margin: 18px auto 58px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .visual-story-large {
    grid-column: auto;
  }

  .visual-story-card,
  .visual-story-card img {
    min-height: 300px;
  }

  .visual-story-card figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .wizard-actions {
    min-width: 0;
  }

  .wizard-actions .btn-main,
  .wizard-actions .existing-btn {
    min-width: 0;
    padding-inline: 13px;
    white-space: nowrap;
  }

  .existing-btn svg {
    display: none;
  }

  .history-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(228px, 76vw);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .history-card {
    width: 100%;
    padding: 0;
    border-radius: 20px;
  }
}

.hero-photo-layout {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(460px, .94fr);
}

.hero-photo-card {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  margin: 0;
  border: 1px solid rgba(183, 199, 218, .55);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 38px 90px rgba(7, 29, 58, .18);
}

.hero-photo-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(4, 22, 43, .68) 100%);
  content: "";
  pointer-events: none;
}

.hero-photo-card img {
  display: block;
  width: 100%;
  height: 610px;
  object-fit: cover;
  object-position: 52% center;
}

.hero-photo-card figcaption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 20px;
  background: rgba(7, 29, 58, .70);
  color: #fff;
  backdrop-filter: blur(14px);
}

.hero-photo-card figcaption span {
  color: #98e0bd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.hero-photo-card figcaption b {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.4;
}

.editorial-visuals {
  width: min(1240px, calc(100% - 40px));
  margin: 34px auto 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(350px, .78fr);
  gap: 18px;
}

.editorial-card {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  margin: 0;
  border: 1px solid rgba(179, 198, 218, .52);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 24px 62px rgba(7, 29, 58, .11);
}

.editorial-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(5, 24, 47, .72) 100%);
  content: "";
  pointer-events: none;
}

.editorial-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  transition: transform .38s ease;
}

.editorial-card:hover img {
  transform: scale(1.018);
}

.editorial-card-wide img {
  object-position: center;
}

.editorial-card-library img {
  object-position: 56% center;
}

.editorial-card figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  display: grid;
  gap: 7px;
  color: #fff;
}

.editorial-card figcaption small {
  color: #9ce1bf;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.editorial-card figcaption b {
  max-width: 720px;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.35;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}

@media (max-width: 1080px) {
  .hero-photo-layout {
    grid-template-columns: 1fr;
  }

  .hero-photo-card {
    min-height: 520px;
  }

  .hero-photo-card img {
    height: 520px;
  }

  .editorial-visuals {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-photo-card {
    min-height: 430px;
    border-radius: 24px;
  }

  .hero-photo-card img {
    height: 430px;
  }

  .hero-photo-card figcaption {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 15px 16px;
    border-radius: 17px;
  }

  .hero-photo-card figcaption b {
    font-size: 15px;
  }

  .editorial-visuals {
    width: min(100% - 24px, 680px);
    margin: 20px auto 62px;
    gap: 14px;
  }

  .editorial-card,
  .editorial-card img {
    min-height: 360px;
  }

  .editorial-card {
    border-radius: 24px;
  }

  .editorial-card figcaption {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-card img {
    transition: none;
  }

  .editorial-card:hover img {
    transform: none;
  }
}

.site-access-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #163f72;
  border-radius: 11px;
  background: linear-gradient(145deg, #0b2446, #174b84);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(7, 29, 58, .14);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.site-access-btn:hover,
.site-access-btn:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(145deg, #123564, #1d5b9f);
  box-shadow: 0 12px 26px rgba(7, 29, 58, .18);
}

.lgpd-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #cce6d8;
  border-radius: 18px;
  background: #f4fbf7;
}

.lgpd-lock {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 13px;
  background: #e0f4e9;
  font-size: 18px;
}

.lgpd-line b {
  display: block;
  margin-bottom: 3px;
  color: #0f5e42;
  font-size: 14px;
}

.lgpd-line p {
  margin: 0;
  color: #526b60;
  font-size: 13px;
  line-height: 1.55;
}

.legal-footer {
  width: min(1280px, calc(100% - 40px));
  margin: 20px auto 24px;
  padding: 30px;
  border: 1px solid rgba(198, 213, 229, .9);
  border-radius: 28px;
  background: linear-gradient(145deg, #071d3a, #0e315b);
  color: #fff;
  box-shadow: 0 26px 70px rgba(7, 29, 58, .17);
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-mark {
  flex: 0 0 42px;
}

.footer-brand-block > div {
  display: grid;
  gap: 3px;
}

.footer-brand-block b {
  color: #fff;
  font-size: 17px;
}

.footer-brand-block span {
  color: #b8c9dd;
  font-size: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1.1fr 1.35fr;
  gap: 26px;
  padding: 28px 0;
}

.footer-grid section {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-grid h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid span,
.footer-grid b {
  color: #c6d5e5;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.footer-grid b {
  color: #fff;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #8fe0b8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #98abc1;
  font-size: 11px;
}

.legal-consent[hidden] {
  display: none;
}

.legal-consent {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(3, 18, 35, .38);
  backdrop-filter: blur(4px);
}

.legal-consent-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 22px;
  border: 1px solid #d4e0ec;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(4, 22, 43, .26);
}

.legal-consent-copy {
  display: grid;
  gap: 8px;
}

.legal-chip {
  color: #11714f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.legal-consent h2 {
  margin: 0;
  color: #0f223b;
  font-size: 20px;
}

.legal-consent p {
  margin: 0;
  color: #5c6e83;
  font-size: 13px;
  line-height: 1.6;
}

.legal-consent a {
  color: #174b84;
  font-weight: 700;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-consent-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.legal-consent-actions .btn-main,
.legal-consent-actions .btn-ghost {
  min-height: 42px;
  padding: 0 14px;
}

.legal-page {
  min-height: 100vh;
  background: #f6f9fc;
  color: #17283f;
}

.legal-page-head {
  width: min(1100px, calc(100% - 32px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid #dbe5ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 34px rgba(7, 29, 58, .07);
}

.legal-page-head a {
  color: #17345a;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.legal-document {
  width: min(960px, calc(100% - 32px));
  margin: 34px auto 60px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid #dce6f0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(7, 29, 58, .08);
}

.legal-document .eyebrow {
  margin-bottom: 10px;
}

.legal-document h1 {
  margin: 0 0 12px;
  color: #0d2544;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -.045em;
}

.legal-document > p:first-of-type {
  color: #607187;
  font-size: 15px;
}

.legal-document h2 {
  margin: 34px 0 10px;
  color: #13365f;
  font-size: 20px;
}

.legal-document p,
.legal-document li {
  color: #43566e;
  font-size: 14px;
  line-height: 1.72;
}

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

.legal-note {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid #cfe4d8;
  border-radius: 16px;
  background: #f4fbf7;
}

.legal-note strong {
  color: #0f6547;
}

.legal-contact-box {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  padding: 18px;
  border-radius: 18px;
  background: #eef4fb;
}

.legal-contact-box a {
  color: #174b84;
}

.history-actions .history-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}

.history-actions .history-btn svg {
  flex: 0 0 14px;
  display: block;
  width: 14px;
  height: 14px;
}

.history-actions .history-btn:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px) {
  .site-access-btn {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-consent-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .legal-consent-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .legal-footer {
    width: min(100% - 24px, 680px);
    padding: 22px;
    border-radius: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .legal-consent {
    padding: 10px;
  }

  .legal-consent-card {
    padding: 18px;
    border-radius: 18px;
  }

  .legal-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* v35 - landing page visual only */
.site-v35 {
  --v35-navy: #082744;
  --v35-navy-deep: #061f38;
  --v35-navy-soft: #113d66;
  --v35-green: #18a877;
  --v35-green-dark: #10865f;
  --v35-green-soft: #e8f8f2;
  --v35-blue-soft: #eef5fd;
  --v35-line: #d9e4ef;
  --v35-text: #112942;
  --v35-muted: #60738a;
  background: #f7fafe;
}

.site-v35 .skip-link {
  z-index: 2000;
}

.site-trustbar {
  width: 100%;
  background: linear-gradient(90deg, #061f38, #0a3457 58%, #0d436b);
  color: #fff;
}

.site-trustbar-inner {
  width: min(1440px, calc(100% - 64px));
  min-height: 44px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: 12px;
}

.site-trustbar-inner > span {
  font-weight: 760;
}

.site-trustbar-inner > div {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #d7e5f3;
}

.site-trustbar-inner > div span {
  position: relative;
  padding-left: 18px;
  white-space: nowrap;
}

.site-trustbar-inner > div span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5bd9a9;
  content: "";
  transform: translateY(-50%);
}

.site-head-v35 {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  min-height: 96px;
  margin: 0;
  padding: 0 clamp(24px, 4vw, 72px);
  border: 0;
  border-bottom: 1px solid rgba(205, 218, 232, .9);
  border-radius: 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 28px rgba(8, 39, 68, .07);
  backdrop-filter: blur(16px);
}

.brand-v35 {
  min-width: 286px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--v35-navy);
  text-decoration: none;
}

.brand-symbol {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.brand-symbol::before {
  position: absolute;
  inset: 8px 22px 8px 0;
  border-radius: 4px 0 10px 4px;
  background: linear-gradient(160deg, #0b3158, #123f6f);
  content: "";
  transform: skewY(7deg);
}

.brand-symbol::after {
  position: absolute;
  inset: 8px 0 8px 22px;
  border-radius: 0 4px 4px 10px;
  background: linear-gradient(160deg, #18a877, #0d815c);
  content: "";
  transform: skewY(-7deg);
}

.brand-symbol i:first-child,
.brand-symbol i:last-child {
  position: absolute;
  top: 3px;
  z-index: 2;
  width: 19px;
  height: 4px;
  border-radius: 999px;
  background: #18a877;
}

.brand-symbol i:first-child {
  left: 5px;
  transform: rotate(12deg);
}

.brand-symbol i:last-child {
  right: 5px;
  transform: rotate(-12deg);
}

.brand-copy-v35 {
  display: grid;
  gap: 2px;
}

.brand-copy-v35 b {
  color: var(--v35-navy);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.045em;
}

.brand-copy-v35 b span,
.footer-brand-v35 b span {
  color: var(--v35-green);
}

.brand-copy-v35 small {
  color: #7a8ea5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-nav-v35 {
  flex: 1;
  margin: 0 22px;
  gap: 4px;
}

.site-nav-v35 a {
  position: relative;
  padding: 14px 12px;
  color: #16314e;
  font-size: 13px;
  font-weight: 720;
}

.site-nav-v35 a::after {
  position: absolute;
  right: 12px;
  bottom: 6px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--v35-green);
  content: "";
  opacity: 0;
  transform: scaleX(.5);
  transition: opacity .18s ease, transform .18s ease;
}

.site-nav-v35 a:hover::after,
.site-nav-v35 a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-user-v35 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.site-login-link {
  color: #173553;
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.site-login-link:hover,
.site-login-link:focus-visible {
  color: var(--v35-green-dark);
}

.site-access-v35 {
  min-height: 48px;
  padding: 0 18px;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--v35-green), #0bb788);
  box-shadow: 0 12px 24px rgba(24, 168, 119, .22);
  font-size: 13px;
}

.site-access-v35:hover,
.site-access-v35:focus-visible {
  background: linear-gradient(135deg, #149b6d, #0da47b);
  box-shadow: 0 16px 30px rgba(24, 168, 119, .28);
}

.hero-v35 {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #082744;
}

.hero-v35-media,
.hero-v35-overlay {
  position: absolute;
  inset: 0;
}

.hero-v35-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 42%;
}

.hero-v35-overlay {
  background:
    linear-gradient(90deg, rgba(4, 28, 51, .98) 0%, rgba(5, 32, 57, .94) 36%, rgba(5, 32, 57, .63) 58%, rgba(5, 32, 57, .13) 80%, rgba(5, 32, 57, .06) 100%),
    linear-gradient(180deg, rgba(4, 22, 40, .08), rgba(4, 22, 40, .28));
}

.hero-v35-inner {
  position: relative;
  z-index: 2;
  width: min(1440px, calc(100% - 64px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 730px) minmax(260px, 1fr);
  align-items: center;
  gap: 56px;
  padding: 64px 0 76px;
}

.hero-v35-copy {
  max-width: 760px;
}

.hero-v35-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #61e1b4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.hero-v35 h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-v35 h1 em {
  color: #62ddb2;
  font-style: normal;
}

.hero-v35-copy > p {
  max-width: 700px;
  margin: 24px 0 0;
  color: #e4edf6;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
}

.hero-v35-checks {
  max-width: 690px;
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 30px;
}

.hero-v35-checks span {
  position: relative;
  padding-left: 32px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hero-v35-checks span::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--v35-green);
  color: #fff;
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}

.hero-actions-v35 {
  margin-top: 30px;
  gap: 14px;
}

.hero-actions-v35 .btn-main {
  min-height: 54px;
  padding: 0 24px;
  gap: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #18a877, #0fbf8e);
  box-shadow: 0 16px 34px rgba(11, 190, 139, .22);
  font-weight: 850;
}

.hero-outline-v35 {
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(6, 31, 55, .3);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero-outline-v35:hover,
.hero-outline-v35:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.hero-v35-quote {
  align-self: end;
  justify-self: end;
  width: min(340px, 100%);
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 42px rgba(2, 22, 40, .18);
  backdrop-filter: blur(12px);
}

.hero-v35-quote span {
  color: #0f6e50;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
}

.hero-v35-quote blockquote {
  margin: 10px 0 0;
  color: #19334f;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.52;
}

.hero-metrics-v35 {
  position: relative;
  z-index: 4;
  width: min(1440px, calc(100% - 48px));
  margin: -54px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #d7e2ee;
  border-radius: 24px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 52px rgba(8, 39, 68, .13);
}

.hero-metrics-v35 article {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 26px 24px;
}

.hero-metrics-v35 article + article {
  border-left: 1px solid #dfe8f1;
}

.metric-icon-v35 {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e8f8f2;
  color: var(--v35-green-dark);
  font-size: 18px;
  font-weight: 900;
}

.hero-metrics-v35 strong {
  display: block;
  color: var(--v35-navy);
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1;
  letter-spacing: -.04em;
}

.hero-metrics-v35 sup {
  font-size: .55em;
}

.hero-metrics-v35 p {
  margin: 7px 0 0;
  color: #4c6279;
  font-size: 12px;
  line-height: 1.45;
}

.benefit-strip-v35 {
  width: min(1440px, calc(100% - 64px));
  margin: 24px auto 74px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.benefit-strip-v35 article {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-areas:
    "icon title"
    "icon text";
  align-items: center;
  column-gap: 12px;
  padding: 16px;
  border: 1px solid #e0e8f1;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbfe);
}

.benefit-strip-v35 article > span {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e9f7f2;
  color: var(--v35-green-dark);
  font-size: 18px;
  font-weight: 900;
}

.benefit-strip-v35 b {
  grid-area: title;
  color: #17314d;
  font-size: 12px;
  line-height: 1.25;
}

.benefit-strip-v35 p {
  grid-area: text;
  margin: 2px 0 0;
  color: #718398;
  font-size: 10px;
  line-height: 1.35;
}

.feature-v35,
.authority-v35,
.sources-v35,
.commitment-v35,
.cta-v35,
.footer-v35 {
  width: min(1360px, calc(100% - 64px));
}

.feature-v35 {
  padding-top: 24px;
}

.feature-v35 .section-copy {
  max-width: 820px;
  margin-bottom: 28px;
}

.feature-v35 .section-copy h2,
.knowledge-band-copy h2,
.sources-v35-copy h2,
.commitment-v35 h2 {
  color: var(--v35-navy);
  letter-spacing: -.045em;
}

.feature-grid-v35 {
  gap: 14px;
}

.feature-grid-v35 .feature-card {
  border-radius: 20px;
  border: 1px solid #dce6f0;
  background: linear-gradient(180deg, #fff, #f9fbfd);
  box-shadow: none;
}

.knowledge-band-v35 {
  width: min(1360px, calc(100% - 64px));
  margin: 74px auto 24px;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(420px, 1.06fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(8, 39, 68, .08);
}

.knowledge-band-copy {
  display: grid;
  align-content: center;
  padding: clamp(32px, 4vw, 58px);
}

.knowledge-band-copy h2 {
  margin: 10px 0 16px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
}

.knowledge-band-copy > p {
  margin: 0;
  color: #5b7087;
  font-size: 16px;
  line-height: 1.65;
}

.knowledge-points-v35 {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.knowledge-points-v35 span {
  position: relative;
  padding-left: 24px;
  color: #243b54;
  font-size: 14px;
  font-weight: 720;
}

.knowledge-points-v35 span::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--v35-green);
  content: "";
}

.knowledge-photo-v35 {
  min-height: 470px;
  margin: 0;
}

.knowledge-photo-v35 img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.authority-v35 {
  margin-top: 18px;
  padding-top: 0;
}

.pillar-grid-v35 {
  gap: 14px;
}

.pillar-grid-v35 .pillar-card {
  border-radius: 20px;
  box-shadow: none;
}

.sources-v35 {
  margin: 78px auto 0;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: 34px;
  align-items: center;
  border-top: 1px solid #dbe5ef;
  border-bottom: 1px solid #dbe5ef;
  background: #fff;
}

.sources-v35-copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.sources-v35-copy p {
  margin: 0;
  color: #64788e;
  font-size: 13px;
  line-height: 1.6;
}

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

.source-marks-v35 > span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid #dfe8f1;
  border-radius: 14px;
  background: #f9fbfd;
}

.source-marks-v35 b {
  color: var(--v35-navy);
  font-size: 17px;
  letter-spacing: -.02em;
}

.source-marks-v35 small {
  color: #708298;
  font-size: 10px;
  line-height: 1.35;
}

.commitment-v35 {
  margin-top: 74px;
  border-radius: 26px;
}

.cta-v35 {
  margin-top: 34px;
  border-radius: 24px;
}

.footer-v35 {
  margin-top: 26px;
  border-radius: 0;
  width: 100%;
  padding: 38px max(32px, calc((100% - 1360px) / 2));
}

.footer-brand-v35 {
  width: min(1360px, 100%);
}

.footer-brand-v35 b {
  color: #fff;
  font-size: 28px;
  letter-spacing: -.04em;
}

.footer-brand-v35 small {
  color: #9db1c8;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.footer-symbol::before,
.footer-symbol::after {
  background: #fff;
}

.footer-symbol i:first-child,
.footer-symbol i:last-child {
  background: #6ae0b7;
}

.site-v35 .legal-footer .footer-grid,
.site-v35 .legal-footer .footer-bottom {
  width: min(1360px, 100%);
}

@media (max-width: 1200px) {
  .site-nav-v35 {
    display: none;
  }

  .benefit-strip-v35 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-metrics-v35 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics-v35 article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #dfe8f1;
  }

  .hero-metrics-v35 article:nth-child(4) {
    border-top: 1px solid #dfe8f1;
  }
}

@media (max-width: 980px) {
  .site-trustbar-inner > div span:nth-child(2),
  .site-trustbar-inner > div span:nth-child(3) {
    display: none;
  }

  .site-head-v35 {
    min-height: 78px;
  }

  .brand-v35 {
    min-width: 0;
  }

  .brand-copy-v35 small {
    display: none;
  }

  .site-login-link,
  .site-credit {
    display: none;
  }

  .site-access-v35 {
    display: inline-flex;
  }

  .hero-v35-inner {
    grid-template-columns: 1fr;
    min-height: 650px;
  }

  .hero-v35-media img {
    object-position: 68% 45%;
  }

  .hero-v35-overlay {
    background: linear-gradient(90deg, rgba(4, 28, 51, .98) 0%, rgba(4, 28, 51, .90) 55%, rgba(4, 28, 51, .55) 100%);
  }

  .hero-v35-quote {
    display: none;
  }

  .knowledge-band-v35 {
    grid-template-columns: 1fr;
  }

  .knowledge-photo-v35,
  .knowledge-photo-v35 img {
    min-height: 360px;
  }

  .sources-v35 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-trustbar-inner,
  .hero-v35-inner,
  .benefit-strip-v35,
  .feature-v35,
  .knowledge-band-v35,
  .authority-v35,
  .sources-v35,
  .commitment-v35,
  .cta-v35 {
    width: min(100% - 24px, 680px);
  }

  .site-trustbar-inner {
    min-height: 38px;
    justify-content: center;
    font-size: 10px;
  }

  .site-trustbar-inner > div {
    display: none;
  }

  .site-head-v35 {
    min-height: 72px;
    padding: 0 12px;
  }

  .brand-symbol {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-copy-v35 b {
    font-size: 25px;
  }

  .site-access-v35 {
    min-height: 42px;
    padding: 0 12px;
    font-size: 11px;
  }

  .hero-v35 {
    min-height: 670px;
  }

  .hero-v35-inner {
    min-height: 670px;
    padding: 52px 0 96px;
  }

  .hero-v35-media img {
    object-position: 70% 52%;
  }

  .hero-v35-overlay {
    background:
      linear-gradient(90deg, rgba(4, 28, 51, .98) 0%, rgba(4, 28, 51, .91) 70%, rgba(4, 28, 51, .72) 100%),
      linear-gradient(180deg, rgba(4, 28, 51, .18), rgba(4, 28, 51, .45));
  }

  .hero-v35-kicker {
    font-size: 9px;
  }

  .hero-v35 h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero-v35-copy > p {
    font-size: 16px;
  }

  .hero-v35-checks {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-actions-v35 {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions-v35 .btn-main,
  .hero-outline-v35 {
    width: 100%;
  }

  .hero-metrics-v35 {
    width: min(100% - 24px, 680px);
    margin-top: -54px;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .hero-metrics-v35 article {
    padding: 18px;
  }

  .hero-metrics-v35 article + article,
  .hero-metrics-v35 article:nth-child(3),
  .hero-metrics-v35 article:nth-child(4) {
    border-left: 0;
    border-top: 1px solid #dfe8f1;
  }

  .benefit-strip-v35 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
    margin-bottom: 52px;
  }

  .benefit-strip-v35 article {
    grid-template-columns: 36px 1fr;
    padding: 12px;
  }

  .benefit-strip-v35 article > span {
    width: 36px;
    height: 36px;
  }

  .knowledge-band-v35 {
    margin-top: 52px;
    border-radius: 22px;
  }

  .knowledge-band-copy {
    padding: 24px;
  }

  .knowledge-band-copy h2 {
    font-size: 34px;
  }

  .source-marks-v35 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sources-v35 {
    padding: 24px 0;
    border-radius: 0;
  }

  .footer-v35 {
    padding: 28px 20px;
  }
}

@media (max-width: 430px) {
  .brand-copy-v35 b {
    font-size: 22px;
  }

  .site-access-v35 span {
    display: none;
  }

  .site-access-v35 {
    padding: 0 10px;
  }

  .benefit-strip-v35,
  .source-marks-v35 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-v35 *,
  .site-v35 *::before,
  .site-v35 *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


.mobile-brand {
  color: inherit;
  text-decoration: none;
}

.mobile-brand:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 12px;
}

/* v38 - consentimento discreto em formato de balão de chat */
.legal-consent {
  position: fixed;
  inset: auto 18px 18px auto;
  z-index: 999;
  width: min(430px, calc(100vw - 24px));
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.legal-consent::before {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid #d7e3ef;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 16px 38px rgba(6, 31, 56, .18);
  content: "👋";
  font-size: 25px;
  line-height: 1;
  pointer-events: auto;
}

.legal-consent-card {
  position: relative;
  width: auto;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 17px 18px 16px;
  border: 1px solid #d7e3ef;
  border-radius: 20px 20px 20px 6px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 52px rgba(6, 31, 56, .18);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.legal-consent-card::before {
  position: absolute;
  bottom: 13px;
  left: -8px;
  width: 16px;
  height: 16px;
  border-bottom: 1px solid #d7e3ef;
  border-left: 1px solid #d7e3ef;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.legal-consent-copy {
  gap: 6px;
}

.legal-chip {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #e9f8f2;
  color: #0f7b58;
  font-size: 8px;
  letter-spacing: .11em;
}

.legal-consent h2 {
  font-size: 16px;
  line-height: 1.25;
}

.legal-consent p {
  font-size: 11.5px;
  line-height: 1.52;
}

.legal-links {
  gap: 10px;
}

.legal-links a {
  font-size: 10.5px;
}

.legal-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.legal-consent-actions .btn-main,
.legal-consent-actions .btn-ghost {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 10.5px;
}

@media (max-width: 640px) {
  .legal-consent {
    inset: auto 10px 10px 10px;
    width: auto;
    align-items: flex-end;
    gap: 8px;
    padding: 0;
  }

  .legal-consent::before {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 22px;
  }

  .legal-consent-card {
    padding: 14px;
    border-radius: 18px 18px 18px 6px;
  }

  .legal-consent h2 {
    font-size: 14px;
  }

  .legal-consent p {
    font-size: 10.5px;
  }

  .legal-consent-actions {
    display: flex;
    justify-content: flex-end;
  }
}

.source-marks-v35 > span {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 16px 18px;
  text-align: left;
}

.source-logo-v36 {
  flex: 0 0 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
}

.source-logo-v36 img {
  display: block;
  width: 100%;
  max-width: 82px;
  max-height: 48px;
  object-fit: contain;
}

.source-logo-pair-v36 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.source-logo-pair-v36 img {
  width: 100%;
  max-width: none;
  height: 34px;
}

.source-copy-v36 {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.source-copy-v36 b {
  color: var(--v35-navy);
  font-size: 16px;
  line-height: 1.2;
}

.source-copy-v36 small {
  color: #708298;
  font-size: 12px;
  line-height: 1.45;
}

.cta-v36 {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d7e4ef;
  box-shadow: 0 24px 60px rgba(15, 43, 77, .08);
}

.cta-copy-v36 {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(34px, 4vw, 58px);
  background: linear-gradient(135deg, #10345d 0%, #184979 52%, #1d5b93 100%);
  color: #ffffff;
}

.cta-v36 .eyebrow {
  color: #83ddb0;
}

.cta-copy-v36 h2 {
  max-width: 12ch;
  color: #ffffff;
}

.cta-copy-v36 .btn-main {
  margin-top: 24px;
}

.cta-art-v36 {
  min-height: 380px;
  margin: 0;
  background: #e8f2fb;
  border-left: 1px solid #dbe7f3;
}

.cta-art-v36 img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1100px) {
  .source-marks-v35 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .cta-art-v36,
  .cta-art-v36 img {
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  .source-marks-v35 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .source-marks-v35 > span {
    gap: 12px;
    min-height: 96px;
    padding: 16px;
  }

  .source-logo-v36 {
    flex-basis: 82px;
    min-width: 82px;
  }

  .source-logo-v36 img {
    max-width: 82px;
    max-height: 48px;
  }

  .source-logo-pair-v36 img {
    height: 30px;
  }

  .cta-copy-v36 {
    padding: 26px 22px;
  }

  .cta-art-v36,
  .cta-art-v36 img {
    min-height: 230px;
  }
}
