/* These styles are generated from project.scss. */

:root {
  --ink: #16202a;
  --ink-soft: #4d5b68;
  --line: #dfe5e9;
  --surface: #ffffff;
  --surface-soft: #f4f7f6;
  --brand: #087b68;
  --brand-dark: #075f52;
  --brand-soft: #e4f3ef;
  --warm: #f2b94b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--surface-soft);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

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

::selection {
  color: var(--ink);
  background: rgba(242, 185, 75, 0.48);
}

:focus-visible {
  outline: 3px solid rgba(8, 123, 104, 0.22);
  outline-offset: 3px;
}

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* Shared application shell */

.app-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  overflow-anchor: none;
  border-bottom: 1px solid rgba(22, 32, 42, 0.09);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.app-header .navbar {
  min-height: 74px;
  padding-block: 0;
}

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

.app-header .navbar-toggler {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.app-nav {
  gap: 10px;
}

.app-nav .nav-link {
  padding: 10px 12px !important;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.app-nav .nav-link:hover,
.app-nav .nav-link:focus {
  color: var(--brand);
}

.app-nav-action {
  margin-left: 6px;
}

.app-main {
  width: 100%;
  flex: 1 0 auto;
  padding-block: 52px 68px;
}

.app-footer {
  flex: 0 0 auto;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  background: white;
}

.app-footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.app-footer-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.app-footer-inner > a:last-child {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.app-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 32px;
}

.app-page-heading > div:first-child {
  max-width: 720px;
}

.app-page-heading .eyebrow,
.app-card-heading .eyebrow,
.account-page-heading .eyebrow,
.form-page-intro .eyebrow {
  margin-bottom: 9px;
}

.app-page-heading h1,
.form-page-intro h1,
.account-page-heading h1,
.error-state h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 770;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.app-page-heading p:last-child,
.form-page-intro > p:last-of-type {
  max-width: 630px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.app-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 34px rgba(36, 61, 54, 0.055);
}

.app-card h2 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 730;
  letter-spacing: -0.025em;
}

.app-card > p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

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

.app-card-heading {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  gap: 14px;
}

.app-card-heading .feature-icon {
  margin: 0;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 750;
}

.app-card-heading h2,
.app-card-heading p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Lists and data */

.app-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 34px rgba(36, 61, 54, 0.045);
}

.app-list-item {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 18px 22px;
  gap: 16px;
  color: var(--ink);
  transition: background-color 150ms ease, transform 150ms ease;
}

.app-list-item + .app-list-item {
  border-top: 1px solid #e8edeb;
}

.app-list-item:hover {
  color: var(--ink);
  background: #f8fbfa;
}

.app-list-icon,
.member-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--brand-dark);
  font-weight: 800;
  background: var(--brand-soft);
}

.app-list-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.app-list-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.app-list-copy strong {
  font-size: 16px;
}

.app-list-copy small {
  color: var(--ink-soft);
  font-size: 13px;
}

.app-list-arrow {
  color: var(--brand);
  font-size: 21px;
  transition: transform 150ms ease;
}

.app-list-item:hover .app-list-arrow {
  transform: translateX(3px);
}

.empty-state {
  padding: 60px 24px;
  text-align: center;
}

.empty-state .app-list-icon {
  margin: 0 auto 18px;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.empty-state p {
  margin: 0 0 24px;
  color: var(--ink-soft);
}

.detail-list {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.4fr);
  margin: 0;
}

.detail-list dt,
.detail-list dd {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid #e8edeb;
}

.detail-list dt {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.detail-list dd {
  font-size: 14px;
  font-weight: 650;
}

.member-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-list li {
  display: flex;
  align-items: center;
  min-height: 60px;
  gap: 12px;
  border-top: 1px solid #e8edeb;
  font-size: 14px;
  font-weight: 650;
}

.member-list .member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
  font-size: 12px;
}

.member-list .status-pill {
  margin-left: auto;
}

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

/* Forms and account surfaces */

.form-page {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(440px, 1fr);
  align-items: start;
  gap: 80px;
}

.form-page-compact {
  grid-template-columns: minmax(0, 0.7fr) minmax(400px, 0.9fr);
}

.form-page-intro {
  position: sticky;
  top: 36px;
  padding-top: 22px;
}

.form-assurance {
  display: flex;
  margin-top: 32px;
  padding: 18px 20px;
  gap: 4px;
  border-left: 3px solid var(--warm);
  flex-direction: column;
  color: var(--ink-soft);
  font-size: 13px;
  background: #fffbf2;
}

.form-assurance strong {
  color: var(--ink);
  font-size: 14px;
}

.form-card {
  padding: 34px;
}

.app-form .mb-3:last-of-type {
  margin-bottom: 24px !important;
}

.form-label,
.app-form label,
.auth-card label {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cdd7dc;
  border-radius: 9px;
  color: var(--ink);
  background-color: white;
  box-shadow: none;
}

textarea.form-control {
  min-height: 112px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(8, 123, 104, 0.12);
}

.form-control::placeholder {
  color: #8b979f;
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 0.2em;
  border-color: #b8c5ca;
}

.form-check-input:checked {
  border-color: var(--brand);
  background-color: var(--brand);
}

.form-text,
.helptext {
  color: #6a7883;
  font-size: 12px;
}

.invalid-feedback,
.errorlist,
.text-danger {
  color: #a33c38 !important;
  font-size: 13px;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success {
  min-height: 44px;
  padding: 9px 17px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none !important;
}

.btn-primary,
.btn-success {
  border-color: var(--brand);
  background: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: white;
}

.btn-link {
  color: var(--brand);
}

.account-card h1,
.auth-card h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.account-card h2,
.auth-card h2 {
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.account-card ul:not(.errorlist) {
  padding-left: 20px;
}

.account-card .card {
  border-color: var(--line);
  border-radius: 12px;
}

.account-card .card > .card-body > ul:not(.errorlist) {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.account-card .card > .card-body > ul:not(.errorlist) li {
  margin: 0;
}

.account-card .badge {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}

.account-card .badge.bg-primary,
.account-card .badge.bg-success {
  background-color: var(--brand) !important;
}

.account-card .table {
  --bs-table-bg: transparent;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 14px;
}

.account-card .table > :not(caption) > * > * {
  padding: 14px 10px;
  border-bottom-color: var(--line);
}

/* Profile and account settings */

.profile-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: 224px minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 4vw, 48px);
}

.profile-sidebar {
  position: sticky;
  min-width: 0;
  top: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 34px rgba(36, 61, 54, 0.045);
}

.profile-sidebar-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.profile-sidebar-identity > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.profile-sidebar-identity strong,
.profile-sidebar-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-sidebar-identity strong {
  color: var(--ink);
  font-size: 14px;
}

.profile-sidebar-identity small {
  color: var(--ink-soft);
  font-size: 11px;
}

.profile-sidebar-avatar,
.profile-hero-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-dark);
  font-weight: 800;
  background: var(--brand-soft);
}

.profile-sidebar-avatar {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.profile-role {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 5px 9px;
  gap: 6px;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 750;
  background: var(--brand-soft);
}

.profile-role > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.profile-nav-list {
  display: grid;
  margin-top: 16px;
  gap: 2px;
}

.profile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 9px;
  gap: 10px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  transition: color 150ms ease, background-color 150ms ease;
}

.profile-nav-list a:hover {
  color: var(--brand-dark);
  background: #f4f8f7;
}

.profile-nav-list a.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.profile-nav-icon,
.profile-action-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--brand);
}

.profile-nav-icon {
  width: 21px;
  height: 21px;
}

.profile-nav-icon svg,
.profile-action-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-signout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 9px 1px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.profile-signout:hover {
  color: var(--brand);
}

.profile-content {
  min-width: 0;
}

.profile-content-heading {
  max-width: 700px;
  margin-bottom: 22px;
}

.profile-content-heading .eyebrow {
  margin-bottom: 9px;
}

.profile-content-heading h1 {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 46px);
  font-weight: 770;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.profile-content-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.profile-hero-card {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  min-height: 138px;
  padding: 24px 28px;
  gap: 28px;
  border-radius: 16px;
  color: white;
  background: var(--brand-dark);
}

.profile-hero-card::after {
  position: absolute;
  right: -26px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border-radius: 28px;
  content: "";
  background: rgba(242, 185, 75, 0.34);
  transform: rotate(12deg);
}

.profile-hero-identity,
.profile-hero-card .button {
  position: relative;
  z-index: 1;
}

.profile-hero-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
}

.profile-hero-identity > div {
  min-width: 0;
}

.profile-hero-avatar {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 25px;
  background: rgba(255, 255, 255, 0.13);
}

.profile-hero-identity span {
  color: #a4d9ce;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-hero-identity h2 {
  overflow: hidden;
  margin: 3px 0 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.profile-hero-identity p {
  overflow: hidden;
  margin: 4px 0 0;
  color: #d2e6e1;
  font-size: 13px;
  text-overflow: ellipsis;
}

.profile-section {
  margin-top: 30px;
}

.profile-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 28px;
}

.profile-section-heading .eyebrow {
  margin-bottom: 5px;
}

.profile-section-heading h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 730;
  letter-spacing: -0.03em;
}

.profile-section-heading > p {
  max-width: 380px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

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

.profile-action-grid > a {
  display: grid;
  min-height: 88px;
  padding: 15px 16px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: white;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.profile-action-grid > a:hover {
  border-color: #b9c9c4;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(36, 61, 54, 0.07);
  transform: translateY(-2px);
}

.profile-action-icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: var(--brand-soft);
}

.profile-action-grid > a > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.profile-action-grid strong {
  font-size: 14px;
}

.profile-action-grid small {
  color: var(--ink-soft);
  font-size: 11px;
}

.profile-action-grid > a > span:last-child {
  color: var(--brand);
  font-size: 19px;
  transition: transform 150ms ease;
}

.profile-action-grid > a:hover > span:last-child {
  transform: translateX(3px);
}

.profile-access-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  gap: 24px;
}

.profile-access-card .eyebrow {
  margin-bottom: 5px;
}

.profile-access-card h2 {
  margin-bottom: 6px;
}

.profile-access-card p:last-child {
  max-width: 600px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.profile-access-badge {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 750;
  background: var(--brand-soft);
}

.profile-settings-card {
  padding: clamp(22px, 3vw, 32px);
}

/* Monthly PRAE submissions */

.prae-form-page {
  grid-template-columns: minmax(260px, 0.58fr) minmax(560px, 1.15fr);
  gap: clamp(36px, 6vw, 84px);
}

.prae-form-section + .prae-form-section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.prae-form-section > h2,
.prae-section-heading h2 {
  margin-bottom: 16px;
}

.prae-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 24px;
}

.prae-section-heading h2 {
  margin: 0 0 5px;
}

.prae-section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.prae-total,
.submission-total {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-weight: 800;
  background: var(--brand-soft);
}

.submission-heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.prae-total {
  min-width: 96px;
  padding: 8px 11px;
  border-radius: 9px;
  text-align: center;
}

.prae-total-over {
  color: #8e2f2b;
  background: #f8dfdd;
}

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

.prae-day-field .mb-3 {
  margin: 0 !important;
}

.prae-day-field label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  text-align: center;
}

.prae-day-field input {
  min-width: 0;
  padding-inline: 7px;
  text-align: right;
}

.prae-signature-confirmation {
  display: grid;
  gap: 18px;
}

.prae-signature-field,
.prae-confirmation {
  padding: 18px !important;
  border: 1px solid #c5dbd5 !important;
  border-radius: 10px;
  background: #f3faf8;
}

.prae-signature-field > label {
  display: block;
}

.prae-signature-field > label span,
.prae-confirmation label span {
  margin-left: 2px;
}

.prae-signature-pad {
  overflow: hidden;
  border: 1px solid #b9cbc6;
  border-radius: 9px;
  background: #fff;
}

.prae-signature-pad canvas {
  display: block;
  width: 100%;
  height: 180px;
  cursor: crosshair;
  touch-action: none;
}

.prae-signature-pad canvas:focus-visible {
  outline: 3px solid rgba(8, 123, 104, 0.25);
  outline-offset: -3px;
}

.prae-signature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.prae-signature-meta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.prae-signature-status {
  margin-top: 3px !important;
  color: var(--brand-dark) !important;
  font-weight: 700;
}

.prae-confirmation .form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.prae-confirmation .form-check-input {
  flex: 0 0 18px;
  float: none;
  margin: 2px 0 0;
}

.prae-confirmation .form-check-label {
  margin: 0;
  line-height: 1.5;
}

.prae-signature-field.has-error,
.prae-confirmation.has-error {
  border-color: #c86a65 !important;
}

.signature-client-error {
  display: block;
  margin: 10px 0 0;
}

.signature-client-error[hidden] {
  display: none;
}

.submission-total {
  padding: 12px 16px;
  border-radius: 11px;
  font-size: 20px;
}

.submission-days-card {
  margin-top: 22px;
}

.submission-signature-card {
  margin-top: 22px;
}

.submission-signature {
  max-width: 680px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.submission-signature img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.submission-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.submission-days > div {
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fbfa;
}

.submission-days span {
  color: var(--ink-soft);
}

.submission-actions {
  margin-top: 22px;
}

.profile-mobile-nav {
  display: none;
}

.profile-settings-content {
  width: 100%;
  max-width: 900px;
}

.settings-card-heading {
  margin-bottom: 22px;
}

.settings-card-heading .eyebrow {
  margin-bottom: 5px;
}

.settings-card-heading h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.settings-card-heading > p:last-child {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

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

.email-option {
  display: grid;
  padding: 13px 14px;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  background: #f8fbfa;
}

.email-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand);
}

.email-option-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.email-option-copy > strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
}

.email-badges {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.email-badge {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  background: var(--brand-soft);
}

.email-badge-success {
  color: white;
  background: var(--brand);
}

.email-badge-warning {
  color: #765414;
  background: #f8e8bd;
}

.email-actions {
  display: flex;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-subsection {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.settings-subsection-heading {
  margin-bottom: 16px;
}

.settings-subsection-heading h2 {
  margin: 0;
}

.settings-subsection-heading p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.profile-settings-card > h1:first-child,
.profile-settings-card > header h1:first-child {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.profile-settings-card > h1:first-child + p,
.profile-settings-card > header + p {
  color: var(--ink-soft);
}

.profile-settings-card form:last-child,
.profile-settings-card > form {
  margin-bottom: 0;
}

.profile-settings-card > form + h2 {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.profile-settings-card > form .btn {
  margin: 4px 4px 4px 0;
}

.profile-heading {
  align-items: center;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 25px;
}

/* Authentication */

.auth-page {
  display: block;
  background: white;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(380px, 0.85fr) minmax(480px, 1.15fr);
}

.auth-aside {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 100vh;
  padding: 46px clamp(36px, 6vw, 88px);
  flex-direction: column;
  color: white;
  background: var(--brand-dark);
}

.auth-aside::after {
  position: absolute;
  right: 8%;
  bottom: 8%;
  width: 130px;
  height: 130px;
  border-radius: 30px;
  content: "";
  background: rgba(242, 185, 75, 0.32);
  transform: rotate(12deg);
}

.auth-brand {
  color: white;
}

.auth-brand:hover {
  color: white;
}

.auth-brand .brand-mark {
  color: var(--brand-dark);
  background: white;
}

.auth-brand strong {
  color: #a4d9ce;
}

.auth-aside-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-block: auto;
}

.auth-aside-copy .eyebrow {
  color: #a4d9ce;
}

.auth-aside-copy h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 770;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.auth-aside-copy > p:last-of-type {
  margin: 22px 0 28px;
  color: #d2e6e1;
  font-size: 17px;
}

.auth-aside-copy ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.auth-aside-copy li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #edf7f4;
  font-size: 14px;
  font-weight: 600;
}

.auth-aside-copy li::before {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  content: "✓";
  background: #a4d9ce;
}

.auth-aside-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #a4d9ce;
  font-size: 12px;
}

.auth-content {
  display: grid;
  min-height: 100vh;
  padding: 48px 28px;
  place-items: center;
  background: linear-gradient(135deg, #f8fbfa, #fff 62%);
}

.auth-card {
  width: min(100%, 460px);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 24px 60px rgba(36, 61, 54, 0.1);
}

.auth-card > p,
.auth-card header + p {
  color: var(--ink-soft);
}

.auth-card form {
  margin-top: 24px;
}

.auth-card .btn {
  width: 100%;
  min-height: 48px;
}

.auth-card a:not(.brand):not(.btn) {
  color: var(--brand);
  font-weight: 650;
}

.auth-mobile-brand {
  display: none;
  margin-bottom: 34px;
  color: var(--ink);
}

/* Feedback and utility states */

.app-messages {
  margin-bottom: 24px;
}

.alert {
  padding: 14px 48px 14px 16px;
  border: 1px solid #cfe2dc;
  border-radius: 10px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
  background: var(--brand-soft);
}

.alert-error,
.alert-danger {
  border-color: #ebcecc;
  color: #8c302d;
  background: #fff2f1;
}

.alert-warning {
  border-color: #ebdbb9;
  color: #765414;
  background: #fffbf2;
}

.alert .btn-close {
  padding: 18px;
}

.about-heading {
  padding-block: 18px 8px;
}

.about-heading h1 {
  max-width: 900px;
}

.about-grid .app-card {
  min-height: 250px;
}

.error-state {
  width: min(100%, 680px);
  margin: 30px auto;
  padding: 60px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  background: white;
  box-shadow: 0 20px 50px rgba(36, 61, 54, 0.07);
}

.error-state p:not(.eyebrow) {
  margin: 18px auto 28px;
  color: var(--ink-soft);
}

.landing-page {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--surface);
}

.landing-page a {
  color: inherit;
  text-decoration: none;
}

.landing-page svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.page-shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(22, 32, 42, 0.09);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 74px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: white;
  font-weight: 800;
  background: var(--brand);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a,
.text-link {
  transition: color 150ms ease;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--brand);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.text-link {
  padding: 8px;
  font-size: 14px;
  font-weight: 650;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

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

.button svg {
  width: 18px;
  height: 18px;
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 14px;
}

.button-primary {
  color: white !important;
  background: var(--brand);
}

.button-primary:hover {
  background: var(--brand-dark);
}

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

.button-secondary:hover {
  border-color: #aebac1;
}

.button-danger {
  border-color: #e8b9bf;
  color: #b82839 !important;
  background: #fff7f8;
}

.button-danger:hover {
  border-color: #db7f8a;
  background: #ffedef;
}

.hero {
  overflow: hidden;
  padding: 92px 0 80px;
  background: linear-gradient(108deg, #f8fbfa 0%, #f8fbfa 57%, #eef6f3 57%, #eef6f3 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.87fr);
  align-items: center;
  gap: 86px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px, 5.8vw, 74px);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero h1 span {
  color: var(--brand);
}

.hero-lead {
  max-width: 620px;
  margin: 26px 0 30px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.65;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.hero-note svg,
.preview-footer svg {
  width: 18px;
  height: 18px;
  padding: 2px;
  border-radius: 50%;
  color: white;
  background: var(--brand);
}

.product-preview {
  position: relative;
  padding: 26px;
  border: 1px solid #d9e2df;
  border-radius: 18px;
  background: white;
  box-shadow: 0 24px 60px rgba(36, 61, 54, 0.13);
}

.product-preview::before {
  position: absolute;
  top: -18px;
  right: -20px;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  content: "";
  background: rgba(242, 185, 75, 0.45);
  transform: rotate(10deg);
  z-index: -1;
}

.preview-topbar,
.limit-card-heading,
.limit-meta,
.person-row,
.entry-row {
  display: flex;
  align-items: center;
}

.preview-topbar {
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8edeb;
}

.preview-topbar > div,
.person-row > div,
.limit-card-heading > div {
  display: flex;
  flex-direction: column;
}

.preview-kicker,
.person-row span,
.limit-card span,
.entry-row small {
  color: #6a7883;
  font-size: 12px;
}

.preview-topbar strong {
  font-size: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  gap: 6px;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  background: var(--brand-soft);
}

.status-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.person-row {
  gap: 12px;
  padding: 20px 0;
}

.person-row .avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  background: var(--brand-soft);
}

.person-row > div {
  flex: 1;
}

.person-row strong {
  font-size: 14px;
}

.person-row button {
  border: 0;
  color: #74818b;
  letter-spacing: 2px;
  background: transparent;
}

.limit-card {
  padding: 17px 18px 14px;
  border: 1px solid #dce7e4;
  border-radius: 12px;
  background: #f8fbfa;
}

.limit-card-heading {
  justify-content: space-between;
  margin-bottom: 13px;
}

.limit-card-heading strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.limit-card-heading > span {
  align-self: end;
  margin-bottom: 3px;
}

.progress-track {
  overflow: hidden;
  height: 7px;
  border-radius: 99px;
  background: #dfe9e6;
}

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

.limit-meta {
  justify-content: space-between;
  margin-top: 9px;
}

.entry-list {
  padding-top: 10px;
}

.entry-row {
  min-height: 68px;
  gap: 13px;
  border-bottom: 1px solid #edf0ef;
}

.entry-row > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.entry-row > strong,
.entry-row > span:nth-child(2) strong {
  font-size: 13px;
}

.date-badge {
  display: flex;
  width: 38px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 8px !important;
  line-height: 1.05;
}

.date-badge strong {
  color: var(--ink);
  font-size: 15px;
}

.entry-row svg {
  width: 18px;
}

.entry-row-muted {
  border-bottom: 0;
}

.preview-footer {
  margin: 7px -26px -26px;
  padding: 13px 26px;
  border-radius: 0 0 18px 18px;
  background: #f6f8f7;
}

.preview-footer span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #52615d;
  font-size: 11px;
  font-weight: 650;
}

.facts-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

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

.facts-grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  gap: 14px;
}

.facts-grid > div + div {
  border-left: 1px solid var(--line);
}

.facts-grid strong {
  color: var(--brand);
  font-size: 27px;
  letter-spacing: -0.04em;
}

.facts-grid span {
  max-width: 130px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.section {
  padding: 104px 0;
}

.section-tinted {
  background: var(--surface-soft);
}

.section-heading {
  max-width: 530px;
}

.section-heading.centered {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.cta-inner h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-heading > p:last-of-type {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.feature-icon {
  display: grid;
  width: 45px;
  height: 45px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 10px;
  color: var(--brand);
  background: var(--brand-soft);
}

.feature-icon svg {
  width: 23px;
  height: 23px;
}

.feature-card h3,
.steps-list h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.feature-card p,
.steps-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.split-layout,
.knowledge-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 100px;
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding-bottom: 34px;
}

.steps-list li:not(:last-child) {
  border-bottom: 1px solid #d8dfdc;
  margin-bottom: 32px;
}

.steps-list li > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 14px;
  font-weight: 800;
  background: var(--brand);
}

.source-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--brand) !important;
  font-size: 14px;
  font-weight: 700;
}

.source-link:hover {
  text-decoration: underline;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span::before,
.faq-list summary span::after {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 14px;
  height: 2px;
  content: "";
  background: var(--brand);
}

.faq-list summary span::after {
  transform: rotate(90deg);
  transition: transform 150ms ease;
}

.faq-list details[open] summary span::after {
  transform: rotate(0);
}

.faq-list details p {
  margin: -6px 44px 22px 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.legal-note {
  margin-top: 54px;
  padding: 18px 22px;
  border-left: 3px solid var(--warm);
  color: #59636b;
  font-size: 13px;
  background: #fffbf2;
}

.cta-section {
  padding: 72px 0;
  color: white;
  background: var(--brand-dark);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.cta-inner > div {
  max-width: 720px;
}

.cta-inner .eyebrow {
  color: #a4d9ce;
}

.cta-inner h2 {
  font-size: clamp(32px, 4vw, 44px);
}

.button-light {
  flex: 0 0 auto;
  color: var(--brand-dark) !important;
  background: white;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-footer .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--brand);
}

@media (max-width: 940px) {
  .prae-day-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profile-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
  }

  .profile-sidebar {
    padding: 16px;
  }

  .profile-action-grid {
    grid-template-columns: 1fr;
  }

  .profile-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .form-page {
    grid-template-columns: minmax(0, 0.8fr) minmax(390px, 1fr);
    gap: 44px;
  }

  .auth-shell {
    grid-template-columns: minmax(320px, 0.75fr) minmax(440px, 1fr);
  }

  .auth-aside {
    padding-inline: 40px;
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    padding-top: 70px;
    background: #f8fbfa;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .product-preview {
    width: min(100%, 600px);
  }

  .split-layout,
  .knowledge-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 24px), 1160px);
  }

  .header-inner {
    min-height: 66px;
  }

  .app-header .navbar {
    min-height: 58px;
    padding-block: 7px;
  }

  .app-header .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-basis: 100%;
    margin: 0;
    padding: 8px 12px 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 14px 28px rgba(36, 61, 54, 0.1);
  }

  .app-nav {
    align-items: stretch !important;
    gap: 2px;
  }

  .app-nav .nav-link {
    min-height: 38px;
    padding: 7px 2px !important;
  }

  .app-nav-action {
    min-height: 38px;
    width: 100%;
    margin: 5px 0 0;
  }

  .app-main {
    padding-block: 28px 44px;
  }

  .app-page-heading {
    align-items: flex-start;
    margin-bottom: 22px;
    flex-direction: column;
  }

  .app-page-heading > .button {
    width: 100%;
  }

  .app-page-heading h1,
  .form-page-intro h1,
  .profile-content-heading h1,
  .error-state h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .app-card-grid,
  .form-page,
  .form-page-compact {
    grid-template-columns: 1fr;
  }

  .form-page {
    gap: 30px;
  }

  .form-page-intro {
    position: static;
    padding-top: 0;
  }

  .app-card,
  .form-card,
  .account-card,
  .auth-card {
    padding: 20px;
  }

  .app-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .app-footer-inner > a:last-child {
    margin-left: 0;
  }

  .profile-heading {
    flex-direction: row;
  }

  .profile-avatar {
    width: 58px;
    height: 58px;
    font-size: 20px;
  }

  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .profile-layout-settings {
    gap: 12px;
  }

  .profile-sidebar {
    position: relative;
    top: auto;
    padding: 14px;
  }

  .profile-sidebar-identity {
    padding-right: 130px;
  }

  .profile-role {
    position: absolute;
    top: 21px;
    right: 14px;
    margin: 0;
  }

  .profile-nav-list,
  .profile-signout {
    display: none;
  }

  .profile-mobile-nav {
    display: block;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .profile-mobile-nav summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 5px 8px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--ink);
    background: var(--brand-soft);
    list-style: none;
  }

  .profile-mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .profile-mobile-nav summary > span:first-child {
    display: flex;
    flex-direction: column;
  }

  .profile-mobile-nav summary small {
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .profile-mobile-nav summary strong {
    font-size: 13px;
  }

  .profile-mobile-chevron {
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 150ms ease;
  }

  .profile-mobile-nav[open] .profile-mobile-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  .profile-mobile-nav nav {
    display: grid;
    margin-top: 6px;
    padding: 5px;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
  }

  .profile-mobile-nav nav a {
    min-height: 36px;
    padding: 7px 9px;
    border-radius: 7px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 650;
  }

  .profile-mobile-nav nav a.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
  }

  .profile-layout-settings .profile-sidebar {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .profile-layout-settings .profile-sidebar-identity,
  .profile-layout-settings .profile-role {
    display: none;
  }

  .profile-layout-settings .profile-mobile-nav {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .profile-layout-settings .profile-mobile-nav summary {
    min-height: 40px;
    padding: 7px 11px;
    border: 1px solid #c7ddd7;
    background: #eaf5f2;
  }

  .profile-layout-settings .profile-mobile-nav summary > span:first-child {
    flex-direction: row;
  }

  .profile-layout-settings .profile-settings-card {
    padding: 4px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .profile-layout-settings .settings-card-heading {
    margin-bottom: 18px;
  }

  .profile-layout-settings .settings-card-heading h1 {
    font-size: clamp(28px, 8.5vw, 36px);
  }

  .profile-layout-settings .settings-card-heading > p:last-child {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.55;
  }

  .email-option {
    padding: 11px 12px;
  }

  .email-option-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

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

  .email-actions .button {
    min-height: 38px;
    width: 100%;
    padding-inline: 10px;
    font-size: 12px;
  }

  .email-actions .button-danger {
    min-height: 30px;
    grid-column: 1 / -1;
    justify-self: start;
    width: auto;
    padding: 2px 0;
    border-color: transparent;
    background: transparent;
  }

  .settings-subsection {
    margin-top: 22px;
    padding-top: 20px;
  }

  .settings-subsection-heading {
    margin-bottom: 12px;
  }

  #djDebugRoot,
  #djDebug #djDebugToolbarHandle {
    display: none !important;
  }

  .profile-hero-card {
    min-height: 0;
    padding: 20px;
  }

  .profile-hero-avatar {
    width: 48px;
    height: 48px;
    font-size: 17px;
  }

  .profile-section {
    margin-top: 24px;
  }

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

  .profile-access-card {
    align-items: flex-start;
  }

  .auth-shell {
    display: block;
  }

  .auth-aside {
    display: none;
  }

  .auth-content {
    min-height: 100vh;
    padding: 28px 18px;
  }

  .auth-card {
    box-shadow: 0 16px 42px rgba(36, 61, 54, 0.08);
  }

  .auth-mobile-brand {
    display: inline-flex;
  }

  .header-actions .text-link {
    display: none;
  }

  .hero {
    padding: 58px 0 60px;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 60px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-preview {
    padding: 20px;
  }

  .preview-footer {
    margin: 7px -20px -20px;
    padding-inline: 20px;
  }

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

  .facts-grid > div {
    justify-content: flex-start;
    min-height: 86px;
    padding-inline: 12px;
  }

  .facts-grid > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading.centered {
    text-align: left;
  }

  .cta-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .prae-day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand {
    font-size: 16px;
  }

  .header-actions .button {
    padding-inline: 12px;
  }

  .entry-row > strong {
    display: none;
  }

  .app-main {
    padding-block: 22px 36px;
  }

  .app-page-heading {
    gap: 22px;
  }

  .app-card,
  .form-card,
  .account-card,
  .auth-card {
    padding: 17px;
  }

  .app-list-item {
    padding-inline: 16px;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .detail-list dt {
    padding-bottom: 2px;
  }

  .detail-list dd {
    padding-top: 2px;
    border-top: 0;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .profile-heading {
    align-items: flex-start;
  }

  .profile-avatar {
    display: none;
  }

  .profile-sidebar-identity {
    padding-right: 118px;
  }

  .profile-role {
    position: absolute;
    top: 19px;
    right: 14px;
    margin: 0;
  }

  .profile-content-heading {
    margin-bottom: 18px;
  }

  .profile-content-heading h1 {
    font-size: 32px;
  }

  .profile-content-heading > p:last-child {
    margin-top: 7px;
    font-size: 14px;
  }

  .profile-hero-card {
    padding: 17px;
  }

  .profile-hero-card .button {
    display: none;
  }

  .profile-hero-identity {
    align-items: flex-start;
  }

  .profile-hero-avatar {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

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

  .profile-action-grid > a {
    min-height: 76px;
    padding: 11px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
  }

  .profile-action-icon {
    width: 30px;
    height: 30px;
    padding: 6px;
  }

  .profile-action-grid small,
  .profile-action-grid > a > span:last-child {
    display: none;
  }

  .profile-section-heading > p {
    display: none;
  }

  .profile-access-card {
    align-items: flex-start;
    padding: 17px;
  }

  .member-list li {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .member-list .status-pill {
    width: fit-content;
    margin-left: 46px;
  }

  .error-state {
    margin: 0;
    padding: 38px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
