:root {
    --sidebar-width: 278px;
    --green-950: #052e16;
    --green-900: #064e3b;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --leaf-100: #dcfce7;
    --leaf-50: #f0fdf4;
    --amber: #d97706;
    --clay: #9a3412;
    --ink: #17221b;
    --muted: #65746b;
    --line: #dce7dd;
    --surface: #ffffff;
    --canvas: #f6faf7;
    --shadow: 0 10px 26px rgba(5, 46, 22, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--canvas);
    color: var(--ink);
    font-size: 0.9rem;
    letter-spacing: 0;
}

a {
    color: var(--green-700);
}

.btn {
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0;
}

.btn-success {
    background: var(--green-700);
    border-color: var(--green-700);
}

.btn-success:hover,
.btn-success:focus {
    background: var(--green-800);
    border-color: var(--green-800);
}

.btn-outline-success {
    color: var(--green-800);
    border-color: var(--green-700);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background: var(--green-700);
    border-color: var(--green-700);
    color: #fff;
}

.form-control,
.form-select {
    border-radius: 8px;
    border-color: #cbd9ce;
    color: var(--ink);
    font-size: 0.88rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 0.2rem rgba(22, 163, 74, 0.14);
}

.form-label {
    color: #395246;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--green-950), var(--green-900) 58%, #07351e);
    color: #fff;
    overflow-y: auto;
    z-index: 1040;
    box-shadow: 10px 0 30px rgba(5, 46, 22, 0.18);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    text-decoration: none;
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark,
.login-brand span {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #bbf7d0;
    color: var(--green-900);
    flex: 0 0 auto;
}

.sidebar-brand strong,
.login-brand strong {
    display: block;
    font-size: 1.05rem;
}

.sidebar-brand small {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 0.72rem;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--amber);
    color: #fff;
    font-weight: 800;
}

.sidebar-profile strong {
    display: block;
}

.sidebar-profile span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.74rem;
    text-transform: capitalize;
}

.sidebar-nav {
    display: grid;
    gap: 0.18rem;
    padding: 0.75rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    padding: 0.78rem 0.88rem;
    border-radius: 8px;
    font-weight: 700;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(220, 252, 231, 0.14);
    color: #fff;
}

.sidebar-group {
    border-radius: 8px;
}

.sidebar-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    list-style: none;
    padding: 0.78rem 0.88rem;
    border-radius: 8px;
    font-weight: 800;
}

.sidebar-group summary::-webkit-details-marker {
    display: none;
}

.sidebar-group summary span {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-group summary i:first-child {
    width: 20px;
    text-align: center;
}

.sidebar-group summary:hover,
.sidebar-group[open] summary {
    background: rgba(220, 252, 231, 0.12);
    color: #fff;
}

.sidebar-group .chevron {
    font-size: 0.72rem;
    transition: transform 0.18s ease;
}

.sidebar-group[open] .chevron {
    transform: rotate(180deg);
}

.sidebar-subnav {
    display: grid;
    gap: 0.14rem;
    margin: 0.15rem 0 0.35rem 2.05rem;
    padding-left: 0.55rem;
    border-left: 1px solid rgba(220, 252, 231, 0.18);
}

.sidebar-subnav a {
    padding: 0.58rem 0.72rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.main-content {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    min-height: 74px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1.4rem;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.topbar h1 {
    font-size: 1.12rem;
    margin: 0;
    font-weight: 800;
}

.eyebrow {
    color: var(--green-700);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.icon-button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    color: var(--green-900);
}

.org-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--leaf-100);
    color: var(--green-900);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.content-wrapper {
    padding: 1.25rem;
    display: grid;
    gap: 1.25rem;
}

.module-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-header h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.panel-header a {
    font-weight: 800;
    text-decoration: none;
}

.dashboard-hero {
    min-height: 170px;
    border-radius: 8px;
    padding: 1.4rem;
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.dashboard-hero .eyebrow {
    color: #bbf7d0;
}

.dashboard-hero h2 {
    max-width: 760px;
    margin: 0.25rem 0 0;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
}

.dashboard-command {
    min-height: 210px;
    border-radius: 8px;
    padding: 1.5rem;
    background:
        linear-gradient(120deg, rgba(5, 46, 22, 0.94), rgba(21, 128, 61, 0.82)),
        linear-gradient(0deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06));
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.dashboard-command .eyebrow {
    color: #bbf7d0;
}

.dashboard-command h2 {
    font-size: clamp(1.75rem, 3vw, 2.7rem);
    font-weight: 900;
    line-height: 1.05;
    margin: 0.25rem 0 0.55rem;
}

.dashboard-command p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.command-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
    flex: 0 0 auto;
}

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

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    min-width: 0;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.9rem;
}

.kpi-card span {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--leaf-100);
    color: var(--green-800);
}

.kpi-card strong,
.kpi-card small,
.kpi-card em {
    display: block;
}

.kpi-card strong {
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.kpi-card small {
    color: #40584a;
    font-weight: 800;
}

.kpi-card em {
    color: var(--muted);
    font-size: 0.72rem;
    font-style: normal;
    margin-top: 0.2rem;
}

.kpi-teal span {
    background: #ccfbf1;
    color: #0f766e;
}

.kpi-amber span {
    background: #fef3c7;
    color: #b45309;
}

.kpi-clay span {
    background: #ffedd5;
    color: var(--clay);
}

.dashboard-chart-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 1rem;
}

.chart-card {
    min-width: 0;
}

.chart-card canvas {
    width: 100%;
    min-height: 220px;
    display: block;
}

.chart-wide {
    min-height: 330px;
}

.chart-wide canvas {
    min-height: 260px;
}

.chart-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0.18rem 0.65rem;
    background: var(--leaf-100);
    color: var(--green-800);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

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

.metric-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow);
    min-width: 0;
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    color: var(--green-800);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.15;
    margin-top: 0.35rem;
}

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

.report-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    background: #fbfdfb;
    min-width: 0;
}

.report-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--green-800);
    background: var(--leaf-100);
    font-size: 1.1rem;
}

.report-pdf {
    color: #991b1b;
    background: #fee2e2;
}

.report-xlsx {
    color: #166534;
    background: #dcfce7;
}

.report-copy {
    min-width: 0;
}

.report-copy strong,
.report-copy span {
    display: block;
}

.report-copy strong {
    font-weight: 900;
    overflow-wrap: anywhere;
}

.report-copy span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.report-actions,
.share-form {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-form {
    display: grid;
    grid-template-columns: minmax(110px, 150px) minmax(170px, 1fr) minmax(90px, 120px) auto auto;
}

.share-dry-run {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    white-space: nowrap;
}

.report-preview-shell {
    border: 1px solid var(--line);
    border-radius: 8px;
    height: min(760px, 78vh);
    overflow: hidden;
    background: #fff;
}

.report-preview-shell iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.report-link-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}

.report-link-pill {
    align-items: center;
    background: #fbfdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: inline-flex;
    gap: 0.45rem;
    max-width: 100%;
    min-height: 36px;
    padding: 0.35rem 0.6rem;
    text-decoration: none;
}

.report-link-pill span {
    font-size: 0.8rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-link-pill small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
}

.market-signal-grid,
.preview-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.market-signal-card,
.preview-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    padding: 1rem;
    min-width: 0;
}

.market-signal-head {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.market-signal-head strong,
.market-signal-head span {
    display: block;
}

.market-signal-head strong {
    font-weight: 900;
}

.market-signal-head span {
    color: var(--muted);
}

.signal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.6rem 0;
}

.signal-meta span {
    align-items: center;
    background: #eef7ef;
    border-radius: 999px;
    color: var(--green-800);
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 800;
    gap: 0.35rem;
    min-height: 26px;
    padding: 0.2rem 0.6rem;
}

.preview-summary {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.preview-summary div {
    background: #fbfdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.85rem;
}

.preview-summary span,
.preview-summary strong {
    display: block;
}

.preview-summary span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.preview-summary strong {
    font-weight: 900;
    overflow-wrap: anywhere;
}

.preview-card h4 {
    font-size: 0.86rem;
    font-weight: 900;
    margin: 0 0 0.55rem;
    text-transform: uppercase;
}

.preview-card p {
    margin: 0;
}

.preview-card pre {
    background: #f3f7f2;
    border-radius: 8px;
    color: var(--ink);
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.8rem;
    margin: 0;
    max-height: 320px;
    overflow: auto;
    padding: 0.75rem;
    white-space: pre-wrap;
}

.health-stack {
    display: grid;
    gap: 1rem;
}

.health-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) auto;
    align-items: center;
    gap: 0.8rem;
}

.health-copy strong,
.health-copy span {
    display: block;
}

.health-copy strong {
    font-weight: 900;
}

.health-copy span {
    color: var(--muted);
    font-size: 0.78rem;
}

.health-meter {
    height: 10px;
    border-radius: 999px;
    background: #e8f2ea;
    overflow: hidden;
}

.health-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green-700), #0f766e);
}

.health-row b {
    color: var(--green-800);
    font-weight: 900;
}

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

.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    box-shadow: var(--shadow);
}

.stat-card span {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--leaf-100);
    color: var(--green-800);
    flex: 0 0 auto;
}

.stat-card strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-card small {
    color: var(--muted);
    font-weight: 700;
}

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

.dashboard-grid .wide {
    grid-column: 1 / -1;
}

.marketplace-table-stack {
    display: grid;
    gap: 1rem;
}

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

.permission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem 1rem;
    max-height: 260px;
    overflow: auto;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.section-title {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--green-900);
    text-transform: uppercase;
}

.list-stack,
.mini-list {
    display: grid;
    gap: 0.75rem;
}

.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #edf4ee;
}

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

.list-row strong,
.list-row span {
    display: block;
}

.list-row span {
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #eef7ef;
    color: var(--green-800);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: capitalize;
    white-space: nowrap;
}

.status-published,
.status-active,
.status-answered,
.status-delivered {
    background: var(--leaf-100);
    color: var(--green-800);
}

.status-draft,
.status-trial,
.status-pending,
.status-queued,
.status-pending_approval {
    background: #fef3c7;
    color: #92400e;
}

.status-inactive,
.status-expired,
.status-cancelled,
.status-archived,
.status-closed {
    background: #fee2e2;
    color: #991b1b;
}

.status-needs_cleanup,
.status-paused,
.status-contacted {
    background: #ffedd5;
    color: var(--clay);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    color: #496256;
    font-size: 0.74rem;
    text-transform: uppercase;
    border-bottom-color: var(--line);
}

.table td {
    border-color: #edf4ee;
}

.table-responsive {
    border-radius: 8px;
}

.table-footer {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    padding-top: 0.9rem;
}

.table-footer nav {
    max-width: 100%;
}

.pagination {
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-end;
}

.page-item {
    min-width: 0;
}

.page-link {
    border-color: var(--line);
    border-radius: 8px;
    color: var(--green-800);
    font-weight: 800;
    min-height: 34px;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 8px;
}

.page-item.disabled .page-link {
    color: #94a3b8;
}

.table-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(150px, 190px) auto;
    gap: 0.6rem;
    align-items: center;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.table-actions form {
    margin: 0;
}

.table-actions .btn {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    min-height: 34px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

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

.detail-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.8rem;
    background: #fbfdfb;
    min-width: 0;
}

.detail-grid span {
    color: var(--muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.detail-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.empty-state {
    color: var(--muted);
    margin: 0;
    padding: 1.2rem;
    text-align: center;
}

.inline-details {
    position: relative;
    display: inline-block;
}

.inline-details summary {
    list-style: none;
}

.inline-details summary::-webkit-details-marker {
    display: none;
}

.edit-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: min(360px, 86vw);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.85rem;
    box-shadow: 0 20px 40px rgba(5, 46, 22, 0.18);
    z-index: 1050;
    text-align: left;
}

.wide-popover {
    width: min(560px, 90vw);
}

.market-price {
    font-size: 1.55rem;
    color: var(--green-800);
    font-weight: 800;
}

.market-price span {
    color: var(--muted);
    font-size: 0.9rem;
}

.recommendation {
    border-left: 4px solid var(--amber);
    padding-left: 0.75rem;
    color: #4f3a16;
}

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

.timeline-list div {
    border-left: 3px solid var(--green-600);
    padding-left: 0.8rem;
}

.timeline-list strong,
.timeline-list span {
    display: block;
}

.active > .page-link,
.page-link.active {
    background: var(--green-700);
    border-color: var(--green-700);
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--green-950), var(--green-800));
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.login-panel {
    width: min(440px, 100%);
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--green-900);
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.login-panel h1 {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.login-panel p {
    color: var(--muted);
}

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

.website-page {
    background: #fff;
}

.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    color: #fff;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
}

.site-logo i {
    color: #bbf7d0;
}

.site-nav nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.site-hero {
    min-height: 88vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 6rem 5vw 5rem;
    color: #fff;
}

.site-hero-content {
    max-width: 760px;
}

.hero-kicker {
    display: inline-flex;
    color: #bbf7d0;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.site-hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

.site-hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 1rem 0 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.site-band {
    padding: 4rem 5vw;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 1.6rem;
}

.section-heading h2,
.split-band h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 900;
}

.service-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.2rem;
    background: #fff;
}

.service-card i {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--leaf-100);
    color: var(--green-800);
    margin-bottom: 0.9rem;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 900;
}

.service-card p,
.split-band p {
    color: var(--muted);
}

.split-band {
    background: var(--leaf-50);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 2rem;
    align-items: center;
}

.metric-strip {
    display: grid;
    gap: 0.8rem;
}

.metric-strip div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}

.metric-strip strong {
    display: block;
    color: var(--green-800);
    font-size: 1.3rem;
}

.metric-strip span {
    color: var(--muted);
}

.request-band {
    background: #fff;
}

.inquiry-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 5vw;
    background: var(--green-950);
    color: #d1fae5;
}

body.sidebar-collapsed .sidebar {
    transform: translateX(calc(var(--sidebar-width) * -1));
}

body.sidebar-collapsed .main-content {
    margin-left: 0;
}

@media (max-width: 1199px) {
    .stat-grid,
    .kpi-grid,
    .metric-grid,
    .report-grid,
    .market-signal-grid,
    .preview-grid,
    .preview-summary,
    .content-grid,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(calc(var(--sidebar-width) * -1));
        transition: transform 0.2s ease;
    }

    body.sidebar-collapsed .sidebar {
        transform: translateX(0);
    }

    .main-content,
    body.sidebar-collapsed .main-content {
        margin-left: 0;
    }

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

    .topbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .split-band,
    .dashboard-command,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-command {
        align-items: flex-start;
        flex-direction: column;
    }

    .command-actions {
        justify-content: flex-start;
    }

    .site-nav nav a:not(.btn) {
        display: none;
    }
}

@media (max-width: 767px) {
    .content-wrapper {
        padding: 0.85rem;
    }

    .dashboard-hero {
        align-items: start;
        flex-direction: column;
    }

    .stat-grid,
    .kpi-grid,
    .metric-grid,
    .report-grid,
    .market-signal-grid,
    .preview-grid,
    .preview-summary,
    .content-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .health-row {
        grid-template-columns: 1fr;
    }

    .panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .table-toolbar {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

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

    .site-hero {
        min-height: 84vh;
    }

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