:root {
    --sidebar-width: 260px;
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #e0e7ff;
    --bg-sidebar: #1e1b4b;
    --bg-sidebar-hover: #312e81;
    --bg-body: #f1f5f9;
    --text-sidebar: #c7d2fe;
    --text-sidebar-active: #ffffff;
    --border-color: #e2e8f0;
    --card-shadow: 0 1px 3px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    margin: 0;
    min-height: 100vh;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    color: var(--text-sidebar);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform .2s;
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.sidebar-brand h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
}

.sidebar-brand small {
    font-size: .75rem;
    color: var(--text-sidebar);
    opacity: .7;
}

.sidebar-nav {
    padding: .75rem 0;
}

.nav-section {
    padding: .5rem 1.5rem .25rem;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(199,210,254,.5);
    font-weight: 600;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem 1.5rem;
    color: var(--text-sidebar);
    text-decoration: none;
    font-size: .875rem;
    transition: all .15s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: var(--bg-sidebar-hover);
    color: var(--text-sidebar-active);
}

.sidebar-nav a.active {
    background: var(--bg-sidebar-hover);
    color: var(--text-sidebar-active);
    border-left-color: var(--primary);
}

.sidebar-nav a i {
    width: 18px;
    text-align: center;
    font-size: .9rem;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem 1.5rem;
    color: var(--text-sidebar);
    font-size: .875rem;
    transition: all .15s;
    border: none;
    border-left: 3px solid transparent;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.sidebar-logout-btn:hover {
    background: var(--bg-sidebar-hover);
    color: var(--text-sidebar-active);
}

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

.top-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: .75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .breadcrumb {
    margin: 0;
    background: none;
    padding: 0;
    font-size: .875rem;
}

.top-bar .user-info {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .875rem;
    color: #64748b;
}

.top-bar .user-info .badge {
    font-weight: 500;
}

.sidebar-org-switcher {
    margin: 0 .75rem .5rem;
    position: relative;
}

.sidebar-org-switcher .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .5rem .75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: .5rem;
    color: var(--text-sidebar-active);
    font-size: .8rem;
    cursor: pointer;
    transition: all .15s;
    text-align: left;
    font-family: inherit;
}

.sidebar-org-switcher .dropdown-toggle::after {
    display: none;
}

.sidebar-org-switcher .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-org-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-org-chevron {
    font-size: .65rem;
    opacity: .6;
}

.sidebar-org-menu {
    width: 100%;
    min-width: 200px;
    font-size: .85rem;
    margin-top: .25rem !important;
}

.sidebar-org-menu form {
    margin: 0;
    padding: 0;
}

.sidebar-org-menu .dropdown-item {
    padding: .4rem 1rem;
    font-size: .85rem;
}

.sidebar-org-menu .dropdown-item.active {
    background: var(--primary);
    color: #fff;
}

.sidebar-org-static {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 .75rem .5rem;
    padding: .5rem .75rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: .5rem;
    color: var(--text-sidebar);
    font-size: .8rem;
}

.org-checkbox-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.org-checkbox-list li {
    padding: .35rem 0;
}

.org-checkbox-list li label {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-size: .9rem;
}

.content-area {
    padding: 1.5rem 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    box-shadow: var(--card-shadow);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: .875rem 1.25rem;
    font-weight: 600;
    font-size: .9rem;
}

.stat-card {
    background: #fff;
    border-radius: .5rem;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: .25rem;
}

.stat-card .stat-label {
    font-size: .8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.stat-card.danger .stat-value { color: #dc2626; }
.stat-card.warning .stat-value { color: #d97706; }
.stat-card.success .stat-value { color: #059669; }
.stat-card.info .stat-value { color: var(--primary); }

.table th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    font-weight: 600;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.table td {
    font-size: .875rem;
    vertical-align: middle;
}

.badge {
    font-weight: 500;
    font-size: .75rem;
    padding: .3em .65em;
}

.badge-draft { background: #e2e8f0; color: #475569; }
.badge-active, .badge-open, .badge-signed { background: #dcfce7; color: #166534; }
.badge-retired, .badge-closed, .badge-expired { background: #f1f5f9; color: #64748b; }
.badge-submitted, .badge-in_progress, .badge-awaiting_info { background: #fef3c7; color: #92400e; }
.badge-approved, .badge-done { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-low { background: #d1fae5; color: #065f46; }
.badge-med { background: #fef3c7; color: #92400e; }
.badge-high { background: #fee2e2; color: #991b1b; }

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: .5;
}

.empty-state h3 {
    color: #64748b;
    font-size: 1.1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: .15rem;
    display: block;
}

.detail-item .value {
    font-size: .9rem;
    color: #1e293b;
}

.form-label {
    font-weight: 500;
    font-size: .875rem;
}

.form-control, .form-select {
    font-size: .875rem;
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: .5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.15rem;
    top: .35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
}

.timeline-item .time {
    font-size: .75rem;
    color: #94a3b8;
}

.timeline-item .content {
    font-size: .875rem;
}

.overdue { color: #dc2626; font-weight: 600; }
.days-left { color: #d97706; }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
}

.sidebar-logo {
    width: 26px;
    height: 26px;
    color: #a78bfa;
    filter: brightness(1.2);
    vertical-align: -3px;
    margin-right: 2px;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0f0a2e;
    position: relative;
    overflow: hidden;
}

.login-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.login-logo {
    margin-bottom: .75rem;
}

.login-logo-img {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.4));
}

.login-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: .75rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3), 0 0 80px rgba(79, 70, 229, .1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.login-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.login-card .subtitle {
    color: #64748b;
    font-size: .875rem;
    margin-bottom: 1.5rem;
}

.field-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .6rem;
    font-weight: 700;
    margin-left: .35rem;
    cursor: help;
    vertical-align: middle;
    flex-shrink: 0;
    border: 1px solid rgba(79, 70, 229, .2);
    transition: all .15s;
}

.field-info-icon:hover {
    background: var(--primary);
    color: #fff;
}

.form-text {
    font-size: .78rem;
    color: #64748b;
    margin-top: .25rem;
    line-height: 1.4;
}

.form-text i {
    color: var(--primary);
    margin-right: .2rem;
}

.guide-banner {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid rgba(79, 70, 229, .15);
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    font-size: .875rem;
    color: #3730a3;
    line-height: 1.5;
}

.guide-banner .guide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: .8rem;
    margin-right: .65rem;
    flex-shrink: 0;
    vertical-align: middle;
}

.guide-banner .guide-title {
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .35rem;
    color: #312e81;
}

.guide-banner .guide-text {
    color: #4338ca;
    font-size: .82rem;
}

.guide-banner .guide-ref {
    display: inline-block;
    background: rgba(79, 70, 229, .1);
    color: var(--primary);
    padding: .1em .5em;
    border-radius: .25rem;
    font-size: .75rem;
    font-weight: 500;
    margin-left: .25rem;
}

.guide-banner .btn-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    font-size: .6rem;
    opacity: .5;
}

.onboarding-card {
    background: linear-gradient(135deg, #eef2ff 0%, #f0fdf4 50%, #fefce8 100%);
    border: 1px solid rgba(79, 70, 229, .15);
    border-radius: .75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.onboarding-card .onboarding-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .5rem;
}

.onboarding-card .onboarding-subtitle {
    font-size: .85rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

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

.onboarding-step {
    background: #fff;
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    display: flex;
    gap: .75rem;
    transition: box-shadow .15s;
}

.onboarding-step:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.onboarding-step .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
}

.onboarding-step.step-done .step-number {
    background: #059669;
}

.onboarding-step .step-content h4 {
    font-size: .875rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 .25rem 0;
}

.onboarding-step .step-content p {
    font-size: .78rem;
    color: #64748b;
    margin: 0 0 .5rem 0;
    line-height: 1.4;
}

.onboarding-step .step-content .btn {
    font-size: .75rem;
    padding: .2rem .6rem;
}

.workflow-steps-indicator {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.25rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    padding: .75rem 1rem;
    overflow-x: auto;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .75rem;
    font-size: .8rem;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
}

.workflow-step .step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 700;
    color: #94a3b8;
    flex-shrink: 0;
}

.workflow-step.active .step-dot {
    background: var(--primary);
    color: #fff;
}

.workflow-step.completed .step-dot {
    background: #059669;
    color: #fff;
}

.workflow-step.active {
    color: var(--primary);
    font-weight: 600;
}

.workflow-step.completed {
    color: #059669;
}

.workflow-arrow {
    color: #cbd5e1;
    font-size: .75rem;
    padding: 0 .25rem;
}

.empty-state p {
    font-size: .85rem;
    color: #94a3b8;
    max-width: 400px;
    margin: .5rem auto 1rem;
    line-height: 1.5;
}

.empty-state .guide-ref {
    display: inline-block;
    background: rgba(79, 70, 229, .1);
    color: var(--primary);
    padding: .1em .5em;
    border-radius: .25rem;
    font-size: .75rem;
    font-weight: 500;
}

.doc-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s, transform .1s;
}

.doc-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.doc-card .doc-icon {
    width: 48px;
    height: 48px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.doc-card .doc-icon.purple { background: #eef2ff; color: var(--primary); }
.doc-card .doc-icon.green { background: #f0fdf4; color: #059669; }
.doc-card .doc-icon.blue { background: #eff6ff; color: #2563eb; }
.doc-card .doc-icon.amber { background: #fefce8; color: #d97706; }

.doc-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: .5rem;
}

.doc-card p {
    font-size: .82rem;
    color: #64748b;
    line-height: 1.5;
    flex-grow: 1;
}

.doc-card .doc-source {
    font-size: .72rem;
    color: #94a3b8;
    margin-bottom: .75rem;
}

.doc-card .doc-source i { margin-right: .2rem; }

.doc-page {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    padding: 3rem;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1e293b;
    line-height: 1.7;
    font-size: .9rem;
}

.doc-page h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .25rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: .5rem;
}

.doc-page .doc-meta {
    font-size: .8rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.doc-page h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #312e81;
    margin-top: 2rem;
    margin-bottom: .75rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid #e2e8f0;
}

.doc-page h3 {
    font-size: .95rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.25rem;
    margin-bottom: .5rem;
}

.doc-page p {
    margin-bottom: .75rem;
}

.doc-page ul, .doc-page ol {
    margin-bottom: .75rem;
    padding-left: 1.5rem;
}

.doc-page li {
    margin-bottom: .35rem;
}

.doc-page table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: .82rem;
}

.doc-page table th {
    background: #f8fafc;
    font-weight: 600;
    text-align: left;
    padding: .6rem .75rem;
    border: 1px solid #e2e8f0;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #475569;
}

.doc-page table td {
    padding: .5rem .75rem;
    border: 1px solid #e2e8f0;
    vertical-align: top;
}

.doc-page table tr:nth-child(even) td {
    background: #f8fafc;
}

.doc-page .placeholder-text {
    background: #fef3c7;
    color: #92400e;
    padding: .15em .4em;
    border-radius: .2rem;
    font-size: .82rem;
    font-weight: 500;
}

.doc-toolbar {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.doc-toolbar .btn {
    font-size: .82rem;
}

.help-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.help-topic-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s, transform .1s;
    text-decoration: none;
    color: inherit;
}

.help-topic-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.help-topic-card .topic-icon {
    width: 40px;
    height: 40px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: .75rem;
    flex-shrink: 0;
}

.help-topic-card h3 {
    font-size: .9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: .35rem;
}

.help-topic-card p {
    font-size: .78rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.help-content {
    max-width: 860px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    line-height: 1.7;
    font-size: .88rem;
    color: #1e293b;
}

.help-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .25rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: .5rem;
}

.help-content .help-subtitle {
    font-size: .82rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.help-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #312e81;
    margin-top: 2rem;
    margin-bottom: .75rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid #e2e8f0;
}

.help-content h3 {
    font-size: .95rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.25rem;
    margin-bottom: .5rem;
}

.help-content p { margin-bottom: .75rem; }
.help-content ul, .help-content ol { margin-bottom: .75rem; padding-left: 1.5rem; }
.help-content li { margin-bottom: .35rem; }

.help-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: .82rem;
}

.help-content table th {
    background: #f8fafc;
    font-weight: 600;
    text-align: left;
    padding: .5rem .75rem;
    border: 1px solid #e2e8f0;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #475569;
}

.help-content table td {
    padding: .5rem .75rem;
    border: 1px solid #e2e8f0;
    vertical-align: top;
}

.help-content table tr:nth-child(even) td { background: #f8fafc; }

.help-callout {
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    font-size: .82rem;
    line-height: 1.6;
}

.help-callout.tip {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.help-callout.info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.help-callout.warning {
    background: #fefce8;
    border-left: 4px solid #eab308;
    color: #854d0e;
}

.help-callout.important {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.help-callout strong { display: block; margin-bottom: .25rem; }

.help-article-ref {
    display: inline-block;
    background: rgba(79, 70, 229, .1);
    color: var(--primary);
    padding: .1em .5em;
    border-radius: .25rem;
    font-size: .75rem;
    font-weight: 500;
}

.help-nav {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.help-nav .btn { font-size: .82rem; }

.help-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.help-toc h4 {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    margin-bottom: .5rem;
}

.help-toc ol {
    margin: 0;
    padding-left: 1.25rem;
}

.help-toc li {
    font-size: .82rem;
    margin-bottom: .25rem;
}

.help-toc a {
    color: var(--primary);
    text-decoration: none;
}

.help-toc a:hover { text-decoration: underline; }

.glossary-term {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.glossary-term dt {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: .25rem;
    font-size: .88rem;
}

.glossary-term dd {
    color: #475569;
    margin-left: 0;
    font-size: .82rem;
    line-height: 1.6;
}

.audit-score-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    text-align: center;
}

.audit-score-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: .35rem;
}

.audit-score-value.score-green { color: #059669; }
.audit-score-value.score-amber { color: #d97706; }
.audit-score-value.score-red { color: #dc2626; }

.audit-score-label {
    font-size: .85rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.audit-score-time {
    font-size: .72rem;
    color: #94a3b8;
    margin-top: .25rem;
}

.audit-category-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.audit-cat-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background .1s;
}

.audit-cat-header:hover { background: #f8fafc; }

.audit-cat-icon {
    width: 40px;
    height: 40px;
    border-radius: .5rem;
    background: #eef2ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.audit-cat-info { flex: 1; min-width: 0; }

.audit-cat-info h3 {
    font-size: .9rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 .15rem 0;
}

.audit-cat-info p {
    font-size: .75rem;
    color: #94a3b8;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audit-cat-score {
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.audit-cat-score.score-green { color: #059669; }
.audit-cat-score.score-amber { color: #d97706; }
.audit-cat-score.score-red { color: #dc2626; }

.audit-cat-status { flex-shrink: 0; }
.audit-cat-chevron { color: #94a3b8; font-size: .8rem; flex-shrink: 0; transition: transform .2s; }

[aria-expanded="true"] .audit-cat-chevron { transform: rotate(180deg); }

.audit-findings {
    border-top: 1px solid var(--border-color);
    padding: .5rem 0;
}

.audit-finding {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem 1.25rem;
    font-size: .82rem;
}

.audit-finding:hover { background: #f8fafc; }

.audit-finding-icon { flex-shrink: 0; font-size: .9rem; }
.audit-finding-icon.finding-fail { color: #dc2626; }
.audit-finding-icon.finding-warning { color: #d97706; }

.audit-finding-text { flex: 1; color: #475569; }

.audit-finding-fix { flex-shrink: 0; font-size: .72rem; padding: .15rem .5rem; }

.dashboard-score {
    text-align: center;
}

.dashboard-score-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: .15rem;
}

.dashboard-score-value.score-green { color: #059669; }
.dashboard-score-value.score-amber { color: #d97706; }
.dashboard-score-value.score-red { color: #dc2626; }

.gap-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
    border-left: 4px solid #f59e0b;
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.gap-alert-icon {
    font-size: 1.5rem;
    color: #d97706;
    flex-shrink: 0;
}

.gap-alert-body {
    flex: 1;
    min-width: 0;
}

.gap-alert-title {
    font-weight: 600;
    font-size: .9rem;
    color: #92400e;
    margin-bottom: .35rem;
}

.gap-alert-text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.gap-alert-item {
    font-size: .78rem;
    color: #78350f;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.gap-alert-item i {
    font-size: .7rem;
    flex-shrink: 0;
}

.gap-alert-more {
    font-size: .75rem;
    color: #92400e;
    font-style: italic;
}

.gap-alert-action {
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: 600;
}

.task-priority-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: .35rem;
}

.task-priority-dot.critical { background: #dc2626; }
.task-priority-dot.high { background: #d97706; }
.task-priority-dot.medium { background: #3b82f6; }
.task-priority-dot.low { background: #94a3b8; }

@media print {
    .sidebar, .top-bar, .doc-toolbar, .breadcrumb, .help-nav { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .content-area { padding: 0 !important; }
    .doc-page, .help-content {
        border: none;
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }
}
