:root {
  --ink: #153846;
  --ink-soft: #365967;
  --muted: #6f8790;
  --paper: #ffffff;
  --canvas: #f4f7f6;
  --line: #d9e4e2;
  --teal: #257f7b;
  --teal-dark: #1c6966;
  --teal-soft: #e7f4f1;
  --coral: #f47d68;
  --coral-dark: #d95f4e;
  --coral-soft: #fff0ec;
  --green: #2c8a63;
  --green-soft: #e7f6ee;
  --amber: #9a6a20;
  --amber-soft: #fff6dd;
  --danger: #a4403d;
  --danger-soft: #fff0ef;
  --shadow: 0 18px 55px rgba(21, 56, 70, 0.10);
  --radius: 22px;
  --radius-small: 14px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: var(--teal-dark);
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 9px;
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.app-shell {
  padding-left: 264px;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 264px;
  padding: 26px 20px 20px;
  flex-direction: column;
  background: #113642;
  color: white;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 194px;
  height: auto;
}

.sidebar .brand img {
  padding: 7px 9px;
  background: white;
  border-radius: 14px;
}

.family-chip {
  margin: 26px 0 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
}

.family-chip span {
  display: block;
  margin-bottom: 2px;
  color: #a9c2c9;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-chip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar nav {
  display: grid;
  gap: 5px;
}

.sidebar nav a {
  display: flex;
  min-height: 46px;
  padding: 10px 12px;
  align-items: center;
  gap: 11px;
  color: #dce9eb;
  text-decoration: none;
  border-radius: 12px;
  transition: background 140ms ease, color 140ms ease;
}

.sidebar nav a:hover,
.sidebar nav a:focus-visible {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar nav a.active {
  color: white;
  background: #287e79;
}

.nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  font-size: 1.12rem;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 18px 12px 4px;
  color: #aec4c9;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-bottom p {
  margin-bottom: 8px;
}

.sidebar-bottom strong {
  color: white;
}

.text-button {
  padding: 0;
  color: #f6b4a8;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mobile-header {
  display: none;
}

.main-content {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 70px;
}

.topbar {
  display: flex;
  min-height: 44px;
  margin-bottom: 18px;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.youth-safety-link {
  padding: 9px 13px;
  color: #7a271f;
  background: var(--danger-soft);
  border: 1px solid #e3aaa3;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.privacy-button {
  display: inline-flex;
  padding: 9px 13px;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.privacy-button:hover {
  border-color: #a9c5c1;
}

.page-heading {
  margin: 0 0 30px;
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-heading {
  display: flex;
  margin: 34px 0 14px;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.stat-card,
.card,
.form-card,
.message-card,
.lesson-card,
.agreement-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 7px 24px rgba(21, 56, 70, 0.04);
}

.stat-card {
  display: flex;
  min-height: 164px;
  padding: 22px;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card .number {
  margin: auto 0 0;
  font-size: 2.5rem;
  font-weight: 780;
  line-height: 1;
}

.stat-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.quick-card {
  position: relative;
  display: flex;
  min-height: 184px;
  padding: 24px;
  flex-direction: column;
  overflow: hidden;
}

.quick-card::after {
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 100px;
  height: 100px;
  content: "";
  border-radius: 50%;
  background: var(--teal-soft);
}

.quick-card.coral::after {
  background: var(--coral-soft);
}

.quick-card p {
  max-width: 420px;
  color: var(--ink-soft);
}

.quick-card .button {
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
}

.button {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 17px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.button:hover {
  border-color: #abc4c1;
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(37, 127, 123, 0.25);
  outline-offset: 2px;
}

.button-primary {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

.button-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button-coral {
  color: white;
  background: var(--coral);
  border-color: var(--coral);
}

.button-coral:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
}

.button-danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #edc4c0;
}

.button-small {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.88rem;
}

.button-row {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.form-card {
  max-width: 820px;
  padding: clamp(22px, 4vw, 38px);
}

.form-card.wide {
  max-width: none;
}

.field {
  margin-bottom: 22px;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 730;
}

.field .hint {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

input[type="text"],
input[type="password"],
input[type="date"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fbfcfc;
  border: 1px solid #cbdad7;
  border-radius: 12px;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

textarea.large {
  min-height: 180px;
}

fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

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

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

.radio-card,
.check-card {
  position: relative;
  display: flex;
  padding: 13px 14px;
  align-items: flex-start;
  gap: 9px;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.radio-card:has(input:checked),
.check-card:has(input:checked) {
  background: var(--teal-soft);
  border-color: #91c9c1;
}

.radio-card input,
.check-card input {
  margin-top: 4px;
  accent-color: var(--teal);
}

.rewrite-steps {
  display: grid;
  gap: 16px;
}

.rewrite-step {
  position: relative;
  padding: 22px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.rewrite-step[data-step="approved"] {
  background: var(--teal-soft);
  border-color: #acd7d0;
}

.step-label {
  display: flex;
  margin-bottom: 12px;
  align-items: center;
  gap: 9px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-number {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 50%;
}

.local-note {
  display: flex;
  margin: 12px 0 0;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.local-note::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

.notice {
  padding: 16px 18px;
  color: var(--ink-soft);
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  border-radius: 4px 13px 13px 4px;
}

.notice.warning {
  background: var(--amber-soft);
  border-left-color: #c69643;
}

.notice.safety-inline,
.notice.youth-notice {
  margin-top: 16px;
}

.notice.safety-inline {
  background: #fff5f3;
  border-left-color: var(--coral);
}

.safety-urgent {
  margin-bottom: 24px;
  padding: clamp(24px, 5vw, 42px);
  color: #4e1b18;
  background: #fff0ed;
  border: 2px solid #e7a39a;
  border-radius: 22px;
}

.safety-urgent h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.help-grid {
  margin-bottom: 24px;
}

.help-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.help-card h2 {
  margin-bottom: 10px;
}

.guest-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.guest-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.notice.danger {
  background: var(--danger-soft);
  border-left-color: var(--danger);
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice form {
  margin-top: 12px;
}

.flash {
  max-width: 900px;
  margin: 0 0 20px;
  padding: 13px 16px;
  color: var(--ink);
  background: var(--teal-soft);
  border: 1px solid #b5d9d3;
  border-radius: 12px;
}

.flash-error {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #edc4c0;
}

.flash-success {
  color: #1f6c4c;
  background: var(--green-soft);
  border-color: #b9ddcc;
}

.list {
  display: grid;
  gap: 12px;
}

.message-card,
.agreement-card,
.lesson-card {
  padding: 20px;
}

.message-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 20px;
  color: inherit;
  text-decoration: none;
}

.message-card:hover {
  border-color: #a8c9c4;
  box-shadow: 0 10px 30px rgba(21, 56, 70, 0.07);
}

.message-card h2 {
  margin-bottom: 5px;
  font-size: 1.15rem;
}

.message-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.message-card .meta,
.meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  align-items: center;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
}

.badge.coral {
  color: #a94e3e;
  background: var(--coral-soft);
}

.badge.amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.badge.gray {
  color: var(--ink-soft);
  background: #edf2f1;
}

.message-detail {
  max-width: 820px;
}

.message-body {
  margin: 18px 0;
  padding: clamp(20px, 4vw, 32px);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.message-body .intent {
  margin-top: 20px;
  padding-top: 18px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.message-body .content {
  font-size: 1.08rem;
  white-space: pre-wrap;
}

.reply {
  max-width: 690px;
  padding: 16px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 5px;
}

.reply.own {
  margin-left: auto;
  background: var(--teal-soft);
  border-color: #b5d8d2;
  border-radius: 16px 16px 5px 16px;
}

.reply p {
  margin-bottom: 5px;
  white-space: pre-wrap;
}

.moment-card {
  display: grid;
  padding: 22px;
  grid-template-columns: 1fr auto;
  gap: 13px 20px;
  color: inherit;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: #e6eeec;
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
}

progress {
  width: min(420px, 100%);
  height: 9px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #e6eeec;
}

progress::-webkit-progress-bar {
  background: #e6eeec;
  border-radius: 999px;
}

progress::-webkit-progress-value {
  background: var(--teal);
  border-radius: 999px;
}

progress::-moz-progress-bar {
  background: var(--teal);
  border-radius: 999px;
}

.contribution {
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.contribution.own {
  background: var(--teal-soft);
  border-color: #b2d7d1;
}

.contribution p:last-child {
  margin-bottom: 0;
}

.agreement-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 14px 20px;
}

.agreement-card.done {
  opacity: 0.68;
}

.agreement-card.done h2 {
  text-decoration: line-through;
}

.agreement-card p {
  margin-bottom: 8px;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.lesson-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
}

.lesson-card .source {
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.consent-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.consent-card details {
  margin: 14px 0;
}

.consent-card summary {
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 700;
}

.member-list {
  display: grid;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.member-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.member-row > span {
  font-weight: 700;
}

.member-row details {
  margin-top: 8px;
}

.member-row summary {
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 700;
}

.member-row form {
  margin-top: 12px;
  padding: 14px;
  background: var(--canvas);
  border-radius: 12px;
}

.consent-actions {
  display: flex;
  margin-top: 16px;
  gap: 10px;
}

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

.privacy-list li {
  position: relative;
  padding-left: 31px;
}

.privacy-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 50%;
  content: "✓";
  font-size: 0.78rem;
  font-weight: 800;
}

.danger-zone {
  margin-top: 34px;
  padding: 24px;
  background: var(--danger-soft);
  border: 1px solid #efc9c5;
  border-radius: var(--radius);
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  background: white;
  border: 1px dashed #b8cbc8;
  border-radius: var(--radius);
}

.empty-state p {
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
}

.empty-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  place-items: center;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 50%;
  font-size: 1.7rem;
}

.privacy-shield {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
  color: white;
  background: #0d2932;
}

.privacy-shield[hidden] {
  display: none;
}

.shield-card {
  max-width: 430px;
  text-align: center;
}

.shield-card img {
  width: 78px;
  margin-bottom: 17px;
}

.shield-card h2 {
  font-size: 2rem;
}

.shield-card p {
  color: #c6d7da;
}

.print-protection {
  display: none;
}

.guest-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(44, 138, 99, 0.16), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(244, 125, 104, 0.15), transparent 30%),
    #f3f7f6;
}

.guest-header {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 25px 0;
  align-items: center;
  justify-content: space-between;
}

.guest-header .brand img {
  width: 190px;
}

.guest-content {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 112px);
  margin: 0 auto;
  padding: 32px 0 80px;
  place-items: center;
}

.auth-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  align-items: center;
  gap: clamp(30px, 7vw, 90px);
}

.auth-intro h1 {
  max-width: 650px;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
}

.auth-intro .lead {
  max-width: 600px;
  font-size: 1.15rem;
}

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

.trust-row span {
  padding: 7px 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
}

.auth-card {
  width: 100%;
  max-width: 510px;
  padding: clamp(25px, 5vw, 42px);
  background: white;
  border: 1px solid rgba(217, 228, 226, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.auth-card .auth-logo {
  width: 190px;
  margin-bottom: 26px;
}

.auth-card h1 {
  font-size: 2.15rem;
}

.auth-links {
  display: flex;
  margin-top: 24px;
  padding-top: 20px;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.recovery-code {
  display: block;
  margin: 20px 0;
  padding: 18px;
  color: var(--ink);
  background: var(--amber-soft);
  border: 1px solid #e6ce92;
  border-radius: 14px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  overflow-wrap: anywhere;
}

.install-shell {
  display: grid;
  min-height: 100vh;
  padding: 30px 20px;
  place-items: center;
  background: var(--canvas);
}

.install-card {
  width: min(780px, 100%);
  padding: clamp(24px, 5vw, 45px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.install-card > img {
  width: 200px;
  margin-bottom: 25px;
}

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

.requirements li {
  padding: 10px 12px;
  background: #f7faf9;
  border-radius: 10px;
}

.requirements .ok {
  color: var(--green);
}

.requirements .fail {
  color: var(--danger);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .app-shell {
    padding-left: 0;
  }

  .sidebar {
    display: none;
  }

  .mobile-header {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    min-height: 70px;
    padding: 12px 20px;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .mobile-header .brand img {
    width: 158px;
  }

  .mobile-menu {
    position: relative;
  }

  .mobile-menu summary {
    padding: 8px 11px;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 10px;
    list-style: none;
  }

  .mobile-menu nav {
    position: absolute;
    right: 0;
    display: grid;
    width: 220px;
    margin-top: 8px;
    padding: 8px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .mobile-menu nav a {
    padding: 9px 10px;
    color: var(--ink);
    border-radius: 8px;
    text-decoration: none;
  }

  .mobile-menu nav a:hover {
    background: var(--teal-soft);
  }

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

  .auth-intro {
    text-align: center;
  }

  .auth-intro .lead {
    margin-right: auto;
    margin-left: auto;
  }

  .trust-row {
    justify-content: center;
  }

  .auth-card {
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .main-content {
    width: min(100% - 28px, 1120px);
    padding-top: 15px;
  }

  .topbar {
    margin-bottom: 12px;
  }

  .dashboard-grid,
  .grid-2,
  .grid-3,
  .radio-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 118px;
  }

  .message-card,
  .moment-card,
  .agreement-card {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-card {
    padding: 20px;
  }

  .guest-header {
    width: min(100% - 28px, 1120px);
  }

  .guest-header .brand img {
    width: 155px;
  }

  .guest-links {
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
  }

  .guest-content {
    width: min(100% - 28px, 1120px);
    padding-top: 16px;
    place-items: start center;
  }

  .auth-intro h1 {
    font-size: 2.7rem;
  }

  .auth-links {
    flex-direction: column;
  }
}

@media print {
  body > * {
    display: none !important;
  }

  body {
    background: #000 !important;
  }

  .print-protection {
    position: fixed;
    inset: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: white;
    background: #000;
  }
}
