:root {
    --ink: #111315;
    --muted: #606873;
    --line: #d9dedc;
    --paper: #f7f6f1;
    --surface: #ffffff;
    --accent: #1f7a5a;
    --accent-strong: #0d5d43;
    --steel: #2f4653;
    --gold: #c99a3f;
    --shadow: 0 18px 48px rgba(17, 19, 21, 0.14);
}

body.public-body {
    --accent: #0f6b4f;
    --accent-strong: #074532;
    --steel: #263f4c;
    --gold: #d8a232;
}

body.public-body .brand {
    gap: 14px;
}

body.public-body .brand img {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 10px 18px rgba(7, 69, 50, 0.2));
}

body.public-body .brand strong {
    font-size: 1.18rem;
    color: var(--accent-strong);
}

body.public-body .site-header {
    border-bottom: 3px solid rgba(216, 162, 50, 0.38);
}

body.public-body .hero-overlay,
body.public-body .page-hero .hero-overlay {
    background: linear-gradient(90deg, rgba(4, 36, 31, 0.88), rgba(10, 75, 58, 0.68) 50%, rgba(8, 31, 42, 0.34));
}

body.public-body .btn-primary {
    background: linear-gradient(135deg, var(--accent-strong), var(--gold));
    border-color: var(--gold);
    color: #fff;
}

/* NiceAdmin-inspired panel refresh */
.panel-body {
    min-height: 100vh;
    display: block;
    background: #f6f8ff;
    color: #263044;
    font-size: 14px;
}

.panel-app-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    height: 76px;
    display: grid;
    grid-template-columns: 270px minmax(320px, 620px) 1fr;
    gap: 18px;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid #dce5ff;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 18px rgba(1, 41, 112, 0.08);
    backdrop-filter: blur(14px);
}

.panel-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.panel-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: #012970;
    font-size: 1.08rem;
    font-weight: 800;
}

.panel-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.panel-menu-button,
.panel-icon-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce5ff;
    background: #fff;
    color: #4154f1;
    cursor: pointer;
}

.panel-menu-button {
    font-size: 1.15rem;
}

.panel-search {
    min-height: 46px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid #ccd8ff;
    background: #fff;
}

.panel-search span {
    color: #899bbd;
    font-size: 1.2rem;
}

.panel-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #263044;
    font: inherit;
}

.panel-search kbd {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce5ff;
    color: #899bbd;
    background: #f8faff;
    font: inherit;
    font-size: 0.78rem;
}

.panel-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.panel-icon-button {
    position: relative;
    font-size: 1rem;
}

.panel-badge {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4154f1;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
}

.panel-badge.danger {
    background: #ff4d6d;
}

.panel-user-chip {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    color: #012970;
}

.panel-avatar {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4154f1, #6f7cff);
    color: #fff;
    font-weight: 900;
}

.panel-user-chip span:last-child {
    display: grid;
    line-height: 1.1;
}

.panel-user-chip strong {
    font-size: 0.9rem;
}

.panel-user-chip small {
    color: #899bbd;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.panel-sidebar {
    position: fixed;
    top: 76px;
    bottom: 0;
    left: 0;
    z-index: 40;
    width: 280px;
    height: auto;
    padding: 16px 12px;
    overflow-y: auto;
    border-right: 1px solid #dce5ff;
    background: #fff;
    box-shadow: 0 0 22px rgba(1, 41, 112, 0.08);
}

.panel-nav {
    display: grid;
    gap: 4px;
}

.panel-nav a {
    min-height: 44px;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #273246;
    background: #fff;
    font-weight: 700;
}

.panel-nav a:hover,
.panel-nav a.active {
    background: #eef2ff;
    color: #4154f1;
}

.panel-nav-icon {
    color: #899bbd;
    font-weight: 900;
    text-align: center;
}

.panel-nav a.active .panel-nav-icon,
.panel-nav a:hover .panel-nav-icon {
    color: #4154f1;
}

.panel-nav a small {
    color: #4154f1;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.panel-nav a b {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b8c5ff;
    color: #4154f1;
    font-size: 0.72rem;
}

.panel-nav-section {
    margin: 18px 10px 8px;
    color: #899bbd;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-sidebar-footer {
    position: sticky;
    bottom: 0;
    margin-top: 30px;
    padding: 10px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #fff;
}

.panel-sidebar-footer a,
.panel-sidebar-footer button {
    min-height: 38px;
    border: 1px solid #dce5ff;
    background: #f8faff;
    color: #012970;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.panel-main {
    min-width: 0;
    margin-left: 280px;
    padding: 112px 40px 38px;
}

.panel-page-head {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.panel-page-head h1 {
    margin: 0 0 6px;
    color: #012970;
    font-size: 1.65rem;
    line-height: 1.2;
}

.panel-page-head p {
    margin: 0;
    color: #5f6f94;
}

.panel-primary-button,
.panel-secondary-button,
.panel-danger-button {
    min-height: 42px;
    border: 1px solid transparent;
    padding: 10px 14px;
    font-weight: 800;
}

.panel-primary-button {
    margin-top: 0;
    background: #4154f1;
    color: #fff;
    box-shadow: 0 8px 18px rgba(65, 84, 241, 0.18);
}

.panel-primary-button:hover {
    background: #3445db;
}

.nice-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.nice-metric-card {
    position: relative;
    min-height: 136px;
    overflow: hidden;
    padding: 22px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(1, 41, 112, 0.08);
}

.nice-metric-card::after {
    content: "";
    position: absolute;
    top: -72px;
    right: -44px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.nice-metric-card.green {
    background: #dff2f0;
}

.nice-metric-card.blue {
    background: #e7efff;
}

.nice-metric-card.orange {
    background: #f7eee5;
}

.nice-metric-card.purple {
    background: #ececff;
}

.nice-metric-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(65, 84, 241, 0.12);
    color: #4154f1;
    font-size: 1.35rem;
    font-weight: 900;
}

.nice-metric-card small {
    display: block;
    color: #5f6f94;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.nice-metric-card strong {
    display: block;
    color: #012970;
    font-size: 1.22rem;
}

.nice-metric-card p {
    margin: 6px 0 0;
    color: #52706b;
    font-size: 0.88rem;
}

.nice-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    gap: 20px;
}

.nice-card {
    border: 1px solid #dce5ff;
    background: #fff;
    box-shadow: 0 6px 22px rgba(1, 41, 112, 0.08);
}

.nice-card-head {
    min-height: 56px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #edf1ff;
}

.nice-card-head h2,
.panel-toolbar h2,
.panel-form-head h2,
.panel-empty h2 {
    margin: 0 0 4px;
    color: #012970;
    font-size: 1.05rem;
}

.nice-card-head p,
.panel-toolbar p,
.panel-form-head p,
.panel-empty p {
    margin: 0;
    color: #5f6f94;
}

.nice-segmented {
    display: inline-flex;
    border: 1px solid #ccd8ff;
}

.nice-segmented span {
    padding: 8px 11px;
    color: #5f6f94;
    font-size: 0.72rem;
    font-weight: 900;
}

.nice-segmented span + span {
    border-left: 1px solid #ccd8ff;
}

.nice-segmented .active {
    color: #4154f1;
    background: #eef2ff;
}

.mini-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 20px;
}

.mini-summary-grid div {
    padding: 14px;
    border: 1px solid #e6ecff;
    background: #fcfdff;
}

.mini-summary-grid small {
    color: #5f6f94;
    font-weight: 900;
}

.mini-summary-grid strong {
    display: block;
    color: #012970;
    font-size: 1rem;
}

.nice-chart {
    height: 300px;
    padding: 0 20px 22px;
}

.nice-chart svg {
    width: 100%;
    height: 100%;
}

.nice-chart .grid {
    fill: none;
    stroke: #dce5ff;
    stroke-dasharray: 5 5;
}

.nice-chart .line {
    fill: none;
    stroke-width: 4;
}

.nice-chart .primary {
    stroke: #4154f1;
}

.nice-chart .secondary {
    stroke: #f2a100;
}

.activity-list {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.activity-list a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid #e6ecff;
    color: #273246;
}

.activity-list a:hover {
    background: #f8faff;
}

.activity-list span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-row: span 2;
    background: #eef2ff;
    color: #4154f1;
    font-weight: 900;
}

.activity-list strong {
    color: #012970;
}

.activity-list small {
    color: #5f6f94;
}

.panel-toolbar {
    margin-bottom: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.toolbar-stats span {
    display: inline-flex;
    padding: 8px 10px;
    background: #eef2ff;
    color: #4154f1;
    font-weight: 900;
}

.panel-table-card {
    padding: 0;
}

.panel-table-row {
    grid-template-columns: minmax(300px, 1.55fr) 150px 150px minmax(230px, 0.85fr);
    padding: 14px 20px;
}

.panel-table-row.head {
    background: #fcfdff;
    color: #5f6f94;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.project-cell img {
    border: 1px solid #dce5ff;
}

.status-pill {
    border-radius: 999px;
}

.table-actions a,
.table-actions button {
    min-height: 34px;
    border-color: #dce5ff;
    background: #fff;
}

.table-actions a:hover,
.table-actions button:hover {
    background: #eef2ff;
}

.panel-empty {
    min-height: 255px;
    padding: 44px 20px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
}

.empty-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4154f1;
    font-size: 1.6rem;
    font-weight: 900;
}

.panel-form-card {
    border: 1px solid #dce5ff;
}

.panel-form-grid input,
.panel-form-grid select,
.panel-form-grid textarea {
    border-color: #ccd8ff;
}

@media (max-width: 1200px) {
    .panel-app-header {
        grid-template-columns: 250px minmax(240px, 1fr) auto;
    }

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

    .nice-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .panel-app-header {
        position: static;
        height: auto;
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .panel-header-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .panel-sidebar {
        position: static;
        width: auto;
        height: auto;
    }

    .panel-main {
        margin-left: 0;
        padding: 22px 14px;
    }

    .panel-page-head,
    .panel-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .nice-metric-grid,
    .mini-summary-grid {
        grid-template-columns: 1fr;
    }

    .panel-search {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .panel-search kbd {
        display: none;
    }

    .panel-user-chip span:last-child {
        display: none;
    }
}

/* Public corporate refresh */
body.public-body .site-header {
    padding: 18px 0;
}

body.public-body .navbar {
    min-height: 90px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 14, 17, 0.88);
}

body.public-body .brand {
    gap: 16px;
}

body.public-body .brand img {
    width: 76px;
    height: 76px;
    padding: 7px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

body.public-body .brand strong {
    color: #fff;
    font-size: 1.24rem;
    line-height: 1;
}

body.public-body .brand small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.public-body .nav-links a {
    border-radius: 8px;
    font-weight: 800;
}

body.public-body .nav-links .panel-login {
    color: #101418;
    background: #f7f1e2;
}

body.public-body .hero,
body.public-body .page-hero {
    min-height: 92vh;
    background-position: center;
}

body.public-body .compact-hero {
    min-height: 58vh;
}

body.public-body .hero-content {
    max-width: 1080px;
    padding-top: 185px;
    padding-bottom: 74px;
}

.hero-brand-mark {
    width: fit-content;
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}

.hero-brand-mark img {
    width: 112px;
    height: 112px;
    padding: 10px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.hero-brand-mark span {
    display: grid;
    line-height: 1;
}

.hero-brand-mark strong {
    font-size: 1.72rem;
    font-weight: 900;
}

.hero-brand-mark small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.public-body h1 {
    max-width: 1040px;
    font-size: clamp(3.5rem, 7vw, 6.75rem);
    line-height: 0.91;
}

body.public-body .hero p {
    max-width: 800px;
    font-size: 1.24rem;
}

.hero-credibility {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-credibility span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
    font-weight: 900;
}

body.public-body .hero-proof {
    max-width: 960px;
    margin-top: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(7, 15, 17, 0.42);
    backdrop-filter: blur(14px);
}

body.public-body .hero-proof div {
    padding: 18px 20px;
}

body.public-body .stats-grid strong {
    color: #f4c26b;
}

.wide-heading {
    max-width: 900px;
}

.wide-heading p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.06rem;
}

.featured-project-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.92fr 0.92fr;
    gap: 18px;
    align-items: stretch;
}

.featured-project-card {
    min-height: 520px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border-radius: 8px;
    background: #101418;
    box-shadow: 0 22px 58px rgba(16, 20, 24, 0.18);
}

.featured-project-card:first-child {
    min-height: 590px;
}

.featured-project-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 260ms ease;
}

.featured-project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 14, 17, 0.05), rgba(8, 14, 17, 0.9)),
        linear-gradient(90deg, rgba(8, 14, 17, 0.58), rgba(8, 14, 17, 0.1));
}

.featured-project-card div {
    position: relative;
    z-index: 1;
    padding: 26px;
    color: #fff;
}

.featured-project-card span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #17140c;
    background: #f4c26b;
    font-size: 0.78rem;
    font-weight: 900;
}

.featured-project-card h3 {
    margin-bottom: 10px;
    font-size: clamp(1.3rem, 2vw, 2rem);
}

.featured-project-card p {
    color: rgba(255, 255, 255, 0.78);
}

.featured-project-card .text-link {
    color: #fff;
}

.featured-project-card:hover img {
    transform: scale(1.06);
}

.project-preview-actions {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
}

body.public-body .project-card {
    overflow: hidden;
}

body.public-body .project-card h2 {
    font-size: 1.28rem;
}

body.public-body .site-footer {
    border-top: 6px solid #c28c2d;
}

@media (max-width: 1100px) {
    body.public-body .navbar {
        min-height: 78px;
    }

    body.public-body .brand img {
        width: 62px;
        height: 62px;
    }

    .featured-project-grid {
        grid-template-columns: 1fr;
    }

    .featured-project-card,
    .featured-project-card:first-child {
        min-height: 430px;
    }
}

@media (max-width: 980px) {
    body.public-body .hero {
        min-height: 86vh;
    }

    .hero-brand-mark img {
        width: 88px;
        height: 88px;
    }

    .hero-brand-mark strong {
        font-size: 1.34rem;
    }

    body.public-body .hero-proof {
        grid-template-columns: 1fr;
    }

    body.public-body .hero-proof div + div {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .project-preview-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    body.public-body .site-header {
        padding: 10px 0;
    }

    body.public-body .navbar {
        width: min(100% - 20px, 1180px);
        padding: 10px;
    }

    body.public-body .brand {
        gap: 10px;
    }

    body.public-body .brand img {
        width: 54px;
        height: 54px;
    }

    body.public-body .brand strong {
        font-size: 1rem;
    }

    body.public-body .brand small {
        font-size: 0.68rem;
    }

    body.public-body .hero-content {
        padding-top: 138px;
        padding-bottom: 42px;
    }

    .hero-brand-mark {
        margin-bottom: 20px;
    }

    .hero-brand-mark img {
        width: 74px;
        height: 74px;
    }

    .hero-brand-mark strong {
        font-size: 1.08rem;
    }

    .hero-brand-mark small {
        font-size: 0.72rem;
    }

    body.public-body h1 {
        font-size: clamp(2.7rem, 15vw, 4.6rem);
    }

    body.public-body .hero p {
        font-size: 1.04rem;
    }

    .hero-credibility span {
        width: 100%;
    }

    .featured-project-card,
    .featured-project-card:first-child {
        min-height: 370px;
    }

    .featured-project-card div {
        padding: 20px;
    }
}

/* Public final overrides */
body.public-body {
    --ink: #101418;
    --muted: #5d6670;
    --line: #d8ddd8;
    --paper: #f4f1ea;
    --surface: #fffdf8;
    --accent: #186f5b;
    --accent-strong: #0c4e40;
    --steel: #273943;
    --gold: #c28c2d;
    --shadow: 0 22px 60px rgba(16, 20, 24, 0.15);
    background:
        linear-gradient(90deg, rgba(16, 20, 24, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(16, 20, 24, 0.03) 1px, transparent 1px),
        var(--paper);
    background-size: 44px 44px, 44px 44px, auto;
}

body.public-body .site-header {
    z-index: 60;
}

body.public-body .navbar {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(13, 17, 19, 0.86);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

body.public-body .brand img,
body.public-body .btn,
body.public-body .service-card,
body.public-body .project-card,
body.public-body .contact-form,
body.public-body .info-item,
body.public-body .empty-projects,
body.public-body .profile-dropdown,
body.public-body .kuzu-toast {
    border-radius: 8px;
}

body.public-body .hero,
body.public-body .page-hero {
    min-height: 88vh;
    align-items: center;
    overflow: hidden;
}

body.public-body .compact-hero {
    min-height: 62vh;
}

body.public-body .hero::after,
body.public-body .page-hero::after {
    content: "";
    position: absolute;
    right: 7vw;
    bottom: 72px;
    width: min(420px, 32vw);
    height: 38vh;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 34px);
    opacity: 0.55;
}

body.public-body .hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 8, 8, 0.88), rgba(5, 8, 8, 0.62) 48%, rgba(5, 8, 8, 0.22)),
        linear-gradient(0deg, rgba(5, 8, 8, 0.8), rgba(5, 8, 8, 0.12));
}

body.public-body .hero-content,
body.public-body .page-hero-content {
    width: min(1160px, calc(100% - 40px));
    padding: 142px 0 64px;
}

body.public-body h1 {
    max-width: 960px;
    font-size: 5.35rem;
    line-height: 0.94;
}

body.public-body h2 {
    max-width: 760px;
    font-size: 2.75rem;
}

body.public-body .hero p,
body.public-body .page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.2rem;
}

body.public-body .btn {
    min-height: 52px;
    padding: 13px 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

body.public-body .btn-primary {
    background: linear-gradient(135deg, var(--accent), #22926f);
}

body.public-body .btn-dark {
    background: linear-gradient(135deg, var(--ink), var(--steel));
}

body.public-body .stats-band,
body.public-body .stats-grid div {
    background: #101418;
}

body.public-body .section {
    position: relative;
    padding: 108px 0;
}

body.public-body .section-copy p {
    max-width: 680px;
    color: #53606a;
    font-size: 1.08rem;
}

body.public-body .services-section {
    background:
        linear-gradient(135deg, rgba(24, 111, 91, 0.08), transparent 34%),
        #fffdf8;
}

body.public-body .service-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(16, 20, 24, 0.1);
    background:
        linear-gradient(135deg, rgba(194, 140, 45, 0.1), transparent 52%),
        var(--surface);
}

body.public-body .service-card::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    border-right: 2px solid rgba(24, 111, 91, 0.28);
    border-bottom: 2px solid rgba(24, 111, 91, 0.28);
}

body.public-body .contact-section {
    background:
        linear-gradient(135deg, rgba(194, 140, 45, 0.16), transparent 40%),
        #273943;
}

body.public-body .contact-form {
    border: 1px solid rgba(255, 255, 255, 0.16);
}

body.public-body .map-frame {
    height: 480px;
    border-top: 1px solid rgba(16, 20, 24, 0.1);
}

body.public-body .project-card {
    overflow: hidden;
    background: #fffdf8;
}

body.public-body .project-card div {
    min-height: 220px;
    display: grid;
    align-content: start;
}

body.public-body .site-footer {
    background:
        linear-gradient(135deg, rgba(24, 111, 91, 0.18), transparent 36%),
        #101418;
}

@media (max-width: 1200px) {
    body.public-body h1 {
        font-size: 4.4rem;
    }
}

@media (max-width: 980px) {
    body.public-body .hero::after,
    body.public-body .page-hero::after {
        display: none;
    }

    body.public-body h1 {
        font-size: 3.35rem;
    }
}

@media (max-width: 640px) {
    body.public-body .hero,
    body.public-body .page-hero {
        min-height: 86vh;
    }

    body.public-body .hero-content,
    body.public-body .page-hero-content {
        width: min(100% - 24px, 1160px);
        padding: 118px 0 38px;
    }

    body.public-body h1 {
        font-size: 2.65rem;
    }

    body.public-body h2 {
        font-size: 1.9rem;
    }

    body.public-body main {
        padding-bottom: 156px;
    }
}

/* Public showcase refresh */
body.public-body {
    --ink: #101418;
    --muted: #5d6670;
    --line: #d8ddd8;
    --paper: #f4f1ea;
    --surface: #fffdf8;
    --accent: #186f5b;
    --accent-strong: #0c4e40;
    --steel: #273943;
    --gold: #c28c2d;
    --clay: #8f4d36;
    --shadow: 0 22px 60px rgba(16, 20, 24, 0.15);
    background:
        linear-gradient(90deg, rgba(16, 20, 24, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(16, 20, 24, 0.03) 1px, transparent 1px),
        var(--paper);
    background-size: 44px 44px, 44px 44px, auto;
}

body.public-body .site-header {
    z-index: 60;
}

body.public-body .navbar {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(13, 17, 19, 0.86);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

body.public-body .brand img,
body.public-body .btn,
body.public-body .service-card,
body.public-body .project-card,
body.public-body .contact-form,
body.public-body .info-item,
body.public-body .empty-projects,
body.public-body .profile-dropdown,
body.public-body .kuzu-toast {
    border-radius: 8px;
}

body.public-body .hero,
body.public-body .page-hero {
    min-height: 88vh;
    align-items: center;
    overflow: hidden;
}

body.public-body .compact-hero {
    min-height: 62vh;
}

body.public-body .hero::after,
body.public-body .page-hero::after {
    content: "";
    position: absolute;
    right: 7vw;
    bottom: 72px;
    width: min(420px, 32vw);
    height: 38vh;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 34px);
    opacity: 0.55;
}

body.public-body .hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 8, 8, 0.88), rgba(5, 8, 8, 0.62) 48%, rgba(5, 8, 8, 0.22)),
        linear-gradient(0deg, rgba(5, 8, 8, 0.8), rgba(5, 8, 8, 0.12));
}

body.public-body .hero-content,
body.public-body .page-hero-content {
    width: min(1160px, calc(100% - 40px));
    padding: 142px 0 64px;
}

body.public-body h1 {
    max-width: 960px;
    font-size: 5.35rem;
    line-height: 0.94;
}

body.public-body h2 {
    max-width: 760px;
    font-size: 2.75rem;
}

body.public-body .hero p,
body.public-body .page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.2rem;
}

body.public-body .btn {
    min-height: 52px;
    padding: 13px 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

body.public-body .btn-primary {
    background: linear-gradient(135deg, var(--accent), #22926f);
}

body.public-body .btn-dark {
    background: linear-gradient(135deg, var(--ink), var(--steel));
}

.hero-proof {
    width: min(920px, 100%);
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

.hero-proof div {
    min-height: 104px;
    padding: 22px;
    display: grid;
    align-content: center;
    gap: 4px;
}

.hero-proof div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-proof span,
.image-badge span,
.process-grid span {
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-proof strong {
    color: #fff;
    font-size: 1rem;
}

body.public-body .stats-band {
    background: #101418;
}

body.public-body .stats-grid div {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent),
        #101418;
}

body.public-body .section {
    position: relative;
    padding: 108px 0;
}

.story-section {
    background: linear-gradient(180deg, #fffdf8, #f4f1ea);
}

body.public-body .section-copy p {
    max-width: 680px;
    color: #53606a;
    font-size: 1.08rem;
}

.image-panel-featured {
    position: relative;
    min-height: 500px;
    border: 1px solid rgba(16, 20, 24, 0.1);
}

.image-panel-featured img {
    min-height: 500px;
}

.image-badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: min(300px, calc(100% - 48px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    background: rgba(16, 20, 24, 0.74);
    backdrop-filter: blur(14px);
}

.image-badge.dark {
    background: rgba(39, 57, 67, 0.78);
}

.image-badge strong {
    display: block;
    margin-top: 4px;
    line-height: 1.25;
}

body.public-body .services-section {
    background:
        linear-gradient(135deg, rgba(24, 111, 91, 0.08), transparent 34%),
        #fffdf8;
}

.service-grid-rich {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid-rich .service-card {
    min-height: 168px;
    grid-column: auto;
    justify-content: center;
    gap: 12px;
}

.service-grid-rich .service-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

body.public-body .service-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(16, 20, 24, 0.1);
    background:
        linear-gradient(135deg, rgba(194, 140, 45, 0.1), transparent 52%),
        var(--surface);
}

body.public-body .service-card::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    border-right: 2px solid rgba(24, 111, 91, 0.28);
    border-bottom: 2px solid rgba(24, 111, 91, 0.28);
}

.process-band {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(194, 140, 45, 0.18), transparent 38%),
        linear-gradient(90deg, #101418, #273943);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid div {
    min-height: 240px;
    padding: 32px 26px;
    display: grid;
    align-content: space-between;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.process-grid div:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.process-grid strong {
    display: block;
    margin-top: 48px;
    font-size: 1.45rem;
}

.process-grid p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.showcase-section {
    background:
        linear-gradient(90deg, rgba(143, 77, 54, 0.1), transparent 42%),
        #e9ece6;
}

body.public-body .contact-section {
    background:
        linear-gradient(135deg, rgba(194, 140, 45, 0.16), transparent 40%),
        #273943;
}

body.public-body .contact-form {
    border: 1px solid rgba(255, 255, 255, 0.16);
}

body.public-body .map-frame {
    height: 480px;
    border-top: 1px solid rgba(16, 20, 24, 0.1);
}

.floating-contact {
    position: fixed;
    top: 50%;
    right: 18px;
    z-index: 55;
    width: 228px;
    display: grid;
    gap: 8px;
    transform: translateY(-50%);
}

.floating-contact a {
    display: grid;
    gap: 2px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    color: #fff;
    background: rgba(16, 20, 24, 0.82);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
}

.floating-contact a:last-child {
    background: rgba(24, 111, 91, 0.88);
}

.floating-contact span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.floating-contact strong {
    font-size: 0.95rem;
    line-height: 1.2;
}

body.public-body .project-card {
    overflow: hidden;
    background: #fffdf8;
}

body.public-body .project-card div {
    min-height: 220px;
    display: grid;
    align-content: start;
}

body.public-body .site-footer {
    background:
        linear-gradient(135deg, rgba(24, 111, 91, 0.18), transparent 36%),
        #101418;
}

@media (max-width: 1200px) {
    .floating-contact {
        width: 190px;
    }

    body.public-body h1 {
        font-size: 4.4rem;
    }
}

@media (max-width: 980px) {
    body.public-body .hero::after,
    body.public-body .page-hero::after {
        display: none;
    }

    body.public-body h1 {
        font-size: 3.35rem;
    }

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

    .hero-proof div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .service-grid-rich,
    .service-grid-rich .service-card,
    .service-grid-rich .service-card:nth-child(4) {
        grid-column: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .floating-contact {
        top: auto;
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        grid-template-columns: 1fr 1fr;
        transform: none;
    }
}

@media (max-width: 640px) {
    body.public-body .hero,
    body.public-body .page-hero {
        min-height: 86vh;
    }

    body.public-body .hero-content,
    body.public-body .page-hero-content {
        width: min(100% - 24px, 1160px);
        padding: 118px 0 38px;
    }

    body.public-body h1 {
        font-size: 2.65rem;
    }

    body.public-body h2 {
        font-size: 1.9rem;
    }

    .hero-proof,
    .process-grid,
    .floating-contact {
        grid-template-columns: 1fr;
    }

    .hero-proof div + div {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .process-grid div,
    .process-grid div:last-child {
        min-height: 180px;
        border-right: 0;
    }

    .image-panel-featured,
    .image-panel-featured img {
        min-height: 330px;
    }

    .image-badge {
        right: 14px;
        bottom: 14px;
        width: calc(100% - 28px);
    }

    body.public-body main {
        padding-bottom: 156px;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.kuzu-toast-stack {
    position: fixed;
    top: 104px;
    right: 22px;
    z-index: 80;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100% - 32px));
}

.kuzu-toast {
    padding: 14px 16px;
    border-left: 4px solid var(--accent);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
    font-weight: 800;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 220ms ease, transform 220ms ease;
}

.kuzu-toast.success {
    border-left-color: var(--accent);
}

.kuzu-toast.error {
    border-left-color: #b42318;
}

.kuzu-toast.hide {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    padding: 16px 0;
}

.navbar {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(17, 19, 21, 0.74);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    background: #fff;
    padding: 5px;
}

.brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand strong {
    font-size: 1rem;
}

.brand small {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.94rem;
    transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-links .panel-login {
    margin-left: 8px;
    color: #111315;
    background: #fff;
    font-weight: 700;
}

.nav-links .panel-login:hover {
    color: #111315;
    background: #e8f5ef;
}

.profile-menu {
    position: relative;
}

.profile-toggle {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    display: none;
    padding: 8px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
}

.profile-dropdown.open {
    display: grid;
}

.profile-dropdown a,
.profile-dropdown button {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    padding: 10px 12px;
    text-align: left;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
    background: #eef5f1;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

.hero,
.page-hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    color: #fff;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
}

.compact-hero {
    min-height: 56vh;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 11, 12, 0.82), rgba(6, 11, 12, 0.5) 46%, rgba(6, 11, 12, 0.2)),
        linear-gradient(0deg, rgba(6, 11, 12, 0.74), rgba(6, 11, 12, 0.08));
}

.hero-content,
.page-hero-content {
    padding: 170px 0 88px;
}

.hero-content {
    max-width: 980px;
}

.page-hero-content {
    max-width: 820px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: currentColor;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 900px;
    margin-bottom: 22px;
    font-size: 4.8rem;
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: 2.45rem;
    line-height: 1.1;
    letter-spacing: 0;
}

h3 {
    font-size: 1.05rem;
    line-height: 1.25;
}

.hero p,
.page-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.17rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-strong);
}

.btn-light {
    color: var(--ink);
    background: #fff;
}

.btn-dark {
    color: #fff;
    background: var(--ink);
}

.text-link {
    color: var(--accent-strong);
    font-weight: 800;
    border-bottom: 2px solid currentColor;
}

.stats-band {
    background: var(--ink);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stats-grid div {
    min-height: 120px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--ink);
}

.stats-grid strong {
    font-size: 2rem;
}

.stats-grid span {
    color: rgba(255, 255, 255, 0.7);
}

.section {
    padding: 96px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 54px;
    align-items: center;
}

.split-layout.reverse {
    grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
}

.section-copy p {
    color: var(--muted);
    font-size: 1.04rem;
}

.image-panel {
    min-height: 420px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-panel img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.services-section {
    background: #fff;
}

.services-section.alt {
    background: var(--paper);
}

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

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.service-card,
.project-card {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 18px 44px rgba(17, 19, 21, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.project-card:hover {
    border-color: color-mix(in srgb, var(--accent), var(--line) 60%);
    transform: translateY(-4px);
    box-shadow: 0 22px 54px rgba(17, 19, 21, 0.13);
}

.service-card {
    min-height: 150px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(17, 19, 21, 0.09);
}

.service-card span {
    color: var(--accent);
    font-weight: 900;
}

.project-preview {
    background: #e8ece8;
}

.contact-section {
    background: var(--steel);
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.9fr);
    gap: 48px;
    align-items: start;
}

.contact-copy p {
    color: rgba(255, 255, 255, 0.76);
}

.contact-form {
    display: grid;
    gap: 14px;
    padding: 24px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    padding: 13px 14px;
    color: var(--ink);
    font: inherit;
    resize: vertical;
}

.map-section {
    background: #fff;
}

.map-frame {
    height: 420px;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.info-stack {
    display: grid;
    gap: 14px;
}

.info-item {
    padding: 24px;
    border-left: 4px solid var(--accent);
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 19, 21, 0.07);
}

.info-item span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.info-item strong {
    display: block;
    margin-top: 4px;
    font-size: 1.16rem;
}

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

.project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.02);
}

.project-card div {
    padding: 20px;
}

.project-card span {
    color: var(--accent);
    font-weight: 800;
}

.empty-projects {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(47, 70, 83, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
    box-shadow: var(--shadow);
}

.empty-projects img {
    width: 100%;
    min-height: 360px;
    object-fit: cover;
}

.project-detail {
    max-width: 850px;
}

.project-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(340px, 1fr);
    gap: 42px;
    align-items: start;
}

.project-detail-copy {
    position: sticky;
    top: 110px;
}

.project-detail-copy p {
    color: var(--muted);
}

.project-info-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
}

.project-info-list div {
    padding: 16px;
    border-left: 4px solid var(--accent);
    background: #fff;
}

.project-info-list dt {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.project-info-list dd {
    margin: 2px 0 0;
    font-weight: 800;
}

.project-gallery {
    display: grid;
    gap: 16px;
}

.project-gallery figure {
    margin: 0;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 19, 21, 0.08);
}

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

.project-gallery figcaption {
    padding: 12px 14px;
    color: var(--muted);
    font-weight: 700;
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    isolation: isolate;
    padding: 132px 0 72px;
    color: #fff;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
}

.login-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5, 8, 9, 0.88), rgba(5, 8, 9, 0.56) 54%, rgba(5, 8, 9, 0.24)),
        linear-gradient(0deg, rgba(5, 8, 9, 0.72), rgba(5, 8, 9, 0.22));
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: 56px;
    align-items: center;
}

.login-copy {
    max-width: 660px;
}

.login-copy h1 {
    margin-bottom: 18px;
}

.login-copy p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.12rem;
}

.login-card {
    display: grid;
    gap: 18px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

.login-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.login-card-head img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.login-card-head span,
.login-card-head strong {
    display: block;
}

.login-card-head span {
    color: var(--muted);
    font-size: 0.9rem;
}

.login-card-head strong {
    font-size: 1.08rem;
}

.login-card label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.login-card input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 12px 14px;
    color: var(--ink);
    font: inherit;
}

.login-card input:focus {
    outline: 2px solid rgba(31, 122, 90, 0.22);
    border-color: var(--accent);
}

.captcha-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.captcha-row img {
    width: 100%;
    height: 58px;
    border: 1px solid var(--line);
    background: #f6f7f4;
    object-fit: cover;
}

.captcha-refresh {
    min-height: 58px;
    border: 1px solid var(--line);
    background: #f5f7f5;
    color: var(--ink);
    padding: 0 13px;
    font-weight: 800;
    cursor: pointer;
}

.captcha-refresh:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.login-submit {
    width: 100%;
    margin-top: 4px;
}

.form-alert {
    padding: 12px 14px;
    border-left: 4px solid #b42318;
    background: #fff2f1;
    color: #8a1f17;
    font-weight: 700;
}

.blocked-box {
    display: grid;
    gap: 9px;
    padding: 14px;
    border: 1px solid #f0c4bd;
    background: #fff7f5;
    color: #8a1f17;
}

.blocked-box strong,
.blocked-box span {
    display: block;
}

.developer-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: #8a1f17;
    color: #fff;
    font-weight: 800;
}

.developer-button:hover {
    background: #6f1711;
}

.login-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

.login-meta span {
    padding: 7px 9px;
    border: 1px solid var(--line);
    background: #f5f7f5;
}

.panel-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: #f6f9ff;
    color: #172033;
}

.panel-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px;
    background: #fff;
    border-right: 1px solid #e4e8f0;
    box-shadow: 8px 0 28px rgba(40, 51, 75, 0.05);
}

.panel-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px 24px;
    color: #012970;
}

.panel-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.panel-brand span {
    display: grid;
    line-height: 1.1;
}

.panel-brand small {
    color: #6c757d;
    font-weight: 700;
}

.panel-nav {
    display: grid;
    gap: 8px;
}

.panel-nav a {
    padding: 12px 14px;
    color: #4154f1;
    background: transparent;
    font-weight: 800;
}

.panel-nav a:hover,
.panel-nav a.active {
    background: #f0f3ff;
    color: #012970;
}

.panel-main {
    min-width: 0;
    padding: 26px;
}

.panel-topbar {
    min-height: 82px;
    margin-bottom: 24px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(40, 51, 75, 0.08);
}

.panel-kicker {
    color: #899bbd;
    font-size: 0.84rem;
    font-weight: 800;
}

.panel-topbar h1 {
    margin: 2px 0 0;
    color: #012970;
    font-size: 1.85rem;
    line-height: 1.15;
}

.panel-user {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.panel-user a,
.panel-user button {
    min-height: 40px;
    border: 1px solid #e4e8f0;
    background: #fff;
    color: #012970;
    padding: 9px 12px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.panel-user a:hover,
.panel-user button:hover {
    background: #f0f3ff;
}

.panel-messages {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.panel-message {
    padding: 13px 16px;
    border-left: 4px solid #4154f1;
    background: #fff;
    color: #012970;
    box-shadow: 0 8px 22px rgba(40, 51, 75, 0.06);
    font-weight: 800;
}

.panel-message.success {
    border-left-color: var(--accent);
}

.panel-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.panel-stat-card,
.panel-module-card,
.panel-form-card,
.panel-toolbar,
.panel-table-card {
    background: #fff;
    box-shadow: 0 8px 28px rgba(40, 51, 75, 0.08);
}

.panel-stat-card {
    padding: 20px;
}

.panel-stat-card span,
.panel-module-card span {
    color: #899bbd;
    font-weight: 900;
}

.panel-stat-card strong {
    display: block;
    margin-top: 4px;
    color: #012970;
    font-size: 1.35rem;
}

.panel-stat-card p,
.panel-module-card p,
.panel-toolbar p,
.panel-form-head p {
    color: #6c757d;
}

.panel-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.panel-module-card {
    min-height: 210px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid transparent;
    transition: transform 160ms ease, border-color 160ms ease;
}

.panel-module-card:hover {
    transform: translateY(-3px);
    border-color: #4154f1;
}

.panel-module-card h2 {
    margin-bottom: 8px;
    color: #012970;
    font-size: 1.55rem;
}

.panel-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
    align-items: start;
}

.panel-form-card {
    padding: 22px;
}

.panel-form-card.wide {
    max-width: 1080px;
}

.panel-form-head {
    margin-bottom: 18px;
}

.panel-form-head h2,
.panel-toolbar h2,
.panel-empty h2 {
    margin-bottom: 6px;
    color: #012970;
    font-size: 1.35rem;
}

.panel-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

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

.panel-form-grid label {
    display: grid;
    gap: 7px;
    color: #4154f1;
    font-weight: 900;
}

.panel-form-grid label.full {
    grid-column: 1 / -1;
}

.panel-form-grid input,
.panel-form-grid select,
.panel-form-grid textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dce3f1;
    background: #fff;
    padding: 10px 12px;
    color: #172033;
    font: inherit;
}

.panel-form-grid textarea {
    resize: vertical;
}

.panel-form-grid input[type="checkbox"] {
    width: 22px;
    min-height: 22px;
}

.panel-form-grid small {
    color: #899bbd;
}

.field-error {
    color: #b42318;
    font-size: 0.9rem;
}

.panel-primary-button,
.panel-secondary-button,
.panel-danger-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 10px 14px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.panel-primary-button {
    margin-top: 18px;
    background: #4154f1;
    color: #fff;
}

.panel-primary-button:hover {
    background: #2839d8;
}

.panel-secondary-button {
    background: #eef2ff;
    color: #012970;
}

.panel-danger-button {
    background: #b42318;
    color: #fff;
}

.panel-toolbar {
    margin-bottom: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-table-card {
    padding: 16px;
}

.panel-table {
    display: grid;
}

.panel-table-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) 140px 150px minmax(220px, 0.8fr);
    gap: 14px;
    align-items: center;
    padding: 14px 10px;
    border-bottom: 1px solid #e4e8f0;
}

.panel-table-row.head {
    color: #899bbd;
    font-weight: 900;
}

.project-cell {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
}

.project-cell img {
    width: 64px;
    height: 52px;
    grid-row: span 2;
    object-fit: cover;
}

.project-cell small {
    color: #6c757d;
}

.status-pill {
    display: inline-flex;
    padding: 6px 9px;
    font-size: 0.82rem;
    font-weight: 900;
}

.status-pill.visible {
    background: #e7f7ef;
    color: #0d5d43;
}

.status-pill.hidden {
    background: #fff2e3;
    color: #9a5b00;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-actions a,
.table-actions button {
    border: 1px solid #dce3f1;
    background: #fff;
    color: #4154f1;
    padding: 8px 10px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.table-actions .danger {
    color: #b42318;
}

.panel-empty {
    padding: 44px 20px;
    text-align: center;
}

.gallery-manager {
    margin-top: 24px;
}

.gallery-manager h3 {
    color: #012970;
}

.gallery-manager-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.gallery-manager figure {
    margin: 0;
    border: 1px solid #e4e8f0;
    background: #fff;
}

.gallery-manager img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-manager figcaption {
    padding: 8px;
}

.gallery-manager button {
    width: 100%;
    border: 0;
    background: #fff2f1;
    color: #b42318;
    padding: 8px;
    font-weight: 900;
    cursor: pointer;
}

.panel-form-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.danger-card {
    max-width: 680px;
}

.panel-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.panel-card {
    min-height: 230px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 12px 30px rgba(17, 19, 21, 0.08);
    transition: transform 160ms ease, border-color 160ms ease;
}

.panel-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.panel-card span {
    color: var(--accent);
    font-weight: 900;
}

.panel-card h2 {
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.panel-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.site-footer {
    padding: 72px 0 28px;
    color: #fff;
    background: #151817;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.65fr) minmax(220px, 0.75fr);
    gap: 40px;
}

.footer-brand p,
.footer-block p {
    color: rgba(255, 255, 255, 0.68);
}

.footer-block {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-block h3 {
    margin-bottom: 8px;
}

.footer-block a {
    color: rgba(255, 255, 255, 0.84);
}

.footer-bottom {
    margin-top: 52px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;
        left: 16px;
        display: none;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        background: rgba(17, 19, 21, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .profile-dropdown {
        position: static;
        margin-top: 8px;
    }

    .nav-links .panel-login {
        margin-left: 0;
        text-align: center;
    }

    h1 {
        font-size: 3.3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .split-layout,
    .split-layout.reverse,
    .login-shell,
    .project-detail-layout,
    .contact-grid,
    .empty-projects,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .project-grid,
    .panel-choice {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-body {
        grid-template-columns: 1fr;
    }

    .panel-sidebar {
        position: static;
        height: auto;
    }

    .panel-topbar,
    .panel-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-stat-grid,
    .panel-card-grid,
    .panel-two-column,
    .panel-form-grid {
        grid-template-columns: 1fr;
    }

    .panel-table-row,
    .panel-table-row.head {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1160px);
    }

    .site-header {
        padding: 10px 0;
    }

    .navbar {
        width: min(100% - 20px, 1180px);
        min-height: 64px;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .brand strong {
        font-size: 0.92rem;
    }

    .brand small {
        font-size: 0.72rem;
    }

    .hero,
    .page-hero {
        min-height: 78vh;
    }

    .compact-hero {
        min-height: 52vh;
    }

    .hero-content,
    .page-hero-content {
        padding: 130px 0 56px;
    }

    .login-page {
        padding: 112px 0 48px;
    }

    .login-card {
        padding: 20px;
    }

    h1 {
        font-size: 2.45rem;
        line-height: 1.05;
    }

    h2 {
        font-size: 1.72rem;
    }

    .hero p,
    .page-hero p {
        font-size: 1rem;
    }

    .stats-grid,
    .service-grid,
    .project-grid,
    .panel-choice {
        grid-template-columns: 1fr;
    }

    .panel-main {
        padding: 14px;
    }

    .panel-user {
        justify-content: flex-start;
    }

    .gallery-manager-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .image-panel,
    .image-panel img,
    .empty-projects img {
        min-height: 280px;
    }

    .contact-form,
    .empty-projects {
        padding: 18px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* Public final overrides */
body.public-body {
    --ink: #101418;
    --muted: #5d6670;
    --line: #d8ddd8;
    --paper: #f4f1ea;
    --surface: #fffdf8;
    --accent: #186f5b;
    --accent-strong: #0c4e40;
    --steel: #273943;
    --gold: #c28c2d;
    --shadow: 0 22px 60px rgba(16, 20, 24, 0.15);
    background:
        linear-gradient(90deg, rgba(16, 20, 24, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(16, 20, 24, 0.03) 1px, transparent 1px),
        var(--paper);
    background-size: 44px 44px, 44px 44px, auto;
}

body.public-body .site-header {
    z-index: 60;
}

body.public-body .navbar {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(13, 17, 19, 0.86);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

body.public-body .brand img,
body.public-body .btn,
body.public-body .service-card,
body.public-body .project-card,
body.public-body .contact-form,
body.public-body .info-item,
body.public-body .empty-projects,
body.public-body .profile-dropdown,
body.public-body .kuzu-toast {
    border-radius: 8px;
}

body.public-body .hero,
body.public-body .page-hero {
    min-height: 88vh;
    align-items: center;
    overflow: hidden;
}

body.public-body .compact-hero {
    min-height: 62vh;
}

body.public-body .hero::after,
body.public-body .page-hero::after {
    content: "";
    position: absolute;
    right: 7vw;
    bottom: 72px;
    width: min(420px, 32vw);
    height: 38vh;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 34px);
    opacity: 0.55;
}

body.public-body .hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 8, 8, 0.88), rgba(5, 8, 8, 0.62) 48%, rgba(5, 8, 8, 0.22)),
        linear-gradient(0deg, rgba(5, 8, 8, 0.8), rgba(5, 8, 8, 0.12));
}

body.public-body .hero-content,
body.public-body .page-hero-content {
    width: min(1160px, calc(100% - 40px));
    padding: 142px 0 64px;
}

body.public-body h1 {
    max-width: 960px;
    font-size: 5.35rem;
    line-height: 0.94;
}

body.public-body h2 {
    max-width: 760px;
    font-size: 2.75rem;
}

body.public-body .hero p,
body.public-body .page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.2rem;
}

body.public-body .btn {
    min-height: 52px;
    padding: 13px 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

body.public-body .btn-primary {
    background: linear-gradient(135deg, var(--accent), #22926f);
}

body.public-body .btn-dark {
    background: linear-gradient(135deg, var(--ink), var(--steel));
}

body.public-body .stats-band,
body.public-body .stats-grid div {
    background: #101418;
}

body.public-body .section {
    position: relative;
    padding: 108px 0;
}

body.public-body .section-copy p {
    max-width: 680px;
    color: #53606a;
    font-size: 1.08rem;
}

body.public-body .services-section {
    background:
        linear-gradient(135deg, rgba(24, 111, 91, 0.08), transparent 34%),
        #fffdf8;
}

body.public-body .service-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(16, 20, 24, 0.1);
    background:
        linear-gradient(135deg, rgba(194, 140, 45, 0.1), transparent 52%),
        var(--surface);
}

body.public-body .service-card::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    border-right: 2px solid rgba(24, 111, 91, 0.28);
    border-bottom: 2px solid rgba(24, 111, 91, 0.28);
}

body.public-body .contact-section {
    background:
        linear-gradient(135deg, rgba(194, 140, 45, 0.16), transparent 40%),
        #273943;
}

body.public-body .contact-form {
    border: 1px solid rgba(255, 255, 255, 0.16);
}

body.public-body .map-frame {
    height: 480px;
    border-top: 1px solid rgba(16, 20, 24, 0.1);
}

body.public-body .project-card {
    overflow: hidden;
    background: #fffdf8;
}

body.public-body .project-card div {
    min-height: 220px;
    display: grid;
    align-content: start;
}

body.public-body .site-footer {
    background:
        linear-gradient(135deg, rgba(24, 111, 91, 0.18), transparent 36%),
        #101418;
}

@media (max-width: 1200px) {
    body.public-body h1 {
        font-size: 4.4rem;
    }
}

@media (max-width: 980px) {
    body.public-body .hero::after,
    body.public-body .page-hero::after {
        display: none;
    }

    body.public-body h1 {
        font-size: 3.35rem;
    }
}

@media (max-width: 640px) {
    body.public-body .hero,
    body.public-body .page-hero {
        min-height: 86vh;
    }

    body.public-body .hero-content,
    body.public-body .page-hero-content {
        width: min(100% - 24px, 1160px);
        padding: 118px 0 38px;
    }

    body.public-body h1 {
        font-size: 2.65rem;
    }

    body.public-body h2 {
        font-size: 1.9rem;
    }

    body.public-body main {
        padding-bottom: 156px;
    }
}

.service-grid-rich {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid-rich .service-card {
    min-height: 168px;
    grid-column: auto;
    justify-content: center;
    gap: 12px;
}

.service-grid-rich .service-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

@media (max-width: 980px) {
    .service-grid-rich {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-grid-rich .service-card {
        min-height: 150px;
    }
}

@media (max-width: 640px) {
    .service-grid-rich {
        grid-template-columns: 1fr;
    }
}

/* Final NiceAdmin panel overrides */
.panel-body {
    min-height: 100vh;
    display: block;
    background: #f6f8ff;
    color: #263044;
    font-size: 14px;
}

.panel-app-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    height: 76px;
    display: grid;
    grid-template-columns: 270px minmax(320px, 620px) 1fr;
    gap: 18px;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid #dce5ff;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 18px rgba(1, 41, 112, 0.08);
    backdrop-filter: blur(14px);
}

.panel-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.panel-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: #012970;
    font-size: 1.08rem;
    font-weight: 800;
}

.panel-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.panel-menu-button,
.panel-icon-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce5ff;
    background: #fff;
    color: #4154f1;
    cursor: pointer;
}

.panel-search {
    min-height: 46px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid #ccd8ff;
    background: #fff;
}

.panel-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #263044;
    font: inherit;
}

.panel-search span {
    color: #899bbd;
    font-size: 1.2rem;
}

.panel-search kbd {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce5ff;
    color: #899bbd;
    background: #f8faff;
    font: inherit;
    font-size: 0.78rem;
}

.panel-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.panel-icon-button {
    position: relative;
    font-size: 1rem;
}

.panel-badge {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4154f1;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
}

.panel-badge.danger {
    background: #ff4d6d;
}

.panel-user-chip {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    color: #012970;
}

.panel-avatar {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4154f1, #6f7cff);
    color: #fff;
    font-weight: 900;
}

.panel-user-chip span:last-child {
    display: grid;
    line-height: 1.1;
}

.panel-user-chip strong {
    font-size: 0.9rem;
}

.panel-user-chip small {
    color: #899bbd;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.panel-sidebar {
    position: fixed;
    top: 76px;
    bottom: 0;
    left: 0;
    z-index: 40;
    width: 280px;
    height: auto;
    padding: 16px 12px;
    overflow-y: auto;
    border-right: 1px solid #dce5ff;
    background: #fff;
    box-shadow: 0 0 22px rgba(1, 41, 112, 0.08);
}

.panel-nav {
    display: grid;
    gap: 4px;
}

.panel-nav a {
    min-height: 44px;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #273246;
    background: #fff;
    font-weight: 700;
}

.panel-nav a:hover,
.panel-nav a.active {
    background: #eef2ff;
    color: #4154f1;
}

.panel-nav-icon {
    color: #899bbd;
    font-weight: 900;
    text-align: center;
}

.panel-nav a small {
    color: #4154f1;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.panel-nav a b {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b8c5ff;
    color: #4154f1;
    font-size: 0.72rem;
}

.panel-nav-section {
    margin: 18px 10px 8px;
    color: #899bbd;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-sidebar-footer {
    position: sticky;
    bottom: 0;
    margin-top: 30px;
    padding: 10px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #fff;
}

.panel-sidebar-footer a,
.panel-sidebar-footer button {
    min-height: 38px;
    border: 1px solid #dce5ff;
    background: #f8faff;
    color: #012970;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.panel-main {
    min-width: 0;
    margin-left: 280px;
    padding: 112px 40px 38px;
}

.panel-page-head {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.panel-page-head h1 {
    margin: 0 0 6px;
    color: #012970;
    font-size: 1.65rem;
    line-height: 1.2;
}

.panel-page-head p {
    margin: 0;
    color: #5f6f94;
}

.nice-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.nice-metric-card,
.nice-card {
    border: 1px solid #dce5ff;
    background: #fff;
    box-shadow: 0 6px 22px rgba(1, 41, 112, 0.08);
}

.nice-metric-card {
    position: relative;
    min-height: 136px;
    overflow: hidden;
    padding: 22px;
}

.nice-metric-card::after {
    content: "";
    position: absolute;
    top: -72px;
    right: -44px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.nice-metric-card.green {
    background: #dff2f0;
}

.nice-metric-card.blue {
    background: #e7efff;
}

.nice-metric-card.orange {
    background: #f7eee5;
}

.nice-metric-card.purple {
    background: #ececff;
}

.nice-metric-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(65, 84, 241, 0.12);
    color: #4154f1;
    font-size: 1.35rem;
    font-weight: 900;
}

.nice-metric-card small {
    display: block;
    color: #5f6f94;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.nice-metric-card strong {
    display: block;
    color: #012970;
    font-size: 1.22rem;
}

.nice-metric-card p {
    margin: 6px 0 0;
    color: #52706b;
    font-size: 0.88rem;
}

.nice-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    gap: 20px;
}

.nice-card-head {
    min-height: 56px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #edf1ff;
}

.nice-card-head h2,
.panel-toolbar h2,
.panel-form-head h2,
.panel-empty h2 {
    margin: 0 0 4px;
    color: #012970;
    font-size: 1.05rem;
}

.nice-card-head p,
.panel-toolbar p,
.panel-form-head p,
.panel-empty p {
    margin: 0;
    color: #5f6f94;
}

.nice-segmented {
    display: inline-flex;
    border: 1px solid #ccd8ff;
}

.nice-segmented span {
    padding: 8px 11px;
    color: #5f6f94;
    font-size: 0.72rem;
    font-weight: 900;
}

.nice-segmented span + span {
    border-left: 1px solid #ccd8ff;
}

.nice-segmented .active {
    color: #4154f1;
    background: #eef2ff;
}

.mini-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 20px;
}

.mini-summary-grid div {
    padding: 14px;
    border: 1px solid #e6ecff;
    background: #fcfdff;
}

.mini-summary-grid small {
    color: #5f6f94;
    font-weight: 900;
}

.mini-summary-grid strong {
    display: block;
    color: #012970;
    font-size: 1rem;
}

.nice-chart {
    height: 300px;
    padding: 0 20px 22px;
}

.nice-chart svg {
    width: 100%;
    height: 100%;
}

.nice-chart .grid {
    fill: none;
    stroke: #dce5ff;
    stroke-dasharray: 5 5;
}

.nice-chart .line {
    fill: none;
    stroke-width: 4;
}

.nice-chart .primary {
    stroke: #4154f1;
}

.nice-chart .secondary {
    stroke: #f2a100;
}

.activity-list {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.activity-list a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid #e6ecff;
    color: #273246;
}

.activity-list a:hover {
    background: #f8faff;
}

.activity-list span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-row: span 2;
    background: #eef2ff;
    color: #4154f1;
    font-weight: 900;
}

.activity-list strong {
    color: #012970;
}

.activity-list small {
    color: #5f6f94;
}

.panel-toolbar {
    margin-bottom: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.toolbar-stats span {
    display: inline-flex;
    padding: 8px 10px;
    background: #eef2ff;
    color: #4154f1;
    font-weight: 900;
}

.panel-table-card {
    padding: 0;
}

.panel-table-row {
    grid-template-columns: minmax(300px, 1.55fr) 150px 150px minmax(230px, 0.85fr);
    padding: 14px 20px;
}

.panel-table-row.head {
    background: #fcfdff;
    color: #5f6f94;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-pill {
    border-radius: 999px;
}

.panel-empty {
    min-height: 255px;
    padding: 44px 20px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
}

.empty-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4154f1;
    font-size: 1.6rem;
    font-weight: 900;
}

@media (max-width: 1200px) {
    .panel-app-header {
        grid-template-columns: 250px minmax(240px, 1fr) auto;
    }

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

    .nice-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .panel-app-header {
        position: static;
        height: auto;
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .panel-header-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .panel-sidebar {
        position: static;
        width: auto;
        height: auto;
    }

    .panel-main {
        margin-left: 0;
        padding: 22px 14px;
    }

    .panel-page-head,
    .panel-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .nice-metric-grid,
    .mini-summary-grid {
        grid-template-columns: 1fr;
    }

    .panel-search {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .panel-search kbd {
        display: none;
    }

    .panel-user-chip span:last-child {
        display: none;
    }
}
