html,
body {
    height: 100%;
}

body {
    margin: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
}

.brand-logo {
    height: 60px;
}

.brand-logo--navbar {
    height: 54px;
}

.brand-logo--footer {
    height: 44px;
}

.brand-logo--light {
    display: inline-block;
}

.brand-logo--dark {
    display: none;
}

:root[data-theme="dark"] .brand-logo--light {
    display: none;
}

:root[data-theme="dark"] .brand-logo--dark {
    display: inline-block;
}

.public-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.public-page-auth {
    height: 100dvh;
    overflow: hidden;
}

.public-shell {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

.public-main {
    min-height: 0;
}

.public-main-auth {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

.public-main-auth > .auth-shell {
    flex: 1 1 auto;
    min-height: 100%;
    height: 100%;
}

.public-page-auth .auth-left {
    padding: 18px 28px;
}

.public-page-auth .card-header-premium {
    padding: 14px 20px;
}

.public-page-auth .card-header-premium .text-white-50 {
    color: var(--color-auth-card-subtitle) !important;
}

.public-page-auth .card-body-premium {
    padding: 18px 20px;
}

.page-title {
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.page-subtitle {
    color: var(--color-text-accent);
    margin-bottom: 1.05rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-elevated {
    background: var(--color-bg-elevated);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(var(--color-shadow-rgb), 0.08);
}

.card-header-premium {
    background: var(--gradient-card-header);
    color: #ffffff;
    border-radius: 16px 16px 0 0;
    padding: 16px 20px;
}

.card-body-premium {
    padding: 18px 20px;
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid var(--color-border-strong);
    padding: 0.58rem 0.8rem;
    background: var(--color-bg-elevated);
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    border-radius: 12px;
    padding: 0.58rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-outline-secondary {
    border-radius: 12px;
    color: var(--color-text-accent);
    border-color: var(--color-border-strong);
    padding: 0.56rem 0.92rem;
    font-size: 0.94rem;
}

.btn-outline-secondary:hover {
    background: var(--color-primary-hover);
    color: #ffffff;
}

.btn-outline-light {
    border-radius: 12px;
}

.table thead th {
    background: var(--color-surface-muted);
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
}

.table {
    background: var(--color-bg-elevated);
    border-radius: 12px;
    overflow: hidden;
}

.table-shell {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(var(--color-shadow-rgb), 0.05);
}

.table-roh {
    margin-bottom: 0;
    vertical-align: middle;
}

.table-roh thead th {
    background: var(--color-table-head-bg);
    border-bottom: 1px solid var(--color-table-head-border);
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-table-head-text);
    white-space: nowrap;
    padding: 0.72rem 0.8rem;
}

.table-roh tbody td {
    border-color: var(--color-table-row-border);
    color: var(--color-table-row-text);
    padding: 0.78rem 0.8rem;
}

.table-roh tbody tr:nth-child(even) {
    background: var(--color-table-row-alt-bg);
}

.table-roh tbody tr:hover {
    background: var(--color-table-row-hover-bg);
}

.table-action-icon {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.table-action-icon i {
    font-size: 0.95rem;
}

.table-roh.table-compact td,
.table-roh.table-compact th {
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
}

.stat-card {
    border-radius: 14px;
    border: 1px solid var(--color-stat-border);
    padding: 16px;
    background: var(--color-card-surface);
    box-shadow: 0 8px 20px rgba(var(--color-shadow-rgb), 0.06);
}

#activityFeed {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.activity-feed-item {
    border-bottom: 1px solid var(--color-activity-feed-border);
    padding: 0.35rem 0;
    line-height: 1.4;
    word-break: break-word;
}

.activity-feed-item:last-child {
    border-bottom: 0;
}

.company-dashboard-table .member-cell {
    min-width: 220px;
}

.company-dashboard-table .screenshot-cell {
    min-width: 240px;
}

.company-dashboard-table .metric-cell {
    min-width: 150px;
}

.last-screenshot-link {
    display: inline-block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-screenshot-border);
    width: 220px;
    height: 124px;
}

.last-screenshot-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--color-screenshot-bg);
}

.timeline-thumbnail-image {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.timeline-thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 28, 46, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.timeline-thumbnail-cta {
    border-radius: 10px;
    background: #2d5fb5;
    color: #ffffff;
    font-weight: 600;
    padding: 8px 14px;
    box-shadow: 0 6px 18px rgba(10, 28, 46, 0.25);
}

.timeline-thumbnail-link:hover .timeline-thumbnail-overlay,
.timeline-thumbnail-link:focus-visible .timeline-thumbnail-overlay {
    opacity: 1;
}

.timeline-thumbnail-link:hover .timeline-thumbnail-image,
.timeline-thumbnail-link:focus-visible .timeline-thumbnail-image {
    transform: scale(1.02);
    filter: blur(1px) brightness(0.92);
}

.timeline-thumbnail-link:focus-visible {
    outline: 3px solid rgba(58, 110, 165, 0.4);
    outline-offset: 2px;
}

.last-screenshot-placeholder {
    width: 220px;
    height: 124px;
    border: 1px dashed var(--color-placeholder-border);
    border-radius: 10px;
    color: var(--color-placeholder-text);
    background: var(--color-placeholder-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.timeline-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.timeline-day-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timeline-day-chip {
    border: 1px solid var(--color-timeline-chip-border);
    border-radius: 10px;
    background: var(--color-timeline-chip-bg);
    color: var(--color-timeline-chip-text);
    text-decoration: none;
    padding: 0.45rem 0.5rem;
    display: block;
}

.timeline-day-chip:hover {
    background: var(--color-timeline-chip-hover-bg);
    border-color: var(--color-timeline-chip-hover-border);
}

.timeline-day-chip.active {
    background: var(--color-timeline-chip-active-bg);
    border-color: var(--color-timeline-chip-active-border);
    box-shadow: inset 0 0 0 1px rgba(95, 134, 191, 0.28);
}

.timeline-day-chip .day-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-timeline-chip-subtle-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.timeline-day-chip .day-value {
    display: block;
    font-weight: 700;
    margin-top: 0.1rem;
}

.timeline-day-chip .day-count {
    display: block;
    font-size: 0.76rem;
    color: var(--color-timeline-chip-count-text);
}

.timeline-hours {
    display: grid;
    gap: 0.8rem;
}

.timeline-hour-row {
    border: 1px solid var(--color-timeline-row-border);
    border-radius: 12px;
    background: var(--color-timeline-row-bg);
    padding: 0.75rem;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0.8rem;
}

.timeline-hour-label {
    font-weight: 700;
    color: var(--color-timeline-label);
}

.timeline-hour-content {
    min-width: 0;
}

.timeline-hour-row-slots {
    align-items: start;
}

.timeline-slot-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 0.7rem;
}

.timeline-slot-card {
    border: 1px solid var(--color-timeline-row-border);
    border-radius: 10px;
    background: var(--color-bg-elevated);
    padding: 0.45rem;
}

.timeline-slot-card-empty {
    min-height: 182px;
}

.timeline-slot-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-timeline-label);
    margin-bottom: 0.3rem;
}

.timeline-slot-placeholder {
    width: 100%;
    height: 96px;
    border-radius: 8px;
    border: 1px dashed var(--color-screenshot-border);
    background: var(--color-screenshot-bg);
    color: var(--color-timeline-empty);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
}

.timeline-capture-btn {
    width: 100%;
    position: relative;
}

.timeline-capture-preview {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-screenshot-border);
    background: var(--color-screenshot-bg);
}

.timeline-slot-count-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(24, 68, 116, 0.92);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.timeline-capture-meta {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--color-timeline-meta);
}

.timeline-slot-activity {
    font-weight: 700;
    color: var(--color-timeline-meta);
    margin-bottom: 0.15rem;
}

.timeline-empty-hour {
    color: var(--color-timeline-empty);
    font-size: 0.9rem;
    padding-top: 0.25rem;
}

.timeline-summary-grid {
    display: grid;
    gap: 0.35rem;
}

.timeline-stat-lg {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-timeline-stat-strong);
    line-height: 1.1;
}

.timeline-stat-md {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-timeline-stat-text);
}

.timeline-stat-sm {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-timeline-stat-text);
}

.timeline-stat-label {
    color: var(--color-timeline-stat-label);
    font-size: 0.92rem;
}

.timeline-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.3rem;
}

.timeline-usage-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.roh-cookie-consent-root {
    position: relative;
    z-index: 1080;
}

.roh-cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: var(--color-cookie-bg);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(var(--color-shadow-rgb), 0.18);
    padding: 0.9rem 1rem;
}

.roh-cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.roh-cookie-title {
    font-weight: 700;
    color: var(--color-cookie-title);
    margin-bottom: 0.2rem;
}

.roh-cookie-copy {
    color: var(--color-cookie-copy);
    font-size: 0.92rem;
}

.roh-cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.roh-cookie-link {
    margin-left: 0.3rem;
    font-weight: 600;
}

.roh-cookie-modal .modal-body {
    display: grid;
    gap: 0.65rem;
}

.roh-cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    background: var(--color-cookie-option-bg);
}

@media (max-width: 767.98px) {
    .roh-cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

.timeline-usage-col {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-elevated);
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.timeline-usage-title {
    text-align: center;
    font-weight: 700;
    color: var(--color-usage-title-text);
    border-bottom: 1px solid var(--color-usage-title-border);
    padding: 0.8rem;
}

.timeline-usage-title-alt {
    color: var(--color-usage-title-alt-text);
}

.timeline-usage-list {
    padding: 0.65rem 0.75rem;
    overflow: auto;
    max-height: 360px;
}

.timeline-usage-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.1fr;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.35rem;
}

.timeline-usage-name {
    color: var(--color-usage-item-text);
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-usage-bar-wrap {
    background: var(--color-timeline-bar-bg);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.timeline-usage-bar {
    background: var(--color-timeline-bar-fill);
    height: 100%;
}

.timeline-usage-value {
    color: var(--color-usage-value-text);
    font-size: 0.88rem;
    text-align: right;
    white-space: nowrap;
}

.app-shell {
    height: 100dvh;
    min-height: 100dvh;
    display: flex;
    overflow: hidden;
}

.sidebar {
    width: 250px;
    height: 100dvh;
    background: var(--color-sidebar-bg);
    color: var(--color-sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    overflow-y: auto;
}

.sidebar .brand {
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sidebar .nav-section {
    margin: 16px 8px 6px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-link-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar .nav-section i {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar .nav-link {
    color: var(--color-sidebar-link);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .nav-link:hover {
    color: var(--color-sidebar-text);
    background: var(--color-sidebar-link-hover-bg);
}

.sidebar .text-white-50 {
    color: var(--color-link-muted) !important;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
}

.content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content > main {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.topbar {
    height: 64px;
    background: var(--color-topbar-bg);
    border-bottom: 1px solid var(--color-topbar-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.page-backbar {
    display: flex;
    align-items: center;
}

.btn-back-nav {
    border-radius: 10px;
    border: 1px solid var(--color-border-strong);
    color: var(--color-text-accent);
    background: var(--color-bg-elevated);
    font-weight: 600;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back-nav:hover {
    background: var(--color-surface-muted);
    border-color: var(--color-primary-hover);
    color: var(--color-text);
}

.btn-back-nav:focus-visible {
    outline: 3px solid rgba(var(--color-shadow-rgb), 0.35);
    outline-offset: 2px;
}

.hero {
    padding: 90px 0 70px;
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero .badge {
    background-color: var(--color-badge-on-dark);
    color: white;
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    color: white;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(167, 197, 235, 0.35), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero::before {
    top: -80px;
    right: 80px;
}

.hero::after {
    bottom: -120px;
    left: 60px;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.section-highlight {
    background: var(--color-surface-muted);
}

.badge-premium {
    background: rgba(58, 110, 165, 0.25);
    color: #ffffff;
    border: 1px solid rgba(167, 197, 235, 0.5);
}

.feature-card {
    background: var(--color-bg-elevated);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(var(--color-shadow-rgb), 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(var(--color-shadow-rgb), 0.14);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-surface-muted);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.pricing-card {
    background: var(--color-bg-elevated);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pricing-card-featured {
    box-shadow: 0 16px 36px rgba(var(--color-shadow-rgb), 0.18);
    transform: translateY(-6px);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(var(--color-shadow-rgb), 0.18);
    border-color: var(--color-border-strong);
}

.pricing-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--color-surface-muted);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
    color: var(--color-text-muted);
}

.pricing-list i {
    color: var(--color-primary);
    margin-right: 8px;
}

.cta {
    background: var(--color-sidebar-bg);
    color: white;
    border-radius: 18px;
    padding: 40px;
}

.cta-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.cta-list i {
    margin-right: 6px;
}

.comparison-row {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-row-head {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 0.5fr);
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.comparison-row-item {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 0.5fr);
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    padding: 6px 0;
}

.comparison-row-item span {
    color: var(--color-text-muted);
}

.comparison-tier,
.comparison-check {
    text-align: center;
}

.comparison-highlight {
    background: rgba(58, 110, 165, 0.18);
    border: 1px solid rgba(58, 110, 165, 0.35);
    box-shadow: 0 8px 18px rgba(var(--color-shadow-rgb), 0.12);
    border-radius: 999px;
    padding: 8px 12px;
}

.comparison-check i {
    color: var(--color-primary);
}

.auth-shell {
    min-height: 100%;
    height: auto;
    width: 100%;
    display: grid;
    grid-template-columns: 45% 55%;
    background: var(--color-bg);
}

.auth-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
    background: var(--color-bg-elevated);
    min-height: 0;
    overflow: hidden;
}

.auth-right {
    padding: 36px 48px;
    background: var(--gradient-auth-pane);
    color: var(--color-text);
    display: flex;
    align-items: center;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.auth-right::before,
.auth-right::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58, 110, 165, 0.25), transparent 70%);
    z-index: 0;
}

.auth-right::before {
    top: -120px;
    right: 40px;
}

.auth-right::after {
    bottom: -140px;
    left: 30px;
}

.auth-hero {
    position: relative;
    z-index: 1;
    max-width: 520px;
    max-height: 100%;
}

.auth-right .feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: 24px;
}

.auth-right .feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--color-text-accent);
    font-weight: 600;
}

.auth-stats {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auth-stat-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(18, 59, 107, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 24px rgba(var(--color-shadow-rgb), 0.12);
    backdrop-filter: blur(6px);
}

.auth-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(18, 59, 107, 0.12);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.auth-stat-title {
    font-weight: 700;
    color: var(--color-text-accent);
}

.auth-stat-sub {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.auth-illustration {
    margin-top: 20px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(var(--color-shadow-rgb), 0.16);
    max-height: clamp(120px, 22vh, 220px);
}

.auth-illustration svg {
    display: block;
    width: 100%;
    height: 100%;
}

.text-secondary-brand {
    color: var(--color-text-accent);
}

.public-navbar {
    background: var(--color-public-nav-bg);
}

.public-navbar .navbar-brand,
.public-navbar .nav-link {
    color: var(--color-public-nav-text);
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link:focus-visible {
    color: var(--color-public-nav-text);
    opacity: 0.9;
}

.public-footer {
    background: var(--color-public-footer-bg);
    color: var(--color-public-footer-text);
}

.public-footer-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

.public-page-auth .public-footer-links {
    width: 100%;
    justify-content: center;
    row-gap: 0.35rem;
}

.public-footer-link {
    color: var(--color-public-footer-link);
}

.public-footer-link:hover,
.public-footer-link:focus-visible {
    color: var(--color-public-footer-text);
}

.roh-theme-toggle .btn {
    border-color: var(--color-border-strong);
    color: var(--color-text-accent);
    background: var(--color-bg-elevated);
}

.roh-theme-toggle .btn:hover,
.roh-theme-toggle .btn:focus-visible {
    color: var(--color-text);
    background: var(--color-surface-muted);
    border-color: var(--color-primary-hover);
}

.roh-theme-toggle [data-theme-option][data-active="true"] {
    color: #ffffff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.theme-surface-muted {
    background: var(--color-inline-code-bg) !important;
    color: var(--color-text);
    border-color: var(--color-border) !important;
}

:root[data-theme="dark"] .text-muted {
    color: var(--color-text-muted) !important;
}

:root[data-theme="dark"] .badge.bg-warning-subtle.text-warning-emphasis {
    background: rgba(255, 193, 7, 0.22) !important;
    color: #ffe8a3 !important;
}

@media (max-width: 1200px) {
    .auth-left {
        padding: 28px;
    }

    .auth-right {
        padding: 40px;
    }
}

@media (max-height: 900px) and (min-width: 993px) {
    .public-page-auth .auth-right {
        padding: 24px 32px;
    }

    .public-page-auth .auth-right .feature-list {
        margin-top: 16px;
    }

    .public-page-auth .auth-right .feature-list li {
        margin-bottom: 8px;
    }
}

@media (max-height: 860px) and (min-width: 993px) {
    .public-page-auth .auth-stats {
        display: none;
    }
}

@media (max-height: 780px) and (min-width: 993px) {
    .public-page-auth .auth-right {
        padding: 16px 24px;
    }

    .public-page-auth .auth-hero h2 {
        font-size: 2rem;
        margin-top: 0.6rem !important;
        margin-bottom: 0.55rem;
    }

    .public-page-auth .auth-hero p {
        margin-top: 0.5rem !important;
        margin-bottom: 0.55rem;
    }

    .public-page-auth .auth-right .feature-list {
        margin-top: 10px;
    }

    .public-page-auth .auth-right .feature-list li {
        margin-bottom: 6px;
        font-size: 1rem;
    }

    .public-page-auth .auth-illustration {
        margin-top: 10px;
        max-height: 140px;
    }

    .public-page-auth .auth-left {
        padding: 12px 20px;
    }

    .public-page-auth .card-header-premium {
        padding: 12px 16px;
    }

    .public-page-auth .card-body-premium {
        padding: 14px 16px;
    }
}

@media (max-height: 720px) and (min-width: 993px) {
    .public-page-auth .auth-illustration {
        display: none;
    }

    .public-page-auth .auth-right .feature-list li:nth-child(n+4) {
        display: none;
    }

    .public-page-auth .auth-right .feature-list li {
        margin-bottom: 4px;
    }

    .public-page-auth .auth-left {
        padding: 10px 18px;
    }
}

@media (max-width: 992px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-left {
        padding: 24px 20px;
        overflow-y: auto;
    }

    .auth-right {
        display: none;
    }

    .public-page-auth {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .public-main-auth {
        overflow: visible;
    }

    .public-main-auth > .auth-shell {
        height: auto;
        min-height: 100%;
    }

    .public-footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 0 12px;
    }

    .btn-back-nav {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .auth-left {
        padding: 18px 12px;
    }

    .timeline-usage-tabs {
        grid-template-columns: 1fr;
    }

    .timeline-slot-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .timeline-slot-grid {
        grid-template-columns: repeat(3, minmax(145px, 1fr));
    }
}

/* Modern Enterprise Refresh v2 overrides */
html,
body {
    font-family: var(--font-body);
}

body {
    color: var(--text-default);
    background:
        radial-gradient(circle at top left, rgba(34, 199, 214, 0.08), transparent 24%),
        radial-gradient(circle at 100% 20%, rgba(37, 99, 235, 0.09), transparent 28%),
        var(--surface-canvas);
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.page-shell-title,
.hero-display,
.dashboard-panel-title {
    font-family: var(--font-heading);
    color: var(--text-strong);
    letter-spacing: -0.035em;
}

.text-muted {
    color: var(--text-muted) !important;
}

.section-kicker,
.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: var(--brand-blue);
}

.page-shell-title {
    margin: 0;
    font-size: clamp(1.2rem, 1.1rem + 0.7vw, 1.75rem);
}

.page-shell-subtitle {
    color: var(--text-muted);
    font-size: 0.94rem;
    max-width: 46rem;
}

.app-shell {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 18%), var(--surface-canvas);
}

.sidebar {
    width: 290px;
    padding: 1.5rem 1rem 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
        var(--surface-shell);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

.sidebar .brand {
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.brand-logo {
    height: 58px;
}

.brand-logo--navbar {
    height: 58px;
}

.brand-logo--footer {
    height: 42px;
}

.sidebar-profile {
    margin: 0 0.5rem 1.2rem;
    padding: 1rem 1rem 1.05rem;
    border-radius: var(--radius-24);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-profile-label,
.sidebar-account-role {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.28rem 0.7rem;
    border-radius: var(--radius-pill);
    background: rgba(124, 224, 195, 0.14);
    color: #d4fff0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.sidebar-profile-name,
.sidebar-account-email {
    display: block;
    margin-top: 0.8rem;
    color: var(--text-inverse);
    font-size: 1rem;
    font-weight: 700;
    line-break: anywhere;
}

.sidebar-profile-meta {
    display: block;
    margin-top: 0.45rem;
    color: rgba(232, 242, 255, 0.66);
    font-size: 0.85rem;
    line-height: 1.5;
}

.sidebar-nav {
    gap: 0.2rem;
}

.sidebar .nav-section {
    margin: 1rem 0.65rem 0.45rem;
    color: rgba(206, 223, 242, 0.66);
    font-weight: 700;
}

.sidebar .nav-link {
    position: relative;
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    margin: 0;
    border-radius: 16px;
    color: var(--color-sidebar-link);
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .nav-link i {
    font-size: 1rem;
}

.sidebar .nav-link span {
    flex: 1;
}

.sidebar .nav-link:hover {
    transform: translateX(2px);
}

.sidebar .nav-link.active,
.sidebar .nav-link[aria-current="page"] {
    background: var(--surface-shell-active);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.sidebar-footer {
    margin-top: auto;
    padding: 1.1rem 0.5rem 0.2rem;
}

.sidebar-account-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer .btn-outline-light {
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fbff;
}

.sidebar-footer .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
}

.sidebar-footer-links {
    gap: 0.75rem;
    flex-wrap: wrap;
}

.content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 18%),
        transparent;
}

.content > main {
    padding-top: 1.65rem !important;
    padding-bottom: 2rem !important;
}

.topbar {
    height: auto;
    min-height: 88px;
    padding: 1rem 1.6rem;
    background: var(--color-topbar-bg);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(var(--shadow-rgb), 0.06);
}

.topbar-primary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.page-heading-group {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.topbar-utilities {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem !important;
}

.topbar-role-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.72rem;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.topbar-role-chip-company {
    background: rgba(22, 163, 74, 0.11);
    color: #0e7b35;
    border-color: rgba(22, 163, 74, 0.18);
}

.topbar-role-chip-employee {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.18);
}

.topbar-role-chip-admin {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.18);
}

.topbar-user {
    padding: 0.38rem 0.72rem;
    border-radius: var(--radius-pill);
    background: rgba(16, 32, 51, 0.04);
    border: 1px solid rgba(16, 32, 51, 0.06);
    font-size: 0.84rem;
    line-height: 1.2;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-org-switch .form-select {
    min-width: 156px;
    min-height: 36px;
}

.btn-back-nav {
    min-height: 36px;
    border-radius: 12px;
    border-color: rgba(16, 32, 51, 0.09);
    box-shadow: none;
    padding: 0.42rem 0.76rem;
    gap: 0.45rem;
    font-size: 0.93rem;
}

.btn,
.form-control,
.form-select,
.form-check-input,
.badge,
.table,
.table-shell,
.card-elevated,
.feature-card,
.pricing-card,
.stat-card {
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn {
    border-radius: 14px;
    font-weight: 700;
    min-height: 38px;
    padding: 0.56rem 0.95rem;
    font-size: 0.94rem;
}

.btn-lg {
    min-height: 44px;
    padding-inline: 1.15rem;
    padding-block: 0.6rem;
    font-size: 0.98rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue-strong) 0%, var(--brand-blue) 52%, var(--brand-cyan) 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, #1c4fd1 0%, #2563eb 48%, #15b4c5 100%);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline-primary,
.btn-outline-light,
.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(16, 32, 51, 0.12);
    color: var(--text-strong);
}

.btn-outline-primary:hover,
.btn-outline-light:hover,
.btn-outline-secondary:hover {
    border-color: rgba(37, 99, 235, 0.28);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-strong);
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.nav-link:focus-visible,
.timeline-thumbnail-link:focus-visible {
    box-shadow: var(--focus-ring) !important;
    outline: none;
}

.form-label {
    margin-bottom: 0.34rem;
    color: var(--text-strong);
    font-size: 0.84rem;
    font-weight: 600;
}

.form-control,
.form-select {
    min-height: 40px;
    border-radius: 14px;
    padding: 0.62rem 0.82rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(16, 32, 51, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-control::placeholder {
    color: #8da0b4;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    border-radius: 0.4rem;
    border-color: rgba(16, 32, 51, 0.16);
}

.card-elevated,
.dashboard-panel,
.feature-card,
.pricing-card,
.stat-card,
.table-shell {
    background: var(--color-card-surface);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.card-header-premium {
    background: var(--gradient-card-header);
    padding: 0.95rem 1.1rem;
}

.card-body-premium {
    padding: 1rem 1.1rem;
}

.public-page {
    background: var(--surface-canvas);
}

.public-navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.public-navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/images/graphics/orbit-mesh.svg") center/cover no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.public-navbar > .container {
    position: relative;
    z-index: 1;
}

.public-nav-actions {
    display: flex;
    align-items: center;
}

.public-nav-link {
    padding: 0.75rem 1rem;
    border-radius: 14px;
    color: rgba(248, 251, 255, 0.88) !important;
}

.public-nav-cta {
    min-width: 138px;
    justify-content: center;
}

.hero-enterprise {
    padding: 6rem 0 4.25rem;
    position: relative;
    background: var(--gradient-hero);
}

.hero-enterprise::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/images/graphics/orbit-mesh.svg") center/cover no-repeat;
    opacity: 0.2;
    pointer-events: none;
}

.hero-grid,
.split-showcase,
.dashboard-stream-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
    align-items: center;
}

.hero-copy {
    max-width: 40rem;
}

.hero-display {
    margin-bottom: 1rem;
    font-size: clamp(2.8rem, 2rem + 2vw, 4.6rem);
    line-height: 0.98;
    color: #f8fbff;
}

.hero-lead {
    color: rgba(240, 248, 255, 0.8);
    font-size: 1.12rem;
    line-height: 1.7;
    max-width: 38rem;
}

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

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

.hero-proof-strip {
    margin-top: 2.2rem;
}

.hero-proof-item,
.proof-chip {
    padding: 0.82rem 0.92rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f8fbff;
}

.hero-proof-item strong,
.proof-chip span {
    display: block;
    font-weight: 700;
}

.hero-proof-item span {
    display: block;
    margin-top: 0.35rem;
    color: rgba(240, 248, 255, 0.72);
    font-size: 0.84rem;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-float-card {
    max-width: 20rem;
    align-self: flex-end;
}

.hero-float-label,
.auth-preview-label {
    display: inline-flex;
    margin-bottom: 0.5rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(248, 251, 255, 0.72);
    font-weight: 700;
}

.hero-preview {
    padding: 1rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-floating);
}

.proof-band {
    position: relative;
    margin-top: -2rem;
    padding-bottom: 1rem;
}

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

.proof-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-strong);
    border-color: rgba(191, 208, 226, 0.64);
    box-shadow: var(--shadow-soft);
}

.proof-chip i {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    background: rgba(37, 99, 235, 0.08);
}

.section-stack {
    padding: 4.75rem 0;
}

.feature-mosaic {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature-mosaic > .feature-card {
    grid-column: span 4;
}

.feature-card {
    padding: 1.15rem;
    overflow: hidden;
}

.feature-card:hover,
.pricing-card:hover,
.dashboard-panel:hover,
.card-elevated:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.feature-card-highlight {
    grid-column: span 8 !important;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(34, 199, 214, 0.14), transparent 36%),
        var(--color-card-surface);
}

.feature-card-copy h2 {
    margin: 0.5rem 0 0.8rem;
    font-size: clamp(1.5rem, 1.28rem + 0.58vw, 1.98rem);
}

.feature-card-copy p {
    max-width: 30rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

.feature-card-art {
    width: min(44%, 300px);
    max-width: 100%;
}

.feature-card-tall {
    min-height: 100%;
}

.feature-icon,
.pricing-icon,
.dashboard-kpi-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(34, 199, 214, 0.18));
    color: var(--brand-blue);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dashboard-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.02rem;
    line-height: 1;
}

.feature-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
    margin-top: 1rem;
}

.feature-list-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(191, 208, 226, 0.58);
}

.feature-list-item i,
.feature-list li i,
.cta-list i {
    color: var(--brand-cyan);
}

.split-showcase-copy h2,
.section-header h2 {
    margin: 0.45rem 0 0.85rem;
    font-size: clamp(1.56rem, 1.32rem + 0.64vw, 2.08rem);
}

.split-showcase-visual {
    padding: 0.95rem;
}

.pricing-card {
    position: relative;
    padding: 1.2rem;
}

.pricing-card-featured {
    background:
        radial-gradient(circle at top right, rgba(34, 199, 214, 0.16), transparent 34%),
        rgba(255, 255, 255, 0.98);
    border-color: rgba(37, 99, 235, 0.22);
    transform: translateY(-4px);
}

.pricing-badge {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.28rem 0.68rem;
    border-radius: var(--radius-pill);
    background: rgba(37, 99, 235, 0.12);
    color: var(--brand-blue-strong);
    font-size: 0.72rem;
    font-weight: 700;
}

.cta-enterprise {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1f33 0%, #123a63 48%, #1d4ed8 100%);
    box-shadow: var(--shadow-floating);
}

.cta-enterprise::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/images/graphics/orbit-mesh.svg") center/cover no-repeat;
    opacity: 0.14;
    pointer-events: none;
}

.cta-enterprise > * {
    position: relative;
    z-index: 1;
}

.public-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--color-public-footer-bg);
    color: var(--color-public-footer-text);
}

.public-footer-links {
    row-gap: 0.4rem;
    font-size: 0.82rem;
}

.public-footer-link {
    color: var(--color-public-footer-link);
}

.auth-shell-modern {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
}

.auth-left {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 24%),
        rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(20px);
}

.auth-right {
    background:
        url("/images/graphics/orbit-mesh.svg") center/cover no-repeat,
        var(--gradient-auth-pane);
}

.auth-form-wrap {
    width: 100%;
    max-width: 480px;
}

.auth-form-wrap-wide {
    max-width: 560px;
}

.auth-form-intro {
    margin-bottom: 1.25rem;
}

.auth-form-intro h2 {
    margin: 0.45rem 0 0.7rem;
    font-size: clamp(1.9rem, 1.55rem + 0.9vw, 2.65rem);
}

.auth-card {
    overflow: hidden;
}

.auth-form-grid .text-danger {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.84rem;
}

.form-error-summary {
    margin-bottom: 0.5rem;
}

.auth-hero-modern {
    max-width: 560px;
}

.auth-hero-modern h2 {
    font-size: clamp(2.2rem, 1.8rem + 1vw, 3.25rem);
    line-height: 1.02;
}

.auth-product-preview {
    margin-top: 1.7rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.66);
    box-shadow: var(--shadow-soft);
}

.auth-product-preview-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.9rem;
}

.auth-product-preview strong {
    color: var(--text-strong);
}

.auth-product-preview .img-fluid {
    border-radius: 18px;
    width: 100%;
}

.dashboard-overview,
.reports-overview {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

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

.dashboard-kpi {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    min-height: 7.9rem;
    border-radius: 18px;
    border: 1px solid var(--color-stat-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 38%),
        var(--color-card-surface);
    box-shadow: var(--shadow-soft);
}

.dashboard-kpi-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.08rem;
    min-width: 0;
}

.dashboard-kpi-label {
    color: var(--text-muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.dashboard-kpi-value {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 1.42rem + 0.36vw, 1.98rem);
    line-height: 1;
    color: var(--text-strong);
}

.dashboard-kpi-meta {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.dashboard-kpi-online .dashboard-kpi-icon {
    color: #0e7b35;
    background: rgba(22, 163, 74, 0.12);
}

.dashboard-kpi-working .dashboard-kpi-icon {
    color: var(--brand-blue);
}

.dashboard-kpi-offline .dashboard-kpi-icon {
    color: #64748b;
    background: rgba(148, 163, 184, 0.14);
}

.dashboard-panel {
    padding: 1rem;
}

.dashboard-panel-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.dashboard-panel-header-stack {
    margin-bottom: 0.85rem;
}

.dashboard-panel-title {
    margin: 0.3rem 0 0;
    font-size: clamp(1.35rem, 1.25rem + 0.5vw, 1.8rem);
}

.dashboard-panel-subtitle {
    color: var(--text-muted);
    max-width: 40rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.dashboard-panel-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.62rem;
    border-radius: var(--radius-pill);
    background: rgba(37, 99, 235, 0.08);
    color: var(--brand-blue-strong);
    font-size: 0.72rem;
    font-weight: 700;
}

.dashboard-stream-layout {
    align-items: stretch;
}

.dashboard-feed-panel,
.dashboard-illustration-panel {
    min-height: 100%;
}

.dashboard-illustration {
    width: 100%;
    border-radius: 18px;
}

.activity-feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.activity-feed-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.75rem 0.82rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(191, 208, 226, 0.56);
}

.activity-feed-empty {
    padding: 1rem 0.25rem 0;
    color: var(--text-muted);
}

.activity-feed-time {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.54rem;
    border-radius: 999px;
    background: rgba(16, 32, 51, 0.06);
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
}

.activity-feed-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.3rem;
}

.activity-feed-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.56rem;
    border-radius: 999px;
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.activity-feed-badge-working {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.activity-feed-badge-idle {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.activity-feed-badge-offline {
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
}

.activity-feed-badge-neutral {
    background: rgba(34, 199, 214, 0.12);
    color: #0f7d8a;
}

.activity-feed-actor {
    color: var(--text-strong);
}

.activity-feed-note {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.dashboard-table thead tr:first-child th {
    border-bottom: 0;
}

.member-summary {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.member-summary-link {
    color: var(--text-strong);
}

.member-summary-link:hover {
    color: var(--brand-blue-strong);
}

.metric-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.metric-block-value {
    font-weight: 800;
    color: var(--text-strong);
    font-size: 0.98rem;
}

.metric-block-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.metric-inline-warning {
    color: #b45309;
    font-size: 0.76rem;
}

.empty-state-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.88rem 0.95rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px dashed rgba(191, 208, 226, 0.82);
}

.empty-state-block i {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.08);
    color: var(--brand-blue);
}

.report-filter-panel {
    padding-bottom: 1rem;
}

.report-filter-panel .form-label {
    font-size: 0.8rem;
}

.report-filter-panel .btn {
    min-height: 40px;
}

.report-summary-grid,
.report-dual-grid {
    display: grid;
    gap: 1rem;
}

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

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

.report-summary-card {
    padding: 1rem;
}

.report-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.72rem;
}

.report-summary-head i {
    font-size: 1.08rem;
    color: var(--brand-blue);
}

.report-summary-title {
    font-family: var(--font-heading);
    font-size: clamp(1.08rem, 0.98rem + 0.34vw, 1.36rem);
    color: var(--text-strong);
}

.report-summary-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.72rem;
}

.report-summary-metrics span {
    display: block;
    color: var(--text-muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.report-summary-metrics strong {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-strong);
    font-size: 1.02rem;
}

.report-table th.text-end,
.report-table td.text-end {
    text-align: right;
}

.reports-overview-manager {
    display: grid;
    gap: 16px;
}

.report-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

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

.report-kpi-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-kpi-card {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 14px 16px;
    background: var(--color-surface-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-kpi-card span {
    color: var(--text-muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.report-kpi-card strong {
    color: var(--text-strong);
    font-size: 1.15rem;
}

.report-kpi-card.good {
    border-color: rgba(31, 138, 91, 0.36);
}

.report-kpi-card.warn {
    border-color: rgba(184, 138, 68, 0.42);
}

.report-kpi-card.bad {
    border-color: rgba(181, 74, 58, 0.42);
}

.report-selected-row td {
    background: rgba(31, 138, 91, 0.08);
}

.report-row-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.report-row-link:hover,
.report-row-link:focus-visible {
    color: var(--brand-blue);
}

.report-anomaly-list {
    display: grid;
    gap: 10px;
}

.report-anomaly-item {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--color-surface-muted);
}

.report-anomaly-item.severity-warning {
    border-color: rgba(184, 138, 68, 0.42);
}

.report-anomaly-item.severity-critical {
    border-color: rgba(181, 74, 58, 0.42);
}

.report-anomaly-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.report-anomaly-body {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.report-app-icon-cell {
    width: 52px;
}

.dashboard-alert {
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.roh-theme-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: var(--radius-pill);
    background: rgba(16, 32, 51, 0.06);
    border: 1px solid rgba(16, 32, 51, 0.08);
}

.roh-theme-toggle .btn {
    min-height: 38px;
    padding: 0.42rem 0.82rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    box-shadow: none;
}

.roh-theme-toggle .btn span {
    margin-left: 0.35rem;
}

.roh-theme-toggle [data-theme-option][data-active="true"] {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-blue-strong), var(--brand-blue));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(34, 199, 214, 0.08), transparent 26%),
        radial-gradient(circle at 100% 20%, rgba(79, 132, 255, 0.1), transparent 28%),
        var(--surface-canvas);
}

:root[data-theme="dark"] .btn-outline-primary,
:root[data-theme="dark"] .btn-outline-light,
:root[data-theme="dark"] .btn-outline-secondary,
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .activity-feed-item,
:root[data-theme="dark"] .feature-list-item,
:root[data-theme="dark"] .proof-chip,
:root[data-theme="dark"] .empty-state-block {
    background: rgba(16, 27, 42, 0.82);
}

:root[data-theme="dark"] .topbar-user,
:root[data-theme="dark"] .activity-feed-time,
:root[data-theme="dark"] .roh-theme-toggle,
:root[data-theme="dark"] .sidebar-profile,
:root[data-theme="dark"] .sidebar-account-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .feature-list-item,
:root[data-theme="dark"] .proof-chip,
:root[data-theme="dark"] .empty-state-block {
    border-color: rgba(52, 80, 111, 0.8);
}

:root[data-theme="dark"] .topbar-role-chip-company {
    color: #80efad;
}

:root[data-theme="dark"] .topbar-role-chip-admin {
    color: #ffd58d;
}

@media (max-width: 1280px) {
    .hero-proof-strip,
    .proof-grid,
    .dashboard-kpi-grid,
    .report-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card-highlight {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-card-art {
        width: min(100%, 320px);
    }
}

@media (max-width: 1100px) {
    .hero-grid,
    .split-showcase,
    .dashboard-stream-layout,
    .report-dual-grid {
        grid-template-columns: 1fr;
    }

    .hero-float-card {
        align-self: stretch;
        max-width: none;
    }

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

    .feature-mosaic > .feature-card,
    .feature-card-highlight {
        grid-column: span 1 !important;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 250px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
    }

    .topbar-utilities {
        justify-content: flex-start;
    }

    .public-nav-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-top: 1rem;
    }

    .proof-grid,
    .hero-proof-strip,
    .dashboard-kpi-grid,
    .report-summary-grid,
    .report-kpi-grid,
    .report-kpi-grid.compact,
    .feature-list-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content > main {
        padding-inline: 0.7rem !important;
    }

    .section-stack {
        padding: 3.4rem 0;
    }

    .hero-enterprise {
        padding-top: 4.8rem;
    }

    .hero-display {
        font-size: clamp(2.3rem, 1.6rem + 5vw, 3.1rem);
    }

    .auth-left {
        padding: 1.2rem 0.9rem;
    }

    .auth-form-wrap,
    .auth-form-wrap-wide {
        max-width: none;
    }

    .dashboard-panel,
    .card-body-premium,
    .card-header-premium,
    .feature-card,
    .pricing-card {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .dashboard-panel-inline {
        align-items: flex-start;
    }
}

/* Clean Executive Reset */
body {
    background:
        radial-gradient(circle at top left, rgba(184, 138, 68, 0.06), transparent 20%),
        radial-gradient(circle at right top, rgba(31, 138, 91, 0.06), transparent 18%),
        var(--surface-canvas);
    color: var(--text-default);
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.page-shell-title,
.hero-display {
    letter-spacing: -0.04em;
    color: var(--text-strong);
}

.section-kicker,
.page-eyebrow {
    color: var(--brand-warning);
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.page-title {
    font-size: clamp(1.52rem, 1.28rem + 0.48vw, 2.02rem);
    margin-bottom: 0.2rem;
}

.page-title-compact {
    font-size: clamp(1.38rem, 1.22rem + 0.34vw, 1.76rem);
}

.page-subtitle,
.page-shell-subtitle {
    max-width: 34rem;
    color: var(--text-muted);
    font-size: 0.91rem;
    line-height: 1.45;
}

.page-subtitle-compact {
    font-size: 0.89rem;
}

.app-shell {
    background: linear-gradient(90deg, rgba(24, 32, 40, 0.98) 0, rgba(24, 32, 40, 0.98) 228px, transparent 228px), var(--surface-canvas);
}

.sidebar {
    width: 228px;
    padding: 0.9rem 0.72rem 0.75rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
        rgba(24, 32, 40, 0.94);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.sidebar-brand {
    margin-bottom: 0.35rem !important;
    padding-inline: 0.25rem;
}

.sidebar-brand-meta {
    margin: 0 0.25rem 0.55rem;
}

.sidebar-brand-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.22rem 0.55rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 253, 249, 0.82);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.sidebar .nav-section {
    margin: 0.82rem 0.4rem 0.22rem;
    color: rgba(217, 224, 217, 0.56);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
}

.sidebar-nav {
    gap: 0.1rem;
}

.sidebar .nav-link {
    min-height: 38px;
    padding: 0.56rem 0.72rem;
    border-radius: 13px;
    color: rgba(248, 243, 238, 0.82);
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.65rem;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fffdf9;
    transform: translateX(1px);
}

.sidebar .nav-link.active,
.sidebar .nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.085);
    color: #fffdf9;
    box-shadow: inset 0 0 0 1px rgba(217, 240, 228, 0.1), 0 10px 18px rgba(0, 0, 0, 0.12);
}

.sidebar .nav-link.active::before,
.sidebar .nav-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d9f0e4 0%, #1f8a5b 100%);
}

.sidebar .nav-link.active i,
.sidebar .nav-link[aria-current="page"] i {
    color: #d9f0e4;
}

.sidebar-footer {
    padding-top: 0.7rem;
}

.sidebar-account-card {
    padding: 0.68rem 0.76rem;
    margin-bottom: 0.55rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-account-role {
    padding: 0.2rem 0.5rem;
    background: rgba(217, 240, 228, 0.1);
    color: #d9f0e4;
    letter-spacing: 0.08em;
    font-size: 0.66rem;
}

.sidebar-account-email {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    line-height: 1.35;
}

.sidebar-footer .btn-outline-light {
    min-height: 36px;
    border-radius: 13px;
    background: transparent;
}

.sidebar-footer-links {
    font-size: 0.78rem;
}

.topbar {
    min-height: 64px;
    padding: 0.72rem 1.15rem;
    background: rgba(255, 252, 247, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: none;
}

.page-shell-title {
    font-size: clamp(1.02rem, 0.95rem + 0.24vw, 1.24rem);
    line-height: 1.1;
}

.topbar-role-chip,
.topbar-user {
    min-height: 34px;
    padding: 0.34rem 0.68rem;
    font-size: 0.78rem;
}

.topbar-role-chip-company,
.topbar-role-chip-employee,
.topbar-role-chip-admin {
    background: rgba(31, 138, 91, 0.1);
    color: var(--brand-blue);
    border-color: rgba(31, 138, 91, 0.18);
}

.topbar-user {
    background: rgba(255, 253, 249, 0.9);
    border-color: rgba(31, 41, 51, 0.08);
}

.btn-back-nav {
    min-height: 34px;
    padding: 0.36rem 0.68rem;
    background: rgba(255, 253, 249, 0.92);
}

.roh-theme-toggle {
    padding: 0.16rem;
    background: rgba(255, 253, 249, 0.88);
    border-color: rgba(31, 41, 51, 0.08);
}

.roh-theme-toggle .btn {
    min-height: 32px;
    padding: 0.3rem 0.62rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.roh-theme-toggle [data-theme-option][data-active="true"] {
    background: var(--brand-navy);
    color: #fffdf9;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1a232b 0%, #2a3a33 100%);
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(31, 41, 51, 0.1);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, #212d36 0%, #31453c 100%);
    transform: translateY(-1px);
}

.btn-outline-primary,
.btn-outline-light,
.btn-outline-secondary {
    background: rgba(255, 253, 249, 0.9);
    border-color: rgba(31, 41, 51, 0.12);
    color: var(--text-strong);
}

.card-elevated,
.dashboard-panel,
.feature-card,
.pricing-card,
.table-shell,
.stat-card {
    background: rgba(255, 253, 249, 0.9);
    border: 1px solid rgba(206, 194, 178, 0.86);
    box-shadow: 0 12px 24px rgba(31, 41, 51, 0.05);
    backdrop-filter: blur(14px);
}

.public-navbar {
    background: var(--color-public-nav-bg);
    border-bottom: 1px solid var(--color-topbar-border);
}

.public-navbar::before {
    opacity: 0.08;
}

.public-navbar .nav-link:not(.btn),
.public-nav-link:not(.btn) {
    color: var(--color-public-nav-text) !important;
}

.public-nav-link {
    min-height: 34px;
    padding: 0.38rem 0.74rem;
    font-size: 0.9rem;
}

.public-nav-cta {
    min-width: 112px;
    color: #ffffff !important;
}

.public-navbar .nav-link.btn {
    color: #ffffff !important;
}

.public-footer {
    background: var(--color-public-footer-bg);
    color: var(--color-public-footer-text);
}

.hero-executive {
    background: linear-gradient(180deg, #f8f2e9 0%, #f4ede3 100%);
    padding: 4rem 0 2.8rem;
}

.hero-executive::before {
    background: url("/images/graphics/orbit-mesh.svg") center/cover no-repeat;
    opacity: 0.16;
}

.hero-grid-executive {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    gap: 1.8rem;
}

.hero-copy-executive {
    max-width: 38rem;
}

.hero-display-executive {
    font-size: clamp(2.08rem, 1.78rem + 0.92vw, 3.05rem);
    line-height: 1.04;
    color: var(--text-strong);
}

.hero-lead-executive {
    max-width: 30rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.hero-actions {
    gap: 0.78rem;
    margin-top: 1.35rem;
}

.hero-proof-strip-executive {
    margin-top: 1.2rem;
}

.hero-proof-item,
.proof-chip {
    background: rgba(255, 253, 249, 0.66);
    border-color: rgba(216, 206, 194, 0.72);
    color: var(--text-strong);
    padding: 0.82rem 0.9rem;
    border-radius: 16px;
}

.hero-proof-item span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.hero-visual-executive {
    gap: 0;
}

.hero-preview-executive {
    padding: 0.82rem;
    border-radius: 22px;
    background: rgba(255, 253, 249, 0.68);
    border: 1px solid rgba(216, 206, 194, 0.74);
    box-shadow: 0 16px 30px rgba(31, 41, 51, 0.08);
}

.section-stack-executive {
    padding: 3rem 0;
}

.feature-mosaic-executive {
    gap: 0.85rem;
}

.feature-card-highlight-executive {
    background:
        radial-gradient(circle at top right, rgba(217, 240, 228, 0.36), transparent 32%),
        rgba(255, 253, 249, 0.86);
}

.feature-card-copy h2,
.split-showcase-copy h2 {
    font-size: clamp(1.46rem, 1.28rem + 0.48vw, 1.94rem);
    line-height: 1.12;
}

.feature-card-copy p,
.split-showcase-copy p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.feature-icon,
.pricing-icon,
.dashboard-kpi-icon {
    background: rgba(217, 240, 228, 0.52);
    color: var(--brand-blue);
}

.feature-list-item {
    background: rgba(255, 253, 249, 0.72);
    border-color: rgba(216, 206, 194, 0.7);
    padding: 0.78rem 0.88rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.cta-executive {
    background: linear-gradient(135deg, #1a222a 0%, #273038 100%);
    color: #fffdf9;
    box-shadow: 0 14px 30px rgba(31, 41, 51, 0.12);
    padding: 1.5rem 1.6rem;
}

.cta-executive::before {
    display: none;
}

.cta-executive p,
.cta-executive .section-kicker {
    color: rgba(255, 253, 249, 0.72) !important;
}

.auth-shell-executive {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    background: linear-gradient(90deg, rgba(255, 253, 249, 0.94) 0%, rgba(255, 253, 249, 0.94) 49%, rgba(244, 237, 227, 0.86) 49%, rgba(244, 237, 227, 0.86) 100%);
}

.auth-left {
    background: rgba(255, 253, 249, 0.62);
    padding: 1.4rem 1.7rem;
}

.auth-right {
    background:
        radial-gradient(circle at top right, rgba(184, 138, 68, 0.08), transparent 24%),
        radial-gradient(circle at bottom left, rgba(31, 138, 91, 0.08), transparent 22%),
        url("/images/graphics/orbit-mesh.svg") center/cover no-repeat,
        rgba(244, 237, 227, 0.78);
    padding: 1.4rem 1.85rem;
}

.auth-right::before,
.auth-right::after,
.auth-stats {
    display: none;
}

.auth-form-wrap-compact {
    max-width: 430px;
}

.auth-form-intro {
    margin-bottom: 0.72rem;
}

.auth-form-intro h2 {
    font-size: clamp(1.52rem, 1.34rem + 0.44vw, 1.96rem);
    line-height: 1.08;
    margin: 0.28rem 0 0.42rem;
}

.auth-form-intro p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 30rem;
}

.auth-card-executive {
    overflow: hidden;
    border-radius: 18px;
}

.auth-card-head {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(216, 206, 194, 0.78);
    background: rgba(250, 245, 238, 0.74);
}

.auth-card-head h3 {
    margin: 0 0 0.2rem;
    font-size: 1.12rem;
}

.auth-card-head p {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.auth-hero-executive {
    max-width: 460px;
}

.auth-side-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.22rem 0.58rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 253, 249, 0.56);
    border: 1px solid rgba(216, 206, 194, 0.72);
    color: var(--brand-warning);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-hero-executive h2 {
    margin: 0.62rem 0 0.45rem;
    font-size: clamp(1.5rem, 1.32rem + 0.44vw, 1.94rem);
    line-height: 1.1;
}

.auth-hero-executive p {
    max-width: 29rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.auth-product-preview-executive {
    margin-top: 1rem;
    padding: 0.72rem;
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.68);
    border: 1px solid rgba(216, 206, 194, 0.72);
}

.auth-product-preview-executive .img-fluid {
    border-radius: 14px;
}

.feature-list-executive {
    margin-top: 0.8rem;
}

.feature-list-executive li {
    margin-bottom: 0.55rem;
    color: var(--text-default);
    font-size: 0.86rem;
}

.work-page-section {
    display: flex;
    flex-direction: column;
    gap: 0.82rem;
}

.page-action-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0;
}

.section-block-header {
    margin-top: 0.38rem;
    margin-bottom: 0;
}

.work-table-shell {
    border-radius: 18px;
}

.work-table thead th {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.work-table tbody td {
    padding-top: 0.74rem;
    padding-bottom: 0.74rem;
}

.task-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.btn-task-status {
    min-height: 32px;
    padding: 0.28rem 0.72rem;
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.8);
    border: 1px solid rgba(216, 206, 194, 0.9);
    color: var(--text-strong);
    box-shadow: none;
    font-size: 0.86rem;
}

.btn-task-status-progress {
    background: rgba(184, 138, 68, 0.08);
    border-color: rgba(184, 138, 68, 0.3);
}

.btn-task-status-success {
    background: rgba(31, 138, 91, 0.08);
    border-color: rgba(31, 138, 91, 0.28);
    color: var(--brand-blue);
}

.btn-task-status:hover {
    background: rgba(255, 253, 249, 1);
    transform: none;
}

.dashboard-kpi {
    background: rgba(255, 253, 249, 0.82);
}

.dashboard-panel-title {
    font-size: clamp(1.08rem, 0.98rem + 0.28vw, 1.34rem);
}

.dashboard-panel-chip {
    background: rgba(31, 138, 91, 0.08);
    color: var(--brand-blue);
    padding: 0.32rem 0.62rem;
    font-size: 0.72rem;
}

.activity-feed-badge-working {
    background: rgba(31, 138, 91, 0.12);
    color: var(--brand-blue);
}

.activity-feed-badge-idle {
    background: rgba(184, 138, 68, 0.16);
    color: var(--brand-warning);
}

.activity-feed-badge-neutral {
    background: rgba(31, 41, 51, 0.08);
    color: var(--text-default);
}

.activity-feed-badge-offline {
    background: rgba(94, 106, 115, 0.14);
    color: var(--text-muted);
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(184, 138, 68, 0.06), transparent 20%),
        radial-gradient(circle at right top, rgba(31, 138, 91, 0.08), transparent 18%),
        var(--surface-canvas);
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .public-navbar,
:root[data-theme="dark"] .topbar-user,
:root[data-theme="dark"] .roh-theme-toggle,
:root[data-theme="dark"] .btn-back-nav,
:root[data-theme="dark"] .btn-outline-primary,
:root[data-theme="dark"] .btn-outline-light,
:root[data-theme="dark"] .btn-outline-secondary,
:root[data-theme="dark"] .btn-task-status,
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .auth-card-head,
:root[data-theme="dark"] .auth-product-preview-executive,
:root[data-theme="dark"] .hero-proof-item,
:root[data-theme="dark"] .hero-preview-executive,
:root[data-theme="dark"] .feature-list-item {
    background: rgba(31, 39, 45, 0.92);
    color: var(--text-default);
}

:root[data-theme="dark"] .auth-shell-executive {
    background: linear-gradient(90deg, rgba(31, 39, 45, 0.97) 0%, rgba(31, 39, 45, 0.97) 49%, rgba(21, 27, 32, 0.99) 49%, rgba(21, 27, 32, 0.99) 100%);
}

:root[data-theme="dark"] .hero-executive {
    background: linear-gradient(180deg, #171d22 0%, #1c2329 100%);
}

:root[data-theme="dark"] .sidebar-brand-chip,
:root[data-theme="dark"] .auth-side-chip {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.07);
}

:root[data-theme="dark"] .card-elevated,
:root[data-theme="dark"] .dashboard-panel,
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .pricing-card,
:root[data-theme="dark"] .table-shell,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .hero-proof-item,
:root[data-theme="dark"] .hero-preview-executive,
:root[data-theme="dark"] .report-summary-card {
    background: rgba(32, 40, 46, 0.94);
    border-color: rgba(70, 81, 90, 0.78);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

:root[data-theme="dark"] .table-roh thead th {
    background: rgba(25, 32, 37, 0.98);
    color: #d8cec4;
}

:root[data-theme="dark"] .table-roh tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

:root[data-theme="dark"] .table-roh tbody tr:hover {
    background: rgba(31, 138, 91, 0.08);
}

:root[data-theme="dark"] .activity-feed-item {
    border-color: rgba(70, 81, 90, 0.65);
}

:root[data-theme="dark"] .activity-feed-time,
:root[data-theme="dark"] .topbar-user,
:root[data-theme="dark"] .sidebar-account-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.07);
}

:root[data-theme="dark"] .activity-feed-badge-neutral {
    background: rgba(255, 255, 255, 0.08);
    color: #d8d0c8;
}

:root[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #2b3c34 0%, #3f5c4f 100%);
}

/* Canonical public/auth surface + type scale for unauthenticated pages */
.public-navbar {
    background: var(--color-public-nav-bg);
    border-bottom: 1px solid var(--color-topbar-border);
}

.public-nav-link:not(.btn) {
    color: var(--color-public-nav-text) !important;
    font-size: 0.9rem;
}

.public-navbar .nav-link.btn,
.public-nav-cta {
    color: #ffffff !important;
}

.public-footer {
    background: var(--color-public-footer-bg);
    color: var(--color-public-footer-text);
    border-top: 1px solid var(--color-topbar-border);
}

.public-footer-links {
    font-size: 0.82rem;
}

.public-footer-link {
    color: var(--color-public-footer-link);
}

.public-footer-link:hover,
.public-footer-link:focus-visible {
    color: var(--color-public-footer-text);
}

.public-page .public-footer {
    background: transparent;
    border-top: 0;
    padding-top: 0.7rem !important;
    padding-bottom: 0.9rem !important;
}

.public-page .public-footer > .container {
    max-width: 1140px;
    padding: 0.58rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--color-topbar-border);
    background: var(--color-public-nav-bg);
    color: var(--color-public-nav-text);
}

.public-page .public-footer-link {
    color: var(--color-public-nav-text);
}

.public-page .public-footer-link:hover,
.public-page .public-footer-link:focus-visible {
    color: var(--color-public-nav-text);
    opacity: 0.85;
}

.public-page-auth .public-footer {
    background: transparent;
    border-top: 0;
    padding-top: 0.7rem !important;
    padding-bottom: 0.9rem !important;
}

.public-page-auth .public-footer > .container {
    max-width: 980px;
    justify-content: center !important;
    padding: 0.58rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--color-topbar-border);
    background: var(--color-public-nav-bg);
    color: var(--color-public-nav-text);
}

.public-page-auth .public-footer-links {
    justify-content: center;
    gap: 0.9rem !important;
}

.public-page-auth .public-footer-link {
    color: var(--color-public-nav-text);
}

.public-page-auth .public-footer-link:hover,
.public-page-auth .public-footer-link:focus-visible {
    color: var(--color-public-nav-text);
    opacity: 0.85;
}

.auth-shell-executive {
    background: linear-gradient(90deg, rgba(255, 253, 249, 0.94) 0%, rgba(255, 253, 249, 0.94) 49%, rgba(244, 237, 227, 0.86) 49%, rgba(244, 237, 227, 0.86) 100%);
}

.auth-left {
    background: rgba(255, 253, 249, 0.62);
}

.auth-right {
    background:
        radial-gradient(circle at top right, rgba(184, 138, 68, 0.08), transparent 24%),
        radial-gradient(circle at bottom left, rgba(31, 138, 91, 0.08), transparent 22%),
        url("/images/graphics/orbit-mesh.svg") center/cover no-repeat,
        rgba(244, 237, 227, 0.78);
}

.auth-card-head {
    background: rgba(250, 245, 238, 0.74);
}

.auth-form-intro h2 {
    font-size: clamp(1.52rem, 1.34rem + 0.44vw, 1.96rem);
}

.auth-form-intro p {
    font-size: 0.9rem;
}

.auth-hero-executive h2 {
    font-size: clamp(1.5rem, 1.32rem + 0.44vw, 1.94rem);
}

.auth-hero-executive p {
    font-size: 0.9rem;
}

:root[data-theme="dark"] .public-navbar {
    background: var(--color-public-nav-bg);
    border-bottom-color: var(--color-topbar-border);
}

:root[data-theme="dark"] .public-footer {
    background: var(--color-public-footer-bg);
    color: var(--color-public-footer-text);
    border-top-color: var(--color-topbar-border);
}

:root[data-theme="dark"] .public-footer-link {
    color: var(--color-public-footer-link);
}

:root[data-theme="dark"] .public-footer-link:hover,
:root[data-theme="dark"] .public-footer-link:focus-visible {
    color: var(--color-public-footer-text);
}

:root[data-theme="dark"] .public-page-auth .public-footer > .container {
    background: var(--color-public-nav-bg);
    color: var(--color-public-nav-text);
    border-color: var(--color-topbar-border);
}

:root[data-theme="dark"] .public-page .public-footer > .container {
    background: var(--color-public-nav-bg);
    color: var(--color-public-nav-text);
    border-color: var(--color-topbar-border);
}

:root[data-theme="dark"] .public-page .public-footer-link {
    color: var(--color-public-nav-text);
}

:root[data-theme="dark"] .public-page .public-footer-link:hover,
:root[data-theme="dark"] .public-page .public-footer-link:focus-visible {
    color: var(--color-public-nav-text);
    opacity: 0.85;
}

:root[data-theme="dark"] .public-page-auth .public-footer-link {
    color: var(--color-public-nav-text);
}

:root[data-theme="dark"] .public-page-auth .public-footer-link:hover,
:root[data-theme="dark"] .public-page-auth .public-footer-link:focus-visible {
    color: var(--color-public-nav-text);
    opacity: 0.85;
}

:root[data-theme="dark"] .auth-card-head,
:root[data-theme="dark"] .auth-product-preview-executive {
    background: rgba(31, 39, 45, 0.92);
}

:root[data-theme="dark"] .auth-shell-executive {
    background: linear-gradient(90deg, rgba(31, 39, 45, 0.97) 0%, rgba(31, 39, 45, 0.97) 49%, rgba(21, 27, 32, 0.99) 49%, rgba(21, 27, 32, 0.99) 100%);
}

/* Final auth contrast overrides (Login/Register) */
.public-page-auth .auth-preview-label {
    color: var(--brand-warning);
}

.public-page-auth .auth-card-head p,
.public-page-auth .auth-form-intro p,
.public-page-auth .auth-hero-executive p,
.public-page-auth .text-secondary-brand,
.public-page-auth .feature-list-executive li {
    color: var(--text-muted);
}

.public-page-auth .auth-form-grid .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.92;
}

:root[data-theme="dark"] .public-page-auth .auth-preview-label {
    color: var(--brand-warning);
}

:root[data-theme="dark"] .public-page-auth .auth-card-head p,
:root[data-theme="dark"] .public-page-auth .auth-form-intro p,
:root[data-theme="dark"] .public-page-auth .auth-hero-executive p,
:root[data-theme="dark"] .public-page-auth .text-secondary-brand,
:root[data-theme="dark"] .public-page-auth .feature-list-executive li {
    color: var(--text-muted);
}

:root[data-theme="dark"] .public-page-auth .auth-form-grid .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.96;
}

/* Final auth layout overrides: compact two-column flow (Login/Register) */
.public-page-auth {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
}

.public-page-auth .public-shell {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

.public-page-auth .public-main-auth {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

.public-page-auth .public-main-auth > .auth-shell,
.public-page-auth .auth-shell,
.public-page-auth .auth-shell-executive {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    min-height: 0;
    height: 100%;
}

.public-page-auth .auth-right {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(244, 237, 227, 0.62);
    overflow: hidden;
}

.public-page-auth .auth-left {
    width: 100%;
    max-width: 100%;
    padding: 0.8rem 1rem;
    margin: 0;
}

.public-page-auth .auth-form-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.public-page-auth .auth-form-wrap-compact {
    max-width: 520px;
}

.public-page-auth .auth-form-wrap-wide {
    max-width: 720px;
}

.public-page-auth .auth-hero {
    max-width: 36rem;
    margin: 0 auto;
    text-align: left;
}

.public-page-auth .feature-list-executive {
    margin-top: 0.6rem;
}

.public-page-auth .feature-list-executive li {
    margin-bottom: 0.42rem;
}

.public-page-auth .auth-form-intro {
    margin-bottom: 0.52rem;
}

.public-page-auth .auth-form-intro h2 {
    margin: 0.2rem 0 0.32rem;
}

.public-page-auth .auth-form-intro p {
    margin-bottom: 0;
}

.public-page-auth .auth-card-head {
    padding: 0.68rem 0.82rem;
}

.public-page-auth .auth-card-head h3 {
    margin: 0 0 0.08rem;
}

.public-page-auth .card-body-premium {
    padding: 0.7rem 0.82rem;
}

.public-page-auth .auth-form-grid {
    row-gap: 0.46rem !important;
}

.public-page-auth .auth-form-grid .form-label {
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
}

.public-page-auth .auth-form-grid .form-control {
    min-height: 34px;
    padding: 0.38rem 0.62rem;
    font-size: 0.9rem;
}

.public-page-auth .auth-form-grid .text-danger {
    margin-top: 0.2rem;
    font-size: 0.76rem;
}

.public-page-auth .auth-form-grid .btn.btn-primary {
    min-height: 36px;
    padding: 0.44rem 0.82rem;
    font-size: 0.92rem;
}

:root[data-theme="dark"] .public-page-auth .auth-left {
    background: rgba(31, 39, 45, 0.62);
}

:root[data-theme="dark"] .public-page-auth .auth-right {
    background: rgba(21, 27, 32, 0.68);
}

:root[data-theme="dark"] .public-page-auth .auth-card-head {
    background: rgba(31, 39, 45, 0.92);
}

/* Light-theme emphasis-card policy: keep emphasis cards light and tokenized */
:root:not([data-theme="dark"]) .cta-executive,
:root:not([data-theme="dark"]) .cta-enterprise,
:root:not([data-theme="dark"]) .theme-emphasis-card {
    background:
        radial-gradient(circle at top right, rgba(217, 240, 228, 0.32), transparent 34%),
        var(--color-card-surface);
    color: var(--text-strong);
    border: 1px solid var(--color-card-border);
    box-shadow: var(--shadow-soft);
}

:root:not([data-theme="dark"]) .cta-executive .section-kicker,
:root:not([data-theme="dark"]) .cta-enterprise .section-kicker,
:root:not([data-theme="dark"]) .theme-emphasis-card .section-kicker {
    color: var(--brand-blue) !important;
}

:root:not([data-theme="dark"]) .cta-executive p,
:root:not([data-theme="dark"]) .cta-enterprise p,
:root:not([data-theme="dark"]) .theme-emphasis-card p {
    color: var(--text-muted) !important;
}

:root:not([data-theme="dark"]) .cta-executive .btn-primary,
:root:not([data-theme="dark"]) .cta-enterprise .btn-primary,
:root:not([data-theme="dark"]) .theme-emphasis-card .btn-primary {
    color: #ffffff !important;
}

/* On-dark surface text policy (app-wide contrast guardrail) */
.surface-on-dark,
.card-header-premium {
    color: #f8fbff;
}

.surface-on-dark h1,
.surface-on-dark h2,
.surface-on-dark h3,
.surface-on-dark h4,
.surface-on-dark h5,
.surface-on-dark h6,
.surface-on-dark .page-title,
.surface-on-dark .section-kicker,
.surface-on-dark a,
.card-header-premium h1,
.card-header-premium h2,
.card-header-premium h3,
.card-header-premium h4,
.card-header-premium h5,
.card-header-premium h6,
.card-header-premium .page-title,
.card-header-premium .section-kicker,
.card-header-premium a {
    color: inherit;
}

.surface-on-dark p,
.surface-on-dark small,
.surface-on-dark .text-muted,
.card-header-premium p,
.card-header-premium small,
.card-header-premium .text-muted {
    color: rgba(248, 251, 255, 0.82) !important;
}

@media (max-width: 1200px) {
    .public-page-auth {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .public-page-auth .public-shell {
        height: auto;
        min-height: 100dvh;
    }

    .public-page-auth .public-main-auth {
        overflow: visible;
    }

    .public-page-auth .public-main-auth > .auth-shell,
    .public-page-auth .auth-shell,
    .public-page-auth .auth-shell-executive {
        grid-template-columns: 1fr;
        height: auto;
    }

    .public-page-auth .auth-right {
        padding-top: 0.25rem;
        align-items: flex-start;
    }
}

@media (max-width: 1100px) {
    .hero-grid-executive,
    .auth-shell-executive,
    .split-showcase-executive {
        grid-template-columns: 1fr;
    }

    .auth-right {
        padding-top: 1rem;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 212px;
    }

    .page-action-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-executive {
        padding-top: 3.3rem;
    }

    .hero-display-executive {
        font-size: clamp(1.86rem, 1.68rem + 1vw, 2.4rem);
    }

    .auth-left,
    .auth-right {
        padding: 1rem 0.9rem;
    }

    .sidebar {
        width: 198px;
    }

    .topbar {
        padding: 0.7rem 0.9rem;
    }
}
