:root {
    --brand: #365cf5;
    --brand-2: #14b8a6;
    --ink: #111827;
    --muted: #667085;
    --surface: #ffffff;
    --soft: #f5f7fb;
    --panel: rgba(255, 255, 255, .86);
    --line: rgba(17, 24, 39, .1);
    --shadow: 0 24px 70px rgba(15, 23, 42, .12);
    --shadow-soft: 0 14px 34px rgba(15, 23, 42, .08);
    --radius: 8px;
}

[data-bs-theme="dark"] {
    --ink: #f7f9fc;
    --muted: #a7b0c0;
    --surface: #0b1020;
    --soft: #101827;
    --panel: rgba(19, 28, 46, .86);
    --line: rgba(255, 255, 255, .13);
    --shadow: 0 24px 70px rgba(0, 0, 0, .38);
    --shadow-soft: 0 14px 34px rgba(0, 0, 0, .24);
}

* {
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(54, 92, 245, .08), transparent 36rem),
        var(--surface);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] body {
    font-family: "Vazirmatn", Tahoma, ui-sans-serif, system-ui, sans-serif;
    line-height: 1.85;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] .btn,
[dir="rtl"] .navbar .nav-link,
[dir="rtl"] .brand-mark {
    font-family: "Vazirmatn", Tahoma, ui-sans-serif, system-ui, sans-serif;
}

a {
    text-decoration: none;
}

.content-card-link {
    display: block;
    height: 100%;
    color: inherit;
}

.content-card-link:hover,
.content-card-link:focus {
    color: inherit;
}

.glass-nav {
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    backdrop-filter: blur(20px) saturate(150%);
}

.site-navbar {
    padding: .75rem 0;
}

.nav-container {
    gap: 1rem;
}

.navbar .nav-link {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 760;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--ink);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--ink);
    font-weight: 860;
    min-width: 0;
}

.brand-mark strong {
    max-width: 13rem;
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-mark span {
    width: 2.55rem;
    height: 2.55rem;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: .85rem;
    font-size: .8rem;
    box-shadow: 0 14px 28px rgba(54, 92, 245, .26);
}

.brand-logo {
    width: 2.55rem;
    height: 2.55rem;
    object-fit: contain;
    padding: .22rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: .85rem;
    box-shadow: var(--shadow-soft);
}

.main-nav {
    align-items: center;
    gap: .15rem;
    padding: .25rem;
    background: color-mix(in srgb, var(--soft) 78%, transparent);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.main-nav .nav-link {
    padding: .5rem .85rem;
    border-radius: 999px;
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    background: var(--surface);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
}

.icon-button {
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    padding: 0;
}

.nav-tool,
.nav-ghost,
.nav-cta {
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    border-radius: 999px;
    white-space: nowrap;
}

.nav-tool,
.nav-ghost {
    color: var(--ink);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid var(--line);
}

.nav-tool:hover,
.nav-tool:focus,
.nav-ghost:hover,
.nav-ghost:focus {
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 36%, var(--line));
}

.nav-cta {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #2145d8);
    border: 1px solid transparent;
    box-shadow: 0 12px 24px rgba(54, 92, 245, .22);
}

.nav-cta:hover,
.nav-cta:focus {
    color: #fff;
    transform: translateY(-1px);
}

.nav-ghost.danger:hover,
.nav-ghost.danger:focus {
    color: #dc2626;
    border-color: rgba(220, 38, 38, .32);
}

.nav-menu-toggle {
    width: 2.7rem;
    height: 2.7rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: .9rem;
    box-shadow: none;
}

.site-navbar .dropdown-menu {
    padding: .45rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.site-navbar .dropdown-item {
    border-radius: calc(var(--radius) - 2px);
    font-weight: 720;
}

.btn,
.form-control,
.form-select {
    border-radius: var(--radius);
}

.btn {
    font-weight: 780;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), #2145d8);
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(54, 92, 245, .22);
}

.btn-soft {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px);
}

.btn-soft:hover {
    color: #fff;
    background: rgba(255, 255, 255, .22);
}

.hero-band {
    min-height: 88vh;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(8, 15, 30, .92), rgba(15, 56, 67, .72)),
        url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=82") center / cover;
    position: relative;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .28), transparent 50%),
        radial-gradient(circle at 78% 25%, rgba(20, 184, 166, .28), transparent 19rem);
    pointer-events: none;
}

.hero-band .container {
    position: relative;
    z-index: 1;
}

.hero-band h1 {
    max-width: 850px;
    margin-bottom: 1.4rem;
    font-size: clamp(2.1rem, 4.8vw, 4.2rem);
    line-height: 1.04;
    font-weight: 880;
}

.hero-band .lead {
    max-width: 690px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.02rem;
}

.hero-actions,
.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.hero-actions {
    margin-top: 2rem;
}

.hero-proof {
    margin-top: 1.35rem;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .48rem .7rem;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    font-size: .78rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #5eead4;
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
    margin-bottom: .95rem;
}

[dir="rtl"] .eyebrow {
    text-transform: none;
}

.product-showcase {
    overflow: hidden;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 18px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .32);
    backdrop-filter: blur(24px);
}

.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    color: rgba(255, 255, 255, .78);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.window-dots {
    display: flex;
    gap: .45rem;
}

.window-dots span {
    width: .7rem;
    height: .7rem;
    background: #fb7185;
    border-radius: 50%;
}

.window-dots span:nth-child(2) {
    background: #facc15;
}

.window-dots span:nth-child(3) {
    background: #34d399;
}

.showcase-body {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: .9rem;
    padding: 1rem;
}

.analytics-card,
.pipeline-list {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.analytics-card {
    min-height: 132px;
    padding: 1rem;
    color: var(--ink);
}

.analytics-card.primary {
    grid-row: span 2;
    color: #fff;
    background: linear-gradient(145deg, #365cf5, #14b8a6);
}

.analytics-card small {
    color: var(--muted);
}

.analytics-card.primary small {
    color: rgba(255, 255, 255, .78);
}

.analytics-card strong {
    display: block;
    margin-top: .35rem;
    font-size: 1.55rem;
}

.analytics-card i {
    color: var(--brand);
    font-size: 1.65rem;
}

.sparkline {
    height: 90px;
    display: flex;
    align-items: end;
    gap: .5rem;
    margin-top: 1.5rem;
}

.sparkline span {
    flex: 1;
    min-height: 25%;
    background: rgba(255, 255, 255, .58);
    border-radius: 999px 999px 4px 4px;
}

.sparkline span:nth-child(2) { height: 55%; }
.sparkline span:nth-child(3) { height: 38%; }
.sparkline span:nth-child(4) { height: 78%; }
.sparkline span:nth-child(5) { height: 62%; }

.pipeline-list {
    grid-column: span 2;
    padding: .4rem 1rem;
    color: var(--ink);
}

.pipeline-list div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .7rem;
    align-items: center;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
}

.pipeline-list div:last-child {
    border-bottom: 0;
}

.pipeline-list span {
    width: .7rem;
    height: .7rem;
    background: var(--brand-2);
    border-radius: 50%;
}

.stats-strip {
    position: relative;
    z-index: 2;
    margin-top: -3.2rem;
}

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

.stats-grid div {
    min-height: 116px;
    padding: 1.35rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stats-grid strong {
    display: block;
    color: var(--brand);
    font-size: 1.8rem;
}

.stats-grid span {
    color: var(--muted);
    font-weight: 760;
    font-size: .88rem;
}

.section-band {
    padding: 6rem 0;
}

.muted-band,
.footer-band,
.auth-band,
.admin-shell {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--soft) 92%, transparent), var(--soft));
}

.team-band,
.contact-band {
    background: var(--soft);
}

.split-heading {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.split-heading h2,
.contact-shell h2 {
    max-width: 790px;
    margin: 0;
    font-size: clamp(1.55rem, 2.8vw, 2.45rem);
    line-height: 1.16;
    font-weight: 850;
}

.filter-bar {
    width: min(100%, 660px);
    display: grid;
    grid-template-columns: 1fr minmax(170px, .55fr) auto;
    gap: .65rem;
}

.feature-card,
.service-card,
.project-card,
.team-card,
.testimonial-card,
.blog-card,
.auth-panel,
.form-panel,
.panel,
.stat-card,
.table-shell,
.contact-shell {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.feature-card,
.service-card,
.team-card,
.testimonial-card,
.blog-card,
.form-panel,
.panel {
    padding: 1.55rem;
}

.feature-card,
.service-card,
.project-card,
.team-card,
.testimonial-card,
.blog-card {
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.feature-card:hover,
.service-card:hover,
.project-card:hover,
.team-card:hover,
.testimonial-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
    box-shadow: var(--shadow);
}

.card-index {
    display: inline-flex;
    color: var(--brand);
    font-weight: 850;
    margin-bottom: 1rem;
}

.service-icon {
    width: 3.2rem;
    height: 3.2rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: var(--radius);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-card p,
.project-card p,
.team-card p,
.feature-card p,
.testimonial-card p,
.blog-card p {
    color: var(--muted);
    font-size: .94rem;
}

.project-card {
    overflow: hidden;
}

.project-art {
    min-height: 220px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    color: #fff;
    padding: 1.25rem;
    background-size: cover;
    background-position: center;
}

.project-art-has-image {
    position: relative;
    background-size: cover;
    background-position: center;
}

.project-art-has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(54, 92, 245, .18), rgba(20, 184, 166, .08));
    pointer-events: none;
}

.project-art-has-image span,
.project-art-has-image i {
    position: relative;
    z-index: 1;
}

.project-art-1 {
    background-image: linear-gradient(135deg, rgba(54, 92, 245, .92), rgba(20, 184, 166, .82)), url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=900&q=80");
}

.project-art-2 {
    background-image: linear-gradient(135deg, rgba(17, 24, 39, .82), rgba(249, 115, 91, .78)), url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=900&q=80");
}

.project-art-3 {
    background-image: linear-gradient(135deg, rgba(20, 184, 166, .9), rgba(54, 92, 245, .75)), url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=900&q=80");
}

.project-art span {
    font-size: .85rem;
    font-weight: 850;
    opacity: .88;
}

.project-art i {
    font-size: 2.1rem;
}

.project-body {
    padding: 1.45rem;
}

.detail-hero {
    padding: 5rem 0;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(8, 15, 30, .94), rgba(15, 56, 67, .74)),
        url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255, 255, 255, .78);
    margin-bottom: 2rem;
    font-weight: 780;
}

.detail-back:hover,
.detail-back:focus {
    color: #fff;
}

[dir="rtl"] .detail-back i {
    transform: rotate(180deg);
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 2rem;
    align-items: center;
}

.detail-hero h1 {
    max-width: 840px;
    margin-bottom: 1.2rem;
    font-size: clamp(2rem, 4.2vw, 3.8rem);
    line-height: 1.06;
    font-weight: 880;
}

.detail-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.02rem;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.8rem;
}

.detail-media {
    position: relative;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)),
        rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 18px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .32);
    backdrop-filter: blur(20px);
}

.detail-media img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
}

.project-gallery-slider {
    width: 100%;
    display: grid;
    gap: .85rem;
    position: relative;
    overflow: hidden;
    padding: .75rem;
    border-radius: 18px;
}

.project-gallery-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 320px;
    border-radius: 14px;
    background: rgba(8, 15, 30, .46);
}

.project-gallery-stage .carousel-inner,
.project-gallery-stage .carousel-item {
    width: 100%;
    height: 100%;
}

.project-gallery-stage .carousel-inner {
    position: relative;
    overflow: hidden;
}

.project-gallery-stage .carousel-item {
    position: relative;
    display: none;
}

.project-gallery-stage .carousel-item.active,
.project-gallery-stage .carousel-item-next,
.project-gallery-stage .carousel-item-prev {
    display: block;
}

.project-gallery-slider .carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    transform: scale(1.01);
    transition: transform .6s ease;
}

.project-gallery-slider .carousel-item.active img {
    transform: scale(1);
}

.project-gallery-slider::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 5;
    height: .22rem;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), #5eead4);
}

.project-gallery-count {
    position: absolute;
    inset-block-start: 1rem;
    inset-inline-start: 1rem;
    z-index: 4;
    padding: .42rem .7rem;
    color: #fff;
    background: rgba(8, 15, 30, .58);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 850;
    backdrop-filter: blur(10px);
}

.project-gallery-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(8, 15, 30, .06), rgba(8, 15, 30, .26) 58%, rgba(8, 15, 30, .74)),
        linear-gradient(90deg, rgba(8, 15, 30, .34), transparent 52%);
    pointer-events: none;
}

.project-gallery-caption {
    position: absolute;
    inset-inline: 1.15rem;
    inset-block-end: 1.15rem;
    z-index: 4;
    max-width: calc(100% - 2.3rem);
    color: #fff;
}

.project-gallery-caption span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: .45rem;
    padding: .35rem .6rem;
    color: #d9fffb;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 850;
    backdrop-filter: blur(10px);
}

.project-gallery-caption strong {
    display: block;
    overflow: hidden;
    font-size: clamp(1.05rem, 2.5vw, 1.45rem);
    font-weight: 880;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-gallery-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 3.15rem;
    height: 3.15rem;
    display: grid;
    place-items: center;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)),
        rgba(8, 15, 30, .58);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .24);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
    backdrop-filter: blur(14px);
}

.project-gallery-control:hover,
.project-gallery-control:focus-visible {
    color: #fff;
    background: rgba(54, 92, 245, .86);
    transform: translateY(-50%) scale(1.04);
    outline: 0;
}

.project-gallery-control i {
    color: inherit;
    font-size: 1.32rem;
}

.project-gallery-control-prev {
    inset-inline-start: 1rem;
}

.project-gallery-control-next {
    inset-inline-end: 1rem;
}

[dir="rtl"] .project-gallery-control i {
    transform: rotate(180deg);
}

.project-gallery-indicators {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    gap: .62rem;
    padding: .62rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)),
        rgba(8, 15, 30, .52);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
    backdrop-filter: blur(16px);
    overflow-x: auto;
    scrollbar-width: thin;
}

.project-gallery-indicators button {
    width: 4.75rem;
    height: 3.25rem;
    overflow: hidden;
    padding: 0;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    opacity: .72;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .18);
    transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease;
}

.project-gallery-indicators button:hover,
.project-gallery-indicators button:focus-visible,
.project-gallery-indicators button.active {
    border-color: #5eead4;
    box-shadow: 0 0 0 3px rgba(94, 234, 212, .16), 0 14px 24px rgba(0, 0, 0, .24);
    opacity: 1;
    transform: translateY(-2px);
    outline: 0;
}

.project-gallery-indicators img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.admin-gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: .75rem;
}

.admin-gallery-preview img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.detail-media > i {
    color: rgba(255, 255, 255, .82);
    font-size: 5rem;
}

.detail-date {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255, 255, 255, .78);
    font-weight: 760;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
}

.detail-content,
.detail-sidebar {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.detail-content {
    padding: clamp(1.35rem, 3vw, 2.25rem);
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
}

.detail-content h2 {
    color: var(--ink);
    font-weight: 850;
}

.detail-sidebar {
    position: sticky;
    top: 6rem;
    overflow: hidden;
}

.detail-meta {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
}

.detail-meta:last-child {
    border-bottom: 0;
}

.detail-meta span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 760;
    margin-bottom: .25rem;
}

.detail-meta strong {
    color: var(--ink);
}

.tag {
    display: inline-flex;
    padding: .32rem .58rem;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .72rem;
}

.avatar {
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #f9735b, var(--brand));
    border-radius: 50%;
    font-weight: 850;
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.stars {
    color: #f59e0b;
    margin-bottom: .75rem;
}

.contact-shell {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 2rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-shell p {
    color: var(--muted);
}

.contact-details,
.footer-contact {
    display: grid;
    gap: .55rem;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: .92rem;
}

.contact-details a,
.contact-details span,
.footer-contact a,
.footer-contact span {
    display: inline-flex;
    align-items: flex-start;
    gap: .55rem;
    color: inherit;
    text-decoration: none;
}

.contact-details i,
.footer-contact i {
    color: var(--brand);
    margin-top: .12rem;
}

.map-box {
    overflow: hidden;
    border-radius: var(--radius);
}

.contact-form {
    padding: 0;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .65rem;
}

.auth-band {
    min-height: 78vh;
    display: grid;
    place-items: center;
    padding: 4.5rem 1rem;
}

.auth-shell {
    width: min(100%, 1040px);
    display: grid;
    grid-template-columns: .95fr 1fr;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-story {
    position: relative;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 1.25rem;
    padding: clamp(1.5rem, 4vw, 2.6rem);
    color: #fff;
    background:
        linear-gradient(145deg, rgba(9, 16, 33, .95), rgba(27, 95, 113, .78)),
        url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1200&q=82") center / cover;
}

.auth-story h1 {
    max-width: 520px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.05;
    font-weight: 880;
}

.auth-story p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
}

.auth-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    padding: .45rem .65rem;
    color: #d9fffb;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
}

.auth-proof {
    display: grid;
    gap: .7rem;
    margin-top: .4rem;
}

.auth-proof div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .65rem;
    align-items: center;
    padding: .72rem;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, .82);
    font-size: .9rem;
}

.auth-proof i {
    color: #5eead4;
    font-size: 1.15rem;
}

.auth-panel {
    width: 100%;
    padding: clamp(1.4rem, 3.6vw, 2.6rem);
}

.auth-panel-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .85rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.auth-panel-head > span {
    width: 2.7rem;
    height: 2.7rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: var(--radius);
    box-shadow: 0 14px 28px rgba(54, 92, 245, .2);
}

.auth-panel h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 860;
}

.auth-panel p {
    margin: .25rem 0 0;
    color: var(--muted);
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-field {
    display: grid;
    gap: .42rem;
}

.auth-field > span {
    font-size: .86rem;
    font-weight: 780;
}

.auth-field div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .6rem;
    padding: .72rem .85rem;
    background: color-mix(in srgb, var(--soft) 68%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-field div:has(.password-toggle) {
    grid-template-columns: auto 1fr auto;
}

.auth-field div:focus-within {
    background: var(--surface);
    border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
    box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--brand) 12%, transparent);
}

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

.auth-field input {
    width: 100%;
    min-width: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
}

.auth-field input::placeholder {
    color: color-mix(in srgb, var(--muted) 72%, transparent);
}

.password-toggle {
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: .55rem;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    outline: 0;
}

.auth-field .password-toggle i {
    color: inherit;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: .9rem;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .72rem .85rem;
    color: #b42318;
    background: #fff1f3;
    border: 1px solid #fecdd3;
    border-radius: var(--radius);
    font-size: .88rem;
}

.auth-alert {
    margin-bottom: 0;
}

.auth-alert-content {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding-inline-end: 1.75rem;
}

.auth-alert-content i {
    flex: 0 0 auto;
    margin-top: .1rem;
}

.auth-form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.auth-switch {
    padding-top: 1rem;
    text-align: center;
}

.auth-switch a {
    font-weight: 820;
}

.narrow-container {
    max-width: 900px;
}

.table-shell,
.panel {
    overflow: hidden;
}

.admin-shell {
    min-height: 88vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.2rem;
    padding: 1.2rem;
    transition: grid-template-columns .22s ease;
}

.admin-shell.sidebar-collapsed {
    grid-template-columns: 88px 1fr;
}

.admin-sidebar,
.admin-card,
.admin-topbar {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.admin-sidebar {
    position: sticky;
    top: 5rem;
    height: calc(100vh - 6.2rem);
    overflow: auto;
    padding: 1rem;
}

.admin-sidebar-heading {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .6rem 1rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: .8rem;
}

.admin-sidebar-close {
    display: none;
    margin-inline-start: auto;
}

.admin-sidebar-heading span {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: var(--radius);
    font-size: .78rem;
    font-weight: 850;
}

.admin-sidebar nav {
    display: grid;
    gap: .25rem;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .68rem .75rem;
    color: var(--muted);
    border-radius: var(--radius);
    font-size: .92rem;
    font-weight: 720;
}

.admin-shell.sidebar-collapsed .admin-sidebar-heading {
    justify-content: center;
    padding-inline: 0;
}

.admin-shell.sidebar-collapsed .admin-sidebar-heading strong,
.admin-shell.sidebar-collapsed .admin-sidebar nav a span {
    display: none;
}

.admin-shell.sidebar-collapsed .admin-sidebar nav a {
    justify-content: center;
    padding-inline: 0;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    color: var(--ink);
    background: color-mix(in srgb, var(--brand) 9%, transparent);
}

.admin-workspace {
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: .85rem;
    backdrop-filter: blur(18px);
}

.admin-topbar-left,
.admin-topbar-actions,
.admin-user-chip {
    display: flex;
    align-items: center;
}

.admin-topbar-left {
    gap: .85rem;
    min-width: 0;
}

.admin-topbar-left strong {
    display: block;
    font-size: 1rem;
    font-weight: 850;
}

.admin-topbar-kicker {
    display: block;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 760;
}

.admin-topbar-actions {
    gap: .6rem;
}

.admin-user-chip {
    gap: .45rem;
    max-width: 220px;
    padding: .38rem .58rem;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: .88rem;
    font-weight: 720;
}

.admin-user-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-main {
    min-width: 0;
}

.admin-page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.admin-page-head h1 {
    margin: 0;
    font-size: clamp(1.55rem, 2vw, 2.1rem);
    font-weight: 850;
}

.admin-card {
    padding: 1rem;
}

.admin-table {
    margin-bottom: 0;
}

.admin-table th {
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
}

.admin-table td {
    vertical-align: middle;
}

.admin-form .form-label {
    font-weight: 760;
}

.admin-inline-form {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(120px, .8fr) auto;
    gap: .5rem;
    align-items: center;
}

.stat-card {
    padding: 1.25rem;
}

.stat-card span,
.inbox-item span {
    display: block;
    color: var(--muted);
    font-size: .9rem;
}

.stat-card strong {
    display: block;
    font-size: 1.6rem;
}

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

.modern-stat {
    position: relative;
    overflow: hidden;
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modern-stat::after {
    content: "";
    position: absolute;
    width: 7rem;
    height: 7rem;
    inset-block-start: -3.5rem;
    inset-inline-end: -2.5rem;
    background: color-mix(in srgb, var(--stat-tone, var(--brand)) 18%, transparent);
    border-radius: 50%;
}

.modern-stat-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modern-stat-head i {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    color: var(--stat-tone, var(--brand));
    background: color-mix(in srgb, var(--stat-tone, var(--brand)) 12%, transparent);
    border-radius: var(--radius);
    font-size: 1.1rem;
}

.modern-stat strong {
    position: relative;
    z-index: 1;
    margin-top: .6rem;
    font-size: 2rem;
}

.modern-stat.blue { --stat-tone: #365cf5; }
.modern-stat.teal { --stat-tone: #14b8a6; }
.modern-stat.amber { --stat-tone: #f59e0b; }
.modern-stat.violet { --stat-tone: #8b5cf6; }
.modern-stat.green { --stat-tone: #22c55e; }
.modern-stat.pink { --stat-tone: #ec4899; }
.modern-stat.slate { --stat-tone: #64748b; }

.stat-meter,
.progress-line {
    overflow: hidden;
    height: .42rem;
    background: color-mix(in srgb, var(--muted) 16%, transparent);
    border-radius: 999px;
}

.stat-meter span,
.progress-line span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--stat-tone, var(--brand)), var(--brand-2));
    border-radius: inherit;
}

.chart-card,
.mix-card {
    min-height: 440px;
}

.chart-canvas-wrap {
    position: relative;
    width: 100%;
}

.chart-canvas-wrap.tall {
    height: 330px;
}

.chart-canvas-wrap.compact {
    height: 168px;
}

.mini-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
    align-items: stretch;
}

.chart-canvas-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.chart-card .panel-heading,
.mix-card .panel-heading {
    align-items: start;
}

.panel-heading span {
    color: var(--muted);
    font-size: .86rem;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 720;
}

.legend-dot {
    width: .65rem;
    height: .65rem;
    display: inline-block;
    border-radius: 50%;
}

.legend-dot.requests {
    background: var(--brand);
}

.legend-dot.messages {
    background: var(--brand-2);
}

.line-chart {
    height: 230px;
    padding: .5rem 0 0;
}

.line-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-grid-lines {
    fill: none;
    stroke: color-mix(in srgb, var(--muted) 16%, transparent);
    stroke-width: .45;
}

.chart-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.chart-line.requests {
    stroke: var(--brand);
}

.chart-line.messages {
    stroke: var(--brand-2);
}

.chart-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}

.chart-bar-group {
    display: grid;
    gap: .45rem;
    text-align: center;
}

.chart-bar-stack {
    height: 86px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: .25rem;
    padding: .45rem;
    background: color-mix(in srgb, var(--soft) 72%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.bar {
    width: .72rem;
    min-height: .35rem;
    border-radius: 999px 999px 3px 3px;
}

.bar.requests {
    background: var(--brand);
}

.bar.messages {
    background: var(--brand-2);
}

.metric-list {
    display: grid;
    gap: .95rem;
}

.metric-row {
    display: grid;
    gap: .45rem;
}

.metric-row > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.metric-row strong {
    font-size: .92rem;
}

.metric-row span {
    color: var(--muted);
    font-size: .85rem;
}

.metric-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 1.35rem;
}

.metric-pills div {
    position: relative;
    overflow: hidden;
    padding: .85rem;
    background: color-mix(in srgb, var(--soft) 74%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.metric-pills span,
.metric-pills strong {
    position: relative;
    z-index: 1;
    display: block;
}

.metric-pills span {
    color: var(--muted);
    font-size: .78rem;
}

.metric-pills strong {
    font-size: 1.25rem;
}

.metric-pills small {
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    height: .22rem;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.inbox-item {
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--line);
}

.settings-form {
    padding-bottom: 6rem;
}

.settings-grid {
    display: grid;
    gap: 1rem;
}

.settings-section {
    padding: 1.1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.settings-section-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .85rem;
    align-items: start;
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.settings-section-head > span {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: var(--radius);
}

.settings-section h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 850;
}

.settings-section p,
.settings-help,
.settings-savebar span {
    color: var(--muted);
    font-size: .88rem;
}

.settings-section p {
    margin: .18rem 0 0;
}

.settings-help {
    margin-top: .4rem;
}

.settings-asset-preview {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: .7rem;
    color: var(--muted);
    font-size: .85rem;
}

.settings-asset-preview img {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
    padding: .35rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: .7rem;
}

.settings-asset-preview a {
    color: inherit;
    overflow-wrap: anywhere;
}

.settings-savebar {
    position: sticky;
    bottom: 1rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: .9rem;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.settings-savebar strong,
.settings-savebar span {
    display: block;
}

.footer-band {
    border-top: 1px solid var(--line);
}

.footer-brand {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.social-links a {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-grid;
    place-items: center;
    color: var(--brand);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: .65rem;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .hero-band {
        min-height: auto;
        padding: 6rem 0 7rem;
    }

    .hero-band h1 {
        font-size: 2.35rem;
    }

    .showcase-body,
    .stats-grid,
    .dashboard-stat-grid,
    .contact-shell,
    .detail-hero-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }

    .project-gallery-stage {
        min-height: 300px;
    }

    .project-gallery-indicators {
        justify-content: flex-start;
    }

    .project-gallery-caption {
        inset-block-end: 1rem;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .analytics-card.primary,
    .pipeline-list {
        grid-row: auto;
        grid-column: auto;
    }

    .split-heading {
        display: block;
    }

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

    .auth-story {
        min-height: 320px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
        margin-top: 1.5rem;
    }

    .navbar-collapse {
        margin-top: .85rem;
        padding: .75rem;
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow-soft);
    }

    .main-nav {
        align-items: stretch;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .main-nav .nav-link {
        padding: .7rem .85rem;
        border-radius: var(--radius);
    }

    .nav-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: .75rem;
    }

    .nav-actions .dropdown,
    .nav-actions form {
        min-width: 0;
    }

    .nav-actions .btn,
    .nav-actions form button {
        width: 100%;
    }

    .admin-shell {
        display: block;
        padding: .9rem;
    }

    .admin-sidebar {
        position: fixed;
        inset-block: .75rem;
        inset-inline-start: .75rem;
        z-index: 1040;
        width: min(82vw, 300px);
        height: auto;
        transform: translateX(-112%);
        transition: transform .22s ease;
    }

    [dir="rtl"] .admin-sidebar {
        transform: translateX(112%);
    }

    .admin-shell.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-shell.sidebar-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1030;
        background: rgba(15, 23, 42, .44);
        backdrop-filter: blur(2px);
    }

    .admin-sidebar-close {
        display: inline-grid;
        place-items: center;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar-heading {
        justify-content: flex-start;
        padding: .6rem .6rem 1rem;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar-heading strong,
    .admin-shell.sidebar-collapsed .admin-sidebar nav a span {
        display: inline;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar nav a {
        justify-content: flex-start;
        padding: .68rem .75rem;
    }

    .admin-topbar {
        top: .75rem;
    }

    .admin-page-head {
        align-items: start;
        flex-direction: column;
    }

    .admin-inline-form {
        grid-template-columns: 1fr;
    }

    .settings-savebar {
        align-items: stretch;
        flex-direction: column;
    }

    .chart-card,
    .mix-card {
        min-height: auto;
    }

    .chart-canvas-wrap.tall {
        height: 280px;
    }
}

@media (max-width: 575.98px) {
    .hero-actions .btn,
    .nav-actions .btn,
    .nav-actions form,
    .admin-topbar-actions .btn,
    .newsletter-form {
        width: 100%;
    }

    .site-navbar {
        padding: .55rem 0;
    }

    .brand-mark strong {
        max-width: 10.5rem;
    }

    .nav-actions {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-topbar-actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .auth-story {
        min-height: auto;
    }

    .auth-proof {
        display: none;
    }

    .chart-bars,
    .metric-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .line-chart {
        height: 190px;
    }

    .mini-chart-grid {
        grid-template-columns: 1fr;
    }

    .chart-canvas-wrap.tall,
    .chart-canvas-wrap.compact {
        height: 240px;
    }

    .project-gallery-control {
        width: 2.35rem;
        height: 2.35rem;
    }

    .project-gallery-indicators button {
        width: 3.4rem;
        height: 2.35rem;
        flex: 0 0 auto;
    }

    .project-gallery-caption {
        inset-inline: .9rem;
        inset-block-end: .9rem;
    }

    .project-gallery-caption span {
        display: none;
    }

    .project-gallery-caption strong {
        font-size: 1rem;
    }

    .project-gallery-indicators {
        padding: .45rem;
    }

    .project-gallery-stage {
        min-height: 240px;
        aspect-ratio: 4 / 3;
    }
}
