/*
 * Identity: A calm, consumer-owned profile folio in deep ink, mineral teal and warm paper.
 * Composition: An asymmetrical opening spread leads into continuous document rows and a sharing ledger.
 * Typography: YouShouldAsk gives headings a distinct voice; Inter keeps every control and detail legible.
 * Material: One soft folio shadow, flat paper sections, precise dividers and restrained color fields.
 * Motion: The folio settles open once; functional transitions stay brief and disappear with reduced motion.
 */

@font-face {
    font-family: "YouShouldAsk";
    src: url("/assets/YouShouldAsk-DemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "YouShouldAsk";
    src: url("/assets/YouShouldAsk-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/InterVariable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --canvas: #f3f4f1;
    --paper: #fffef9;
    --paper-muted: #f8f8f4;
    --ink: #101827;
    --ink-soft: #4d5360;
    --ink-faint: #686f7a;
    --navy: #101827;
    --navy-soft: #172638;
    --teal: #19b6a8;
    --teal-ink: #0b6f68;
    --teal-soft: #e8f6f4;
    --lavender: #f1edf8;
    --lavender-ink: #66529b;
    --sky: #eaf3f7;
    --sky-ink: #376e86;
    --signature: #f1b78a;
    --divider: #dfe2df;
    --divider-strong: #c9ceca;
    --danger: #a93834;
    --danger-soft: #fae8e5;
    --success: #176f58;
    --success-soft: #e8f4ee;
    --focus: #2563eb;
    --shadow-folio: 0 18px 48px rgba(16, 24, 39, 0.10);
    --shadow-dialog: 0 24px 70px rgba(16, 24, 39, 0.22);
    --radius-folio: 24px;
    --radius-surface: 16px;
    --radius-control: 12px;
    --header-height: 82px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    min-width: 320px;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 8% 18%, rgba(25, 182, 168, 0.045), transparent 28rem),
        var(--canvas);
}

body.modal-open {
    overflow: hidden;
}

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

button,
select {
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

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

a {
    color: inherit;
}

img,
svg {
    display: block;
}

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

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

::selection {
    background: rgba(25, 182, 168, 0.24);
}

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

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: white;
    transform: translateY(-160%);
    transition: transform 140ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1160px, calc(100% - 48px));
    min-height: var(--header-height);
    margin: 0 auto;
    padding-top: max(10px, env(safe-area-inset-top));
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-radius: 8px;
}

.brand img {
    width: 152px;
    height: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 8px 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--ink-soft);
}

.language-control:hover {
    border-color: var(--divider);
    background: rgba(255, 254, 249, 0.72);
}

.language-control svg {
    width: 18px;
    height: 18px;
}

.language-control select {
    min-height: 40px;
    padding: 0 23px 0 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 700;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 680;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

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

.button:not(:disabled):active {
    transform: translateY(1px) scale(0.99);
}

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

.button--primary:hover:not(:disabled) {
    background: #21314a;
}

.button--primary[data-state="saving"]::before,
.button--secondary[data-state="saving"]::before {
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    animation: spin 650ms linear infinite;
}

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

.button--secondary:hover:not(:disabled) {
    border-color: var(--ink);
    background: white;
}

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

.button--quiet:hover:not(:disabled) {
    background: rgba(16, 24, 39, 0.06);
    color: var(--ink);
}

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

.button--danger:hover:not(:disabled) {
    background: #8e2b28;
}

.button--wide {
    width: 100%;
}

.eyebrow {
    margin: 0 0 9px;
    color: var(--teal-ink);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.035em;
}

.eyebrow--light {
    color: #9be0d8;
}

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

h1,
h2,
h3 {
    color: var(--ink);
    font-family: "YouShouldAsk", "Inter", sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.auth-view {
    width: min(1160px, calc(100% - 48px));
    min-height: calc(100vh - var(--header-height) - 92px);
    margin: 0 auto;
    padding: 38px 0 76px;
}

.auth-composition {
    display: grid;
    min-height: 650px;
    grid-template-columns: minmax(340px, 5fr) minmax(430px, 7fr);
    overflow: hidden;
    border-radius: var(--radius-folio);
    background: var(--paper);
    box-shadow: var(--shadow-folio);
    animation: folio-enter 540ms var(--ease-out) both;
}

.identity-cover {
    position: relative;
    display: flex;
    min-height: 650px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 48px;
    background:
        radial-gradient(circle at 14% 18%, rgba(25, 182, 168, 0.24), transparent 34%),
        radial-gradient(circle at 86% 92%, rgba(241, 183, 138, 0.13), transparent 29%),
        var(--navy);
    color: white;
}

.identity-cover::after {
    position: absolute;
    inset: 0 0 0 auto;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    content: "";
}

.cover-seal {
    position: absolute;
    top: 50px;
    left: 48px;
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: saturate(0) brightness(0) invert(1);
    opacity: 0.92;
}

.cover-wordmark {
    position: relative;
    z-index: 2;
    max-width: 9ch;
    font-family: "YouShouldAsk", sans-serif;
    font-size: clamp(2.55rem, 5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.cover-label {
    position: relative;
    z-index: 2;
    max-width: 25ch;
    margin: 24px 0 42px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.98rem;
}

.cover-lines {
    position: relative;
    z-index: 2;
    display: grid;
    width: 100%;
    gap: 7px;
}

.cover-lines span {
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.cover-lines span:nth-child(2) {
    width: 78%;
}

.cover-lines span:nth-child(3) {
    width: 46%;
}

.cover-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 50%;
}

.cover-orbit--one {
    top: -30%;
    right: -70%;
    width: 150%;
    aspect-ratio: 1;
}

.cover-orbit--two {
    top: -8%;
    right: -55%;
    width: 108%;
    aspect-ratio: 1;
}

.auth-copy {
    position: relative;
    display: grid;
    align-items: center;
    padding: 64px clamp(42px, 7vw, 86px);
    background: var(--paper);
}

.auth-copy::before {
    position: absolute;
    inset: 32px auto 32px 0;
    width: 1px;
    background: var(--divider);
    content: "";
}

.auth-copy__inner {
    width: min(100%, 570px);
}

.auth-copy h1 {
    max-width: 12ch;
    margin-bottom: 22px;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    line-height: 1.04;
}

.lead {
    max-width: 52ch;
    margin-bottom: 38px;
    color: var(--ink-soft);
    font-size: 1.08rem;
    line-height: 1.65;
}

.email-form > label {
    display: block;
    margin-bottom: 9px;
    font-size: 0.86rem;
    font-weight: 700;
}

.auth-link-error {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    margin: 0 0 24px;
    padding: 17px 18px;
    border-left: 3px solid var(--danger);
    border-radius: 0 12px 12px 0;
    background: var(--danger-soft);
}

.auth-link-error > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--danger);
    color: white;
}

.auth-link-error svg {
    width: 16px;
    height: 16px;
}

.auth-link-error h2 {
    margin: 0 0 3px;
    font-family: "Inter", sans-serif;
    font-size: 0.91rem;
    font-weight: 750;
    letter-spacing: 0;
}

.auth-link-error p {
    margin: 0;
    color: #772b28;
    font-size: 0.82rem;
}

.email-field {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.email-field > svg {
    position: absolute;
    top: 17px;
    left: 15px;
    width: 20px;
    height: 20px;
    color: var(--ink-faint);
}

.email-field input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--divider-strong);
    border-radius: var(--radius-control);
    background: white;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.email-field input:hover {
    border-color: #9aa09b;
}

.email-field input:focus {
    border-color: var(--teal-ink);
    box-shadow: 0 0 0 4px rgba(25, 182, 168, 0.12);
    outline: 0;
}

.email-field .button {
    min-height: 54px;
    padding-inline: 22px;
}

.field-hint,
.form-field small {
    margin: 9px 0 0;
    color: var(--ink-faint);
    font-size: 0.8rem;
}

.field-error,
.sheet__error {
    min-height: 1.3em;
    margin: 7px 0 0;
    color: var(--danger);
    font-size: 0.84rem;
    font-weight: 600;
}

.auth-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--divider);
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.auth-trust > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-trust svg {
    width: 17px;
    height: 17px;
    color: var(--teal-ink);
}

.mail-sent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 24px;
    border-left: 3px solid var(--teal);
    border-radius: 0 14px 14px 0;
    background: var(--teal-soft);
}

.mail-sent__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--teal-ink);
    color: white;
}

.mail-sent__icon svg {
    width: 20px;
    height: 20px;
}

.mail-sent h2 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.mail-sent p {
    margin-bottom: 8px;
    color: var(--ink-soft);
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--teal-ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(11, 111, 104, 0.32);
    text-underline-offset: 4px;
}

.text-button:hover {
    color: var(--ink);
}

.text-button svg {
    width: 17px;
    height: 17px;
}

.text-button--arrow {
    justify-content: space-between;
    width: 100%;
    margin-top: 8px;
    text-decoration: none;
}

.loading-view {
    display: grid;
    min-height: calc(100vh - var(--header-height) - 100px);
    place-content: center;
    justify-items: center;
    padding: 40px 24px;
    text-align: center;
}

.loading-view h1 {
    margin: 26px 0 8px;
    font-size: 1.6rem;
}

.loading-view p {
    color: var(--ink-soft);
}

.loading-folio {
    position: relative;
    width: 112px;
    height: 80px;
}

.loading-folio span {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: var(--paper);
    box-shadow: 0 8px 26px rgba(16, 24, 39, 0.08);
    animation: loading-pages 1.45s var(--ease-out) infinite;
}

.loading-folio span:nth-child(2) {
    animation-delay: 120ms;
    transform: translate(5px, -5px);
}

.loading-folio span:nth-child(3) {
    animation-delay: 240ms;
    transform: translate(10px, -10px);
    background: var(--navy);
}

.preview-banner {
    width: min(1160px, calc(100% - 48px));
    margin: 8px auto 20px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff3dc;
    color: #795319;
    font-size: 0.85rem;
    font-weight: 650;
    text-align: center;
}

.profile-shell {
    width: min(1160px, calc(100% - 48px));
    margin: 18px auto 96px;
}

.opening-spread {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
    overflow: hidden;
    border-radius: var(--radius-folio);
    background: var(--paper);
    box-shadow: var(--shadow-folio);
    animation: folio-enter 540ms var(--ease-out) both;
}

.opening-spread::after {
    position: absolute;
    top: 32px;
    bottom: 32px;
    left: calc(58.333% - 1px);
    width: 1px;
    background: linear-gradient(transparent, var(--divider) 10%, var(--divider) 90%, transparent);
    content: "";
}

.profile-cover {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    padding: 38px 42px 42px;
    background:
        radial-gradient(circle at 12% 15%, rgba(25, 182, 168, 0.25), transparent 31%),
        radial-gradient(circle at 88% 92%, rgba(241, 183, 138, 0.12), transparent 31%),
        var(--navy);
    color: white;
}

.profile-cover::before,
.profile-cover::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 50%;
    content: "";
}

.profile-cover::before {
    top: -47%;
    right: -26%;
    width: 520px;
    height: 520px;
}

.profile-cover::after {
    top: -21%;
    right: -10%;
    width: 350px;
    height: 350px;
}

.profile-cover__topline {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: rgba(255, 255, 255, 0.57);
    font-size: 0.78rem;
    font-weight: 650;
}

.profile-code {
    letter-spacing: 0.085em;
}

.profile-cover__identity {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    margin-top: 70px;
}

.profile-seal {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.profile-seal img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: saturate(0) brightness(0) invert(1);
}

.profile-cover h1 {
    margin: 0;
    color: white;
    font-size: clamp(2.45rem, 4.6vw, 3.8rem);
    line-height: 1.02;
}

.profile-cover blockquote {
    position: relative;
    z-index: 2;
    max-width: 52ch;
    margin: 36px 0 24px 98px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.66;
}

.cover-action {
    position: relative;
    z-index: 2;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    margin-left: 98px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: white;
    font-size: 0.88rem;
    font-weight: 650;
}

.cover-action:hover {
    border-color: white;
}

.cover-action svg {
    width: 17px;
    height: 17px;
}

.cover-signature {
    position: absolute;
    right: 42px;
    bottom: 42px;
    display: grid;
    width: 80px;
    gap: 7px;
}

.cover-signature span {
    height: 1px;
    background: rgba(241, 183, 138, 0.52);
}

.cover-signature span:last-child {
    width: 60%;
}

.recognition-page {
    display: flex;
    min-height: 510px;
    flex-direction: column;
    padding: 46px 42px 42px;
    background: var(--paper);
}

.recognition-page__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 34px;
}

.section-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: var(--teal-soft);
    color: var(--teal-ink);
}

.section-icon svg {
    width: 20px;
    height: 20px;
}

.section-icon--lavender {
    background: var(--lavender);
    color: var(--lavender-ink);
}

.section-icon--sky {
    background: var(--sky);
    color: var(--sky-ink);
}

.status-label {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--success);
    font-size: 0.76rem;
    font-weight: 750;
}

.status-label::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.status-label--off {
    background: #eceeed;
    color: var(--ink-soft);
}

.status-label--loading {
    background: #eceeed;
    color: var(--ink-faint);
}

.status-label--loading::before {
    animation: pulse 1s ease-in-out infinite alternate;
}

.recognition-page h2 {
    max-width: 12ch;
    margin-bottom: 16px;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.12;
}

.recognition-page > p {
    max-width: 38ch;
    margin-bottom: 34px;
    color: var(--ink-soft);
    line-height: 1.62;
}

.recognition-switch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 20px 0;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}

.recognition-switch strong,
.recognition-switch small {
    display: block;
}

.recognition-switch strong {
    margin-bottom: 2px;
    font-size: 0.94rem;
}

.recognition-switch small {
    color: var(--ink-faint);
    font-size: 0.78rem;
}

.recognition-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.switch-track {
    display: flex;
    width: 52px;
    height: 30px;
    align-items: center;
    padding: 3px;
    border-radius: 999px;
    background: #cbd0ce;
    transition: background-color 180ms ease;
}

.switch-track span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 5px rgba(16, 24, 39, 0.18);
    transition: transform 180ms var(--ease-out);
}

.recognition-switch input:focus-visible + .switch-track {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.recognition-switch input:checked + .switch-track {
    background: var(--teal-ink);
}

.recognition-switch input:checked + .switch-track span {
    transform: translateX(22px);
}

.plain-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    margin-top: auto;
    padding-top: 28px;
    color: var(--ink-faint);
}

.plain-note svg {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    color: var(--teal-ink);
}

.plain-note p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
    gap: 74px;
    margin-top: 74px;
}

.document-section + .document-section {
    margin-top: 78px;
}

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

.section-heading h2 {
    margin-bottom: 9px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.section-heading p:last-child {
    max-width: 57ch;
    margin-bottom: 0;
    color: var(--ink-soft);
}

.suggestions {
    margin: 0 0 26px;
    padding: 22px 24px 4px;
    border-left: 3px solid #ac9bd5;
    border-radius: 0 var(--radius-surface) var(--radius-surface) 0;
    background: var(--lavender);
}

.suggestions__heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.suggestions__heading h3 {
    margin: 1px 0 3px;
    font-size: 1.05rem;
}

.suggestions__heading p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.suggestion-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-left: 57px;
    padding: 15px 0;
    border-top: 1px solid rgba(102, 82, 155, 0.18);
}

.suggestion-row__copy span,
.suggestion-row__copy strong {
    display: block;
}

.suggestion-row__copy span {
    margin-bottom: 2px;
    color: var(--lavender-ink);
    font-size: 0.72rem;
    font-weight: 720;
}

.suggestion-row__copy strong {
    font-size: 0.91rem;
}

.suggestion-row__actions {
    display: flex;
    gap: 4px;
}

.compact-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 11px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.63);
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 700;
}

.compact-action:hover {
    background: white;
    color: var(--ink);
}

.facts-document {
    border-top: 1px solid var(--divider-strong);
}

.fact-group {
    border-bottom: 1px solid var(--divider-strong);
}

.fact-group__heading {
    display: grid;
    grid-template-columns: 150px 1fr;
    padding: 17px 0 8px;
}

.fact-group__heading h3 {
    margin: 0;
    color: var(--teal-ink);
    font-family: "Inter", sans-serif;
    font-size: 0.74rem;
    font-weight: 760;
    letter-spacing: 0.035em;
}

.fact-row {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: start;
    gap: 20px;
    min-height: 86px;
    padding: 20px 0;
    border-top: 1px solid var(--divider);
}

.fact-row__label {
    padding-top: 2px;
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 620;
}

.fact-row__value {
    min-width: 0;
}

.fact-row__value strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 0.98rem;
    font-weight: 620;
}

.fact-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 7px;
    color: var(--ink-faint);
    font-size: 0.72rem;
}

.fact-row__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fact-row__meta svg {
    width: 14px;
    height: 14px;
}

.fact-row__button,
.shop-row__action {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
}

.fact-row__button:hover,
.shop-row__action:hover {
    background: rgba(16, 24, 39, 0.06);
    color: var(--ink);
}

.fact-row__button svg,
.shop-row__action svg {
    width: 18px;
    height: 18px;
}

.empty-state {
    display: grid;
    min-height: 250px;
    justify-items: center;
    place-content: center;
    padding: 42px 24px;
    border-top: 1px solid var(--divider-strong);
    border-bottom: 1px solid var(--divider-strong);
    text-align: center;
}

.empty-state--compact {
    min-height: 205px;
}

.empty-state__mark {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--teal-soft);
    color: var(--teal-ink);
}

.empty-state__mark svg {
    width: 23px;
    height: 23px;
}

.empty-state h3 {
    margin-bottom: 7px;
    font-size: 1.2rem;
}

.empty-state p {
    max-width: 43ch;
    margin-bottom: 20px;
    color: var(--ink-soft);
}

.shop-ledger {
    border-top: 1px solid var(--divider-strong);
}

.shop-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(160px, auto) auto;
    align-items: center;
    gap: 18px;
    min-height: 94px;
    padding: 18px 0;
    border-bottom: 1px solid var(--divider);
}

.shop-row__mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    background: var(--sky);
    color: var(--sky-ink);
    font-size: 0.76rem;
    font-weight: 780;
}

.shop-row__identity strong,
.shop-row__identity span {
    display: block;
}

.shop-row__identity strong {
    margin-bottom: 3px;
    font-size: 0.96rem;
}

.shop-row__identity span,
.shop-row__details {
    color: var(--ink-faint);
    font-size: 0.76rem;
}

.shop-row__details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.shop-row__details .active {
    color: var(--success);
    font-weight: 720;
}

.shop-row__details .revoked {
    color: var(--ink-faint);
    font-weight: 680;
}

.control-rail {
    align-self: start;
}

.control-section {
    padding: 0 0 30px;
    border-bottom: 1px solid var(--divider-strong);
}

.control-section + .control-section {
    padding-top: 30px;
}

.control-section__heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.control-section__heading h2,
.danger-section h2 {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 730;
    letter-spacing: -0.01em;
}

.activity-list {
    position: relative;
}

.activity-list::before {
    position: absolute;
    top: 8px;
    bottom: 18px;
    left: 5px;
    width: 1px;
    background: var(--divider-strong);
    content: "";
}

.activity-row {
    position: relative;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 13px;
    padding-bottom: 19px;
}

.activity-row__dot {
    z-index: 1;
    width: 11px;
    height: 11px;
    margin-top: 5px;
    border: 3px solid var(--canvas);
    border-radius: 50%;
    background: var(--teal-ink);
    box-shadow: 0 0 0 1px var(--teal-ink);
}

.activity-row p {
    margin: 0 0 2px;
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.5;
}

.activity-row time {
    color: var(--ink-faint);
    font-size: 0.7rem;
}

.activity-empty {
    color: var(--ink-faint);
    font-size: 0.82rem;
}

.data-section > p {
    margin-bottom: 18px;
    color: var(--ink-soft);
    font-size: 0.84rem;
    line-height: 1.55;
}

.danger-section {
    display: grid;
    justify-items: start;
    gap: 4px;
    border-bottom: 0;
}

.danger-section h2 {
    margin-bottom: 12px;
}

.danger-link {
    min-height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--danger);
    font-size: 0.84rem;
    font-weight: 660;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: rgba(169, 56, 52, 0.3);
    text-underline-offset: 4px;
}

.danger-link:hover {
    color: #7e2421;
    text-decoration-color: currentColor;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
    padding: 30px 0 max(30px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--divider);
    color: var(--ink-faint);
    font-size: 0.76rem;
}

.site-footer p {
    margin: 0;
}

.site-footer nav {
    display: flex;
    gap: 22px;
}

.site-footer a {
    text-underline-offset: 3px;
}

.scrim {
    position: fixed;
    z-index: 80;
    inset: 0;
    background: rgba(10, 16, 27, 0.46);
    opacity: 0;
    transition: opacity 220ms ease;
}

.scrim.is-visible {
    opacity: 1;
}

.sheet {
    position: fixed;
    z-index: 90;
    top: 0;
    right: 0;
    display: flex;
    width: min(520px, 100%);
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    background: var(--paper);
    box-shadow: var(--shadow-dialog);
    transform: translateX(103%);
    transition: transform 300ms var(--ease-out);
}

.sheet.is-open {
    transform: translateX(0);
}

.sheet__handle {
    display: none;
}

.sheet__header,
.dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.sheet__header {
    padding: max(34px, env(safe-area-inset-top)) 34px 25px;
    border-bottom: 1px solid var(--divider);
}

.sheet__header h2,
.dialog__header h2 {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.15;
}

.icon-button {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
}

.icon-button:hover {
    background: rgba(16, 24, 39, 0.06);
    color: var(--ink);
}

.icon-button svg {
    width: 21px;
    height: 21px;
}

.sheet__body {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 28px 34px max(34px, env(safe-area-inset-bottom));
}

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

fieldset legend {
    margin-bottom: 5px;
    font-family: "YouShouldAsk", sans-serif;
    font-size: 1.13rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.choice-group > p {
    margin-bottom: 19px;
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.choice-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 76px;
    padding: 15px 0;
    border-top: 1px solid var(--divider);
    cursor: pointer;
}

.choice-row:last-child {
    border-bottom: 1px solid var(--divider);
}

.choice-row.is-disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.choice-row input {
    position: absolute;
    opacity: 0;
}

.choice-row strong,
.choice-row small {
    display: block;
}

.choice-row strong {
    margin-bottom: 2px;
    font-size: 0.91rem;
}

.choice-row small {
    color: var(--ink-faint);
    font-size: 0.75rem;
}

.choice-check {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid var(--divider-strong);
    border-radius: 7px;
    color: transparent;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.choice-check svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.4;
}

.choice-row input:checked ~ .choice-check {
    border-color: var(--teal-ink);
    background: var(--teal-ink);
    color: white;
}

.choice-row input:focus-visible ~ .choice-check {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.duration-group {
    margin-top: 30px;
}

.duration-group legend {
    margin-bottom: 13px;
}

.duration-group > label {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    margin: 0 7px 7px 0;
    padding: 0 13px;
    border: 1px solid var(--divider-strong);
    border-radius: 999px;
    background: white;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 650;
}

.duration-group > label:has(input:checked) {
    border-color: var(--teal-ink);
    background: var(--teal-soft);
    color: var(--teal-ink);
}

.duration-group input {
    width: 15px;
    height: 15px;
    accent-color: var(--teal-ink);
}

.sheet__actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: auto;
    padding-top: 28px;
}

.dialog {
    width: min(560px, calc(100% - 32px));
    max-height: min(760px, calc(100dvh - 32px));
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: var(--ink);
}

.dialog::backdrop {
    background: rgba(10, 16, 27, 0.46);
    backdrop-filter: blur(2px);
}

.dialog[open] {
    animation: dialog-in 240ms var(--ease-out) both;
}

.dialog__surface {
    max-height: inherit;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 30px;
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow-dialog);
}

.dialog__header {
    margin-bottom: 27px;
}

.form-field {
    display: block;
    margin-bottom: 20px;
}

.form-field > span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid var(--divider-strong);
    border-radius: 11px;
    background: white;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--teal-ink);
    box-shadow: 0 0 0 4px rgba(25, 182, 168, 0.12);
    outline: 0;
}

.dialog__actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 27px;
}

.fact-delete {
    margin-left: auto;
}

.confirm-dialog {
    width: min(470px, calc(100% - 32px));
    text-align: center;
}

.confirm-dialog .dialog__surface {
    padding: 38px;
}

.confirm-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--danger-soft);
    color: var(--danger);
}

.confirm-mark svg {
    width: 23px;
    height: 23px;
}

.confirm-dialog h2 {
    margin-bottom: 11px;
    font-size: 1.55rem;
}

.confirm-dialog p {
    color: var(--ink-soft);
}

.confirm-dialog .dialog__actions {
    justify-content: center;
}

.activity-dialog {
    width: min(620px, calc(100% - 32px));
}

.activity-list--full {
    max-height: 55vh;
    overflow-y: auto;
    padding: 4px 8px 0 2px;
}

.activity-list--full .activity-row {
    padding-bottom: 24px;
}

.global-status {
    position: fixed;
    z-index: 120;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    max-width: min(380px, calc(100% - 32px));
    padding: 13px 17px;
    border-radius: 12px;
    background: var(--ink);
    color: white;
    box-shadow: 0 12px 32px rgba(16, 24, 39, 0.22);
    font-size: 0.84rem;
    font-weight: 620;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms var(--ease-out);
}

.global-status.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.global-status.is-error {
    background: var(--danger);
}

@keyframes folio-enter {
    from {
        opacity: 0;
        clip-path: inset(0 48% 0 48% round var(--radius-folio));
        transform: translateY(12px) scale(0.985);
        box-shadow: 0 5px 20px rgba(16, 24, 39, 0.04);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0 round var(--radius-folio));
        transform: translateY(0) scale(1);
        box-shadow: var(--shadow-folio);
    }
}

@keyframes dialog-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    from { opacity: 0.35; }
    to { opacity: 1; }
}

@keyframes loading-pages {
    0%, 100% { opacity: 0.55; transform: translate(0, 0); }
    50% { opacity: 1; transform: translate(7px, -7px); }
}

@media (max-width: 960px) {
    .auth-composition {
        grid-template-columns: minmax(280px, 5fr) minmax(380px, 7fr);
    }

    .identity-cover {
        padding: 36px;
    }

    .cover-seal {
        top: 38px;
        left: 36px;
    }

    .auth-copy {
        padding: 50px 40px;
    }

    .profile-layout {
        gap: 46px;
    }

    .profile-cover {
        padding: 34px;
    }

    .profile-cover blockquote,
    .cover-action {
        margin-left: 0;
    }

    .recognition-page {
        padding: 40px 32px 34px;
    }

    .fact-group__heading,
    .fact-row {
        grid-template-columns: 118px minmax(0, 1fr) auto;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 70px;
        --radius-folio: 20px;
    }

    body {
        background: var(--canvas);
    }

    .site-header,
    .auth-view,
    .profile-shell,
    .preview-banner,
    .site-footer {
        width: min(100% - 32px, 620px);
    }

    .site-header {
        min-height: var(--header-height);
        padding-top: max(5px, env(safe-area-inset-top));
    }

    .brand img {
        width: 127px;
    }

    .header-logout {
        width: 44px;
        overflow: hidden;
        padding: 0;
    }

    .header-logout span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .auth-view {
        min-height: auto;
        padding: 18px 0 54px;
    }

    .auth-composition {
        display: block;
        min-height: auto;
        overflow: visible;
        background: transparent;
        box-shadow: none;
        animation: none;
    }

    .identity-cover {
        min-height: 262px;
        justify-content: flex-end;
        padding: 26px;
        border-radius: var(--radius-folio) var(--radius-folio) 0 0;
        box-shadow: var(--shadow-folio);
    }

    .identity-cover::after {
        display: none;
    }

    .cover-seal {
        top: 24px;
        left: 26px;
        width: 56px;
        height: 56px;
    }

    .cover-wordmark {
        max-width: none;
        font-size: 2.6rem;
        line-height: 1;
    }

    .cover-label {
        margin: 12px 0 19px;
        font-size: 0.83rem;
    }

    .auth-copy {
        z-index: 2;
        display: block;
        margin-top: -1px;
        padding: 34px 24px 30px;
        border-radius: 0 0 var(--radius-folio) var(--radius-folio);
        background: var(--paper);
        box-shadow: 0 20px 38px rgba(16, 24, 39, 0.08);
    }

    .auth-copy::before {
        display: none;
    }

    .auth-copy h1 {
        max-width: 13ch;
        font-size: clamp(2.15rem, 10vw, 2.8rem);
    }

    .lead {
        margin-bottom: 28px;
        font-size: 1rem;
    }

    .email-field {
        grid-template-columns: 1fr;
    }

    .email-field .button {
        width: 100%;
    }

    .auth-trust {
        display: grid;
        gap: 10px;
        margin-top: 24px;
    }

    .mail-sent {
        grid-template-columns: 1fr;
    }

    .preview-banner {
        margin: 6px auto 12px;
    }

    .profile-shell {
        margin-top: 10px;
        margin-bottom: 64px;
    }

    .opening-spread {
        display: block;
        overflow: visible;
        background: transparent;
        box-shadow: none;
        animation: none;
    }

    .opening-spread::after {
        display: none;
    }

    .profile-cover {
        min-height: 410px;
        padding: 28px 24px 30px;
        border-radius: var(--radius-folio) var(--radius-folio) 0 0;
        box-shadow: var(--shadow-folio);
    }

    .profile-cover__identity {
        gap: 14px;
        margin-top: 49px;
    }

    .profile-seal {
        width: 60px;
        height: 60px;
    }

    .profile-seal img {
        width: 43px;
        height: 43px;
    }

    .profile-cover h1 {
        font-size: clamp(2.15rem, 11vw, 3rem);
    }

    .profile-cover blockquote {
        margin: 27px 0 18px;
        font-size: 0.96rem;
    }

    .cover-action {
        margin-left: 0;
    }

    .cover-signature {
        right: 24px;
        bottom: 30px;
        width: 60px;
    }

    .recognition-page {
        min-height: 0;
        padding: 30px 24px 26px;
        border-radius: 0 0 var(--radius-folio) var(--radius-folio);
        box-shadow: 0 18px 36px rgba(16, 24, 39, 0.075);
    }

    .recognition-page__heading {
        margin-bottom: 24px;
    }

    .recognition-page h2 {
        max-width: 15ch;
        font-size: 1.8rem;
    }

    .recognition-page > p {
        margin-bottom: 24px;
    }

    .plain-note {
        margin-top: 0;
        padding-top: 22px;
    }

    .profile-layout {
        display: flex;
        flex-direction: column;
        gap: 68px;
        margin-top: 58px;
    }

    .section-heading {
        align-items: flex-start;
        margin-bottom: 25px;
    }

    .section-heading .button {
        width: 44px;
        flex: 0 0 auto;
        overflow: hidden;
        padding: 0;
        font-size: 0;
    }

    .section-heading .button > span:first-child {
        font-size: 1.45rem;
        font-weight: 450;
    }

    .suggestions {
        padding: 20px 18px 2px;
    }

    .suggestion-row {
        display: block;
        margin-left: 0;
        padding: 16px 0;
    }

    .suggestion-row__actions {
        margin-top: 11px;
    }

    .fact-group__heading {
        display: block;
        padding-top: 20px;
    }

    .fact-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 18px 0;
    }

    .fact-row__label {
        grid-column: 1;
        padding: 0;
    }

    .fact-row__value {
        grid-column: 1;
    }

    .fact-row__button {
        grid-row: 1 / span 2;
        grid-column: 2;
    }

    .shop-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 13px;
    }

    .shop-row__details {
        grid-column: 2;
        align-items: flex-start;
        text-align: left;
    }

    .shop-row__action {
        grid-row: 1 / span 2;
        grid-column: 3;
    }

    .control-rail {
        display: grid;
        gap: 0;
    }

    .site-footer {
        display: grid;
        justify-content: center;
        gap: 12px;
        text-align: center;
    }

    .site-footer nav {
        justify-content: center;
    }

    .sheet {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: min(88dvh, 760px);
        border-radius: 22px 22px 0 0;
        transform: translateY(103%);
    }

    .sheet.is-open {
        transform: translateY(0);
    }

    .sheet__handle {
        display: block;
        width: 42px;
        height: 5px;
        flex: 0 0 auto;
        margin: 9px auto 0;
        border-radius: 999px;
        background: var(--divider-strong);
    }

    .sheet__header {
        padding: 15px 20px 18px;
    }

    .sheet__body {
        padding: 22px 20px max(22px, env(safe-area-inset-bottom));
    }

    .sheet__actions {
        position: sticky;
        bottom: 0;
        grid-template-columns: 1fr;
        padding-top: 17px;
        background: var(--paper);
    }

    .dialog {
        width: 100%;
        max-width: none;
        max-height: 90dvh;
        margin: auto 0 0;
        border-radius: 22px 22px 0 0;
    }

    .dialog[open] {
        animation-name: sheet-in;
    }

    .dialog__surface {
        padding: 25px 20px max(25px, env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
    }

    .dialog__actions {
        flex-wrap: wrap;
    }

    .dialog__actions .button:not(.button--quiet) {
        flex: 1 1 auto;
    }

    .fact-delete {
        width: 100%;
        margin: 8px 0 0;
        text-align: center;
    }

    .global-status {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        left: 16px;
        max-width: none;
    }
}

@media (max-width: 390px) {
    .site-header,
    .auth-view,
    .profile-shell,
    .preview-banner,
    .site-footer {
        width: calc(100% - 24px);
    }

    .language-control {
        padding-left: 8px;
    }

    .language-control svg {
        display: none;
    }

    .identity-cover,
    .profile-cover {
        padding-inline: 20px;
    }

    .auth-copy,
    .recognition-page {
        padding-inline: 20px;
    }

    .profile-cover__topline {
        font-size: 0.71rem;
    }

    .profile-code {
        letter-spacing: 0.04em;
    }

    .profile-cover__identity {
        grid-template-columns: 1fr;
        margin-top: 39px;
    }

    .profile-seal {
        width: 52px;
        height: 52px;
    }

    .cover-signature {
        display: none;
    }

    .recognition-switch {
        gap: 12px;
    }

    .section-heading h2 {
        font-size: 1.68rem;
    }

    .duration-group > label {
        width: 100%;
        margin-right: 0;
    }
}

@keyframes sheet-in {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    .identity-cover,
    .profile-cover,
    .button--primary,
    .button--danger,
    .global-status {
        border: 1px solid CanvasText;
        background: Canvas;
        color: CanvasText;
    }

    .profile-cover h1,
    .eyebrow--light,
    .cover-action,
    .profile-cover blockquote,
    .identity-cover {
        color: CanvasText;
    }

    .switch-track,
    .choice-check,
    .status-label,
    .section-icon {
        border: 1px solid CanvasText;
    }

    .recognition-switch input:checked + .switch-track span {
        background: Highlight;
    }
}

@media print {
    .site-header,
    .site-footer,
    .header-actions,
    button,
    .recognition-page,
    .control-rail,
    .suggestions,
    .preview-banner {
        display: none !important;
    }

    body {
        background: white;
    }

    .profile-shell {
        width: 100%;
        margin: 0;
    }

    .opening-spread,
    .profile-layout {
        display: block;
        box-shadow: none;
    }

    .profile-cover {
        min-height: 0;
        border: 1px solid #555;
        background: white;
        color: black;
    }

    .profile-cover h1,
    .profile-cover blockquote,
    .eyebrow--light {
        color: black;
    }
}
