        body {
            margin: 0;
            overflow-x: clip;
            -webkit-text-size-adjust: 100%;
        }

        body.locked-access-open {
            overflow: hidden;
        }

        .site-topbar {
            width: min(1880px, calc(100vw - 44px));
            margin: 18px auto 0;
            padding: 0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            position: relative;
            z-index: 120;
        }

        .site-topbar__brand {
            display: inline-flex;
            align-items: center;
            gap: 16px;
            min-width: 0;
            color: #1c1c1c;
            text-decoration: none;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, Helvetica, sans-serif;
            font-size: 1.38rem;
            font-weight: 650;
            letter-spacing: 0;
            line-height: 1.1;
            white-space: nowrap;
        }

        .site-topbar__brand::before {
            content: "";
            width: 38px;
            height: 38px;
            flex: 0 0 38px;
            background: center / cover no-repeat url("/app/app-icon-square.png");
        }

        .site-topbar__brand--home {
            gap: 0;
        }

        .site-topbar__brand--home::before {
            display: none;
        }

        .site-topbar__brand-home-logo {
            display: block;
            width: auto;
            height: 44px;
            max-width: min(320px, 44vw);
            object-fit: contain;
        }

        .site-topbar__brand-accent.green {
            color: #57b62e;
        }

        .site-topbar__brand-accent.blue {
            color: #0a84ff;
        }

        .site-topbar__brand-accent.orange {
            color: #e07a16;
        }

        .site-topbar__right {
            display: flex;
            align-items: center;
            gap: 18px;
            min-width: 0;
            flex: 1 1 auto;
            justify-content: flex-end;
        }

        .site-topbar__menu-toggle {
            display: none;
            min-height: 40px;
            padding: 0 12px;
            border: 1px solid rgba(17, 17, 17, 0.18);
            border-radius: 999px;
            background: #f5f5f5;
            color: #1c1c1c;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, Helvetica, sans-serif;
            font-size: 0.86rem;
            font-weight: 700;
            letter-spacing: 0.01em;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            gap: 9px;
            transition: background 0.22s ease, border-color 0.22s ease;
        }

        .site-topbar__menu-toggle-box {
            width: 16px;
            height: 12px;
            display: grid;
            align-items: center;
            gap: 3px;
        }

        .site-topbar__menu-toggle-line {
            display: block;
            width: 100%;
            height: 1.8px;
            border-radius: 999px;
            background: currentColor;
            transform-origin: center;
            transition: transform 0.24s ease, opacity 0.24s ease;
        }

        .site-topbar__menu-toggle.is-open .site-topbar__menu-toggle-line:nth-child(1) {
            transform: translateY(5px) rotate(45deg);
        }

        .site-topbar__menu-toggle.is-open .site-topbar__menu-toggle-line:nth-child(2) {
            opacity: 0;
        }

        .site-topbar__menu-toggle.is-open .site-topbar__menu-toggle-line:nth-child(3) {
            transform: translateY(-5px) rotate(-45deg);
        }

        .site-topbar__menu-backdrop {
            display: none;
        }

        .site-topbar__mobile-profile {
            display: none;
            width: 42px;
            height: 42px;
            border-radius: 999px;
            overflow: hidden;
            border: 1px solid rgba(17, 17, 17, 0.14);
            background: #f1f1f1;
            text-decoration: none;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
        }

        .site-topbar__mobile-profile-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .site-topbar__nav {
            display: inline-flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            max-width: 100%;
            min-width: 0;
        }

        .install-app-button {
            min-height: 40px;
            padding: 0 12px;
            border-radius: 999px;
            border: 1px solid rgba(17, 17, 17, 0.14);
            background: #f5f5f5;
            color: #1c1c1c;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, Helvetica, sans-serif;
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            cursor: pointer;
            transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, color 0.24s ease, opacity 0.24s ease;
        }

        .install-app-button:hover {
            transform: translateY(-1px);
            background: #efefef;
        }

        .install-app-button[data-visible="false"] {
            display: none;
        }

        .install-app-button[data-state="installed"] {
            background: rgba(87, 182, 46, 0.16);
            color: #266f12;
            border-color: rgba(87, 182, 46, 0.26);
            cursor: default;
        }

        .install-app-button__icon {
            width: 16px;
            height: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
        }

        .install-app-button__icon svg {
            width: 100%;
            height: 100%;
            display: block;
            fill: currentColor;
        }

        .site-topbar__link,
        .site-topbar__item {
            min-height: 36px;
            padding: 0 10px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, Helvetica, sans-serif;
            font-size: 0.92rem;
            font-weight: 500;
            letter-spacing: 0;
            text-decoration: none;
            white-space: nowrap;
            gap: 8px;
        }

        .site-topbar__link {
            appearance: none;
            border: none;
            background: transparent;
            color: #1c1c1c;
            cursor: pointer;
            transform: translate3d(0, 0, 0);
            backface-visibility: hidden;
            will-change: transform;
            transition: color 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .site-topbar__link.is-active,
        .site-topbar__link:hover {
            color: #1c1c1c;
            background: transparent;
            font-weight: 500;
        }

        .site-topbar__link.is-active {
            font-weight: 500;
        }

        .site-topbar__link.is-locked {
            background: transparent;
            color: #888d96;
            cursor: pointer;
            transition: color 0.34s ease, transform 0.24s ease;
        }

        .site-topbar__link.is-locked:hover {
            background: transparent;
            color: #777167;
        }

        .site-topbar__link.is-locked.is-feedback {
            background: transparent;
            color: #cf2c20;
            box-shadow: none;
        }

        .site-topbar__item {
            color: #1c1c1c;
        }

        .site-topbar__lock-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 15px;
            height: 15px;
            flex: 0 0 auto;
            transform-origin: 50% 12%;
        }

        .site-topbar__lock-icon svg {
            width: 100%;
            height: 100%;
            display: block;
            fill: currentColor;
        }

        .site-topbar__link.is-locked.is-feedback .site-topbar__lock-icon {
            animation: topbar-lock-wiggle 0.58s cubic-bezier(0.36, 0.07, 0.19, 0.97);
        }

        .site-topbar__link.is-locked.is-feedback .site-topbar__stack {
            animation: topbar-locked-pulse 0.58s ease;
        }

        .site-topbar__stack {
            display: inline-flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 1px;
            line-height: 1.05;
            max-width: 100%;
        }

        .site-topbar__stack-label {
            display: inline-grid;
            width: max-content;
            max-width: none;
            font-size: 0.92rem;
            font-weight: 500;
            color: inherit;
            line-height: 1.18;
            white-space: nowrap;
            transition: color 0.2s ease;
        }

        .site-topbar__stack-label::after {
            content: attr(data-label);
            font-weight: 700;
            visibility: hidden;
            height: 0;
            overflow: hidden;
            pointer-events: none;
        }

        .site-topbar__link:hover .site-topbar__stack-label {
            font-weight: 500;
        }

        .site-topbar__link.is-active .site-topbar__stack-label {
            font-weight: 700;
        }

        @media (hover: hover) and (pointer: fine) {
            .site-topbar__link:hover {
                transform: translate3d(0, -1px, 0) scale(1.01);
            }
        }

        .site-topbar__stack-meta {
            font-size: 0.71rem;
            font-weight: 700;
            color: rgba(28, 28, 28, 0.68);
            letter-spacing: 0.02em;
        }

        .site-topbar__link.is-active .site-topbar__stack-meta {
            color: rgba(28, 28, 28, 0.8);
        }

        .auth-chip {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 0;
        }

        .auth-chip__identity {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .auth-chip__avatar {
            width: 44px;
            height: 44px;
            border-radius: 999px;
            overflow: hidden;
            border: 1px solid rgba(17, 17, 17, 0.12);
            background: #f1f1f1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            flex: 0 0 auto;
        }

        .auth-chip__avatar-image {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }

        .auth-chip__name {
            display: none;
            min-width: 0;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, Helvetica, sans-serif;
            font-size: 0.95rem;
            font-weight: 700;
            color: #1c1c1c;
            letter-spacing: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .auth-chip__logout-form {
            margin: 0;
            display: inline-flex;
            align-items: center;
        }

        .auth-chip__button {
            border: none;
            min-height: 32px;
            padding: 0 6px;
            border-radius: 8px;
            background: transparent;
            color: #1c1c1c;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, Helvetica, sans-serif;
            font-size: 1rem;
            font-weight: 500;
            letter-spacing: 0;
            cursor: pointer;
            transition: color 0.2s ease, background 0.2s ease;
        }

        .auth-chip__button:hover {
            color: #0f53aa;
            background: transparent;
            font-weight: 700;
        }

        .portal-entry-overlay {
            position: fixed;
            inset: 0;
            z-index: 9985;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: rgba(25, 21, 19, 0);
            backdrop-filter: blur(0);
            -webkit-backdrop-filter: blur(0);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.34s ease, visibility 0.34s ease, background 0.34s ease, backdrop-filter 0.34s ease, -webkit-backdrop-filter 0.34s ease;
        }

        .portal-entry-overlay[data-open="true"] {
            background: rgba(25, 21, 19, 0.18);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .portal-entry-dialog {
            width: min(580px, calc(100vw - 40px));
            padding: 26px 24px 24px;
            border-radius: 30px;
            background: rgba(255, 255, 255, 0.98);
            border: 1px solid rgba(17, 17, 17, 0.06);
            box-shadow: 0 26px 60px rgba(22, 18, 16, 0.18);
            color: #1c1c1c;
            max-height: min(86vh, calc(100dvh - 48px));
            overflow-y: auto;
            opacity: 0;
            transform: translateY(18px) scale(0.97);
            transition: opacity 0.34s ease, transform 0.4s cubic-bezier(0.2, 0.95, 0.26, 1);
        }

        .portal-entry-overlay[data-open="true"] .portal-entry-dialog {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .portal-entry-eyebrow {
            display: inline-block;
            color: #7d7a74;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-size: 0.74rem;
            font-weight: 800;
        }

        .portal-entry-title {
            margin: 12px 0 8px;
            font-size: clamp(1.8rem, 4vw, 2.4rem);
            line-height: 0.98;
            letter-spacing: -0.04em;
        }

        .portal-entry-text {
            margin: 0;
            color: #6f675d;
            font-size: 0.98rem;
            line-height: 1.55;
        }

        .portal-entry-grid {
            margin-top: 22px;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
        }

        .portal-entry-choice {
            min-height: 126px;
            border-radius: 24px;
            padding: 18px;
            text-decoration: none;
            color: #1c1c1c;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 14px;
            background: #f7f7f5;
            border: 1px solid rgba(17, 17, 17, 0.06);
            box-shadow: 0 14px 30px rgba(17, 17, 17, 0.06);
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        }

        .portal-entry-choice:hover {
            transform: translateY(-2px);
            box-shadow: 0 18px 36px rgba(17, 17, 17, 0.1);
        }

        .portal-entry-choice.blue {
            border-color: rgba(10, 132, 255, 0.18);
            background: linear-gradient(150deg, rgba(10, 132, 255, 0.1), rgba(255, 255, 255, 0.98));
        }

        .portal-entry-choice.green {
            border-color: rgba(87, 182, 46, 0.2);
            background: linear-gradient(150deg, rgba(87, 182, 46, 0.1), rgba(255, 255, 255, 0.98));
        }

        .portal-entry-choice.orange {
            border-color: rgba(224, 122, 22, 0.22);
            background: linear-gradient(150deg, rgba(224, 122, 22, 0.1), rgba(255, 255, 255, 0.98));
        }

        .portal-entry-choice strong {
            font-size: 1.05rem;
            letter-spacing: -0.02em;
        }

        .portal-entry-choice small {
            color: #6f675d;
            line-height: 1.45;
        }

        .portal-entry-choice-mark {
            width: 14px;
            height: 14px;
            border-radius: 999px;
            display: inline-flex;
            flex: 0 0 auto;
        }

        .portal-entry-choice.blue .portal-entry-choice-mark {
            background: #0a84ff;
        }

        .portal-entry-choice.green .portal-entry-choice-mark {
            background: #57b62e;
        }

        .portal-entry-choice.orange .portal-entry-choice-mark {
            background: #e07a16;
        }

        .locked-access-overlay {
            position: fixed;
            inset: 0;
            z-index: 9990;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: rgba(25, 21, 19, 0);
            backdrop-filter: blur(0);
            -webkit-backdrop-filter: blur(0);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.34s ease, visibility 0.34s ease, background 0.34s ease, backdrop-filter 0.34s ease, -webkit-backdrop-filter 0.34s ease;
        }

        .locked-access-overlay[data-open="true"] {
            background: rgba(25, 21, 19, 0.18);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .locked-access-dialog {
            position: relative;
            z-index: 9991;
            width: min(420px, calc(100vw - 40px));
            padding: 26px 24px 22px;
            border-radius: 28px;
            background: rgba(255, 255, 255, 0.98);
            border: 1px solid rgba(17, 17, 17, 0.06);
            box-shadow: 0 24px 60px rgba(22, 18, 16, 0.18);
            color: #1c1c1c;
            max-height: min(82vh, calc(100dvh - 48px));
            overflow-y: auto;
            overflow-x: hidden;
            transform-origin: 50% 18%;
            opacity: 0;
            transform: translateY(24px) scale(0.96);
            transition: opacity 0.34s ease, transform 0.42s cubic-bezier(0.2, 0.95, 0.26, 1), box-shadow 0.42s ease;
        }

        .locked-access-overlay[data-open="true"] .locked-access-dialog {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .locked-access-dialog__eyebrow {
            display: inline-block;
            color: #bf3528;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-size: 0.74rem;
            font-weight: 800;
        }

        .locked-access-dialog__title {
            margin: 12px 0 8px;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, Helvetica, sans-serif;
            font-size: 1.65rem;
            line-height: 1.02;
            letter-spacing: -0.03em;
        }

        .locked-access-dialog__text {
            margin: 0;
            color: #6f675d;
            font-size: 0.98rem;
            line-height: 1.55;
        }

        .locked-access-dialog__actions {
            margin-top: 18px;
        }

        .locked-access-dialog__button {
            border: none;
            min-height: 42px;
            padding: 0 16px;
            border-radius: 999px;
            background: #cf2c20;
            color: #ffffff;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, Helvetica, sans-serif;
            font-size: 0.88rem;
            font-weight: 700;
            cursor: pointer;
        }

        @keyframes topbar-lock-wiggle {
            0% { transform: rotate(0deg); }
            18% { transform: rotate(-18deg); }
            36% { transform: rotate(16deg); }
            54% { transform: rotate(-12deg); }
            72% { transform: rotate(8deg); }
            100% { transform: rotate(0deg); }
        }

        @keyframes topbar-locked-pulse {
            0% { transform: scale(1); }
            45% { transform: scale(0.98); }
            100% { transform: scale(1); }
        }

        @media (max-width: 1380px) {
            .site-topbar {
                width: calc(100vw - 30px);
                gap: 12px;
                padding: 0 2px;
            }

            .site-topbar__brand {
                font-size: 1.35rem;
                gap: 12px;
            }

            .site-topbar__brand::before {
                width: 32px;
                height: 32px;
                flex-basis: 32px;
            }

            .site-topbar__brand-home-logo {
                height: 40px;
                max-width: min(280px, 50vw);
            }

            .site-topbar__right {
                gap: 10px;
            }

            .site-topbar__nav {
                gap: 6px;
                flex-wrap: wrap;
                justify-content: flex-end;
            }

            .site-topbar__link,
            .site-topbar__item,
            .install-app-button {
                min-height: 36px;
                padding: 0 10px;
                font-size: 0.82rem;
            }

            .auth-chip__avatar {
                width: 40px;
                height: 40px;
            }
        }

        @media (max-width: 980px) {
            .site-topbar {
                margin-top: 12px;
                width: calc(100vw - 24px);
                padding: 0 max(4px, env(safe-area-inset-right)) 0 max(4px, env(safe-area-inset-left));
                align-items: center;
                justify-content: flex-start;
                gap: 10px;
            }

            .site-topbar__brand {
                order: 2;
                margin-right: auto;
                min-width: 0;
                max-width: min(66vw, 360px);
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .site-topbar__brand--home {
                justify-content: flex-start;
                max-width: none;
                overflow: visible;
            }

            .site-topbar__brand-home-logo {
                height: 34px;
                max-width: min(230px, 62vw);
            }

            .site-topbar__menu-toggle {
                display: inline-flex;
                order: 1;
                flex: 0 0 auto;
            }

            .site-topbar__mobile-profile {
                display: inline-flex;
                order: 3;
            }

            .site-topbar__menu-backdrop {
                display: block;
                position: fixed;
                inset: 0;
                z-index: 9980;
                background: rgba(18, 18, 18, 0.26);
                backdrop-filter: blur(2px);
                -webkit-backdrop-filter: blur(2px);
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transition: opacity 0.26s ease, visibility 0.26s ease;
            }

            .site-topbar__menu-backdrop[data-open="true"] {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
            }

            .site-topbar__right {
                position: fixed;
                top: 0;
                left: 0;
                right: auto;
                z-index: 9981;
                width: min(86vw, 360px);
                height: 100dvh;
                padding: calc(18px + env(safe-area-inset-top)) 12px calc(18px + env(safe-area-inset-bottom));
                border-right: 1px solid rgba(17, 17, 17, 0.08);
                background: rgba(245, 245, 245, 0.98);
                box-shadow: 24px 0 46px rgba(21, 21, 21, 0.2);
                flex-direction: column;
                align-items: stretch;
                justify-content: flex-start;
                gap: 10px;
                overflow-y: auto;
                transform: translate3d(-106%, 0, 0);
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, visibility 0.24s ease;
            }

            .site-topbar__right[data-open="true"] {
                transform: translate3d(0, 0, 0);
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
            }

            .install-app-button {
                width: 100%;
                min-height: 42px;
            }

            .site-topbar__nav {
                display: flex;
                flex-direction: column;
                align-items: stretch;
                gap: 7px;
            }

            .site-topbar__link,
            .site-topbar__item {
                min-width: 0;
                width: 100%;
                justify-content: flex-start;
                text-align: left;
                white-space: normal;
                min-height: 44px;
                border-radius: 14px;
                padding: 0 12px;
            }

            .site-topbar__stack {
                width: 100%;
            }

            .auth-chip {
                margin-top: 8px;
                padding-top: 12px;
                border-top: 1px solid rgba(17, 17, 17, 0.1);
                justify-content: space-between;
            }

            .auth-chip__name {
                display: block;
                max-width: 140px;
            }

            .portal-entry-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 700px) {
            .site-topbar {
                width: calc(100vw - 16px);
                margin-top: 10px;
                padding: 0 max(2px, env(safe-area-inset-right)) 0 max(2px, env(safe-area-inset-left));
                gap: 8px;
            }

            .site-topbar__brand {
                font-size: 1.08rem;
                gap: 10px;
            }

            .site-topbar__brand::before {
                width: 24px;
                height: 24px;
                flex-basis: 24px;
            }

            .site-topbar__brand-home-logo {
                height: 30px;
                max-width: min(192px, 58vw);
            }

            .site-topbar__menu-toggle {
                min-height: 40px;
                min-width: 40px;
                padding: 0 10px;
                gap: 0;
                font-size: 0;
            }

            .site-topbar__menu-toggle-text {
                display: none;
            }

            .site-topbar__mobile-profile {
                width: 38px;
                height: 38px;
            }

            .site-topbar__right {
                width: min(90vw, 330px);
                padding: calc(16px + env(safe-area-inset-top)) 10px calc(16px + env(safe-area-inset-bottom));
            }

            .auth-chip__name {
                max-width: 118px;
                font-size: 0.9rem;
            }

            .auth-chip {
                justify-content: space-between;
            }

            .auth-chip__button {
                min-height: 32px;
                padding: 0 12px;
                font-size: 0.9rem;
            }

            .auth-chip__avatar {
                width: 38px;
                height: 38px;
            }
        }

        @media (max-width: 520px) {
            .portal-entry-overlay,
            .locked-access-overlay {
                padding: 12px;
            }

            .portal-entry-dialog,
            .locked-access-dialog {
                width: calc(100vw - 24px);
                border-radius: 22px;
                padding: 18px 16px 16px;
            }

            .portal-entry-title,
            .locked-access-dialog__title {
                font-size: 1.45rem;
                line-height: 1.08;
            }

            .portal-entry-choice {
                min-height: 104px;
                padding: 14px;
                border-radius: 18px;
            }
        }
    
