/* Accent color from reference site */
:root {
    --accent: #006699;
    --accent-hover: #004466;
    --bg: #000;
    --card: #18181B;
    --text: #fff;
    --muted: #a1a1aa;
    --sidebar-width: 160px;
    --sidebar-collapsed-width: 56px;
    --details-width: 320px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0 0 80px 0;
}

.page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 18px;
    letter-spacing: 0.08em;
    z-index: 9999;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-dots {
    display: flex;
    gap: 12px;
}

.loader-dots span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    animation: loader-pulse 0.9s ease-in-out infinite alternate;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.45s;
}

.loader-text {
    margin: 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes loader-pulse {
    from {
        transform: scale(0.6);
        opacity: 0.5;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.sticky-header {
    background: var(--card);
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
    border-bottom: 1px solid var(--accent);
    box-shadow: 0 2px 8px #0002;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--accent);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.2s;
    padding: 8px 0;
}
.logo:hover {
    color: var(--accent-hover);
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    margin-right: 12px;
    background: linear-gradient(135deg, rgba(0, 102, 153, 0.85), rgba(0, 102, 153, 0.55));
    box-shadow: 0 10px 24px rgba(0, 102, 153, 0.35);
}

.logo-mark svg {
    width: 26px;
    height: 26px;
}

.logo-mark svg rect {
    fill: rgba(15, 23, 42, 0.15);
}

.logo-mark svg path {
    fill: #fff;
}

.logo-label {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.brand-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
}

.brand-caption {
    font-size: 12px;
    color: var(--muted);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.header-environment {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    position: relative;
}

.env-chip {
    position: relative;
    display: inline-block;
    min-width: 0;
}

.env-chip summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    color: var(--text);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: border-color 0.2s ease, background 0.2s ease;
}

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

.env-chip[open] summary,
.env-chip summary:hover,
.env-chip summary:focus {
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.85);
    outline: none;
}

.env-chip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.8), rgba(34, 197, 94, 0.3));
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.env-chip--prod .env-chip__dot {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.85), rgba(245, 158, 11, 0.35));
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.env-chip--prod summary {
    border-color: rgba(245, 158, 11, 0.45);
}

.env-chip__label {
    font-weight: 600;
}

.env-chip__chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.env-chip[open] .env-chip__chevron {
    transform: rotate(-135deg);
}

.env-chip__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 220px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
    z-index: 20;
}

.env-chip:not([open]) .env-chip__menu {
    display: none;
}

.env-chip__description {
    margin: 0 0 12px;
    font-size: 0.75rem;
    color: var(--muted);
}

.env-chip__links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.env-chip__links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.env-chip__links a:hover,
.env-chip__links a:focus {
    color: var(--accent);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    background: rgba(15, 23, 42, 0.55);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.status-chip:hover {
    border-color: var(--accent);
    color: var(--text);
}

.status-ok {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
}

.status-neutral {
    border-color: rgba(148, 163, 184, 0.25);
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5f5;
}

.status-chip__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.6);
    box-shadow: 0 0 6px rgba(148, 163, 184, 0.45);
}

.status-ok .status-chip__dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.55);
}

.status-neutral .status-chip__dot {
    background: #94a3b8;
}

.status-chip__label {
    font-weight: 600;
    color: inherit;
}

.account-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.account-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.user-indicator svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.user-indicator.is-online {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.18);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}

.user-indicator.is-offline {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.18);
}

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

.account-menu .account-identity {
    font-size: 13px;
    color: var(--muted);
}

.account-menu a {
    color: var(--text);
    text-decoration: none;
    margin-left: 0;
    font-weight: 500;
    transition: color 0.2s;
}
.account-menu a:hover {
    color: var(--accent);
}

.container {
    display: flex;
    height: calc(100vh - 64px - 60px);
    overflow: hidden;
}

.left-nav {
    --sidebar-current-width: var(--sidebar-width);
    width: var(--sidebar-current-width);
    flex: 0 0 var(--sidebar-current-width);
    min-width: var(--sidebar-current-width);
    max-width: var(--sidebar-current-width);
    background: var(--card);
    padding: 24px 12px 16px 12px;
    border-right: 1px solid var(--accent);
    box-shadow: 2px 0 8px #0001;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.left-nav .toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.left-nav.collapsed {
    --sidebar-current-width: var(--sidebar-collapsed-width);
    padding: 16px 4px 16px 4px;
}
.left-nav.collapsed .topics-list,
.left-nav.collapsed .search-input,
.left-nav.collapsed #sidebar-sections,
.left-nav.collapsed .nav-search {
    display: none;
}

.left-nav__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.left-nav__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1 1 auto;
    min-height: 0;
}

.toggle-btn__label {
    font-size: 0.75rem;
}

.toggle-btn__state {
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 0.18em;
}

.left-nav .toggle-btn:hover,
.left-nav .toggle-btn:focus {
    border-color: var(--accent);
    color: var(--accent);
    outline: none;
}

.left-nav.collapsed .toggle-btn {
    justify-content: center;
}

.left-nav.collapsed .toggle-btn__state {
    display: none;
}

.nav-search {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-search .search-input {
    width: 100%;
}

.nav-search__label {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.topics-list li a {
    display: block;
    padding: 10px 0;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.topics-list li a:visited, a:visited {
    color: #ff69b4 !important;
}
.topics-list li a:hover,
.topics-list li a.active {
    background: var(--accent);
    color: #fff;
}

#sidebar-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-section {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.nav-section__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-section__header h3 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.nav-section__description {
    margin: 0;
    font-size: 0.75rem;
    color: var(--muted);
}

.nav-details {
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-details__row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.82rem;
}

.nav-details__row dt {
    margin: 0;
    font-weight: 600;
    color: var(--muted);
}

.nav-details__row dd {
    margin: 0;
    text-align: right;
}

.nav-preferences {
    margin-top: 18px;
}

.nav-preferences__list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-preferences__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.nav-preferences__label {
    color: var(--text);
}

.nav-preferences__status {
    padding: 2px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-preferences__status.is-on {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}

.nav-preferences__status.is-off {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.nav-section__empty {
    margin: 16px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.nav-section__list {
    margin: 12px 0 0;
    padding-left: 20px;
    font-size: 0.85rem;
}

.nav-section--mongo {
    border-color: rgba(0, 102, 153, 0.45);
    background: rgba(0, 40, 60, 0.35);
}

.nav-section--mongo .nav-section__description {
    color: rgba(124, 245, 255, 0.8);
}

.nav-details--mongo .nav-details__row dd {
    font-size: 0.75rem;
}

.nav-section__list--mongo {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-section__list--mongo li code {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    display: inline-block;
}

.nav-tab-summary {
    margin: 0 0 8px;
    font-size: 0.75rem;
    color: var(--muted);
}

.content-area {
    flex-grow: 1;
    padding: 40px 32px 160px;
    background: var(--bg);
    height: 100%;
    overflow-y: auto;
}

html.has-js .page-section--pending {
    display: none;
}

.page-intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 32px;
}

.page-intro--with-status {
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
}

html.has-js .page-intro {
    display: flex;
    flex-direction: column;
    gap: 0;
}

html.has-js .page-intro--with-status {
    grid-template-columns: none;
}

html.has-js .page-intro--collapsible .accordion-panel.intro-collapsible {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

html.has-js .page-intro--collapsible.page-intro--with-status .accordion-panel.intro-collapsible {
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
}

.page-intro:not(.section-card) {
    background: rgba(24, 24, 27, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.45);
}

.page-intro:not(.section-card) .intro-main h1,
.page-intro:not(.section-card) .intro-main h2 {
    margin: 0 0 12px;
    font-size: 26px;
    letter-spacing: -0.01em;
}

.page-intro:not(.section-card) .intro-main p {
    margin: 0;
    color: var(--muted);
    max-width: 640px;
    line-height: 1.6;
}

.page-intro .intro-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.intro-device-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    width: fit-content;
    text-align: left;
}

.intro-device-indicator__badge {
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--text);
}

.intro-device-indicator__text {
    color: inherit;
    text-transform: none;
    letter-spacing: 0.02em;
}

.intro-device-indicator[data-viewport-size="mobile"] {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.intro-device-indicator[data-viewport-size="mobile"] .intro-device-indicator__badge {
    color: #dcfce7;
}

.intro-device-indicator[data-viewport-size="mobile"] .intro-device-indicator__text {
    color: inherit;
}

.intro-device-indicator[data-viewport-size="large"] {
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
}

.intro-device-indicator[data-viewport-size="large"] .intro-device-indicator__badge {
    color: #dbeafe;
}

.intro-device-indicator[data-viewport-size="large"] .intro-device-indicator__text {
    color: inherit;
}

html.is-mobile .intro-device-indicator {
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
}

.page-intro .accordion-panel.intro-collapsible {
    margin-top: 0;
    padding-top: 0;
}

.page-intro.accordion-section {
    overflow: hidden;
}

.page-intro .accordion-trigger {
    padding: 24px 28px;
    background: rgba(12, 16, 24, 0.6);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-intro .accordion-trigger:hover,
.page-intro .accordion-trigger:focus-visible {
    background: rgba(12, 16, 24, 0.82);
    border-color: rgba(99, 102, 241, 0.35);
}

.page-intro .accordion-trigger .section-header {
    margin-bottom: 0;
}

.page-intro .accordion-trigger .section-subtitle {
    color: var(--muted);
}

.intro-status {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(12, 16, 24, 0.52);
    min-width: 220px;
}

.intro-status__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.intro-status__label {
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}

.intro-status .status-pill {
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.04em;
    padding: 8px 16px;
}

.page-tail {
    margin-top: 64px;
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.85), rgba(12, 16, 24, 0.65));
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    padding: 32px 36px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.page-tail__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-tail__headline {
    display: flex;
    align-items: center;
    gap: 18px;
}

.page-tail__icon {
    font-size: 32px;
    line-height: 1;
}

.page-tail__title {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-tail__subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.page-tail__stats {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.page-tail__stat {
    flex: 1 1 180px;
    background: rgba(12, 16, 24, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 18px 20px;
}

.page-tail__stat dt {
    margin: 0 0 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--muted);
}

.page-tail__stat dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.page-tail__stat a {
    color: var(--text);
    text-decoration: none;
}

.page-tail__stat a:hover,
.page-tail__stat a:focus {
    color: var(--accent);
}

.profile-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
}

.profile-summary {
    flex: 1 1 220px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    padding: 20px 22px;
    background: rgba(15, 23, 42, 0.55);
}

.profile-name {
    margin: 0 0 8px;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.profile-tagline {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.profile-details {
    flex: 1 1 220px;
    margin: 0;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    padding: 20px 22px;
    background: rgba(12, 16, 24, 0.5);
}

.profile-details__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.profile-details__row:last-child {
    margin-bottom: 0;
}

.profile-details__row dt {
    margin: 0;
    font-weight: 600;
    color: var(--muted);
}

.profile-details__row dd {
    margin: 0;
}

.profile-preferences {
    margin-top: 26px;
}

.preference-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.preference-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.5);
    font-size: 0.85rem;
}

.preference-label {
    font-weight: 600;
}

.preference-pill {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.preference-pill--on {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.preference-pill--off {
    background: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

.roadmap-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.roadmap-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    padding: 16px 18px;
    background: rgba(13, 17, 23, 0.55);
}

.roadmap-item__badge {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(148, 163, 184, 0.18);
    color: var(--muted);
}

.roadmap-item__content h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.roadmap-item__content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

.roadmap-item--in-progress .roadmap-item__badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.roadmap-item--queued .roadmap-item__badge {
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
}

.roadmap-item--planned .roadmap-item__badge {
    background: rgba(148, 163, 184, 0.22);
    color: #cbd5f5;
}

.page-sections {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.page-section {
    position: relative;
}

.page-section--error {
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.section-placeholder {
    margin: 0;
    color: var(--muted);
    font-style: italic;
}

.section-error {
    margin: 0;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
    font-weight: 500;
}

.inline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-list li {
    margin: 0;
}

.page-section--visible {
    animation: section-fade-in 0.35s ease forwards;
}

@keyframes section-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-loader {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: rgba(24, 24, 27, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.55);
}

.section-loader__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.section-loader__eyebrow {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

.section-loader__title {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
}

.section-loader__description {
    margin: 0;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.6;
}

.section-loader__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-loader__item {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) minmax(200px, 3fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
}

.section-loader__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-loader__name {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-loader__summary {
    color: rgba(148, 163, 184, 0.75);
    font-size: 0.9rem;
    line-height: 1.5;
}

.section-loader__progress {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.section-loader__bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #38bdf8);
    transition: width 0.18s ease;
}

.section-loader__value {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #e0f2fe;
    justify-self: end;
}

.section-loader--complete .section-loader__title {
    color: #a5f3fc;
}

.section-loader--complete .section-loader__description {
    color: rgba(148, 163, 184, 0.8);
}

@media (max-width: 900px) {
    .section-loader__item {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
    }

    .section-loader__value {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .page-intro:not(.section-card) {
        padding: 22px 20px;
    }

    .section-loader {
        padding: 20px;
    }
}

.form-inline,
.docs-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
}

.form-inline label,
.docs-filter-form label,
.login-form label,
.lad-label {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.8);
}

.form-inline select,
.docs-filter-form select,
.login-form input,
.lad-input {
    background: var(--card);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    color: var(--text);
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-inline select:focus,
.docs-filter-form select:focus,
.login-form input:focus,
.lad-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 102, 153, 0.35);
}

.docs-filter-form .show-docs-btn {
    margin-top: 12px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 340px;
}

.random-result {
    margin-top: 12px;
    min-height: 24px;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.95rem;
    color: rgba(148, 163, 184, 0.85);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    padding: 10px 12px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.table tr:last-child th,
.table tr:last-child td {
    border-bottom: none;
}

.lad-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.lad-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lad-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lad-actions .btn {
    align-self: flex-start;
}

.lad-output h3 {
    margin-top: 0;
}

.lad-output pre {
    background: var(--card);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 14px;
    padding: 18px;
    max-height: 320px;
    overflow: auto;
}

.db-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.db-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    padding: 16px 18px;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.db-item:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.db-item small {
    color: rgba(148, 163, 184, 0.75);
}

/* LAD workspace */

.lad-app {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.lad-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    padding-bottom: 10px;
}

.lad-tab {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid transparent;
    color: rgba(226, 232, 240, 0.86);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lad-tab:hover {
    border-color: rgba(148, 163, 184, 0.42);
}

.lad-tab.is-active {
    background: rgba(0, 102, 153, 0.18);
    border-color: var(--accent);
    color: #e0f2fe;
}

.lad-panels {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lad-panel {
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 26px 28px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.55);
}

.lad-panel__header {
    margin-bottom: 24px;
}

.lad-panel__header h2 {
    margin: 0 0 8px 0;
    font-size: 1.35rem;
}

.lad-panel__header p {
    margin: 0;
    color: rgba(226, 232, 240, 0.72);
    max-width: 720px;
}

.lad-step-tracker {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.lad-step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.64);
    border-radius: 999px;
    padding: 8px 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.lad-step__label {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

.lad-step__status {
    font-size: 0.75rem;
}

.lad-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.lad-panel-grid--reverse {
    direction: rtl;
}

.lad-panel-grid--reverse > .lad-column {
    direction: ltr;
}

.lad-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lad-card {
    background: rgba(12, 19, 36, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.45);
}

.lad-card__header h3 {
    margin: 0;
    font-size: 1.08rem;
}

.lad-card__header p {
    margin: 6px 0 0 0;
    color: rgba(148, 163, 184, 0.78);
}

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

.lad-card--table .lad-card__header {
    padding: 20px 22px 0 22px;
}

.lad-card--table .lad-table {
    padding: 0 22px 22px 22px;
}

.lad-toggle-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lad-toggle-list--radio .lad-toggle {
    border-radius: 12px;
}

.lad-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    user-select: none;
}

.lad-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.lad-toggle--radio input {
    border-radius: 50%;
}

.lad-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.lad-action-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lad-hint {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.75);
}

.lad-hint[data-tone="info"] {
    color: #38bdf8;
}

.lad-hint[data-tone="ok"] {
    color: #34d399;
}

.lad-hint[data-tone="warn"] {
    color: #f87171;
}

.lad-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lad-field--inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.lad-field label,
.lad-fieldset legend {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.72);
}

.lad-field input,
.lad-field textarea,
.lad-field select {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 10px;
    color: var(--text);
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lad-field textarea {
    min-height: 140px;
    resize: vertical;
}

.lad-field input:focus,
.lad-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 102, 153, 0.32);
}

.lad-field__hint {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.6);
}

.lad-status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lad-status-list__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.lad-log {
    background: rgba(11, 16, 32, 0.72);
    border: 1px dashed rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    padding: 16px;
    min-height: 68px;
}

.lad-log__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
}

.lad-log__placeholder {
    margin: 0;
    color: rgba(148, 163, 184, 0.7);
}

.lad-history,
.lad-suggestions ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lad-history__meta {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.lad-history__keyword {
    color: #e0f2fe;
}

.lad-history__date {
    color: rgba(148, 163, 184, 0.7);
}

.lad-history__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.lad-history__empty {
    color: rgba(148, 163, 184, 0.7);
}

.lad-suggestions {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 16px;
}

.lad-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lad-meta__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding-bottom: 10px;
}

.lad-meta__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lad-progress-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lad-progress__label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    color: rgba(148, 163, 184, 0.72);
}

.lad-progress__value {
    font-weight: 600;
}

.lad-preview {
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lad-preview__keyword {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: rgba(148, 163, 184, 0.72);
}

.lad-preview__tagline {
    font-weight: 600;
    color: rgba(226, 232, 240, 0.9);
}

.lad-preview__description {
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.6;
}

.lad-preview__tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lad-preview__tags li {
    background: rgba(0, 102, 153, 0.18);
    color: #e0f2fe;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.78rem;
}

.lad-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lad-category-list li {
    background: rgba(148, 163, 184, 0.14);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
}

.lad-category-list__empty {
    color: rgba(148, 163, 184, 0.72);
}

.lad-table {
    overflow-x: auto;
}

.lad-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(12, 19, 36, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
}

.lad-table th,
.lad-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    font-size: 0.9rem;
}

.lad-table__empty td {
    text-align: center;
    color: rgba(148, 163, 184, 0.7);
}

.lad-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
}

.lad-stats li {
    display: flex;
    justify-content: space-between;
}

.lad-fieldset {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 12px 18px 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lad-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.lad-checklist__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.5);
}

@media (max-width: 1024px) {
    .lad-panel-grid {
        grid-template-columns: 1fr;
    }
    .lad-panel-grid--reverse {
        direction: ltr;
    }
}

@media (max-width: 640px) {
    .lad-app {
        margin-top: 18px;
    }
    .lad-panel {
        padding: 20px;
    }
    .lad-tabs {
        gap: 6px;
    }
    .lad-tab {
        flex: 1 1 auto;
        text-align: center;
    }
    .lad-action-row {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    .form-inline,
    .docs-filter-form {
        gap: 12px;
    }

    .random-result {
        font-size: 0.88rem;
    }
}

.sticky-footer {
    background: var(--card);
    padding: 12px 32px;
    border-top: 1px solid var(--accent);
    color: var(--muted);
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 -2px 8px #0002;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-brand__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 102, 153, 0.3);
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.1em;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.footer-brand__label {
    color: inherit;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.footer-nav__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-nav__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-nav__item:hover {
    color: var(--accent);
}

.footer-nav__item:hover .footer-nav__icon {
    background: rgba(0, 102, 153, 0.3);
    color: var(--accent);
}

.footer-nav__label {
    color: inherit;
}

.right-sidebar {
    width: var(--details-width);
    flex: 0 0 var(--details-width);
    min-width: var(--details-width);
    max-width: var(--details-width);
    background: var(--card);
    padding: 48px 20px 20px 20px;
    border-left: 1px solid var(--accent);
    color: var(--text);
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    position: relative;
}

.sidebar-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.6);
    color: var(--muted);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.sidebar-close:hover {
    border-color: var(--accent);
    color: var(--text);
}

.tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 24px;
}
.tile {
    background: var(--card);
    border: 1.5px solid var(--accent);
    border-radius: 14px;
    padding: 18px 12px 16px 12px;
    min-width: 180px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 2px 12px #0002;
    transition: box-shadow 0.2s, border 0.2s;
}
.tile img {
    max-width: 140px;
    max-height: 120px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px #0004;
    cursor: pointer;
}
.tile .tile-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.tile .tile-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.tile .tile-btn:hover {
    background: var(--accent-hover);
}

/* Modal for image preview */
.img-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}
.img-modal.active {
    display: flex;
}

/* Legacy tabs */
.tabs { margin-top: 20px; }
.tab-links { list-style: none; padding: 0; display: flex; gap: 8px; }
.tab-links li { padding: 6px 12px; background: var(--card); border: 1px solid var(--accent); border-radius: 6px; cursor: pointer; }
.tab-links li.active { background: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Generic tabbed component */
.tabbed {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.tabbed__tab {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: transparent;
    color: var(--text);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tabbed__tab:hover {
    border-color: var(--accent);
}

.tabbed__tab.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.tabbed__panels {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tabbed__panel {
    display: none;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 18px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
}

.tabbed__panel.is-active {
    display: block;
}

.tabbed__summary {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: var(--muted);
}

.tabbed__modes {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.tabbed__mode {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    padding: 4px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tabbed__mode.is-active {
    background: var(--accent);
    border-color: var(--accent);
}

.tabbed__preview {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.tabbed__preview ul {
    padding-left: 20px;
}

.tabbed__editor {
    width: 100%;
    min-height: 220px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(10, 12, 16, 0.6);
    color: var(--text);
    padding: 12px 14px;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', monospace;
    resize: vertical;
    display: none;
}

.tabbed__panel.is-editing .tabbed__preview {
    display: none;
}

.tabbed__panel.is-editing .tabbed__editor {
    display: block;
}

.tabbed--compact .tabbed__panel {
    padding: 14px;
}

.tabbed--compact .tabbed__preview {
    max-height: 200px;
    font-size: 0.82rem;
}

.tabbed--compact .tabbed__editor {
    min-height: 140px;
    font-size: 0.78rem;
}

.tabbed--wide .tabbed__preview {
    max-height: 380px;
}

.tabbed--wide .tabbed__editor {
    min-height: 260px;
}
.img-modal-content {
    background: var(--card);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 32px #000a;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.img-modal-content img {
    max-width: 80vw;
    max-height: 70vh;
    border-radius: 10px;
    margin-bottom: 12px;
}
.img-modal-close {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}
.img-modal-close:hover {
    background: var(--accent-hover);
}

.tile:hover {
    box-shadow: 0 4px 24px #7C3AED44;
    border: 1.5px solid var(--accent-hover);
}
.tile-stats {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}
.docs-list pre {
    background: var(--card);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 14px;
    color: #fff;
    margin-bottom: 14px;
    font-size: 15px;
    overflow-x: auto;
}

select, .sort-dropdown {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--accent);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 16px;
    margin-right: 12px;
    margin-bottom: 12px;
    outline: none;
    transition: border 0.2s;
}
select:focus, .sort-dropdown:focus {
    border: 1.5px solid var(--accent-hover);
}

.show-docs-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.show-docs-btn:hover {
    background: var(--accent-hover);
}

input, .search-input {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--accent);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border 0.2s;
}
input:focus, .search-input:focus {
    border: 1.5px solid var(--accent-hover);
}

::-webkit-scrollbar {
    width: 8px;
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 8px;
}

/* Document browser */
.controls-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--card);
    padding: 8px 16px;
    position: sticky;
    top: 64px;
    z-index: 90;
}
.docs-container {
    display: flex;
    height: calc(100vh - 160px);
}
.docs-list {
    width: 30%;
    overflow-y: auto;
    border-right: 1px solid var(--accent);
    padding: 8px;
}
.doc-item {
    padding: 4px 8px;
    cursor: pointer;
}
.doc-item:hover {
    background: var(--accent);
}
.doc-preview {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.section-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.section-card.narrow {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    font-size: 26px;
}

.section-subtitle {
    color: var(--muted);
    margin: 0;
    font-size: 15px;
}


.dashboard-hero {
    gap: 32px;
}

.dashboard-hero .intro-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-text {
    max-width: 540px;
}

.hero-text h1 {
    font-size: 36px;
    margin: 6px 0 12px 0;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 180px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(52, 211, 153, 0.18);
    color: #34d399;
}

.status-pill::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.status-pill.status-ok {
    background: rgba(52, 211, 153, 0.18);
    color: #34d399;
}

.status-pill.status-info {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
}

.status-pill.status-neutral {
    background: rgba(148, 163, 184, 0.22);
    color: #cbd5f5;
}

.status-pill.status-warn {
    background: rgba(251, 191, 36, 0.22);
    color: #facc15;
}

.hero-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.hero-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}


.landing-hero {
    gap: 20px;
}

.landing-hero .intro-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.landing-hero-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 620px;
}

.landing-hero-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-overview .section-subtitle {
    max-width: 620px;
}

.overview-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.loader-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.loader-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.loader-card-header h3 {
    margin: 0;
    font-size: 20px;
}

.loader-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.loader-card-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.loader-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.loader-status--live {
    border-color: rgba(34, 197, 94, 0.8);
    color: rgb(34, 197, 94);
}

.loader-status--wip {
    border-color: rgba(249, 115, 22, 0.8);
    color: rgb(249, 115, 22);
}

.loader-status--do {
    border-color: rgba(244, 63, 94, 0.8);
    color: rgb(244, 63, 94);
}

.sidebar-progress-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    margin-right: 4px;
}

.sidebar-progress-status--live {
    color: rgb(34, 197, 94);
}

.sidebar-progress-status--wip {
    color: rgb(249, 115, 22);
}

.sidebar-progress-status--do {
    color: rgb(244, 63, 94);
}

.loader-progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.loader-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 999px;
    transition: width 0.5s ease;
}

.loader-link {
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    text-decoration: none;
}

.loader-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.landing-links .service-links {
    margin-top: 12px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.accordion-section {
    padding: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.accordion-section.is-open {
    border-color: var(--accent);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.accordion-trigger {
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
}

.accordion-trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -6px;
}

.accordion-trigger .section-header {
    margin: 0;
}

.accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.accordion-icon::before {
    content: '\25BC';
}

.accordion-section.is-open .accordion-icon {
    transform: rotate(180deg);
    border-color: var(--accent);
    color: var(--accent);
}

.accordion-panel {
    padding: 0 28px 28px;
}

.accordion-panel[hidden] {
    display: none;
}

.endpoint-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.endpoint-list__item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.endpoint-list__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.endpoint-list__method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.endpoint-list__method--get {
    color: #7cf5ff;
    border-color: rgba(124, 245, 255, 0.55);
}

.endpoint-list__method--post {
    color: #ffb48b;
    border-color: rgba(255, 180, 139, 0.55);
}

.endpoint-list__method--put {
    color: #b5ffa4;
    border-color: rgba(181, 255, 164, 0.55);
}

.endpoint-list__method--delete {
    color: #ff8c8c;
    border-color: rgba(255, 140, 140, 0.55);
}

.endpoint-list__method--websocket {
    color: #d2b8ff;
    border-color: rgba(210, 184, 255, 0.55);
}

.endpoint-list__path,
.endpoint-list__aliases-list code {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 13px;
}

.endpoint-list__aliases {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.endpoint-list__aliases-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.endpoint-list__service {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 102, 153, 0.22);
    color: #7cf5ff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.endpoint-list__aliases-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.endpoint-list__description {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

.random-images {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.random-images__status {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.random-images__status[data-error] {
    color: #ff8c8c;
}

.random-images__status[data-empty] {
    font-style: italic;
}

.random-images__grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.random-image-card {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 18px;
}

.random-image-card__preview {
    flex: 1 1 240px;
    min-height: 220px;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.random-image-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.random-image-card__status {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}

.random-image-card__status.is-error {
    color: #f87171;
}

.random-image-card__status.is-success {
    color: #86efac;
}

.random-image-card__meta {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.random-image-card__title {
    margin: 0;
    font-size: 18px;
}

.random-image-card__description {
    margin: 0;
    color: var(--muted);
}

.random-images__item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.random-images__item:hover,
.random-images__item:focus {
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    outline: none;
}

.random-images__item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.random-images__media {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.random-images__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.random-images__placeholder {
    font-size: 0.7rem;
    color: var(--muted);
    text-align: center;
    padding: 12px;
    line-height: 1.4;
}

.random-images__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.random-images__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.random-images__id {
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-summary {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.status-summary__card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.status-summary__header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-summary__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.status-summary__meta h3 {
    margin: 0;
    font-size: 18px;
}

.status-summary__meta p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.status-summary__count {
    font-size: 32px;
    font-weight: 700;
}

.status-summary__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

.status-summary__card--green {
    border-color: rgba(52, 211, 153, 0.28);
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.18);
}

.status-summary__card--green .status-summary__dot {
    background: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.55);
}

.status-summary__card--pink {
    border-color: rgba(244, 114, 182, 0.28);
    box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.18);
}

.status-summary__card--pink .status-summary__dot {
    background: #f472b6;
    box-shadow: 0 0 12px rgba(244, 114, 182, 0.55);
}

.status-summary__card--grey {
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.status-summary__card--grey .status-summary__dot {
    background: #94a3b8;
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.5);
}

.sidebar-section-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.sidebar-section-header h3 {
    margin: 0;
    font-size: 18px;
}

.sidebar-section-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.sidebar-progress-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-progress-name {
    display: block;
    font-weight: 600;
}

.sidebar-progress-detail {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.sidebar-status-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-status-item {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.45);
}

.sidebar-status-head {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.sidebar-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.sidebar-status-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 600;
    flex: 1;
}

.sidebar-status-total {
    font-weight: 600;
    font-size: 14px;
}

.sidebar-status-sites {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-status-sites li {
    background: rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 12px;
}

.sidebar-status-item--green {
    border-color: rgba(52, 211, 153, 0.3);
}

.sidebar-status-item--green .sidebar-status-dot {
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.sidebar-status-item--pink {
    border-color: rgba(244, 114, 182, 0.3);
}

.sidebar-status-item--pink .sidebar-status-dot {
    background: #f472b6;
    box-shadow: 0 0 8px rgba(244, 114, 182, 0.55);
}

.sidebar-status-item--grey {
    border-color: rgba(148, 163, 184, 0.26);
}

.sidebar-status-item--grey .sidebar-status-dot {
    background: #94a3b8;
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.5);
}

.sidebar-link-groups {
    display: grid;
    gap: 12px;
}

.sidebar-link-group h4 {
    margin: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.sidebar-link-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link-list a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.sidebar-link-list a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.site-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.site-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.site-card__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.text-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.text-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.docs-scroll {
    display: grid;
    gap: 18px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px;
}

.doc-snippet {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.doc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.doc-snippet pre {
    margin: 0;
}

.doc-id {
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.doc-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-form {
    margin: 0;
}

.inline-form button {
    width: auto;
}

.lists-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.lists-toolbar .badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.limit-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.limit-form__label {
    font-size: 0.85rem;
    color: var(--muted);
}

.limit-form select {
    min-width: 96px;
}

.section-helper {
    margin: -8px 0 16px;
    font-size: 0.9rem;
    color: var(--muted);
}

.items-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.items-layout .form-card {
    height: 100%;
}

.items-list { 
    display: grid;
    gap: 16px;
}

.items-list-group {
    display: grid;
    gap: 24px;
}

@media (min-width: 900px) {
    .items-list-group {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

.items-list--aidb .doc-snippet {
    cursor: default;
    opacity: 0.96;
}

.items-list__scroller {
    display: grid;
    gap: 16px;
}

.items-list .doc-snippet {
    cursor: pointer;
}

.random-lists {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.random-list-card {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.random-list-card__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.random-list-card__header h3 {
    margin: 0;
}

.random-list-card__meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.section-header .section-refresh {
    margin-top: 12px;
}

@media (min-width: 720px) {
    .section-header .section-refresh {
        align-self: flex-start;
    }
}

.random-item-source {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--muted);
}

.settings-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.setting-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.env-status-source {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: var(--muted);
}

.env-status-source code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 6px;
}

.env-status-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.env-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
}

.env-status-item--ok {
    border-color: rgba(34, 197, 94, 0.35);
}

.env-status-item--file {
    border-color: rgba(59, 130, 246, 0.35);
}

.env-status-item--missing {
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.env-status-item--missing .env-status-key,
.env-status-item--missing .env-status-value {
    color: #fca5a5;
}

.env-status-key {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.env-status-value {
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    color: var(--muted);
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.env-feedback {
    margin: 12px 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.env-feedback.is-success {
    color: #86efac;
}

.env-feedback.is-warning {
    color: #facc15;
}

.env-feedback.is-error {
    color: #f87171;
}

.setting-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

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

.service-links {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-link {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.service-link span {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.service-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

.service-link a:hover {
    color: var(--accent-hover);
}

.service-link code {
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
}

.service-links__group {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-links__group h3 {
    margin: 0;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.service-links__group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-links__group li a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    word-break: break-word;
}

.service-links__group li a:hover {
    color: var(--accent-hover);
}

.lists-empty-state {
    text-align: center;
    color: var(--muted);
    padding: 32px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.list-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.list-actions form {
    margin: 0;
}

.list-actions button {
    width: auto;
}

.items-empty {
    color: var(--muted);
    font-style: italic;
}

.settings-list + .service-links {
    margin-top: 24px;
}


.sites-hero {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
}

.sites-hero__intro {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sites-hero__intro h1 {
    margin: 0;
}

.sites-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.sites-stat {
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sites-stat__value {
    font-size: 28px;
    font-weight: 700;
}

.sites-stat__label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.sites-stat--done {
    border-color: rgba(34, 197, 94, 0.4);
}

.sites-stat--wip {
    border-color: rgba(249, 115, 22, 0.35);
}

.sites-stat--do {
    border-color: rgba(244, 63, 94, 0.4);
}

.sites-hero__shortcuts {
    flex: 1 1 260px;
}

.sites-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sites-grid .site-card {
    height: 100%;
}

.sites-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sites-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sites-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sites-count {
    font-size: 14px;
    color: var(--muted);
}

.sites-toolbar-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sites-view {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sites-view__label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.sites-view__select {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--text);
    border-radius: 12px;
    padding: 6px 12px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.sites-view__select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.sites-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sites-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.sites-filter select,
.sites-filter input {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--text);
    border-radius: 12px;
    padding: 6px 12px;
    font: inherit;
    font-size: 13px;
}

.sites-filter input::placeholder {
    color: rgba(148, 163, 184, 0.75);
}

.sites-filter--search span {
    display: none;
}

.sites-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 18px;
}

.sites-shortcuts__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sites-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(148, 163, 184, 0.12);
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease, border 0.2s ease, transform 0.15s ease;
}

.sites-shortcut:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.sites-results {
    transition: all 0.2s ease;
}

.sites-results.view-tiles .site-list,
.sites-results.view-scroller .site-list {
    border: none;
    background: transparent;
}

.sites-results.view-tiles .site-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    padding: 0;
}

.sites-results.view-tiles .site-list li,
.sites-results.view-scroller .site-list li {
    border-top: none;
}

.sites-results.view-tiles .site-item,
.sites-results.view-scroller .site-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.45);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.sites-results.view-tiles .site-item {
    padding: 20px;
}

.sites-results.view-scroller .site-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px;
    max-height: 520px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

.sites-results.view-scroller .site-list li {
    scroll-snap-align: start;
}

.sites-results.view-scroller .site-item {
    padding: 22px;
}

.sites-results.view-tiles .site-item:hover,
.sites-results.view-scroller .site-item:hover {
    transform: translateY(-2px);
}

.sites-results.view-tiles .site-item.is-active,
.sites-results.view-scroller .site-item.is-active {
    box-shadow: 0 16px 32px rgba(0, 102, 153, 0.35);
}

.sites-results.view-tiles .site-item,
.sites-results.view-scroller .site-item {
    grid-template-columns: none;
    grid-template-areas: none;
}

.sites-results.view-tiles .site-cell,
.sites-results.view-scroller .site-cell {
    display: flex;
    align-items: center;
}

.sites-results.view-tiles .site-status,
.sites-results.view-scroller .site-status {
    justify-self: flex-start;
    align-self: flex-start;
}

.site-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.35);
}

.site-table-head {
    display: grid;
    grid-template-columns: minmax(52px, 72px) minmax(160px, 2fr) minmax(220px, 3fr) minmax(110px, auto) minmax(120px, 1fr);
    gap: 16px;
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    margin-bottom: 12px;
}

.sites-sort {
    background: none;
    border: none;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.sites-sort.is-active {
    color: var(--accent);
}

.sites-sort[data-sort-direction="asc"]::after {
    content: '↑';
    margin-left: 4px;
    font-size: 12px;
}

.sites-sort[data-sort-direction="desc"]::after {
    content: '↓';
    margin-left: 4px;
    font-size: 12px;
}

.sites-sort:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-list li + li {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.site-item {
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    display: grid;
    grid-template-columns: minmax(52px, 72px) minmax(160px, 2fr) minmax(220px, 3fr) minmax(110px, auto) minmax(120px, 1fr);
    grid-template-areas: "rank title domain status category";
    gap: 16px;
    padding: 16px 24px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.site-item:hover {
    background: rgba(148, 163, 184, 0.1);
}

.site-item.is-active {
    background: rgba(0, 102, 153, 0.18);
    box-shadow: inset 4px 0 0 var(--accent);
}

.site-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -4px;
}

.site-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-rank {
    grid-area: rank;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    color: var(--muted);
}

.site-title {
    grid-area: title;
}

.site-title .site-name {
    font-size: 15px;
    font-weight: 600;
}

.site-title .site-id {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-domain {
    grid-area: domain;
    font-size: 14px;
    color: var(--muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-status {
    grid-area: status;
    justify-self: end;
    align-self: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(148, 163, 184, 0.16);
    color: var(--muted);
}

.site-category {
    grid-area: category;
    align-self: center;
    font-size: 13px;
    color: var(--muted);
}

.site-status--done,
.site-status-badge--done {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.site-status--wip,
.site-status-badge--wip {
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

.site-status--do,
.site-status-badge--do {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.site-status--tbc,
.site-status-badge--tbc {
    background: rgba(168, 85, 247, 0.25);
    color: #d8b4fe;
}

.site-status--unknown,
.site-status-badge--unknown {
    background: rgba(148, 163, 184, 0.18);
    color: var(--muted);
}

.site-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.site-details__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.site-details__summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-details__summary h3 {
    margin: 8px 0 6px;
    font-size: 22px;
}

.site-details__sub {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.site-details__sub a {
    color: inherit;
    text-decoration: none;
}

.site-details__sub a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.site-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(148, 163, 184, 0.18);
    color: var(--muted);
}

.site-details__grid {
    margin: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.site-details__row {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 12px 14px;
}

.site-details__row dt {
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-details__row dd {
    margin: 0;
    font-size: 14px;
    word-break: break-word;
}

.site-edit-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.site-edit-grid {
    display: grid;
    gap: 14px 18px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-edit-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-edit-grid input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    color: var(--text);
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-edit-grid input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.site-edit-grid input[readonly] {
    opacity: 0.65;
    cursor: not-allowed;
}

.site-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-feedback {
    margin: 0;
    font-size: 13px;
}

.form-feedback.is-error {
    color: #f87171;
}

.form-feedback.is-success {
    color: #34d399;
}

.muted {
    color: var(--muted);
}

.site-details-placeholder {
    padding: 0 4px;
}

.btn-small {
    padding: 6px 16px;
    font-size: 12px;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 1280px) {
    :root {
        --sidebar-width: 240px;
        --details-width: 240px;
    }
}

@media (max-width: 1024px) {
    body {
        padding-bottom: 120px;
    }

    .container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .left-nav {
        --sidebar-current-width: 100%;
        width: 100%;
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
        border-right: none;
        border-bottom: 1px solid var(--accent);
        box-shadow: none;
        height: auto;
        order: 1;
    }

    .content-area {
        order: 2;
        height: auto;
        padding: 32px 20px 140px;
    }

    .right-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(100%, 360px);
        max-width: 90vw;
        border-left: 1px solid var(--accent);
        border-top: none;
        box-shadow: -18px 0 36px rgba(0, 0, 0, 0.55);
        height: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 88px 24px 24px;
        z-index: 150;
    }

    body.has-sidebar-open .right-sidebar {
        transform: translateX(0);
    }

    .sidebar-close {
        display: inline-flex;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 140;
    }

    body.has-sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.has-sidebar-open {
        overflow: hidden;
    }

    .page-intro.page-intro--with-status {
        grid-template-columns: minmax(0, 1fr);
    }

    .intro-status {
        width: 100%;
        min-width: 0;
    }

    .site-details__grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 640px) {
    .sticky-header {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 20px;
        gap: 12px;
    }

    .header-brand {
        width: 100%;
        justify-content: flex-start;
        order: 1;
    }

    .header-status {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        order: 2;
        padding-bottom: 6px;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .header-status::-webkit-scrollbar {
        display: none;
    }

    .account-menu {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        order: 3;
    }

    .content-area {
        padding: 24px 16px 120px;
    }

    .landing-hero {
        gap: 18px;
    }

    .landing-hero .intro-main {
        gap: 18px;
    }

    .landing-hero-text {
        max-width: none;
    }

    .landing-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .landing-hero-actions .btn {
        width: 100%;
    }

    .landing-overview .section-subtitle {
        max-width: none;
    }

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

    .service-links {
        flex-direction: column;
        gap: 24px;
    }

    .service-links__group ul {
        gap: 8px;
    }

    .topics-list li a {
        padding: 10px 0;
    }

    .loader-text {
        letter-spacing: 0.18em;
    }

    .sites-toolbar {
        align-items: flex-start;
        gap: 16px;
    }

    .sites-toolbar-group {
        width: 100%;
        justify-content: space-between;
    }

    .sites-view {
        width: 100%;
        justify-content: space-between;
    }

    .sites-view__select {
        flex: 1;
    }

    .sites-shortcuts {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .footer-nav {
        justify-content: space-between;
    }

    .site-list {
        display: flex;
        gap: 16px;
        padding: 16px;
        overflow-x: auto;
        border-radius: 18px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .site-list li {
        border-top: none;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .site-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px 20px;
        grid-template-columns: none;
        grid-template-areas: none;
        min-width: 280px;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
        background: rgba(15, 23, 42, 0.55);
    }

    .site-item .site-cell {
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }

    .site-rank {
        flex: 0 0 auto;
    }

    .site-title {
        flex: 1 1 auto;
    }

    .site-title .site-name,
    .site-title .site-id,
    .site-domain {
        white-space: nowrap;
    }

    .site-domain {
        flex: 1 1 auto;
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-status {
        flex: 0 0 auto;
        align-self: center;
    }

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

    .site-details__summary h3 {
        font-size: 20px;
    }

    .docs-scroll {
        display: flex;
        gap: 16px;
        max-height: none;
        overflow-x: auto;
        overflow-y: visible;
        padding: 12px 4px 12px 0;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .docs-scroll .doc-snippet {
        min-width: min(320px, 90vw);
        scroll-snap-align: start;
    }

    .items-list {
        gap: 12px;
    }

    .items-list__scroller {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 16px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .items-list__scroller .doc-snippet {
        flex: 0 0 min(320px, 90vw);
        scroll-snap-align: start;
    }
}

.doc-snippet pre {
    margin: 0;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.empty-state {
    color: var(--muted);
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border 0.2s ease;
    color: inherit;
    background: rgba(255, 255, 255, 0.08);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

.form-card textarea {
    width: 100%;
    min-height: 180px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    color: var(--text);
    padding: 14px;
    font-size: 15px;
    font-family: "JetBrains Mono", monospace;
    resize: vertical;
}

/* History workspace */
.history-app {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.history-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(140deg, rgba(24, 24, 27, 0.96), rgba(12, 12, 16, 0.92));
    box-shadow: 0 20px 60px rgba(8, 8, 12, 0.45);
    position: sticky;
    top: 76px;
    z-index: 25;
    backdrop-filter: blur(8px);
}

.history-toolbar__primary {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.history-toolbar__metric {
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-toolbar__label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.history-toolbar__value {
    font-size: 18px;
    font-weight: 600;
}

.history-toolbar__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.history-tabs {
    display: flex;
    gap: 12px;
    position: sticky;
    top: 142px;
    padding: 6px 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
    z-index: 20;
}

.history-tab {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.7);
    color: var(--text);
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.history-tab:hover {
    border-color: var(--accent);
}

.history-tab.is-active {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
}

.history-panel {
    display: none;
}

.history-panel.is-active {
    display: block;
}

.history-panel__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.history-panel__grid--tall {
    grid-template-columns: 1fr;
}

.history-card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 18px 48px rgba(5, 5, 12, 0.35);
}

.history-card__header h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
}

.history-card__header p {
    margin: 0;
    color: var(--muted);
}

.history-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-field label,
.history-field__label,
.history-tags legend {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.history-field input,
.history-field select,
.history-tags input[type="text"] {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 15px;
}

.history-field input:focus,
.history-field select:focus,
.history-tags input[type="text"]:focus {
    border-color: var(--accent);
    outline: none;
}

.history-field--inline {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.history-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    appearance: none;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.history-progress::-webkit-progress-bar {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 999px;
}

.history-progress::-webkit-progress-value {
    background: var(--accent);
    border-radius: 999px;
}

.history-progress::-moz-progress-bar {
    background: var(--accent);
    border-radius: 999px;
}

.history-feedback {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

.history-summary[hidden] {
    display: none !important;
}

.history-summary h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.history-summary__stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.history-summary__stats dt {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
}

.history-summary__stats dd {
    margin: 4px 0 0 0;
    font-size: 18px;
    font-weight: 600;
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.history-table th,
.history-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    text-align: left;
}

.history-table tr.is-active {
    background: rgba(0, 102, 153, 0.12);
}

.history-table tr.is-active td {
    border-bottom-color: rgba(0, 102, 153, 0.4);
}

.history-table th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.history-table__actions {
    width: 120px;
    text-align: right;
}

.history-empty-row td {
    text-align: center;
    color: var(--muted);
}

.history-card--accordion {
    gap: 16px;
}

.history-accordion {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    padding: 16px 20px;
    color: var(--text);
}

.history-accordion summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
}

.history-accordion ol,
.history-accordion ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.75);
}

.history-process-controls {
    display: grid;
    gap: 16px;
}

.history-selection-actions,
.history-sort-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
}

.history-tags label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-process-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.history-conversation-list {
    display: grid;
    gap: 14px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
}

.history-conversation {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
    transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.history-conversation:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.history-conversation.is-selected {
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 102, 153, 0.25);
}

.history-conversation__checkbox {
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
}

.history-conversation__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-conversation__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.history-conversation__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.history-conversation__excerpt {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.history-conversation__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.history-conversation__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-output-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-output-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-height: 560px;
    overflow-y: auto;
    padding-right: 8px;
}

.history-output-card {
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 16px 44px rgba(5, 5, 12, 0.32);
}

.history-output-card__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.history-output-card__title {
    margin: 0;
    font-size: 18px;
}

.history-output-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.history-tag-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 102, 153, 0.25);
    border: 1px solid rgba(0, 102, 153, 0.4);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.history-output-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.history-output-card__content {
    display: grid;
    gap: 8px;
}

.history-output-card__content h3 {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.history-output-card__content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.history-output-card__text {
    margin: 0;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.6;
}

.history-json-preview {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 14px;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    max-height: 220px;
    overflow: auto;
}

.history-json-preview[hidden] {
    display: none !important;
}

.history-sidebar-placeholder {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.history-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.history-preview h4 {
    margin: 0;
    font-size: 18px;
}

.history-preview__meta {
    display: grid;
    gap: 8px;
}

.history-preview__meta div {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.history-preview__messages {
    display: grid;
    gap: 10px;
}

.history-preview__message {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    padding: 12px;
}

.history-preview__message strong {
    display: block;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.history-preview__message p {
    margin: 0;
    white-space: pre-wrap;
}

.history-intro {
    font-size: 16px;
    margin-bottom: 12px;
}

.history-intro__steps {
    margin: 0 0 12px 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.75);
}

.history-intro__notice {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 960px) {
    .history-toolbar {
        top: 70px;
    }

    .history-tabs {
        top: 134px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .history-panel__grid {
        grid-template-columns: 1fr;
    }

    .history-conversation {
        grid-template-columns: 1fr;
    }

    .history-conversation__checkbox,
    .history-conversation__actions {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .history-toolbar {
        padding: 14px;
    }

    .history-field--inline {
        flex-direction: column;
        align-items: stretch;
    }

    .history-selection-actions,
    .history-sort-group,
    .history-toolbar__actions {
        justify-content: center;
    }
}

.form-card textarea:focus {
    border-color: var(--accent);
    outline: none;
}

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

.form-hint {
    color: var(--muted);
    font-size: 14px;
}

.settings-list {
    display: grid;
    gap: 16px;
    margin: 0;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row dt {
    font-weight: 600;
    color: var(--muted);
}

.settings-row dd {
    margin: 0;
    font-weight: 500;
}

/* Images V2 page */
.images-v2-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 16px;
}

.images-v2-intro .cta-button {
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background 0.2s ease, transform 0.2s ease;
}

.images-v2-intro .cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.images-v2-intro .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.images-v2-intro .tag-pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.images-v2-intro .intro-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
}

.images-v2-intro .intro-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.images-v2-intro .intro-value {
    font-weight: 600;
    color: #fff;
}

.images-v2-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.images-v2-roadmap {
    overflow-x: auto;
}

.images-v2-roadmap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.images-v2-roadmap th,
.images-v2-roadmap td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.images-v2-roadmap thead th {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: var(--muted);
}

.images-v2-roadmap ul {
    padding-left: 18px;
    margin: 0;
}

.images-v2-roadmap .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.08);
}

.roadmap-row.status-active .status-pill {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

.roadmap-row.status-planned .status-pill {
    background: rgba(250, 204, 21, 0.18);
    color: #fef3c7;
}

.roadmap-row.status-queued .status-pill {
    background: rgba(96, 165, 250, 0.2);
    color: #dbeafe;
}

.roadmap-row.status-future .status-pill {
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.images-v2-epics {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.images-v2-epics ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.images-v2-epics li {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px 16px;
    display: grid;
    gap: 4px;
}

.images-v2-epics .task-title {
    font-weight: 600;
}

.images-v2-epics .task-notes,
.images-v2-epics li span {
    color: var(--muted);
    font-size: 14px;
}

@media (min-width: 960px) {
    .images-v2-epics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.images-v2-component-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

@media (min-width: 960px) {
    .images-v2-component-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

.component-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 20px;
    display: grid;
    gap: 12px;
}

.component-card h3 {
    margin: 0;
}

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

.component-card ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.82);
}

.images-v2-views {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

@media (min-width: 960px) {
    .images-v2-views {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.view-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    background: rgba(8, 11, 20, 0.8);
    display: grid;
    gap: 12px;
}

.view-card header h3 {
    margin: 0;
}

.view-card header p {
    margin: 0;
    color: var(--muted);
}

.view-card .view-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.ui-tips {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.ui-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
}

.workspace-preview {
    display: grid;
    gap: 20px;
}

@media (min-width: 1024px) {
    .workspace-preview {
        grid-template-columns: 220px minmax(0, 1fr) 260px;
        align-items: stretch;
    }
}

.workspace-sidebar,
.workspace-detail {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 18px;
    display: grid;
    gap: 12px;
}

.workspace-sidebar header,
.workspace-detail header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.workspace-sidebar h3,
.workspace-detail h3 {
    margin: 0;
}

.workspace-sidebar .pill {
    align-self: flex-start;
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 102, 153, 0.2);
}

.workspace-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.workspace-sidebar li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.workspace-sidebar .count {
    color: var(--muted);
}

.workspace-sidebar .sidebar-action {
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.workspace-main {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
}

.workspace-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.workspace-header .header-actions {
    display: flex;
    gap: 10px;
}

.workspace-header .header-actions button {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
}

.workspace-header .view-switcher {
    display: inline-flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    padding: 4px;
}

.workspace-header .view-switcher button {
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.workspace-header .view-switcher .is-active {
    background: var(--accent);
    color: #fff;
}

.thumbnail-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

.thumbnail-card {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.thumbnail-card footer {
    padding: 12px 14px 16px;
    display: grid;
    gap: 8px;
}

.thumbnail-card h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.thumbnail-card .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.thumbnail-card .tag-row li {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.thumbnail-card .sync-state {
    font-size: 12px;
    color: var(--muted);
}

.thumbnail-card.is-pending .sync-state {
    color: #facc15;
}

.thumbnail-skeleton {
    flex: 1 1 auto;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.06));
    animation: skeleton-shimmer 1.6s infinite ease-in-out;
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-10%);
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(10%);
        opacity: 0.4;
    }
}

.workspace-detail .detail-group {
    display: grid;
    gap: 8px;
}

.workspace-detail .tag-row {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.workspace-detail .tag-row li {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.workspace-detail dl {
    margin: 0;
    display: grid;
    gap: 6px;
}

.workspace-detail dl div {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.workspace-detail .inline-action {
    justify-self: start;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.tech-stack ul,
.env-vars ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.tech-stack li {
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    border-radius: 12px;
}

.env-vars ul li {
    display: grid;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.env-vars .var-name {
    font-weight: 600;
}

.env-vars .var-value {
    color: #fff;
}

.env-vars .var-description {
    color: var(--muted);
    font-size: 13px;
}

.data-model pre {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 12px;
    padding: 16px;
    overflow-x: auto;
}

.images-v2-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.images-v2-footer .footer-metric {
    display: grid;
    gap: 4px;
    min-width: 120px;
}

.images-v2-footer .footer-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: var(--muted);
}

.images-v2-footer .footer-value {
    font-weight: 600;
    color: #fff;
}

.images-v2-footer .footer-progress {
    display: grid;
    gap: 6px;
    min-width: 200px;
}

.images-v2-footer .progress-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.images-v2-footer .progress-bar {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-section__list--media {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.nav-media-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-media-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-media-link.is-active {
    background: rgba(0, 102, 153, 0.35);
    color: #fff;
}

.nav-media-label {
    font-weight: 600;
}

.nav-media-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 2px 8px;
}

