.at-page .at-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;max-width:100%;min-width:0;margin:0;padding:10px 16px;border:1px solid #9aff561b;border-radius:999px;background:linear-gradient(145deg,#ffffff08,transparent 65%),var(--bg-panel);color:#dbe5de;box-shadow:0 8px 24px #0002;font:600 14px/1.5 Inter,sans-serif;text-decoration:none;text-align:center;white-space:normal;overflow-wrap:anywhere;cursor:pointer;transition:border-color .18s,background .18s,box-shadow .18s,color .18s}
.at-page .at-action>svg{width:16px;height:16px;stroke-width:1.7}
.at-page .at-action-primary{border-color:#9aff5640;color:var(--at-accent)}
.at-page .at-action:hover{background:#1b291f;border-color:#9aff5670;box-shadow:0 0 16px #9aff560c}
.at-page .at-action:active{background:var(--bg-soft);box-shadow:inset 0 1px 3px #0005}
.at-page .at-action:disabled{opacity:.4;cursor:default;box-shadow:none}
:where(.at-page) .at-section-controls{display:flex;gap:8px;min-width:0;flex:1 1 430px;max-width:680px;justify-content:flex-end}
:where(.at-page) .at-record-details>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}
:where(.at-page) .at-record-details>summary::-webkit-details-marker{display:none}
:where(.at-page) .at-archive-pagination{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px}
:where(.at-page) .at-archive-pagination p{color:var(--text-soft);font-size:12px}
:where(.at-page) .at-detail-muted{font-size:13px;color:var(--text-soft);line-height:1.8}
:where(.at-page) .at-empty{display:grid;grid-template-columns:34px minmax(0,1fr);gap:5px 16px;padding:24px}
:where(.at-page) .at-empty>svg{grid-row:1/3;width:26px;height:26px;color:var(--at-accent)}
:where(.at-page) .at-empty h3,:where(.at-page) .at-empty h2{margin:0;font-size:17px;font-weight:600;line-height:1.5;letter-spacing:-.025em}
:where(.at-page) .at-empty p{grid-column:2;margin:0;color:var(--text-soft);font-size:14px;line-height:1.8}
:where(.at-page) .at-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Applicant-facing application center */
.at-page {
    --at-accent: var(--green, #9aff56);
    --at-muted: var(--text-soft, #a5b2a9);
    --at-line: #d2d9d026;
    --at-surface: #141716;
    --at-city: url("../images/factions/showcase-background-legal.webp");
    --at-street: url("../images/factions/showcase-background.webp");
    position: relative;
    isolation: isolate;
    padding: clamp(88px, 8vw, 110px) 0 64px;
    background: var(--bg-main, #050907);
    color: var(--text-main);
    overflow-wrap: anywhere;
}
.at-page::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: clamp(430px, 38vw, 570px);
    background: linear-gradient(0deg, var(--bg-main), transparent 74%),
                linear-gradient(90deg, #05090755, transparent 70%),
                url("../images/applications-hero.webp") center 54% / cover;
}
.at-page .ac-container { width: min(1320px, calc(100% - 48px)); }
.at-page [hidden] { display: none !important; }
.at-page svg { display: block; width: 18px; height: 18px; flex: none; }
.at-page :is(#ac-types, [id^="at-panel-"]) { scroll-margin-top: 100px; }

.at-page .at-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(18px, 4vw, 62px);
    align-items: center;
    margin: 0 0 22px;
    min-height: 242px;
}
.at-page .at-hero p { max-width: 48ch; color: #d0d5d1; font-size: 14px; line-height: 1.6; }
.at-page .at-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}
.at-hero-points :is(li,a) { display: flex; align-items: center; gap: 8px; }
.at-hero-points a { color: inherit; text-decoration: none; }
.at-hero-points svg, .at-hero-points a:hover { color: var(--at-accent); }
.at-hero-points strong, .at-hero-points small { display: block; font-size: 12px; line-height: 1.45; }
.at-hero-points small { color: #b8c0bb; font-size: 11px; }
.at-page .at-dossier {
    position: relative;
    justify-self: end;
    width: min(100%, 392px);
    aspect-ratio: 3 / 2;
    container-type: inline-size;
}
.at-dossier img { display: block; width: 100%; height: 100%; object-fit: contain; }
.at-dossier-label {
    position: absolute;
    top: 43%;
    left: 15%;
    transform-origin: top left;
    transform: rotate(-3.8deg) skewX(1.3deg);
    color: #d6cebb;
    font-family: "Courier New", Courier, monospace;
    line-height: 1.2;
    white-space: nowrap;
    opacity: .84;
}
.at-dossier-label strong { display: block; font-size: 5.7cqi; letter-spacing: .025em; }
.at-dossier-label small { display: block; margin-top: 1.8cqi; font-size: 2.45cqi; letter-spacing: .07em; }
@supports (background-clip: text) {
    .at-dossier-label :is(strong,small) {
        background: #d6cebb url("../images/site-intro-grain.png") center / 72px;
        background-clip: text;
        color: transparent;
    }
}

.at-page .at-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 22px; padding-bottom: 14px; border-bottom: 1px solid var(--at-line); }
.at-page .at-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.at-page .at-toolbar .at-section-controls { flex: 1 1 340px; max-width: 420px; }
.at-nav-count { min-width: 17px; padding-inline: 4px; border-radius: 999px; background: #ffffff13; text-align: center; font-variant-numeric: tabular-nums; }
.at-nav-active .at-nav-count { background: #9aff5617; }
.at-page .at-section-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 14px; }
.at-page .at-section-bar p { margin: 3px 0 0 14px; color: var(--at-muted); font-size: 13px; }
.at-page .at-section-title, .at-page .at-group-heading { border-left: 3px solid var(--at-accent); padding-left: 11px; }
.at-page .at-group-heading { display: flex; align-items: center; gap: 8px; }
.at-page .at-group-heading svg { color: var(--at-accent); }
.at-page :is(.at-section-title,.at-group-heading h2) { margin: 0; font: 750 clamp(20px,2vw,26px)/1.25 Inter,sans-serif; letter-spacing: -.035em; }
.at-page .at-open-forms { margin: 15px 0 25px; }
.at-page .at-form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,1.4vw,20px); }
.at-page .at-form-card {
    --at-card-image: var(--at-city);
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    min-height: 208px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid var(--at-line);
    border-radius: 10px;
    background: var(--at-surface);
    transition: translate 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.at-form-card[data-card-category="logged_in"] { --at-card-image: var(--at-street); }
.at-form-card[data-card-category="staff"] { --at-card-image: url("../images/hero/gta-03.png"); }
.at-form-card::before, .at-form-card::after { content: ""; position: absolute; z-index: -1; inset: 0; }
.at-form-card::before { background: var(--at-card-image) center 40% / cover; filter: saturate(.45); }
.at-form-card::after { background: linear-gradient(0deg, #141716 9%, #141716f5 36%, #10131190 73%, #1013114f), linear-gradient(90deg,#0b0d0abb,transparent); }
.at-page .at-form-card:focus-within { border-color: #9aff567d; }
.at-form-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #f0f1e851; border-radius: 7px; background: #232623a8; }
.at-page .at-form-icon svg { width: 22px; height: 22px; }
.at-page .at-form-copy h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.25; }
.at-page .at-form-copy p { margin: 0; color: #d1d7d2; font-size: 13px; line-height: 1.5; white-space: pre-line; }
.at-page .at-form-card .at-form-state { position: absolute; top: 16px; right: 16px; max-width: calc(100% - 85px); }
.at-page .at-form-card-locked::before { filter: saturate(.45) blur(2px); inset: -3px; }
.at-form-card-locked .at-form-copy,
.at-form-card-locked .at-form-icon,
.at-form-card-locked .at-form-footer { opacity: 0; }
.at-page .at-form-card-locked .at-form-state { z-index: 1; }
.at-lock-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 6px;
    padding: 36px 12px 16px;
    background: #05090780;
    text-align: center;
}
.at-lock-overlay strong { color: #f0f7ed; font: 750 13px/1.4 Inter,sans-serif; letter-spacing: .1em; }
.at-lock-overlay p { margin: 0; color: #b6c6b8; font: 500 11px/1.5 Inter,sans-serif; }
.at-lock-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 4px;
    border: 1px solid #9aff565c;
    border-radius: 50%;
    background: #17251bb8;
    color: var(--at-accent);
    box-shadow: 0 0 14px #9aff561f;
    transition: transform 240ms ease, box-shadow 240ms ease;
}
.at-lock-icon svg { width: 22px; height: 22px; filter: drop-shadow(0 0 4px #9aff5640); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .at-form-card-locked:hover .at-lock-icon { transform: translateY(-2px); box-shadow: 0 0 17px #9aff5640; }
}
.at-form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: auto; padding-top: 2px; color: #c4d0c5; font-size: 12px; }
.at-page .at-no-forms { padding: 24px 16px; text-align: center; }
.at-no-forms svg { margin: auto; color: var(--at-accent); }
.at-no-forms h3 { margin: 6px 0; font-size: 17px; }
.at-no-forms p { margin: 0; color: var(--at-muted); font-size: 13px; }

.at-page .at-record-group { padding-block: 15px 8px; border-top: 1px solid #ffffff09; }
.at-page .at-records:has(.at-record:not([hidden])) {
    border: 1px solid #9aff5626;
    border-radius: 10px;
    background: linear-gradient(145deg,#ffffff0250,transparent 65%),var(--bg-panel,#0b110d);
    color: #dde4de;
    box-shadow: 0 8px 24px #0002,0 0 5px #9aff5609,0 3px 10px #9aff5606;
    transition: border-color 300ms ease,box-shadow 300ms ease;
}
.at-page .at-records:not(:has(.at-record:not([hidden]))) .at-archive-head { display: none; }
.at-page .at-archive-row { border-top: 1px solid #ffffff09; }
.at-page :is(.at-archive-head,.at-archive-summary) {
    display: grid;
    grid-template-columns: minmax(0,1.65fr) minmax(0,.8fr) repeat(3,minmax(0,1fr)) minmax(80px,.65fr);
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
}
.at-page .at-archive-head { color: #a0b3a6; font-size: 12px; }
.at-page .at-archive-summary { transition: background-color 220ms ease; }
.at-page .at-archive-summary:focus-visible { background-color: var(--profile-hover-surface); outline-offset: -3px; }
.at-archive-identity strong, .at-archive-identity small { display: block; }
.at-archive-identity strong { font-size: 14px; }
.at-archive-identity small, .at-archive-cell { font-size: 12px; }
.at-archive-identity small, .at-archive-cell small { color: #a0b3a6; }
@media (min-width: 701px) {
    .at-page .at-archive-cell small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
.at-page :is(.at-status,.at-digital-status) {
    --at-state-ink: var(--text-soft);
    --at-state-glow: color-mix(in srgb,var(--at-state-ink) 32%,transparent);
    color: var(--at-state-ink);
    font: 600 11px/1.5 Inter,sans-serif;
    letter-spacing: .025em;
    text-shadow: 0 0 6px var(--at-state-glow);
}
.at-page .at-status {
    --at-state-edge: color-mix(in srgb,var(--at-state-ink) 35%,transparent);
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    padding: 3px 8px;
    border: 1px solid var(--at-state-edge);
    border-radius: 999px;
    background: linear-gradient(145deg,
        color-mix(in srgb,var(--at-state-ink) 15%,transparent),
        color-mix(in srgb,var(--at-state-ink) 5%,transparent));
    box-shadow: 0 0 7px -2px var(--at-state-glow);
    transition: border-color 200ms ease, box-shadow 200ms ease, text-shadow 200ms ease;
}
.at-page .at-status > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-page :is(.at-status,.at-digital-status) > svg {
    width: 14px;
    height: 14px;
    flex: none;
    filter: drop-shadow(0 0 3px var(--at-state-glow));
    transition: filter 200ms ease;
}
.at-page .at-status > i {
    width: 5px;
    height: 5px;
    flex: none;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 5px var(--at-state-glow);
    transition: box-shadow 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
    .at-page :is(.at-form-card,.at-archive-summary,.at-digital-heading):hover .at-status {
        --at-state-glow: color-mix(in srgb,var(--at-state-ink) 52%,transparent);
        --at-state-edge: color-mix(in srgb,var(--at-state-ink) 51%,transparent);
    }
}
.at-page .at-status-approved { --at-state-ink: var(--at-accent); }
.at-page .at-status-pending { --at-state-ink: #ffd652; }
.at-page .at-status-rejected { --at-state-ink: #ff626d; }
.at-page :is(.at-status-draft,.at-status-neutral) { --at-state-ink: #bac0ca; }
.at-detail-toggle { justify-self: start; }
.at-page .at-detail-toggle svg { transform: rotate(-90deg); }
.at-page .at-detail-toggle svg { transition: transform .2s; }
.at-page .at-record-details[open] .at-detail-toggle svg { transform: rotate(90deg); }
.at-page .at-section-controls { max-width: 630px; align-items: center; }
.at-page .at-section-controls .pedia-search { flex: 1; min-width: 0; }
.at-page .at-action { box-shadow: none; }
.at-page .at-action:hover { box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
    .at-page .at-form-card:hover,
    .at-page .at-records:has(.at-record:not([hidden])):hover {
        border-color: #9aff5660;
        box-shadow: 0 0 5px #9aff5614,0 3px 10px #9aff560c;
    }
    .at-page .at-archive-summary:hover { background-color: var(--profile-hover-surface); }

}
@media (prefers-reduced-motion: no-preference) {
    .at-page {
        --at-entry-duration: 1200ms;
        --at-entry-ease: cubic-bezier(.2,.65,.2,1);
        --at-heading-entry-delay: 800ms;
        --at-card-entry-delay: calc(var(--at-heading-entry-delay) + var(--at-entry-duration) + 50ms);
    }
    .at-page :is(.at-hero-copy .page-heading-text, .at-section-title .page-heading-text, .at-form-card.at-card-enter) {
        animation: ac-title-rise var(--at-entry-duration) var(--at-entry-delay) var(--at-entry-ease) backwards;
    }
    .at-page :is(.at-hero-copy,.at-section-title) .page-heading-text { --at-entry-delay: var(--at-heading-entry-delay); }
    .at-page .at-hero-copy .page-heading-text { animation-fill-mode: both; }
    .at-page .at-form-card.at-card-enter {
        --heading-rise-distance: 14px;
        --at-entry-delay: calc(var(--at-card-entry-delay) + var(--at-card-offset, 0ms));
    }
    .at-page .at-dossier { animation: at-dossier-enter .76s .28s cubic-bezier(.2,.65,.2,1) backwards; }
    @keyframes at-dossier-enter {
        from { opacity: 0; transform: translate(-8px, 18px) rotate(-4deg) scale(.96); }
        to { opacity: 1; transform: none; }
    }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .at-page .at-form-card:hover { translate: 0 -3px; }
}
@media (max-width: 950px) {
    .at-page .at-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .at-page .at-toolbar .at-section-controls { max-width: none; }
    .at-page .at-hero { min-height: 192px; }
}
@media (max-width: 700px) {
    .at-page .ac-container { width: calc(100% - 28px); }
    .at-page .at-hero { gap: 11px; margin-bottom: 14px; }
    .at-page .at-hero-points { gap: 6px 10px; margin-top: 12px; }
    .at-page .at-hero-points small { display: none; }
    .at-page .at-archive-head { display: none; }
    .at-page .at-archive-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .at-archive-identity { grid-column: 1/-1; }
    .at-archive-cell small { display: block; }
    .at-page .at-detail-toggle { justify-self: end; }
    .at-page .at-archive-row:first-of-type { border-top: 0; }
}
@media (max-width: 520px) {
    .at-page .at-hero { grid-template-columns: minmax(0,1fr); gap: 8px; margin-bottom: 11px; }
    .at-page .at-dossier { width: min(168px, 76%); justify-self: center; }
    .at-page::before { background-position: center, center, 66% 52%; }
    .at-page .at-form-grid { grid-template-columns: minmax(0,1fr); }
    .at-page .at-form-card { min-height: 184px; }
    .at-page .at-section-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); flex-basis: 100%; }
    .at-page .at-toolbar .at-section-controls { display: flex; flex-basis: 100%; }
    .at-page .at-section-controls .pedia-select { justify-self: start; }
    .at-page .at-record-group .pedia-search { grid-column: 1/-1; }
}
@media (prefers-reduced-motion: reduce) {
    .at-page *, .at-page *::before { transition: none !important; }
}

.at-page .at-record-details { --pf-accent: var(--green, #9aff56); }
.at-page .pf-profile .at-detail-content { margin: 4px 15px 15px; padding: 16px; }
.at-page .at-documents { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 14px; }
.at-page [data-tracking-ticket-status] { margin: 0; }
.at-page [data-tracking-ticket]:disabled { opacity: .65; cursor: wait; }
.at-ticket-renderer { position: fixed; left: -12000px; top: 0; width: 1000px; height: 720px; border: 0; }
@supports selector(details::details-content) {
    @media (prefers-reduced-motion: no-preference) {
        .at-page .at-record-details { interpolate-size: allow-keywords; }
        .at-page .at-record-details::details-content {
            block-size: 0;
            opacity: 0;
            overflow: clip;
            transition: block-size 240ms ease, opacity 180ms ease, content-visibility 240ms allow-discrete;
        }
        .at-page .at-record-details[open]::details-content { block-size: auto; opacity: 1; }
    }
}

.at-digital-heading {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #9aff5626;
}
.at-digital-heading > svg { width: 32px; height: 32px; color: var(--at-accent); }
.at-digital-caption, .at-digital-info dt, .at-digital-documents h4 {
    font: 600 10px/1.5 Inter,sans-serif;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.at-digital-caption, .at-digital-info dt { color: #9baaa0; }
.at-digital-heading h3 {
    margin: 3px 0 0;
    color: var(--text-main);
    font: 700 clamp(21px,3vw,32px)/1.1 Inter,sans-serif;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}
.at-digital-body { display: grid; gap: 18px; padding-top: 14px; }
.at-digital-body:has(.at-digital-documents) { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.at-digital-info dl { display: grid; gap: 10px; margin: 0; }
.at-digital-info dd { margin: 2px 0 0; color: #e1eae3; font: 600 13px/1.5 Inter,sans-serif; overflow-wrap: anywhere; }
.at-digital-status {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: start;
    gap: 8px;
    margin: 18px 0 0;
    overflow-wrap: anywhere;
}
.at-digital-status > svg {
    margin-top: .1em;
}
.at-digital-note {
    margin: 8px 0 0;
    color: #e1eae3;
    font: 400 14px/1.65 Inter,sans-serif;
    overflow-wrap: anywhere;
}
.at-digital-note > strong { font-weight: 600; }
.at-page .at-digital-documents { display: grid; align-content: start; gap: 8px; margin: 0; min-width: 0; }
.at-digital-documents h4 { margin: 0 0 2px; color: var(--at-accent); }
.at-page .pf-profile .at-document-card[data-profile-action] {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: left;
    white-space: normal;
}
.at-document-card strong, .at-document-card small { display: block; overflow-wrap: anywhere; }
.at-document-card strong { font-size: 13px; }
.at-document-card small { color: #9baaa0; font-size: 10px; }
.at-document-card > svg { color: var(--at-accent); }
.at-digital-documents [data-tracking-ticket-status]:empty { position: absolute; }
@media (max-width: 760px) {
    .at-digital-body:has(.at-digital-documents) { grid-template-columns: minmax(0,1fr); }
    .at-digital-heading { gap: 4px 8px; }
    .at-digital-heading > svg { grid-row: 1 / 3; width: 24px; height: 24px; }
    .at-digital-heading > div { display: contents; }
    .at-digital-caption { grid-column: 2 / -1; }
    .at-digital-heading h3 { grid-column: 2; grid-row: 2; margin-top: 0; }
    .at-digital-heading .at-status { grid-column: 3; grid-row: 2; }
}
@media (max-width: 380px) {
    .at-page .pf-profile .at-digital-record { padding: 12px; }
    .at-digital-heading h3 { font-size: 20px; }
}
