:root {
    color-scheme: light;
    --night: #11162f;
    --night-soft: #1b2144;
    --background: #f5f3fb;
    --surface: rgb(255 255 255 / 88%);
    --surface-solid: #ffffff;
    --text: #182038;
    --muted: #68708a;
    --primary: #4d54d8;
    --primary-dark: #343aa9;
    --cyan: #48c7d8;
    --rose: #ef8fbd;
    --lavender: #9b8de4;
    --gold: #f0cd82;
    --border: rgb(86 91 154 / 18%);
    --danger: #a93643;
    --success: #14775b;
    --shadow: 0 24px 70px rgb(36 40 94 / 13%);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 8%, rgb(72 199 216 / 17%), transparent 25rem),
        radial-gradient(circle at 92% 22%, rgb(239 143 189 / 20%), transparent 28rem),
        linear-gradient(145deg, #f8f8fd 0%, #f2f0fa 52%, #f7f2f7 100%);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    line-height: 1.65;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgb(77 84 216 / 3%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(77 84 216 / 3%) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 72%);
    pointer-events: none;
}

a {
    color: var(--primary-dark);
    text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgb(72 199 216 / 42%);
    outline-offset: 3px;
}

.container {
    width: min(100% - 2rem, 1120px);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgb(255 255 255 / 13%);
    background: rgb(17 22 47 / 94%);
    box-shadow: 0 8px 30px rgb(15 18 48 / 16%);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid rgb(255 255 255 / 34%);
    border-radius: 50%;
    place-items: center;
    background:
        radial-gradient(circle, rgb(255 255 255 / 95%) 0 8%, transparent 10%),
        conic-gradient(from 45deg, var(--cyan), var(--lavender), var(--rose), var(--gold), var(--cyan));
    box-shadow: 0 0 24px rgb(72 199 216 / 32%);
    color: var(--night);
    font-size: 1.05rem;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.16;
}

.brand-copy strong {
    font-size: 1.04rem;
    letter-spacing: 0.08em;
}

.brand-copy small {
    margin-top: 0.25rem;
    color: rgb(231 235 255 / 66%);
    font-size: 0.69rem;
    letter-spacing: 0.14em;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.18rem;
    flex-wrap: wrap;
}

.main-nav a,
.main-nav .link-button {
    padding: 0.48rem 0.66rem;
    border-radius: 999px;
    color: rgb(246 247 255 / 83%);
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.main-nav a:hover,
.main-nav .link-button:hover {
    background: rgb(255 255 255 / 10%);
    color: #fff;
    transform: translateY(-1px);
}

.user-label {
    margin-right: 0.35rem;
    padding: 0.32rem 0.62rem;
    border: 1px solid rgb(72 199 216 / 28%);
    border-radius: 999px;
    background: rgb(72 199 216 / 9%);
    color: #a9ecf2;
    font-size: 0.8rem;
}

.main-content {
    min-height: calc(100vh - 166px);
    padding-block: clamp(2rem, 5vw, 4.5rem);
}

.card {
    max-width: 720px;
    margin-inline: auto;
    padding: clamp(1.5rem, 4vw, 2.6rem);
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.card + .card {
    margin-top: 1.25rem;
}

.auth-card {
    width: 100%;
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.submit-card {
    position: relative;
    max-width: 780px;
    overflow: hidden;
}

.submit-card::before,
.review-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--cyan), var(--primary), var(--rose));
    content: "";
}

.wide-card {
    max-width: 980px;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--text);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.15rem);
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.eyebrow {
    margin-bottom: 0.45rem;
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #9ee9ef;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    margin-bottom: 0.55rem;
}

.section-heading p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

form p {
    margin-block: 1rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    padding: 0.82rem 0.92rem;
    border: 1px solid rgb(92 98 151 / 25%);
    border-radius: 12px;
    background: rgb(255 255 255 / 86%);
    box-shadow: inset 0 1px 2px rgb(29 33 68 / 4%);
    color: var(--text);
    font: inherit;
    transition: border 160ms ease, box-shadow 160ms ease;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgb(77 84 216 / 11%);
    outline: none;
}

button,
.button {
    display: inline-flex;
    min-height: 44px;
    padding: 0.72rem 1.12rem;
    border: 0;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5960e6, #4148bd);
    box-shadow: 0 9px 22px rgb(65 72 189 / 20%);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover,
.button:hover {
    background: linear-gradient(135deg, #4b52d5, #30369d);
    box-shadow: 0 12px 28px rgb(65 72 189 / 28%);
    transform: translateY(-2px);
}

.button.secondary {
    border: 1px solid rgb(77 84 216 / 20%);
    background: rgb(255 255 255 / 78%);
    box-shadow: none;
    color: var(--primary-dark);
}

.button.secondary:hover {
    background: #f1f1fd;
}

.inline-form {
    display: inline;
    margin: 0;
}

.link-button {
    min-height: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-weight: 500;
}

.link-button:hover {
    background: transparent;
    box-shadow: none;
}

.auth-shell {
    display: grid;
    max-width: 980px;
    min-height: 620px;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgb(112 109 177 / 18%);
    border-radius: 30px;
    grid-template-columns: minmax(340px, 0.92fr) minmax(400px, 1.08fr);
    background: #fff;
    box-shadow: 0 32px 90px rgb(38 38 88 / 20%);
}

.auth-art {
    position: relative;
    display: flex;
    min-height: 620px;
    padding: 2.6rem;
    align-items: flex-end;
    overflow: hidden;
    background-image:
        linear-gradient(to top, rgb(18 20 56 / 92%) 0%, rgb(29 25 76 / 20%) 65%),
        url("../images/cyrene-welcome.3487522fc655.png");
    background-position: center 28%;
    background-size: cover;
}

.auth-art::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgb(255 255 255 / 14%);
    content: "";
    pointer-events: none;
}

.auth-art-copy {
    position: relative;
    z-index: 1;
    color: #fff;
}

.auth-art-copy h1 {
    margin-bottom: 0.8rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
}

.auth-art-copy p:last-child {
    margin-bottom: 0;
    color: rgb(242 241 255 / 78%);
}

.auth-card {
    padding: clamp(2rem, 5vw, 4rem);
    align-self: center;
}

.auth-card h1 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.auth-card form button {
    width: 100%;
    margin-top: 0.5rem;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.92rem;
}

.auth-links.single-link {
    justify-content: flex-end;
}

.helptext {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.errorlist {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
    color: var(--danger);
}

.message {
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-solid);
    box-shadow: 0 10px 30px rgb(38 40 90 / 8%);
}

.message.success {
    border-color: #75c7a3;
    color: var(--success);
}

.message.error {
    border-color: #f1a7a1;
    color: var(--danger);
}

.home-hero {
    position: relative;
    display: grid;
    min-height: 560px;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 34px;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    background:
        radial-gradient(circle at 78% 20%, rgb(72 199 216 / 26%), transparent 22rem),
        radial-gradient(circle at 95% 82%, rgb(239 143 189 / 24%), transparent 24rem),
        linear-gradient(135deg, #121731 0%, #1b2350 58%, #29204d 100%);
    box-shadow: 0 34px 90px rgb(27 32 84 / 24%);
}

.home-hero::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
    background-size: 38px 38px;
    content: "";
    mask-image: linear-gradient(90deg, black, transparent 85%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: clamp(2.2rem, 6vw, 5rem);
    align-self: center;
    color: #fff;
}

.hero-copy h1 {
    max-width: 620px;
    margin-bottom: 1.2rem;
    color: #fff;
    font-size: clamp(2.6rem, 5vw, 4rem);
    letter-spacing: -0.055em;
    text-shadow: 0 12px 34px rgb(5 7 26 / 32%);
}

.hero-lead {
    max-width: 600px;
    color: rgb(238 240 255 / 78%);
    font-size: 1.04rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.7rem;
    flex-wrap: wrap;
}

.hero-primary {
    background: linear-gradient(135deg, #6c73f2, #c56eac);
    box-shadow: 0 12px 32px rgb(147 92 190 / 30%);
}

.hero-secondary {
    border: 1px solid rgb(255 255 255 / 24%);
    background: rgb(255 255 255 / 8%);
    box-shadow: none;
    color: #fff;
    backdrop-filter: blur(12px);
}

.hero-secondary:hover {
    background: rgb(255 255 255 / 15%);
}

.hero-principles {
    display: flex;
    margin: 1.5rem 0 0;
    padding: 0;
    color: rgb(224 230 255 / 62%);
    font-size: 0.76rem;
    gap: 1.1rem;
    list-style: none;
    flex-wrap: wrap;
}

.hero-principles li::before {
    margin-right: 0.4rem;
    color: var(--cyan);
    content: "◆";
    font-size: 0.58rem;
}

.hero-art {
    position: relative;
    z-index: 1;
    min-height: 560px;
}

.hero-art::after {
    position: absolute;
    right: 4%;
    bottom: 4%;
    width: 180px;
    height: 180px;
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: 50%;
    box-shadow: 0 0 0 32px rgb(255 255 255 / 3%), 0 0 0 66px rgb(255 255 255 / 2%);
    content: "";
}

.hero-art img {
    position: absolute;
    z-index: 2;
    right: -5%;
    bottom: -7%;
    width: min(680px, 122%);
    max-width: none;
    filter: drop-shadow(0 28px 34px rgb(0 0 0 / 34%));
}

.hero-orbit {
    position: absolute;
    top: 16%;
    right: 6%;
    width: 360px;
    height: 360px;
    border: 1px solid rgb(72 199 216 / 32%);
    border-radius: 50%;
    box-shadow: inset 0 0 60px rgb(72 199 216 / 7%);
}

.hero-orbit::before,
.hero-orbit::after {
    position: absolute;
    border: 1px dashed rgb(239 143 189 / 28%);
    border-radius: 50%;
    content: "";
}

.hero-orbit::before {
    inset: 34px;
}

.hero-orbit::after {
    inset: 92px;
}

.home-actions {
    padding-block: clamp(3rem, 6vw, 5rem) 1rem;
}

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

.action-card {
    position: relative;
    display: flex;
    min-height: 230px;
    padding: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    flex-direction: column;
    background: rgb(255 255 255 / 80%);
    box-shadow: 0 18px 44px rgb(39 44 105 / 9%);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border 180ms ease;
}

.action-card::after {
    position: absolute;
    right: -28px;
    bottom: -44px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(155 141 228 / 24%), transparent 68%);
    content: "";
}

.action-card:nth-child(2)::after {
    background: radial-gradient(circle, rgb(72 199 216 / 24%), transparent 68%);
}

.action-card:nth-child(3)::after {
    background: radial-gradient(circle, rgb(239 143 189 / 25%), transparent 68%);
}

.action-card:hover {
    border-color: rgb(77 84 216 / 30%);
    box-shadow: 0 24px 55px rgb(39 44 105 / 16%);
    transform: translateY(-5px);
}

.action-index {
    margin-bottom: auto;
    color: var(--lavender);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.action-card strong {
    margin-top: 2rem;
    color: var(--text);
    font-size: 1.26rem;
}

.action-card > span:not(.action-index):not(.action-link) {
    margin-top: 0.55rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.action-link {
    z-index: 1;
    margin-top: 1.1rem;
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 750;
}

.management-hero {
    position: relative;
    min-height: 400px;
    padding: clamp(2.2rem, 6vw, 4.8rem);
    overflow: hidden;
    border-radius: 30px;
    background-image:
        linear-gradient(90deg, rgb(12 13 27 / 96%) 0%, rgb(17 18 35 / 82%) 48%, rgb(15 15 28 / 22%) 100%),
        url("../images/ranger-review.ae26994e01c2.png");
    background-position: center, center;
    background-size: cover;
    box-shadow: 0 30px 80px rgb(31 21 43 / 25%);
}

.management-hero::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.management-hero > div {
    position: relative;
    z-index: 1;
    max-width: 560px;
    color: #fff;
}

.management-hero h1 {
    margin-bottom: 1rem;
    color: #fff;
}

.management-hero p:not(.eyebrow) {
    margin-bottom: 1.6rem;
    color: rgb(239 236 245 / 76%);
}

.management-section {
    padding-top: 3.5rem;
}

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

.management-card {
    display: flex;
    min-height: 190px;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    flex-direction: column;
    background: rgb(255 255 255 / 82%);
    box-shadow: 0 16px 40px rgb(35 37 84 / 8%);
    color: var(--text);
    text-decoration: none;
    transition: transform 160ms ease, border 160ms ease, box-shadow 160ms ease;
}

.management-card:hover {
    border-color: rgb(72 199 216 / 42%);
    box-shadow: 0 20px 48px rgb(35 37 84 / 14%);
    transform: translateY(-4px);
}

.management-card strong {
    margin: auto 0 0.45rem;
    font-size: 1.08rem;
}

.management-card > span:last-child {
    color: var(--muted);
    font-size: 0.85rem;
}

.management-code {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.management-card.primary-tool {
    background: linear-gradient(145deg, #242b5e, #191d42);
    color: #fff;
}

.management-card.primary-tool strong {
    color: #fff;
}

.management-card.primary-tool > span:last-child {
    color: rgb(237 240 255 / 68%);
}

.management-card.primary-tool .management-code {
    color: var(--cyan);
}

.management-card.founder-tool {
    border-color: rgb(239 143 189 / 24%);
    background: linear-gradient(150deg, rgb(255 255 255 / 88%), rgb(252 241 249 / 90%));
}

.management-note {
    margin-top: 1.4rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.review-card {
    position: relative;
    overflow: hidden;
}

.quota-panel {
    display: flex;
    margin-block: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgb(77 84 216 / 22%);
    border-radius: 14px;
    flex-direction: column;
    background: linear-gradient(135deg, rgb(238 240 255 / 86%), rgb(251 242 249 / 86%));
}

.quota-panel strong {
    color: var(--primary-dark);
    font-size: 1.08rem;
}

.quota-panel span,
.form-note {
    margin-top: 0.35rem;
    font-size: 0.88rem;
}

.case-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.case-row {
    display: flex;
    padding: 1.05rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 15px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgb(255 255 255 / 64%);
    transition: border 150ms ease, background 150ms ease;
}

.case-row:hover {
    border-color: rgb(77 84 216 / 28%);
    background: rgb(255 255 255 / 90%);
}

.case-row p {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.list-toolbar {
    display: flex;
    margin-top: 1.5rem;
    padding: 0.85rem;
    border-radius: 14px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgb(238 240 255 / 64%);
}

.checkbox-label,
.case-selector {
    display: flex;
    margin: 0;
    align-items: center;
    gap: 0.5rem;
}

.case-copy-content {
    min-width: 0;
    flex: 1;
}

.case-copy-content a {
    overflow-wrap: anywhere;
}

.copy-feedback {
    min-height: 1.6rem;
    color: var(--success);
}

.error-text {
    color: var(--danger);
}

.status-badge {
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    background: #eceefa;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 750;
    white-space: nowrap;
}

.status-approved {
    background: #dcfae6;
    color: var(--success);
}

.status-rejected,
.status-taken_down {
    background: #fee4e2;
    color: var(--danger);
}

.clipboard-helper {
    position: fixed;
    top: -1000px;
    left: -1000px;
}

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

.search-form {
    margin-block: 1.5rem;
}

.search-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-row input {
    flex: 1;
}

.audit-list {
    display: grid;
    gap: 0.8rem;
}

.audit-entry {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgb(248 248 255 / 78%);
}

.audit-entry p {
    margin: 0.3rem 0 0;
}

.case-metadata {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.55rem 1rem;
}

.case-metadata dt {
    font-weight: 750;
}

.case-metadata dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.warning-panel,
.empty-state {
    padding: 1rem;
    border: 1px solid rgb(220 170 71 / 38%);
    border-radius: 14px;
    background: linear-gradient(135deg, #fffbeb, #fff6e4);
}

.confirm-actions,
.pagination {
    display: flex;
    margin-top: 1.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.confirm-actions form {
    margin: 0;
}

.radio-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-block: 0.5rem;
    font-weight: 400;
}

.badge {
    padding: 0.13rem 0.5rem;
    border-radius: 999px;
    background: #eceefa;
    color: var(--muted);
    font-size: 0.72rem;
}

.badge.success {
    background: #dcfae6;
    color: var(--success);
}

.site-footer {
    padding-block: 1.4rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
}

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

@media (max-width: 980px) {
    .header-inner {
        padding-block: 0.65rem;
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr) 310px;
    }

    .hero-copy {
        padding: 3rem 0 3rem 2.4rem;
    }

    .hero-art img {
        right: -24%;
        width: 620px;
    }

    .auth-shell {
        grid-template-columns: 0.8fr 1.2fr;
    }

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

@media (max-width: 720px) {
    .container {
        width: min(100% - 1.2rem, 1120px);
    }

    .main-content {
        padding-block: 1.25rem 2.5rem;
    }

    .main-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.28rem;
    }

    .main-nav .user-label {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .main-nav a,
    .main-nav .link-button {
        width: 100%;
        padding-inline: 0.25rem;
        text-align: center;
    }

    .main-nav .inline-form {
        display: block;
    }

    .home-hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 2.2rem 1.35rem 0;
    }

    .hero-copy h1 {
        overflow-wrap: anywhere;
        font-size: clamp(2.35rem, 12vw, 3.2rem);
    }

    .hero-art {
        min-height: 390px;
    }

    .hero-art img {
        right: 50%;
        bottom: -9%;
        width: 520px;
        transform: translateX(50%);
    }

    .hero-orbit {
        top: 4%;
        right: 50%;
        width: 300px;
        height: 300px;
        transform: translateX(50%);
    }

    .action-grid,
    .management-grid {
        grid-template-columns: 1fr;
    }

    .action-card {
        min-height: 200px;
    }

    .auth-shell {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .auth-art {
        min-height: 390px;
        padding: 1.5rem;
        background-position: center 26%;
    }

    .auth-card {
        padding: 2rem 1.35rem;
    }

    .management-hero {
        min-height: 440px;
        padding: 2rem 1.4rem;
        background-image:
            linear-gradient(180deg, rgb(12 13 27 / 90%) 0%, rgb(15 15 28 / 44%) 100%),
            url("../images/ranger-review.ae26994e01c2.png");
        background-position: 62% center;
    }

    .management-hero > div {
        align-self: flex-end;
    }

    .card {
        padding: 1.35rem;
        border-radius: 19px;
    }

    .case-row,
    .list-toolbar,
    .search-row,
    .confirm-actions,
    .pagination,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .case-metadata {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
