:root {
    color-scheme: light;
    --auth-bg: #0e0e0d;
    --auth-card: #f7f6f2;
    --auth-ink: #151512;
    --auth-muted: #74736d;
    --auth-line: #d9d7d0;
    --auth-error: #a2352a;
    --auth-error-bg: #f4e8e5;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--auth-bg);
}

body.auth-page {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: clamp(14px, 2vw, 32px);
    background: var(--auth-bg);
    color: var(--auth-ink);
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

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

.auth-shell {
    display: grid;
    grid-template-columns: minmax(440px, .85fr) minmax(0, 1.15fr);
    gap: clamp(14px, 1.45vw, 24px);
    width: min(1480px, 100%);
    min-height: max(680px, calc(100dvh - clamp(28px, 4vw, 64px)));
    margin: 0 auto;
}

.auth-card,
.auth-visual {
    border-radius: clamp(20px, 2vw, 30px);
}

.auth-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 3.4vw, 52px);
    overflow: hidden;
    background: var(--auth-card);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    color: var(--auth-ink);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.035em;
    text-decoration: none;
}

.auth-brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--auth-ink);
    color: white;
}

.auth-brand-mark svg {
    width: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.auth-content {
    width: min(100%, 430px);
    margin: auto;
    padding: 54px 0 46px;
}

.auth-header {
    margin-bottom: 34px;
}

.auth-kicker {
    margin: 0 0 11px;
    color: var(--auth-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auth-header h1 {
    max-width: 410px;
    margin: 0 0 13px;
    color: var(--auth-ink);
    font-size: clamp(35px, 3.4vw, 52px);
    font-weight: 600;
    letter-spacing: -.055em;
    line-height: .98;
}

.auth-header > p:last-child {
    max-width: 380px;
    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.55;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: -8px 0 22px;
    padding: 12px 14px;
    border: 1px solid #e3c2bc;
    border-radius: 11px;
    background: var(--auth-error-bg);
    color: var(--auth-error);
    font-size: 12px;
    line-height: 1.45;
}

.auth-alert svg {
    flex: 0 0 auto;
    width: 18px;
    margin-top: 1px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.auth-alert strong,
.auth-alert span {
    display: block;
}

.auth-alert strong {
    margin-bottom: 1px;
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: 19px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    font-size: 12px;
    font-weight: 600;
}

.auth-field input:not([type="checkbox"]) {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid var(--auth-line);
    border-radius: 11px;
    outline: none;
    background: rgba(255, 255, 255, .64);
    color: var(--auth-ink);
    font-size: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-field input::placeholder {
    color: #a19f98;
}

.auth-field input:hover {
    border-color: #bbb8af;
}

.auth-field input:focus {
    border-color: var(--auth-ink);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21, 21, 18, .08);
}

.auth-field input.is-invalid {
    border-color: var(--auth-error);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 52px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    transform: translateY(-50%);
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 8px;
    outline: none;
    background: transparent;
    color: #73716a;
    cursor: pointer;
}

.password-toggle:hover {
    background: #eceae4;
    color: var(--auth-ink);
}

.password-toggle:focus-visible {
    box-shadow: 0 0 0 2px var(--auth-ink);
}

.password-toggle svg {
    grid-area: 1 / 1;
    width: 19px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
    opacity: 0;
}

.password-toggle[aria-pressed="true"] .eye-closed {
    opacity: 1;
}

.field-help,
.field-error {
    font-size: 11px;
    line-height: 1.35;
}

.field-help {
    color: var(--auth-muted);
}

.field-error {
    color: var(--auth-error);
}

.remember-option {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 9px;
    color: #575650;
    font-size: 12px;
    cursor: pointer;
}

.remember-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--auth-ink);
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    margin-top: 3px;
    padding: 0 18px 0 20px;
    border: 1px solid var(--auth-ink);
    border-radius: 11px;
    background: var(--auth-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.auth-submit span:last-child {
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transition: transform 160ms ease;
}

.auth-submit:hover {
    background: #292924;
    box-shadow: 0 10px 24px rgba(21, 21, 18, .15);
    transform: translateY(-1px);
}

.auth-submit:hover span:last-child {
    transform: translateX(3px);
}

.auth-submit:focus-visible {
    outline: 3px solid rgba(21, 21, 18, .22);
    outline-offset: 3px;
}

.auth-switch {
    margin: 25px 0 0;
    color: var(--auth-muted);
    font-size: 12px;
    text-align: center;
}

.auth-switch a {
    color: var(--auth-ink);
    font-weight: 700;
    text-underline-offset: 3px;
}

.visually-hidden {
    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;
}

.auth-visual {
    position: relative;
    min-width: 0;
    min-height: 580px;
    overflow: hidden;
    border: 1px solid rgba(255, 248, 235, .1);
    background: #1b1815;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .06),
        inset 0 0 0 1px rgba(0, 0, 0, .12);
    isolation: isolate;
}

.auth-visual::before {
    position: absolute;
    z-index: 8;
    inset: 10px;
    border: 1px solid rgba(255, 248, 235, .06);
    border-radius: clamp(14px, 1.5vw, 21px);
    pointer-events: none;
    content: "";
}

.retrieval-visual {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: clamp(12px, 1.4vw, 20px);
    height: 100%;
    min-height: inherit;
    padding: clamp(25px, 3vw, 46px);
    color: #fff8ed;
    overflow: hidden;
}

.retrieval-topbar,
.retrieval-status-bar,
.retrieval-query-shell {
    position: relative;
    z-index: 130;
}

.retrieval-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.retrieval-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.retrieval-brand-mark {
    display: grid;
    width: 37px;
    height: 37px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 248, 237, .16);
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
    color: #8fd1d0;
}

.retrieval-brand-mark svg {
    width: 19px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.45;
}

.retrieval-brand > span:last-child,
.retrieval-status-copy > span:last-child,
.retrieval-query-copy {
    display: grid;
}

.retrieval-brand strong {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -.015em;
}

.retrieval-brand small,
.retrieval-status-copy small {
    margin-top: 2px;
    color: rgba(235, 223, 211, .48);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.retrieval-index-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(242, 232, 221, .58);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.retrieval-index-state i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8fd1d0;
    box-shadow: 0 0 0 4px rgba(143, 209, 208, .1), 0 0 16px rgba(143, 209, 208, .7);
}

.retrieval-query-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 68px;
    padding: 11px 15px;
    border: 1px solid rgba(255, 248, 237, .13);
    border-radius: 15px;
    background: #28231f;
    box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 18px 45px rgba(0, 0, 0, .12);
}

.retrieval-query-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: #f4ecdf;
    color: #2b211b;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .18);
}

.retrieval-query-icon svg {
    width: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.75;
}

.retrieval-query-copy {
    min-width: 0;
    gap: 3px;
}

.retrieval-query-copy small {
    color: rgba(239, 226, 213, .48);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.retrieval-query-copy strong {
    overflow: hidden;
    color: #fff8ed;
    font-size: clamp(11px, 1.15vw, 14px);
    font-weight: 500;
    letter-spacing: -.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 180ms ease, transform 240ms ease;
}

.retrieval-visual.is-query-changing .retrieval-query-copy strong {
    opacity: 0;
    transform: translateY(5px);
}

.retrieval-query-action {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 4px;
}

.retrieval-query-action i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 248, 237, .35);
}

.retrieval-stage {
    --page-width: min(70%, 560px);
    --page-height: clamp(230px, 36vh, 342px);
    position: relative;
    min-height: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 248, 237, .075);
    border-bottom: 1px solid rgba(255, 248, 237, .075);
    background: #151311;
    perspective: 1300px;
    perspective-origin: 50% 48%;
}

.retrieval-stage-label {
    position: absolute;
    z-index: 125;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: rgba(238, 225, 212, .46);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 7px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.retrieval-stage-label--top {
    top: 13px;
}

.retrieval-stage-label--bottom {
    bottom: 12px;
    transition: color 300ms ease;
}

.retrieval-visual.is-found .retrieval-stage-label--bottom {
    color: #8fd1d0;
}

.retrieval-horizon {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    width: 68%;
    height: 1px;
    background: rgba(143, 209, 208, .16);
    transform: translate(-50%, -50%);
}

.retrieval-deck {
    position: absolute;
    z-index: 20;
    inset: 30px 0;
    transform-style: preserve-3d;
}

.retrieval-page {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: var(--page-width);
    height: var(--page-height);
    overflow: hidden;
    border: 1px solid rgba(73, 55, 43, .22);
    border-radius: 12px;
    background: #f4ecdf;
    color: #33271f;
    box-shadow:
        0 3px 0 rgba(255, 251, 244, .8) inset,
        0 2px 0 rgba(51, 39, 31, .17),
        0 18px 48px rgba(0, 0, 0, .3);
    backface-visibility: hidden;
    opacity: 0;
    transform: translate3d(-50%, -50%, -360px) scale(.84);
    transform-origin: center;
    will-change: transform, opacity, filter;
}

.retrieval-page::before {
    display: none;
}

.retrieval-page::after {
    position: absolute;
    z-index: 2;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #79aeb4;
    opacity: .6;
    content: "";
}

.retrieval-page:nth-child(1) {
    z-index: 100;
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) rotateX(0deg) scale(1);
}

.retrieval-page:nth-child(2) {
    z-index: 90;
    opacity: .76;
    transform: translate3d(-50%, calc(-50% + 125px), -110px) rotateX(-9deg) scale(.96);
}

.retrieval-page:nth-child(3) {
    z-index: 80;
    opacity: .45;
    transform: translate3d(-50%, calc(-50% + 250px), -220px) rotateX(-18deg) scale(.92);
}

.retrieval-page:nth-child(4) {
    z-index: 70;
    opacity: .14;
    transform: translate3d(-50%, calc(-50% + 375px), -330px) rotateX(-27deg) scale(.88);
}

.retrieval-page:nth-child(5) {
    z-index: 70;
    opacity: .14;
    transform: translate3d(-50%, calc(-50% - 375px), -330px) rotateX(27deg) scale(.88);
}

.retrieval-page:nth-child(6) {
    z-index: 80;
    opacity: .45;
    transform: translate3d(-50%, calc(-50% - 250px), -220px) rotateX(18deg) scale(.92);
}

.retrieval-page:nth-child(7) {
    z-index: 90;
    opacity: .76;
    transform: translate3d(-50%, calc(-50% - 125px), -110px) rotateX(9deg) scale(.96);
}

.retrieval-page-header,
.retrieval-page-body,
.retrieval-page-footer {
    position: relative;
    z-index: 3;
}

.retrieval-page-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 57px;
    padding: 9px 15px;
    border-bottom: 1px solid rgba(79, 59, 45, .12);
    background: rgba(255, 252, 246, .54);
}

.retrieval-file-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    background: #e3d8c8;
    color: #6e5140;
}

.retrieval-file-icon svg {
    width: 15px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.retrieval-page-header > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.retrieval-page-header strong {
    overflow: hidden;
    color: #3b2c23;
    font-size: clamp(8px, .75vw, 10px);
    font-weight: 700;
    letter-spacing: -.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.retrieval-page-header small,
.retrieval-page-footer {
    color: #8c7869;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 6px;
    letter-spacing: .04em;
}

.retrieval-page-header b {
    color: #a38f7e;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: .12em;
}

.retrieval-page-body {
    padding: clamp(15px, 2vw, 25px) clamp(20px, 2.7vw, 34px);
}

.retrieval-section-label {
    display: block;
    margin-bottom: 7px;
    color: #997e69;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 6px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.retrieval-page-body h2 {
    margin: 0 0 clamp(8px, 1.2vw, 13px);
    color: #2d211a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(17px, 1.9vw, 25px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1;
}

.retrieval-page-body p {
    max-width: 44em;
    margin: 0;
    color: #5b493d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(9px, .9vw, 11.5px);
    line-height: 1.65;
}

.retrieval-page-body mark {
    padding: .05em .12em;
    margin: 0 -.04em;
    border-radius: 2px;
    background-color: transparent;
    color: inherit;
    font-weight: 700;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.retrieval-visual.is-found .retrieval-page.is-match mark {
    background-color: #e6c969;
    box-shadow: .12em 0 0 #e6c969, -.12em 0 0 #e6c969;
    color: #34271e;
}

.retrieval-page-lines {
    display: grid;
    gap: 5px;
    margin-top: clamp(11px, 1.4vw, 17px);
}

.retrieval-page-lines i {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 99px;
    background: #d8ccbc;
}

.retrieval-page-lines i:nth-child(2) {
    width: 88%;
}

.retrieval-page-lines i:nth-child(3) {
    width: 58%;
}

.retrieval-page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 31px;
    padding: 7px 15px;
    border-top: 1px solid rgba(79, 59, 45, .11);
    text-transform: uppercase;
}

.retrieval-page-footer span:last-child {
    color: #668b87;
}

.retrieval-page.is-active {
    filter: saturate(1.02) brightness(1.02);
}

.retrieval-visual.is-found .retrieval-page.is-match {
    border-color: rgba(143, 209, 208, .78);
    box-shadow:
        0 0 0 1px rgba(143, 209, 208, .22),
        0 0 54px rgba(143, 209, 208, .16),
        0 24px 64px rgba(0, 0, 0, .36);
}

.retrieval-focus-frame {
    position: absolute;
    z-index: 110;
    top: 50%;
    left: 50%;
    width: calc(var(--page-width) + 18px);
    height: calc(var(--page-height) + 18px);
    opacity: .36;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.985);
    transition: opacity 350ms ease, transform 650ms cubic-bezier(.16, 1, .3, 1);
}

.retrieval-focus-frame i {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: #8fd1d0;
    border-style: solid;
    opacity: .7;
}

.retrieval-focus-frame i:nth-child(1) {
    top: 0;
    left: 0;
    border-width: 1px 0 0 1px;
    border-radius: 5px 0 0;
}

.retrieval-focus-frame i:nth-child(2) {
    top: 0;
    right: 0;
    border-width: 1px 1px 0 0;
    border-radius: 0 5px 0 0;
}

.retrieval-focus-frame i:nth-child(3) {
    right: 0;
    bottom: 0;
    border-width: 0 1px 1px 0;
    border-radius: 0 0 5px;
}

.retrieval-focus-frame i:nth-child(4) {
    bottom: 0;
    left: 0;
    border-width: 0 0 1px 1px;
    border-radius: 0 0 0 5px;
}

.retrieval-visual.is-found .retrieval-focus-frame {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.retrieval-status-bar {
    display: grid;
    grid-template-columns: auto minmax(60px, 1fr) auto;
    align-items: center;
    gap: clamp(13px, 2vw, 25px);
    min-height: 47px;
    padding-top: 2px;
}

.retrieval-status-copy {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.retrieval-status-icon {
    position: relative;
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 248, 237, .11);
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}

.retrieval-status-icon > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e5bd74;
    box-shadow: 0 0 0 0 rgba(229, 189, 116, .35);
    animation: retrieval-pulse 1.35s ease-out infinite;
}

.retrieval-status-icon svg {
    position: absolute;
    width: 14px;
    stroke: #8fd1d0;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    opacity: 0;
    transform: scale(.7);
    transition: opacity 240ms ease, transform 420ms cubic-bezier(.16, 1, .3, 1);
}

.retrieval-status-copy strong {
    overflow: hidden;
    color: rgba(255, 248, 237, .82);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.retrieval-progress {
    height: 1px;
    overflow: hidden;
    background: rgba(255, 248, 237, .12);
}

.retrieval-progress i {
    display: block;
    width: 42%;
    height: 100%;
    background: #8fd1d0;
    opacity: 0;
    transform: translateX(-110%);
}

.retrieval-visual.is-scrolling .retrieval-progress i {
    opacity: 1;
    animation: retrieval-progress 1.25s ease-in-out infinite;
}

.retrieval-mode {
    color: rgba(239, 226, 213, .42);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 7px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.retrieval-visual.is-found .retrieval-status-icon > i {
    opacity: 0;
    animation: none;
}

.retrieval-visual.is-found .retrieval-status-icon svg {
    opacity: 1;
    transform: scale(1);
}

.retrieval-visual.is-found .retrieval-status-copy strong {
    color: #bce0dc;
}

.retrieval-visual.is-paused *,
.retrieval-visual.is-paused *::before,
.retrieval-visual.is-paused *::after {
    animation-play-state: paused !important;
}

@keyframes retrieval-progress {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(340%);
    }
}

@keyframes retrieval-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 189, 116, .38);
    }
    75%, 100% {
        box-shadow: 0 0 0 7px rgba(229, 189, 116, 0);
    }
}

@media (max-width: 900px) {
    body.auth-page {
        padding: 14px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        width: min(640px, 100%);
        min-height: auto;
    }

    .auth-card {
        min-height: max(680px, calc(100dvh - 28px));
    }

    .auth-visual {
        min-height: 520px;
    }

    .retrieval-stage {
        --page-height: clamp(238px, 34vw, 280px);
    }
}

@media (max-width: 540px) {
    body.auth-page {
        padding: 0;
        background: var(--auth-card);
    }

    .auth-shell {
        gap: 0;
    }

    .auth-card,
    .auth-visual {
        border-radius: 0;
    }

    .auth-card {
        min-height: 100dvh;
        padding: 24px;
    }

    .auth-content {
        padding: 48px 0 42px;
    }

    .auth-header {
        margin-bottom: 28px;
    }

    .auth-header h1 {
        font-size: 38px;
    }

    .auth-visual {
        min-height: 480px;
    }

    .retrieval-visual {
        gap: 10px;
        padding: 20px 16px;
    }

    .retrieval-topbar {
        padding: 0 3px;
    }

    .retrieval-index-state {
        display: none;
    }

    .retrieval-brand-mark {
        width: 33px;
        height: 33px;
    }

    .retrieval-query-shell {
        min-height: 58px;
        padding: 9px 11px;
        border-radius: 13px;
    }

    .retrieval-query-icon {
        width: 34px;
        height: 34px;
    }

    .retrieval-query-copy strong {
        font-size: 10px;
    }

    .retrieval-stage {
        --page-width: calc(100% - 28px);
        --page-height: 218px;
    }

    .retrieval-stage-label--top {
        display: none;
    }

    .retrieval-stage-label--bottom {
        bottom: 8px;
        padding: 0 3px;
    }

    .retrieval-deck {
        inset: 13px 0 24px;
    }

    .retrieval-page-header {
        min-height: 47px;
        padding: 7px 11px;
    }

    .retrieval-file-icon {
        width: 27px;
        height: 27px;
    }

    .retrieval-page-body {
        padding: 12px 17px;
    }

    .retrieval-page-body h2 {
        margin-bottom: 7px;
        font-size: 16px;
    }

    .retrieval-page-body p {
        font-size: 8.5px;
        line-height: 1.5;
    }

    .retrieval-page-lines {
        display: none;
    }

    .retrieval-page-footer {
        min-height: 27px;
        padding: 6px 11px;
    }

    .retrieval-status-bar {
        grid-template-columns: minmax(0, 1fr) 70px;
        gap: 12px;
        min-height: 39px;
    }

    .retrieval-progress {
        grid-column: 2;
    }

    .retrieval-mode {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
