:root {
  --primary: #3f7a10;
  --secondary: #084b08;
  --accent: #5b4000;
  --accent-bright: #8b6500;
  --slip-sheet-width: 198mm;
  --slip-card-height: 50mm;
  --surface: #ffffff;
  --surface-soft: #fff3d3;
  --surface-deep: #c9aa47;
  --ink: #12220b;
  --muted: #47562d;
  --danger: #b91c1c;
  --success: #047857;
  --shadow: 0 22px 54px rgba(8, 75, 8, 0.24);
  --shadow-strong: 0 22px 44px rgba(8, 75, 8, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(91, 64, 0, 0.3), transparent 22rem),
    radial-gradient(circle at bottom right, rgba(63, 122, 16, 0.22), transparent 18rem),
    linear-gradient(180deg, #fffdf7, #efd28b 48%, #fffdf7);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  transition: background 0.28s ease, color 0.22s ease;
}

body,
.membership-slip {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body,
.membership-slip {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91, 64, 0, 0.2);
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.32s ease, opacity 0.32s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 11.5rem;
  max-width: 38vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(15, 94, 15, 0.18));
  transition: transform 0.26s ease, filter 0.26s ease;
}

.brand h1,
.brand p {
  margin: 0;
}

.brand h1 {
  font-size: 1rem;
}

.brand p {
  color: var(--muted);
  font-size: 0.86rem;
}

.topbar-nav,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-link {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
  background: rgba(139, 101, 0, 0.22);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  padding: 2rem 0 1rem;
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(91, 64, 0, 0.2);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, opacity 0.28s ease;
}

.panel-pad {
  padding: 1.5rem;
}

.hero-copy {
  padding: 2rem;
  min-height: 24rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(139, 101, 0, 0.38), transparent 12rem),
    linear-gradient(145deg, rgba(63, 122, 16, 0.98), rgba(8, 75, 8, 1)),
    #084b08;
  color: white;
  box-shadow: var(--shadow-strong);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -4rem -4rem auto;
  width: 14rem;
  height: 14rem;
  border-radius: 100%;
  background: rgba(91, 64, 0, 0.38);
}

.eyebrow {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin: 1rem 0;
  line-height: 1;
}

.hero-copy p {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40rem;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-points strong {
  display: block;
  font-size: 1.4rem;
}

.hero-points span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

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

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.metric-card {
  padding: 1.25rem;
  border-radius: 1.2rem;
  background: white;
  border: 1px solid rgba(31, 122, 31, 0.08);
}

.metric-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.metric-value {
  margin-top: 0.4rem;
  font-weight: 800;
  font-size: 1.8rem;
}

.section {
  padding: 1rem 0 2.5rem;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-header h3,
.section-header p {
  margin: 0;
}

.section-header p {
  color: var(--muted);
}

.dashboard-shell {
  width: min(1360px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.1rem 0 2.8rem;
}

.dashboard-shell .container {
  width: min(1160px, 100%);
}

.dashboard-shell .section {
  padding: 0.9rem 0 1.7rem;
}

.dashboard-shell .cards {
  gap: 1.25rem;
}

.dashboard-shell .section-header {
  align-items: center;
  margin-bottom: 1.15rem;
  padding: 0 0.2rem;
}

.dashboard-shell .panel,
.dashboard-shell .metric-card {
  border-radius: 1.65rem;
}

.dashboard-shell .panel-pad,
.dashboard-shell .metric-card {
  padding: 1.7rem;
}

.dashboard-shell .metric-card {
  text-align: center;
  border-color: rgba(111, 79, 0, 0.16);
  box-shadow: 0 18px 34px rgba(15, 94, 15, 0.08);
}

.dashboard-shell .table-wrap {
  border: 1px solid rgba(111, 79, 0, 0.14);
  border-radius: 1.25rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.74);
}

.dashboard-shell table {
  min-width: 100%;
}

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

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field,
.field-full {
  display: grid;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.92rem;
  font-weight: 700;
}

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

input,
textarea,
select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(111, 79, 0, 0.22);
  border-radius: 0.95rem;
  background: white;
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(111, 79, 0, 0.26);
  outline-offset: 1px;
  border-color: rgba(74, 143, 20, 0.72);
  box-shadow: 0 0 0 5px rgba(168, 120, 0, 0.16);
}

input[readonly],
textarea[readonly] {
  background: #f8fafc;
  color: #475569;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.06);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 16px 28px rgba(15, 94, 15, 0.3);
}

.btn-secondary {
  color: var(--secondary);
  background: rgba(168, 120, 0, 0.16);
}

.btn-accent {
  color: #2e2200;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
}

.btn-danger {
  color: white;
  background: #b91c1c;
}

.flash {
  margin: 1rem auto 0;
  width: min(1200px, calc(100% - 2rem));
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.flash-success {
  background: rgba(4, 120, 87, 0.1);
  border-color: rgba(4, 120, 87, 0.2);
  color: var(--success);
}

.flash-error {
  background: rgba(185, 28, 28, 0.08);
  border-color: rgba(185, 28, 28, 0.18);
  color: var(--danger);
}

.muted {
  color: var(--muted);
}

.lookup-status {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.lookup-status[data-type="success"] {
  color: var(--success);
}

.lookup-status[data-type="error"] {
  color: var(--danger);
}

.profile-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.photo-frame {
  background: #f8fafc;
  border: 1px solid rgba(111, 79, 0, 0.18);
  border-radius: 1.2rem;
  overflow: hidden;
  min-height: 10rem;
  display: grid;
  place-items: center;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.profile-stat {
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  background: #f7fbef;
  transition: transform 0.2s ease, background 0.2s ease;
}

.profile-stat strong,
.profile-stat span {
  display: block;
}

.profile-stat span {
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-stat strong {
  margin-top: 0.24rem;
}

.photo-capture {
  padding: 1.15rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 249, 229, 0.9), rgba(247, 251, 239, 0.96));
  border: 1px solid rgba(111, 79, 0, 0.16);
}

.photo-capture__layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
  align-items: start;
}

.settings-mode-note {
  display: grid;
  gap: 0.4rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(91, 64, 0, 0.18);
  background:
    radial-gradient(circle at top right, rgba(139, 101, 0, 0.12), transparent 10rem),
    linear-gradient(135deg, rgba(63, 122, 16, 0.06), rgba(255, 243, 211, 0.94));
  color: var(--muted);
  line-height: 1.45;
}

.settings-mode-note strong {
  color: var(--secondary);
}

.guide-shell {
  display: grid;
  gap: 1.2rem;
}

.guide-hero {
  display: grid;
  gap: 0.75rem;
  padding: 1.4rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(91, 64, 0, 0.18);
  background:
    radial-gradient(circle at top right, rgba(139, 101, 0, 0.16), transparent 12rem),
    linear-gradient(135deg, rgba(63, 122, 16, 0.08), rgba(255, 243, 211, 0.94));
}

.guide-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(139, 101, 0, 0.16);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-hero h1,
.guide-card h2,
.guide-card h3,
.guide-steps h3,
.guide-mini h3 {
  margin: 0;
}

.guide-hero h1 {
  color: var(--secondary);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.guide-hero p,
.guide-card p,
.guide-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.guide-chip-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.guide-chip {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(8, 75, 8, 0.12);
  background: rgba(63, 122, 16, 0.08);
  font-size: 0.9rem;
}

.guide-callout {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem 1.45rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(91, 64, 0, 0.22);
  background:
    radial-gradient(circle at top right, rgba(139, 101, 0, 0.16), transparent 12rem),
    linear-gradient(135deg, rgba(63, 122, 16, 0.07), rgba(255, 243, 211, 0.96));
}

.guide-callout h2,
.guide-card h2,
.guide-card h3,
.guide-steps h3,
.guide-mini h3 {
  color: var(--secondary);
}

.guide-callout__lead {
  color: var(--secondary);
  font-size: 1.02rem;
  font-weight: 800;
}

.guide-grid {
  display: grid;
  gap: 1rem;
}

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

.guide-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card {
  display: grid;
  gap: 0.7rem;
  padding: 1.2rem 1.25rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(91, 64, 0, 0.16);
  background: rgba(255, 255, 255, 0.94);
}

.guide-card--mode {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 230, 0.96));
}

.guide-list,
.guide-steps ol {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  line-height: 1.5;
}

.guide-mini {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 243, 211, 0.52);
}

.photo-frame--capture {
  min-height: 21rem;
  background: linear-gradient(160deg, rgba(17, 109, 32, 0.08), rgba(174, 127, 0, 0.1));
}

.photo-frame--capture img,
.photo-frame--capture video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.95rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(111, 79, 0, 0.14);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-pill {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(168, 120, 0, 0.16);
  font-size: 0.82rem;
}

.status-pill.success {
  background: rgba(4, 120, 87, 0.12);
  color: var(--success);
}

.status-pill.muted {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.chart-card canvas {
  width: 100%;
  height: auto;
  display: block;
}

.slip-view {
  width: min(1100px, calc(100% - 2rem));
  margin: 1.8rem auto 2rem;
}

.pdf-body {
  min-height: 100vh;
  padding: 6mm;
  background: #fffdf8;
}

.slip-view--pdf {
  width: min(var(--slip-sheet-width), calc(100vw - 12mm));
  margin: 0 auto;
  padding: 0;
}

.slip-view__note {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.membership-slip {
  --slip-scale: 1;
  width: 100%;
  min-height: var(--slip-card-height);
  margin: 0 auto;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(111, 79, 0, 0.22);
  border-radius: 1rem;
  color: var(--secondary);
  background:
    radial-gradient(circle at top right, rgba(111, 79, 0, 0.14), transparent 10rem),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 250, 235, 0.98));
  box-shadow: 0 12px 28px rgba(111, 79, 0, 0.14);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.membership-slip__inner {
  display: grid;
  width: calc(100% / var(--slip-scale));
  height: calc(100% / var(--slip-scale));
  transform: scale(var(--slip-scale));
  transform-origin: top left;
}

.membership-slip__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(31, 122, 31, 0.18);
}

.membership-slip__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.membership-slip__logo {
  width: 9rem;
  max-width: 32vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.membership-slip__brand-copy h2,
.membership-slip__brand-copy p,
.membership-slip__name-block h3,
.membership-slip__name-block p {
  margin: 0;
}

.membership-slip__brand-copy h2 {
  font-size: 1.3rem;
  line-height: 1;
}

.membership-slip__brand-copy p {
  margin-top: 0.08rem;
  color: rgba(71, 86, 45, 0.88);
  font-size: 0.92rem;
}

.membership-slip__eyebrow {
  display: inline-flex;
  margin-bottom: 0.18rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: #7a5900;
  background: rgba(168, 120, 0, 0.18);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.membership-slip__regno {
  min-width: 12rem;
  margin-left: auto;
  padding: 0.65rem 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(168, 120, 0, 0.24);
  background: linear-gradient(135deg, rgba(245, 232, 182, 0.9), rgba(255, 255, 255, 0.98));
  text-align: left;
}

.membership-slip__regno span,
.membership-slip__regno small,
.membership-slip__fact-row span {
  display: block;
  color: rgba(111, 79, 0, 0.78);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.membership-slip__regno strong {
  display: block;
  margin-top: 0.14rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.membership-slip__regno small {
  margin-top: 0.08rem;
}

.membership-slip__body {
  display: grid;
  grid-template-columns: 78px 1fr 72px;
  gap: 0.7rem;
  align-items: stretch;
  margin-top: 0.6rem;
}

.membership-slip__media,
.membership-slip__scan {
  display: grid;
  align-content: start;
}

.membership-slip__scan {
  justify-items: end;
  gap: 0.28rem;
}

.membership-slip__scan small {
  color: rgba(31, 122, 31, 0.78);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.membership-slip__photo,
.membership-slip__photo--empty {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  border-radius: 0.8rem;
  object-fit: cover;
  background: rgba(255, 248, 234, 0.94);
  border: 2px solid rgba(31, 122, 31, 0.18);
}

.membership-slip__photo--empty {
  display: grid;
  place-items: center;
  color: rgba(71, 86, 45, 0.82);
}

.membership-slip__qr {
  width: 4.6rem;
  max-width: 100%;
  padding: 0.22rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(31, 122, 31, 0.18);
  background: #fff;
}

.membership-slip__details {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.membership-slip__name-block {
  padding: 0.32rem 0.48rem;
  border-radius: 0.55rem;
  border-left: 3px solid rgba(168, 120, 0, 0.72);
  background: rgba(31, 122, 31, 0.08);
}

.membership-slip__name-block h3 {
  font-size: 0.96rem;
  line-height: 1.02;
}

.membership-slip__name-block p {
  margin-top: 0.08rem;
  color: rgba(71, 86, 45, 0.9);
  font-size: 0.58rem;
}

.membership-slip__facts {
  display: grid;
  gap: 0.2rem;
}

.membership-slip__fact-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1.1fr) auto minmax(0, 0.9fr);
  gap: 0.12rem 0.28rem;
  align-items: baseline;
  padding: 0.22rem 0.36rem;
  border-radius: 0.44rem;
  background: linear-gradient(90deg, rgba(31, 122, 31, 0.08), rgba(245, 232, 182, 0.28));
}

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

.membership-slip__fact-row span {
  color: rgba(111, 79, 0, 0.8);
  font-size: 0.48rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.membership-slip__fact-row strong {
  color: var(--secondary);
  font-size: 0.58rem;
  line-height: 1.04;
  word-break: break-word;
}

.batch-slip-item {
  margin-bottom: 0.25rem;
  page-break-inside: avoid;
}

.batch-slip-item:last-child {
  margin-bottom: 0;
}

.auth-shell {
  width: min(480px, calc(100% - 2rem));
  margin: 4rem auto;
}

.footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  text-align: center;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

[data-reveal].is-entered {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 56px rgba(15, 94, 15, 0.24);
  border-color: rgba(168, 120, 0, 0.28);
}

.profile-stat:hover,
.membership-slip:hover {
  transform: translateY(-1px);
}

.brand:hover .brand-logo {
  transform: translateY(-1px) scale(1.01);
  filter: drop-shadow(0 10px 22px rgba(15, 94, 15, 0.24));
}

body.is-busy .lookup-status {
  transform: translateY(1px);
}

body.is-busy .btn[data-lookup-button] {
  box-shadow: 0 12px 24px rgba(111, 79, 0, 0.24);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 960px) {
  .dashboard-shell {
    width: min(100%, calc(100% - 1.2rem));
    padding-top: 0.4rem;
  }

  .hero,
  .cards.two,
  .cards.three,
  .guide-grid--two,
  .guide-grid--three,
  .form-grid,
  .form-grid.three,
  .profile-card,
  .photo-capture__layout,
  .membership-slip__body {
    grid-template-columns: 1fr;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .dashboard-shell .section-header {
    align-items: start;
    padding: 0;
  }

  .brand-logo {
    width: 9rem;
  }

  .membership-slip__top,
  .membership-slip__brand {
    align-items: start;
    flex-direction: column;
  }

  .membership-slip__regno {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .membership-slip__logo {
    width: 9rem;
  }

  .membership-slip__scan {
    justify-items: start;
  }

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

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

  .topbar,
  .footer,
  .flash,
  .print-hide {
    display: none !important;
  }

  body {
    background: white;
  }

  .slip-view,
  .batch-slips {
    width: 100%;
    margin: 0;
  }

  .pdf-body,
  .pdf-body .slip-view--pdf {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
  }

  html,
  body,
  .shell,
  main,
  .slip-view,
  .batch-slips,
  .batch-slip-item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .membership-slip {
    width: 100%;
    height: auto;
    max-width: 100%;
    min-height: var(--slip-card-height);
    margin: 0;
    padding: 2.2mm 2.8mm;
    box-shadow: none;
    border-radius: 1.6mm;
    break-inside: avoid;
    overflow: visible;
  }

  .membership-slip__top {
    gap: 1.6mm;
    padding-bottom: 1.1mm;
  }

  .membership-slip__logo {
    width: 27mm;
    max-width: 27mm;
  }

  .membership-slip__eyebrow {
    margin-bottom: 0.5mm;
    padding: 0.45mm 1.1mm;
    font-size: 5.2px;
  }

  .membership-slip__brand-copy h2 {
    font-size: 9.5px;
  }

  .membership-slip__brand-copy p {
    margin-top: 0.08mm;
    font-size: 5.6px;
  }

  .membership-slip__regno {
    min-width: 34mm;
    padding: 1mm 1.4mm;
  }

  .membership-slip__regno span,
  .membership-slip__regno small,
  .membership-slip__fact-row span,
  .membership-slip__scan small {
    font-size: 4.2px;
  }

  .membership-slip__regno strong {
    margin-top: 0.2mm;
    font-size: 6.9px;
  }

  .membership-slip__body {
    grid-template-columns: 14mm 1fr 11mm;
    gap: 0.8mm;
    margin-top: 0.7mm;
  }

  .membership-slip__photo,
  .membership-slip__photo--empty {
    border-radius: 1.2mm;
    border-width: 0.45mm;
  }

  .membership-slip__details {
    gap: 0.35mm;
  }

  .membership-slip__name-block {
    padding: 0.45mm 0.7mm;
    border-radius: 0.8mm;
  }

  .membership-slip__name-block h3 {
    font-size: 6.2px;
  }

  .membership-slip__name-block p {
    margin-top: 0.08mm;
    font-size: 4.35px;
  }

  .membership-slip__facts {
    gap: 0.22mm;
  }

  .membership-slip__fact-row {
    grid-template-columns: auto minmax(0, 1.1fr) auto minmax(0, 0.9fr);
    gap: 0.12mm 0.32mm;
    padding: 0.28mm 0.45mm;
    border-radius: 0.6mm;
  }

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

  .membership-slip__fact-row strong {
    margin-top: 0;
    font-size: 4.35px;
    line-height: 1.01;
  }

  .membership-slip__qr {
    width: 9.5mm;
    padding: 0.22mm;
    border-radius: 0.7mm;
  }

  .batch-slip-item {
    margin-bottom: 1.5mm;
    page-break-inside: avoid;
  }
}
