:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: #f2f2f7;
  color: #111114;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  background: radial-gradient(circle at 50% -20%, #fff 0, #e8e8ed 46%, #d8d8df 100%);
}

main {
  width: min(34rem, 100%);
  background: rgb(255 255 255/96%);
  border: 1px solid rgb(60 60 67/12%);
  border-radius: 1.35rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: 0 1rem 3rem rgb(0 0 0/10%);
  backdrop-filter: blur(20px);
}

body.wide {
  display: block;
}

body.wide main {
  width: min(58rem, 100%);
  margin: 0 auto;
}

body.landing main {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.mark {
  display: block;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  object-fit: cover;
}

.eyebrow {
  color: #007aff;
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: .7rem 0 .35rem;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.1;
}

h2 {
  margin: .35rem 0;
  line-height: 1.2;
}

p {
  color: #6e6e73;
  line-height: 1.55;
}

a {
  color: #007aff;
}

.notice, .error {
  padding: 1rem;
  border-radius: .8rem;
  margin: 1.25rem 0;
}

.notice {
  background: #ecfdf5;
  color: #065f46;
}

.error {
  background: #fef2f2;
  color: #991b1b;
}

form {
  display: grid;
  gap: .7rem;
  margin-top: 1.25rem;
}

label {
  font-weight: 650;
  margin-top: .35rem;
}

input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: .85rem;
  border: 1px solid #a9bac0;
  border-radius: .65rem;
  font: inherit;
  font-size: 16px;
}

input:focus, textarea:focus, select:focus {
  outline: 3px solid rgb(0 122 255/22%);
  border-color: #007aff;
}

button, .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: .6rem;
  padding: .75rem 1rem;
  margin-top: .65rem;
  background: #155e75;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
}

button:focus-visible, .button:focus-visible {
  outline: 3px solid rgb(21 94 117/28%);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 3px solid rgb(0 122 255/28%);
  outline-offset: 2px;
}

.secondary {
  background: #52666d;
}

.danger {
  background: #b42318;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

nav form {
  margin: 0;
}

.card {
  margin: 1rem 0;
  padding: 1.25rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 .4rem 1.5rem rgb(0 0 0/6%);
  border: 1px solid rgb(60 60 67/12%);
}

.card h2 {
  color: #111114;
}

.actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: end;
}

.actions form {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.actions label {
  min-width: 15rem;
}

.muted {
  color: #64777d;
}

.home-link {
  margin: 1.25rem 0 0;
  text-align: center;
}

.home-link a {
  font-weight: 700;
  text-decoration: none;
}

.home-link a:hover {
  text-decoration: underline;
}

.home-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .35rem;
  margin-top: 1.35rem;
}

.home-actions .button {
  margin-top: .35rem;
}

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

.landing-page {
  display: grid;
  gap: 1.25rem;
}

.landing-hero {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid rgb(60 60 67/12%);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 .4rem 1.5rem rgb(0 0 0/6%);
}

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

.brand-lockup h1 {
  margin: .25rem 0 0;
}

.home-mark {
  width: 4rem;
  height: 4rem;
  flex: none;
}

.lead {
  max-width: 42rem;
  margin: 1.15rem 0 0;
  font-size: 1.05rem;
}

.hero-button {
  margin-top: 1.15rem;
}

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

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  border: 1px solid rgb(60 60 67/12%);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 .4rem 1.5rem rgb(0 0 0/6%);
}

.login-card h2 {
  margin: 0 0 .35rem;
  font-size: 1.25rem;
}

.login-card p {
  margin: 0;
}

.login-card .button {
  width: 100%;
  margin-top: 1.25rem;
}

.copyright {
  text-align: center;
  color: #6e6e73;
  font-size: .8rem;
  line-height: 1.4;
  padding: .25rem .5rem;
}

.copyright a {
  color: inherit;
  font-weight: 650;
}

.policy-document {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid rgb(60 60 67/12%);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 .4rem 1.5rem rgb(0 0 0/6%);
}

.policy-document h2 {
  margin-top: 2.2rem;
}

.policy-document h3 {
  margin: 1.5rem 0 .35rem;
}

.policy-document li {
  margin: .35rem 0;
  color: #52666d;
  line-height: 1.55;
}

.policy-document blockquote {
  margin: 1rem 0;
  padding: 1rem;
  border-left: .3rem solid #155e75;
  border-radius: .4rem;
  background: #eef7fa;
  color: #52666d;
  line-height: 1.55;
}

.policy-document hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid rgb(60 60 67/12%);
}

.policy-document code {
  padding: .1rem .3rem;
  border-radius: .3rem;
  background: #f2f2f7;
}

.class-choices {
  display: grid;
  gap: .7rem;
  margin-top: 1.25rem;
}

.class-choices form {
  margin: 0;
}

.class-choices button {
  width: 100%;
  margin: 0;
  flex-direction: column;
  gap: .2rem;
}

.class-choices button small {
  font-weight: 500;
  opacity: .85;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.menu-card {
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
  padding: 1.2rem;
  border: 1px solid rgb(60 60 67/12%);
  border-radius: 1.1rem;
  background: #fff;
  color: #111114;
  text-decoration: none;
  box-shadow: 0 .4rem 1.5rem rgb(0 0 0/6%);
  transition: transform .15s, box-shadow .15s;
}

.menu-card:not(.disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 .7rem 1.8rem rgb(0 0 0/9%);
}

.menu-card span {
  font-size: 1.8rem;
}

.menu-card strong {
  font-size: 1.05rem;
}

.menu-card small, .list-row small, .activation-link small {
  display: block;
  color: #6e6e73;
  line-height: 1.4;
}

.menu-card.disabled {
  background: #f2f2f7;
  color: #6e6e73;
}

.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin: 0 0 .65rem;
  padding: .6rem .85rem;
  border-radius: .65rem;
  background: #fff;
  color: #155e75;
  text-decoration: none;
  font-weight: 750;
  box-shadow: 0 .2rem .8rem rgb(21 94 117/10%);
  touch-action: manipulation;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgb(60 60 67/12%);
}

.list-row:last-child {
  border-bottom: 0;
}

.status-pill {
  flex: none;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: #f2f2f7;
  color: #3a3a3c;
  font-size: .78rem;
  font-weight: 650;
}

.moderation-filter {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(11rem, 1fr) auto;
  gap: .8rem;
  align-items: end;
}

.moderation-filter > div {
  min-width: 0;
}

.moderation-filter label {
  display: block;
  margin: 0 0 .45rem;
}

.moderation-filter button {
  margin: 0;
}

.moderation-summary {
  margin: 1.5rem .15rem .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #52666d;
}

.moderation-chat {
  height: min(65vh, 38rem);
  min-height: 24rem;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  border: 1px solid rgb(60 60 67/14%);
  border-radius: 1rem;
  background: #f7f7f9;
  box-shadow: inset 0 1px 4px rgb(0 0 0/4%);
  scroll-behavior: smooth;
}

.moderation-message {
  width: fit-content;
  max-width: min(78%, 34rem);
  scroll-margin: 5rem;
}

.moderation-sender {
  margin: 0 .55rem .2rem;
  color: #52666d;
  font-size: .75rem;
  font-weight: 700;
}

.moderation-bubble {
  padding: .55rem .75rem;
  border-radius: 1.05rem 1.05rem 1.05rem .3rem;
  background: #fff;
  color: #111114;
  box-shadow: 0 .15rem .55rem rgb(0 0 0/7%);
}

.moderation-message.search-match .moderation-bubble {
  outline: 3px solid #f5b942;
  outline-offset: 2px;
  background: #fffbea;
}

.moderation-message-content {
  display: grid;
  gap: .45rem;
}

.moderation-message-text {
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.moderation-expired-media {
  color: #6e6e73;
  font-size: .8rem;
  font-style: italic;
}

.moderation-image-link {
  width: fit-content;
  display: block;
}

.moderation-image-link img {
  display: block;
  width: min(16rem, 100%);
  height: auto;
  max-height: 16rem;
  object-fit: cover;
  border-radius: .72rem;
}

.moderation-message-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: .2rem .45rem 0;
  color: #6e6e73;
  font-size: .68rem;
}

.moderation-remove {
  display: inline-flex;
  margin: 0 0 0 .2rem;
}

.moderation-remove button {
  min-height: 28px;
  padding: .25rem .55rem;
  margin: 0;
  border-radius: .45rem;
  font-size: .72rem;
}

.moderation-empty {
  margin: auto;
  color: #6e6e73;
  text-align: center;
}

.retention-status {
  margin: 1rem 0;
  padding: .85rem 1rem;
  display: grid;
  gap: .25rem;
  border: 1px solid #c7c7cc;
  border-radius: .8rem;
  background: #f7f7f9;
}

.retention-status span {
  color: #52666d;
  font-size: .85rem;
  line-height: 1.45;
}

.retention-status.succeeded {
  border-color: #a7d8c4;
  background: #ecfdf5;
}

.retention-status.failed {
  border-color: #f0b4b4;
  background: #fef2f2;
}

.retention-status.running,
.retention-status.pending {
  border-color: #b9d9ff;
  background: #eef7ff;
}

@media (max-width: 680px) {
  .moderation-filter {
    grid-template-columns: 1fr;
  }

  .moderation-filter button {
    width: 100%;
  }

  .moderation-chat {
    height: 62vh;
    min-height: 22rem;
    padding: .75rem;
  }

  .moderation-message {
    max-width: 90%;
  }
}

.activation-link {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 1rem;
  background: #eef7ff;
  border: 1px solid rgb(0 122 255/20%);
}

.activation-link input {
  margin: .55rem 0;
  background: #fff;
  font-size: 16px;
}

.activation-link textarea {
  min-height: 22rem;
  margin: .55rem 0;
  resize: vertical;
  overflow-y: hidden;
  background: #fff;
  line-height: 1.5;
}

.activation-guide-label {
  display: block;
  margin-top: 1rem;
}

.activation-link button {
  margin-top: .35rem;
}

.activation-handoff h2 {
  margin: .35rem 0 .45rem;
}

.onboarding-step {
  color: #0066cc;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.activation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.activation-actions button {
  width: auto;
  min-height: 44px;
  margin: 0;
}

.activation-qr {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgb(0 122 255 / 18%);
  border-radius: .9rem;
  background: #fff;
  text-align: center;
}

.activation-qr-image {
  width: min(280px, 100%);
  margin: 0 auto .75rem;
}

.activation-qr-image svg {
  width: 100%;
  height: auto;
  display: block;
}

.activation-qr p {
  margin-bottom: 0;
  color: #6e6e73;
  font-size: .85rem;
}

.activation-instructions {
  margin-top: 1rem;
}

.activation-instructions summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #0066cc;
  font-weight: 750;
  cursor: pointer;
}

.pin-reset-steps {
  margin: .65rem 0 1rem;
  padding-left: 1.4rem;
  color: #52666d;
}

.pin-reset-steps li + li {
  margin-top: .35rem;
}

@media (max-width: 520px) {
  .activation-actions {
    display: grid;
  }

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

.copy-status {
  display: block;
  min-height: 1.5rem;
  margin-top: .5rem;
  color: #065f46;
  font-weight: 650;
}

.forgot-pin-link {
  width: fit-content;
  margin: .35rem 0 .8rem;
  display: inline-block;
  font-weight: 700;
}

.checks {
  display: grid;
  gap: .45rem;
  margin-top: .5rem;
}

.checks label {
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 0;
  padding: .35rem 0;
  font-weight: 500;
  line-height: 1.4;
}

.checks input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin: .15rem 0 0;
  flex: none;
}

.management-card h2 {
  margin: 0;
}

.management-card small {
  display: block;
  margin-top: .3rem;
  color: #6e6e73;
  line-height: 1.4;
}

.management-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.management-actions {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.management-actions form {
  margin: 0;
}

.management-actions button {
  margin-top: 0;
}

.child-admin-actions {
  justify-content: flex-end;
}

.account-profile-card form {
  margin-top: 1rem;
}

.account-form-actions {
  display: flex;
  justify-content: flex-end;
}

.account-delete {
  margin-top: 1rem;
}

.account-delete-blocked {
  margin-top: 1rem;
  border-color: rgb(180 35 24 / 18%);
  background: #fefafa;
}

.account-delete-blocked h2 {
  margin-top: 0;
}

.children-list > h2 {
  margin-top: 1.75rem;
}

.child-account-card > .management-head {
  margin-bottom: 1rem;
}

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

.child-account-actions details[open] {
  grid-column: 1 / -1;
  padding: .75rem 1rem;
}

.child-account-actions details {
  padding: .2rem .65rem;
  border: 1px solid rgb(60 60 67/12%);
  border-radius: .75rem;
  background: #f8fafb;
}

.withdraw-consent {
  margin-top: .75rem;
  padding: .2rem 1rem;
  border: 1px solid rgb(180 35 24/22%);
  border-radius: .75rem;
  background: #fefafa;
}

.child-account-actions summary {
  min-height: 34px;
  line-height: 34px;
  color: #155e75;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.child-account-actions details[open] summary {
  margin-bottom: .5rem;
}

.child-account-actions textarea {
  margin-top: .5rem;
  resize: vertical;
  overflow-y: hidden;
  background: #fff;
  line-height: 1.5;
}

.child-account-actions form {
  margin-top: .75rem;
}

.pin-help summary {
  color: #991b1b;
}

.withdraw-consent summary {
  min-height: 44px;
  line-height: 44px;
  color: #991b1b;
  font-weight: 700;
  cursor: pointer;
}

.withdraw-consent[open] summary {
  margin-bottom: .5rem;
}

.withdraw-consent form {
  margin-top: .75rem;
}

.child-statuses {
  display: flex;
  justify-content: flex-end;
  gap: .4rem;
  flex-wrap: wrap;
}

.status-pill.consent-active {
  color: #065f46;
  background: #ecfdf5;
}

.status-pill.consent-withdrawn {
  color: #991b1b;
  background: #fef2f2;
}

.child-groups {
  margin: .25rem 0;
}

.consent-meta {
  margin: .35rem 0 1rem;
  color: #64777d;
}

@media(max-width:620px) {
  body, body.wide {
    padding: max(.75rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
  }

  main, body.wide main {
    padding: 1.25rem;
    border-radius: 1rem;
  }

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

  .actions label {
    min-width: 0;
  }

  .actions button, .actions .button, nav button, nav .button {
    width: 100%;
  }

  .time-grid, .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-card {
    min-height: 7.5rem;
  }

  .list-row {
    align-items: flex-start;
    flex-direction: column;
    gap: .55rem;
  }

  .status-pill {
    max-width: 100%;
    white-space: normal;
  }

  .card {
    padding: 1rem;
  }

}

@media(max-width:620px) {
  .management-head, .management-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .child-admin-actions {
    align-items: flex-end;
  }

  .child-admin-actions form,
  .child-admin-actions button {
    width: auto;
  }

  .child-statuses {
    justify-content: flex-start;
  }

  .child-account-actions button,
  .withdraw-consent button {
    width: 100%;
  }

}

@media(max-width:720px) {
  .login-options {
    grid-template-columns: 1fr;
  }

}

@media(max-width:420px) {
  .brand-lockup {
    align-items: flex-start;
  }

  .home-mark {
    width: 3.5rem;
    height: 3.5rem;
  }

  .landing-hero, .login-card {
    padding: 1.15rem;
  }

}

@media(max-width:620px) {
  body.landing main {
    padding: 0;
    border-radius: 0;
  }

}

/* Plattformadministrasjon */

.platform-admin main {
  width: min(58rem, 100%);
}

.platform-admin h1 {
  font-size: 2rem;
}

.platform-admin h2,
.platform-admin .menu-card strong {
  font-size: 1.2rem;
}

.platform-admin p,
.platform-admin small,
.platform-admin .muted,
.platform-admin .eyebrow,
.platform-admin .status-pill,
.platform-admin .stat-card span,
.platform-admin .detail-grid dt {
  font-size: 1rem;
}

.platform-account {
  margin-bottom: .75rem;
}

.overview-summary {
  padding: .4rem 1.2rem;
}

.overview-summary > div {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  gap: .75rem;
  min-height: 3.5rem;
  border-bottom: 1px solid rgb(60 60 67/12%);
}

.overview-summary > div:last-child {
  border-bottom: 0;
}

.overview-summary strong {
  color: #155e75;
  font-size: 1.35rem;
}

.overview-summary .summary-warning strong,
.overview-summary .summary-warning span {
  color: #991b1b;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}

.stat-card {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid rgb(60 60 67/12%);
  border-radius: 1rem;
  background: #fff;
  color: #111114;
  text-decoration: none;
  box-shadow: 0 .25rem 1rem rgb(0 0 0/5%);
}

a.stat-card:hover {
  border-color: rgb(21 94 117/35%);
}

.stat-card strong {
  display: block;
  margin-bottom: .3rem;
  color: #155e75;
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  line-height: 1;
}

.stat-card span {
  color: #64777d;
  font-weight: 650;
}

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

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

.detail-grid dt {
  margin-bottom: .25rem;
  color: #64777d;
  font-weight: 700;
}

.detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.compact-list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  color: #111114;
  text-decoration: none;
}

.compact-list-card h2,
.compact-list-card p {
  margin: 0;
}

.compact-list-card p {
  margin-top: .35rem;
}

.compact-list-card small {
  display: block;
  margin-top: .45rem;
  color: #64777d;
}

.compact-list-action {
  display: grid;
  justify-items: end;
  gap: .75rem;
  flex: none;
  color: #155e75;
}

.compact-list-card:hover {
  border-color: rgb(21 94 117/35%);
}

.status-active,
.status-approved {
  color: #09633f;
  background: #e7f7ef;
}

.status-suspended,
.status-rejected {
  color: #991b1b;
  background: #fef2f2;
}

.status-pending,
.status-awaiting_email {
  color: #855000;
  background: #fff6dd;
}

.filter-form {
  margin: 1.25rem 0;
}

.decision-note {
  margin-top: 1rem;
  padding: 1rem;
  border-left: .3rem solid #a15c00;
  border-radius: .5rem;
  background: #fff8e8;
}

.decision-note p {
  margin-bottom: 0;
}

.title-with-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.audit-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgb(60 60 67/12%);
}

.audit-row small {
  display: block;
  margin-top: .3rem;
  color: #64777d;
}

.audit-row p {
  margin: .5rem 0 0;
}

.audit-target {
  max-width: 18rem;
  color: #52666d;
  font-weight: 650;
  text-align: right;
}

.empty-state {
  text-align: center;
}

.section-title {
  margin-top: 2rem;
}

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

.platform-choice-grid .menu-card {
  min-height: 11rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.platform-choice-grid .menu-card small {
  color: #64777d;
  line-height: 1.5;
}

.platform-choice-grid .menu-card > span {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: .25rem;
  line-height: 1;
}

select {
  width: 100%;
  min-height: 44px;
  padding: .75rem 2.4rem .75rem .85rem;
  border: 1px solid #a9bac0;
  border-radius: .65rem;
  background: #fff;
  color: #111114;
  font: inherit;
  font-size: 16px;
}

select:focus {
  outline: 3px solid rgb(0 122 255/22%);
  border-color: #007aff;
}

.status-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .75rem;
  padding: 1rem;
}

.status-filter label {
  margin: 0;
}

.status-filter select {
  margin-top: .4rem;
}

.status-filter button {
  margin: 0;
}

.class-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr);
  gap: .75rem;
}

.class-filter-grid label {
  margin: 0;
}

.class-filter-grid input,
.class-filter-grid select {
  margin-top: .4rem;
}

.application-actions > form {
  margin-bottom: 1.25rem;
}

.reject-details {
  padding-top: 1rem;
  border-top: 1px solid rgb(60 60 67/12%);
}

.reject-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #991b1b;
  font-weight: 700;
  cursor: pointer;
}

.pagination {
  justify-content: center;
  margin-top: 1.5rem;
}

.pagination .button {
  margin: 0;
}

.pagination span {
  color: #52666d;
  font-weight: 650;
}

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

  .detail-grid,
  .platform-choice-grid {
    grid-template-columns: 1fr;
  }

  .platform-choice-grid .menu-card {
    min-height: 8.5rem;
  }

  .compact-list-card {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-list-action {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
  }
}

@media(max-width:480px) {
  .stat-grid,
  .stat-grid.compact {
    grid-template-columns: 1fr;
  }

  .status-filter,
  .class-filter-grid {
    grid-template-columns: 1fr;
  }

  .status-filter button {
    width: 100%;
  }

  .title-with-status,
  .audit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .audit-target {
    max-width: none;
    text-align: left;
  }
}
