:root {
    --page-bg: #f3f4f6;
    --surface: #ffffff;
    --line: #e5e7eb;
    --text-main: #0a0a0a;
    --text-muted: #6a7282;
    --blue: #2b7fff;
    --sidebar-bg: #101828;
    --sidebar-row: #1e2939;
    --sidebar-line: #364153;
}

body.admin-layout {
    margin: 0;
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

.admin-sidebar {
    width: 256px;
    background: var(--sidebar-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #263244;
}

.admin-logo {
    border-bottom: 1px solid var(--sidebar-line);
    padding: 16px;
}

.admin-logo h1 {
    margin: 0;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

.admin-logo p {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 20px;
    color: #99a1af;
}

.admin-menu {
    padding-top: 16px;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    padding: 0 16px;
    color: #fff;
    text-decoration: none;
    border-left: 4px solid transparent;
    font-size: 16px;
    line-height: 24px;
}

.admin-menu-item:hover {
    background: #162336;
    color: #fff;
}

.admin-menu-item.is-active {
    background: var(--sidebar-row);
    border-left-color: var(--blue);
    padding-left: 12px;
}

.admin-menu-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    text-align: center;
    opacity: 0.95;
}

.admin-menu-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    height: 75px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-search {
    width: 576px;
    max-width: 100%;
    position: relative;
}

.admin-search-icon {
    position: absolute;
    top: 11px;
    left: 12px;
    color: #99a1af;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    pointer-events: none;
}

.admin-search input {
    width: 100%;
    height: 42px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    background: #fff;
    padding: 8px 16px 8px 40px;
    font-size: 16px;
}

.admin-user-menu-wrap {
    position: relative;
}

.admin-user-block {
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    color: #0a0a0a;
    border-radius: 10px;
    cursor: pointer;
}

.admin-user-block:hover,
.admin-user-block.is-open {
    background: #f3f4f6;
}

.admin-user-icon,
.admin-user-caret {
    color: #4a5565;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-user-icon {
    width: 20px;
    height: 20px;
}

.admin-user-caret {
    width: 16px;
    height: 16px;
}

.admin-search-icon svg,
.admin-user-icon svg,
.admin-user-caret svg {
    width: 100%;
    height: 100%;
}

.admin-user-name {
    font-size: 14px;
    line-height: 20px;
}

.admin-user-dropdown {
    display: none;
    position: absolute;
    top: 42px;
    right: 0;
    width: 192px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 4px 0 6px;
    z-index: 20;
}

.admin-user-dropdown.is-open {
    display: block;
}

.admin-user-dropdown-item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 20px;
    color: #0a0a0a;
    text-align: left;
    text-decoration: none;
}

.admin-user-dropdown-item:hover {
    background: #f3f4f6;
    color: #0a0a0a;
}

.admin-user-dropdown-form {
    margin: 0;
}

.admin-user-dropdown-separator {
    height: 1px;
    margin: 4px 0;
    background: rgba(0, 0, 0, 0.1);
}

.admin-user-dropdown-item.is-danger {
    color: #e7000b;
}

.admin-content {
    padding: 24px;
}

.admin-title {
    margin: 0;
    font-size: 30px;
    line-height: 36px;
    font-weight: 400;
}

.admin-block-spacer {
    margin-top: 24px;
}

.admin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
}

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

.dash-alert-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 106px;
    padding: 24px;
}

.alert-red {
    background: #fef2f2;
}

.alert-yellow {
    background: #fefce8;
}

.alert-green {
    background: #f0fdf4;
}

.alert-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

.alert-red .alert-icon {
    background: #fb2c36;
}

.alert-yellow .alert-icon {
    background: #f0b100;
}

.alert-green .alert-icon {
    background: #00c950;
}

.alert-value {
    font-size: 30px;
    line-height: 36px;
    font-weight: 400;
}

.alert-red .alert-value {
    color: #e7000b;
}

.alert-yellow .alert-value {
    color: #d08700;
}

.alert-green .alert-value {
    color: #00a63e;
}

.alert-label {
    margin-top: 0;
    font-size: 14px;
    line-height: 20px;
    color: #4a5565;
}

.dash-mini-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dash-mini-card {
    height: 62px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    font-size: 20px;
    line-height: 28px;
}

.dash-mini-icon {
    color: #3b82f6;
    font-size: 18px;
}

.dash-mini-card a {
    color: #155dfc;
    text-decoration: none;
}

.section-title {
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
}

.profile-back-row {
    margin: 0 0 12px;
}

.profile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #155dfc;
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
}

.profile-back-arrow {
    font-size: 20px;
    line-height: 20px;
}

.profile-card {
    padding: 25px;
}

.profile-card-title {
    margin: 0 0 16px;
    color: #0a0a0a;
    font-size: 30px;
    line-height: 28px;
    font-weight: 400;
}

.profile-form {
    display: block;
}

.profile-field {
    margin-bottom: 16px;
}

.profile-label {
    display: block;
    margin-bottom: 4px;
    color: #364153;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.profile-input {
    width: 100%;
    height: 42px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    padding: 8px 16px;
    color: #0a0a0a;
    font-size: 16px;
    line-height: 24px;
    background: #fff;
}

.profile-input-readonly {
    background: #f3f4f6;
    color: #4a5565;
}

.profile-help {
    margin-top: 2px;
    color: #6a7282;
    font-size: 12px;
    line-height: 16px;
}

.profile-primary-btn {
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #2b7fff;
    color: #fff;
    padding: 0 20px;
    font-size: 16px;
    line-height: 24px;
}

.profile-password-btn {
    min-width: 234px;
}

.deadline-row {
    border-radius: 4px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 3px solid transparent;
}

.deadline-row.urgent {
    border-left-color: #fb2c36;
}

.deadline-row.warning {
    border-left-color: #f0b100;
}

.deadline-main {
    min-width: 0;
}

.deadline-title {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: #0a0a0a;
}

.deadline-title b {
    font-weight: 500;
}

.deadline-meta {
    color: #4a5565;
    font-size: 14px;
    line-height: 20px;
}

.deadline-src {
    margin-top: 2px;
    color: #6a7282;
    font-size: 14px;
    line-height: 20px;
}

.deadline-btn {
    border-radius: 4px;
    background: #2b7fff;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
    padding: 8px 16px;
    white-space: nowrap;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-row {
    min-height: 44px;
    border-radius: 4px;
    padding-left: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 20px;
}

.event-time {
    width: 64px;
    color: #6a7282;
}

.event-sep {
    color: #99a1af;
}

.event-source {
    color: #4a5565;
}

.event-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(10, 10, 10, 0.2);
    margin-left: 2px;
}

.dot-red {
    background: #fb2c36;
}

.dot-yellow {
    background: #f0b100;
}

.dot-green {
    background: #00c950;
}

.empty-note {
    margin: 0;
    color: #6a7282;
    font-size: 14px;
}

.admin-table-wrap {
    overflow: auto;
}

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

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 9px 10px;
    text-align: left;
}

.admin-table th {
    font-size: 12px;
    text-transform: uppercase;
    color: #6b7280;
}

.admin-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-muted {
    background: #e5e7eb;
    color: #374151;
}

.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-filters input,
.admin-filters select {
    border: 1px solid #cfd6e0;
    border-radius: 8px;
    padding: 8px 10px;
}

.docs-filter-card {
    padding: 24px;
}

.docs-filter-title,
.docs-status-title {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #364153;
}

.docs-filter-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.docs-input {
    width: 100%;
    height: 39px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    padding: 8px 12px;
    background: #fff;
    color: #101828;
    font-size: 14px;
}

.docs-search-wrap {
    margin-top: 16px;
    position: relative;
}

.docs-search-icon {
    position: absolute;
    top: 11px;
    left: 12px;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}

.docs-search-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.docs-search-input {
    width: 100%;
    height: 42px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    background: #fff;
    padding: 8px 12px 8px 40px;
    font-size: 16px;
    color: #101828;
}

.docs-status-title {
    margin-top: 14px;
}

.docs-status-row {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.docs-status-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #364153;
    font-size: 14px;
    line-height: 20px;
}

.docs-filter-meta {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.docs-filter-apply {
    height: 30px;
    border: 0;
    border-radius: 8px;
    padding: 0 12px;
    background: #2b7fff;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
}

.docs-filter-count,
.docs-filter-reset {
    font-size: 14px;
    line-height: 20px;
    color: #155dfc;
    text-decoration: none;
}

.docs-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.docs-actions form {
    margin: 0;
}

.docs-submit-btn {
    height: 36px;
    border: 1px solid #2b7fff;
    border-radius: 10px;
    padding: 0 14px;
    background: #2b7fff;
    color: #ffffff;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.docs-submit-btn:hover {
    background: #155dfc;
    border-color: #155dfc;
}

.docs-submit-btn:active {
    background: #124ecf;
    border-color: #124ecf;
}

.docs-presets-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.docs-presets-title {
    color: #4a5565;
    font-size: 14px;
    line-height: 20px;
}

.docs-preset-link {
    display: inline-flex;
    align-items: center;
    height: 28px;
    border: 1px solid #d1d5dc;
    border-radius: 14px;
    padding: 0 10px;
    color: #364153;
    text-decoration: none;
    font-size: 13px;
    line-height: 18px;
    background: #fff;
}

.docs-preset-link:hover {
    border-color: #2b7fff;
    color: #155dfc;
}

.docs-table-card {
    padding: 0;
    margin-top: 16px;
    overflow: hidden;
}

.docs-table thead th {
    background: #f9fafb;
}

.docs-table th:nth-child(1),
.docs-table td:nth-child(1) {
    width: 110px;
}

.docs-table th:nth-child(2),
.docs-table td:nth-child(2) {
    width: 34%;
}

.docs-table td {
    color: #364153;
    font-size: 14px;
    line-height: 20px;
    vertical-align: top;
}

.docs-table th:nth-child(3),
.docs-table td:nth-child(3) {
    width: 80px;
}

.docs-table th:nth-child(4),
.docs-table td:nth-child(4) {
    width: 20%;
}

.docs-table th:nth-child(5),
.docs-table td:nth-child(5) {
    width: 24%;
}

.docs-table th:nth-child(6),
.docs-table td:nth-child(6) {
    width: 140px;
}

.docs-title-cell {
    min-width: 0;
}

.docs-title-link {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: #101828;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    word-break: break-word;
}

.docs-title-link:hover {
    text-decoration: underline;
    color: #101828;
}

.docs-title-meta {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: #6a7282;
    font-size: 12px;
    line-height: 17px;
}

.docs-categories-cell,
.docs-stage-cell {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.45;
    word-break: break-word;
}

.docs-threat-cell {
    font-size: 20px;
    line-height: 28px;
}

.docs-result-meta {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 20px;
    color: #4a5565;
}

.docs-pager-wrap {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.docs-pager {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-page-item .docs-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 4px;
    text-decoration: none;
    color: #364153;
    padding: 0 8px;
}

.docs-page-item.is-active .docs-page-link {
    background: #2b7fff;
    color: #fff;
}

.docs-page-item.is-disabled .docs-page-link {
    opacity: 0.45;
    pointer-events: none;
}

.badge-purple {
    background: #f3e8ff;
    color: #8200db;
}

.docs-view-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.docs-view-subtitle {
    margin: 6px 0 0;
    color: #4a5565;
    font-size: 14px;
    line-height: 20px;
}

.docs-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border: 1px solid #d1d5dc;
    border-radius: 8px;
    padding: 0 14px;
    color: #364153;
    text-decoration: none;
    font-size: 14px;
}

.docs-view-main {
    padding-bottom: 20px;
}

.docs-view-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.docs-view-meta-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.docs-view-meta-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.docs-view-meta-item span {
    font-size: 12px;
    color: #6a7282;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.docs-view-meta-item strong {
    font-size: 14px;
    color: #101828;
    font-weight: 500;
}

.docs-view-categories {
    margin-top: 12px;
}

.docs-view-table td,
.docs-view-table th {
    vertical-align: middle;
}

.docs-view-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.docs-view-subtitle2 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 24px;
    color: #101828;
    font-weight: 500;
}

.doc-back-link-wrap {
    margin-bottom: 12px;
}

.doc-back-link {
    color: #155dfc;
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
}

.doc-back-arrow {
    margin-right: 6px;
}

.doc-top-card {
    padding: 24px;
}

.doc-title {
    margin: 0;
    font-size: clamp(24px, 3.2vw, 26px);
    line-height: 1.08;
    max-width: 95%;
    letter-spacing: -0.02em;
    font-weight: 400;
    color: #0a0a0a;
    text-wrap: balance;
}

.doc-meta-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 32px;
}

.doc-meta-col p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 20px;
    color: #4a5565;
}

.doc-meta-col p strong {
    color: #0a0a0a;
    font-weight: 500;
    margin-left: 2px;
}

.doc-categories-row,
.doc-feedback-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #4a5565;
    font-size: 14px;
    line-height: 20px;
}

.doc-dash {
    color: #0a0a0a;
}

.doc-chip {
    background: #dbeafe;
    color: #1447e6;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 14px;
    line-height: 20px;
}

.doc-chip.is-muted {
    background: #eff4ff;
    color: #34507e;
}

.doc-ext-link {
    margin-top: 14px;
    display: inline-block;
    color: #155dfc;
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
}

.doc-passport-card {
    margin-top: 16px;
    border: 1px solid #dbe7ff;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
    border-radius: 14px;
    padding: 16px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "calt" 0;
    text-rendering: optimizeLegibility;
}

.doc-passport-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.doc-passport-title {
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
    color: #12315f;
}

.doc-passport-subtitle {
    margin-top: 2px;
    font-size: 13px;
    line-height: 18px;
    color: #5f6f89;
}

.doc-passport-id {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #dbeafe;
    color: #1447e6;
    padding: 5px 10px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
}

.doc-passport-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.doc-passport-row {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.doc-passport-row span {
    color: #5f6f89;
    font-size: 12px;
    line-height: 17px;
    font-family: inherit;
}

.doc-passport-row strong {
    color: #0f1728;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    word-break: break-word;
    font-family: inherit;
}

.doc-passport-stage-list {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-passport-card * {
    font-family: inherit;
}

.doc-project-files {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #dbe7ff;
}

.doc-project-files-title {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #12315f;
}

.doc-project-files-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-project-file-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #dbe7ff;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 12px;
}

.doc-project-file-main {
    min-width: 0;
    flex: 1 1 auto;
}

.doc-project-file-name {
    color: #0f1728;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    word-break: break-word;
}

.doc-project-file-meta {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: #5f6f89;
    font-size: 12px;
    line-height: 17px;
}

.doc-project-file-meta span:last-child {
    word-break: break-all;
}

.doc-project-file-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 8px;
    background: #eef2ff;
    color: #364153;
    font-weight: 600;
}

.doc-project-file-status.is-downloaded {
    background: #dcfce7;
    color: #166534;
}

.doc-project-file-status.is-failed {
    background: #fee2e2;
    color: #b42318;
}

.doc-project-file-status.is-extraction-success {
    background: #dcfce7;
    color: #166534;
}

.doc-project-file-status.is-extraction-empty {
    background: #fff7ed;
    color: #b45309;
}

.doc-project-file-status.is-extraction-failed {
    background: #fee2e2;
    color: #b42318;
}

.doc-project-file-status.is-extraction-pending {
    background: #eff4ff;
    color: #34507e;
}

.doc-project-file-status.is-pending {
    background: #eff4ff;
    color: #34507e;
}

.doc-project-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
}

.doc-project-file-error {
    margin-top: 8px;
    color: #b42318;
    font-size: 12px;
    line-height: 17px;
}

.doc-project-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 8px;
    padding: 0 12px;
    background: #155dfc;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
}

.doc-project-file-btn.is-secondary {
    background: #fff;
    color: #34507e;
    border: 1px solid #d1d5dc;
}

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

.doc-archive-note {
    margin-top: 14px;
    border: 1px solid #fedf89;
    background: #fffaeb;
    color: #93370d;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 20px;
}

.doc-warning {
    background: #fefce8;
    border-left: 4px solid #f0b100;
    border-radius: 4px;
    padding: 16px 16px 16px 20px;
}

.doc-warning-line {
    color: #894b00;
    font-size: 14px;
    line-height: 20px;
}

.doc-warning-actions {
    margin-top: 12px;
    display: flex;
    gap: 12px;
}

.doc-warning-btn {
    background: #d08700;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    padding: 9px 16px;
    font-size: 14px;
    line-height: 20px;
}

.doc-warning-btn.is-outline {
    background: #fff;
    color: #d08700;
    border: 1px solid #d08700;
}

.doc-tabs-card {
    padding: 0;
    overflow: hidden;
}

.doc-tabs-head {
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
}

.doc-tab {
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    color: #4a5565;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    padding: 12px 24px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.doc-tab.is-active {
    background: #eff6ff;
    color: #155dfc;
    border-bottom-color: #155dfc;
}

.doc-tab-content {
    padding: 24px;
}

.doc-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.doc-field-label {
    font-size: 14px;
    line-height: 20px;
    color: #364153;
    font-weight: 500;
}

.doc-outline-btn {
    background: #fff;
    color: #155dfc;
    border: 1px solid #155dfc;
    border-radius: 4px;
    text-decoration: none;
    padding: 5px 13px;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}

.doc-chips-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-category-chip-picker {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-category-chip {
    display: inline-flex;
    align-items: center;
    height: 28px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #364153;
    padding: 0 12px;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}

.doc-category-chip input {
    display: none;
}

.doc-category-chip.is-selected {
    background: #2b7fff;
    color: #fff;
}

.doc-field-block {
    margin-top: 22px;
}

.doc-input {
    margin-top: 8px;
    width: 145px;
    height: 41px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    padding: 8px 12px;
    background: #fff;
    color: #0a0a0a;
}

.doc-check-grid {
    margin-top: 8px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: #364153;
    font-size: 14px;
    line-height: 20px;
}

.doc-categories-editor {
    display: none;
}

.doc-categories-editor.is-open {
    display: flex;
}

.doc-relevance-row {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #364153;
    font-size: 14px;
    line-height: 20px;
}

.doc-relevance-row input {
    width: 16px;
    height: 16px;
}

.doc-impacts-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.doc-impact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #364153;
    font-size: 14px;
    line-height: 20px;
}

.doc-impact-item input {
    width: 16px;
    height: 16px;
}

.doc-textarea {
    margin-top: 8px;
    width: 100%;
    min-height: 114px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    padding: 8px 16px;
    resize: vertical;
    font-size: 16px;
}

.doc-save-btn {
    margin-top: 24px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #2b7fff;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    padding: 0 20px;
    min-width: 210px;
}

.doc-ai-block {
    margin-bottom: 16px;
}

.doc-ai-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.doc-ai-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #fafafa;
}

.doc-ai-pill-row,
.doc-ai-chip-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.doc-ai-pill,
.doc-ai-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 4px 12px;
    background: #e5edff;
    color: #1447e6;
    font-size: 13px;
    line-height: 18px;
}

.doc-ai-pill.is-positive {
    background: #dcfce7;
    color: #166534;
}

.doc-ai-pill.is-muted {
    background: #f3f4f6;
    color: #4a5565;
}

.doc-ai-chip.is-impact {
    background: #ede9fe;
    color: #6d28d9;
}

.doc-ai-text {
    margin: 8px 0 0;
    color: #1e2939;
    font-size: 14px;
    line-height: 22.75px;
}

.doc-ai-list {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.doc-ai-list li {
    position: relative;
    padding-left: 14px;
    margin-top: 4px;
    color: #1e2939;
    font-size: 14px;
    line-height: 20px;
}

.doc-ai-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
}

.doc-ai-list.is-risk li::before {
    color: #fb2c36;
}

.doc-ai-list.is-positive li::before {
    color: #00c950;
}

.doc-ai-list.is-risk-factor li::before {
    color: #f59e0b;
}

.doc-ai-threat-card {
    margin-top: 10px;
    background: #fef2f2;
    border: 1px solid #ffc9c9;
    border-radius: 10px;
    padding: 17px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.doc-ai-threat-icon {
    font-size: 24px;
    line-height: 32px;
}

.doc-ai-threat-main {
    flex: 1;
    min-width: 0;
}

.doc-ai-regenerate-btn {
    margin-top: 16px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    color: #364153;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.doc-ai-regenerate-btn:hover {
    background: #e5e7eb;
}

.doc-ai-regenerate-btn.is-primary {
    margin-top: 0;
    background: #155dfc;
    color: #fff;
}

.doc-ai-regenerate-btn.is-primary:hover {
    background: #1447e6;
}

.doc-ai-regenerate-btn.is-archive-toggle {
    margin-top: 0;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.doc-ai-regenerate-btn.is-archive-toggle:hover {
    background: #ffedd5;
}

.doc-ai-regenerate-btn.is-archive-toggle.is-active {
    background: #ecfdf3;
    color: #166534;
    border-color: #86efac;
}

.doc-ai-regenerate-btn:disabled,
.doc-ai-regenerate-btn.is-loading {
    opacity: 0.72;
    cursor: wait;
}

.doc-ai-regenerate-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.doc-ai-regenerate-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.doc-summary-textarea {
    margin-top: 10px;
    width: 100%;
    min-height: 266px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    padding: 12px 16px;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 20px;
    color: #0a0a0a;
}

.doc-summary-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.doc-summary-status {
    display: inline-flex;
    align-items: center;
    height: 28px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 18px;
}

.doc-summary-status.is-draft {
    background: #f3f4f6;
    color: #4a5565;
}

.doc-summary-status.is-published {
    background: #dcfce7;
    color: #166534;
}

.doc-summary-status-meta {
    color: #6a7282;
    font-size: 13px;
    line-height: 18px;
}

.doc-summary-textarea::placeholder {
    color: rgba(10, 10, 10, 0.5);
}

.doc-summary-actions {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.doc-summary-preview-card {
    margin-top: 16px;
    border: 1px solid #dbe3ea;
    border-radius: 10px;
    background: #f9fafb;
    padding: 16px;
}

.doc-summary-preview-text {
    margin-top: 10px;
    color: #111827;
    font-size: 15px;
    line-height: 1.7;
    white-space: normal;
}

.doc-summary-draft-btn,
.doc-summary-publish-btn {
    height: 40px;
    border: 0;
    border-radius: 10px;
    padding: 0 20px;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
}

.doc-summary-draft-btn {
    background: #6a7282;
}

.doc-summary-publish-btn {
    background: #2b7fff;
}

.doc-summary-public-card {
    margin-top: 24px;
    background: #f0fdf4;
    border: 1px solid #b9f8cf;
    border-radius: 10px;
    padding: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.doc-summary-public-link {
    margin-top: 4px;
    display: inline-block;
    color: #155dfc;
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
}

.doc-summary-open-btn {
    height: 36px;
    border-radius: 10px;
    background: #00a63e;
    color: #fff;
    text-decoration: none;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
}

.doc-summary-open-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
}

.doc-summary-open-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.doc-version-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-version-row {
    min-height: 48px;
    border-radius: 10px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
}

.doc-version-row.is-current {
    background: #eff6ff;
    border: 1px solid #bedbff;
}

.doc-version-title {
    color: #0a0a0a;
    font-size: 16px;
    line-height: 24px;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    flex-wrap: wrap;
}

.doc-version-title span {
    color: #364153;
}

.doc-version-date {
    color: #6a7282 !important;
}

.doc-version-badge {
    background: #2b7fff;
    color: #fff;
    border-radius: 4px;
    height: 24px;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 16px;
}

.doc-version-compare-btn {
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #6a7282;
    color: #fff;
    padding: 0 16px;
    font-size: 16px;
    line-height: 24px;
}

.doc-version-compare-form {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.doc-version-select {
    height: 40px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    background: #fff;
    color: #364153;
    font-size: 14px;
    line-height: 20px;
    padding: 0 12px;
    min-width: 220px;
}

.doc-version-arrow {
    color: #6a7282;
    font-size: 16px;
    line-height: 20px;
}

.doc-version-diff-title {
    margin-top: 24px;
}

.doc-version-diff-card {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 17px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-diff-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 20px;
}

.doc-diff-sign {
    width: 8px;
}

.doc-diff-line.is-removed .doc-diff-sign,
.doc-diff-line.is-removed .doc-diff-text {
    color: #c10007;
}

.doc-diff-line.is-removed .doc-diff-text {
    text-decoration: line-through;
}

.doc-diff-line.is-added .doc-diff-sign,
.doc-diff-line.is-added .doc-diff-text {
    color: #008236;
}

.doc-diff-word-removed {
    background: rgba(193, 0, 7, 0.16);
    border-radius: 4px;
}

.doc-diff-word-added {
    background: rgba(0, 130, 54, 0.16);
    border-radius: 4px;
}

.doc-version-ai-card {
    margin-top: 16px;
    border: 1px solid #ffc9c9;
    background: #fef2f2;
    border-radius: 10px;
    padding: 17px;
}

.doc-version-ai-head {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.doc-version-ai-alert {
    color: #e7000b;
    font-size: 20px;
    line-height: 20px;
}

.doc-version-ai-list {
    margin: 8px 0 0;
    padding-left: 22px;
    color: #1e2939;
    font-size: 14px;
    line-height: 20px;
}

.doc-version-ai-list li {
    margin-top: 8px;
}

.doc-version-ai-list li::marker {
    color: #fb2c36;
}

.doc-version-ai-list.is-added li::marker {
    color: #00a63e;
}

.doc-version-ai-subtitle {
    margin-top: 14px;
}

.doc-version-ai-meta {
    margin-top: 14px;
    color: #6a7282;
    font-size: 13px;
    line-height: 18px;
}

.doc-version-ai-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.doc-version-danger-btn {
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #e7000b;
    color: #fff;
    padding: 0 16px;
    font-size: 14px;
    line-height: 20px;
}

.doc-version-outline-danger-btn {
    height: 38px;
    border: 1px solid #e7000b;
    border-radius: 10px;
    background: #fff;
    color: #e7000b;
    padding: 0 16px;
    font-size: 14px;
    line-height: 20px;
}

.doc-stages-title {
    margin: 0 0 24px;
    color: #0a0a0a;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
}

.doc-stages-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.doc-stages-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.doc-stage-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 32px;
    z-index: 1;
}

.doc-stage-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-stage-item.is-done .doc-stage-marker {
    background: #2b7fff;
    color: #fff;
}

.doc-stage-item.is-pending .doc-stage-marker {
    background: #fff;
    border: 2px solid #d1d5dc;
}

.doc-stage-check {
    font-size: 16px;
    line-height: 1;
}

.doc-stage-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #d1d5dc;
    background: #fff;
}

.doc-stage-content {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.doc-stage-name {
    color: #6a7282;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

.doc-stage-date {
    color: #99a1af;
    font-size: 14px;
    line-height: 20px;
}

.doc-stage-item.is-done .doc-stage-name {
    color: #101828;
}

.doc-stage-item.is-done .doc-stage-date {
    color: #6a7282;
}

.doc-stages-history-head {
    margin-top: 24px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #101828;
}

.doc-stages-history {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.doc-stage-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.doc-stage-history-row:last-child {
    border-bottom: none;
}

.doc-stage-history-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.doc-stage-history-title {
    font-size: 14px;
    line-height: 20px;
    color: #111827;
    font-weight: 500;
}

.doc-stage-history-meta {
    font-size: 13px;
    line-height: 18px;
    color: #6b7280;
}

.doc-stage-history-side {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.doc-stage-history-code {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    line-height: 16px;
    font-family: Consolas, "Courier New", monospace;
}

.doc-stage-history-source {
    font-size: 12px;
    line-height: 16px;
    color: #2563eb;
}

.doc-logs-head {
    margin-top: 28px;
    font-size: 18px;
    line-height: 28px;
    color: #101828;
    font-weight: 500;
}

.doc-logs-list {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.doc-log-row {
    display: grid;
    grid-template-columns: 160px 220px 1fr 140px;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 20px;
    color: #364153;
}

.doc-log-row:first-child {
    border-top: 0;
}

.doc-log-time {
    color: #6a7282;
}

.doc-log-event {
    color: #155dfc;
}

.doc-log-user {
    text-align: right;
    color: #4a5565;
}

.doc-compact-logs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-compact-log-row {
    min-height: 48px;
    border-radius: 10px;
    background: #f9fafb;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.doc-compact-log-time {
    width: 48px;
    color: #6a7282;
    font-size: 14px;
    line-height: 20px;
    font-family: Consolas, "Courier New", monospace;
    flex-shrink: 0;
}

.doc-compact-log-message {
    color: #1e2939;
    font-size: 14px;
    line-height: 20px;
}

.doc-compact-log-meta {
    color: #99a1af;
}

.org-ready-card {
    background: #f0fdf4;
    border: 1px solid #b9f8cf;
    border-radius: 10px;
    padding: 16px;
}

.org-ready-line {
    color: #0d542b;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.org-ready-sub {
    margin-top: 4px;
    color: #008236;
    font-size: 14px;
    line-height: 20px;
}

.org-ready-icon {
    margin-right: 8px;
}

.org-ready-icon-small {
    margin-right: 8px;
    font-size: 12px;
}

.org-settings-card {
    padding: 0;
    overflow: hidden;
}

.org-tabs-head {
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    overflow-x: auto;
}

.org-tab {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 12px 20px;
    text-decoration: none;
    color: #4a5565;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.org-tab.is-active {
    background: #eff6ff;
    color: #155dfc;
    border-bottom-color: #155dfc;
}

.org-tab-panel {
    display: none;
}

.org-tab-panel.is-active {
    display: block;
}

.org-form-content {
    padding: 24px;
}

.org-section + .org-section {
    margin-top: 28px;
}

.org-section-title {
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #101828;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
}

.org-field {
    margin-bottom: 16px;
}

.org-label {
    display: block;
    margin-bottom: 8px;
    color: #364153;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.org-input,
.org-select {
    width: 100%;
    height: 42px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 16px;
    color: #0a0a0a;
    background: #fff;
}

.org-textarea {
    width: 100%;
    min-height: 90px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 16px;
}

.org-help {
    margin: 8px 0 0;
    color: #6a7282;
    font-size: 14px;
    line-height: 20px;
}

.org-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.org-grid,
.org-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.org-radio,
.org-checkbox {
    display: block;
    color: #364153;
    font-size: 14px;
    line-height: 20px;
    margin-top: 8px;
}

.org-checks {
    margin-top: 12px;
}

.org-save-bar {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 16px 9px 16px 0;
}

.org-save-btn {
    height: 40px;
    border: 0;
    border-radius: 10px;
    padding: 0 24px;
    background: #2b7fff;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
}

.org-secondary-btn {
    height: 40px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    padding: 0 18px;
    background: #f8fafc;
    color: #364153;
    font-size: 15px;
    line-height: 22px;
    font-weight: 500;
}

.org-inline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.org-info-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
    border-radius: 14px;
    padding: 16px 18px;
}

.org-info-banner-icon {
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
}

.org-info-banner-title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

.org-info-banner-text {
    margin-top: 2px;
    font-size: 14px;
    line-height: 20px;
    color: #3559b4;
}

.org-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.org-checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    margin: 0;
}

.org-checkbox-card input[type="checkbox"] {
    margin-top: 3px;
}

.org-checkbox-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.org-checkbox-card-title {
    color: #111827;
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
}

.org-checkbox-card-text {
    color: #6b7280;
    font-size: 14px;
    line-height: 20px;
}

.org-notification-preview {
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #f8fafc;
    padding: 16px 18px;
}

.org-notification-preview-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-size: 15px;
    line-height: 22px;
}

.org-notification-preview-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.org-notification-preview-title {
    margin-top: 14px;
    color: #111827;
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
}

.org-notification-preview-text {
    margin-top: 10px;
    color: #374151;
    font-size: 15px;
    line-height: 24px;
}

.org-notification-preview-meta {
    margin-top: 8px;
    color: #6b7280;
    font-size: 14px;
    line-height: 20px;
}

.org-notification-preview-link {
    margin-top: 14px;
    color: #2563eb;
    font-size: 15px;
    line-height: 22px;
    font-weight: 500;
}

.org-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.org-cat-title {
    margin: 0;
    color: #0a0a0a;
    font-size: 30px;
    line-height: 28px;
    font-weight: 500;
}

.org-cat-add-btn {
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #2b7fff;
    color: #fff;
    padding: 0 16px;
    font-size: 16px;
    line-height: 24px;
}

.org-cat-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.org-cat-new-row-card {
    display: none;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    background: #f9fafb;
}

.org-cat-new-row-card.is-open {
    display: block;
}

.org-cat-new-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
}

.org-cat-table thead th {
    background: #f9fafb;
}

.org-threat-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.org-threat-table thead th {
    background: #f9fafb;
}

.org-threat-row td {
    vertical-align: middle;
}

.org-threat-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #364153;
}

.org-threat-dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #111827;
}

.org-threat-code-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.org-threat-code-row .org-input[disabled] {
    background: #f9fafb;
    color: #4a5565;
}

.org-cat-edit-btn {
    border: 0;
    background: none;
    color: #155dfc;
    font-size: 14px;
    line-height: 20px;
    padding: 0;
    margin-right: 12px;
}

.org-delete-form {
    display: inline;
}

.org-delete-link {
    border: 0;
    background: none;
    color: #e7000b;
    font-size: 14px;
    line-height: 20px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.org-delete-link-icon {
    font-size: 14px;
}

.org-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
}

.org-modal.is-open {
    display: block;
}

.org-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.org-modal-card {
    position: relative;
    width: 448px;
    max-width: calc(100vw - 24px);
    margin: 80px auto 0;
    border-radius: 10px;
    background: #fff;
    padding: 24px;
}

.org-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.org-modal-head h3 {
    margin: 0;
    color: #0a0a0a;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
}

.org-modal-close {
    border: 0;
    background: transparent;
    color: #6a7282;
    font-size: 24px;
    line-height: 1;
    padding: 0;
}

.org-modal-body {
    margin-top: 16px;
}

.org-modal-body .org-label {
    margin-top: 10px;
}

.org-modal-body .org-textarea {
    min-height: 90px;
}

.org-modal-actions {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.org-modal-actions .org-save-btn {
    width: 100%;
}

.org-modal-cancel {
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #e5e7eb;
    color: #364153;
    font-size: 16px;
    line-height: 24px;
}

.kb-status-card {
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
}

.kb-status-card-success {
    border-color: #b9f8cf;
    background: #f0fdf4;
}

.kb-status-card-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.kb-status-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f5132;
    font-size: 16px;
    line-height: 24px;
}

.kb-status-card-warning .kb-status-line {
    color: #92400e;
}

.kb-status-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.kb-status-card-warning .kb-status-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.kb-status-meta {
    margin-top: 6px;
    color: #166534;
    font-size: 14px;
    line-height: 20px;
}

.kb-status-card-warning .kb-status-meta {
    color: #92400e;
}

.kb-file-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    background: #fff;
}

.kb-file-picker-button {
    display: inline-flex;
    align-items: center;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #d1d5dc;
    padding: 0 12px;
    background: #f9fafb;
    color: #364153;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
}

.kb-file-picker-name {
    color: #6a7282;
    font-size: 14px;
    line-height: 20px;
}

.kb-file-input {
    display: none;
}

.kb-warning-card {
    margin-top: 16px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #a16207;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 20px;
}

.kb-actions-row {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.kb-actions-row .org-save-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.kb-history-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.kb-history-table thead th {
    background: #f9fafb;
}

.kb-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
}

.kb-badge-success {
    background: #ecfdf3;
    color: #027a48;
}

.kb-badge-warning {
    background: #fffaeb;
    color: #b54708;
}

.kb-badge-danger {
    background: #fef3f2;
    color: #d92d20;
}

.kb-badge-neutral {
    background: #f3f4f6;
    color: #364153;
}

.kb-empty-cell,
.kb-empty-note {
    color: #6a7282;
    font-size: 14px;
    line-height: 20px;
}

.kb-search-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.kb-search-grow {
    flex: 1 1 auto;
}

.kb-search-submit-wrap {
    flex: 0 0 auto;
}

.kb-search-results-card {
    margin-top: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 16px;
}

.kb-search-results-title {
    margin-bottom: 8px;
    color: #111827;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

.kb-search-results-list {
    margin: 0;
    padding-left: 20px;
    color: #111827;
}

.kb-search-results-list li + li {
    margin-top: 10px;
}

.kb-search-result-meta {
    display: block;
    margin-top: 4px;
    color: #6a7282;
    font-size: 13px;
    line-height: 18px;
}

.kb-search-results-list a {
    color: #1d4ed8;
    text-decoration: none;
}

.kb-search-results-list a:hover {
    text-decoration: underline;
}

.kb-search-result-snippet {
    margin-top: 6px;
    color: #374151;
    font-size: 13px;
    line-height: 19px;
}

.prompt-tabs-head {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
    overflow-x: auto;
}

.prompt-tab {
    border: 0;
    background: transparent;
    color: #364153;
    font-size: 15px;
    line-height: 22px;
    padding: 0 16px 14px;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.prompt-tab.is-active {
    color: #155dfc;
    border-bottom-color: #155dfc;
}

.prompt-tab-panel {
    display: none;
}

.prompt-tab-panel.is-active {
    display: block;
}

.prompt-textarea {
    min-height: 260px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    line-height: 1.55;
}

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

.prompt-test-btn {
    height: 40px;
    border: 0;
    border-radius: 10px;
    padding: 0 24px;
    background: #22c55e;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
}

.prompt-test-result-card {
    margin-top: 16px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
    padding: 16px;
}

.prompt-test-result-title {
    color: #111827;
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
}

.prompt-test-result-doc {
    margin-top: 6px;
    color: #4b5563;
    font-size: 14px;
    line-height: 20px;
}

.prompt-test-result-json {
    margin: 12px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: #111827;
    font-size: 14px;
    line-height: 21px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (max-width: 900px) {
    .doc-ai-grid {
        grid-template-columns: 1fr;
    }

    .docs-title-link {
        -webkit-line-clamp: 2;
    }

    .docs-title-meta {
        gap: 4px 8px;
    }

    .kb-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .kb-search-submit-wrap .org-save-btn {
        width: 100%;
    }

    .prompt-actions-row > * {
        width: 100%;
    }
}


.logs-filter-card {
    padding: 24px;
}

.logs-filter-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.logs-search-wrap {
    position: relative;
}

.logs-search-icon {
    position: absolute;
    left: 12px;
    top: 11px;
    width: 16px;
    height: 16px;
    color: #9ca3af;
    pointer-events: none;
}

.logs-search-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.logs-search-input {
    padding-left: 36px;
}

.logs-event-grid {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.logs-filter-actions {
    margin-top: 12px;
    display: flex;
    gap: 16px;
}

.logs-filter-actions .docs-filter-reset {
    border: 0;
    background: none;
    padding: 0;
}

.logs-table-card {
    padding: 0;
    overflow: hidden;
}

.logs-table thead th {
    background: #f9fafb;
}

.logs-table th:nth-child(1),
.logs-table td:nth-child(1) {
    width: 170px;
}

.logs-table th:nth-child(2),
.logs-table td:nth-child(2) {
    width: 90px;
}

.logs-table th:nth-child(4),
.logs-table td:nth-child(4) {
    width: 180px;
}

.logs-table th:nth-child(6),
.logs-table td:nth-child(6) {
    width: 180px;
}

.logs-pager-wrap {
    border-top: 1px solid #e5e7eb;
    padding: 16px;
    display: flex;
    justify-content: center;
}

.logs-pager {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.logs-page-item .logs-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 4px;
    text-decoration: none;
    color: #364153;
    padding: 0 8px;
}

.logs-page-item.is-active .logs-page-link {
    background: #2b7fff;
    color: #fff;
}

.logs-page-item.is-disabled .logs-page-link {
    opacity: 0.45;
    pointer-events: none;
}

body.admin-login-layout {
    margin: 0;
    min-height: 100vh;
    background: #f3f4f6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.admin-login-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-login-wrap {
    width: 100%;
    max-width: 420px;
}

.admin-login-brand {
    text-align: center;
    margin-bottom: 18px;
}

.admin-login-brand strong {
    display: block;
    font-size: 30px;
    line-height: 36px;
    color: #0a0a0a;
    font-weight: 600;
}

.admin-login-brand span {
    display: block;
    font-size: 14px;
    line-height: 20px;
    color: #6a7282;
    margin-top: 2px;
}

.admin-login-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.04);
}

.admin-login-title {
    margin: 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
}

.admin-login-subtitle {
    margin: 4px 0 16px;
    color: #6a7282;
    font-size: 14px;
    line-height: 20px;
}

.admin-login-form .form-label {
    margin-bottom: 6px;
    font-size: 14px;
    color: #4a5565;
}

.admin-login-form .form-control {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #d1d5dc;
    padding: 8px 12px;
    font-size: 16px;
}

.admin-login-form .form-control:focus {
    border-color: #2b7fff;
    box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.15);
}

.admin-login-remember {
    margin-bottom: 14px;
}

.admin-login-remember .form-check-label {
    color: #4a5565;
    font-size: 14px;
}

.admin-login-submit {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #2b7fff;
    color: #fff;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

.admin-login-submit:hover {
    background: #1f6ef0;
}

@media (max-width: 1120px) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        width: 100%;
    }

    .admin-header {
        height: auto;
        flex-wrap: wrap;
    }

    .admin-search {
        width: 100%;
    }

    .dash-alert-grid,
    .dash-mini-grid {
        grid-template-columns: 1fr;
    }

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

    .docs-filter-grid,
    .docs-view-meta-grid,
    .docs-view-split {
        grid-template-columns: 1fr;
    }

    .doc-meta-grid {
        grid-template-columns: 1fr;
    }

    .doc-title {
        max-width: 100%;
        font-size: clamp(24px, 7vw, 32px);
        line-height: 1.12;
    }

    .doc-passport-grid {
        grid-template-columns: 1fr;
    }

    .doc-passport-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .doc-project-file-row {
        flex-direction: column;
    }

    .doc-project-file-actions {
        width: 100%;
    }

    .doc-log-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .doc-log-user {
        text-align: left;
    }

    .doc-compact-log-row {
        padding: 10px 12px;
        gap: 10px;
    }

    .org-grid-two {
        grid-template-columns: 1fr;
    }

    .logs-filter-grid {
        grid-template-columns: 1fr;
    }
}
