        :root {
            color-scheme: dark;
            --page-bg: #040605;
            --surface: rgba(19, 24, 20, 0.82);
            --surface-strong: rgba(25, 31, 26, 0.9);
            --line: rgba(255, 255, 255, 0.1);
            --text: #f4f7f4;
            --muted: #a7b0aa;
            --subtle: #7f8982;
            --accent: #91e17b;
            --accent-rgb: 145, 225, 123;
            --radius-lg: 38px;
            --radius-md: 24px;
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 100px;
        }

        body.documentation-home {
            min-height: 100vh;
            margin: 0;
            overflow-x: hidden;
            background:
                radial-gradient(circle at 80% 8%, rgba(72, 132, 60, 0.13), transparent 28rem),
                radial-gradient(circle at 6% 45%, rgba(54, 91, 49, 0.09), transparent 34rem),
                var(--page-bg);
            color: var(--text);
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
            font-size: 16px;
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }

        body.documentation-home::before {
            position: fixed;
            z-index: 0;
            top: 8rem;
            right: -12rem;
            width: 35rem;
            height: 35rem;
            border-radius: 50%;
            background: rgba(var(--accent-rgb), 0.055);
            filter: blur(90px);
            pointer-events: none;
            content: "";
        }

        body.documentation-home::after {
            position: fixed;
            z-index: 0;
            inset: 0;
            opacity: 0.14;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
            background-size: 72px 72px;
            -webkit-mask-image: linear-gradient(to bottom, black, transparent 72%);
            mask-image: linear-gradient(to bottom, black, transparent 72%);
            pointer-events: none;
            content: "";
        }

        body.documentation-home ::selection {
            background: rgba(var(--accent-rgb), 0.28);
            color: #fff;
        }

        .skip-link {
            position: fixed;
            z-index: 2000;
            top: 12px;
            left: 16px;
            padding: 10px 14px;
            border: 1px solid rgba(var(--accent-rgb), 0.45);
            border-radius: 12px;
            background: #f4f7f4;
            box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
            color: #090b09;
            font-size: 0.82rem;
            font-weight: 680;
            text-decoration: none;
            transform: translateY(-150%);
            transition: transform 180ms ease;
        }

        .skip-link:focus {
            color: #090b09;
            transform: translateY(0);
        }

        .documentation-home .navbar {
            position: sticky;
            z-index: 1000;
            top: 0;
            min-height: 72px;
            padding: 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.07);
            background: rgba(4, 6, 5, 0.7);
            box-shadow: 0 12px 38px rgba(0, 0, 0, 0.18);
            -webkit-backdrop-filter: blur(24px) saturate(150%);
            backdrop-filter: blur(24px) saturate(150%);
        }

        .documentation-home .navbar .container {
            width: 100%;
            max-width: 1240px;
            min-height: 72px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .documentation-home .navbar-brand {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-right: 30px;
            color: var(--text) !important;
            font-size: 1rem;
            font-weight: 680;
            letter-spacing: -0.02em;
        }

        .documentation-home .navbar-brand::before {
            width: 34px;
            height: 34px;
            flex: 0 0 34px;
            background: url("/icone2.png") center / contain no-repeat;
            filter: drop-shadow(0 8px 14px rgba(255, 170, 0, 0.16));
            content: "";
        }

        .documentation-home .navbar .nav-link {
            border-radius: 999px;
            color: var(--muted) !important;
            font-size: 0.87rem;
            font-weight: 560;
            transition: color 180ms ease, background-color 180ms ease;
        }

        .documentation-home .navbar .nav-link:hover,
        .documentation-home .navbar .nav-link:focus-visible {
            background: rgba(255, 255, 255, 0.06);
            color: var(--text) !important;
        }

        .documentation-home .navbar-toggler {
            border: 1px solid var(--line);
            border-radius: 12px;
            box-shadow: none;
        }

        .documentation-home .navbar-toggler:focus-visible {
            outline: 3px solid rgba(var(--accent-rgb), 0.48);
            outline-offset: 3px;
        }

        .documentation-home .navbar-toggler-icon {
            filter: invert(1) brightness(1.6);
        }

        .docs-main {
            position: relative;
            z-index: 1;
            padding: 28px 0 96px;
        }

        .docs-main:focus {
            outline: none;
        }

        .docs-main > .container {
            width: 100%;
            max-width: 1240px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .docs-hero {
            position: relative;
            isolation: isolate;
            display: grid;
            grid-template-columns: minmax(300px, 0.76fr) minmax(480px, 1.24fr);
            gap: clamp(28px, 4vw, 54px);
            min-height: 540px;
            overflow: hidden;
            padding: clamp(38px, 4.6vw, 60px);
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            background:
                linear-gradient(135deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.022)),
                rgba(8, 11, 9, 0.72);
            box-shadow:
                0 34px 90px rgba(0, 0, 0, 0.42),
                inset 0 1px 0 rgba(255, 255, 255, 0.12),
                inset 0 -1px 0 rgba(255, 255, 255, 0.025);
            -webkit-backdrop-filter: blur(28px) saturate(145%);
            backdrop-filter: blur(28px) saturate(145%);
        }

        .docs-hero::before {
            position: absolute;
            z-index: -2;
            right: -8%;
            bottom: -46%;
            width: 62%;
            aspect-ratio: 1;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.02) 48%, transparent 70%);
            filter: blur(8px);
            content: "";
        }

        .hero-content {
            align-self: center;
            max-width: 670px;
        }

        .hero-aside {
            position: relative;
            z-index: 1;
            align-self: stretch;
            display: flex;
            min-width: 0;
            flex-direction: column;
            justify-content: center;
            gap: 24px;
        }

        .hero-wordmark {
            align-self: flex-end;
            color: rgba(0, 0, 0, 0.48);
            font-size: clamp(2.7rem, 4vw, 4rem);
            font-weight: 820;
            letter-spacing: -0.09em;
            line-height: 0.82;
            text-align: right;
            text-shadow:
                0 1px 0 rgba(255, 255, 255, 0.04),
                0 12px 34px rgba(0, 0, 0, 0.12);
            user-select: none;
        }

        .hero-wordmark span {
            display: block;
            white-space: nowrap;
        }

        .hero-eyebrow,
        .section-kicker {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0 0 22px;
            color: var(--accent);
            font-size: 0.72rem;
            font-weight: 720;
            letter-spacing: 0.15em;
            line-height: 1;
            text-transform: uppercase;
        }

        .hero-eyebrow::before,
        .section-kicker::before {
            width: 6px;
            height: 6px;
            flex: 0 0 auto;
            border-radius: 50%;
            background: currentColor;
            box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.7);
            content: "";
        }

        .docs-hero h1 {
            max-width: 720px;
            margin: 0;
            color: var(--text);
            font-size: clamp(3rem, 6vw, 5.55rem);
            font-weight: 720;
            letter-spacing: -0.065em;
            line-height: 0.95;
        }

        .hero-lead {
            max-width: 610px;
            margin: 28px 0 0;
            color: #b7c0ba;
            font-size: clamp(1rem, 1.5vw, 1.17rem);
            line-height: 1.65;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 16px;
            margin-top: 34px;
        }

        .hero-cta {
            display: inline-flex;
            align-items: center;
            gap: 13px;
            min-height: 48px;
            padding: 0 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.92);
            box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
            color: #090b09;
            font-size: 0.86rem;
            font-weight: 680;
            text-decoration: none;
            transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
        }

        .hero-cta span {
            font-size: 1rem;
            transition: transform 200ms ease;
        }

        .hero-cta:hover,
        .hero-cta:focus-visible {
            background: #fff;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
            color: #090b09;
            transform: translateY(-2px);
        }

        .hero-cta:hover span,
        .hero-cta:focus-visible span {
            transform: translateY(2px);
        }

        .hero-cta:focus-visible {
            outline: 3px solid rgba(var(--accent-rgb), 0.55);
            outline-offset: 4px;
        }

        .hero-note {
            color: var(--subtle);
            font-size: 0.8rem;
            font-weight: 560;
            letter-spacing: 0.02em;
        }

        .hero-metrics-grid {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .hero-metric {
            position: relative;
            display: grid;
            grid-template-columns: minmax(70px, 0.92fr) minmax(0, 1.08fr);
            align-items: center;
            gap: 8px;
            min-height: 92px;
            overflow: hidden;
            padding: 15px 14px;
            border: 1px solid rgba(255, 255, 255, 0.09);
            border-radius: 17px;
            background:
                linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
                rgba(2, 4, 3, 0.48);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.065),
                0 12px 26px rgba(0, 0, 0, 0.14);
            -webkit-backdrop-filter: blur(18px);
            backdrop-filter: blur(18px);
            transition: border-color 180ms ease, background-color 180ms ease, opacity 180ms ease;
        }

        .hero-metric::before {
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: radial-gradient(circle at 20% 0%, rgba(var(--accent-rgb), 0.09), transparent 48%);
            pointer-events: none;
            content: "";
        }

        .hero-metric.is-ready {
            border-color: rgba(var(--accent-rgb), 0.13);
        }

        .hero-metric.is-stale {
            border-color: rgba(255, 183, 77, 0.22);
        }

        .hero-metric.is-error {
            border-color: rgba(255, 112, 112, 0.2);
        }

        .hero-metric-value {
            position: relative;
            z-index: 1;
            min-width: 0;
            color: var(--text);
            overflow: hidden;
            font-size: clamp(1.18rem, 1.75vw, 1.5rem);
            font-weight: 700;
            letter-spacing: -0.065em;
            line-height: 1;
            white-space: nowrap;
        }

        .hero-metric.has-long-value {
            grid-template-columns: minmax(76px, 1fr) minmax(0, 1fr);
            gap: 6px;
        }

        .hero-metric.has-long-value .hero-metric-value {
            font-size: clamp(1rem, 1.42vw, 1.22rem);
            letter-spacing: -0.075em;
        }

        .hero-metric.has-extra-long-value {
            grid-template-columns: minmax(84px, 1.14fr) minmax(0, 0.86fr);
        }

        .hero-metric.has-extra-long-value .hero-metric-value {
            font-size: clamp(0.84rem, 1.18vw, 1.02rem);
        }

        .hero-metric-label {
            position: relative;
            z-index: 1;
            display: flex;
            min-width: 0;
            flex-direction: column;
            color: #c1c8c3;
            font-size: clamp(0.66rem, 0.82vw, 0.76rem);
            font-weight: 610;
            letter-spacing: -0.01em;
            line-height: 1.17;
        }

        .hero-metric-label small {
            min-height: 0.74rem;
            margin-top: 4px;
            color: #c5a66b;
            font-size: 0.54rem;
            font-weight: 650;
            letter-spacing: 0.06em;
            line-height: 1;
            text-transform: uppercase;
        }

        .hero-metric.is-error .hero-metric-label small {
            color: #d78f8f;
        }

        .hero-metric.is-loading .hero-metric-value {
            color: transparent;
        }

        .hero-metric.is-loading .hero-metric-value::after {
            position: absolute;
            top: 50%;
            left: 0;
            width: min(58px, 100%);
            height: 25px;
            border-radius: 8px;
            background: linear-gradient(
                100deg,
                rgba(255, 255, 255, 0.07) 20%,
                rgba(255, 255, 255, 0.16) 42%,
                rgba(255, 255, 255, 0.07) 64%
            );
            background-size: 220% 100%;
            transform: translateY(-50%);
            animation: hive4-metric-shimmer 1.35s linear infinite;
            content: "";
        }

        .hero-metrics-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            padding: 0 2px;
        }

        .hero-metrics-updated {
            display: flex;
            min-width: 0;
            flex-direction: column;
            gap: 3px;
            margin: 0;
            color: var(--subtle);
            font-size: 0.72rem;
            line-height: 1.25;
        }

        .hero-metrics-updated span {
            color: #727b75;
            font-size: 0.62rem;
            font-weight: 680;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .hero-metrics-updated time {
            color: #a9b1ac;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }

        .hero-metrics-refresh {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 44px;
            padding: 0 14px;
            border: 1px solid rgba(255, 255, 255, 0.11);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.055);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075);
            color: #cbd2cd;
            font-size: 0.72rem;
            font-weight: 650;
            white-space: nowrap;
            transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
        }

        .hero-metrics-refresh svg {
            width: 15px;
            height: 15px;
        }

        .hero-metrics-refresh:hover:not(:disabled),
        .hero-metrics-refresh:focus-visible:not(:disabled) {
            border-color: rgba(var(--accent-rgb), 0.3);
            background: rgba(var(--accent-rgb), 0.09);
            color: var(--text);
            transform: translateY(-1px);
        }

        .hero-metrics-refresh:focus-visible {
            outline: 3px solid rgba(var(--accent-rgb), 0.38);
            outline-offset: 3px;
        }

        .hero-metrics-refresh:disabled {
            cursor: progress;
            opacity: 0.68;
        }

        .hero-metrics-noscript {
            margin: 0;
            padding: 10px 12px;
            border: 1px solid rgba(255, 183, 77, 0.2);
            border-radius: 12px;
            background: rgba(255, 183, 77, 0.06);
            color: #c9b58f;
            font-size: 0.72rem;
        }

        .hero-aside.is-refreshing .hero-metrics-refresh svg,
        [data-hive4-dashboard].is-refreshing .hero-metrics-refresh svg {
            animation: hive4-metric-spin 0.9s linear infinite;
        }

        @keyframes hive4-metric-shimmer {
            to { background-position: -220% 0; }
        }

        @keyframes hive4-metric-spin {
            to { transform: rotate(360deg); }
        }

        .docs-section {
            margin-top: clamp(66px, 9vw, 110px);
        }

        .section-heading {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
            gap: 36px;
            align-items: end;
            margin-bottom: 30px;
            padding: 0 4px;
        }

        .section-kicker {
            margin-bottom: 14px;
        }

        .section-heading h2 {
            margin: 0;
            color: var(--text);
            font-size: clamp(2rem, 3.4vw, 3.25rem);
            font-weight: 680;
            letter-spacing: -0.052em;
            line-height: 1;
        }

        .section-description {
            max-width: 470px;
            margin: 0 0 2px auto;
            color: var(--muted);
            font-size: 0.96rem;
            line-height: 1.65;
        }

        .docs-grid {
            display: grid !important;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 20px;
            margin: 0 !important;
        }

        .docs-grid > .col {
            width: auto;
            min-width: 0;
            padding: 0;
        }

        .docs-grid > .col > a {
            display: block;
            height: 100%;
            border-radius: var(--radius-md);
        }

        .docs-grid > .col > a:focus-visible {
            outline: 3px solid rgba(var(--accent-rgb), 0.72);
            outline-offset: 5px;
        }

        .documentation-home .docs-grid .card {
            position: relative;
            min-height: 100%;
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            background: var(--surface);
            box-shadow:
                0 24px 58px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.085);
            transition: transform 220ms cubic-bezier(0.2, 0.75, 0.3, 1), border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
        }

        @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
            .documentation-home .docs-grid .card {
                background: linear-gradient(145deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.032));
                -webkit-backdrop-filter: blur(22px) saturate(135%);
                backdrop-filter: blur(22px) saturate(135%);
            }
        }

        .documentation-home .docs-grid .card::before {
            position: absolute;
            z-index: 0;
            inset: 0 0 auto;
            height: 1px;
            background: linear-gradient(90deg, transparent 8%, rgba(255, 255, 255, 0.38), transparent 92%);
            opacity: 0.55;
            content: "";
        }

        .documentation-home .docs-grid .card::after {
            position: absolute;
            top: 24px;
            right: 24px;
            width: 34px;
            height: 34px;
            border: 1px solid rgba(255, 255, 255, 0.11);
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.045);
            content: "";
            transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
        }

        .docs-grid > .col > a:hover .card,
        .docs-grid > .col > a:focus-visible .card {
            border-color: rgba(var(--accent-rgb), 0.3);
            background-color: var(--surface-strong);
            box-shadow:
                0 30px 70px rgba(0, 0, 0, 0.38),
                0 0 0 1px rgba(var(--accent-rgb), 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.13);
            transform: translateY(-5px);
        }

        .docs-grid > .col > a:hover .card::after,
        .docs-grid > .col > a:focus-visible .card::after {
            border-color: rgba(var(--accent-rgb), 0.3);
            background: rgba(var(--accent-rgb), 0.12);
            transform: translate(2px, -2px);
        }

        .documentation-home .card-body {
            position: relative;
            z-index: 1;
            padding: 26px 26px 28px;
        }

        .documentation-home .card-body::after {
            position: absolute;
            z-index: 2;
            top: 36px;
            right: 37px;
            width: 9px;
            height: 9px;
            border-top: 1.5px solid #c7d0ca;
            border-right: 1.5px solid #c7d0ca;
            border-radius: 1px;
            pointer-events: none;
            content: "";
            transform: rotate(45deg);
            transition: border-color 220ms ease, transform 220ms ease;
        }

        .docs-grid > .col > a:hover .card-body::after,
        .docs-grid > .col > a:focus-visible .card-body::after {
            border-color: var(--accent);
            transform: translate(2px, -2px) rotate(45deg);
        }

        .documentation-home .card-kicker {
            display: block;
            margin: 0 54px 19px 0;
            color: #7f8982;
            font-size: 0.7rem;
            font-weight: 760;
            letter-spacing: 0.15em;
            line-height: 1;
            text-transform: uppercase;
        }

        .documentation-home .card-title {
            margin: 0 54px 14px 0;
            color: var(--text);
            font-size: 1.14rem;
            font-weight: 660;
            letter-spacing: -0.032em;
            line-height: 1.25;
        }

        .documentation-home .badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 6px 9px;
            border: 1px solid transparent;
            border-radius: 999px;
            font-size: 0.7rem;
            font-weight: 740;
            letter-spacing: 0.075em;
            line-height: 1;
            text-transform: uppercase;
            vertical-align: middle;
        }

        .documentation-home .badge::before {
            width: 5px;
            height: 5px;
            flex: 0 0 auto;
            border-radius: 50%;
            background: currentColor;
            opacity: 0.9;
            content: "";
        }

        .documentation-home .text-bg-success {
            border-color: rgba(145, 225, 123, 0.18) !important;
            background: rgba(145, 225, 123, 0.1) !important;
            color: #baf0aa !important;
        }

        .documentation-home .text-bg-primary {
            border-color: rgba(121, 178, 255, 0.2) !important;
            background: rgba(121, 178, 255, 0.11) !important;
            color: #aacfff !important;
        }

        .documentation-home .text-bg-warning {
            border-color: rgba(245, 192, 94, 0.2) !important;
            background: rgba(245, 192, 94, 0.11) !important;
            color: #f6cc7f !important;
        }

        .documentation-home .text-bg-dark,
        .documentation-home .text-bg-secondary {
            border-color: rgba(193, 201, 196, 0.14) !important;
            background: rgba(193, 201, 196, 0.075) !important;
            color: #aeb6b1 !important;
        }

        .documentation-home .card-text {
            margin: 20px 0 0;
            padding: 19px 0 0 !important;
            border-top: 1px solid rgba(255, 255, 255, 0.07);
            color: var(--muted);
            font-size: 0.9rem;
            font-weight: 420;
            line-height: 1.65;
        }

        .documentation-home .card-text code {
            padding: 0.12em 0.35em;
            border: 1px solid rgba(var(--accent-rgb), 0.14);
            border-radius: 6px;
            background: rgba(var(--accent-rgb), 0.07);
            color: #a9e79a;
            font-size: 0.86em;
        }

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

        @media (max-width: 991.98px) {
            .documentation-home .navbar-collapse {
                margin: 10px 0 14px;
                padding: 10px;
                border: 1px solid var(--line);
                border-radius: 16px;
                background: rgba(10, 13, 11, 0.94);
                box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
            }

            .documentation-home .navbar .nav-link {
                padding: 10px 12px;
            }

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

            .hero-aside {
                display: flex;
                gap: 24px;
                align-items: stretch;
            }

            .hero-wordmark {
                align-self: flex-end;
                font-size: clamp(2.7rem, 5vw, 3.4rem);
            }

            .hero-metrics-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        @media (max-width: 767.98px) {
            .documentation-home .navbar .container,
            .docs-main > .container {
                padding-right: 16px;
                padding-left: 16px;
            }

            .docs-main {
                padding-top: 16px;
            }

            .docs-hero {
                gap: 38px;
                padding: 34px 28px 28px;
                border-radius: 28px;
            }

            .docs-hero h1 {
                font-size: clamp(2.45rem, 8vw, 3rem);
            }

            .hero-aside {
                display: flex;
                align-items: stretch;
                gap: 24px;
            }

            .hero-wordmark {
                align-self: flex-end;
                font-size: clamp(3rem, 11vw, 4.8rem);
            }

            body.documentation-home::before {
                filter: blur(64px);
            }

            .documentation-home .docs-grid .card {
                background: rgba(17, 22, 18, 0.93);
                box-shadow:
                    0 16px 34px rgba(0, 0, 0, 0.22),
                    inset 0 1px 0 rgba(255, 255, 255, 0.08);
                -webkit-backdrop-filter: none;
                backdrop-filter: none;
            }

            .hero-metric {
                background: rgba(5, 8, 6, 0.78);
                -webkit-backdrop-filter: none;
                backdrop-filter: none;
            }

            .section-heading {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .section-description {
                margin-left: 0;
            }
        }

        @media (max-width: 575.98px) {
            .hero-wordmark {
                font-size: clamp(2.6rem, 13vw, 4rem);
            }

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

            .hero-metrics-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }

            .hero-metric {
                min-height: 84px;
            }

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

            .hero-metrics-refresh {
                width: 100%;
            }

            .hero-note {
                width: 100%;
            }

            .docs-section {
                margin-top: 66px;
            }

            .documentation-home .card-body {
                padding: 24px;
            }

            .documentation-home .docs-grid .card::after {
                top: 22px;
                right: 22px;
            }

            .documentation-home .card-body::after {
                top: 34px;
                right: 35px;
            }
        }

        @media (max-width: 390px) {
            .docs-hero {
                padding: 30px 22px 24px;
            }

            .docs-hero h1 {
                font-size: clamp(2rem, 9.5vw, 2.35rem);
                letter-spacing: -0.055em;
                line-height: 1;
            }

            .hero-metrics-grid {
                grid-template-columns: 1fr;
            }

            .hero-metric {
                min-height: 76px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }

            *,
            *::before,
            *::after {
                scroll-behavior: auto !important;
                transition-duration: 0.01ms !important;
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
            }

            .docs-grid > .col > a:hover .card,
            .docs-grid > .col > a:focus-visible .card,
            .hero-cta:hover,
            .hero-cta:focus-visible {
                transform: none;
            }

            .hero-metric.is-loading .hero-metric-value::after,
            [data-hive4-dashboard].is-refreshing .hero-metrics-refresh svg {
                animation: none;
            }
        }

/* Shared application shell ------------------------------------------------ */

body.hive-doc-page,
body.hive-health-page,
body.hive-login-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 84% 6%, rgba(72, 132, 60, 0.13), transparent 30rem),
        radial-gradient(circle at 4% 54%, rgba(54, 91, 49, 0.09), transparent 36rem),
        var(--page-bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.hive-doc-page::before,
body.hive-health-page::before,
body.hive-login-page::before {
    position: fixed;
    z-index: 0;
    top: 7rem;
    right: -13rem;
    width: 38rem;
    height: 38rem;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.055);
    filter: blur(92px);
    pointer-events: none;
    content: "";
}

body.hive-doc-page::after,
body.hive-health-page::after,
body.hive-login-page::after {
    position: fixed;
    z-index: 0;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 72%);
    mask-image: linear-gradient(to bottom, black, transparent 72%);
    pointer-events: none;
    content: "";
}

body.hive-doc-page > :not(.hive-navbar):not(.skip-link),
body.hive-health-page > :not(.hive-navbar):not(.skip-link),
body.hive-login-page > :not(.hive-navbar):not(.skip-link) {
    position: relative;
    z-index: 1;
}

.hive-navbar {
    position: sticky;
    z-index: 1000;
    top: 0;
    min-height: 76px;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(4, 6, 5, 0.76);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
}

.hive-navbar .container {
    width: 100%;
    max-width: 1280px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 24px;
}

.hive-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-right: 28px;
    color: var(--text) !important;
    text-decoration: none;
}

.hive-navbar .navbar-brand::before {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    background: url("/icone2.png") center / contain no-repeat;
    filter: drop-shadow(0 8px 14px rgba(255, 170, 0, 0.16));
    content: "";
}

.hive-brand-copy {
    display: grid;
    gap: 1px;
    line-height: 1;
}

.hive-brand-copy strong {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 720;
    letter-spacing: -0.025em;
}

.hive-brand-copy small {
    color: #747e77;
    font-size: 0.58rem;
    font-weight: 720;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hive-navbar .nav-link {
    border-radius: 999px;
    color: var(--muted) !important;
    font-size: 0.82rem;
    font-weight: 620;
    transition: color 180ms ease, background-color 180ms ease;
}

.hive-navbar .nav-link:hover,
.hive-navbar .nav-link:focus-visible,
.hive-navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.065);
    color: var(--text) !important;
}

.hive-navbar .nav-link.disabled {
    max-width: 240px;
    overflow: hidden;
    color: #657068 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hive-navbar .navbar-toggler {
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: none;
}

.hive-navbar .navbar-toggler:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb), 0.48);
    outline-offset: 3px;
}

.hive-navbar .navbar-toggler-icon {
    filter: invert(1) brightness(1.6);
}

.hive-navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

.hive-session-context {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 8px 10px 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.hive-session-application,
.hive-session-user {
    display: grid;
    min-width: 0;
    gap: 2px;
    line-height: 1.1;
}

.hive-session-application {
    max-width: 178px;
}

.hive-session-user {
    max-width: 170px;
}

.hive-session-application span,
.hive-session-user span {
    color: #737e76;
    font-size: 0.57rem;
    font-weight: 720;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hive-session-application strong,
.hive-session-user strong {
    overflow: hidden;
    color: #dce2dd;
    font-size: 0.73rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hive-session-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.09);
}

.hive-user-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), 0.26);
    border-radius: 10px;
    background: rgba(var(--accent-rgb), 0.11);
    color: #b9efaa;
    font-size: 0.66rem;
    font-weight: 780;
    letter-spacing: -0.02em;
}

.hive-logout-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid rgba(255, 112, 112, 0.18);
    border-radius: 13px;
    background: rgba(255, 88, 88, 0.075);
    color: #ff9b9b;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hive-logout-button svg {
    width: 17px;
    height: 17px;
}

.hive-logout-button:hover,
.hive-logout-button:focus-visible {
    border-color: rgba(255, 112, 112, 0.32);
    background: rgba(255, 88, 88, 0.13);
    color: #ffc1c1;
    transform: translateY(-1px);
}

.hive-logout-button:focus-visible {
    outline: 3px solid rgba(255, 112, 112, 0.24);
    outline-offset: 3px;
}

/* Documentation detail pages --------------------------------------------- */

body.hive-doc-page > .container {
    width: calc(100% - 48px);
    max-width: 1160px;
    margin: 34px auto 96px;
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.025)),
        rgba(9, 12, 10, 0.78);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(26px) saturate(138%);
    backdrop-filter: blur(26px) saturate(138%);
}

.hive-doc-page > .container > .d-flex:first-child {
    position: relative;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
    padding: 0 0 26px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.hive-doc-page > .container > .d-flex:first-child::before {
    display: block;
    width: 100%;
    margin-bottom: 2px;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    content: "Hive4 AI · API Reference";
}

.hive-doc-page h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    font-weight: 710;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.hive-doc-page h2 {
    margin: clamp(44px, 7vw, 72px) 0 18px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    color: #edf1ee;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 670;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hive-doc-page h3 {
    margin: 34px 0 14px;
    color: #e4e9e5;
    font-size: clamp(1.12rem, 2vw, 1.4rem);
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.hive-doc-page h4,
.hive-doc-page h5,
.hive-doc-page h6 {
    margin: 28px 0 12px;
    color: #d8ded9;
    font-weight: 650;
    letter-spacing: -0.018em;
}

.hive-doc-page p,
.hive-doc-page li,
.hive-doc-page td,
.hive-doc-page th {
    color: var(--muted);
}

.hive-doc-page p {
    margin-bottom: 1rem;
    font-size: 0.98rem;
}

.hive-doc-page strong {
    color: #dce2dd;
    font-weight: 680;
}

.hive-doc-page a:not(.navbar-brand):not(.nav-link):not(.hive-logout-button):not(.hive-copy-button) {
    color: #a6e898;
    text-decoration-color: rgba(var(--accent-rgb), 0.35);
    text-underline-offset: 3px;
}

.hive-doc-page ul,
.hive-doc-page ol {
    margin-bottom: 24px;
    padding-left: 1.35rem;
}

.hive-doc-page li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.hive-doc-page :not(pre) > code {
    padding: 0.18em 0.42em;
    border: 1px solid rgba(var(--accent-rgb), 0.14);
    border-radius: 7px;
    background: rgba(var(--accent-rgb), 0.075);
    color: #afe8a0;
    font-size: 0.86em;
    overflow-wrap: anywhere;
}

.hive-doc-page .badge {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 760;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hive-doc-page .text-bg-success,
.hive-doc-page .bg-success {
    border-color: rgba(145, 225, 123, 0.18) !important;
    background: rgba(145, 225, 123, 0.1) !important;
    color: #baf0aa !important;
}

.hive-doc-page .text-bg-primary,
.hive-doc-page .bg-primary {
    border-color: rgba(121, 178, 255, 0.2) !important;
    background: rgba(121, 178, 255, 0.11) !important;
    color: #aacfff !important;
}

.hive-doc-page .text-bg-warning,
.hive-doc-page .bg-warning {
    border-color: rgba(245, 192, 94, 0.2) !important;
    background: rgba(245, 192, 94, 0.11) !important;
    color: #f6cc7f !important;
}

.hive-doc-page .text-bg-dark,
.hive-doc-page .text-bg-secondary,
.hive-doc-page .bg-secondary {
    border-color: rgba(193, 201, 196, 0.14) !important;
    background: rgba(193, 201, 196, 0.075) !important;
    color: #b8c0bb !important;
}

.hive-doc-page .alert {
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    color: #b7c0ba;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.hive-doc-page .alert-info,
.hive-doc-page .alert-primary {
    border-color: rgba(121, 178, 255, 0.18);
    background: rgba(121, 178, 255, 0.065);
}

.hive-doc-page .alert-warning {
    border-color: rgba(245, 192, 94, 0.2);
    background: rgba(245, 192, 94, 0.07);
}

.hive-doc-page .alert-danger,
.hive-doc-page .text-danger {
    color: #ffadad !important;
}

.hive-doc-page .text-info {
    color: #a9d2ff !important;
}

.hive-doc-page .text-secondary {
    color: #8f9992 !important;
}

.hive-doc-page .table-responsive {
    margin: 24px 0;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
}

.hive-doc-page .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--muted);
    --bs-table-border-color: rgba(255, 255, 255, 0.085);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.025);
    --bs-table-hover-bg: rgba(var(--accent-rgb), 0.04);
    width: 100%;
    margin: 24px 0;
    border-color: rgba(255, 255, 255, 0.085);
    color: var(--muted);
}

.hive-doc-page .table-responsive .table {
    margin: 0;
}

.hive-doc-page .table th {
    background: rgba(255, 255, 255, 0.045) !important;
    color: #d9dfda !important;
    font-size: 0.75rem;
    font-weight: 730;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.hive-doc-page .table td,
.hive-doc-page .table th {
    padding: 13px 14px;
    border-color: rgba(255, 255, 255, 0.085) !important;
    vertical-align: top;
}

.hive-doc-page iframe {
    border: 0;
}

.video-container {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.3);
}

/* macOS-style code windows ------------------------------------------------ */

.hive-doc-page pre:not(.hive-code-pre) {
    margin: 22px 0;
    padding: 22px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: #090d0a;
    color: #c9d3cb;
}

.hive-code-window {
    position: relative;
    margin: 24px 0 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: 18px;
    background: rgba(5, 8, 6, 0.92);
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.hive-code-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    padding: 0 12px 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(255, 255, 255, 0.035);
}

.hive-window-controls {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hive-window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.24);
}

.hive-window-dot.is-red { background: #ff5f57; }
.hive-window-dot.is-yellow { background: #febc2e; }
.hive-window-dot.is-green { background: #28c840; }

.hive-code-language {
    color: #758078;
    font-size: 0.62rem;
    font-weight: 740;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.hive-copy-button {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-self: end;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.045);
    color: #aab4ad;
    font: inherit;
    font-size: 0.66rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.hive-copy-button:hover,
.hive-copy-button:focus-visible,
.hive-copy-button.is-copied {
    border-color: rgba(var(--accent-rgb), 0.25);
    background: rgba(var(--accent-rgb), 0.09);
    color: #b9efaa;
}

.hive-copy-button:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb), 0.25);
    outline-offset: 2px;
}

.hive-copy-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.hive-code-pre,
.hive-doc-page .hive-code-pre {
    min-height: 0;
    margin: 0 !important;
    padding: 21px 22px !important;
    overflow: auto;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #bec9c0 !important;
    font: 500 0.82rem/1.68 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    tab-size: 4;
    white-space: pre;
}

.hive-code-pre code {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit;
    white-space: inherit;
}

.hive-json-key { color: #8bd5ff; }
.hive-json-string { color: #b9e38d; }
.hive-json-number { color: #e7b978; }
.hive-json-boolean { color: #c3a6ff; }
.hive-json-null { color: #ff9f9a; font-style: italic; }
.hive-json-punctuation { color: #748078; }

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

.ratio > .hive-code-window {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.ratio > .hive-code-window .hive-code-pre {
    height: calc(100% - 44px);
}

/* Widget documentation demos -------------------------------------------- */

.hive-doc-page .hive4-demo-btn {
    display: inline-flex;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.hive-doc-page .hive4-demo-btn:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb), 0.4);
    outline-offset: 5px;
}

.hive-doc-page .hive4-demo-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
    pointer-events: none;
}

.hive-doc-page .hive4-demo-btn-inner img {
    width: 32px;
    filter: brightness(0) invert(1);
}

.hive-doc-page #demo-report,
.hive-doc-page #demo-orange {
    background: linear-gradient(135deg, #e8782a 0%, #c45e18 100%);
    box-shadow: 0 8px 32px rgba(232, 120, 42, 0.5);
    transform: rotate(45deg);
}

.hive-doc-page #demo-report:hover,
.hive-doc-page #demo-orange:hover {
    box-shadow: 0 12px 40px rgba(232, 120, 42, 0.7);
    transform: rotate(45deg) scale(1.1);
}

.hive-doc-page #demo-green {
    background: linear-gradient(135deg, #2e9e5b 0%, #1d7a42 100%);
    box-shadow: 0 8px 32px rgba(46, 158, 91, 0.5);
    transform: rotate(45deg);
}

.hive-doc-page #demo-green:hover {
    box-shadow: 0 12px 40px rgba(46, 158, 91, 0.7);
    transform: rotate(45deg) scale(1.1);
}

.hive-doc-page #demo-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1449c4 100%);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5);
    transform: rotate(45deg);
}

.hive-doc-page #demo-blue:hover {
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.7);
    transform: rotate(45deg) scale(1.1);
}

/* Healthcheck ------------------------------------------------------------ */

.hive-health-page {
    --health-panel: rgba(15, 21, 17, 0.72);
    --health-panel-border: rgba(255, 255, 255, 0.09);
    --health-ok: #78dc74;
    --health-error: #ff7777;
}

.hive-health-page > .container {
    width: calc(100% - 48px);
    max-width: 1240px;
    margin: 34px auto 96px;
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.02)),
        rgba(8, 12, 9, 0.76);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
    -webkit-backdrop-filter: blur(26px) saturate(138%);
    backdrop-filter: blur(26px) saturate(138%);
}

.hive-health-page .header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.085);
}

.hive-health-page h1 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    font-weight: 710;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.hive-health-page .subtitle {
    color: var(--muted);
    font-size: 0.82rem;
}

.hive-health-page .summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hive-health-page .pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid var(--health-panel-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: #aab4ad;
    font-size: 0.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.hive-health-page .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.hive-health-page .dot.ok { background: var(--health-ok); }
.hive-health-page .dot.error { background: var(--health-error); }

.hive-health-page .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hive-health-page .card {
    padding: 20px;
    border: 1px solid var(--health-panel-border);
    border-left: 3px solid var(--health-panel-border);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
        var(--health-panel);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.065);
    color: var(--text);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
}

.hive-health-page .card.ok { border-left-color: var(--health-ok); }
.hive-health-page .card.error { border-left-color: var(--health-error); }

.hive-health-page .card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    padding: 0;
    border: 0;
    background: transparent;
}

.hive-health-page .app-name {
    color: #e9eeea;
    font-size: 1rem;
    font-weight: 680;
    letter-spacing: -0.02em;
}

.hive-health-page .domain {
    margin-top: 3px;
    color: #7f8a82;
    font-size: 0.73rem;
    word-break: break-all;
}

.hive-health-page .domain a {
    color: inherit;
    text-decoration: none;
}

.hive-health-page .domain a:hover,
.hive-health-page .domain a:focus-visible {
    color: #b8c1ba;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hive-health-page .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 0.63rem;
    font-weight: 740;
    letter-spacing: 0.045em;
    white-space: nowrap;
    text-transform: uppercase;
}

.hive-health-page .badge.loading {
    background: rgba(255, 255, 255, 0.055);
    color: #818b84;
}

.hive-health-page .badge.ok {
    background: rgba(120, 220, 116, 0.1);
    color: #a7eba4;
}

.hive-health-page .badge.error {
    background: rgba(255, 119, 119, 0.1);
    color: #ffaaaa;
}

.hive-health-page .section {
    margin-top: 12px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.hive-health-page .row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 4px 0;
    color: #849087;
    font-size: 0.73rem;
}

.hive-health-page .row > * {
    width: auto;
    max-width: 65%;
    padding: 0;
}

.hive-health-page .row span:last-child {
    color: #cbd3cd;
    text-align: right;
    word-break: break-word;
}

.hive-health-page .skeleton {
    display: inline-block;
    min-width: 70px;
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.13) 37%, rgba(255, 255, 255, 0.05) 63%);
    background-size: 400% 100%;
    color: transparent !important;
    animation: hive-skeleton-loading 1.4s ease infinite;
}

@keyframes hive-skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.hive-health-page .problems {
    margin-top: 13px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 119, 119, 0.22);
    border-radius: 11px;
    background: rgba(255, 82, 82, 0.07);
}

.hive-health-page .problems ul {
    margin: 0;
    padding-left: 18px;
    color: #ffaaaa;
    font-size: 0.72rem;
}

.hive-health-page .problems li + li {
    margin-top: 4px;
}

.hive-health-page .footer {
    margin-top: 30px;
    color: #77827a;
    font-size: 0.7rem;
}

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

@media (max-width: 680px) {
    .hive-health-page > .container {
        width: calc(100% - 28px);
        margin-top: 16px;
        padding: 28px 20px 38px;
        border-radius: 26px;
        background: rgba(13, 17, 14, 0.94);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

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

    .hive-health-page .summary {
        width: 100%;
    }
}

/* Login ------------------------------------------------------------------- */

body.hive-login-page {
    display: grid;
    place-items: center;
    padding: 28px;
}

.hive-login-shell {
    display: grid;
    width: min(1160px, 100%);
    min-height: min(720px, calc(100vh - 56px));
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 38px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.067), rgba(255, 255, 255, 0.02)),
        rgba(8, 11, 9, 0.8);
    box-shadow:
        0 42px 110px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.11);
    -webkit-backdrop-filter: blur(28px) saturate(145%);
    backdrop-filter: blur(28px) saturate(145%);
}

.hive-login-story {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(42px, 7vw, 82px);
    border-right: 1px solid rgba(255, 255, 255, 0.075);
    background:
        radial-gradient(circle at 74% 72%, rgba(var(--accent-rgb), 0.16), transparent 28rem),
        rgba(255, 255, 255, 0.016);
}

.hive-login-story::after {
    position: absolute;
    right: -0.04em;
    bottom: -0.08em;
    color: rgba(0, 0, 0, 0.39);
    font-size: clamp(5rem, 10vw, 9rem);
    font-weight: 820;
    letter-spacing: -0.09em;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    content: "HIVE4 AI";
}

.hive-login-story-copy {
    position: relative;
    z-index: 1;
    max-width: 590px;
}

.hive-login-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hive-login-eyebrow::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.7);
    content: "";
}

.hive-login-story h1 {
    max-width: 580px;
    margin: 0;
    color: var(--text);
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 720;
    letter-spacing: -0.067em;
    line-height: 0.95;
}

.hive-login-story h1 span {
    display: block;
    color: #9da69f;
    font-weight: 590;
}

.hive-login-story-copy > p {
    max-width: 520px;
    margin: 28px 0 0;
    color: #aeb8b1;
    font-size: 1rem;
    line-height: 1.7;
}

.hive-login-trust {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}

.hive-login-trust li {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #88928b;
    font-size: 0.68rem;
    font-weight: 650;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: none;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 6vw, 70px);
    text-align: left;
}

.login-container .logo {
    width: 88px;
    height: 88px;
    margin: 0 0 24px;
    object-fit: contain;
    filter: drop-shadow(0 16px 26px rgba(255, 170, 0, 0.12));
}

.login-container .title {
    margin: 0;
    color: var(--text);
    font-size: 1.8rem;
    font-weight: 690;
    letter-spacing: -0.045em;
}

.login-container .subtitle {
    margin: 8px 0 30px;
    color: var(--muted);
    font-size: 0.88rem;
}

.login-container .form-group {
    margin-bottom: 18px;
}

.login-container .form-group label {
    display: block;
    margin: 0 0 8px;
    color: #adb7b0;
    font-size: 0.7rem;
    font-weight: 720;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.login-container .form-control {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 13px;
    outline: 0;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.login-container .form-control::placeholder {
    color: #5f6962;
}

.login-container .form-control:focus {
    border-color: rgba(var(--accent-rgb), 0.48);
    background: rgba(255, 255, 255, 0.065);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
}

.login-container .btn {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 7px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
    color: #080a08;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 730;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.login-container .btn:hover,
.login-container .btn:focus-visible {
    background: #fff;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.login-container .btn:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb), 0.44);
    outline-offset: 3px;
}

.login-container .alert {
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 103, 103, 0.2);
    border-radius: 12px;
    background: rgba(255, 76, 76, 0.075);
    color: #ffaaaa;
    font-size: 0.8rem;
}

.login-container .footer {
    margin-top: 24px;
    color: #7d8880;
    font-size: 0.7rem;
    text-align: center;
}

@media (max-width: 1199.98px) {
    .hive-current-page {
        display: none;
    }

    .hive-session-application {
        max-width: 145px;
    }

    .hive-session-user {
        max-width: 135px;
    }
}

@media (max-width: 991.98px) {
    .hive-navbar .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .hive-navbar .navbar-collapse {
        margin: 10px 0 15px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(9, 12, 10, 0.97);
        box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
    }

    .hive-navbar-actions {
        align-items: stretch;
        flex-direction: column;
        margin: 10px 0 0;
    }

    .hive-session-context {
        width: 100%;
    }

    .hive-session-application,
    .hive-session-user {
        max-width: none;
        flex: 1 1 0;
    }

    .hive-logout-button {
        width: 100%;
    }

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

    .hive-login-story {
        min-height: 430px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    }
}

@media (max-width: 767.98px) {
    body.hive-doc-page > .container {
        width: calc(100% - 28px);
        margin-top: 16px;
        padding: 28px 22px 42px;
        border-radius: 26px;
        background: rgba(13, 17, 14, 0.94);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .hive-doc-page h1 {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .hive-doc-page .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .hive-code-window {
        border-radius: 15px;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
    }

    .hive-code-pre,
    .hive-doc-page .hive-code-pre {
        padding: 18px !important;
        font-size: 0.76rem;
    }

    body.hive-login-page {
        padding: 14px;
    }

    .hive-login-shell {
        min-height: calc(100vh - 28px);
        border-radius: 28px;
    }

    .hive-login-story {
        min-height: 390px;
        padding: 38px 28px;
    }

    .hive-login-story h1 {
        font-size: clamp(2.8rem, 14vw, 4.7rem);
    }

    .login-container {
        padding: 38px 28px;
    }
}

@media (max-width: 575.98px) {
    .hive-session-context {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .hive-session-application {
        grid-column: 1 / -1;
    }

    .hive-session-divider {
        display: none;
    }

    .hive-code-toolbar {
        grid-template-columns: auto 1fr auto;
    }

    .hive-code-language {
        text-align: left;
    }

    .hive-copy-button {
        min-width: 34px;
        padding: 0 9px;
    }

    .hive-copy-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

}

@media (prefers-reduced-motion: reduce) {
    .video-container {
        animation: none !important;
    }

    .hive-health-page .skeleton {
        animation: none !important;
    }

    .hive-logout-button,
    .hive-copy-button,
    .login-container .btn {
        transition: none !important;
    }
}
