:root {
    --app-navy: #14213d;
    --app-blue: #2563eb;
    --app-blue-dark: #1d4ed8;
    --app-bg: #f4f7fb;
    --app-muted: #667085;
    --app-border: #e4e7ec;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    color: #1d2939;
    background: var(--app-bg);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:not(.login-page) .container {
    width: 100%;
    max-width: 1680px;
    padding-right: clamp(1rem, 2.5vw, 3rem);
    padding-left: clamp(1rem, 2.5vw, 3rem);
}

.login-page {
    background:
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, .2), transparent 28rem),
        linear-gradient(135deg, #0f1d38 0%, #172a4d 55%, #1d4e89 100%);
}

.login-shell {
    min-height: 100vh;
}

.login-intro {
    max-width: 580px;
}

.brand-mark {
    display: inline-grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(20, 33, 61, .2);
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-mark-login {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
    border-radius: 20px;
}

.login-brand-name {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.eyebrow {
    color: #84adff;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-card {
    max-width: 460px;
    margin-inline: auto;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(3, 10, 25, .28);
}

.form-control,
.form-select {
    min-height: 48px;
    border-color: #d0d5dd;
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    border-color: #84adff;
    box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .12);
}

.form-control.review-target-highlight {
    animation: review-target-pulse 1.8s ease-out;
}

.review-suggestion-menu {
    position: fixed;
    z-index: 1090;
    width: min(340px, calc(100vw - 1rem));
    padding: .8rem;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .2);
    animation: fade-in .18s ease-out;
}

.review-suggestion-header {
    display: flex;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .65rem;
    color: #101828;
    font-size: .82rem;
    font-weight: 700;
}

.review-suggestion-close {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    color: #667085;
    font-size: 1.25rem;
    line-height: 1;
    background: transparent;
    border: 0;
    border-radius: 6px;
}

.review-suggestion-close:hover,
.review-suggestion-close:focus-visible {
    color: #101828;
    background: #f2f4f7;
}

.review-suggestion-options {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.review-suggestion-empty {
    color: #667085;
    font-size: .82rem;
}

textarea.form-control {
    min-height: 220px;
    resize: vertical;
}

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

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

.app-navbar {
    min-height: 72px;
    background: #fff;
    border-bottom: 1px solid var(--app-border);
}

.admin-primary-navigation {
    display: none;
    align-items: center;
    gap: .25rem;
}

.admin-primary-navigation.is-visible {
    display: flex;
}

.admin-primary-navigation a,
.admin-primary-navigation span {
    color: #334155;
    padding: .55rem .7rem;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.admin-primary-navigation a:hover,
.admin-primary-navigation a:focus,
.admin-primary-navigation .active {
    color: #1d4ed8;
    background: #dbeafe;
}

#dashboard,
#projects {
    scroll-margin-top: 88px;
}

@media (max-width: 767.98px) {
    .admin-primary-navigation.is-visible {
        display: none;
    }
}

.avatar {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--app-blue-dark);
    font-size: .85rem;
    font-weight: 800;
    background: #dbeafe;
    border-radius: 50%;
}

.user-menu {
    min-width: 220px;
    padding: .5rem;
    border-radius: 14px;
}

.user-menu .dropdown-item {
    padding: .65rem .8rem;
    border-radius: 8px;
}

.assignment-shell {
    min-height: calc(100vh - 72px);
}

.assignment-hero {
    color: #fff;
    background: linear-gradient(135deg, var(--app-navy), #245ea8);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(20, 33, 61, .14);
}

.assignment-panel {
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(16, 24, 40, .07);
}

.assignment-users,
.assignment-summary {
    display: grid;
    gap: .75rem;
}

.assignment-user-option {
    display: flex;
    gap: .85rem;
    align-items: center;
    padding: .85rem 1rem;
    cursor: pointer;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    transition: border-color .15s ease, background .15s ease;
}

.assignment-user-option:has(input:checked) {
    background: #eff6ff;
    border-color: #93c5fd;
}

.assignment-user-avatar {
    width: 36px;
    height: 36px;
    font-size: .75rem;
}

.assignment-summary-item {
    width: 100%;
    padding: 1rem;
    color: inherit;
    text-align: left;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 12px;
}

.assignment-summary-item:hover,
.assignment-summary-item:focus-visible {
    background: #f8fafc;
    border-color: #93c5fd;
}

.assignment-summary-item .badge {
    color: #344054;
    background: #f2f4f7 !important;
    border: 1px solid #d0d5dd;
}

.user-role-badge {
    border: 1px solid transparent;
}

.user-role-admin {
    color: #1e3a8a;
    background: #dbeafe;
    border-color: #93c5fd;
}

.user-role-developer {
    color: #14532d;
    background: #dcfce7;
    border-color: #86efac;
}

.user-role-documenter {
    color: #78350f;
    background: #fef3c7;
    border-color: #fcd34d;
}

.profile-summary {
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: 16px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    font-size: 1rem;
}

.profile-details {
    display: grid;
    gap: 0;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    overflow: hidden;
}

.profile-details > div {
    display: grid;
    grid-template-columns: minmax(130px, .8fr) 1.2fr;
    gap: 1rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--app-border);
}

.profile-details > div:last-child {
    border-bottom: 0;
}

.profile-details dt {
    color: var(--app-muted);
    font-size: .82rem;
}

.profile-details dd {
    margin: 0;
    color: #101828;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.user-create-panel {
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: 16px;
}

.password-input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.password-visibility-toggle {
    display: inline-grid;
    min-width: 48px;
    place-items: center;
    color: #475467;
    background: #fff;
    border-color: #d0d5dd;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus {
    color: var(--app-blue-dark);
    background: #eff6ff;
    border-color: #84adff;
}

.password-visibility-toggle svg {
    pointer-events: none;
}

.password-visibility-toggle[aria-pressed="true"] {
    color: var(--app-blue-dark);
    background: #eff6ff;
    border-color: #84adff;
}

.users-table-wrap {
    border: 1px solid var(--app-border);
    border-radius: 14px;
}

.users-table-wrap th {
    padding: .8rem 1rem;
    color: #475467;
    font-size: .76rem;
    text-transform: uppercase;
    background: #f8fafc;
    border-bottom-width: 1px;
}

.users-table-wrap td {
    padding: .9rem 1rem;
}

@media (max-width: 575.98px) {
    .profile-details > div {
        grid-template-columns: 1fr;
        gap: .2rem;
    }
}

.hero-panel {
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 90% 0%, rgba(96, 165, 250, .42), transparent 22rem),
        linear-gradient(120deg, #12213f, #1d4e89);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(18, 33, 63, .12);
}

.document-card,
.project-card,
.wizard-card {
    border: 1px solid var(--app-border);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}

.document-card,
.project-card {
    transition: transform .18s ease, box-shadow .18s ease;
}

.document-card:hover,
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(16, 24, 40, .1);
}

.document-card-clickable {
    cursor: pointer;
}

.document-card-clickable:hover {
    border-color: #93c5fd;
}

.project-header {
    color: #fff;
    background:
        radial-gradient(circle at 15% 100%, rgba(96, 165, 250, .28), transparent 19rem),
        linear-gradient(120deg, #12213f, #1d4e89);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(18, 33, 63, .12);
}

.editable-title {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .45);
}

.editable-title svg {
    opacity: .65;
    transition: opacity .15s ease, transform .15s ease;
}

.editable-title:hover svg,
.editable-title:focus-visible svg {
    opacity: 1;
    transform: translateY(-1px);
}

.editable-title:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .38);
    outline-offset: 5px;
}

.project-name-editor {
    max-width: 590px;
}

.icon-action {
    display: inline-grid;
    min-width: 48px;
    place-items: center;
}

.version-select-label {
    letter-spacing: .08em;
}

.version-select {
    color: var(--app-navy);
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, .8);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
}

.active-version-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(100deg, #eff6ff, #f8fbff);
    border: 1px solid #bfdbfe;
    border-left: 5px solid var(--app-blue);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .07);
}

.active-version-icon {
    display: inline-grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: var(--app-blue);
    border-radius: 12px;
}

.active-version-eyebrow {
    color: var(--app-blue-dark);
    font-size: .68rem;
    letter-spacing: .1em;
}

.active-version-indicator {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .65rem;
    color: #166534;
    font-size: .75rem;
    font-weight: 700;
    background: #dcfce7;
    border-radius: 999px;
}

.active-version-indicator span {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
}

.document-version-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #5b21b6;
    background: #f3e8ff;
    border: 1px solid #e9d5ff;
}

.form-version-tag {
    color: #5b21b6;
    background: #ede9fe;
    border: 1px solid #c4b5fd;
}

.project-card {
    overflow: hidden;
}

.project-card-clickable {
    cursor: pointer;
}

.project-card-clickable:hover {
    border-color: #c4b5fd;
}

.project-version-label {
    padding: .45rem .75rem;
    color: #5b21b6 !important;
    background: #f3e8ff !important;
    border: 1px solid #d8b4fe;
    font-weight: 700;
}

.odt-card-label {
    max-width: 100%;
    color: #5b21b6 !important;
    background: #f3e8ff !important;
    border: 1px solid #d8b4fe;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
}

.project-card .card-body > .odt-card-label {
    align-self: flex-start;
    margin-bottom: .65rem;
}

.project-header-odt {
    display: inline-flex;
    max-width: 100%;
    padding: .35rem .7rem;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.project-icon {
    display: inline-grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #7c3aed;
    background: #f3e8ff;
    border-radius: 14px;
}

.project-metrics {
    padding-top: 1rem;
    border-top: 1px solid var(--app-border);
}

.project-metrics span {
    display: flex;
    flex-direction: column;
}

.project-metrics strong {
    color: var(--app-navy);
    font-size: 1.15rem;
}

.project-metrics small {
    color: var(--app-muted);
}

.empty-state {
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
}

.version-history {
    position: relative;
}

.version-item {
    position: relative;
    display: flex;
    width: 100%;
    gap: .8rem;
    padding: .85rem;
    color: #344054;
    background: transparent;
    border: 0;
    border-radius: 12px;
}

.version-item:hover,
.version-item.active {
    background: #f5f8ff;
}

.version-marker {
    width: 12px;
    height: 12px;
    margin-top: .28rem;
    flex: 0 0 auto;
    background: #d0d5dd;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #d0d5dd;
}

.version-item.active .version-marker {
    background: var(--app-blue);
    box-shadow: 0 0 0 2px var(--app-blue);
}

.version-notes.form-control {
    min-height: 110px;
}

.document-icon {
    display: inline-grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--app-blue);
    background: #eff6ff;
    border-radius: 14px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: .35rem;
    background: #f59e0b;
    border-radius: 50%;
}

.document-status-label {
    color: #344054 !important;
    background: #fff7ed !important;
    border: 1px solid #fed7aa;
    font-weight: 700;
}

.document-status-label.document-status-complete {
    color: #14532d !important;
    background: #dcfce7 !important;
    border-color: #86efac;
}

.document-status-complete .status-dot {
    background: #16a34a;
}

.document-edit-button {
    color: #052e16;
    background: #22c55e;
    border-color: #15803d;
    font-weight: 600;
}

.document-edit-button:hover,
.document-edit-button:focus {
    color: #052e16;
    background: #16a34a;
    border-color: #166534;
}

.document-base-card {
    border-left: 4px solid #7c3aed;
}

.document-base-icon {
    color: #6d28d9;
    background: #ede9fe;
}

.dashboard-shell {
    min-height: calc(100vh - 72px);
}

.project-portfolio-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
}

.project-search-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-search-control {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: min(320px, 48vw);
    padding: .65rem .85rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #94a3b8;
    border-radius: 10px;
}

.project-search-control:focus-within {
    color: #1d4ed8;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.project-search-control input {
    width: 100%;
    min-width: 0;
    color: #172554;
    background: transparent;
    border: 0;
    outline: 0;
}

.project-search-control input::placeholder {
    color: #64748b;
}

@media (max-width: 767.98px) {
    .project-portfolio-heading,
    .project-search-area {
        align-items: stretch;
        flex-direction: column;
    }

    .project-search-area {
        gap: .5rem;
    }

    .project-search-control {
        width: 100%;
    }
}

.dashboard-heading {
    padding: 1.5rem;
    background: #eaf2ff;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
}

.dashboard-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.dashboard-option-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    min-height: 190px;
    padding: 2rem;
    color: #172554;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.dashboard-option-card:hover,
.dashboard-option-card:focus-visible {
    color: #172554;
    border-color: #2563eb;
    box-shadow: 0 18px 40px rgba(37, 99, 235, .16);
    outline: 0;
    transform: translateY(-3px);
}

.dashboard-option-icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 18px;
}

.dashboard-option-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.dashboard-option-icon-audit {
    color: #1d4ed8;
    background: #dbeafe;
}

.dashboard-option-icon-charts {
    color: #166534;
    background: #dcfce7;
}

.dashboard-option-icon-upload {
    color: #6d28d9;
    background: #ede9fe;
}

.dashboard-option-card-wide {
    grid-column: 1 / -1;
    min-height: 160px;
}

.dashboard-option-copy {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.dashboard-option-copy strong {
    color: #172554;
    font-size: 1.5rem;
}

.dashboard-option-copy span {
    color: #475569;
    line-height: 1.6;
}

.dashboard-option-arrow {
    color: #1d4ed8;
    font-size: 2rem;
    font-weight: 700;
}

.document-upload-card {
    color: #172554;
    background: #f8fafc;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.document-upload-limit {
    align-self: flex-start;
    padding: .45rem .75rem;
    color: #5b21b6;
    font-size: .8rem;
    font-weight: 700;
    background: #ede9fe;
    border: 1px solid #c4b5fd;
    border-radius: 999px;
    white-space: nowrap;
}

.document-upload-dropzone {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .55rem;
    padding: 2rem;
    color: #334155;
    text-align: center;
    background: #fff;
    border: 2px dashed #93c5fd;
    border-radius: 16px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.document-upload-dropzone:hover,
.document-upload-dropzone:focus-within {
    background: #eff6ff;
    border-color: #2563eb;
}

.document-upload-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.document-upload-symbol {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 15px;
}

.document-upload-symbol svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.document-upload-dropzone strong {
    color: #172554;
    font-size: 1.05rem;
}

.document-upload-dropzone > span:last-of-type {
    color: #64748b;
    font-size: .88rem;
}

.document-upload-hash {
    color: #5b21b6;
    font-size: .76rem;
}

.dashboard-stat-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
}

.dashboard-stat-card span {
    color: #475569;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-stat-card strong {
    color: #172554;
    font-size: 2rem;
}

.dashboard-log-card {
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.dashboard-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
}

.dashboard-count {
    color: #1e3a8a;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 999px;
    padding: .4rem .75rem;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-table th {
    color: #334155;
    background: #eef2f7;
    border-bottom-color: #94a3b8;
    font-size: .76rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-table td {
    color: #1e293b;
    border-color: #e2e8f0;
    font-size: .86rem;
    vertical-align: middle;
}

.audit-badge,
.audit-user-chip {
    display: inline-block;
    color: #1e293b;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: .25rem .55rem;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.audit-created,
.audit-finished {
    color: #14532d;
    background: #bbf7d0;
    border-color: #4ade80;
}

.audit-edited,
.audit-progress {
    color: #1e3a8a;
    background: #dbeafe;
    border-color: #93c5fd;
}

.audit-deleted {
    color: #7f1d1d;
    background: #fee2e2;
    border-color: #fca5a5;
}

.audit-not-started {
    color: #78350f;
    background: #fef3c7;
    border-color: #fcd34d;
}

.audit-user-chip {
    display: block;
    width: fit-content;
    margin-bottom: .25rem;
    color: #334155;
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.project-chart-card {
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.project-state-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.project-state-donut {
    --finished-end: 0%;
    --progress-end: 0%;
    position: relative;
    display: grid;
    flex: 0 0 190px;
    width: 190px;
    height: 190px;
    place-content: center;
    color: #172554;
    background: conic-gradient(
        #16a34a 0 var(--finished-end),
        #2563eb var(--finished-end) var(--progress-end),
        #f59e0b var(--progress-end) 100%);
    border-radius: 50%;
}

.project-state-donut::before {
    position: absolute;
    inset: 24px;
    content: "";
    background: #f8fafc;
    border-radius: 50%;
}

.project-state-donut span,
.project-state-donut small {
    position: relative;
    z-index: 1;
    text-align: center;
}

.project-state-donut span {
    font-size: 2rem;
    font-weight: 800;
}

.project-state-donut small {
    color: #475569;
}

.project-state-legend {
    display: flex;
    min-width: 170px;
    flex-direction: column;
    gap: .9rem;
}

.project-state-legend div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .6rem;
    color: #334155;
}

.project-state-legend strong {
    color: #172554;
}

.state-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.state-finished { background: #16a34a; }
.state-progress { background: #2563eb; }
.state-pending { background: #f59e0b; }

.document-summary-chart {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.document-summary-row > div:first-child,
.project-progress-value {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .45rem;
    color: #475569;
}

.document-summary-row strong,
.project-progress-value strong {
    color: #172554;
}

.document-summary-track,
.project-progress-track {
    overflow: hidden;
    height: 14px;
    background: #e2e8f0;
    border-radius: 999px;
}

.document-summary-track span,
.project-progress-track span {
    display: block;
    min-width: 0;
    height: 100%;
    border-radius: inherit;
}

.summary-versions { background: #7c3aed; }
.summary-documents { background: #2563eb; }
.summary-completed,
.project-progress-track span { background: #16a34a; }

.project-progress-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-progress-item {
    padding: 1.25rem;
    background: #eef2f7;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
}

.project-progress-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-progress-heading strong,
.project-progress-heading small {
    display: block;
}

.project-progress-heading strong {
    color: #172554;
    font-size: 1.05rem;
}

.project-progress-heading small {
    margin-top: .2rem;
    color: #64748b;
}

.project-version-count {
    padding: .35rem .65rem;
    color: #5b21b6;
    font-size: .78rem;
    font-weight: 700;
    background: #ede9fe;
    border: 1px solid #c4b5fd;
    border-radius: 999px;
    white-space: nowrap;
}

.project-version-progress-list {
    display: grid;
    gap: .85rem;
}

.version-progress-item {
    padding: 1rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #7c3aed;
    border-radius: 12px;
}

.version-progress-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}

.version-progress-heading strong,
.version-progress-heading small {
    display: block;
}

.version-progress-heading strong {
    color: #312e81;
}

.version-progress-heading small {
    margin-top: .15rem;
    color: #64748b;
    font-size: .75rem;
}

.project-progress-track {
    height: 16px;
}

.project-progress-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin-top: .8rem;
    color: #475569;
    font-size: .82rem;
}

.project-progress-metrics strong {
    color: #172554;
}

.project-progress-footer {
    padding-top: .9rem;
    border-top: 1px solid #cbd5e1;
}

@media (max-width: 767.98px) {
    .dashboard-card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-option-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-option-card {
        grid-template-columns: auto 1fr;
        min-height: 0;
        padding: 1.4rem;
    }

    .dashboard-option-arrow {
        display: none;
    }

    .project-state-chart {
        align-items: stretch;
        flex-direction: column;
    }

    .project-state-donut {
        align-self: center;
    }
}

.wizard-wrap {
    max-width: 1680px;
}

.step-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(17, 1fr);
    gap: .75rem;
}

.step-track::before {
    position: absolute;
    top: 17px;
    right: calc(50% / var(--step-count, 17));
    left: calc(50% / var(--step-count, 17));
    z-index: 0;
    height: 2px;
    content: "";
    background: #e4e7ec;
}

.step-item {
    position: relative;
    z-index: 1;
    color: #98a2b3;
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
}

.step-number {
    display: grid;
    width: 36px;
    height: 36px;
    margin: 0 auto .5rem;
    place-items: center;
    color: #667085;
    font: inherit;
    background: #fff;
    border: 2px solid #d0d5dd;
    border-radius: 50%;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.step-number:hover,
.step-number:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(37, 99, 235, .18);
}

.step-number:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .22);
    outline-offset: 2px;
}

.step-item.active,
.step-item.completed {
    color: var(--app-blue-dark);
}

.step-item.active .step-number,
.step-item.completed .step-number {
    color: #fff;
    background: var(--app-blue);
    border-color: var(--app-blue);
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fade-in .2s ease;
}

.save-state {
    color: var(--app-muted);
    font-size: .82rem;
}

.as-is-table-wrap {
    border: 1px solid #d0d5dd;
    border-radius: 12px;
}

.as-is-heading {
    min-width: 0;
}

.as-is-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1.25rem;
}

.as-is-actions {
    justify-self: end;
    flex-wrap: nowrap !important;
}

.as-is-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
}

.as-is-table {
    min-width: 1080px;
}

.as-is-table thead th {
    padding: .8rem .65rem;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
    background: #9f1239;
    border-color: #701a35;
    white-space: nowrap;
}

.as-is-table thead th:first-child {
    border-top-left-radius: 11px;
}

.as-is-table thead th:last-child {
    border-top-right-radius: 11px;
}

.r0101-session-data-table thead th {
    padding: .65rem;
    color: #fff;
    font-weight: 700;
    background: #9f1239;
    border-color: #701a35;
}

.r0101-session-data-table thead th:first-child {
    border-top-left-radius: 11px;
}

.r0101-session-data-table thead th:last-child {
    border-top-right-radius: 11px;
}

.r0101-participants-table thead th {
    text-align: left;
    white-space: normal;
}

.r0101-participants-table thead th:last-child {
    text-align: center;
}

.r0101-needs-requirements-table {
    min-width: 1250px;
}

.r0101-needs-requirements-table thead th {
    text-align: left;
    white-space: normal;
}

.r0101-needs-requirements-table thead th:first-child,
.r0101-needs-requirements-table thead th:last-child {
    text-align: center;
}

.r0101-needs-requirements-table .r0101-id-column {
    width: 90px;
}

.r0101-needs-requirements-table th:nth-child(2) {
    width: 22%;
}

.r0101-needs-requirements-table th:nth-child(6),
.r0101-needs-requirements-table th:nth-child(7) {
    width: 18%;
}

.r0101-business-rules-table {
    min-width: 1150px;
}

.r0101-business-rules-table thead th {
    text-align: left;
    white-space: normal;
}

.r0101-business-rules-table thead th:first-child,
.r0101-business-rules-table thead th:last-child {
    text-align: center;
}

.r0101-business-rules-table .r0101-id-column {
    width: 90px;
}

.r0101-business-rules-table th:nth-child(2),
.r0101-business-rules-table th:nth-child(4),
.r0101-business-rules-table th:nth-child(5) {
    width: 20%;
}

.r0101-process-actors-table {
    min-width: 1300px;
}

.r0101-process-actors-table thead th {
    text-align: left;
    white-space: normal;
}

.r0101-process-actors-table thead th:first-child,
.r0101-process-actors-table thead th:last-child {
    text-align: center;
}

.r0101-process-actors-table .r0101-id-column {
    width: 90px;
}

.r0101-process-actors-table th:nth-child(2),
.r0101-process-actors-table th:nth-child(5) {
    width: 22%;
}

.r0101-standard-data-table {
    min-width: 1050px;
}

.r0101-standard-data-table thead th {
    text-align: left;
    white-space: normal;
}

.r0101-standard-data-table thead th:first-child,
.r0101-standard-data-table thead th:last-child {
    text-align: center;
}

.r0101-standard-data-table .r0101-id-column {
    width: 90px;
}

.r0101-open-issues-table th:nth-child(2),
.r0101-open-issues-table th:nth-child(5),
.r0101-agreements-table th:nth-child(2),
.r0101-agreements-table th:nth-child(5) {
    width: 24%;
}

.r0101-annexes-table th:nth-child(2),
.r0101-annexes-table th:nth-child(3) {
    width: 27%;
}

.r0101-validation-table {
    min-width: 900px;
}

.r0101-validation-table th:nth-child(4) {
    width: 27%;
}

.r0101-context-process-table {
    min-width: 760px;
}

.r0101-context-process-table th:nth-child(2),
.r0101-context-process-table th:nth-child(3) {
    width: 46%;
}

.as-is-table td {
    padding: .55rem;
    background: #fff;
    border-color: #e4e7ec;
}

.as-is-table .form-control {
    min-height: 42px;
    min-width: 145px;
    font-size: .86rem;
}

.as-is-table .step-column {
    width: 64px;
}

.as-is-table .action-column {
    width: 58px;
}

.improvement-table {
    min-width: 1120px;
}

.improvement-table .problem-id-column {
    width: 92px;
}

.improvement-table .priority-column {
    width: 145px;
}

.improvement-id {
    color: #881337;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.to-be-table {
    min-width: 1050px;
    table-layout: fixed;
}

.to-be-table td {
    vertical-align: top;
}

.to-be-table .form-control {
    min-height: 76px;
}

.to-be-current-process {
    min-height: 76px;
    padding: .75rem;
    color: #475467;
    font-size: .88rem;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    white-space: pre-wrap;
}

.included-scope-table {
    min-width: 1120px;
    table-layout: fixed;
}

.included-scope-table .scope-id-column {
    width: 95px;
}

.included-scope-table td {
    vertical-align: top;
}

.excluded-scope-table {
    min-width: 1000px;
    table-layout: fixed;
}

.excluded-scope-table .scope-id-column {
    width: 95px;
}

.excluded-scope-table td {
    vertical-align: top;
}

.deliverables-table {
    min-width: 1250px;
    table-layout: fixed;
}

.deliverables-table .deliverable-id-column {
    width: 92px;
}

.deliverables-table .format-column {
    width: 170px;
}

.deliverables-table .date-column {
    width: 175px;
}

.deliverables-table td {
    vertical-align: top;
}

.deliverables-table .form-control {
    width: 100%;
    min-width: 0;
}

.deliverables-table textarea.form-control {
    min-height: 76px;
}

.assumptions-table {
    min-width: 1000px;
    table-layout: fixed;
}

.assumptions-table .assumption-type-column {
    width: 190px;
}

.assumptions-table td {
    vertical-align: top;
}

.assumptions-table textarea.form-control {
    min-height: 76px;
}

.stakeholders-table {
    min-width: 1150px;
    table-layout: fixed;
}

.stakeholders-table td {
    vertical-align: top;
}

.stakeholders-table input.form-control {
    width: 100%;
    min-width: 0;
    min-height: 42px;
}

.traceability-table {
    min-width: 1150px;
    table-layout: fixed;
}

.traceability-table .traceability-status-column {
    width: 150px;
}

.traceability-table td {
    vertical-align: top;
}

.traceability-table input.form-control {
    width: 100%;
    min-width: 0;
    min-height: 42px;
}

.scope-approval-table {
    min-width: 780px;
    table-layout: fixed;
}

.scope-approval-table .decision-column {
    width: 210px;
}

.scope-approval-table td {
    vertical-align: top;
}

.scope-approval-table .form-control,
.scope-approval-table .form-select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
}

.review-panel {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
}

.documenter-final-review {
    display: grid;
    gap: 1.25rem;
}

.documenter-status-card,
.documenter-download-area {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #d0d5dd;
    border-radius: 16px;
}

.documenter-status-icon {
    display: inline-grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: #2563eb;
    border-radius: 15px;
}

.documenter-project-status-badge {
    padding: .45rem .8rem;
    color: #92400e;
    font-size: .8rem;
    font-weight: 800;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    white-space: nowrap;
}

.documenter-project-status-badge.is-progress {
    color: #1e40af;
    background: #dbeafe;
    border-color: #93c5fd;
}

.documenter-project-status-badge.is-finished {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}

.documenter-download-area {
    justify-content: space-between;
    background: #fff;
}

.documenter-download-area .btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    white-space: nowrap;
}

.documenter-completed-documents {
    display: grid;
    gap: .75rem;
}

.documenter-completed-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
}

.documenter-completed-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    color: #185abd;
    background: #e8f1ff;
    border-radius: 10px;
}

.documenter-completed-empty {
    display: grid;
    gap: .25rem;
    padding: 1.25rem;
    color: #667085;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #b8c2d1;
    border-radius: 12px;
}

.document-execution-icon {
    color: #7c3aed;
    background: #ede9fe;
}

.p0102-step-track {
    width: 100%;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: clamp(.2rem, .6vw, .75rem);
    overflow-x: visible;
    padding-bottom: 0;
}

.p0102-step-track .step-item {
    min-width: 0;
    max-width: none;
}

.p0102-step-track .step-label {
    display: block;
    min-width: 0;
    font-size: clamp(.68rem, .74vw, .8rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.p0102-step-track .step-number {
    width: clamp(30px, 2.2vw, 36px);
    height: clamp(30px, 2.2vw, 36px);
}

.p0102-inherited-panel {
    padding: 1.25rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
}

.p0102-inherited-panel textarea[readonly] {
    color: #475467;
    background: rgba(255, 255, 255, .8);
}

.p0102-copy-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    font-weight: 800;
    background: #16a34a;
    border-radius: 10px;
}

.p0102-phase-list {
    display: grid;
    gap: 1rem;
}

.p0102-phase-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
}

.p0102-phase-card h3 {
    margin: 0;
}

.p0102-wbs-table-wrap {
    border: 1px solid #7f1d35;
    border-radius: 10px;
}

.p0102-wbs-table {
    min-width: 1120px;
}

.p0102-data-table {
    min-width: 850px;
}

.p0102-wbs-table thead th {
    padding: .75rem;
    color: #fff;
    font-weight: 800;
    vertical-align: middle;
    background: #a61e44;
    border-right: 1px solid #641126;
    border-bottom: 1px solid #641126;
}

.p0102-wbs-table thead th:last-child {
    border-right: 0;
}

.p0102-wbs-table td {
    min-width: 150px;
    padding: .55rem;
    background: #fff;
    border-right: 1px solid #d0d5dd;
    border-bottom: 1px solid #d0d5dd;
}

.p0102-wbs-table .p0102-wbs-id-column {
    width: 135px;
    min-width: 135px;
}

.p0102-data-table .p0102-small-column {
    width: 100px;
    min-width: 100px;
}

.p0102-wbs-table [data-wbs-field="edtId"],
.p0102-wbs-table [data-list-field="riskId"] {
    background-color: #f2f4f7;
    color: #475467;
    cursor: not-allowed;
}

.p0102-wbs-table td:last-child,
.p0102-wbs-table .p0102-wbs-actions {
    width: 52px;
    min-width: 52px;
    border-right: 0;
}

.p0102-wbs-table tbody tr:last-child td {
    border-bottom: 0;
}

.p0102-wbs-table .form-control {
    min-height: 42px;
}

.p0102-remove-wbs {
    display: inline-grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    color: #b42318;
    background: #fff;
    border: 1px solid #fda29b;
    border-radius: 8px;
}

.p0102-remove-wbs:hover {
    color: #fff;
    background: #b42318;
}

.p0102-detail-textarea {
    min-height: 260px;
    resize: vertical;
}

.p0103-step-track {
    grid-template-columns: repeat(9, minmax(125px, 1fr));
}

.p0103-table {
    min-width: var(--p0103-table-min-width, 850px);
}

.p0103-table td {
    min-width: 175px;
}

.p0103-table .p0103-id-column {
    width: 95px;
    min-width: 95px;
}

.p0103-table .p0103-actions-column {
    width: 58px;
    min-width: 58px;
}

.p0103-table input.form-control {
    min-width: 145px;
}

@media (max-width: 575.98px) {
    #p0103Form .card-footer .d-flex {
        flex-wrap: wrap;
    }

    #p0103Form .card-footer nav {
        order: 3;
        width: 100%;
    }

    #p0103Pagination {
        justify-content: center;
    }
}


@media (max-width: 767.98px) {
    .documenter-status-card,
    .documenter-download-area {
        align-items: flex-start;
        flex-direction: column;
    }

    .documenter-download-area .btn {
        width: 100%;
        justify-content: center;
    }

    .documenter-completed-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

.review-panel-header {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e4e7ec;
}

.review-panel-warning {
    color: #b42318;
    background: #fef3f2;
    border-bottom-color: #fda29b;
}

.review-panel-warning .review-panel-icon {
    color: #fff;
    background: #d92d20;
    border-color: #d92d20;
}

.review-panel-warning .review-count {
    color: #b42318;
    background: #fff;
    border-color: #fda29b;
}

.review-panel-spelling {
    color: #5b21b6;
    background: #faf5ff;
}

.review-panel-success {
    color: #027a48;
    background: #ecfdf3;
    border-bottom-color: #6ce9a6;
}

.review-panel-success .review-panel-icon {
    color: #fff;
    background: #039855;
    border-color: #039855;
}

.review-panel-success .review-count {
    color: #027a48;
    background: #fff;
    border-color: #6ce9a6;
}

.review-panel-ignored {
    color: #92400e;
    background: #fffbeb;
    border-bottom-color: #fbbf24;
}

.review-panel-ignored .review-panel-icon {
    color: #fff;
    background: #f59e0b;
    border-color: #f59e0b;
}

.review-panel-ignored .review-count {
    color: #92400e;
    background: #fff;
    border-color: #fbbf24;
}

.review-panel-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    font-weight: 800;
    background: rgba(255, 255, 255, .8);
    border: 1px solid currentColor;
    border-radius: 12px;
}

.review-count {
    display: inline-grid;
    min-width: 34px;
    height: 34px;
    padding-inline: .5rem;
    place-items: center;
    color: #344054;
    font-weight: 800;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
}

.review-list {
    max-height: 430px;
    overflow-y: auto;
}

.review-item {
    padding: .9rem 1.15rem;
    border-bottom: 1px solid #f2f4f7;
}

.review-item-action {
    position: relative;
    display: block;
    width: 100%;
    padding-right: 3rem;
    color: inherit;
    text-align: left;
    background: #fff;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    cursor: pointer;
    transition: background-color .15s ease;
}

.review-item-action::after {
    position: absolute;
    top: 50%;
    right: 1.15rem;
    color: #98a2b3;
    font-size: 1.4rem;
    line-height: 1;
    content: '\203A';
    transform: translateY(-50%);
}

.review-item-action:hover {
    background: #f8fafc;
}

.review-item-action:focus-visible {
    z-index: 1;
    outline: 3px solid rgba(37, 99, 235, .25);
    outline-offset: -3px;
}

.review-spelling-item::after {
    top: 1.7rem;
    pointer-events: none;
}

.review-spelling-item.review-item-expanded::after {
    transform: translateY(-50%) rotate(90deg);
}

.review-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .85rem;
}

.review-spelling-summary {
    display: block;
    width: 100%;
    padding: 0;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
}

.review-spelling-summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25);
    outline-offset: 4px;
    border-radius: 4px;
}

.review-item-ignored,
.review-item-ignored:hover {
    background: #fffbeb;
    box-shadow: inset 4px 0 #f59e0b;
}

.review-item-ignored .review-section-name,
.review-item-ignored .review-field-name {
    color: #92400e;
}

.review-item:last-child {
    border-bottom: 0;
}

.review-section-name {
    display: block;
    margin-bottom: .2rem;
    color: var(--app-blue-dark);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.review-field-name {
    color: #344054;
    font-weight: 650;
}

.review-suggestion {
    display: block;
    margin-top: .25rem;
    color: #667085;
    font-size: .82rem;
}

.review-empty-state {
    padding: 2.5rem 1.25rem;
    color: #667085;
    text-align: center;
}

@media (max-width: 1399.98px) {
    .step-label {
        display: none;
    }
}

.included-scope-table input.form-control,
.excluded-scope-table input.form-control,
.deliverables-table input.form-control,
.assumptions-table input.form-control {
    min-height: 42px;
}

.as-is-step-number {
    color: #881337;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.remove-as-is-step {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 9px;
}

.remove-as-is-step:hover,
.remove-as-is-step:focus {
    color: #fff;
    background: #d92d20;
    border-color: #d92d20;
}

.flow-diagram-preview {
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
}

.flow-diagram-preview-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
    color: #1d2939;
    background: transparent;
    border: 0;
}

.flow-diagram-preview-toggle:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .2);
    outline-offset: 5px;
    border-radius: 6px;
}

.preview-chevron {
    transition: transform .2s ease;
}

.flow-diagram-preview-toggle[aria-expanded="true"] .preview-chevron {
    transform: rotate(180deg);
}

.flow-diagram-preview img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
}

.diagram-format-label {
    color: #344054 !important;
    background: #f2f4f7 !important;
    border: 1px solid #d0d5dd;
}

.p0103-help-button {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    padding: 0;
    place-items: center;
    border: 1px solid #2563eb;
    border-radius: 50%;
    color: #174ea6;
    background: #eff6ff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.p0103-help-button:hover,
.p0103-help-button:focus-visible {
    border-color: #174ea6;
    color: #123b7a;
    background: #dbeafe;
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .16);
    outline: 0;
}

.p0103-help-popover {
    --bs-popover-max-width: min(520px, calc(100vw - 2rem));
}

.p0103-help-popover .popover-header,
.p0103-help-popover .popover-body {
    color: #1d2939;
}

.p0103-help-popover .popover-body {
    max-height: min(60vh, 420px);
    overflow-y: auto;
}

.p0103-help-popover li + li {
    margin-top: .55rem;
}

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

.r0101-attachment-panel {
    padding: 1rem;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #f8fafc;
}

.r0101-attachment-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}

.r0101-attachment-loading,
.r0101-attachment-empty {
    grid-column: 1 / -1;
    padding: 1.5rem;
    border: 1px dashed #98a2b3;
    border-radius: 12px;
    text-align: center;
    background: #fff;
}

.r0101-attachment-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .06);
}

.r0101-attachment-preview {
    display: block;
    height: 150px;
    padding: .5rem;
    background: #eef2f7;
}

.r0101-attachment-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.r0101-attachment-details {
    padding: .75rem 3rem .75rem .75rem;
}

.r0101-attachment-delete {
    position: absolute;
    right: .65rem;
    bottom: .7rem;
}

@keyframes review-target-pulse {
    0%, 45% {
        border-color: #f59e0b;
        box-shadow: 0 0 0 .3rem rgba(245, 158, 11, .3);
    }
    100% {
        border-color: #84adff;
        box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .12);
    }
}

@media (max-width: 767.98px) {
    body:not(.login-page) .container {
        padding-right: .85rem;
        padding-left: .85rem;
    }

    .login-card {
        border-radius: 20px;
    }

    .hero-panel {
        border-radius: 16px;
    }

    .step-label {
        display: none;
    }

    .active-version-banner {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .active-version-indicator {
        margin-left: 62px;
    }

    .as-is-header {
        grid-template-columns: 1fr;
    }

    .as-is-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap !important;
    }
}
