:root {
    color-scheme: dark;
    --background: #07111f;
    --surface: #0d1b2d;
    --surface-soft: #14253a;
    --ink: #dce7f6;
    --ink-strong: #ffffff;
    --muted: #aebdd0;
    --line: #293d58;
    --line-strong: #587493;
    --blue: #7bb0ff;
    --blue-deep: #9bc3ff;
    --blue-soft: #173966;
    --blue-fill: #1261e8;
    --blue-fill-strong: #0647b8;
    --teal: #78dccd;
    --teal-soft: #103e3a;
    --teal-fill: #007e73;
    --red: #ff9aac;
    --red-soft: #4d1c28;
    --red-fill: #b4233c;
    --red-fill-strong: #8f1930;
    --amber: #ffd278;
    --amber-soft: #493616;
    --focus: #ffd278;
    --on-fill: #ffffff;
    --shadow: 0 18px 55px rgb(0 0 0 / 38%);
    --radius: 1rem;
    --width: 74rem;
    --narrow: 51rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    background: var(--background);
    text-size-adjust: 100%;
}

body {
    min-width: 20rem;
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--blue-deep);
    color: var(--background);
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

input,
select,
textarea {
    accent-color: var(--blue);
}

a {
    color: var(--blue-deep);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--blue);
}

:where(a, button, summary, input, select, textarea, .data-table-wrap):focus-visible {
    outline: 0.2rem solid var(--focus);
    outline-offset: 0.2rem;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
pre {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--ink-strong);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

h1 {
    margin-bottom: 0.8rem;
    font-size: clamp(2.7rem, 6vw, 5.6rem);
}

h2 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.8rem, 4vw, 3.4rem);
}

h3,
h4 {
    margin-bottom: 0.6rem;
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
}

code,
pre {
    font-family: "SFMono-Regular", Consolas, monospace;
}

code {
    overflow-wrap: anywhere;
}

.site-shell {
    min-height: 100vh;
}

.dashboard-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.layout-width,
.layout-narrow {
    width: min(calc(100% - 2.5rem), var(--width));
    margin-inline: auto;
}

.layout-narrow {
    max-width: var(--narrow);
}

.section-pad {
    padding-block: clamp(4.5rem, 9vw, 8rem);
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.7rem;
    left: 0.7rem;
    padding: 0.7rem 1rem;
    transform: translateY(-180%);
    border-radius: 0.65rem;
    background: var(--blue-fill);
    color: var(--on-fill);
    font-weight: 750;
    text-decoration: none;
}

.skip-link:hover,
.skip-link:focus {
    transform: none;
    color: var(--on-fill);
}

#main-content:focus {
    outline: none;
}

.eyebrow {
    margin-bottom: 0.9rem;
    color: var(--blue-deep);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow span {
    text-transform: none;
}

.section-heading {
    max-width: 41rem;
}

.section-heading > p:not(.eyebrow),
.dashboard-page-header p {
    color: var(--muted);
    font-size: 1.08rem;
}

.centered-heading {
    margin-inline: auto;
    text-align: center;
}

.button-row,
.dashboard-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.button {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.62rem 1.1rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    background: linear-gradient(135deg, var(--blue-fill), var(--blue-fill-strong));
    box-shadow: 0 10px 25px rgb(18 97 232 / 32%);
    color: var(--on-fill);
}

.button-primary:hover {
    background: var(--blue-fill-strong);
    color: var(--on-fill);
}

.button-secondary {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--ink-strong);
}

.button-secondary:hover {
    border-color: var(--blue);
    color: var(--blue-deep);
}

.button-danger {
    background: var(--red-fill);
    color: var(--on-fill);
}

.button-danger:hover {
    background: var(--red-fill-strong);
    color: var(--on-fill);
}

.button-large {
    min-height: 3.3rem;
    padding-inline: 1.4rem;
}

.button-small {
    min-height: 2.35rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
}

/* Public shell */

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgb(7 17 31 / 92%);
}

.home-page .site-header {
    position: absolute;
    inset: 0 0 auto;
    border: 0;
    background: transparent;
}

.header-inner {
    display: flex;
    min-height: 5.25rem;
    align-items: center;
    gap: 2rem;
}

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

.brand img {
    height: auto;
}

.site-navigation,
.dashboard-navigation,
.admin-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
}

.site-navigation,
.dashboard-navigation {
    margin-left: auto;
}

.site-navigation a:not(.button),
.dashboard-navigation a,
.navigation-button,
.admin-navigation a {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.site-navigation a:not(.button):hover,
.site-navigation a[aria-current="page"],
.dashboard-navigation a:hover,
.dashboard-navigation a[aria-current="page"],
.navigation-button:hover,
.admin-navigation a:hover,
.admin-navigation a[aria-current="page"] {
    color: var(--blue-deep);
}

.footer-brand {
    padding: 2.5rem 0;
    text-align: center;
}

.footer-brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    color: var(--muted);
    font-size: 0.98rem;
    text-decoration: none;
}

.footer-brand-link:hover,
.footer-brand-link:focus-visible {
    color: var(--ink-strong);
}

.footer-brand-link img {
    width: 100px;
    height: auto;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 1.5rem;
    background: var(--surface);
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-main p {
    max-width: 37rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

/* Homepage */

.hero-section {
    padding-top: clamp(9rem, 12vw, 10rem);
    background: linear-gradient(140deg, #10223d, var(--background) 50%, #0b332f);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(24rem, 0.9fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
}

.hero-copy h1 {
    max-width: 12ch;
    margin-bottom: 1.5rem;
}

.hero-copy h1 span {
    background: linear-gradient(100deg, var(--blue-deep), var(--teal));
    background-clip: text;
    color: transparent;
}

.hero-lede {
    max-width: 39rem;
    margin-bottom: 1.8rem;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.code-window {
    overflow: hidden;
    border: 1px solid #1f3554;
    border-radius: 1.4rem;
    background: #071426;
    color: #eaf2ff;
    box-shadow: var(--shadow);
}

.code-toolbar {
    display: flex;
    min-height: 3.2rem;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid #253b5c;
    padding-inline: 1rem;
    color: #a9bddb;
}

.ad-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.ad-label {
    display: inline-flex;
    margin: 0.9rem 0.9rem 0;
    border: 1px solid var(--blue);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    background: var(--blue-soft);
    color: var(--blue-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ad-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.15rem 1.15rem;
}

.sample-app-icon {
    display: inline-grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(145deg, var(--blue-fill), var(--teal-fill));
    color: var(--on-fill);
    font-weight: 800;
}

.ad-copy {
    min-width: 0;
}

.ad-copy h2 {
    margin-bottom: 0.15rem;
    font-size: 1.3rem;
}

.ad-copy p {
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-action {
    border: 1px solid var(--blue);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    color: var(--blue-deep);
    font-size: 0.85rem;
    font-weight: 750;
}

.how-section,
.quality-section,
.sdk-section {
    background: var(--surface);
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.step-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: var(--surface);
    box-shadow: 0 10px 35px rgb(0 0 0 / 24%);
}

.step-number {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue-deep);
    font-weight: 800;
}

.step-card h3 {
    margin-block: 1rem 0.5rem;
}

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

.sdk-grid,
.points-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(2.5rem, 7vw, 7rem);
}

.ledger-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.ledger-title {
    margin-bottom: 0.4rem;
    color: var(--ink-strong);
    font-weight: 750;
}

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

.ledger-rows li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--line);
    padding-block: 0.8rem;
}

.ledger-amount {
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.ledger-earn {
    background: var(--teal-soft);
    color: var(--teal);
}

.ledger-spend {
    background: var(--blue-soft);
    color: var(--blue-deep);
}

.ledger-footnote {
    margin: 0;
    border-top: 1px solid var(--line);
    padding-top: 0.9rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.feature-grid {
    display: grid;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

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

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

.feature-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: var(--surface);
    box-shadow: 0 10px 35px rgb(0 0 0 / 24%);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

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

.privacy-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    width: min(100%, var(--narrow));
    margin: 1.25rem auto 0;
    padding: 0;
    list-style: none;
}

.privacy-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.9rem 1.1rem;
    background: var(--surface);
}

.privacy-list li::before {
    content: "✓";
    content: "✓" / "";
    color: var(--teal);
    font-weight: 800;
}

.privacy-link {
    margin: 1.5rem 0 0;
    text-align: center;
}

.faq-list {
    width: min(100%, var(--narrow));
    margin: 1.5rem auto 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.3rem 1.35rem;
    background: var(--surface);
}

.faq-item {
    padding-block: 1.1rem;
    color: var(--muted);
}

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

.faq-item h3 {
    margin-bottom: 0.35rem;
    font-size: 1.08rem;
}

.faq-item p {
    margin: 0;
}

.faq-item p + p {
    margin-top: 0.7rem;
}

.faq-item ul {
    margin: 0.7rem 0 0;
    padding-left: 1.2rem;
}

.cta-section {
    background: linear-gradient(160deg, var(--background), #10223d 55%, #0b332f);
}

.cta-buttons {
    justify-content: center;
    margin-top: 1.8rem;
}

.copy-button {
    margin-left: auto;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

.code-window pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-keyword {
    color: #ff93c9;
}

.code-type {
    color: #75d8ff;
}

/* Documentation, legal, sign-in, and errors */

.documentation-layout,
.auth-section {
    padding-block: clamp(1.2rem, 2.8vw, 2.4rem);
}

.documentation-content,
.legal-layout,
.auth-panel,
.error-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--surface);
    box-shadow: 0 12px 40px rgb(0 0 0 / 24%);
}

.prose h1 {
    font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.prose h2 {
    margin-top: 2.5rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.prose p {
    max-width: 72ch;
}

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

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.legal-layout {
    margin-block: clamp(1.2rem, 2.8vw, 2.4rem);
}

.auth-panel {
    width: min(calc(100% - 2.5rem), 38rem);
    margin-inline: auto;
}

.auth-panel h1 {
    font-size: clamp(2.3rem, 6vw, 4rem);
}

.stacked-form,
.dashboard-form {
    display: grid;
    gap: 1rem;
}

.stacked-form label,
.form-field label {
    color: var(--ink-strong);
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    min-height: 2.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.65rem;
    padding: 0.6rem 0.75rem;
    background: var(--surface);
    color: var(--ink);
}

.form-help {
    color: var(--muted);
    font-size: 0.9rem;
}

.auth-panel .form-help {
    margin-top: 1rem;
}

.error-section {
    display: grid;
    min-height: 65vh;
    place-items: center;
}

.error-card {
    max-width: 42rem;
    text-align: center;
}

.error-code {
    color: var(--blue-deep);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

/* Dashboard */

.dashboard-header {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.dashboard-header-inner {
    display: flex;
    min-height: 5rem;
    align-items: center;
    gap: 1.5rem;
}

.navigation-button {
    display: flex;
    align-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    white-space: nowrap;
}

.dashboard-main {
    flex: 1;
}

.dashboard-content {
    padding-block: clamp(2.5rem, 6vw, 5rem);
}

.admin-navigation {
    justify-content: flex-start;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

.admin-navigation a {
    padding-block: 0.65rem;
}

.admin-navigation a[aria-current="page"] {
    border-bottom: 2px solid var(--blue);
}

.dashboard-page-header,
.section-title-row,
.card-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.dashboard-page-header {
    margin-bottom: 2rem;
}

.dashboard-page-header h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.dashboard-page-header p,
.section-title-row p {
    margin-bottom: 0;
}

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

.dashboard-card,
.empty-state,
.notice {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem;
    background: var(--surface);
    box-shadow: 0 8px 28px rgb(0 0 0 / 22%);
}

.dashboard-card h2,
.dashboard-card h3,
.section-title-row h2 {
    margin-bottom: 0.45rem;
    font-size: 1.35rem;
}

.dashboard-card p,
.section-title-row p {
    color: var(--muted);
}

.notice {
    margin-bottom: 1rem;
    box-shadow: none;
}

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

.notice-info,
.status-active,
.status-healthy {
    border-color: #8ed4c5;
    background: var(--teal-soft);
    color: #b6f4e8;
}

.status-verifying,
.status-pending,
.status-attention,
.status-paused,
.status-removed {
    border-color: #e5c16f;
    background: var(--amber-soft);
    color: var(--amber);
}

.notice-error,
.status-suspended {
    border-color: #e9a2af;
    background: var(--red-soft);
    color: var(--red);
}

.error-summary h2 {
    font-size: 1.2rem;
}

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

.app-summary-card {
    display: flex;
    flex-direction: column;
}

.app-summary-card > .button {
    align-self: flex-start;
    margin-top: auto;
}

.app-summary-heading,
.app-metadata-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-summary-heading img,
.app-metadata-heading img {
    border-radius: 1rem;
}

.app-summary-heading p,
.app-metadata-heading p,
.app-metadata-heading span {
    margin: 0;
    color: var(--muted);
}

.empty-state {
    display: grid;
    justify-items: center;
    min-height: 12rem;
    place-content: center;
    text-align: center;
}

.empty-state > span {
    color: var(--blue);
    font-size: 2rem;
}

.empty-table-message {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 1.2rem;
    color: var(--muted);
    text-align: center;
}

.data-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.data-table-wrap caption {
    padding: 0.75rem;
    color: var(--muted);
    text-align: left;
}

.data-table-wrap th {
    color: var(--ink-strong);
}

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

.dashboard-column-stack,
.admin-app-list,
.moderation-queue {
    display: grid;
    align-content: start;
    gap: 1.25rem;
}

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

.definition-list > div {
    border-top: 1px solid var(--line);
    padding-block: 0.7rem;
}

.definition-list > div:nth-child(odd) {
    padding-right: 0.8rem;
}

.definition-list > div:nth-child(even) {
    padding-left: 0.8rem;
}

.definition-list dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.definition-list dd {
    margin: 0;
    color: var(--ink-strong);
    font-weight: 650;
    overflow-wrap: anywhere;
}

.definition-wide {
    grid-column: 1 / -1;
    padding-inline: 0 !important;
}

.form-field {
    display: grid;
    gap: 0.35rem;
}

.dashboard-form > .button {
    justify-self: start;
}

.compact-form {
    gap: 0.7rem;
}

.filter-form {
    display: flex;
    align-items: end;
    gap: 0.8rem;
}

.filter-form .form-field {
    flex: 1;
}

.copy-field {
    display: grid;
    gap: 0.7rem;
    min-width: 0;
    margin-block: 1rem;
}

.copy-field code {
    min-width: 0;
    overflow-wrap: anywhere;
    border: 1px solid var(--line-strong);
    border-radius: 0.65rem;
    padding: 0.7rem;
    background: var(--surface);
}

.copy-field .button {
    justify-self: start;
}

.sensitive-action {
    margin-top: 1rem;
    border-top: 1px solid var(--line);
}

.sensitive-action summary {
    padding-block: 1rem;
    color: var(--ink-strong);
    font-weight: 750;
    cursor: pointer;
}

.sensitive-action > div {
    padding-bottom: 1rem;
}

.sensitive-action-danger summary,
.danger-zone h2 {
    color: var(--red);
}

.check-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.9rem;
    cursor: pointer;
}

.check-row input {
    width: 1.2rem;
    min-height: 1.2rem;
    margin-top: 0.2rem;
}

.category-picker {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    border: 0;
    padding: 0;
}

.category-picker legend {
    padding: 0;
    color: var(--ink-strong);
    font-weight: 750;
}

.category-picker .form-help {
    margin: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.9rem;
}

.category-grid[hidden] {
    display: none;
}

.category-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.category-option input {
    width: 1.1rem;
    min-height: 1.1rem;
}

.category-subcategories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1 / -1;
    gap: 0.4rem 1rem;
    padding-left: 1.6rem;
}

.admin-app-card,
.moderation-card {
    box-shadow: none;
}

.moderation-evidence-grid {
    display: grid;
    grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.35fr);
    gap: 1.5rem;
    margin-block: 1rem;
}

.moderation-evidence-grid img {
    margin-bottom: 0.7rem;
    border-radius: 1rem;
}

.admin-card-actions {
    margin-top: 1.5rem;
}

.dashboard-footer {
    border-top: 1px solid var(--line);
    padding-block: 1.5rem;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.85rem;
}

.dashboard-footer > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-footer nav {
    display: flex;
    gap: 1rem;
}

/* Small screens and accessibility preferences */

@media (max-width: 64rem) {
    .hero-grid,
    .points-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: 15ch;
    }

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

    .dashboard-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 52rem) {
    .header-inner,
    .dashboard-header-inner {
        flex-wrap: wrap;
        padding-block: 0.8rem;
    }

    .site-navigation,
    .dashboard-navigation {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        border-top: 1px solid var(--line);
        padding-top: 0.7rem;
    }

    .home-page .site-navigation {
        border-color: rgb(255 255 255 / 18%);
    }

    .step-grid,
    .sdk-grid,
    .app-card-grid,
    .feature-grid-pairs,
    .feature-grid-thirds,
    .privacy-list {
        grid-template-columns: 1fr;
    }

    .footer-main {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-page-header,
    .section-title-row {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 38rem) {
    .layout-width,
    .layout-narrow,
    .auth-panel {
        width: min(calc(100% - 1.4rem), var(--width));
    }

    .header-inner {
        gap: 0.8rem;
    }

    h1 {
        font-size: clamp(2.35rem, 13vw, 3.5rem);
    }

    .definition-list,
    .moderation-evidence-grid {
        grid-template-columns: 1fr;
    }

    .definition-list > div {
        padding-inline: 0 !important;
    }

    .filter-form,
    .dashboard-footer > div {
        display: grid;
    }

    .data-table-wrap {
        font-size: 0.88rem;
    }
}

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

@media (prefers-contrast: more) {
    .button,
    .dashboard-card,
    .documentation-content,
    .legal-layout,
    input,
    select,
    textarea {
        border-width: 2px;
    }
}

@media (forced-colors: active) {
    .hero-copy h1 span {
        background: none;
        color: LinkText;
    }
}
