:root {
    --color-background: #ffffff;
    --color-background-alt: #f8f9fa;
    --color-text-primary: #111111;
    --color-text-secondary: #5f5f5f;
    --color-text-muted: #878787;
    --color-surface: #ffffff;
    --color-surface-soft: #f5f6f8;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-overlay: rgba(0, 0, 0, 0.76);
    --color-link: #0066cc;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shell-width: min(1440px, calc(100vw - 36px));
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--color-text-primary);
    background: linear-gradient(180deg, #fffef9 0%, #ffffff 22%, #f7f8fa 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(0, 102, 204, 0.35);
    outline-offset: 3px;
}

.shell {
    width: var(--shell-width);
    margin: 0 auto;
}

.hero {
    padding: 40px 0 36px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: 
        radial-gradient(circle at 10% 0%, rgba(255,215,0,0.18) 0%, transparent 40%),
        radial-gradient(circle at 90% 100%, rgba(255,199,0,0.15) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.9fr);
    gap: 24px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.hero__content,
.hero__spotlight {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

.hero__content {
    padding: 40px 40px 36px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06), inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

.hero__logo-link {
    display: inline-flex;
    margin-bottom: 12px;
}

.hero__logo {
    width: 124px;
    height: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: rgba(0, 0, 0, 0.62);
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    font-weight: 700;
}

.eyebrow::before {
    content: "";
    width: 36px;
    height: 1px;
    background: currentColor;
}

.eyebrow--dark {
    color: var(--color-text-muted);
}

.hero__title,
.spotlight__title,
#taskHubTitle,
.controls__heading h2,
.catalog__header h2,
#detailTitle,
.card__title,
.empty-state h3 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.hero__title {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #111111 0%, #444444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    margin-bottom: 24px;
}

.hero__lede {
    max-width: 60ch;
    margin: 16px 0 32px;
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    font-family: var(--font-ui);
    line-height: 1.6;
}

.hero__quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.quick-link,
.button,
.button--dark,
.button--outline,
.button--primary,
.text-button--dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: var(--font-ui);
    letter-spacing: 0.01em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-font-smoothing: antialiased;
}

.quick-link,
.button--dark,
.button--primary {
    background: #111111;
    color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-link:hover,
.button--dark:hover,
.button--primary:hover {
    background: #222222;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.button--outline,
.quick-link[aria-pressed="false"] {
    background: transparent;
    color: #111111;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: none;
}

.button--outline:hover,
.quick-link[aria-pressed="false"]:hover {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.02);
    transform: translateY(-2px);
}

.quick-link[aria-pressed="true"] {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.button:hover,
.text-button:hover,
.text-button--dark:hover,
.chip:hover,
.card__action:hover,
.icon-button:hover {
    transform: translateY(-2px);
}

.hero-search {
    position: relative;
    margin-top: 18px;
    max-width: 760px;
}

.hero-search input {
    width: 100%;
    min-height: 60px;
    padding: 0 58px 0 20px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-md);
}

.hero-search input:focus-visible {
    border-color: rgba(0, 102, 204, 0.3);
}

.hero-search__icon {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    fill: var(--color-text-muted);
    pointer-events: none;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.button--ghost {
    background: rgba(255, 255, 255, 0.5);
    color: #111111;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.button--ghost:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
}

.text-button,
.text-button--dark,
.chip,
.card__action {
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.text-button {
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #ffffff;
    color: var(--color-text-primary);
}

.text-button--dark {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 0;
}

.stat-card {
    padding: 20px 24px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.8);
}

.stat-card:hover::before {
    left: 150%;
}

.stat-card dt {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-card dd {
    margin: 4px 0 0;
    font-size: 2.2rem;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #111111 0%, #444444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__spotlight {
    display: grid;
    grid-template-rows: minmax(240px, 1fr) auto;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.06);
}

.spotlight__frame {
    position: relative;
    padding: 18px 18px 0;
}

.spotlight__image {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--color-background-alt);
}

.spotlight__badge {
    position: absolute;
    left: 30px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.84);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
}

.spotlight__body {
    padding: 22px 22px 24px;
}

.spotlight__label {
    margin: 0;
    color: var(--color-text-muted);
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
}

.spotlight__title {
    margin-top: 8px;
    font-size: clamp(1.9rem, 2.4vw, 2.8rem);
    line-height: 0.98;
}

.spotlight__meta,
.spotlight__excerpt,
.controls__status p,
.catalog__note,
.card__meta,
.card__excerpt,
.card__date,
.detail-dialog__meta,
.site-footer,
.empty-state p {
    color: var(--color-text-secondary);
}

.spotlight__meta,
.spotlight__excerpt {
    margin: 12px 0 0;
}

.spotlight__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.spotlight__actions,
.detail-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.main-content {
    padding: 24px 0 44px;
}

.task-hub,
.controls,
.catalog,
.site-footer,
.noscript-banner {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.task-hub {
    padding: 36px 40px;
}

.task-hub__header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
}

.task-hub__note {
    max-width: 52ch;
    margin: 8px 0 0;
    color: var(--color-text-secondary);
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.6;
}

.task-hub__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.task-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 220px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.task-card:hover,
.task-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

.task-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 700;
}

.task-card p {
    margin: 0;
    color: var(--color-text-secondary);
    font-family: var(--font-ui);
    line-height: 1.5;
    font-size: 0.95rem;
}

.task-card__badge,
.task-card__meta {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-ui);
}

.task-card__badge {
    background: #f1f3f5;
    color: #444444;
}

.task-card__meta {
    background: rgba(0, 0, 0, 0.04);
    color: #666666;
    margin-top: auto;
}

.controls,
.catalog {
    padding: 36px 40px;
}

#taskHubTitle,
.controls__heading h2,
.catalog__header h2,
#detailTitle,
.empty-state h3 {
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-block: 8px 12px;
}

.controls__bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 18px;
}

.controls__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.catalog__status {
    justify-content: flex-end;
}

.controls__status p {
    margin: 0;
    font-weight: 600;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip {
    background: var(--color-surface-soft);
    color: var(--color-text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.chip[aria-pressed="true"] {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.catalog {
    margin-top: 56px;
}

.catalog__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
}

.catalog__note {
    max-width: 32ch;
    margin: 0;
    font-weight: 600;
}

.card-grid {
    margin-top: 24px;
    column-count: 5;
    column-gap: 22px;
}

.card-grid__sentinel {
    display: block;
    width: 100%;
    height: 1px;
    break-inside: avoid;
}

.card {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 24px;
    overflow: hidden;
    break-inside: avoid;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.card__media {
    position: relative;
    background: var(--color-background-alt);
    overflow: hidden;
}

.card__media img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
}

.card:hover .card__media img {
    transform: scale(1.06);
}

.card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-overlay);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.card:hover .card__overlay,
.card:focus-within .card__overlay {
    opacity: 1;
}

.view-details {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.card__chip,
.card__case-id {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.card__chip {
    left: 14px;
    top: 14px;
    background: rgba(255, 255, 255, 0.88);
    color: #111111;
}

.card__case-id {
    right: 14px;
    bottom: 14px;
    background: rgba(17, 17, 17, 0.8);
    color: #ffffff;
}

.card__body {
    padding: 18px;
}

.card__title {
    font-size: 1.25rem;
    line-height: 1.18;
}

.card__meta,
.card__excerpt {
    margin: 12px 0 0;
    font-family: var(--font-ui);
}

.card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    font-size: 0.95rem;
}

.card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.card__action--primary {
    background: #f1f3f5;
    color: #111111;
}

.card__action--primary:hover {
    background: #e2e6ea;
}

.card__action--accent {
    background: #111111;
    color: #ffffff;
}

.card__action--accent:hover {
    background: #222222;
}

.card__action--secondary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-text-secondary);
}

.card__action--secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

.empty-state {
    margin-top: 24px;
    padding: 34px 24px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: var(--color-surface-soft);
    border: 1px dashed rgba(17, 17, 17, 0.16);
}

.empty-state__eyebrow {
    margin: 0;
    color: var(--color-text-muted);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.site-footer {
    margin-bottom: 34px;
    padding: 18px 22px;
    font-family: var(--font-ui);
    font-weight: 600;
}

.detail-dialog {
    width: min(1160px, calc(100vw - 24px));
    padding: 0;
    border: 0;
    background: transparent;
}

.detail-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.detail-dialog__shell {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.detail-dialog__close-form {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.76);
    color: #ffffff;
    font-size: 1.8rem;
}

.detail-dialog__media {
    background: #141414;
}

.detail-dialog__media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.detail-dialog__body {
    position: relative;
    padding: 32px 28px 28px;
}

.detail-dialog__meta {
    margin: 12px 0 0;
}

.detail-dialog__prompt-wrap {
    margin-top: 24px;
}

.detail-dialog__prompt-wrap h3 {
    margin: 0 0 12px;
    color: var(--color-text-muted);
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.92rem;
}

.detail-dialog__prompt-wrap pre {
    margin: 0;
    max-height: min(56vh, 620px);
    overflow: auto;
    padding: 18px;
    border-radius: var(--radius-md);
    background: #141414;
    color: #fff7dc;
    font-family: "Cascadia Code", "Consolas", "Courier New", monospace;
    font-size: 0.92rem;
    line-height: 1.72;
    white-space: pre-wrap;
    word-break: break-word;
}

.copy-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    max-width: min(420px, calc(100vw - 32px));
    padding: 12px 16px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 16px;
    background: rgba(17, 17, 17, 0.94);
    color: #fff7dc;
    box-shadow: var(--shadow-md);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}

.copy-toast--dialog {
    position: static;
    right: auto;
    bottom: auto;
    z-index: auto;
    width: fit-content;
    max-width: min(100%, 460px);
    margin-top: 12px;
    box-shadow: 0 14px 28px rgba(17, 17, 17, 0.16);
    transform: translateY(-8px);
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.copy-toast--error {
    background: rgba(126, 23, 23, 0.96);
    color: #fff0e8;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .copy-toast {
        right: 16px;
        left: 16px;
        bottom: 16px;
        max-width: none;
    }
}

.noscript-banner {
    width: var(--shell-width);
    margin: 0 auto 24px;
    padding: 16px 18px;
    color: #111111;
    background: #fff8df;
    font-weight: 700;
}

@media (max-width: 1280px) {
    .card-grid {
        column-count: 4;
    }
}

@media (max-width: 1120px) {
    .hero__inner,
    .detail-dialog__shell {
        grid-template-columns: 1fr;
    }

    .task-hub__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid {
        column-count: 3;
    }
}

@media (max-width: 860px) {
    .hero__quick-actions,
    .hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .controls__bar,
    .task-hub__header,
    .catalog__header,
    .card__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-grid {
        column-count: 2;
    }

    .detail-dialog__media img {
        min-height: 280px;
        max-height: 40vh;
    }
}

@media (max-width: 620px) {
    .hero {
        padding-top: 18px;
    }

    .hero__content,
    .task-hub,
    .controls,
    .catalog,
    .site-footer,
    .spotlight__body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero__content {
        padding-top: 24px;
        padding-bottom: 20px;
    }

    .hero__quick-actions,
    .hero__stats {
        grid-template-columns: 1fr;
    }

    .task-hub__grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        column-count: 1;
    }

    .detail-dialog {
        width: 100vw;
        max-width: none;
    }

    .detail-dialog__shell {
        min-height: 100vh;
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}