﻿.dev-label {
    font-size: 0.75rem;
    color: var(--brand);
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

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

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}

.field-label {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.field-value {
    font-size: 0.94rem;
}

/* â€”â€” App sidebar (Phase 19A: V1-aligned structure) â€”â€” */

.app-sidebar .sidebar-nav--dashboard {
    padding-top: 12px;
}

.app-sidebar[data-sidebar-mode="project"] > .sidebar-mode-toggle {
    margin-top: 12px;
}

.app-sidebar--project-stub > .sidebar-panels {
    padding-top: 12px;
}

.app-sidebar .sidebar-mode-toggle {
    display: flex;
    margin: 0 12px 12px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    gap: 4px;
    flex-shrink: 0;
}

.app-sidebar .sidebar-mode-button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}

.app-sidebar .sidebar-mode-button.active {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.app-sidebar .sidebar-panels {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.app-sidebar .sidebar-panel-content {
    flex: 1;
    min-height: 0;
}

.app-sidebar .sidebar-panel-content[hidden] {
    display: none !important;
}

.app-sidebar .sidebar-panel-content-navigation:not([hidden]) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.app-sidebar .sidebar-panel-content-context:not([hidden]) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

/* Context tab: collapsed step rail (~108px) + guidance column (remainder of 450px sidebar) */
.app-sidebar .sidebar-context-layout {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    min-width: 0;
    width: 100%;
}

.app-sidebar .sidebar-context-rail {
    flex: 0 0 108px;
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 6px 12px;
    border-right: 1px solid #e5e7eb;
    background: #fafafa;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

.app-sidebar .sidebar-context-rail-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    background: transparent;
    border: none;
    box-sizing: border-box;
    min-height: 0;
}

.app-sidebar .sidebar-context-rail-item:hover {
    background: #f1f5f9;
}

.app-sidebar .sidebar-context-rail-item.active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.app-sidebar .sidebar-context-rail-icon.nav-step-icon {
    width: 26px;
    height: 26px;
    margin-top: 0;
    flex-shrink: 0;
}

.app-sidebar .sidebar-context-rail .nav-step-icon--partial::after {
    content: none;
}

.app-sidebar .sidebar-context-rail-label {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    word-break: break-word;
    hyphens: auto;
}

.app-sidebar .sidebar-context-rail-item.active .sidebar-context-rail-label {
    color: #ffffff;
}

.app-sidebar .sidebar-context-rail-item.active .nav-step-icon--complete {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.95);
}

.app-sidebar .sidebar-context-rail-item.active .nav-step-icon--complete::after {
    color: #ffffff;
}

.app-sidebar .sidebar-context-rail-item.active .nav-step-icon--partial {
    background-color: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.95);
}

.app-sidebar .sidebar-context-rail-item.active .nav-step-icon--partial::after {
    content: none;
}

.app-sidebar .sidebar-context-rail-item.active .nav-step-icon--missing {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.65);
}

.app-sidebar .sidebar-context-rail-item.active .nav-step-icon--missing::after {
    background: rgba(255, 255, 255, 0.85);
}

.app-sidebar .sidebar-context-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
}

.app-sidebar .sidebar-context-main .context-intelligence-scroll {
    flex: 1;
    min-height: 0;
    padding: 12px 14px;
}

.app-sidebar .sidebar-context-main .context-panel-input-wrap {
    padding: 10px 12px 12px;
}

@media (max-width: 900px) {
    .app-sidebar .sidebar-context-layout {
        flex-direction: column;

    }
    .app-sidebar .sidebar-context-rail {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 8px 10px;
        gap: 6px;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        -webkit-overflow-scrolling: touch;

    }
    .app-sidebar .sidebar-context-rail-item {
        flex: 0 0 auto;
        min-width: 72px;
        padding: 8px 6px;

    }
    .app-sidebar .sidebar-context-rail-label br {
        display: none;

    }
    .app-sidebar .sidebar-context-rail-label {
        white-space: nowrap;
        font-size: 9px;
}

}
.app-sidebar .sidebar-back {
    display: block;
    padding: 18px 16px;
    text-decoration: none;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.app-sidebar .sidebar-back:hover {
    color: #3b82f6;
}

.app-sidebar .sidebar-section-title {
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.app-sidebar .sidebar-nav {
    display: flex;
    flex-direction: column;
}

.app-sidebar .sidebar-link {
    display: block;
    padding: 18px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
    background: #ffffff;
    color: #1f2937;
}

.app-sidebar .sidebar-link:hover {
    background: #f8fafc;
}

.app-sidebar .sidebar-link.active {
    background: #3b82f6;
    color: #ffffff;
}

.app-sidebar .sidebar-link.active .sidebar-link-subtitle {
    color: #ffffff;
    opacity: 0.92;
}

.app-sidebar .sidebar-link-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.app-sidebar .sidebar-link-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.app-sidebar .sidebar-link-subtitle {
    font-size: 14px;
    color: #64748b;
    line-height: 1.35;
}

.app-sidebar .sidebar-link--disabled {
    cursor: default;
    color: #9ca3af;
    background: #ffffff;
}

.app-sidebar .sidebar-link--disabled .sidebar-link-subtitle {
    color: #9ca3af;
}

.app-sidebar .sidebar-link--disabled .sidebar-link-title {
    color: #9ca3af;
}

/* Step status icons (CSS-only) */
.app-sidebar .nav-step-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-top: 2px;
    position: relative;
    box-sizing: border-box;
    border: 2px solid transparent;
}

.app-sidebar .nav-step-icon--complete {
    background: transparent;
    border-color: transparent;
    background-image: url("../images/check_circle_green.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
}

.app-sidebar .nav-step-icon--complete::after {
    content: none;
}

.app-sidebar .nav-step-icon--partial {
    background: transparent;
    border-color: transparent;
    background-image: url("../images/check_circle_orange.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
}

.app-sidebar .nav-step-icon--partial::after {
    content: none;
}

.app-sidebar .nav-step-icon--missing {
    background: #e5e7eb;
    border-color: #cbd5e1;
}

.app-sidebar .nav-step-icon--missing::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.app-sidebar .sidebar-link.active .nav-step-icon--complete {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.95);
}

.app-sidebar .sidebar-link.active .nav-step-icon--complete::after {
    color: #ffffff;
}

.app-sidebar .sidebar-link.active .nav-step-icon--partial {
    background-color: rgba(255, 255, 255, 0.22);
    border-color: transparent;
}

.app-sidebar .sidebar-link.active .nav-step-icon--partial::after {
    content: none;
}

.app-sidebar .sidebar-link.active .nav-step-icon--missing {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.65);
}

.app-sidebar .sidebar-link.active .nav-step-icon--missing::after {
    background: rgba(255, 255, 255, 0.85);
}

.app-sidebar .context-intelligence-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
}

.app-sidebar .context-panel-placeholder {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.app-sidebar .context-panel-input-wrap {
    flex-shrink: 0;
    padding: 12px 16px 16px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

.app-sidebar .context-panel-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #94a3b8;
    background: #f1f5f9;
}

/* Context tab â€” ExLoop Intelligence (scoped under .app-sidebar) */
.app-sidebar .exloop-context-guidance-state {
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

.app-sidebar .exloop-context-guidance-error {
    color: #b91c1c;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.app-sidebar .exloop-context-guidance-root {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-sidebar .exloop-context-status-card {
    background: #eff6ff;
    color: #6b7280;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.app-sidebar .exloop-context-status-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.app-sidebar .exloop-context-status-message {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    opacity: 0.95;
}

.app-sidebar .exloop-context-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    padding: 12px;
    margin-top: 12px;
}

.app-sidebar .exloop-context-card-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.app-sidebar .exloop-context-card-body {
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}

.app-sidebar .exloop-context-card-body p {
    margin: 0 0 10px;
}

.app-sidebar .exloop-context-card-body p:last-child {
    margin-bottom: 0;
}

.app-sidebar .exloop-copy-brief-row {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.app-sidebar .exloop-copy-brief-success {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

/* Legacy accordion fallback: coaching copy without the blue status card */
.app-sidebar .exloop-context-coach-plain {
    margin: 0 0 12px;
}

.app-sidebar .exloop-context-coach-plain .exloop-context-coach-line {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.45;
    color: #334155;
}

.app-sidebar .exloop-context-coach-plain .exloop-context-coach-line:last-child {
    margin-bottom: 0;
}

.app-sidebar .exloop-context-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #92400e;
}

.app-sidebar .exloop-context-warning p {
    margin: 0;
}

.app-sidebar .exloop-context-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.app-sidebar .exloop-context-accordion-trigger {
    cursor: pointer;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.app-sidebar .exloop-context-accordion-trigger::-webkit-details-marker {
    display: none;
}

.app-sidebar .exloop-context-accordion > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.app-sidebar .exloop-context-accordion[open] > summary::after {
    transform: rotate(45deg);
}

.app-sidebar .exloop-context-accordion-body {
    padding: 0 12px 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
    border-top: 1px solid #f1f5f9;
}

.app-sidebar .exloop-context-accordion-body p {
    margin: 0.5rem 0 0;
}

.app-sidebar .exloop-context-accordion-body p:first-child {
    margin-top: 0.65rem;
}

.app-sidebar .exloop-context-step-list {
    margin: 0.5rem 0 0;
    padding-left: 1.15rem;
}

.app-sidebar .exloop-context-align-before {
    margin-top: 0.75rem;
}

.app-sidebar .exloop-context-align-actions {
    margin: 0.35rem 0 0;
    padding-left: 1.15rem;
}

.app-sidebar .exloop-context-reasoning-summary {
    margin: 0;
}

.app-sidebar .exloop-context-view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.app-sidebar .exloop-context-view-tab {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    font-family: inherit;
}

.app-sidebar .exloop-context-view-tab.is-active {
    background: #eff6ff;
    border-color: #60a5fa;
    color: #1d4ed8;
}

.app-sidebar .exloop-context-view-count {
    display: inline-block;
    min-width: 18px;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.app-sidebar .exloop-context-view-panel {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 10px 12px;
}

.app-sidebar .exloop-context-view-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.app-sidebar .exloop-context-view-body {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}

.app-sidebar .exloop-context-view-body p {
    margin: 0.5rem 0 0;
}

.app-sidebar .exloop-context-view-body p:first-child {
    margin-top: 0;
}

.app-sidebar .exloop-context-action-list {
    margin: 0.55rem 0 0;
    padding-left: 1.15rem;
}

.app-breadcrumb {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.app-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.app-breadcrumb a:hover {
    text-decoration: underline;
}

.app-breadcrumb-sep {
    color: #94a3b8;
    padding: 0 0.35rem;
    font-weight: 400;
}

.app-breadcrumb-current {
    color: #334155;
    font-weight: 600;
}

.sidebar-section-label {
    margin: 0.85rem 0 0.35rem;
    padding: 0 0.6rem;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 1rem;
}

.project-header-content {
    display: grid;
    gap: 0.35rem;
}

.project-header-heading-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.project-header-heading-row h1 {
    margin: 0;
}

.readiness-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.readiness-title-row .project-readiness-card-title {
    margin: 0;
}

.readiness-steps-line {
    margin: 0 0 10px;
    color: #111827;
}

.readiness-progress-bar-container {
    width: 100%;
    height: 16px;
    background: #d1d5db;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.readiness-progress-bar {
    height: 100%;
    background: #2563eb;
    border-radius: 9999px;
}

.readiness-percent-ready {
    margin: 0 0 12px;
}

.readiness-summary-line {
    margin: 0.35rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.problem-statement-body {
    white-space: pre-wrap;
    margin: 0;
}

.project-header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
    color: #ffffff;
}

.btn-primary:focus-visible {
    outline-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
    background: #ffffff;
    border-color: #d1d5db;
    color: #1e293b;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #1e293b;
}

.btn-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2);
}

.btn-success,
.btn-resolve {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.btn-success:hover,
.btn-resolve:hover {
    background: #d1fae5;
    border-color: #4ade80;
    color: #166534;
}

.btn-success:focus-visible,
.btn-resolve:focus-visible {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.btn-danger-outline {
    background: #ffffff;
    border-color: #fca5a5;
    color: #dc2626;
}

.btn-danger-outline:hover {
    background: #fef2f2;
    border-color: #f87171;
    color: #dc2626;
}

.btn-danger-outline:focus-visible {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background: #991b1b;
    border-color: #991b1b;
    color: #ffffff;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.6rem;
}

.summary-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fcfdff;
    padding: 0.75rem;
}

.summary-label {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
}

.summary-value {
    font-size: 1.15rem;
    font-weight: 600;
}

.badge,
.status-badge,
.badge-status,
.chip {
    display: inline-block;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.78rem;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.badge-neutral,
.badge-status,
.status-badge {
    color: #334155;
    background: var(--neutral-soft);
}

.badge-success {
    color: #166534;
    background: var(--success-soft);
    border-color: #86efac;
}

.badge-warning {
    color: var(--warning);
    background: var(--warning-soft);
    border-color: #fdba74;
}

.badge-danger {
    color: #991b1b;
    background: var(--danger-soft);
    border-color: #fecaca;
}

.chip {
    background: #ffffff;
    color: #334155;
}

/* Global information message (icon + body + optional dismiss) */
.info-message,
.rte-helper.info-message {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0.875rem 1rem;
    background: var(--brand-soft);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    color: #1e3a5f;
    font-size: 0.875rem;
    line-height: 1.55;
}

.info-message::after,
.rte-helper.info-message::after {
    content: none;
}

.info-message-icon {
    flex-shrink: 0;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.05rem;
}

.info-message-icon img {
    display: block;
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

.info-message-body {
    flex: 1 1 auto;
    min-width: 0;
}

.info-message-body p {
    margin: 0;
    line-height: 1.55;
}

.info-message-body p + p {
    margin-top: 0.25rem;
}

.info-message-dismiss {
    appearance: none;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin: -0.15rem -0.25rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    line-height: 0;
}

.info-message-dismiss img {
    display: block;
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.info-message-dismiss:hover {
    background: rgba(37, 99, 235, 0.08);
}

.info-message-dismiss:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.info-message[hidden] {
    display: none !important;
}

.projects-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.data-table,
.projects-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table {
    min-width: 980px;
}

.data-table th,
.data-table td,
.projects-table th,
.projects-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0.65rem;
    text-align: left;
    vertical-align: top;
    font-size: 0.88rem;
}

.data-table th,
.projects-table th {
    background: #f8fafc;
    color: #334155;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.data-table tr:last-child td,
.projects-table tr:last-child td {
    border-bottom: 0;
}

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

.project-row-clickable:hover td {
    background: #f8fafc;
}

.project-row-clickable:focus td,
.project-row-clickable:focus-visible td {
    outline: 2px solid var(--focus-ring);
    outline-offset: -2px;
    background: #eff6ff;
}

.project-cell-main {
    font-weight: 600;
}

.project-cell-sub {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.created-projects-table-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.created-projects-table-link:hover {
    text-decoration: underline;
}

.org-report-created-projects-table {
    margin-bottom: 0.25rem;
}

.org-report-project-card {
    scroll-margin-top: 1.25rem;
}

html:has(.org-report-page) {
    scroll-behavior: smooth;
}

.project-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
}

.project-context-fields {
    display: grid;
    gap: 0.75rem;
}

.readiness-check-list {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.readiness-check-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fcfdff;
}

.data-table .row-clickable,
.project-row-clickable {
    cursor: pointer;
}

.data-table .row-clickable:hover td,
.project-row-clickable:hover td {
    background: #f8fafc;
}

.data-table .row-clickable:focus td,
.data-table .row-clickable:focus-visible td {
    outline: 2px solid var(--focus-ring);
    outline-offset: -2px;
    background: #eff6ff;
}

.error-text {
    color: var(--danger);
    margin-bottom: 0.5rem;
}

/* Shared ExLoop form pattern (SMART Metrics, timeline, and other inline editors) */
.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
    width: 100%;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea.form-control {
    min-height: 88px;
    resize: vertical;
    line-height: 1.5;
}

.form-control::placeholder,
input.form-control::placeholder,
textarea.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus,
input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.form-control:disabled,
input.form-control:disabled,
select.form-control:disabled,
textarea.form-control:disabled {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.form-control[aria-invalid="true"],
input.form-control[aria-invalid="true"],
select.form-control[aria-invalid="true"],
textarea.form-control[aria-invalid="true"] {
    border-color: var(--danger);
}

.form-control[aria-invalid="true"]:focus,
input.form-control[aria-invalid="true"]:focus,
select.form-control[aria-invalid="true"]:focus,
textarea.form-control[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    width: 100%;
}

.sm-inline-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.sm-inline-form .sm-field-error:not([hidden]) {
    margin: 0.55rem 0 0;
}

.sm-inline-form .form-actions {
    margin-top: 0.9rem;
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

#toast-area {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    gap: 0.5rem;
    max-width: 340px;
}

.toast {
    border: 1px solid var(--border);
    background: #fff;
    border-left: 4px solid #64748b;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--danger);
}

@media (max-width: 1200px) {
    .summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
}

}
@media (max-width: 720px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

    }
    .project-overview-grid {
        grid-template-columns: 1fr;

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

    }
    .project-header-actions {
        justify-content: flex-start;
}

}
.bg-empty-state {
    max-width: 32rem;
    margin: calc(2rem + 88px) auto 2rem;
    text-align: center;
}

.bg-empty-heading {
    margin: 0.5rem 0 0.35rem;
    font-size: 1.15rem;
}

.bg-empty-supporting {
    margin: 0 auto;
    max-width: 26rem;
    line-height: 1.45;
}

.bg-mascot {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
}

.bg-goals-list {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.bg-goal-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.1rem;
    background: #ffffff;
}

.bg-goal-body {
    margin: 0 0 0.75rem;
    white-space: pre-wrap;
    line-height: 1.45;
}

.bg-metric-summary {
    margin: 0;
    padding: 0.55rem 0.75rem;
    background: var(--warning-soft);
    border: 1px solid #fdba74;
    border-radius: 6px;
    font-size: 0.9rem;
}

.bg-metric-summary a {
    font-weight: 600;
    color: var(--warning);
}

.bg-breadcrumb {
    margin: 0 0 0.5rem;
}

.bg-goal-textarea {
    width: 100%;
    max-width: 42rem;
    box-sizing: border-box;
    font: inherit;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    resize: vertical;
    min-height: 6rem;
}

.bg-goal-helper {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
}

.bg-outcome-section {
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
    max-width: 100%;
}

.bg-outcome-section-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text, #111827);
}

.bg-outcome-intro {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    line-height: 1.45;
    max-width: 42rem;
}

.bg-outcome-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    gap: 0.75rem;
    width: 100%;
    max-width: 56rem;
}

.bg-outcome-card {
    position: relative;
    display: block;
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface, #fff);
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1.45;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.bg-outcome-card:hover {
    border-color: #94a3b8;
}

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

.bg-outcome-card:has(.bg-outcome-card-input:checked) {
    border-color: var(--primary, #2563eb);
    background: rgba(37, 99, 235, 0.06);
    box-shadow: 0 0 0 1px var(--primary, #2563eb);
}

/* Legacy outcome cards: green selected state inside shared rte form pages */
#business-goals-add-main .rte-phase-card.bg-outcome-card:has(.bg-outcome-card-input:checked),
#research-tasks-add-main .rte-phase-card.bg-outcome-card:has(.bg-outcome-card-input:checked),
#research-task-edit-main .rte-phase-card.bg-outcome-card:has(.bg-outcome-card-input:checked) {
    border-color: #22c55e;
    background: #ecfdf5;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15);
}

.bg-outcome-card:has(.bg-outcome-card-input:focus-visible) {
    outline: 2px solid var(--primary, #2563eb);
    outline-offset: 2px;
}

.bg-outcome-card-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: var(--text, #111827);
}

.bg-outcome-card-explanation {
    margin: 0 0 0.45rem;
    font-size: 0.86rem;
    color: var(--text-muted, #475569);
}

.bg-outcome-card-example,
.bg-outcome-card-best {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    color: var(--text-muted, #475569);
}

.bg-outcome-card-example:last-child,
.bg-outcome-card-best:last-child {
    margin-bottom: 0;
}

.bg-outcome-card-kicker {
    font-weight: 600;
    color: var(--text, #334155);
}

.bg-outcome-validation {
    margin: 0.6rem 0 0;
    font-size: 0.9rem;
}

.sm-back-link {
    margin: 0 0 0.5rem;
}

.sm-metrics-list {
    display: grid;
    gap: 1rem;
}

#smart-metrics-main > .project-header {
    margin-bottom: 0.35rem;
}

#smart-metrics-main #sm-starter-guidance {
    margin: 0.85rem 0 1.15rem;
}

#smart-metrics-main #sm-list:not([hidden]) {
    margin-top: 0.15rem;
}

.sm-goal-tabs-shell {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sm-goal-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sm-goal-tab {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    margin: 0 -1px 0 0;
    padding: 0.55rem 1rem 0.5rem;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: #f3f4f6;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    color: #6b7280;
    text-align: left;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.sm-goal-tab:hover:not(.is-active) {
    background: #eceff3;
    color: #4b5563;
}

.sm-goal-tab:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    z-index: 3;
}

.sm-goal-tab.is-active {
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    border-color: var(--border);
    border-bottom: 1px solid #ffffff;
    margin-bottom: -1px;
    padding-bottom: calc(0.5rem + 1px);
    z-index: 2;
}

.sm-goal-tab-label {
    display: block;
    line-height: 1.3;
}

.sm-goal-panel {
    display: grid;
    gap: 1rem;
}

.sm-goal-panel--connected {
    margin-top: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 0 10px 10px 10px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.sm-goal-summary-card {
    display: grid;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.sm-goal-summary-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1.15rem 1.25rem 0.95rem;
}

.sm-goal-summary-copy {
    min-width: 0;
    flex: 1 1 16rem;
}

.sm-goal-summary-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.sm-goal-statement {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
}

.sm-goal-summary-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.8rem 1.25rem;
    background: #fbfbfc;
    border-top: 1px solid var(--border);
}

.chip.sm-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #5b6472;
    background: #ffffff;
    border: 1px solid var(--border);
    white-space: normal;
}

.sm-stat-chip-text b {
    color: var(--text);
    font-weight: 700;
}

.sm-stat-chip-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #8a93a1;
    flex-shrink: 0;
}

.sm-m-read-desc {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.sm-metric-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.sm-goal-metrics-accordion {
    display: grid;
    gap: 0.85rem;
    padding: 1.15rem 1.25rem 0.25rem;
}

.sm-metric-accordion {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: none;
}

.sm-metric-accordion.is-expanded {
    padding-bottom: 0;
}

.sm-metric-accordion-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
    align-items: start;
    padding: 1rem 1.05rem;
}

.sm-metric-accordion-toggle {
    appearance: none;
    border: 1px solid #d7dbe1;
    border-radius: 6px;
    background: #ffffff;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font: inherit;
    color: #5b6472;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.sm-metric-accordion-toggle:hover {
    background: #f8fafc;
    border-color: #c5cedd;
}

.sm-metric-accordion-toggle::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-top: -0.1rem;
    transition: transform 0.15s ease;
}

.sm-metric-accordion.is-expanded .sm-metric-accordion-toggle::before {
    transform: rotate(45deg);
    margin-top: 0.1rem;
}

.sm-metric-accordion-summary {
    min-width: 0;
}

.sm-metric-accordion-summary .sm-metric-head {
    margin-bottom: 0.4rem;
}

.sm-metric-accordion-summary .sm-metric-head-meta {
    align-items: center;
}

.sm-statement--collapsed {
    margin: 0 0 0.45rem;
    display: block;
    overflow: visible;
}

.sm-metric-quick-summary {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #8a93a1;
}

.sm-missing-source-pill {
    display: inline-block;
    margin-left: 0.15rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 500;
    vertical-align: baseline;
}

.sm-metric-accordion-body {
    padding: 0.95rem 1.05rem 1rem;
    border-top: 1px solid var(--border);
}

.sm-metric-accordion-body .sm-measurements-wrap {
    margin-top: 0;
}

.sm-metric-accordion-body .sm-metric-statement-edit:not([hidden]) {
    margin-bottom: 0.85rem;
}

.sm-metric-accordion-body .sm-linked-pain-points-section {
    margin-top: 1.1rem;
    padding-bottom: 0.25rem;
}

.sm-goal-metrics-empty {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1.5px dashed #d7dbe1;
    border-radius: 8px;
    background: #fafbff;
    font-size: 0.9rem;
}

.sm-metric-card {
    width: 100%;
}

.sm-metric-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.sm-metric-head-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
}

.sm-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.sm-badges .badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
}

.sm-statement {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 0.9rem;
    max-width: 40rem;
}

.sm-v2-missing-source {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    background: #fffbeb;
}

.sm-v2-missing-source-heading {
    margin: 0 0 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.sm-v2-gaps-list {
    margin: 0;
    padding-left: 1.15rem;
}

.sm-v2-gap-item {
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.sm-v2-gap-item:last-child {
    margin-bottom: 0;
}

.sm-v2-gap-why,
.sm-v2-gap-meta {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.sm-v2-gap-kicker {
    font-weight: 600;
}

.sm-badge-v2-indicator,
.sm-badge-v2-source {
    border: 1px solid #cbd5e1;
}

.sm-measurements-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.sm-subsection-title {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}

.sm-measurements-list {
    display: grid;
    gap: 0.85rem;
}

.sm-measurements-empty {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
}

.sm-measurement-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    background: #ffffff;
}

.sm-measurement-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.sm-measurement-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.sm-measurement-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
}

.sm-pv-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.sm-pv {
    min-width: 4.5rem;
}

.sm-pv .sm-m-mini-label {
    margin-bottom: 0.2rem;
}

.sm-pv-value {
    display: block;
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text);
}

.sm-goal-group {
    display: grid;
    gap: 0.75rem;
}

.sm-goal-count {
    margin: 0;
}

.sm-goal-metrics {
    display: grid;
    gap: 0.9rem;
}

.sm-goal-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.sm-goal-group--highlight {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
    border-radius: 8px;
}

.sm-metric-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.sm-m-thead-label {
    font-weight: 600;
    text-align: left;
}

.sm-m-mini-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8a93a1;
    margin-bottom: 0.15rem;
}

.sm-m-read-val {
    font-size: 0.9rem;
    word-break: break-word;
}

.sm-m-read-actions {
    display: flex;
    gap: 0.35rem;
    align-items: flex-start;
    justify-content: flex-end;
    flex-shrink: 0;
}

.sm-icon-btn {
    padding: 6px;
    min-width: 2rem;
    min-height: 2rem;
    width: 2rem;
    height: 2rem;
}

.sm-icon-btn img {
    display: block;
    width: 16px;
    height: 16px;
}

.sm-inline-add-link,
.sm-add-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border: 1.5px dashed #d7dbe1;
    border-radius: 8px;
    background: #fafbff;
    color: var(--brand);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.sm-inline-add-link:hover,
.sm-add-row:hover {
    background: var(--brand-soft);
    border-color: #c4d3f8;
    color: var(--brand-strong);
}

.sm-inline-add-link:focus-visible,
.sm-add-row:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.sm-add-row-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sm-new-metric-slot {
    margin-top: 0.5rem;
    padding: 0 1.25rem 0;
}

.sm-goal-add-metric {
    margin: 0;
    padding: 0.85rem 1.25rem 1.25rem;
}

.sm-measurements-wrap > .sm-inline-add-link,
.sm-measurements-wrap > .sm-add-row {
    margin-top: 0.85rem;
}

.sm-linked-pain-points-section {
    margin-top: 1rem;
}

.sm-linked-pain-points-heading {
    margin: 0 0 0.55rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}

.sm-linked-pain-points-empty {
    margin: 0;
    padding: 0.1rem 0 0.35rem;
    font-style: italic;
    font-size: 0.8125rem;
    color: #8a93a1;
}

.sm-linked-pain-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sm-linked-pain-points-item {
    margin: 0;
}

.sm-linked-pain-point-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f9fafb;
    color: inherit;
    text-decoration: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.sm-linked-pain-point-card:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.sm-linked-pain-point-card:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.sm-linked-pain-point-text {
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.sm-linked-pain-point-status {
    flex-shrink: 0;
    align-self: center;
    white-space: nowrap;
}

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

.sm-m-empty-line {
    margin: 0;
    font-style: italic;
}

.sm-metric-card--create {
    margin-top: 0.35rem;
}

.sm-measurement-create-block {
    padding: 0.5rem 0;
}

.sm-m-create-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-top: 0.45rem;
}

.sm-icon-btn--save {
    border: 1px solid #16a34a;
    color: #15803d;
}

.sm-icon-btn--cancel {
    border: 1px solid #dc2626;
    color: #b91c1c;
}

.sm-metric-accordion.panel {
    padding: 0;
    box-shadow: none;
}

@media (max-width: 720px) {
    .sm-metric-accordion-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .sm-metric-head-actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    .sm-pv-row {
        gap: 0.85rem 1.25rem;
    }

    .sm-measurement-top {
        flex-wrap: wrap;
    }

    .sm-goal-summary-head {
        padding: 1rem;
    }

    .sm-goal-summary-chips,
    .sm-goal-metrics-accordion,
    .sm-goal-add-metric {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #smart-metrics-main {
        overflow-x: hidden;
    }
}

/* Research tasks (Phase 17A) */
.rt-tasks-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.rt-task-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem;
    background: var(--surface);
}

.rt-task-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.rt-task-desc {
    margin: 0 0 0.35rem;
    white-space: pre-wrap;
    font-size: 0.92rem;
}

.rt-task-meta {
    margin: 0;
    font-size: 0.82rem;
}

.rt-add-panel {
    margin-top: 0.25rem;
}

.rta-form-busy {
    pointer-events: none;
    opacity: 0.65;
}

.rta-all-required-intro {
    margin: 0 0 0.75rem;
    max-width: 42rem;
}

.field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
}

.rt-tasks-table {
    min-width: 640px;
    table-layout: fixed;
    width: 100%;
}

.rt-tasks-table th:nth-child(1),
.rt-tasks-table td:nth-child(1) {
    width: 32%;
}

.rt-tasks-table th:nth-child(2),
.rt-tasks-table td:nth-child(2),
.rt-tasks-table th:nth-child(3),
.rt-tasks-table td:nth-child(3) {
    width: 14%;
}

.rt-tasks-table th:nth-child(4),
.rt-tasks-table td:nth-child(4) {
    width: 18%;
}

.rt-tasks-table th:nth-child(5),
.rt-tasks-table td:nth-child(5) {
    width: 22%;
}

.rt-tasks-table .rt-audience-cell {
    word-break: break-word;
}

.rt-tasks-table .rt-platform-tasks-cell {
    max-width: none;
}

.rt-task-row {
    cursor: pointer;
}

.rt-task-row:hover td {
    background: #f8fafc;
}

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

.rt-task-row-link:hover {
    text-decoration: underline;
}

.rt-task-desc-cell {
  max-width: 14rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.rt-platform-tasks-cell {
  max-width: 15rem;
  vertical-align: top;
}

.rt-platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rt-platform-pill {
  display: inline-block;
  padding: 0.12rem 0.42rem;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.rt-platform-pills-empty {
  color: #64748b;
  font-size: 0.8rem;
  font-style: italic;
}

.rta-platform-task-fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem 1rem;
  margin: 0;
}

.rta-platform-task-groups {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 22rem;
  overflow-y: auto;
  padding: 0.35rem 0 0;
}

.rta-platform-task-group-title {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.rta-platform-task-check-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rta-platform-task-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.rta-platform-task-row input {
    margin-top: 0.2rem;
}

.pp-measurement-fieldset {
    margin-top: 0.25rem;
}

.rt-success-banner {
    margin: 0.5rem 0 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.92rem;
}

.rt-severity-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.rt-severity-low {
    background: #ecfdf5;
    color: #065f46;
}

.rt-severity-medium {
    background: #fef9c3;
    color: #854d0e;
}

.rt-severity-high {
    background: #ffedd5;
    color: #9a3412;
}

.rt-severity-critical {
    background: #fee2e2;
    color: #991b1b;
}

/* Pain points (Phase 17B) â€” table row nav mirrors research tasks */
.pp-tasks-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.pp-tasks-table .pp-desc-col {
    width: 60%;
}

.pp-tasks-table .pp-score-col {
    width: 10%;
}

.pp-tasks-table .pp-status-col {
    width: 8%;
}

.pp-tasks-table .pp-date-col {
    width: 12%;
}

.pp-tasks-table th.pp-score-col,
.pp-tasks-table td.pp-score-col,
.pp-tasks-table th.pp-status-col,
.pp-tasks-table td.pp-status-col {
    padding-left: 0.45rem;
    padding-right: 0.4rem;
}

.pp-tasks-table th.pp-date-col,
.pp-tasks-table td.pp-date-col {
    padding-right: 0.5rem;
    white-space: nowrap;
}

.pp-tasks-table th.pp-desc-col,
.pp-tasks-table td.pp-desc-col {
    padding-right: 0.75rem;
}

.pp-platform-tasks-cell {
    max-width: 14rem;
    vertical-align: top;
}

.pp-list-platform-pills {
    flex-wrap: wrap;
}

.pp-view-platform-wrap {
    margin-top: 0.35rem;
}

.pp-legacy-research-list {
    margin: 0.35rem 0 0;
    padding-left: 1.25rem;
}

.pp-task-row {
    cursor: pointer;
}

.pp-task-row--static {
    cursor: default;
}

.pp-task-row:hover td {
    background: #f8fafc;
}

.pp-task-row--static:hover td {
    background: inherit;
}

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

.pp-task-row-link:hover {
    text-decoration: underline;
}

.pp-task-desc-cell {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
    word-break: break-word;
    vertical-align: top;
    line-height: 1.45;
}

.pp-tasks-table td.pp-desc-col,
.pp-tasks-table td.pp-score-col,
.pp-tasks-table td.pp-status-col,
.pp-tasks-table td.pp-date-col {
    vertical-align: top;
}

.pp-success-banner {
    margin: 0.5rem 0 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.92rem;
}

/* Create project (Phase 16B) */
#create-project-main {
    --rte-bg-card: #ffffff;
    --rte-bg-helper: #eff6ff;
    --rte-border-card: #e5e7eb;
    --rte-border-helper: #bedbff;
    --rte-border-active: #1447e6;
    --rte-border-hover: #c7d2fe;
    --rte-color-primary: #1447e6;
    --rte-color-heading: #111827;
    --rte-color-body: #374151;
    --rte-color-muted: #6b7280;
    --rte-color-divider: #e5e7eb;
    --rte-radius-card: 10px;
    --rte-radius-input: 6px;
    --rte-radius-phase: 10px;
    --rte-radius-journey: 8px;
    --rte-input-height: 40px;
    --rte-input-px: 12px;
    --rte-font-label: 0.875rem;
    --rte-font-helper: 0.875rem;
    --rte-font-body: 0.875rem;
    box-sizing: border-box;
    /* Scrollport must stay full-width so the scrollbar sits on the panel edge, not the content column. */
    justify-items: center;
    max-width: none;
    width: 100%;
}

/* Keep page content centred without shrinking the scroll container. */
#create-project-main > * {
    box-sizing: border-box;
    max-width: 1100px;
    width: 100%;
}

#create-project-main .rte-form-subtitle {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 42rem;
}

#create-project-main .rte-card {
    background: var(--rte-bg-card);
    border: 1px solid var(--rte-border-card);
    border-radius: var(--rte-radius-card);
    margin-bottom: 24px;
    padding: 32px;
}

#create-project-main .rte-field-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#create-project-main .rte-field-group,
#create-project-main .create-project-field.rte-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

#create-project-main .field-label,
#create-project-main .rte-label,
#create-project-main fieldset .field-label,
#create-project-main fieldset .rte-label,
#create-project-main legend.field-label,
#create-project-main legend.rte-label {
    color: var(--rte-color-heading);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
}

#create-project-main .rte-label-optional {
    color: var(--rte-color-muted);
    font-weight: 400;
}

#create-project-main .rte-helper {
    background: var(--rte-bg-helper);
    border-radius: var(--rte-radius-card);
    color: #475569;
    font-size: 0.8125rem;
    line-height: 1.55;
    padding: 16px 17px;
    position: relative;
}

#create-project-main .rte-helper::after {
    border: 1px solid #bfdbfe;
    border-radius: inherit;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

#create-project-main .rte-helper p {
    line-height: 1.55;
    margin: 0;
}

#create-project-main .rte-helper p + p {
    margin-top: 4px;
}

#create-project-main .rte-helper a {
    color: var(--rte-color-primary);
    font-weight: 600;
}

#create-project-main .rte-helper strong {
    color: var(--rte-color-body);
    font-weight: 600;
}

#create-project-main .rte-input,
#create-project-main .rte-select,
#create-project-main input.rte-input,
#create-project-main textarea.rte-input,
#create-project-main select.rte-select {
    border: 1px solid var(--rte-border-card);
    border-radius: var(--rte-radius-input);
    box-sizing: border-box;
    font-size: var(--rte-font-body);
    font-weight: 400;
    min-height: var(--rte-input-height);
    padding: 8px var(--rte-input-px);
    width: 100%;
}

#create-project-main .rte-button-card {
    align-items: center;
    background: var(--rte-bg-card);
    border: 1px solid var(--rte-border-card);
    border-radius: var(--rte-radius-card);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0;
    padding: 24px 32px;
}

#create-project-main .rte-section-header h2 {
    color: var(--rte-color-heading);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
}

#create-project-main .rte-section-header p {
    margin: 0;
}

#create-project-main .bg-outcome-cards.rte-phase-grid {
    display: grid;
    gap: 20px;
    margin-top: 4px;
    max-width: none;
    width: 100%;
}

#create-project-main .cp-platform-card-grid.bg-outcome-cards.rte-phase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#create-project-main .cp-focus-card-grid.bg-outcome-cards.rte-phase-grid,
#create-project-main .cp-template-card-grid.bg-outcome-cards.rte-phase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#create-project-main .rte-phase-card {
    background: var(--rte-bg-card);
    border: 1px solid var(--rte-border-card);
    border-radius: 14px;
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    min-height: 0;
    padding: 18px 20px;
    position: relative;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    width: 100%;
}

#create-project-main .rte-phase-card .bg-outcome-card-input {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

#create-project-main .rte-phase-card:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

#create-project-main .rte-phase-card:has(.bg-outcome-card-input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(20, 71, 230, 0.18);
}

#create-project-main .rte-phase-card.is-active,
#create-project-main .rte-phase-card:has(.bg-outcome-card-input:checked) {
    background: #ecfdf5;
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15);
    color: #064e3b;
}

#create-project-main .rte-phase-card-header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

/* Card option text must stay regular — only field labels above are bold. */
#create-project-main .rte-phase-card {
    font-weight: 400;
}

#create-project-main .rte-phase-card .rte-phase-card-label,
#create-project-main .rte-phase-card .bg-outcome-card-name,
#create-project-main .rte-phase-card-label,
#create-project-main .rte-phase-card-label.bg-outcome-card-name,
#create-project-main .bg-outcome-card-name {
    color: var(--rte-color-heading);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
}

#create-project-main .rte-phase-card:has(.bg-outcome-card-input:checked) .rte-phase-card-label,
#create-project-main .rte-phase-card:has(.bg-outcome-card-input:checked) .bg-outcome-card-name,
#create-project-main .rte-phase-card.is-active .rte-phase-card-label,
#create-project-main .rte-phase-card.is-active .bg-outcome-card-name {
    color: #064e3b;
    font-weight: 400;
}

#create-project-main .rte-phase-card-check {
    flex-shrink: 0;
    height: 16px;
    margin-top: 2px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.15s;
    width: 16px;
}

#create-project-main .rte-phase-card.is-active .rte-phase-card-check,
#create-project-main .rte-phase-card:has(.bg-outcome-card-input:checked) .rte-phase-card-check {
    opacity: 1;
}

#create-project-main .rte-phase-card-desc {
    color: #475569;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
    margin: 10px 0 0;
}

#create-project-main .rte-phase-card:has(.bg-outcome-card-input:checked) .rte-phase-card-desc {
    color: #047857;
}

#create-project-main .rte-button-card.cp-setup-actions {
    justify-content: flex-end;
}

#create-project-main .rte-phase-card.cp-platform-card--add {
    border-style: dashed;
}

#create-project-main .rte-phase-card-label .cp-card-icon {
    display: inline-block;
    margin: 0 0.45rem 0 0;
    vertical-align: -0.35rem;
}

.create-project-step-nav {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 1.25rem;
}

.create-project-step-nav[hidden] {
    display: none !important;
}

.create-project-step-nav-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 0.75rem;
}

.create-project-step-nav-item.is-active {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

.create-project-step-nav-item.is-complete {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.create-project-step[hidden] {
    display: none !important;
}

.create-project-step [hidden] {
    display: none !important;
}

.create-project-step {
    display: grid;
    gap: 0;
}

.cp-platform-setup {
    display: grid;
    gap: 0;
}

.cp-platform-setup[hidden] {
    display: none;
}

.cp-platform-setup [hidden] {
    display: none !important;
}

.cp-platform-created-status {
    background: #ecfdf3;
    border: 1px solid #a6f4c5;
    border-radius: 10px;
    color: #067647;
    padding: 0.85rem 1rem;
}

.cp-warning-banner {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 10px;
    color: #9a3412;
    padding: 0.85rem 1rem;
}

.cp-journey-toolbar {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.cp-journey-toolbar-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

#project-journey-draft-editor-main {
    --rte-color-primary: #1447e6;
    --rte-color-heading: #111827;
    --rte-color-body: #374151;
    --rte-color-muted: #6b7280;
    --rte-border-card: #e5e7eb;
    --rte-bg-card: #ffffff;
    --rte-radius-card: 10px;
    --rte-font-body: 0.875rem;
    --rte-font-label: 0.875rem;
}

.pjde-count {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
}

.pjde-list-section {
    margin-top: 0.25rem;
}

.pjde-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.85rem;
}

.pjde-list {
    display: grid;
    gap: 0.85rem;
}

.pjde-card {
    background: #ffffff;
    border: 1px solid var(--rte-border-card, #e5e7eb);
    border-radius: 12px;
    padding: 0;
    transition: border-color 0.15s, background 0.15s;
}

.pjde-card.is-active {
    border-color: #22c55e;
    background: #ecfdf5;
}

.pjde-card.is-inactive {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.pjde-card.is-inactive .pjde-card-title,
.pjde-card.is-inactive .pjde-card-description,
.pjde-card.is-inactive .pjde-badge {
    color: #94a3b8;
}

.pjde-card.is-active .pjde-card-title {
    color: #064e3b;
}

.pjde-card.is-active .pjde-card-description {
    color: #166534;
}

.pjde-card-body {
    align-items: flex-start;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1rem 1.1rem;
}

.pjde-card-main {
    align-items: flex-start;
    display: grid;
    gap: 14px;
    grid-template-columns: 20px minmax(0, 1fr);
    min-width: 0;
}

.pjde-card-content {
    min-width: 0;
}

.pjde-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 0.4rem;
    color: var(--rte-color-heading, #111827);
}

.pjde-card-description {
    margin: 0 0 0.55rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.pjde-badge {
    display: inline-block;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    background: #fff;
}

.pjde-card.is-active .pjde-badge {
    border-color: #86efac;
    background: #fff;
    color: #166534;
}

.pjde-card-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.pjde-active-checkbox {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    border: 1px solid var(--rte-border-card, #e5e7eb);
    border-radius: 3px;
    accent-color: var(--rte-color-primary, #1447e6);
    cursor: pointer;
    flex-shrink: 0;
}

.pjde-active-checkbox:focus-visible {
    outline: 2px solid var(--rte-color-primary, #1447e6);
    outline-offset: 2px;
}

.pjde-card.is-active .pjde-active-checkbox {
    border-color: #22c55e;
    accent-color: #16a34a;
}

.pjde-card.is-active .pjde-active-checkbox:focus-visible {
    outline-color: #16a34a;
}

.pjde-inline-editor {
    border-top: 1px solid #e5e7eb;
    padding: 0.95rem 1.1rem 1.1rem;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.pjde-card.is-active .pjde-inline-editor {
    border-top-color: #bbf7d0;
    background: #f0fdf4;
}

.pjde-inline-fields {
    display: grid;
    gap: 0.85rem;
}

/* Shared by Project draft editor + Settings Master Journey editor */
.pjde-inline-fields .rte-field-group,
#project-journey-draft-editor-main .pjde-inline-fields .rte-field-group,
#platform-category-admin-main .pjde-inline-fields .rte-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.pjde-inline-fields .field-label,
.pjde-inline-fields .rte-label,
#project-journey-draft-editor-main .pjde-inline-fields .field-label,
#project-journey-draft-editor-main .pjde-inline-fields .rte-label,
#platform-category-admin-main .pjde-inline-fields .field-label,
#platform-category-admin-main .pjde-inline-fields .rte-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 750;
    color: var(--rte-color-heading);
    line-height: 1.35;
    margin: 0;
}

.pjde-inline-fields .rte-input,
.pjde-inline-fields input.rte-input,
.pjde-inline-fields textarea.rte-input,
#project-journey-draft-editor-main .pjde-inline-fields .rte-input,
#project-journey-draft-editor-main .pjde-inline-fields input.rte-input,
#project-journey-draft-editor-main .pjde-inline-fields textarea.rte-input,
#platform-category-admin-main .pjde-inline-fields .rte-input,
#platform-category-admin-main .pjde-inline-fields input.rte-input,
#platform-category-admin-main .pjde-inline-fields textarea.rte-input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-size: var(--rte-font-body);
    font-family: inherit;
    color: var(--rte-color-heading);
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pjde-inline-fields textarea.rte-input,
#project-journey-draft-editor-main .pjde-inline-fields textarea.rte-input,
#platform-category-admin-main .pjde-inline-fields textarea.rte-input {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.pjde-inline-fields .rte-input:focus,
.pjde-inline-fields input.rte-input:focus,
.pjde-inline-fields textarea.rte-input:focus,
#project-journey-draft-editor-main .pjde-inline-fields .rte-input:focus,
#project-journey-draft-editor-main .pjde-inline-fields input.rte-input:focus,
#project-journey-draft-editor-main .pjde-inline-fields textarea.rte-input:focus,
#platform-category-admin-main .pjde-inline-fields .rte-input:focus,
#platform-category-admin-main .pjde-inline-fields input.rte-input:focus,
#platform-category-admin-main .pjde-inline-fields textarea.rte-input:focus {
    border-color: var(--rte-color-primary);
    box-shadow: 0 0 0 3px rgba(20, 71, 230, 0.12);
}

.pjde-inline-error {
    margin: 0.65rem 0 0;
}

#platform-category-admin-main .pjde-list-section {
    margin-top: 0.75rem;
}

#platform-category-admin-main .pjde-count {
    margin: 0.25rem 0 0.85rem;
}

.pjde-inline-actions {
    margin-top: 0.85rem;
}

#project-journey-draft-editor-main .pjde-page-actions.rte-button-card {
    align-items: center;
    background: var(--rte-bg-card);
    border: 1px solid var(--rte-border-card);
    border-radius: var(--rte-radius-card);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin: 1.5rem 0 0;
    padding: 24px 32px;
    position: static;
}

@media (max-width: 800px) {
    .pjde-card-body {
        grid-template-columns: 1fr;
    }

    .pjde-card-actions {
        justify-content: flex-start;
        padding-left: 34px;
    }

    #project-journey-draft-editor-main .pjde-page-actions.rte-button-card {
        justify-content: stretch;
        padding: 20px;
    }

    #project-journey-draft-editor-main .pjde-page-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.cp-journey-checklist {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cp-card-icon {
    background: #f2f4f7;
    border-radius: 8px;
    display: inline-block;
    height: 1.75rem;
    position: relative;
    width: 1.75rem;
}

.cp-card-icon::before {
    background: currentColor;
    color: #344054;
    content: "";
    display: block;
    height: 100%;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 1rem;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 1rem;
    width: 100%;
}

.cp-card-icon--public_website::before,
.cp-card-icon--platform::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.8 2.5 15.2 0 18M12 3c-2.5 2.8-2.5 15.2 0 18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.8 2.5 15.2 0 18M12 3c-2.5 2.8-2.5 15.2 0 18'/%3E%3C/svg%3E");
}

.cp-card-icon--online_store::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 7h15l-1.5 9h-12z'/%3E%3Cpath d='M6 7 5 3H2'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='17' cy='20' r='1.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 7h15l-1.5 9h-12z'/%3E%3Cpath d='M6 7 5 3H2'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='17' cy='20' r='1.5'/%3E%3C/svg%3E");
}

.cp-card-icon--application_journey::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M8 6h11M8 12h11M8 18h7'/%3E%3Cpath d='M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M8 6h11M8 12h11M8 18h7'/%3E%3Cpath d='M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E");
}

.cp-card-icon--internal_system::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M8 20h8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M8 20h8'/%3E%3C/svg%3E");
}

.cp-card-icon--digital_product::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}

.cp-card-icon--add::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

.cp-advanced-settings {
    border-top: 1px solid var(--border, #e4e7ec);
    padding-top: 1rem;
}

.cp-advanced-settings summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 1rem;
}

.create-project-draft-status {
    margin: 0;
}

@media (max-width: 1100px) {
    #create-project-main .cp-platform-card-grid.bg-outcome-cards.rte-phase-grid,
    #create-project-main .cp-focus-card-grid.bg-outcome-cards.rte-phase-grid,
    #create-project-main .cp-template-card-grid.bg-outcome-cards.rte-phase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    #create-project-main .cp-platform-card-grid.bg-outcome-cards.rte-phase-grid,
    #create-project-main .cp-focus-card-grid.bg-outcome-cards.rte-phase-grid,
    #create-project-main .cp-template-card-grid.bg-outcome-cards.rte-phase-grid,
    #create-project-main .cp-journey-checklist {
        grid-template-columns: 1fr;
    }

    #create-project-main .rte-card,
    #create-project-main .rte-button-card {
        padding: 20px;
    }

    #create-project-main .rte-button-card {
        align-items: stretch;
        flex-direction: column;
    }

    #create-project-main .rte-button-card .btn {
        justify-content: center;
        width: 100%;
    }

    .create-project-step-nav {
        grid-template-columns: 1fr;
    }
}

#app-main.dashboard-page {
    gap: 0;
}

#app-main.dashboard-page > .page-header {
    margin-bottom: 1.5rem;
}

#app-main.dashboard-page .project-header-content {
    gap: 0.75rem;
}

#app-main.dashboard-page .project-header-content h1 {
    margin: 0;
}

#app-main.dashboard-page .project-header-content p {
    margin: 0;
}

#app-main.dashboard-page #project-drafts-section {
    margin-bottom: 1.625rem;
}

#app-main.dashboard-page #project-drafts-section .section-header,
#app-main.dashboard-page #created-projects-section .section-header {
    margin-bottom: 0.75rem;
}

#app-main .dashboard-section-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
}

#app-main .dashboard-section-title-row h2 {
    margin: 0;
    font-size: 1.05rem;
}

#app-main .dashboard-section-count {
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    line-height: 1.3;
}

.saved-drafts-container {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.saved-drafts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.saved-draft-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.875rem 1rem;
}

.saved-draft-item:not(:first-child) {
    border-top: 1px solid var(--border);
}

.saved-draft-item-main {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    flex: 1 1 14rem;
}

.saved-draft-item-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.92rem;
    line-height: 1.35;
}

.saved-draft-item-meta {
    font-size: 0.84rem;
    line-height: 1.4;
}

.saved-draft-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

#app-main.dashboard-page #created-projects-section #dashboard-loading:not([hidden]) {
    margin-bottom: 0.75rem;
}

.org-report-page {
    gap: 0;
    max-width: none;
}

.org-report-page > .page-header {
    margin-bottom: 1.35rem;
}

.org-report-page > .app-breadcrumb {
    margin-bottom: 0.75rem;
}

.org-report-page .page-header .project-header-content h1,
#org-report-title {
    margin: 0;
    font-size: clamp(1.35rem, 1.15rem + 0.55vw, 1.65rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #0f172a;
    word-break: break-word;
}

.org-report-meta {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--muted);
}

.org-report-content {
    display: grid;
    gap: 1.75rem;
}

.org-report-footer {
    margin: 0.25rem 0 0;
    padding: 0.35rem 0 0.15rem;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.4;
}

.org-report-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
    margin-bottom: 0;
}

.org-report-summary-section {
    margin-bottom: 0;
}

.org-report-summary-card {
    padding: 1.15rem 1.2rem 1.1rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.org-report-exec-card {
    display: grid;
    gap: 0;
    min-height: 100%;
}

.org-report-exec-title {
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.org-report-exec-rows {
    display: grid;
    gap: 0.45rem;
}

.org-report-exec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.82rem;
    line-height: 1.4;
}

.org-report-exec-row-label {
    flex: 1;
    min-width: 0;
    font-weight: 400;
}

.org-report-exec-row-value {
    font-weight: 600;
    color: #1e293b;
    text-align: right;
    word-break: break-word;
}

.org-report-summary-label {
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.35;
}

.org-report-summary-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #1e293b;
}

.org-report-summary-value--success {
    color: var(--success);
}

.org-report-summary-value--warning {
    color: var(--warning);
}

.org-report-summary-value--danger {
    color: var(--danger);
}

.org-report-section {
    margin-top: 0;
}

.org-report-section--timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.org-report-timeline-section-start {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.org-report-project-list--lead {
    gap: 0;
}

.org-report-section-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.org-report-section--created-projects .org-report-section-title {
    padding-bottom: 16px;
}

#org-report-created-projects {
    scroll-margin-top: 1.25rem;
}

.org-report-project-list {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.org-report-project-card,
.org-report-integrated-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 1.875rem 1.75rem;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    min-width: 0;
}

.org-report-project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem 1.5rem;
    padding-bottom: 1.375rem;
    margin-bottom: 1.375rem;
    border-bottom: 1px solid #eef2f7;
}

.org-report-project-card-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
}

.org-report-project-card-actions {
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.org-report-scroll-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.org-report-scroll-to-top img {
    display: block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(32%) sepia(90%) saturate(1200%) hue-rotate(205deg) brightness(95%);
}

.org-report-project-card-status {
    flex-shrink: 0;
}

.org-report-project-card-status .tracker-status {
    font-size: 0.8125rem;
    padding: 0.32rem 0.75rem;
    white-space: nowrap;
}

.org-report-integrated-status {
    min-width: 0;
    margin-bottom: 32px;
}

.org-report-status-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.15rem 2rem;
    align-items: start;
}

.org-report-status-col {
    display: grid;
    gap: 1.1rem;
    min-width: 0;
    align-content: start;
}

.org-report-status-item {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 0.7rem;
    min-width: 0;
}

.org-report-status-icon {
    display: block;
    width: 16px;
    height: auto;
    flex-shrink: 0;
    margin-top: 0.14rem;
    opacity: 0.9;
}

.org-report-status-item-body {
    min-width: 0;
}

.org-report-status-item-label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
    color: #64748b;
}

.org-report-status-item-value {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
    color: #1e293b;
    word-break: break-word;
}

.org-report-status-item-value .muted {
    font-weight: 400;
    color: #64748b;
}

.org-report-status-item-value--problem-statement {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #1e293b;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.org-report-status-col--problem-statement {
    min-width: 0;
}

.org-report-integrated-timeline {
    min-width: 0;
    overflow-x: auto;
    padding-top: 0.25rem;
}

.org-report-integrated-timeline-inner {
    min-width: 0;
}

.org-report-project-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.35;
    word-break: break-word;
    letter-spacing: -0.01em;
}

.org-report-project-link:hover {
    color: var(--brand);
    text-decoration: underline;
}

.org-report-project-sub {
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
    word-break: break-word;
}

.org-report-status-line {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.45;
    word-break: break-word;
    color: #1e293b;
}

.org-report-status-label {
    font-weight: 600;
    color: #475569;
}

.org-report-timeline-range-header {
    margin: 0 0 32px;
}

.org-report-timeline-range-label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
    color: #334155;
}

.org-report-timeline-range-part {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.org-report-timeline-range-key {
    font-weight: 600;
    color: #475569;
}

.org-report-timeline-range-sep {
    color: #cbd5e1;
    font-weight: 400;
    padding: 0 0.2rem;
}

.org-report-timeline-no-dates {
    margin: 0;
    font-size: 0.84rem;
}

.org-report-integrated-timeline-inner {
    min-width: 0;
    width: 100%;
}

.org-report-gantt {
    --gantt-label-width: 12.2rem;
    width: 100%;
    max-width: 100%;
}

.org-report-gantt-header,
.org-report-gantt-row {
    display: grid;
    grid-template-columns: var(--gantt-label-width) minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
}

.org-report-gantt-row {
    min-height: 2rem;
}

.org-report-gantt-header {
    margin-bottom: 0.4rem;
}

.org-report-gantt-header-spacer {
    display: block;
}

.org-report-gantt-months {
    display: grid;
    grid-template-columns: repeat(var(--month-count), minmax(0, 1fr));
    border: 1px solid #e8edf3;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    background: #f8fafc;
}

.org-report-gantt-month-col {
    padding: 0.28rem 0.15rem;
    font-size: 0.68rem;
    line-height: 1.25;
    text-align: center;
    color: var(--muted);
    border-left: 1px solid #e8edf3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.org-report-gantt-month-col:first-child {
    border-left: none;
}

.org-report-gantt-body {
    position: relative;
    display: grid;
    gap: 0.38rem;
}

.org-report-gantt-today-layer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--gantt-label-width) + 0.55rem);
    right: 0;
    pointer-events: none;
    z-index: 2;
}

.org-report-gantt-today {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--danger);
    opacity: 0.75;
    border-radius: 1px;
}

.org-report-gantt-row-label {
    display: block;
    font-size: 0.74rem;
    line-height: 1.35;
    color: #475569;
    word-break: break-word;
    padding-right: 0.35rem;
}

.org-report-gantt-track {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 1.05rem;
    border: 1px solid #e8edf3;
    border-radius: 4px;
    background: #fafbfc;
    overflow: hidden;
}

.org-report-gantt-month-lines {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(var(--month-count), minmax(0, 1fr));
    pointer-events: none;
}

.org-report-gantt-month-line {
    border-left: 1px solid #eef2f7;
}

.org-report-gantt-month-line:first-child {
    border-left: none;
}

.org-report-gantt-track .org-report-timeline-bar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    border-radius: 999px;
    min-width: 2px;
    z-index: 1;
}

.org-report-timeline-bar--project {
    background: var(--brand);
    opacity: 0.92;
}

.org-report-timeline-bar--overdue {
    background: #ea580c;
    opacity: 0.95;
}

.org-report-timeline-bar--phase {
    background: #64748b;
    opacity: 0.8;
    height: 2px;
}

.org-report-timeline-bar--research {
    background: #15803d;
    opacity: 0.88;
    height: 2px;
}

.org-report-timeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    padding: 0.7rem 1rem;
    font-size: 0.76rem;
    line-height: 1.35;
    color: #64748b;
}

.org-report-timeline-legend.org-report-timeline-legend--top {
    margin: 0 0 32px;
    padding: 0.55rem 0.9rem;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: #f8fafc;
    gap: 0.5rem 1.15rem;
    font-size: 0.75rem;
}

.org-report-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.3;
}

.org-report-legend-swatch {
    display: inline-block;
    width: 1.1rem;
    height: 0.22rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.org-report-legend-swatch--schedule {
    background: var(--brand);
}

.org-report-legend-swatch--overdue {
    background: #ea580c;
}

.org-report-legend-swatch--phase {
    background: #64748b;
}

.org-report-legend-swatch--research {
    background: #15803d;
}

.org-report-legend-swatch--today {
    width: 2px;
    height: 0.85rem;
    border-radius: 1px;
    background: var(--danger);
    opacity: 0.75;
}

.org-report-empty {
    margin-top: 0.5rem;
}

/* Project Report page â€” page-level header (matches Organisation Report pattern) */
.project-report-page {
    gap: 0;
    max-width: none;
}

.project-report-page > .page-header {
    margin-bottom: 1.35rem;
}

.project-report-page > .app-breadcrumb {
    margin-bottom: 0.75rem;
}

.project-report-page .page-header .project-header-content h1,
#pr-page-title {
    margin: 0;
    font-size: clamp(1.35rem, 1.15rem + 0.55vw, 1.65rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #0f172a;
    word-break: break-word;
}

@media (max-width: 1200px) {
    .org-report-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 1.5rem;
    }

    .org-report-status-col--problem-statement {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1100px) {
    .org-report-summary-grid {
        grid-template-columns: 1fr;
    }

    .org-report-status-grid {
        grid-template-columns: 1fr;
        gap: 0.95rem;
    }

    .org-report-status-col--problem-statement {
        grid-column: auto;
    }

    .org-report-project-card,
    .org-report-integrated-row {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .org-report-gantt {
        --gantt-label-width: 10.3rem;
    }
}
.create-project-panel {
    max-width: none;
    margin: 0;
    padding: 1.5rem 1.6rem;
    border-radius: 12px;
}

.create-project-panel-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.create-project-stack {
    display: grid;
    gap: 1.5rem;
    margin-top: 0.75rem;
    justify-items: stretch;
}

.create-project-field {
    display: grid;
    gap: 0.55rem;
}

.create-project-field fieldset,
fieldset.create-project-field {
    border: 0;
    padding: 0;
    margin: 0;
    min-inline-size: 0;
}

.create-project-guidance-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
}

.create-project-guidance-box .create-project-hint {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--muted);
}

.create-project-guidance-box .create-project-hint + .create-project-hint {
    margin-top: 0.35rem;
}

.create-project-field input[type="text"],
.create-project-field input[type="number"],
.create-project-field input[type="date"],
.create-project-field select,
.create-project-textarea {
    width: 100%;
    max-width: none;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
    background: var(--surface);
}

.create-project-textarea {
    height: 150px;
    min-height: 150px;
    resize: vertical;
}

.create-project-hint {
    margin: 0;
    font-size: 0.85rem;
}

.create-project-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.create-project-checkbox-list:not(.rte-journey-list) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.25rem;
    max-width: none;
}

#create-project-main .create-project-checkbox-list,
.exloop-journey-area-picker.create-project-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#create-project-main .create-project-journey-option,
.exloop-journey-area-picker .create-project-journey-option {
    margin: 0;
}

#create-project-main .create-project-journey-check,
.exloop-journey-area-picker .create-project-journey-check {
    align-items: flex-start;
    gap: 0.5rem;
}

#create-project-main .create-project-journey-check-text,
.exloop-journey-area-picker .create-project-journey-check-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

#create-project-main .create-project-journey-check-title,
.exloop-journey-area-picker .create-project-journey-check-title {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
}

#create-project-main .create-project-journey-check-desc,
.exloop-journey-area-picker .create-project-journey-check-desc {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.45;
}

/* Shared card-style journey area picker (research + pain point add/edit) */
.exloop-journey-area-picker.rte-journey-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 4px;
    width: 100%;
    max-width: none;
}

.exloop-journey-area-picker .rte-journey-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 14px;
    align-items: flex-start;
    width: 100%;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--rte-border-card, #e5e7eb);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.exloop-journey-area-picker .rte-journey-item:hover {
    border-color: var(--rte-border-hover, #cbd5e1);
}

.exloop-journey-area-picker .rte-journey-item.is-checked {
    border-color: #22c55e;
    background: #ecfdf5;
}

.exloop-journey-area-picker .rte-journey-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 1px solid var(--rte-border-card, #e5e7eb);
    border-radius: 3px;
    accent-color: var(--rte-color-primary, #1447e6);
    cursor: pointer;
    flex-shrink: 0;
}

.exloop-journey-area-picker .rte-journey-item.is-checked input[type="checkbox"] {
    border-color: #22c55e;
    accent-color: #16a34a;
}

.exloop-journey-area-picker .rte-journey-item-body {
    min-width: 0;
}

.exloop-journey-area-picker .rte-journey-item-body label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rte-color-heading, #111827);
    cursor: pointer;
    line-height: 1.35;
    margin-bottom: 6px;
}

.exloop-journey-area-picker .rte-journey-item-body p {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.55;
}

.exloop-journey-area-picker .rte-journey-item.is-checked .rte-journey-item-body label {
    color: #064e3b;
}

.exloop-journey-area-picker .rte-journey-item.is-checked .rte-journey-item-body p {
    color: #166534;
}

.create-project-check-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
}

@media (max-width: 720px) {
    .create-project-checkbox-list:not(.rte-journey-list) {
        grid-template-columns: 1fr;
}

/* Create project Step 2: wrapper is not a card; two standalone .panel children */
/* #cp-step2 uses the native `hidden` attribute; do not set display:flex without :not([hidden])
   or it overrides the UA hidden stylesheet and Step 2 stays visible on Step 1. */
}
#create-project-main #cp-step2[hidden] {
    display: none;
}

#create-project-main #cp-step2:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#create-project-main #cp-summary-card.create-project-summary,
#create-project-main .create-project-problem-card {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
}

#create-project-main .create-project-summary {
    margin-bottom: 0;
}

#create-project-main .create-project-summary-title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text, #0f172a);
}

#create-project-main #cp-summary-card .create-project-summary-dl {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

#create-project-main #cp-summary-card .create-project-summary-item {
    min-width: 0;
}

#create-project-main #cp-summary-card .create-project-summary-dl dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    line-height: 1.3;
}

#create-project-main #cp-summary-card .create-project-summary-dl dd {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    word-break: break-word;
}

#create-project-main .create-project-problem-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#create-project-main .create-project-problem-heading {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text, #0f172a);
}

#create-project-main .create-project-problem-example {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
}

#create-project-main .create-project-field--problem {
    margin-top: 0.25rem;
}

#create-project-main .create-project-field--problem .create-project-textarea {
    max-width: none;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    line-height: 1.45;
}

#create-project-main .create-project-problem-card #cp-step2-validation {
    margin-top: 0.5rem;
}

#create-project-main .create-project-problem-card .button-row {
    margin-top: 1rem;
}

#create-project-main .create-project-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1100px) {
    #create-project-main #cp-summary-card .create-project-summary-dl {
        grid-template-columns: repeat(3, minmax(0, 1fr));
}

}
@media (max-width: 720px) {
    .create-project-dates {
        grid-template-columns: 1fr;

    }
    #create-project-main #cp-summary-card .create-project-summary-dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
}

}
@media (max-width: 480px) {
    #create-project-main #cp-summary-card .create-project-summary-dl {
        grid-template-columns: 1fr;
}

/* -------------------------------------------------------------------------- */
/* Project timeline (Phase 20B) â€” V1 screenshot reference, V2 schema       */
/* -------------------------------------------------------------------------- */

}
.timeline-page-header {
    margin: 0 0 1.25rem;
}

.timeline-page-header h1 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.timeline-page-subtitle {
    margin: 0;
    max-width: 48rem;
}

#pt-fetch-status {
    margin: 0 0 0.75rem;
}

.panel.timeline-summary-card {
    margin-bottom: 1.25rem;
}

.timeline-summary-card-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.timeline-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem 1.25rem;
}

.timeline-summary-grid.timeline-summary-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

@media (max-width: 960px) {
    .timeline-summary-grid.timeline-summary-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
}

}
@media (max-width: 480px) {
    .timeline-summary-grid.timeline-summary-grid--compact {
        grid-template-columns: 1fr;
}

}
.timeline-summary-item--wide {
    grid-column: 1 / -1;
}

.timeline-summary-label {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.timeline-summary-value {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
}

.project-tracker-card {
    margin-top: 0;
    margin-bottom: 1.25rem;
    min-width: 0;
    padding: 1.25rem 1.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.project-tracker-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.project-tracker-lead {
    margin: 0;
    max-width: 42rem;
}

.project-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.project-tracker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tracker-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.tracker-status-green {
    background: #e8f7ed;
    color: #1f7a3d;
}

.tracker-status-orange {
    background: #fff4df;
    color: #b36b00;
}

.tracker-status-red {
    background: #fdeaea;
    color: #b42318;
}

.timeline-empty-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0 4px;
}

.timeline-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.timeline-empty-text {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    max-width: 480px;
}

/* Project timeline â€” Activity History */
.timeline-activity-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
    min-width: 0;
    min-height: 420px;
    max-height: 560px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.timeline-activity-header {
    flex-shrink: 0;
    padding: 1.15rem 1.35rem 0.85rem;
    border-bottom: 1px solid var(--border);
}

.timeline-activity-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.timeline-activity-lead {
    margin: 0;
    max-width: 42rem;
    font-size: 0.9rem;
}

.timeline-activity-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.timeline-activity-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.timeline-activity-empty {
    margin: auto 0;
    padding: 1.5rem 0.5rem;
    text-align: center;
    font-size: 0.92rem;
    color: #6b7280;
}

.timeline-activity-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 100%;
}

.timeline-activity-item--user {
    align-items: flex-start;
}

.timeline-activity-item--system {
    align-items: stretch;
}

.timeline-activity-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.timeline-activity-meta-sep {
    color: #9ca3af;
}

.timeline-activity-author {
    font-weight: 600;
    color: #374151;
}

.timeline-activity-author--system {
    color: #4b5563;
}

.timeline-activity-phase-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.timeline-activity-bubble {
    max-width: min(100%, 42rem);
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

.timeline-activity-system-row {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #4b5563;
}

.timeline-activity-composer {
    flex-shrink: 0;
    padding: 0.85rem 1.35rem 1.1rem;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

.timeline-activity-composer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.timeline-activity-phase-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.timeline-activity-phase-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #4b5563;
}

.timeline-activity-phase-select {
    width: 100%;
    max-width: 20rem;
    font-size: 0.88rem;
}

.timeline-activity-input-row {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
}

.timeline-activity-textarea {
    flex: 1 1 auto;
    min-height: 2.75rem;
    max-height: 8rem;
    resize: vertical;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.4;
    font-family: inherit;
    background: #fff;
}

.timeline-activity-textarea:focus {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    border-color: #93c5fd;
}

.timeline-activity-send {
    flex-shrink: 0;
}

.timeline-activity-error {
    margin: 0;
    font-size: 0.82rem;
}

.project-tracker-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 420px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
}

.project-tracker-inner {
    min-width: max-content;
}

.tracker-header-row {
    display: flex;
    align-items: stretch;
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.tracker-week-headers {
    display: flex;
    flex: 1;
    min-width: 0;
}

.tracker-cell {
    min-height: 72px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
    background: #fff;
    position: relative;
    box-sizing: border-box;
}

.tracker-header {
    font-weight: 600;
    font-size: 12px;
    color: #374151;
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 3;
    white-space: nowrap;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.tracker-phase-header,
.tracker-phase {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
}

.tracker-phase-header {
    z-index: 6;
    background: #f9fafb;
    flex: 0 0 200px;
    width: 200px;
    min-width: 200px;
}

.tracker-week-headers > .tracker-cell.tracker-header {
    flex: 1 1 88px;
    min-width: 88px;
}

.tracker-phase {
    font-weight: 600;
    font-size: 12px;
    color: #374151;
    display: flex;
    align-items: center;
    flex: 0 0 200px;
    width: 200px;
    min-width: 200px;
}

.tracker-phase-current {
    background: #f0fdfa;
    color: #0f766e;
}

.tracker-phase-row {
    display: flex;
    align-items: stretch;
    min-height: 43px;
}

.tracker-phase-row .tracker-week-strip {
    min-height: 43px;
}

.tracker-phase-row .tracker-week-cell {
    min-height: 43px;
}

.tracker-phase-row .tracker-cell.tracker-phase {
    min-height: 43px;
    padding: 6px 12px;
}

.tracker-phase-row:last-child .tracker-week-strip .tracker-week-cell,
.tracker-phase-row:last-child .tracker-phase {
    border-bottom: none;
}

.tracker-track-host {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tracker-week-strip {
    display: flex;
    flex: 1;
    min-height: 72px;
}

.tracker-week-cell {
    min-height: 72px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    box-sizing: border-box;
}

.tracker-bar-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
    box-sizing: border-box;
}

.tracker-bar-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 15px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    z-index: 1;
    box-sizing: border-box;
}

.tracker-bar {
    display: flex;
    align-items: center;
    width: 100%;
    height: 15px;
    border-radius: 6px;
    overflow: hidden;
    padding: 0 6px;
    box-sizing: border-box;
}

.tracker-bar-label {
    display: block;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-width: 0;
}

.tracker-bar-planned {
    background: #93c5fd;
}

.tracker-bar-planned .tracker-bar-label {
    color: #1e3a8a;
}

.tracker-bar-complete {
    background: #4f7f58;
}

.tracker-bar-complete .tracker-bar-label {
    color: #ffffff;
}

.tracker-bar-current {
    background: #0f766e;
    box-shadow: 0 0 0 2px #d1fae5;
}

.tracker-bar-current .tracker-bar-label {
    color: #ffffff;
}

.tracker-bar-delayed {
    background: #f59e0b;
}

.tracker-bar-delayed .tracker-bar-label {
    color: #ffffff;
}

.tracker-bar-blocked {
    background: #dc2626;
}

.tracker-bar-blocked .tracker-bar-label {
    color: #ffffff;
}

/* Compound selectors so current-week tint wins over .tracker-header / .tracker-week-cell */
.tracker-week-headers > .tracker-cell.tracker-header.tracker-current-week-header {
    background: #eff6ff;
    color: #1d4ed8;
}

.tracker-week-strip > .tracker-week-cell.tracker-current-week-cell {
    background: #f8fbff;
}

/* â€”â€” Timeline edit form (Phase 20C) â€”â€” */

.timeline-form-page {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.timeline-form-page-header {
    margin-bottom: 20px;
}

.timeline-form-page-header h1 {
    margin: 0 0 8px;
}

.timeline-form-intro {
    max-width: none;
    margin: 0;
}

.timeline-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.timeline-section {
    width: 100%;
    box-sizing: border-box;
    padding: 20px 22px;
}

.timeline-section-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.timeline-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px 20px;
}

.timeline-field-span-2 {
    grid-column: 1 / -1;
}

.timeline-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.timeline-form .form-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.timeline-form .form-control,
.timeline-form select.form-control,
.timeline-form textarea.form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: #111827;
}

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

/* Timeline edit (20D): readonly ExLoop label + visually hidden native date */
.exloop-date-field-inner {
    position: relative;
    min-width: 0;
}

.timeline-form .exloop-date-display {
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}

.timeline-form .exloop-date-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.pte-date-field .form-hint--exloop-date {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.35;
}

.timeline-form-errors {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.timeline-error-line {
    margin: 0;
    font-size: 14px;
}

.timeline-error-line + .timeline-error-line {
    margin-top: 6px;
}

.timeline-phase-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-phase-row,
.phase-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
    background: #fff;
}

.timeline-phase-label {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.timeline-phase-move-btn {
    font-size: 14px;
    line-height: 1;
    padding: 8px 10px;
    min-width: 2.25rem;
}

.timeline-phase-move-controls {
    display: flex;
    gap: 6px;
    align-items: end;
    justify-content: flex-start;
}

.timeline-phase-remove-wrap {
    display: flex;
    align-items: end;
    justify-content: flex-end;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    line-height: 0;
}

.icon-button:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
}

.icon-button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.icon-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.timeline-remove-phase-icon {
    display: block;
    vertical-align: middle;
}

.timeline-phase-grid {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(140px, auto) auto;
    gap: 12px;
    align-items: end;
    min-width: 0;
}

@media (max-width: 1100px) {
    .timeline-phase-grid {
        overflow-x: auto;
        padding-bottom: 4px;
}

}
@media (max-width: 720px) {
    .timeline-phase-grid {
        grid-template-columns: 1fr;
        overflow-x: visible;

    }
    .timeline-phase-grid .timeline-phase-move-controls {
        grid-column: 1 / -1;
        justify-content: flex-start;

    }
    .timeline-phase-grid .timeline-phase-name-field {
        grid-column: 1 / -1;

    .timeline-phase-grid .timeline-phase-current-wrap,
    }
    .timeline-phase-grid .timeline-phase-remove-wrap {
        grid-column: 1 / -1;
}

}
.timeline-phase-current-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.timeline-radio-label input {
    width: auto;
}

.timeline-phase-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

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

.timeline-form-actions--footer {
    justify-content: flex-end;
}

.timeline-save-success {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    color: #065f46;
    font-size: 14px;
}

/* -------------------------------------------------------------------------
   Project Report (project-level reporting; browser print-to-PDF)
   ------------------------------------------------------------------------- */

.pr-panel {
    max-width: 100%;
}

.pr-report {
    max-width: 56rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.pr-report.pr-sheet {
    --pr-accent: var(--brand, #2563eb);
    --pr-border: #e5e7eb;
    --pr-muted-bg: #f3f4f6;
    --pr-sheet-bg: #ffffff;
    padding: 1.25rem 1.35rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--pr-border);
    background: var(--pr-sheet-bg);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.pr-report-header {
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--pr-border);
}

.pr-report-title {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    line-height: 1.25;
    font-weight: 700;
    color: #111827;
}

.pr-report-meta {
    margin: 0;
    font-size: 0.92rem;
    color: #6b7280;
}

.pr-section {
    margin-top: 1.35rem;
    padding: 1rem 1rem 1.1rem;
    border-radius: 10px;
    border: 1px solid var(--pr-border, #e5e7eb);
    background: #f9fafb;
}

.pr-summary-section {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.pr-section-heading {
    margin: 0 0 0.35rem;
}

.pr-section-heading h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.pr-section-rule {
    height: 2px;
    margin-top: 0.45rem;
    border-radius: 2px;
    background: var(--pr-accent, #2563eb);
    max-width: 100%;
}

.pr-section-lede {
    margin: 0.35rem 0 0.85rem;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.45;
}

.pr-section-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.pr-subsection-title {
    margin: 1rem 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.pr-summary-top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

@media (max-width: 720px) {
    .pr-summary-top {
        grid-template-columns: 1fr;
}

}
.pr-summary-tile {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--pr-border, #e5e7eb);
    background: #ffffff;
}

.pr-summary-tile-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 6px;
}

.pr-summary-tile-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

.pr-context-card {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--pr-border, #e5e7eb);
    background: #ffffff;
}

.pr-context-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 14px;
    margin-top: 10px;
}

.pr-context-row:first-child {
    margin-top: 0;
}

.pr-context-row--stack {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.pr-context-label {
    flex: 0 0 7.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
}

.pr-context-value {
    flex: 1;
    min-width: 0;
}

.pr-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.pr-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    border: 1px solid transparent;
}

.pr-pill--accent {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.pr-pill--soft {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}

.pr-problem-statement {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #1f2937;
}

.pr-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
}

.pr-badge--success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.pr-badge--warn {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.pr-badge--muted {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.pr-badge--neutral {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #e0e7ff;
}

.pr-badge--accent {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.pr-badge--draft {
    background: #faf5ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

.pr-badge--danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Design readiness status pills (app-wide) */
.pr-badge.pr-badge--green,
.pr-badge.pr-badge--amber {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
    font-size: 0.78rem;
    border: 1px solid transparent;
}

.pr-badge.pr-badge--green,
.design-readiness-badge.pr-badge--green {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.pr-badge.pr-badge--amber,
.design-readiness-badge.pr-badge--amber {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.pr-readiness {
    margin-top: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--pr-border, #e5e7eb);
    background: #ffffff;
}

.pr-readiness-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.pr-readiness-summary-line {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.pr-readiness-percent {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pr-accent, #2563eb);
}

.pr-readiness-bar {
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.pr-readiness-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--pr-accent, #2563eb);
    transition: width 0.2s ease;
}

.pr-readiness-status-label {
    margin: 8px 0 0;
    font-size: 0.88rem;
    color: #4b5563;
}

.pr-readiness-card {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.pr-readiness-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.pr-readiness-chips.pr-readiness-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.pr-readiness-chip {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    max-width: 100%;
}

.pr-readiness-chip--done {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}

.pr-readiness-chip--missing {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.pr-card {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid var(--pr-border, #e5e7eb);
    border-radius: 10px;
    background: #ffffff;
}

.pr-goal-title-col {
    flex: 1;
    min-width: 0;
}

.pr-goal-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.pr-goal-heading {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    margin: 0;
}

.pr-goal-card .pr-goal-heading {
    margin: 0;
}

.pr-goal-card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.pr-kv-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 0;
}

.pr-kv-table th,
.pr-kv-table td {
    text-align: left;
    vertical-align: top;
    padding: 8px 10px;
    border-bottom: 1px solid var(--pr-border, #e5e7eb);
    font-size: 0.9rem;
}

.pr-kv-table th {
    width: 11rem;
    color: #4b5563;
    font-weight: 600;
}

.pr-metric-card {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.pr-metric-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.45rem;
}

.pr-metric-heading {
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #111827;
    margin: 0 0 0.65rem;
}

.pr-metric-meta {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 4px 10px;
    margin: 0;
    font-size: 0.86rem;
}

.pr-metric-meta dt {
    margin: 0;
    color: #6b7280;
    font-weight: 600;
}

.pr-metric-meta dd {
    margin: 0;
    color: #111827;
}

.pr-measurements-wrap {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.pr-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.pr-table th,
.pr-table td {
    text-align: left;
    vertical-align: top;
    padding: 7px 9px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.84rem;
}

.pr-table thead th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pr-table--measurements tbody tr:last-child td {
    border-bottom: none;
}

.pr-list {
    margin: 8px 0 0;
    padding-left: 1.1rem;
}

.pr-list--tight li {
    margin: 4px 0;
}

.pr-list li {
    margin: 6px 0;
}

.pr-research-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
}

@media (max-width: 720px) {
    .pr-research-grid {
        grid-template-columns: 1fr;
}

}
.pr-research-cell {
    min-width: 0;
}

.pr-empty-card {
    text-align: center;
    padding: 1.35rem 1rem 1.45rem;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
    background: #ffffff;
    min-height: 9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.pr-empty-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

.pr-empty-card-title {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #374151;
}

.pr-empty-card-body {
    margin: 0;
    max-width: 22rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #6b7280;
}

.pr-filled-card {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--pr-border, #e5e7eb);
    background: #ffffff;
    min-height: 6rem;
}

.pr-filled-card-title {
    margin: 0 0 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #374151;
}

.pr-pain-list {
    margin-top: 4px;
    padding: 10px 14px 10px 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--pr-border, #e5e7eb);
    background: #ffffff;
}

.pr-timeline-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0.65rem;
    padding: 10px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--pr-border, #e5e7eb);
}

.pr-timeline-summary-strip--in-gantt {
    margin-top: 0;
}

@media (max-width: 900px) {
    .pr-timeline-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
}

}
.pr-timeline-strip-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.pr-timeline-strip-value {
    margin-top: 4px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #111827;
}

/* -------------------------------------------------------------------------
   Project report Gantt (timeline phases â€” always chart layout, not cards)
   ------------------------------------------------------------------------- */

.pr-gantt-chart {
    margin-top: 0.35rem;
}

.pr-gantt-card {
    border-radius: 10px;
    border: 1px solid var(--pr-border, #e5e7eb);
    background: #ffffff;
    padding: 10px 12px 12px;
}

.pr-gantt-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.project-report-document .pr-gantt-scroll,
.project-report-document .project-tracker-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.pr-gantt-inner {
    min-width: 680px;
}

.pr-gantt-grid-header {
    display: grid;
    grid-template-columns: 11.5rem minmax(0, 1fr);
    column-gap: 12px;
    align-items: end;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
}

.pr-gantt-corner {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    padding-bottom: 2px;
}

.pr-gantt-scale {
    min-width: 0;
}

.pr-gantt-scale-rail {
    position: relative;
    height: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.pr-gantt-scale-labels {
    position: relative;
    height: 1.4rem;
    margin-top: 2px;
}

.pr-gantt-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e5e7eb;
    transform: translateX(-0.5px);
}

.pr-gantt-tick-label {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 0.68rem;
    color: #6b7280;
    white-space: nowrap;
}

.pr-gantt-synthetic-note {
    margin: 6px 0 10px;
    font-size: 0.82rem;
    line-height: 1.4;
}

.pr-gantt-body-row {
    display: grid;
    grid-template-columns: 11.5rem minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.pr-gantt-body-row:last-child {
    border-bottom: none;
}

.pr-gantt-label-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.pr-gantt-phase-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #111827;
    line-height: 1.3;
}

.pr-gantt-track-col {
    min-width: 0;
}

.pr-gantt-track-rail {
    position: relative;
    height: 30px;
    border-radius: 8px;
    background: #f3f4f6;
    overflow: hidden;
}

.pr-gantt-gridline {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(17, 24, 39, 0.06);
    transform: translateX(-0.5px);
}

.pr-gantt-bar-planned {
    position: absolute;
    top: 5px;
    height: 18px;
    left: var(--gantt-left, 0%);
    width: var(--gantt-width, 12%);
    min-width: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.28);
    z-index: 1;
}

.pr-gantt-bar-actual {
    position: absolute;
    top: 8px;
    height: 12px;
    left: var(--gantt-left, 0%);
    width: var(--gantt-width, 12%);
    min-width: 4px;
    border-radius: 999px;
    background: rgba(30, 58, 138, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.pr-gantt-unscheduled {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #4b5563;
    background: repeating-linear-gradient(
        -45deg,
        #f9fafb,
        #f9fafb 7px,
        #eef2f7 7px,
        #eef2f7 14px
    );
}

.pr-gantt-row-meta {
    margin-top: 5px;
    font-size: 0.76rem;
    line-height: 1.35;
    color: #6b7280;
}

.pr-gantt-row-note {
    margin-top: 4px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #374151;
}

.pr-gantt-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
    font-size: 0.78rem;
    color: #4b5563;
}

.pr-gantt-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.pr-gantt-legend-swatch {
    width: 18px;
    height: 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pr-gantt-legend-swatch--planned {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.pr-gantt-legend-swatch--actual {
    background: #1e3a8a;
}

.pr-gantt-empty-chart {
    padding: 1.25rem 12px;
    text-align: center;
    font-size: 0.9rem;
}

.pr-timeline-comments-block {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--pr-border, #e5e7eb);
}

.pr-timeline-comments-empty {
    margin: 0.25rem 0 0;
}

/* -------------------------------------------------------------------------
   Project Summary â€” stacked full-width cards (overview + report)
   ------------------------------------------------------------------------- */

.project-summary-grid {
    display: block;
}

.project-summary-grid > * {
    width: 100%;
}

.project-summary-grid > * + * {
    margin-top: 32px;
}

/* Project overview â€” side-by-side summary cards (report snapshot styling) */
/* Project overview â€” shared card typography (aligned with Project Context) */
.project-workspace-main .pr-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
    line-height: 1.3;
}

.project-workspace-main .pr-card-supporting-copy,
.project-workspace-main .pr-section-description.pr-card-supporting-copy {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.55;
    color: #6b7280;
    font-weight: 400;
    max-width: none;
}

.project-workspace-main .po-page-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: #6b7280;
    font-weight: 400;
}

.project-workspace-main .project-overview-report-scope .pr-project-context-meta-grid--overview {
    grid-template-columns: 1fr;
    gap: 18px;
}

.project-workspace-main .project-overview-report-scope .pr-project-context-meta-item--journey .pr-field-value {
    width: 100%;
}

.project-workspace-main .project-overview-report-scope .project-context-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 2px;
    width: 100%;
}

.project-workspace-main .project-overview-report-scope .pr-project-summary-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

.project-workspace-main .project-overview-report-scope .pr-project-summary-pair > .pr-card {
    height: 100%;
    margin-top: 0;
    margin-bottom: 0;
    box-sizing: border-box;
}

.project-workspace-main .project-overview-report-scope .pr-project-summary-pair > * + * {
    margin-top: 0;
}

.project-workspace-main .project-overview-report-scope .pr-project-context-card > .pr-card-title {
    margin-bottom: 8px;
}

.project-workspace-main .project-overview-report-scope .pr-readiness-card .pr-readiness-title-row {
    margin-bottom: 0;
    gap: 12px 16px;
}

.project-workspace-main .project-overview-report-scope .pr-readiness-card .pr-readiness-title-row .pr-card-title {
    margin-bottom: 0;
}

.project-workspace-main .project-overview-report-scope .pr-readiness-card .pr-readiness-lead {
    margin-bottom: 20px;
}

.project-workspace-main .project-overview-report-scope .pr-readiness-card .pr-readiness-count-line {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.45;
    color: #374151;
}

.project-workspace-main .project-overview-report-scope .pr-readiness-card .pr-progress-text {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.45;
}

.project-workspace-main .project-overview-report-scope .pr-readiness-card .pr-readiness-checklist {
    margin-top: 0;
}

.project-workspace-main .project-overview-report-scope .pr-project-context-problem {
    margin-top: 24px;
    padding-top: 24px;
}

@media (max-width: 720px) {
    .project-workspace-main .project-overview-report-scope .pr-project-summary-pair {
        grid-template-columns: 1fr;
}

}
.project-context-layout {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.project-context-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.project-context-field--full {
    width: 100%;
}

.project-context-card-title,
.project-readiness-card-title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.project-report-document .pr-project-summary-grid {
    display: block;
}

.project-report-document .pr-project-summary-grid > * {
    width: 100%;
}

.project-report-document .pr-project-summary-grid > * + * {
    margin-top: 32px;
}

.project-report-document .pr-project-summary-pair {
    width: 100%;
}

.project-report-document .pr-project-summary-pair > * + * {
    margin-top: 32px;
}

.project-report-document .pr-project-context-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-report-document .pr-project-context-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 40px;
}

.project-report-document .pr-project-context-meta-item {
    min-width: 0;
    overflow-wrap: anywhere;
}

.project-report-document .pr-project-context-problem {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}

.project-report-document .pr-project-context-problem > .pr-field-label {
    margin-bottom: 14px;
}

.project-report-document .pr-project-summary-pair .pr-card {
    margin-bottom: 0;
}

.project-report-document .pr-readiness-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    margin-bottom: 24px;
}

.project-report-document .pr-readiness-title-row .pr-card-title,
.project-report-document .pr-readiness-title-row .pr-readiness-title-row__heading {
    margin-top: 0;
    margin-bottom: 0;
}

.project-report-document .pr-project-context-card.pr-card {
    padding: 28px 32px;
}

.project-report-document .pr-project-context-card > .pr-card-title {
    margin-bottom: 24px;
}

.project-report-document .pr-readiness-card.pr-card {
    padding: 28px 32px;
}

.project-report-document .pr-readiness-card .pr-readiness-lead {
    margin-bottom: 24px;
}

.project-report-document .pr-readiness-card .pr-readiness-count-line {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.45;
}

.project-report-document .pr-readiness-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 4px;
    max-width: 100%;
    min-width: 0;
}

.project-report-document .pr-readiness-checklist .pr-status-badge {
    padding: 10px 14px;
    gap: 10px;
    border-radius: 10px;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    flex: 0 1 auto;
    box-sizing: border-box;
}

.project-report-document .pr-readiness-checklist .pr-status-badge__label {
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .project-report-document .pr-project-context-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 32px;
}

}
@media (max-width: 640px) {
    .project-report-document .pr-project-context-meta-grid {
        grid-template-columns: 1fr;
        gap: 20px;
}

}
@page {
    size: A4 portrait;
    margin: 14mm;
}

@page org-report {
    size: A4 landscape;
    margin: 12mm;
}

/* -------------------------------------------------------------------------
   Project report â€” approved print template (scoped, matches static reference)
   ------------------------------------------------------------------------- */

/* Project Report page â€” fit fixed app shell content area (screen only) */
#project-report-main {
    min-width: 0;
    max-width: 100%;
}

#project-report-main .pr-panel,
#project-report-main #pr-report {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.project-report-document.pr-report.pr-sheet {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0;
    border: none;
    box-shadow: none;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

.project-report-document .pr-page-section {
    padding: 1.5rem 1.25rem;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.project-report-document .pr-cover-page {
    padding-top: 40vh;
}

.project-report-document .pr-cover-title {
    font-size: clamp(1.75rem, 1.5rem + 0.6vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.project-report-document .pr-cover-subtitle {
    font-size: 24px;
    color: #6b7280;
}

.project-report-document .pr-section-header {
    margin-bottom: 48px;
}

.project-report-document .pr-section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 16px;
    border-bottom: 4px solid #2563eb;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.project-report-document .pr-section-description {
    font-size: 18px;
    font-weight: 400;
    color: #6b7280;
}

.project-report-document .pr-section-description--tight {
    margin-bottom: 24px;
}

.project-report-document .pr-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.project-report-document .pr-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    color: #1a1a1a;
    line-height: 1.3;
}

.project-report-document .pr-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.project-report-document .pr-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.project-report-document .pr-timeline-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
}

.project-report-document .pr-inline-context-row {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a1a;
}

.project-report-document .pr-inline-context-row:last-child {
    margin-bottom: 0;
}

.project-report-document .pr-inline-context-label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0;
    text-transform: none;
}

.project-report-document .pr-field-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 8px;
    line-height: 1.35;
}

.project-report-document .pr-field-value {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.project-report-document .pr-field-value--muted {
    color: #9ca3af;
    font-weight: 500;
    font-style: italic;
}

.project-report-document .pr-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    border: none;
}

.project-report-document .pr-badge--amber {
    background: #fef3c7;
    color: #92400e;
}

.project-report-document .pr-badge--green {
    background: #d1fae5;
    color: #065f46;
}

.project-report-document .pr-badge--blue {
    background: #dbeafe;
    color: #1e40af;
    border-radius: 8px;
}

.project-report-document .pr-badge--purple {
    background: #e9d5ff;
    color: #6b21a8;
}

.project-report-document .pr-badge--gray {
    background: #f3f4f6;
    color: #374151;
    border-radius: 8px;
}

.project-report-document .pr-status-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 8px;
}

.project-report-document .pr-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
}

.project-report-document .pr-status-badge--done {
    background: #d1e7dd;
}

.project-report-document .pr-status-badge--missing {
    background: #ffeaae;
}

.project-report-document .pr-status-badge__label {
    font-size: 14px;
    font-weight: 600;
    color: #0a3622;
}

.project-report-document .pr-status-badge__pill {
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 12px;
    color: #000000;
}

.project-report-document .pr-status-badge__pill--done {
    background: #68cb9e;
}

.project-report-document .pr-status-badge__pill--missing {
    background: #ffca36;
}

.project-report-document .badge,
.project-report-document .pr-badge,
.project-report-document .status-badge,
.project-report-document .status-badge-label,
.project-report-document .status-badge-status,
.project-report-document .pr-status-badge,
.project-report-document .pr-status-badge__pill {
    font-size: 12px;
}

.project-report-document .pr-status-badge__label {
    font-size: 13px;
}

.project-report-document .pr-stack-8 > * + * {
    margin-top: 32px;
}

.project-report-document .pr-flex-gap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-report-document .pr-problem-statement {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    padding: 20px 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.project-report-document .pr-progress-bar-container {
    width: 100%;
    height: 14px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 4px;
    margin-bottom: 12px;
}

.project-report-document .pr-progress-bar {
    height: 100%;
    background: #2563eb;
    border-radius: 9999px;
}

.project-report-document .pr-progress-text {
    font-size: 16px;
    color: #374151;
    font-weight: 500;
}

.project-report-document .pr-goal-section {
    margin-top: 48px;
    margin-bottom: 48px;
}

.project-report-document .pr-goal-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #374151;
    margin: 0 0 8px;
}

.project-report-document .pr-goal-heading {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.3;
}

.project-report-document .pr-goal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 16px;
}

.project-report-document .pr-goal-summary {
    font-size: 14px;
    color: #6b7280;
}

.project-report-document .pr-goal-success {
    font-size: 16px;
    color: #374151;
    margin: 0 0 20px;
    line-height: 1.6;
}

.project-report-document .pr-metric-section {
    margin-top: 48px;
    margin-bottom: 48px;
    padding-top: 48px;
    border-top: 1px solid #e5e7eb;
}

.project-report-document .pr-metric-section:first-of-type {
    margin-top: 48px;
}

.project-report-document .pr-metric-label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
}

.project-report-document .plr-metric-label-row,
.project-report-document .pr-metric-heading-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.project-report-document .plr-metric-label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
}

.project-report-document .pr-badge.pr-badge--amber {
    background: #fef3c7;
    color: #92400e;
}

.project-report-document .pr-badge.pr-badge--green {
    background: #d1fae5;
    color: #065f46;
}

.project-report-document .pr-metric-heading {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.7;
    color: #1a1a1a;
    margin: 0 0 14px;
}

.project-report-document .pr-metric-gap-callout {
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 3px solid #c4b5fd;
    background: #f5f3ff;
    border-radius: 0 6px 6px 0;
}

.project-report-document .pr-metric-gap-callout-heading {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #5b21b6;
}

.project-report-document .pr-metric-gap-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}

.project-report-document .pr-metric-gap-item {
    margin-bottom: 10px;
}

.project-report-document .pr-metric-gap-item:last-child {
    margin-bottom: 0;
}

.project-report-document .pr-metric-gap-why,
.project-report-document .pr-metric-gap-meta {
    margin: 4px 0 0;
    font-weight: 400;
    color: #4b5563;
}

.project-report-document .pr-metric-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.project-report-document .pr-metric-source {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.5;
}

.project-report-document .pr-metric-meta strong,
.project-report-document .pr-metric-source strong {
    font-weight: 600;
}

.project-report-document .pr-report-data-table-container,
.project-report-document .pr-measurement-table-container,
.project-report-document .pr-pain-point-table-container,
.project-report-document .pr-research-task-table-container {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px 18px;
}

.project-report-document .pr-pain-points-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
}

.project-report-document .pr-pain-points-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    padding: 0 10px 12px 0;
    border-bottom: 2px solid #d1d5db;
    vertical-align: bottom;
}

.project-report-document .pr-pain-points-table td {
    padding: 12px 10px 12px 0;
    vertical-align: top;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.45;
}

.project-report-document .pr-pain-points-table .pp-task-desc-cell {
    font-size: 14px;
    font-weight: 400;
}

.project-report-document .pr-pain-points-table .pp-task-row-link {
    font-weight: 400;
}

.project-report-document .pr-pain-points-table .pp-desc-col {
    width: 60%;
}

.project-report-document .pr-pain-points-table .pp-score-col {
    width: 10%;
}

.project-report-document .pr-pain-points-table .pp-status-col {
    width: 8%;
}

.project-report-document .pr-pain-points-table .pp-date-col {
    width: 12%;
}

.project-report-document .pr-pain-points-table th.pp-score-col,
.project-report-document .pr-pain-points-table td.pp-score-col,
.project-report-document .pr-pain-points-table th.pp-status-col,
.project-report-document .pr-pain-points-table td.pp-status-col {
    padding-left: 4px;
    padding-right: 6px;
}

.project-report-document .pr-pain-points-table th.pp-date-col,
.project-report-document .pr-pain-points-table td.pp-date-col {
    padding-right: 4px;
    white-space: nowrap;
}

.project-report-document .pr-measurement-table-title {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.project-report-document .pr-measurement-block {
    margin-top: 32px;
}

.project-report-document .pr-measurement-block + .pr-measurement-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.project-report-document .pr-measurement-heading-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.project-report-document .pr-measurement-heading-row .pr-measurement-label {
    margin-bottom: 0;
}

.project-report-document .pr-measurement-primary {
    margin-bottom: 24px;
}

.project-report-document .pr-measurement-label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
}

.project-report-document .pr-measurement-name {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.6;
    max-width: 100%;
}

.project-report-document .pr-measurement-values-table {
    width: 100%;
    table-layout: fixed;
}

.project-report-document .pr-measurement-values-table th,
.project-report-document .pr-measurement-values-table td {
    width: 25%;
}

.project-report-document .pr-measurement-data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.project-report-document .pr-measurement-data-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: none;
    letter-spacing: 0;
    padding: 0 10px 16px 0;
    border-bottom: 2px solid #d1d5db;
    vertical-align: bottom;
    word-wrap: break-word;
}

.project-report-document .pr-measurement-data-table th:last-child {
    padding-right: 0;
}

.project-report-document .pr-measurement-data-table td {
    padding: 16px 10px 16px 0;
    vertical-align: top;
    font-size: 16px;
    color: #1a1a1a;
}

.project-report-document .pr-measurement-data-table td:last-child {
    padding-right: 0;
}

.project-report-document .pr-measurement-data-table th:nth-child(4),
.project-report-document .pr-measurement-data-table td:nth-child(4),
.project-report-document .pr-measurement-data-table th:nth-child(5),
.project-report-document .pr-measurement-data-table td:nth-child(5) {
    min-width: 5rem;
}

.project-report-document .pr-pain-point-block {
    margin-top: 24px;
}

.project-report-document .pr-pain-point-block + .pr-pain-point-block {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid #e5e7eb;
}

.project-report-document .pr-pain-point-title {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 28px;
}

.project-report-document .pr-pain-point-primary {
    margin-bottom: 32px;
}

.project-report-document .pr-pain-point-label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 16px;
}

.project-report-document .pr-pain-point-description {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.7;
    max-width: 100%;
}

.project-report-document .pr-pain-point-values-table {
    width: 100%;
    table-layout: fixed;
}

.project-report-document .pr-pain-point-values-table th,
.project-report-document .pr-pain-point-values-table td {
    width: 25%;
}

.project-report-document .pr-research-task-block {
    margin-top: 24px;
}

.project-report-document .pr-research-task-block + .pr-research-task-block {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid #e5e7eb;
}

.project-report-document .pr-research-task-title {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 28px;
}

.project-report-document .pr-research-task-primary {
    margin-bottom: 32px;
}

.project-report-document .pr-research-task-label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 16px;
}

.project-report-document .pr-research-task-description {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.7;
    max-width: 100%;
}

.project-report-document .pr-research-task-values-table {
    width: 100%;
    table-layout: fixed;
}

.project-report-document .pr-research-task-values-table th,
.project-report-document .pr-research-task-values-table td {
    width: 33.333%;
}

.project-report-document .pr-section-empty-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
}

.project-report-document .pr-research-summary-count {
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    line-height: 1.45;
}

.project-report-document .pr-research-table-section {
    margin-top: 4px;
}

.project-report-document .pr-research-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    max-width: 100%;
}

.project-report-document .pr-research-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.project-report-document .pr-research-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: bottom;
    line-height: 1.4;
}

.project-report-document .pr-research-table td {
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.55;
    color: #1a1a1a;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-report-document .pr-research-table tbody tr:last-child td {
    border-bottom: none;
}

.project-report-document .pr-research-table th:nth-child(1),
.project-report-document .pr-research-table td:nth-child(1) {
    width: 40%;
}

.project-report-document .pr-research-table th:nth-child(2),
.project-report-document .pr-research-table td:nth-child(2),
.project-report-document .pr-research-table th:nth-child(3),
.project-report-document .pr-research-table td:nth-child(3),
.project-report-document .pr-research-table th:nth-child(4),
.project-report-document .pr-research-table td:nth-child(4) {
    width: 20%;
}

.project-report-document .pr-research-activity-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.45;
}

.project-report-document .pr-research-activity-sub {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
}

.project-report-document .pr-research-dates-cell {
    white-space: normal;
}

.project-report-document .pr-pp-card-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-report-document .pr-pp-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
}

.project-report-document .pr-pp-card-inner {
    padding: 24px 28px;
}

.project-report-document .pr-pp-insight-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
}

.project-report-document .pr-pp-insight-header-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
}

.project-report-document .pr-pp-status-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.project-report-document .pr-pp-status-icon-img {
    display: block;
    width: 24px;
    height: 24px;
}

.project-report-document .pr-pp-insight-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    color: #111827;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding-top: 2px;
}

.project-report-document .pr-pp-status-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    margin-top: 2px;
}

.project-report-document .pr-pp-status-badge--open {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.project-report-document .pr-pp-status-badge--solved {
    color: #166534;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.project-report-document .pr-pp-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 36px;
    row-gap: 16px;
    align-items: start;
}

.project-report-document .pr-pp-meta-grid--scores {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.project-report-document .pr-pp-meta-grid--dates {
    padding-top: 20px;
    margin-top: 8px;
    border-top: none;
}

.project-report-document .pr-pp-meta-grid--context {
    padding: 20px 0;
    margin: 10px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.project-report-document .pr-pp-meta-grid--context .pr-pp-meta-item {
    gap: 8px;
}

.project-report-document .pr-pp-meta-value .rt-platform-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.project-report-document .pr-pp-meta-value .rt-platform-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.project-report-document .pr-pp-meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.project-report-document .pr-pp-meta-item--full {
    width: 100%;
}

.project-report-document .pr-pp-meta-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: #64748b;
    line-height: 1.35;
}

.project-report-document .pr-pp-meta-value {
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-report-document .pr-pp-impact-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.project-report-document .pr-pp-impact-badge--high {
    color: #991b1b;
    background: #fee2e2;
}

.project-report-document .pr-pp-impact-badge--moderate {
    color: #92400e;
    background: #fef3c7;
}

.project-report-document .pr-pp-impact-badge--low {
    color: #1e40af;
    background: #dbeafe;
}

.project-report-document .pr-pp-linked-measurement {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

@media (max-width: 640px) {
    .project-report-document .pr-pp-insight-header {
        flex-wrap: wrap;
        align-items: flex-start;

    }
    .project-report-document .pr-pp-meta-grid--context {
        grid-template-columns: 1fr;
}

}
.project-report-document .pr-muted-value {
    color: #9ca3af;
    font-style: italic;
    font-size: 14px;
}

.project-report-document .pr-empty-state {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 64px;
    text-align: center;
}

.project-report-document .pr-empty-state-icon {
    width: 80px;
    height: 80px;
    background: #e5e7eb;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-report-document .pr-empty-state-icon svg {
    width: 40px;
    height: 40px;
    color: #9ca3af;
}

.project-report-document .pr-empty-state-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.project-report-document .pr-empty-state-description {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.7;
}

.project-report-document .pr-simple-list {
    margin: 8px 0 0;
    padding-left: 1.25rem;
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.6;
}

.project-report-document .pr-pain-list-plain {
    list-style: disc;
}

.project-report-document .pr-timeline-comments {
    margin-top: 40px;
}

.project-report-document .pr-timeline-comments-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.project-report-document .pr-timeline-comments-empty {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.project-report-document .project-tracker-title {
    font-weight: 700;
}

.project-report-document .tracker-header {
    text-transform: none;
    letter-spacing: 0;
}

.project-report-document .pr-metrics-section-lead .pr-goal-section:last-child {
    margin-bottom: 0;
}

@media (max-width: 960px) {
    .project-report-document .pr-grid-3,
    .project-report-document .pr-grid-4 {
        grid-template-columns: 1fr;

    }
    .project-report-document .pr-page-section {
        padding: 32px 20px;

    }
    .project-report-document .pr-cover-title {
        font-size: 1.75rem;
}

}
@media screen and (max-width: 520px) {
    .project-report-document .pr-timeline-summary-grid {
        grid-template-columns: 1fr;
}

}
.print-page-break {
    margin-top: 22px;
}

@media print {
    /* Hide app shell chrome and controls */
    .app-header,
    .app-sidebar,
    .btn,
    .project-report-page > .app-breadcrumb,
    .project-report-page > .page-header,
    .project-report-page #pr-working,
    .project-report-page #pr-error {
        display: none !important;

    }
    body {
        background: #ffffff !important;
        height: auto !important;
        overflow: visible !important;

    }
    .app-shell,
    .app-body,
    .app-main {
        background: #ffffff !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;

    }
    .app-main {
        padding: 0 !important;

    }
    .panel {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        background: transparent !important;

    }
    .pr-report {
        max-width: none !important;
        width: 100% !important;

    }
    .project-report-document.pr-report.pr-sheet {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;

    }
    .project-report-document,
    .project-report-document .pr-page-section,
    .project-report-document .pr-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;

    }
    .project-report-document .pr-readiness-checklist {
        display: flex !important;
        flex-wrap: wrap !important;
        max-width: 100% !important;

    }
    .pr-report.pr-sheet {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;

    }
    html,
    body {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;

    }
    .pr-section,
    .pr-table,
    .pr-kv-table,
    .pr-gantt-body-row,
    .pr-gantt-chart,
    .pr-gantt-card,
    .pr-gantt-scroll,
    .pr-readiness,
    .pr-empty-card,
    .pr-filled-card,
    .project-report-document .pr-pp-card,
    .project-report-document .pr-research-table-section {
        break-inside: avoid;
        page-break-inside: avoid;

    }
    .project-report-document .pr-pp-card {
        box-shadow: none !important;

    }
    .project-report-document .pr-pp-card-inner {
        padding: 20px 24px;

    }
    .project-report-document .pr-pp-insight-header {
        break-after: avoid;
        page-break-after: avoid;

    }
    .project-report-document .pr-pp-meta-grid--scores,
    .project-report-document .pr-pp-meta-grid--context,
    .project-report-document .pr-pp-meta-grid--dates {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        column-gap: 22px;
        row-gap: 14px;

    }
    .project-report-document .pr-pp-meta-grid--scores {
        padding-top: 16px;
        margin-top: 16px;

    }
    .project-report-document .pr-pp-meta-grid--context {
        padding: 16px 0;
        margin: 8px 0;

    }
    .project-report-document .pr-pp-meta-grid--dates {
        padding-top: 16px;
        margin-top: 6px;
        border-top: none;

    }
    .project-report-document .pr-research-table th {
        text-transform: none;
        letter-spacing: normal;

    }
    .project-report-document .pr-field-label,
    .project-report-document .pr-pp-meta-label {
        text-transform: none;
        letter-spacing: normal;

    }
    .project-report-document .pr-pp-meta-item,
    .project-report-document .pr-pp-meta-value {
        overflow-wrap: anywhere;
        word-break: break-word;

    }
    .project-report-document .pr-project-context-meta-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;

    }
    .project-report-document .pr-project-context-meta-item {
        width: 100% !important;
        max-width: 100% !important;

    }
    .project-report-document .pr-project-context-meta-item .pr-field-label {
        margin-bottom: 4px !important;

    }
    .project-report-document .pr-project-context-meta-item .pr-field-value {
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: anywhere;
        word-break: break-word;

    }
    .project-report-document .pr-project-context-problem {
        margin-top: 22px;
        padding-top: 22px;
        break-inside: avoid;
        page-break-inside: avoid;

    }
    .project-report-document .pr-problem-statement {
        padding: 16px 20px;
        font-size: 14px;
        line-height: 1.55;
        background: #f9fafb !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;

    }
    .project-report-document .pr-readiness-checklist {
        gap: 8px 10px;

    }
    .project-report-document .pr-readiness-checklist .pr-status-badge {
        padding: 8px 12px;
        break-inside: avoid;
        page-break-inside: avoid;

    }
    .project-report-document .pr-readiness-lead {
        margin-bottom: 18px;
        break-after: avoid;
        page-break-after: avoid;

    }
    .project-report-document .pr-research-table-wrap {
        overflow: visible;
        break-inside: avoid;
        page-break-inside: avoid;

    }
    .project-report-document .pr-research-table thead {
        display: table-header-group;

    }
    .project-report-document .pr-research-table tr {
        break-inside: avoid;
        page-break-inside: avoid;

    }
    .project-report-document .pr-research-table th {
        background: #f8fafc !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;

    }
    .project-report-document .pr-research-table th,
    .project-report-document .pr-research-table td {
        padding: 12px 14px;
        font-size: 13px;

    }
    .project-report-document .pr-research-activity-title {
        font-size: 14px;

    }
    .project-report-document .pr-page-section {
        padding-top: 6mm;
        padding-bottom: 6mm;
        padding-left: 0;
        padding-right: 0;
        break-after: auto;
        page-break-after: auto;
        break-before: auto;
        page-break-before: auto;
        min-height: 0 !important;

    }
    /* Cover + Project Summary share the first printed page (no standalone cover sheet). */
    .project-report-document .pr-cover-page {
        padding-top: 0 !important;
        padding-bottom: 4mm;
        min-height: 0 !important;
        break-after: avoid !important;
        page-break-after: avoid !important;

    }
    .project-report-document .pr-cover-page + .pr-page-section {
        break-before: avoid !important;
        page-break-before: avoid !important;
        padding-top: 0;

    }
    /* Later major sections still start on a new page. */
    .project-report-document .pr-page-section:nth-child(n+3) {
        break-before: page;
        page-break-before: always;

    }
    .project-report-document .pr-page-section:last-child {
        break-after: auto !important;
        page-break-after: auto !important;
        padding-bottom: 0;

    }
    .project-report-document .pr-cover-page .pr-cover-title {
        font-size: 22px;
        margin-bottom: 6px;
        line-height: 1.2;

    }
    .project-report-document .pr-cover-page .pr-cover-subtitle {
        font-size: 14px;
        margin-bottom: 0;

    }
    .project-report-document .pr-section-header {
        margin-bottom: 28px;
        break-after: avoid;
        page-break-after: avoid;

    }
    .project-report-document .pr-section-title {
        font-size: 28px;
        line-height: 1.15;
        font-weight: 700;
        margin-bottom: 8px;
        padding-bottom: 10px;

    }
    .project-report-document .pr-section-description {
        font-size: 14px;
        font-weight: 400;

    }
    .project-report-document .pr-card {
        margin-bottom: 28px;

    }
    .project-report-document .pr-timeline-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    }
    .project-report-document .pr-project-summary-grid,
    .project-report-document .project-summary-grid {
        display: block;

    }
    .project-report-document .pr-project-summary-grid > *,
    .project-report-document .project-summary-grid > * {
        width: 100%;

    }
    .project-report-document .pr-project-summary-grid > * + *,
    .project-report-document .project-summary-grid > * + * {
        margin-top: 32px;

    }
    .project-report-document .pr-cover-page + .pr-page-section > .pr-section-header {
        margin-bottom: 12px !important;

    }
    .project-report-document .pr-cover-page + .pr-page-section > .pr-section-header .pr-section-description {
        display: none !important;

    }
    .project-report-document .pr-cover-page + .pr-page-section > .pr-section-header .pr-section-title {
        font-size: 18px !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;

    }
    .project-report-document .pr-project-summary-pair > * + * {
        margin-top: 20px !important;

    }
    .project-report-document .pr-project-summary-pair {
        width: 100%;
        break-inside: auto !important;
        page-break-inside: auto !important;
        break-before: auto !important;
        page-break-before: auto !important;
        break-after: auto !important;
        page-break-after: auto !important;

    }
    .project-report-document .pr-project-summary-pair .pr-project-context-card,
    .project-report-document .pr-project-summary-pair .pr-readiness-card {

    }
    .project-report-document .pr-readiness-title-row {
        margin-bottom: 18px;

    }
    .project-report-document .design-readiness-badge,
    .project-report-document .pr-badge.pr-badge--green,
    .project-report-document .pr-badge.pr-badge--amber {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .project-report-document .pr-project-context-card,
    .project-report-document .pr-readiness-card,
    .project-report-document .project-context-card,
    .project-report-document .project-readiness-card {
        break-inside: avoid;
        page-break-inside: avoid;

    }
    .project-report-document .pr-project-summary-pair .pr-project-context-card {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        break-before: avoid !important;
        page-break-before: avoid !important;
        break-after: auto !important;
        page-break-after: auto !important;
        margin-bottom: 0 !important;

    }
    .project-report-document .pr-project-summary-pair .pr-readiness-card {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        break-before: auto !important;
        page-break-before: auto !important;

    }
    .project-report-document .pr-metrics-section-lead > .pr-section-header {
        break-after: avoid;
        page-break-after: avoid;

    }
    .project-report-document .pr-metric-section,
    .project-report-document .pr-print-keep-together {
        break-inside: avoid;
        page-break-inside: avoid;

    }
    .project-report-document .pr-metric-heading-row,
    .project-report-document .pr-metric-heading,
    .project-report-document .pr-metric-source {
        break-after: avoid;
        page-break-after: avoid;

    }
    .project-report-document .pr-measurement-host {
        break-inside: avoid;
        page-break-inside: avoid;

    }
    .project-report-document .pr-goal-first-page-block {
        break-inside: avoid;
        page-break-inside: avoid;

    }
    .project-report-document .pr-goal-intro {
        break-after: avoid;
        page-break-after: avoid;

    }
    .project-report-document .pr-goal-label,
    .project-report-document .pr-goal-heading,
    .project-report-document .pr-goal-meta,
    .project-report-document .pr-goal-summary {
        break-after: avoid;
        page-break-after: avoid;

    }
    .project-report-document .pr-card,
    .project-report-document .pr-empty-state,
    .project-report-document .pr-problem-statement,
    .project-report-document .pr-report-data-table-container,
    .project-report-document .pr-measurement-table-container,
    .project-report-document .pr-pain-point-table-container,
    .project-report-document .pr-research-task-table-container,
    .project-report-document .pr-research-task-block {
        break-inside: avoid;
        page-break-inside: avoid;

    }
    .project-report-document .pr-pain-point-table-container {
        overflow: visible;
    }
    .project-report-document .pr-pain-points-table th,
    .project-report-document .pr-pain-points-table td {
        font-size: 11px;
        padding: 8px 8px 8px 0;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }
    .project-report-document .project-tracker-card {
        break-inside: auto !important;
        page-break-inside: auto !important;
        margin-bottom: 12px;
        padding: 10px 12px;
        box-shadow: none !important;

    }
    .project-report-document .project-tracker-header {
        margin-bottom: 10px;

    }
    .project-report-document .project-tracker-scroll {
        overflow: visible !important;
        max-height: none !important;
        min-height: 0 !important;
        height: auto !important;
        border: 1px solid #e5e7eb;
        border-radius: 8px;

    }
    .project-report-document .project-tracker-inner {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;

    }
    .project-report-document .tracker-header-row,
    .project-report-document .tracker-phase-row {
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;

    }
    .project-report-document .tracker-phase-header,
    .project-report-document .tracker-phase {
        position: static !important;
        flex: 0 0 3.25rem !important;
        width: 3.25rem !important;
        min-width: 3.25rem !important;
        font-size: 6.5pt !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere;
        padding: 4px 5px !important;

    }
    .project-report-document .tracker-week-headers > .tracker-cell.tracker-header,
    .project-report-document .tracker-week-cell {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        font-size: 6pt !important;
        line-height: 1.2 !important;
        padding: 3px 2px !important;
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere;
        text-align: center;

    }
    .project-report-document .tracker-cell {
        min-height: 1.75rem !important;

    }
    .project-report-document .tracker-week-strip,
    .project-report-document .tracker-phase-row .tracker-week-strip,
    .project-report-document .tracker-phase-row .tracker-week-cell,
    .project-report-document .tracker-phase-row .tracker-cell.tracker-phase {
        min-height: 1.75rem !important;

    }
    .project-report-document .tracker-header {
        min-height: 1.5rem !important;
        white-space: normal !important;

    }
    .project-report-document .tracker-bar-label {
        font-size: 6pt !important;

    }
    .project-report-document .tracker-phase-row {
        break-inside: avoid;
        page-break-inside: avoid;

    }
    .project-report-document .pr-page-section:last-child .pr-card {
        margin-bottom: 16px;
        break-inside: auto !important;
        page-break-inside: auto !important;

    }
    .project-report-document .pr-page-section:last-child .project-tracker-card {
        margin-bottom: 12px;

    }
    .project-report-document .pr-page-section:last-child .pr-timeline-comments {
        margin-top: 16px;
        margin-bottom: 0;
        padding-bottom: 0;
        min-height: 0 !important;
        background: transparent !important;

    }
    .project-report-document .pr-page-section:last-child .pr-timeline-comments-empty {
        margin-bottom: 0;

    }
    .project-report-document .pr-page-section:last-child .pr-timeline-comments ~ * {
        display: none !important;
        min-height: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;

    }
    .project-report-document .pr-page-section:last-child > .pr-avoid-break {
        break-inside: auto !important;
        page-break-inside: auto !important;
        min-height: 0 !important;
        margin-bottom: 12px !important;

    }
    .project-report-document .pr-page-section:last-child .project-tracker-scroll:empty {
        display: none !important;

    }
    .project-report-document .pr-page-section:last-child .timeline-empty-state {
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;

    }
    #project-report-main,
    #project-report-main .pr-panel,
    #project-report-main #pr-report {
        min-height: 0 !important;
        height: auto !important;

    }
    #project-report-main #pr-working,
    #project-report-main #pr-error {
        display: none !important;

    }
    .project-report-document .pr-measurement-block {
        break-inside: avoid;
        page-break-inside: avoid;

    }
    .project-report-document .pr-pain-point-block {
        break-inside: avoid;
        page-break-inside: avoid;

    }
    .project-report-document .pr-page-section--metrics .pr-report-data-table-container {
        break-inside: avoid;
        page-break-inside: avoid;

    }
    .project-report-document .pr-page-section--metrics .pr-measurement-data-table thead {
        display: table-header-group;

    }
    .project-report-document .pr-page-section--metrics .pr-measurement-data-table tr {
        break-inside: avoid;
        page-break-inside: avoid;

    }
    /* Organisation Report â€” landscape browser print (scoped) */
    body:has(.org-report-document) {
        page: org-report;
    }

    .org-report-document {
        page: org-report;
    }

    body:has(.org-report-document) .dev-diagnostics {
        display: none !important;
    }

    .org-report-document .app-breadcrumb,
    .org-report-document .project-header-actions,
    .org-report-document #org-report-loading,
    .org-report-document #org-report-error,
    .org-report-document #org-report-empty {
        display: none !important;
    }

    .org-report-document .page-header {
        margin-bottom: 0.65rem;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .org-report-document .page-header .project-header-content h1,
    .org-report-document #org-report-title {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .org-report-document .org-report-meta {
        font-size: 0.82rem;
    }

    .org-report-document .org-report-content {
        gap: 1rem;
    }

    .org-report-document .org-report-summary-section,
    .org-report-document .org-report-summary-grid {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .org-report-document .org-report-summary-section {
        break-after: page;
        page-break-after: always;
        margin-bottom: 0;
    }

    .org-report-document .org-report-summary-grid {
        margin-bottom: 0.85rem;
    }

    .org-report-document .org-report-section--created-projects {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 0.75rem;
    }

    .org-report-document .org-report-created-projects-table .projects-table th,
    .org-report-document .org-report-created-projects-table .projects-table td {
        font-size: 0.72rem;
        padding: 0.45rem 0.5rem;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .org-report-document .created-projects-table-link {
        color: #2563eb;
        text-decoration: underline;
        font-weight: 600;
    }

    .org-report-document .org-report-created-projects-table .tracker-status {
        font-size: 0.68rem;
        padding: 0.1rem 0.4rem;
    }

    .org-report-document .design-readiness-badge,
    .org-report-document .pr-badge.pr-badge--green,
    .org-report-document .pr-badge.pr-badge--amber {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .org-report-document .org-report-section {
        break-inside: auto;
        page-break-inside: auto;
    }

    .org-report-document .org-report-section-title {
        break-after: avoid;
        page-break-after: avoid;
    }

    .org-report-document .org-report-timeline-section-start {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .org-report-document .org-report-project-list {
        gap: 0.85rem;
    }

    .org-report-document .org-report-project-card,
    .org-report-document .org-report-integrated-row {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .org-report-document .org-report-project-card-header {
        padding-bottom: 1rem;
        margin-bottom: 1.125rem;
    }

    .org-report-document .org-report-integrated-status {
        margin-bottom: 32px;
    }

    .org-report-document .org-report-status-grid {
        display: grid;
        grid-template-columns: minmax(280px, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
        gap: 1rem 1.5rem;
        align-items: start;
    }

    .org-report-document .org-report-status-col--problem-statement {
        min-width: 0;
    }

    .org-report-document .org-report-status-item-value--problem-statement {
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
    }

    .org-report-document .org-report-status-col {
        display: grid;
        gap: 0.95rem;
        min-width: 0;
        align-content: start;
    }

    .org-report-document .org-report-timeline-range-header {
        margin-bottom: 32px;
    }

    .org-report-document .org-report-timeline-legend.org-report-timeline-legend--top {
        margin-bottom: 32px;
        padding: 0.5rem 0.8rem;
        border: 1px solid #eef2f7;
        border-radius: 8px;
        background: #f8fafc;
    }

    .org-report-document .org-report-timeline-legend--top {
        break-inside: avoid;
        page-break-inside: avoid;
        break-after: avoid;
        page-break-after: avoid;
    }

    .org-report-document .org-report-integrated-timeline {
        overflow: visible !important;
    }

    .org-report-document .org-report-integrated-timeline-inner {
        overflow: visible;
        width: 100%;
    }

    .org-report-document .org-report-gantt {
        overflow: visible;
        width: 100%;
        max-width: 100%;
        --gantt-label-width: 10.625rem;
    }

    .org-report-document .org-report-gantt-month-col {
        font-size: 0.62rem;
        padding: 0.2rem 0.1rem;
    }

    .org-report-document .org-report-gantt-row-label {
        display: block;
        overflow: visible;
        font-size: 0.68rem;
        line-height: 1.32;
        color: #475569;
        word-break: break-word;
        padding-right: 0.3rem;
    }

    .org-report-document .org-report-status-item-label,
    .org-report-document .org-report-status-item-value,
    .org-report-document .org-report-timeline-range-label {
        font-size: 0.76rem;
    }

    .org-report-document .org-report-status-item-value {
        font-weight: 500;
    }

    .org-report-document .org-report-timeline-range-label {
        flex-wrap: wrap;
    }

    .org-report-document .org-report-project-link {
        color: inherit;
        text-decoration: none;
    }

    .org-report-document .org-report-timeline-bar,
    .org-report-document .org-report-timeline-bar--project,
    .org-report-document .org-report-timeline-bar--phase,
    .org-report-document .org-report-timeline-bar--research,
    .org-report-document .org-report-timeline-bar--overdue,
    .org-report-document .org-report-legend-swatch,
    .org-report-document .org-report-gantt-today,
    .org-report-document .org-report-timeline-legend--top {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .org-report-document .org-report-footer {
        margin-top: 0.65rem;
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Auth login page (scoped to avoid conflicts with app forms) */
body.auth-page {
    min-height: 100vh;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.auth-page h1,
body.auth-page h2,
body.auth-page p {
    margin: 0;
}

.auth-page .auth-container {
    width: 100%;
    max-width: 900px;
}

.auth-page .auth-container.auth-container--narrow {
    max-width: 440px;
}

.auth-page .auth-card.auth-card--single {
    grid-template-columns: 1fr;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.auth-page .auth-card.auth-card--single .auth-main {
    padding: 40px 48px;
}

.auth-page .auth-message[hidden] {
    display: none !important;
}

.auth-page .projects-table {
    min-width: 52rem;
}

.auth-page .projects-table th {
    text-transform: none;
    letter-spacing: normal;
}

.auth-page .auth-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    overflow: hidden;
}

.auth-page .auth-side {
    background: #ffffff;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.auth-page .auth-brand {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 24px;
}

.auth-page .brand-title {
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.2;
}

.auth-page .brand-tagline {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.auth-page .auth-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-page .benefits-intro {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    font-weight: 500;
}

.auth-page .benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-page .benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.auth-page .benefit-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #3b82f6;
    width: 20px;
    height: 20px;
}

.auth-page .auth-main {
    padding: 48px 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-page .auth-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-page .auth-login-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 8px;
}

.auth-page .auth-login-logo-img {
    display: block;
    height: 34px;
    width: auto;
}

.auth-page .auth-story {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.auth-page .auth-story-tabs {
    display: flex;
    gap: 18px;
    align-items: center;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.2;
}

.auth-page .auth-story-tab {
    color: #6b7280;
    text-decoration: none;
    cursor: default;
    user-select: none;
}

.auth-page .auth-story-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-page .auth-story-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 0;
}

.auth-page .auth-story-subtitle {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

.auth-page .auth-story-features {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}

.auth-page .auth-story-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4b5563;
    font-size: 13.5px;
    line-height: 1.45;
}

.auth-page .auth-story-feature-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #3b82f6;
    width: 18px;
    height: 18px;
}

.auth-page .auth-story-hero {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.auth-page .auth-hero-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
}

.auth-page .auth-title {
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.3;
}

.auth-page .auth-subtitle {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

.auth-page .auth-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-page .auth-message p {
    margin: 0;
}

.auth-page .auth-message-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.auth-page .auth-message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-page .auth-message-error .message-icon {
    color: #dc2626;
}

.auth-page .message-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #3b82f6;
    width: 20px;
    height: 20px;
}

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

.auth-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-page .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

.auth-page .form-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    color: #1a1a1a;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.auth-page .form-input::placeholder {
    color: #9ca3af;
}

.auth-page .form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-page .form-input:read-only {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.auth-page .auth-button {
    width: 100%;
    height: 44px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.auth-page .auth-button:hover {
    background: #2563eb;
}

.auth-page .auth-button:active {
    background: #1d4ed8;
    transform: translateY(1px);
}

.auth-page .auth-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.auth-page .auth-button-microsoft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.auth-page .auth-button-microsoft-logo {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-page .auth-button-microsoft:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.auth-page .auth-oauth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #6b7280;
    font-size: 13px;
}

.auth-page .auth-oauth-divider::before,
.auth-page .auth-oauth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-page .auth-support {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

.auth-page .auth-resend-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.auth-page .auth-resend-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.auth-page .auth-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.auth-page .auth-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.auth-page .auth-link-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.auth-page .support-note {
    margin-top: 4px;
    font-size: 12px;
    color: #9ca3af;
}

/* Full split-screen login (login page only; other auth pages keep card layout) */
body.auth-page.auth-page--login {
    --auth-grid-gutter: 56px;
    --auth-story-gutter: 62px;
    --auth-story-width: 880px;
    --auth-story-copy-width: 780px;
    --auth-login-width: 400px;
    --auth-story-content-offset: 75px;
    --auth-color-text: #111827;
    --auth-color-muted: #6b7280;
    --auth-color-body: #6b7280;
    --auth-color-label: #374151;
    --auth-line-body: 1.55;
    --auth-line-heading: 1.25;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--auth-color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    margin: 0;
    background: #ffffff;
    align-items: stretch;
    justify-content: stretch;
    overflow-x: hidden;
    overflow-y: auto;
}

body.auth-page.auth-page--login .auth-container {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
}

body.auth-page.auth-page--login .auth-card {
    display: grid;
    grid-template-columns: 42% 58%;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "loginLogo story"
        "loginMain story";
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: none;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
}

body.auth-page.auth-page--login .auth-login-logo {
    grid-area: loginLogo;
    flex-shrink: 0;
    padding: 28px var(--auth-grid-gutter) 20px;
    margin-bottom: 0;
    width: 100%;
    max-width: calc(var(--auth-login-width) + var(--auth-grid-gutter));
    align-self: start;
}

body.auth-page.auth-page--login .auth-login-logo-img {
    height: 38px;
}

body.auth-page.auth-page--login .auth-main {
    grid-area: loginMain;
    background: #ffffff;
    padding: 40px var(--auth-grid-gutter) 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    min-width: 0;
    overflow: visible;
    justify-content: flex-start;
}

body.auth-page.auth-page--login .auth-login-panel {
    width: 100%;
    max-width: var(--auth-login-width);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
    overflow: visible;
    padding: 30px 26px 24px;
    background: #ffffff;
}

body.auth-page.auth-page--login .auth-header {
    gap: 8px;
}

body.auth-page.auth-page--login .auth-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--auth-color-text);
    line-height: var(--auth-line-heading);
    letter-spacing: -0.02em;
}

body.auth-page.auth-page--login .auth-subtitle {
    font-size: 14px;
    line-height: var(--auth-line-body);
    color: var(--auth-color-muted);
}

body.auth-page.auth-page--login .auth-form {
    gap: 16px;
}

body.auth-page.auth-page--login .form-group {
    gap: 6px;
}

body.auth-page.auth-page--login .form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-color-label);
    line-height: 1.4;
}

body.auth-page.auth-page--login .form-input {
    font-size: 15px;
    line-height: 1.4;
    color: var(--auth-color-text);
}

body.auth-page.auth-page--login .auth-oauth-divider {
    margin: 4px 0;
    font-size: 13px;
    color: var(--auth-color-muted);
}

body.auth-page.auth-page--login .auth-button-microsoft {
    height: 44px;
    padding: 0 16px;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    border-color: #8c8c8c;
    border-radius: 4px;
}

body.auth-page.auth-page--login .auth-button-microsoft-logo {
    width: 21px;
    height: 21px;
}

body.auth-page.auth-page--login .auth-support {
    gap: 6px;
    margin-top: 0;
    font-size: 13px;
    line-height: var(--auth-line-body);
    color: var(--auth-color-muted);
}

body.auth-page.auth-page--login .auth-support .support-note {
    font-size: 12px;
    color: var(--auth-color-muted);
}

body.auth-page.auth-page--login .auth-side {
    grid-area: story;
    background: #f2f2f2;
    border-left: 1px solid rgba(0, 0, 0, 0.02);
    padding: 35px var(--auth-story-gutter) 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    min-width: 0;
    gap: 0;
    overflow: visible;
}

body.auth-page.auth-page--login .auth-story {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: var(--auth-story-width);
    margin: 0 auto;
    gap: 0;
}

body.auth-page.auth-page--login .auth-story-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end;
    gap: 28px;
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.3;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 0;
}

body.auth-page.auth-page--login .auth-story-tab {
    position: relative;
    color: var(--auth-color-muted);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    padding: 0 2px 12px;
    margin-bottom: -1px;
    border: none;
    font-weight: 500;
    background: none;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    transition: color 0.2s ease;
}

body.auth-page.auth-page--login .auth-story-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

body.auth-page.auth-page--login .auth-story-tab:hover {
    color: #374151;
}

body.auth-page.auth-page--login .auth-story-tab:hover::after {
    transform: scaleX(0.55);
    background: rgba(59, 130, 246, 0.45);
}

body.auth-page.auth-page--login .auth-story-tab:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
    border-radius: 2px;
}

body.auth-page.auth-page--login .auth-story-tab--active {
    color: var(--auth-color-text);
    font-weight: 600;
}

body.auth-page.auth-page--login .auth-story-tab--active::after {
    transform: scaleX(1);
    background: #3b82f6;
}

body.auth-page.auth-page--login .auth-story-panels {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: var(--auth-story-content-offset);
    overflow: visible;
}

body.auth-page.auth-page--login .auth-story-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    overflow: visible;
}

body.auth-page.auth-page--login .auth-story-panel--active {
    display: flex;
}

body.auth-page.auth-page--login .auth-story-hero-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
}

body.auth-page.auth-page--login .auth-story-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--auth-color-text);
    line-height: 1.18;
    letter-spacing: -0.025em;
    width: 100%;
    max-width: var(--auth-story-copy-width);
    margin: 0 0 10px;
    text-wrap: balance;
}

body.auth-page.auth-page--login .auth-story-title-accent {
    color: #3b82f6;
    display: inline;
    white-space: nowrap;
}

body.auth-page.auth-page--login .auth-story-subtitle {
    font-size: 14px;
    color: var(--auth-color-body);
    line-height: var(--auth-line-body);
    width: 100%;
    max-width: var(--auth-story-copy-width);
    margin: 0 auto 12px;
}

body.auth-page.auth-page--login .auth-story-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: var(--auth-story-width);
    flex-shrink: 0;
}

body.auth-page.auth-page--login .auth-story-copy--legal {
    gap: 10px;
    flex: 1;
    justify-content: flex-start;
    overflow-y: auto;
    padding-bottom: 8px;
}

body.auth-page.auth-page--login .auth-story-copy--legal .auth-story-subtitle {
    margin-bottom: 0;
    max-width: var(--auth-story-copy-width);
}

body.auth-page.auth-page--login .auth-story-legal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: var(--auth-story-copy-width);
    text-align: left;
    font-size: 14px;
    line-height: var(--auth-line-body);
    color: var(--auth-color-body);
}

body.auth-page.auth-page--login .auth-story-legal p {
    margin: 0;
}

body.auth-page.auth-page--login .auth-story-hero-stage {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

body.auth-page.auth-page--login .auth-hero-img {
    width: min(95%, 820px);
    max-width: 95%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center center;
}

@media (min-width: 1400px) {
    body.auth-page.auth-page--login {
        --auth-grid-gutter: 64px;
        --auth-story-gutter: 70px;
        --auth-story-width: 920px;
        --auth-story-copy-width: 800px;
        --auth-login-width: 420px;
        --auth-story-content-offset: 80px;
    }

    body.auth-page.auth-page--login .auth-story-title {
        font-size: 32px;
    }

    body.auth-page.auth-page--login .auth-hero-img {
        width: min(95%, 860px);
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    body.auth-page.auth-page--login {
        --auth-grid-gutter: 40px;
        --auth-story-gutter: 44px;
        --auth-story-width: 100%;
        --auth-story-copy-width: min(100%, 680px);
        --auth-login-width: 360px;
        --auth-story-content-offset: 40px;
    }

    body.auth-page.auth-page--login .auth-card {
        grid-template-columns: 44% 56%;
    }

    body.auth-page.auth-page--login .auth-story-title {
        font-size: 26px;
    }

    body.auth-page.auth-page--login .auth-hero-img {
        width: min(95%, 720px);
    }
}

@media (max-width: 768px) {
    body.auth-page {
        padding: 16px;
    }

    .auth-page .auth-card {
        grid-template-columns: 1fr;
    }

    /* Stack: login first, story below (markup order) */
    .auth-page .auth-side {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        border-bottom: none;
        padding: 32px 24px;
        gap: 28px;
    }

    .auth-page .auth-story-features {
        grid-template-columns: 1fr;
    }

    .auth-page .auth-main {
        padding: 32px 24px;
        gap: 20px;
    }

    .auth-page .auth-story-title {
        font-size: 18px;
    }

    .auth-page .auth-hero-img {
        max-width: 420px;
    }

    body.auth-page.auth-page--login {
        --auth-grid-gutter: 24px;
        --auth-story-gutter: 26px;
        --auth-story-width: 100%;
        --auth-story-copy-width: 100%;
        --auth-story-content-offset: 0;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
        padding: 0;
    }

    body.auth-page.auth-page--login .auth-card {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    body.auth-page.auth-page--login .auth-login-logo {
        order: 1;
        padding: 24px var(--auth-grid-gutter) 0;
        max-width: none;
        align-self: auto;
        justify-content: center;
    }

    body.auth-page.auth-page--login .auth-side {
        order: 2;
        border-left: none;
        border-top: none;
        padding: 25px var(--auth-story-gutter) 32px;
        min-height: auto;
        overflow: visible;
    }

    body.auth-page.auth-page--login .auth-main {
        order: 3;
        padding: 0 var(--auth-grid-gutter) 32px;
        min-height: auto;
        overflow: visible;
        justify-content: flex-start;
    }

    body.auth-page.auth-page--login .auth-container {
        min-height: auto;
    }

    body.auth-page.auth-page--login .auth-login-panel {
        margin: 0 auto;
        max-width: 400px;
        overflow: visible;
    }

    body.auth-page.auth-page--login .auth-story {
        max-width: none;
    }

    body.auth-page.auth-page--login .auth-story-tabs {
        flex-wrap: wrap;
        gap: 16px 24px;
        margin-bottom: 0;
    }

    body.auth-page.auth-page--login .auth-story-panels {
        padding-top: 25px;
    }

    body.auth-page.auth-page--login .auth-story-title {
        font-size: 24px;
        max-width: none;
    }

    body.auth-page.auth-page--login .auth-story-subtitle {
        max-width: none;
        margin-bottom: 10px;
    }

    body.auth-page.auth-page--login .auth-story-hero-stage {
        padding-top: 0;
    }

    body.auth-page.auth-page--login .auth-hero-img {
        width: min(95%, 520px);
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    body.auth-page {
        padding: 12px;
    }

    .auth-page .auth-side {
        padding: 24px 20px;
        gap: 24px;
    }

    .auth-page .auth-main {
        padding: 24px 20px;
        gap: 20px;
    }

    .auth-page .auth-story-title {
        font-size: 16px;
    }

    .auth-page .auth-title {
        font-size: 26px;
    }

    .auth-page .form-input {
        height: 46px;
    }

    .auth-page .auth-button {
        height: 48px;
        font-size: 16px;
    }

    body.auth-page.auth-page--login {
        --auth-grid-gutter: 20px;
        --auth-story-gutter: 22px;
        padding: 0;
    }

    body.auth-page.auth-page--login .auth-login-logo {
        padding: 20px var(--auth-grid-gutter) 0;
    }

    body.auth-page.auth-page--login .auth-main {
        padding: 0 var(--auth-grid-gutter) 28px;
    }

    body.auth-page.auth-page--login .auth-side {
        padding: 20px var(--auth-story-gutter) 24px;
    }

    body.auth-page.auth-page--login .auth-story-title {
        font-size: 22px;
    }

    body.auth-page.auth-page--login .auth-story-tabs {
        gap: 12px 18px;
        font-size: 13px;
        margin-bottom: 0;
    }

    body.auth-page.auth-page--login .auth-story-panels {
        padding-top: 20px;
    }

    body.auth-page.auth-page--login .auth-story-hero-stage {
        display: flex;
        padding-top: 0;
    }

    body.auth-page.auth-page--login .auth-hero-img {
        width: min(95%, 400px);
        max-width: 95%;
    }
}

/* User research activity form */
.ur-phase-fieldset,
.ur-audience-fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.ur-phase-cards {
    margin-top: 0.5rem;
}

.ur-audience-check-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.ur-results-heading {
    margin-top: 0.5rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--border);
}

.ur-results-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Full-page loading overlay (business goal SMART generation) */
@keyframes exloop-page-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

body.exloop-page-loading-active {
    overflow: hidden;
}

.exloop-page-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
}

.exloop-page-loading-overlay[hidden] {
    display: none !important;
}

.exloop-page-loading-card {
    width: min(100%, 28rem);
    padding: 1.75rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.exloop-page-loading-spinner {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 1.25rem;
    border: 3px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: exloop-page-loading-spin 0.8s linear infinite;
}

.exloop-page-loading-title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
}

.exloop-page-loading-body {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #334155;
}

.exloop-page-loading-note {
    margin: 0.85rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
}

/* Research activity + pain point + business goal forms â€” shared card layout (add + edit) */
#research-task-edit-main .rte-form-subtitle,
#research-tasks-add-main .rte-form-subtitle,
#pain-points-add-main .rte-form-subtitle,
#pain-point-edit-main .rte-form-subtitle,
#project-edit-main .rte-form-subtitle ,
#business-goals-add-main .rte-form-subtitle,
.platform-admin-page .rte-form-subtitle {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 42rem;
}

#research-task-edit-main,
#research-tasks-add-main,
#pain-points-add-main,
#pain-point-edit-main,
#project-edit-main ,
#business-goals-add-main,
.platform-admin-page {
    --rte-bg-card: #ffffff;
    --rte-bg-helper: #eff6ff;
    --rte-border-card: #e5e7eb;
    --rte-border-helper: #bedbff;
    --rte-border-active: #1447e6;
    --rte-border-hover: #c7d2fe;
    --rte-color-primary: #1447e6;
    --rte-color-heading: #111827;
    --rte-color-body: #374151;
    --rte-color-muted: #6b7280;
    --rte-color-divider: #e5e7eb;
    --rte-radius-card: 10px;
    --rte-radius-input: 6px;
    --rte-radius-phase: 10px;
    --rte-radius-journey: 8px;
    --rte-input-height: 40px;
    --rte-input-px: 12px;
    --rte-font-label: 0.875rem;
    --rte-font-helper: 0.875rem;
    --rte-font-body: 0.875rem;
}

#research-task-edit-main #rtee-form-panel:not([hidden]),
#research-tasks-add-main #rta-form-panel,
#pain-points-add-main #pp-form-panel,
#pain-point-edit-main #ppe-form-panel:not([hidden]),
#project-edit-main #pe-form-panel:not([hidden]),
#business-goals-add-main #bg-form-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#research-task-edit-main .rte-card,
#research-tasks-add-main .rte-card,
#pain-points-add-main .rte-card,
#pain-point-edit-main .rte-card,
#project-edit-main .rte-card ,
#business-goals-add-main .rte-card,
.platform-admin-page .rte-card {
    background: var(--rte-bg-card);
    border: 1px solid var(--rte-border-card);
    border-radius: var(--rte-radius-card);
    padding: 32px;
    margin-bottom: 24px;
}

#research-task-edit-main .rte-section-header,
#research-tasks-add-main .rte-section-header,
#pain-points-add-main .rte-section-header,
#pain-point-edit-main .rte-section-header,
#project-edit-main .rte-section-header ,
#business-goals-add-main .rte-section-header,
.platform-admin-page .rte-section-header {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rte-color-divider);
    margin-bottom: 32px;
}

#research-task-edit-main .rte-section-header h2,
#research-tasks-add-main .rte-section-header h2,
#pain-points-add-main .rte-section-header h2,
#pain-point-edit-main .rte-section-header h2,
#project-edit-main .rte-section-header h2 ,
#business-goals-add-main .rte-section-header h2,
.platform-admin-page .rte-section-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--rte-color-heading);
    margin: 0 0 6px;
    line-height: 1.4;
}

#research-task-edit-main .rte-section-header p,
#research-tasks-add-main .rte-section-header p,
#pain-points-add-main .rte-section-header p,
#pain-point-edit-main .rte-section-header p,
#project-edit-main .rte-section-header p ,
#business-goals-add-main .rte-section-header p,
.platform-admin-page .rte-section-header p {
    font-size: var(--rte-font-body);
    color: var(--rte-color-muted);
    margin: 0;
    line-height: 1.6;
}

#research-task-edit-main .rte-field-stack,
#research-tasks-add-main .rte-field-stack,
#pain-points-add-main .rte-field-stack,
#pain-point-edit-main .rte-field-stack,
#project-edit-main .rte-field-stack ,
#business-goals-add-main .rte-field-stack,
.platform-admin-page .rte-field-stack {
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: 100%;
}

#research-task-edit-main #rtee-form-panel > .rte-card:first-child > .rte-field-stack,
#research-tasks-add-main #rta-form-panel > .rte-card:first-child > .rte-field-stack,
#pain-points-add-main #pp-form-panel > .rte-card:first-child > .rte-field-stack,
#pain-point-edit-main #ppe-form-panel:not([hidden]) > .rte-card:first-child > .rte-field-stack,
#project-edit-main #pe-form-panel:not([hidden]) > .rte-card:first-child > .rte-field-stack,
#business-goals-add-main #bg-form-panel > .rte-card:first-child > .rte-field-stack {
    margin-top: 0;
}

#research-task-edit-main .rte-field-group,
#research-tasks-add-main .rte-field-group,
#research-task-edit-main .create-project-field.rte-field-group,
#research-tasks-add-main .create-project-field.rte-field-group,
#pain-points-add-main .rte-field-group,
#pain-points-add-main .create-project-field.rte-field-group,
#pain-point-edit-main .rte-field-group,
#pain-point-edit-main .create-project-field.rte-field-group,
#project-edit-main .rte-field-group,
#business-goals-add-main .rte-field-group,
#project-edit-main .create-project-field.rte-field-group ,
#business-goals-add-main .create-project-field.rte-field-group,
.platform-admin-page .rte-field-group,
.platform-admin-page .create-project-field.rte-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    justify-items: stretch;
}

#research-task-edit-main .field-label,
#research-tasks-add-main .field-label,
#research-task-edit-main .rte-label,
#research-tasks-add-main .rte-label,
#pain-points-add-main .field-label,
#pain-points-add-main .rte-label,
#pain-point-edit-main .field-label,
#pain-point-edit-main .rte-label,
#project-edit-main .field-label,
#business-goals-add-main .field-label,
#project-edit-main .rte-label,
#business-goals-add-main .rte-label,
#research-task-edit-main fieldset .field-label,
#research-task-edit-main fieldset .rte-label,
#research-tasks-add-main fieldset .field-label,
#research-tasks-add-main fieldset .rte-label,
#pain-points-add-main fieldset .field-label,
#pain-points-add-main fieldset .rte-label,
#pain-point-edit-main fieldset .field-label,
#pain-point-edit-main fieldset .rte-label,
#project-edit-main fieldset .field-label,
#business-goals-add-main fieldset .field-label,
#project-edit-main fieldset .rte-label ,
#business-goals-add-main fieldset .rte-label,
.platform-admin-page .field-label,
.platform-admin-page .rte-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 750;
    color: var(--rte-color-heading);
    line-height: 1.35;
    margin: 0 0 8px 0;
}

#research-task-edit-main .rte-label-optional,
#research-tasks-add-main .rte-label-optional,
#pain-points-add-main .rte-label-optional,
#pain-point-edit-main .rte-label-optional,
#project-edit-main .rte-label-optional ,
#business-goals-add-main .rte-label-optional {
    font-weight: 400;
    color: var(--rte-color-muted);
}

#research-task-edit-main .rte-helper,
#research-tasks-add-main .rte-helper,
#pain-points-add-main .rte-helper,
#pain-point-edit-main .rte-helper,
#project-edit-main .rte-helper ,
#business-goals-add-main .rte-helper,
.platform-admin-page .rte-helper {
    position: relative;
    background: var(--rte-bg-helper);
    border-radius: var(--rte-radius-card);
    padding: 16px 17px;
    font-size: 0.8125rem; /* 13px */
    color: #475569;
    line-height: 1.55;
}

#research-task-edit-main .rte-helper::after,
#research-tasks-add-main .rte-helper::after,
#pain-points-add-main .rte-helper::after,
#pain-point-edit-main .rte-helper::after,
#project-edit-main .rte-helper::after ,
#business-goals-add-main .rte-helper::after,
.platform-admin-page .rte-helper::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #bfdbfe;
    border-radius: var(--rte-radius-card);
    pointer-events: none;
}

#research-task-edit-main .rte-helper p,
#research-tasks-add-main .rte-helper p,
#pain-points-add-main .rte-helper p,
#pain-point-edit-main .rte-helper p,
#project-edit-main .rte-helper p ,
#business-goals-add-main .rte-helper p {
    margin: 0;
    line-height: 1.55;
}

#research-task-edit-main .rte-helper p + p,
#research-tasks-add-main .rte-helper p + p,
#pain-points-add-main .rte-helper p + p,
#pain-point-edit-main .rte-helper p + p,
#project-edit-main .rte-helper p + p ,
#business-goals-add-main .rte-helper p + p {
    margin-top: 4px;
}

#research-task-edit-main .rte-helper strong,
#research-tasks-add-main .rte-helper strong,
#pain-points-add-main .rte-helper strong,
#pain-point-edit-main .rte-helper strong,
#project-edit-main .rte-helper strong ,
#business-goals-add-main .rte-helper strong {
    font-weight: 600;
    color: var(--rte-color-body);
}

#research-task-edit-main .rte-input,
#research-tasks-add-main .rte-input,
#research-task-edit-main .rte-select,
#research-tasks-add-main .rte-select,
#pain-points-add-main .rte-input,
#pain-points-add-main .rte-select,
#pain-points-add-main input[id^="pp-"]:not([type="checkbox"]):not([type="radio"]),
#pain-point-edit-main input[id^="ppe-"]:not([type="checkbox"]):not([type="radio"]),
#research-task-edit-main input[id^="rte-"]:not([type="checkbox"]):not([type="radio"]),
#research-task-edit-main input[id^="rta-"]:not([type="checkbox"]):not([type="radio"]),
#research-tasks-add-main input[id^="rte-"]:not([type="checkbox"]):not([type="radio"]),
#research-tasks-add-main input[id^="rta-"]:not([type="checkbox"]):not([type="radio"]),
#research-task-edit-main select[id^="rte-"],
#research-task-edit-main select[id^="rta-"],
#research-tasks-add-main select[id^="rte-"],
#research-tasks-add-main select[id^="rta-"],
#pain-point-edit-main .rte-input,
#pain-point-edit-main .rte-select,
#project-edit-main .rte-input,
#project-edit-main .rte-select,
#project-edit-main input[id^="pe-"]:not([type="checkbox"]):not([type="radio"]),
#project-edit-main select[id^="pe-"],
.platform-admin-page .rte-input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-size: var(--rte-font-body);
    color: var(--rte-color-heading);
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#research-task-edit-main .rte-select,
#research-tasks-add-main .rte-select,
#research-task-edit-main select[id^="rte-"],
#research-task-edit-main select[id^="rta-"],
#research-tasks-add-main select[id^="rte-"],
#research-tasks-add-main select[id^="rta-"],
#pain-points-add-main .rte-select,
#pain-point-edit-main .rte-select,
#project-edit-main .rte-select,
#project-edit-main select[id^="pe-"] {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

#research-task-edit-main .rte-input:focus,
#research-tasks-add-main .rte-input:focus,
#research-task-edit-main .rte-select:focus,
#research-tasks-add-main .rte-select:focus,
#pain-points-add-main .rte-input:focus,
#pain-points-add-main .rte-select:focus,
#pain-points-add-main input[id^="pp-"]:not([type="checkbox"]):not([type="radio"]):focus,
#pain-point-edit-main input[id^="ppe-"]:not([type="checkbox"]):not([type="radio"]):focus,
#research-task-edit-main input[id^="rte-"]:not([type="checkbox"]):not([type="radio"]):focus,
#research-task-edit-main input[id^="rta-"]:not([type="checkbox"]):not([type="radio"]):focus,
#research-tasks-add-main input[id^="rte-"]:not([type="checkbox"]):not([type="radio"]):focus,
#research-tasks-add-main input[id^="rta-"]:not([type="checkbox"]):not([type="radio"]):focus,
#research-task-edit-main select[id^="rte-"]:focus,
#research-task-edit-main select[id^="rta-"]:focus,
#research-tasks-add-main select[id^="rte-"]:focus,
#research-tasks-add-main select[id^="rta-"]:focus,
#pain-point-edit-main .rte-input:focus,
#pain-point-edit-main .rte-select:focus,
#project-edit-main .rte-input:focus,
#project-edit-main .rte-select:focus,
#project-edit-main input[id^="pe-"]:not([type="checkbox"]):not([type="radio"]):focus,
#project-edit-main select[id^="pe-"]:focus,
.platform-admin-page .rte-input:focus {
    border-color: var(--rte-color-primary);
    box-shadow: 0 0 0 3px rgba(20, 71, 230, 0.12);
}

#research-task-edit-main .rte-input::placeholder,
#research-tasks-add-main .rte-input::placeholder,
#pain-points-add-main .rte-input::placeholder,
#pain-points-add-main input[id^="pp-"]::placeholder,
#pain-point-edit-main input[id^="ppe-"]::placeholder,
#research-task-edit-main input[id^="rte-"]::placeholder,
#research-task-edit-main input[id^="rta-"]::placeholder,
#research-tasks-add-main input[id^="rte-"]::placeholder,
#research-tasks-add-main input[id^="rta-"]::placeholder,
#pain-point-edit-main .rte-input::placeholder,
#project-edit-main .rte-input::placeholder,
#project-edit-main input[id^="pe-"]::placeholder {
    color: #9ca3af;
}

#research-task-edit-main #rte-task-description,
#research-tasks-add-main #rta-task-description,
#pain-points-add-main #pp-description,
#pain-point-edit-main #ppe-description,
#project-edit-main #pe-problem-statement,
#business-goals-add-main #bg-goal-input {
    display: block;
    width: 100%;
    min-height: 140px;
    height: auto;
    padding: 10px 14px;
    font-size: var(--rte-font-body);
    font-family: inherit;
    color: var(--rte-color-heading);
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
    line-height: 1.55;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#research-task-edit-main #rte-task-description:focus,
#research-tasks-add-main #rta-task-description:focus,
#pain-points-add-main #pp-description:focus,
#pain-point-edit-main #ppe-description:focus,
#project-edit-main #pe-problem-statement:focus,
#business-goals-add-main #bg-goal-input:focus {
    border-color: var(--rte-color-primary);
    box-shadow: 0 0 0 3px rgba(20, 71, 230, 0.12);
}

#research-task-edit-main .rte-phase-grid.bg-outcome-cards,
#research-tasks-add-main .rte-phase-grid.bg-outcome-cards,
#business-goals-add-main .rte-phase-grid.bg-outcome-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: none;
    margin-top: 4px;
}

#research-task-edit-main .rte-phase-card,
#research-tasks-add-main .rte-phase-card,
#business-goals-add-main .rte-phase-card {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    padding: 22px 24px;
    background: var(--rte-bg-card);
    border: 1px solid var(--rte-border-card);
    border-radius: 14px;
    min-height: 150px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

#business-goals-add-main .rte-phase-card .bg-outcome-card-input,
#research-tasks-add-main .rte-phase-card .bg-outcome-card-input,
#research-task-edit-main .rte-phase-card .bg-outcome-card-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#research-task-edit-main .rte-phase-card:hover,
#research-tasks-add-main .rte-phase-card:hover,
#business-goals-add-main .rte-phase-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

#research-task-edit-main .rte-phase-card.is-active,
#research-tasks-add-main .rte-phase-card.is-active,
#business-goals-add-main .rte-phase-card.is-active,
#research-task-edit-main .rte-phase-card:has(.bg-outcome-card-input:checked),
#research-tasks-add-main .rte-phase-card:has(.bg-outcome-card-input:checked),
#business-goals-add-main .rte-phase-card:has(.bg-outcome-card-input:checked) {
    border-color: #22c55e;
    background: #ecfdf5;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15);
}

#research-task-edit-main .rte-phase-card-header,
#research-tasks-add-main .rte-phase-card-header,
#business-goals-add-main .rte-phase-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

#research-task-edit-main .rte-phase-card-label,
#research-tasks-add-main .rte-phase-card-label,
#business-goals-add-main .rte-phase-card-label {
    font-size: 1rem;
    font-weight: 750;
    color: var(--rte-color-heading);
    line-height: 1.35;
}

#research-task-edit-main .rte-phase-card-check,
#research-tasks-add-main .rte-phase-card-check,
#business-goals-add-main .rte-phase-card-check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.15s;
    object-fit: contain;
}

#research-task-edit-main .rte-phase-card.is-active .rte-phase-card-check,
#research-tasks-add-main .rte-phase-card.is-active .rte-phase-card-check,
#business-goals-add-main .rte-phase-card.is-active .rte-phase-card-check,
#research-task-edit-main .rte-phase-card:has(.bg-outcome-card-input:checked) .rte-phase-card-check,
#research-tasks-add-main .rte-phase-card:has(.bg-outcome-card-input:checked) .rte-phase-card-check,
#business-goals-add-main .rte-phase-card:has(.bg-outcome-card-input:checked) .rte-phase-card-check {
    opacity: 1;
}

#research-task-edit-main .rte-phase-card-desc,
#research-tasks-add-main .rte-phase-card-desc,
#business-goals-add-main .rte-phase-card-desc {
    margin: 10px 0 0;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.55;
}

#research-task-edit-main .rte-phase-card.is-active,
#research-tasks-add-main .rte-phase-card.is-active,
#business-goals-add-main .rte-phase-card.is-active,
#research-task-edit-main .rte-phase-card:has(.bg-outcome-card-input:checked),
#research-tasks-add-main .rte-phase-card:has(.bg-outcome-card-input:checked),
#business-goals-add-main .rte-phase-card:has(.bg-outcome-card-input:checked) {
    color: #064e3b;
}

#research-task-edit-main .rte-phase-card.is-active .rte-phase-card-label,
#research-tasks-add-main .rte-phase-card.is-active .rte-phase-card-label,
#business-goals-add-main .rte-phase-card.is-active .rte-phase-card-label,
#research-task-edit-main .rte-phase-card:has(.bg-outcome-card-input:checked) .rte-phase-card-label,
#research-tasks-add-main .rte-phase-card:has(.bg-outcome-card-input:checked) .rte-phase-card-label,
#business-goals-add-main .rte-phase-card:has(.bg-outcome-card-input:checked) .rte-phase-card-label {
    color: #064e3b;
}

#research-task-edit-main .rte-phase-card.is-active .rte-phase-card-desc,
#research-tasks-add-main .rte-phase-card.is-active .rte-phase-card-desc,
#business-goals-add-main .rte-phase-card.is-active .rte-phase-card-desc,
#research-task-edit-main .rte-phase-card:has(.bg-outcome-card-input:checked) .rte-phase-card-desc,
#research-tasks-add-main .rte-phase-card:has(.bg-outcome-card-input:checked) .rte-phase-card-desc,
#business-goals-add-main .rte-phase-card:has(.bg-outcome-card-input:checked) .rte-phase-card-desc {
    color: #166534;
}

#research-task-edit-main .rte-checkbox-list,
#research-tasks-add-main .rte-checkbox-list{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

#research-task-edit-main .rte-checkbox-row,
#research-tasks-add-main .rte-checkbox-row{
    display: flex;
    align-items: center;
    gap: 12px;
}

#research-task-edit-main .rte-checkbox-row input[type="checkbox"],
#research-tasks-add-main .rte-checkbox-row input[type="checkbox"]{
    width: 16px;
    height: 16px;
    border: 1px solid var(--rte-border-card);
    border-radius: 3px;
    accent-color: var(--rte-color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

#research-task-edit-main .rte-checkbox-row label,
#research-tasks-add-main .rte-checkbox-row label{
    font-size: 0.875rem;
    color: var(--rte-color-heading);
    cursor: pointer;
    line-height: 1;
    font-weight: 400;
}

#research-task-edit-main .ur-headline-results .ur-results-heading,
#research-tasks-add-main .ur-headline-results .ur-results-heading{
    display: none;
}

#research-task-edit-main .rte-results-grid,
#research-tasks-add-main .rte-results-grid,
#pain-points-add-main .rte-results-grid,
#pain-point-edit-main .rte-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 24px;
    width: 100%;
    margin-top: 24px;
}

#research-task-edit-main .rte-results-field,
#research-tasks-add-main .rte-results-field,
#pain-points-add-main .rte-results-field,
#pain-point-edit-main .rte-results-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

#research-task-edit-main .rte-button-card,
#research-tasks-add-main .rte-button-card,
#pain-points-add-main .rte-button-card,
#pain-point-edit-main .rte-button-card,
#project-edit-main .rte-button-card ,
#business-goals-add-main .rte-button-card,
.platform-admin-page .rte-button-card {
    background: var(--rte-bg-card);
    border: 1px solid var(--rte-border-card);
    border-radius: var(--rte-radius-card);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

/* Pain point forms â€” measurements affected picker */
#pain-points-add-main .pp-measurement-groups,
#pain-point-edit-main .pp-measurement-groups {
    max-height: 22rem;
    overflow-y: auto;
    padding: 4px 4px 8px 0;
    margin-top: 4px;
    scrollbar-gutter: stable;
}

#pain-points-add-main .pp-measurement-list,
#pain-point-edit-main .pp-measurement-list {
    display: flex;
    flex-direction: column;
}

#pain-points-add-main .pp-measurement-group,
#pain-point-edit-main .pp-measurement-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rte-color-divider, #e5e7eb);
}

#pain-points-add-main .pp-measurement-group:last-child,
#pain-point-edit-main .pp-measurement-group:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

#pain-points-add-main .pp-measurement-metric-title,
#pain-point-edit-main .pp-measurement-metric-title {
    margin: 0 0 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--rte-color-heading, #111827);
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

#pain-points-add-main .pp-measurement-option,
#pain-point-edit-main .pp-measurement-option {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

#pain-points-add-main .pp-measurement-option:hover,
#pain-point-edit-main .pp-measurement-option:hover {
    background: #f8fafc;
}

#pain-points-add-main .pp-measurement-option.is-checked,
#pain-point-edit-main .pp-measurement-option.is-checked {
    background: #ecfdf5;
    border-left-color: #22c55e;
}

#pain-points-add-main .pp-measurement-option input[type="checkbox"],
#pain-point-edit-main .pp-measurement-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    border-radius: 3px;
    accent-color: #16a34a;
    cursor: pointer;
    flex-shrink: 0;
}

#pain-points-add-main .pp-measurement-name,
#pain-point-edit-main .pp-measurement-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rte-color-body, #374151);
    line-height: 1.35;
}

#pain-points-add-main .pp-measurement-option.is-checked .pp-measurement-name,
#pain-point-edit-main .pp-measurement-option.is-checked .pp-measurement-name {
    color: #064e3b;
    font-weight: 600;
}

#pain-points-add-main .pp-measurement-unit,
#pain-point-edit-main .pp-measurement-unit {
    flex-shrink: 0;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    line-height: 1.4;
    white-space: nowrap;
}

#pain-points-add-main .pp-measurement-option.is-checked .pp-measurement-unit,
#pain-point-edit-main .pp-measurement-option.is-checked .pp-measurement-unit {
    color: #166534;
    background: #dcfce7;
}

@media (max-width: 640px) {
    #research-task-edit-main .rte-card,
#research-tasks-add-main .rte-card,
#pain-points-add-main .rte-card,
#pain-point-edit-main .rte-card,
#project-edit-main .rte-card ,
}
#business-goals-add-main .rte-card {
        padding: 20px;

    #research-task-edit-main .rte-phase-grid.bg-outcome-cards,
#research-tasks-add-main .rte-phase-grid.bg-outcome-cards,
#pain-points-add-main .rte-phase-grid.bg-outcome-cards,
#pain-point-edit-main .rte-phase-grid.bg-outcome-cards,
}
#business-goals-add-main .rte-phase-grid.bg-outcome-cards {
        grid-template-columns: 1fr;

    #research-task-edit-main .rte-results-grid,
#research-tasks-add-main .rte-results-grid,
#pain-points-add-main .rte-results-grid,
}
#pain-point-edit-main .rte-results-grid {
        grid-template-columns: 1fr;

    #research-task-edit-main .rte-button-card,
#research-tasks-add-main .rte-button-card,
#pain-points-add-main .rte-button-card,
#pain-point-edit-main .rte-button-card,
#project-edit-main .rte-button-card ,
}
#business-goals-add-main .rte-button-card {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;

    #research-task-edit-main .rte-button-card .btn,
#research-tasks-add-main .rte-button-card .btn,
    #pain-points-add-main .rte-button-card .btn,
    #pain-point-edit-main .rte-button-card .btn,
    #project-edit-main .rte-button-card .btn ,
}
#business-goals-add-main .rte-button-card .btn {
        width: 100%;
        justify-content: center;
}

/* Project edit â€” locked setup fields */
#project-edit-main .pe-locked-fieldset {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

#project-edit-main .pe-locked-fieldset legend {
    margin-bottom: 0;
}

#project-edit-main .pe-area-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

#project-edit-main .pe-area-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--rte-color-divider, #e5e7eb);
    border-radius: var(--rte-radius-journey, 8px);
    background: #f8fafc;
    cursor: default;
    font-size: 0.875rem;
    line-height: 1.45;
}

#project-edit-main .pe-area-option.is-selected {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

#project-edit-main .pe-area-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    flex-shrink: 0;
    accent-color: #16a34a;
    cursor: not-allowed;
    opacity: 0.85;
}

#project-edit-main .pe-area-option .pe-area-label {
    color: var(--rte-color-body, #374151);
    font-weight: 500;
}

#project-edit-main .pe-area-option.is-selected .pe-area-label {
    color: #064e3b;
    font-weight: 600;
}

#project-edit-main #pe-focus-mode:disabled,
#project-edit-main select[id^="pe-"]:disabled {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: var(--rte-color-body, #374151);
    cursor: not-allowed;
    opacity: 1;
}

#project-edit-main #pe-problem-statement.pe-readonly-textarea,
#project-edit-main #pe-problem-statement[readonly] {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: var(--rte-color-body, #374151);
    cursor: default;
    resize: none;
}

#project-edit-main #pe-problem-statement[readonly]:focus {
    border-color: #e2e8f0;
    box-shadow: none;
}

#project-edit-main .field-hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--rte-color-muted, #6b7280);
}

/* Pain point view page */
#pain-point-main {
    --pp-view-border: #e5e7eb;
    --pp-view-heading: #111827;
    --pp-view-muted: #6b7280;
    --pp-view-body: #374151;
}

#pain-point-main .pp-view-subtitle {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 42rem;
}

#pain-point-main .pp-view-banner {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.875rem;
}

#pain-point-main .project-header-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
}

#pain-point-main #pp-resolve-link[hidden] {
    display: none !important;
}

#pain-point-main .pp-view-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#pain-point-main .pp-view-card {
    background: #ffffff;
    border: 1px solid var(--pp-view-border);
    border-radius: 10px;
    padding: 32px;
    margin-bottom: 0;
}

#pain-point-main .pp-view-card-header {
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--pp-view-border);
}

#pain-point-main .pp-view-card-header--title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}

#pain-point-main .pp-view-card-header--title-row h2 {
    margin: 0;
}

#pain-point-main .pp-view-card-header h2 {
    margin: 0 0 6px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--pp-view-heading);
    line-height: 1.4;
}

#pain-point-main .pp-view-card-header .field-hint {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
}

#pain-point-main .pp-insight-card {
    padding: 24px 28px;
}

#pain-point-main .pp-insight-card-inner {
    --pp-meta-col-min: 9.5rem;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#pain-point-main .pp-insight-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

#pain-point-main .pp-insight-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

#pain-point-main .pp-insight-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--pp-view-heading);
    white-space: pre-wrap;
    word-break: break-word;
}

#pain-point-main .pp-status-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    align-self: center;
    padding: 3px 9px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
}

#pain-point-main .pp-status-badge--open {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

#pain-point-main .pp-status-badge--solved {
    color: #166534;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

#pain-point-main .pp-meta-grid {
    display: grid;
    column-gap: 24px;
    row-gap: 12px;
    align-items: start;
}

#pain-point-main .pp-meta-grid--scores,
#pain-point-main .pp-meta-grid--primary {
    grid-template-columns: repeat(3, minmax(var(--pp-meta-col-min), 1fr));
    padding-top: 16px;
    border-top: 1px solid var(--pp-view-border);
}

#pain-point-main .pp-meta-grid--context {
    grid-template-columns: repeat(3, minmax(var(--pp-meta-col-min), 1fr));
    padding: 16px 0;
    margin: 8px 0;
    border-top: 1px solid var(--pp-view-border);
    border-bottom: 1px solid var(--pp-view-border);
}

#pain-point-main .pp-meta-grid--context .pp-meta-item {
    gap: 6px;
}

#pain-point-main .pp-meta-grid--dates {
    grid-template-columns: repeat(3, minmax(var(--pp-meta-col-min), 1fr));
    padding-top: 16px;
    margin-top: 8px;
    border-top: none;
}

#pain-point-main .pp-meta-grid--dates .pp-meta-item:nth-child(1) {
    grid-column: 1;
}

#pain-point-main .pp-meta-grid--dates .pp-meta-item:nth-child(2) {
    grid-column: 2;
}

#pain-point-main .pp-meta-grid--dates .pp-meta-item:nth-child(3) {
    grid-column: 3;
}

#pain-point-main .pp-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin: 0;
}

#pain-point-main .pp-meta-label-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

#pain-point-main .pp-meta-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--pp-view-muted);
    line-height: 1.25;
}

#pain-point-main .pp-info-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

#pain-point-main .pp-info-tip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: help;
    line-height: 0;
    border-radius: 999px;
}

#pain-point-main .pp-info-tip-trigger img {
    display: block;
    width: 16px;
    height: 16px;
}

#pain-point-main .pp-info-tip-trigger:hover,
#pain-point-main .pp-info-tip-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

#pain-point-main .pp-info-tip-panel {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 4;
    display: none;
    width: max-content;
    max-width: 16rem;
    padding: 8px 10px;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.45;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    transform: translateX(-50%);
    pointer-events: none;
}

#pain-point-main .pp-info-tip-panel strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #111827;
}

#pain-point-main .pp-info-tip:hover .pp-info-tip-panel,
#pain-point-main .pp-info-tip:focus-within .pp-info-tip-panel {
    display: block;
}

#pain-point-main .pp-meta-value {
    font-size: 0.875rem;
    color: var(--pp-view-body);
    line-height: 1.4;
    min-width: 0;
}

#pain-point-main .pp-score-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 999px;
    line-height: 1.25;
    white-space: nowrap;
}

#pain-point-main .pp-score-badge--severity-low {
    color: #166534;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

#pain-point-main .pp-score-badge--severity-mid {
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

#pain-point-main .pp-score-badge--severity-high {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

#pain-point-main .pp-score-badge--frequency-low {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

#pain-point-main .pp-score-badge--frequency-mid {
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

#pain-point-main .pp-score-badge--frequency-high {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

#pain-point-main .pp-score-badge--impact-low {
    color: #166534;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

#pain-point-main .pp-score-badge--impact-mid {
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

#pain-point-main .pp-score-badge--impact-high {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

#pain-point-main .pp-score-badge--neutral {
    color: var(--pp-view-muted);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

#pain-point-main .pp-linked-metric-link {
    color: #1447e6;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#pain-point-main .pp-linked-metric-link:hover {
    color: #1d4ed8;
}

#pain-point-main .pp-meta-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

#pain-point-main .pp-meta-list .pp-meta-item {
    display: grid;
    grid-template-columns: minmax(7rem, 10rem) 1fr;
    gap: 8px 16px;
}

#pain-point-main .pp-meta-list .pp-meta-item dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pp-view-muted);
}

#pain-point-main .pp-meta-list .pp-meta-item dd {
    margin: 0;
    font-size: 0.875rem;
    color: var(--pp-view-body);
    line-height: 1.45;
}

#pain-point-main .pp-empty-state {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
}

#pain-point-main .pp-empty-state p {
    margin: 0 0 4px;
}

#pain-point-main .pp-empty-state p:last-child {
    margin-bottom: 0;
}

#pain-point-main .pp-resolution-summary {
    margin: 0;
}

#pain-point-main .pp-view-table-wrap {
    border: 1px solid var(--pp-view-border);
    border-radius: 10px;
    overflow: hidden;
}

#pain-point-main .pp-view-research-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pp-view-border);
}

#pain-point-main .pp-view-research-table td {
    padding: 14px 16px;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

#pain-point-main .pp-view-research-table tr:last-child td {
    border-bottom: none;
}

#pain-point-main .pp-view-research-table .rt-task-row:hover td {
    background: #f8fafc;
}

#pain-point-main .pp-view-research-table .rt-task-row-link {
    color: var(--pp-view-heading);
    font-weight: 600;
}

#pain-point-main .pp-view-research-table .rt-task-row-link:hover {
    color: #1447e6;
}

#pain-point-main .pp-view-research-table .rt-platform-pill {
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.75rem;
}

#pain-point-main .pp-view-research-table .rt-platform-pills-empty {
    color: #94a3b8;
    font-style: italic;
}

@media (max-width: 960px) {
    #pain-point-main .pp-insight-header {
        flex-wrap: wrap;
        align-items: flex-start;

    #pain-point-main .pp-meta-grid--scores,
    #pain-point-main .pp-meta-grid--primary,
    #pain-point-main .pp-meta-grid--context,
    }
    #pain-point-main .pp-meta-grid--dates {
        grid-template-columns: repeat(2, minmax(0, 1fr));

    #pain-point-main .pp-meta-grid--dates .pp-meta-item:nth-child(1),
    #pain-point-main .pp-meta-grid--dates .pp-meta-item:nth-child(2),
    }
    #pain-point-main .pp-meta-grid--dates .pp-meta-item:nth-child(3) {
        grid-column: auto;
}

}
@media (max-width: 640px) {
    #pain-point-main .pp-view-card {
        padding: 20px;

    }
    #pain-point-main .pp-insight-card {
        padding: 18px 20px;

    }
    #pain-point-main .pp-insight-header-main {
        align-items: flex-start;

    }
    #pain-point-main .pp-status-badge {
        align-self: flex-start;

    }
    #pain-point-main .project-header-actions {
        width: 100%;
        justify-content: stretch;

    }
    #pain-point-main .project-header-actions .btn {
        flex: 1 1 auto;
        justify-content: center;

    #pain-point-main .pp-meta-grid--scores,
    #pain-point-main .pp-meta-grid--primary,
    #pain-point-main .pp-meta-grid--context,
    }
    #pain-point-main .pp-meta-grid--dates {
        grid-template-columns: 1fr;

    }
    #pain-point-main .pp-meta-list .pp-meta-item {
        grid-template-columns: 1fr;
        gap: 2px;
}

}
.ur-report-link-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--brand-strong);
    background: var(--brand-soft);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.ur-report-link {
    word-break: break-all;
}

/* Research task view page */
#research-task-main {
    --rt-view-border: #e5e7eb;
    --rt-view-heading: #111827;
    --rt-view-muted: #6b7280;
    --rt-view-body: #374151;
}

#research-task-main .rt-view-subtitle {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 42rem;
}

#research-task-main .project-header {
    align-items: center;
}

#research-task-main .project-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

#research-task-main .rt-view-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    max-width: 100%;
}

#research-task-main .rt-view-card {
    background: #ffffff;
    border: 1px solid var(--rt-view-border);
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

#research-task-main .rt-view-card-heading {
    margin: 0 0 20px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--rt-view-heading);
    line-height: 1.4;
}

#research-task-main .rt-view-card .field-hint {
    margin: -8px 0 20px;
    font-size: 0.875rem;
    line-height: 1.55;
}

#research-task-main .rt-summary-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    max-width: 100%;
}

#research-task-main .rt-summary-divider {
    border: 0;
    border-top: 1px solid var(--rt-view-border);
    margin: 0;
}

#research-task-main .rt-description-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#research-task-main .rt-description-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--rt-view-heading);
    white-space: pre-wrap;
    word-break: break-word;
}

#research-task-main .rt-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 40px;
    min-width: 0;
    max-width: 100%;
}

#research-task-main .rt-headline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

#research-task-main .rt-meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

#research-task-main .rt-meta-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--rt-view-muted);
    line-height: 1.25;
}

#research-task-main .rt-meta-value {
    font-size: 0.875rem;
    color: var(--rt-view-body);
    line-height: 1.45;
    min-width: 0;
}

#research-task-main .rt-not-recorded {
    color: #94a3b8;
    font-style: italic;
}

#research-task-main .rt-report-link {
    color: #1447e6;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

#research-task-main .rt-report-link:hover {
    color: #1d4ed8;
}

#research-task-main .rt-headline-note {
    margin: 0;
    font-size: 0.875rem;
}

#research-task-main .rt-platform-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#research-task-main .rt-platform-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

#research-task-main .rt-platform-pills-empty {
    color: #94a3b8;
    font-size: 0.875rem;
    font-style: italic;
}

#research-task-main .rt-journey-map-outer {
    min-width: 0;
    max-width: 100%;
}

#research-task-main .rt-journey-context {
    margin-top: 0;
    min-width: 0;
    max-width: 100%;
}

#research-task-main .rt-journey-context-header {
    margin-bottom: 12px;
}

#research-task-main .rt-journey-context-title {
    margin: 0 0 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rt-view-heading);
}

#research-task-main .rt-journey-context-help {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--rt-view-muted);
}

#research-task-main .rt-journey-map-table {
    --rt-journey-label-width: 140px;
    --rt-stage-row-height: 88px;
    --rt-description-row-height: 220px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    min-width: 0;
    max-width: 100%;
}

#research-task-main .rt-journey-map-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: #fafbfc;
    min-width: 0;
    max-width: 100%;
}

#research-task-main .rt-journey-map-grid {
    display: grid;
    grid-template-columns: var(--rt-journey-label-width) repeat(var(--rt-journey-cols, 1), minmax(220px, 240px));
    grid-template-rows: var(--rt-stage-row-height) var(--rt-description-row-height);
    width: max-content;
    min-width: 100%;
}

#research-task-main .rt-journey-map-label-cell {
    position: sticky;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    padding: 12px 14px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 6px rgba(15, 23, 42, 0.05);
}

#research-task-main .rt-journey-map-label-cell--stages {
    background: #f1f5f9;
    border-bottom: 1px solid #dbe1ea;
}

#research-task-main .rt-journey-map-label-cell--description {
    background: #fafbfc;
}

#research-task-main .rt-journey-map-stage,
#research-task-main .rt-journey-map-description {
    height: 100%;
    min-height: 0;
    border-right: 1px solid #e8edf3;
    box-sizing: border-box;
}

#research-task-main .rt-journey-map-stage {
    padding: 12px 14px;
    text-align: left;
    background: #f1f5f9;
    border-bottom: 1px solid #dbe1ea;
    overflow: hidden;
}

#research-task-main .rt-journey-map-stage.is-selected {
    background: #ecfdf5;
    border-bottom-color: #22c55e;
    box-shadow: inset 0 0 0 1px #22c55e;
}

#research-task-main .rt-journey-map-description {
    padding: 12px 14px;
    font-size: 0.8125rem;
    line-height: 1.5;
    background: #ffffff;
    color: #64748b;
    overflow: hidden;
}

#research-task-main .rt-journey-map-description.is-selected {
    background: #ecfdf5;
    color: #166534;
    box-shadow: inset 0 0 0 1px #22c55e;
}

#research-task-main .rt-journey-map-stage:last-of-type,
#research-task-main .rt-journey-map-description:last-of-type {
    border-right: 0;
}

#research-task-main .rt-journey-map-description-text {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#research-task-main .rt-journey-step-number {
    display: block;
    margin-bottom: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#research-task-main .rt-journey-map-stage.is-selected .rt-journey-step-number {
    color: #16a34a;
}

#research-task-main .rt-journey-step-title-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

#research-task-main .rt-journey-step-check-icon {
    display: block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

#research-task-main .rt-journey-step-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1.4;
}

#research-task-main .rt-journey-step-title-line .rt-journey-step-title {
    flex: 1 1 auto;
    min-width: 0;
}

#research-task-main .rt-journey-map-stage.is-selected .rt-journey-step-title {
    color: #064e3b;
}

#research-task-main .rt-empty-state {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
}

#research-task-main .rt-empty-state p {
    margin: 0 0 4px;
}

#research-task-main .rt-empty-state p:last-child {
    margin-bottom: 0;
}

#research-task-main .rt-view-table-wrap {
    border: 1px solid var(--rt-view-border);
    border-radius: 10px;
    overflow: hidden;
}

#research-task-main .rt-linked-pain-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rt-view-border);
}

#research-task-main .rt-linked-pain-table td {
    padding: 14px 16px;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

#research-task-main .rt-linked-pain-table tr:last-child td {
    border-bottom: none;
}

#research-task-main .rt-linked-pain-table .pp-task-row:hover td {
    background: #f8fafc;
}

#research-task-main .rt-linked-pain-table .pp-task-row-link,
#research-task-main .rt-linked-pain-table .pp-task-desc-cell {
    color: var(--rt-view-heading);
    font-weight: 600;
}

#research-task-main .rt-linked-pain-table .pp-task-row-link:hover {
    color: #1447e6;
}

#research-task-main .rt-linked-pain-table .pp-task-desc-cell {
    max-width: 18rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-weight: 500;
}

#research-task-main .rt-linked-pain-table .pp-platform-tasks-cell {
    max-width: 14rem;
}

#research-task-main .rt-linked-pain-table .rt-platform-pill {
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.75rem;
}

@media (max-width: 960px) {
    #research-task-main .rt-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 28px;

    }
    #research-task-main .rt-headline-grid {
        grid-template-columns: 1fr;
}

}
@media (max-width: 640px) {
    #research-task-main .rt-view-card {
        padding: 20px;

    }
    #research-task-main .rt-meta-grid {
        grid-template-columns: 1fr;
        gap: 18px;

    }
    #research-task-main .rt-journey-map-table {
        --rt-journey-label-width: 115px;

    }
    #research-task-main .rt-journey-map-label-cell {
        padding: 10px 10px;

    #research-task-main .rt-journey-map-stage,
    }
    #research-task-main .rt-journey-map-description {
        padding: 10px 12px;

    }
    #research-task-main .project-header {
        align-items: start;

    }
    #research-task-main .project-header-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;

    }
    #research-task-main .project-header-actions .btn {
        flex: 0 1 auto;
}

}

/* â€”â€” Platform Settings (Step 1) â€”â€” */

.platform-settings-page {
    max-width: none;
}

/* Tab panels use `hidden`; do not set display:grid without :not([hidden]) or both panels stay visible. */
.platform-settings-tab-panel[hidden] {
    display: none !important;
}

.platform-settings-tab-panel:not([hidden]) {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.platform-settings-intro {
    margin: 0.35rem 0 0;
}

.platform-settings-loading,
.platform-settings-error {
    margin-bottom: 1rem;
}

.platform-settings-loading p,
.platform-settings-error p {
    margin: 0;
}

.platform-settings-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.platform-settings-section-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.platform-settings-section-header p {
    margin: 0;
}

.platform-settings-readiness-note {
    margin: 0;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.45;
}

.platform-settings-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.platform-settings-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.platform-settings-card-header h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.platform-settings-card-header p {
    margin: 0;
}

.platform-settings-table-wrap {
    overflow-x: auto;
}

.platform-settings-table {
    width: 100%;
    min-width: 640px;
}

.platform-settings-table td {
    vertical-align: middle;
}

.platform-settings-actions-cell {
    white-space: nowrap;
}

.platform-settings-actions-cell .btn + .btn {
    margin-left: 0.35rem;
}

.platform-settings-readiness-badge {
    white-space: nowrap;
}

.platform-settings-empty {
    margin: 0;
    padding: 0.5rem 0;
}

.platform-settings-form-panel {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 0.25rem;
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
}

.platform-settings-form-title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
}

.platform-settings-form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.platform-settings-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.platform-settings-advanced {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 0.65rem 0.85rem;
}

.platform-settings-advanced > summary {
    cursor: pointer;
    font-weight: 600;
    color: #334155;
    list-style: none;
}

.platform-settings-advanced > summary::-webkit-details-marker {
    display: none;
}

.platform-settings-advanced > summary::after {
    content: "▾";
    float: right;
    color: var(--muted);
}

.platform-settings-advanced[open] > summary::after {
    transform: rotate(180deg);
}

.platform-settings-advanced-body {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.platform-settings-form-actions {
    margin-top: 0.85rem;
}

.platform-admin-page {
    width: 100%;
    max-width: none;
    margin: 0;
}

.platform-admin-page > * {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.platform-admin-card {
    width: 100%;
}

.platform-admin-page textarea.rte-input {
    min-height: 110px;
    resize: vertical;
}

.platform-admin-page .platform-settings-card-header .rte-section-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.platform-admin-page .platform-settings-card-header {
    margin-bottom: 1.25rem;
}

.platform-admin-message {
    margin: 0 0 1rem;
}

.platform-admin-actions {
    margin-top: 0;
}

.platform-settings-editor {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.platform-settings-editor-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
}

.platform-settings-editor-section > h4,
.platform-settings-editor-section h5 {
    margin: 0;
}

.platform-settings-subform {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
}

.platform-readiness-list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.platform-readiness-list li::before {
    content: "○";
    display: inline-block;
    width: 1.5rem;
    color: var(--muted);
    font-weight: 700;
}

.platform-readiness-list li.is-complete::before {
    content: "✓";
    color: var(--success);
}

.platform-settings-forbidden h2 {
    margin-top: 0;
}

@media (max-width: 720px) {
    .platform-settings-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .platform-settings-actions-cell .btn {
        margin-bottom: 0.35rem;
    }
}

.ai-settings-tab-panel {
    width: 100%;
}

.ai-settings-banner {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--color-accent, #3b6fd4);
}

.ai-settings-scope-note {
    margin: 0 0 0.75rem;
}

.ai-settings-filters-title {
    margin: 0 0 0.75rem;
}

.ai-settings-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem 1rem;
}

.ai-settings-cards,
.ai-settings-flow-grid,
.ai-settings-contract-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ai-settings-card--wide {
    grid-column: 1 / -1;
}

.ai-settings-card--active {
    border-color: var(--color-success, #2d8a4e);
    box-shadow: 0 0 0 1px var(--color-success, #2d8a4e);
}

.ai-settings-pre {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 28rem;
    overflow: auto;
    font-size: 0.8rem;
    line-height: 1.45;
    padding: 0.75rem;
    background: var(--color-surface-muted, #f4f5f7);
    border-radius: 4px;
}

.ai-settings-list {
    margin: 0;
    padding-left: 1.25rem;
}

.ai-settings-prompt-panel {
    margin-bottom: 0.5rem;
}

.ai-settings-table-scroll {
    overflow-x: auto;
}

.ai-settings-cell-template {
    max-width: 18rem;
    white-space: normal;
}

.ai-settings-ranked-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.ai-settings-warnings-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ai-settings-warning-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border, #e2e4e8);
}

.ai-settings-ranking-block {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--color-surface-muted, #f4f5f7);
    border-radius: 4px;
}

/* Organisation onboarding (Phase 1e) */
.onboarding-page .onboarding-container {
    max-width: 640px;
    margin: 0 auto;
}

.onboarding-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.onboarding-account-line {
    margin: 0;
    font-size: 14px;
}

.onboarding-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.onboarding-tab {
    flex: 1 1 auto;
    min-width: 140px;
    padding: 0.625rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.onboarding-tab.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.onboarding-tab-panel[hidden] {
    display: none !important;
}

.onboarding-tab-panel:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.onboarding-intro,
.onboarding-note {
    font-size: 14px;
    line-height: 1.5;
}

.onboarding-pending-card {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #fde68a;
    background: #fffbeb;
}

.onboarding-section-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.onboarding-pending-copy {
    margin: 0 0 0.75rem;
    font-size: 14px;
    line-height: 1.5;
}

.onboarding-pending-list {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.onboarding-pending-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.onboarding-pending-org {
    font-weight: 600;
}

.onboarding-match-card {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.onboarding-match-title {
    margin: 0;
    font-size: 1.125rem;
}

.onboarding-match-actions {
    margin-top: 0.5rem;
}

.onboarding-footer {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.org-access-page .org-access-section + .org-access-section {
    margin-top: 1.25rem;
}

.org-access-page {
    max-width: none;
    width: 100%;
}

.org-access-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: none;
    align-items: start;
}

@media (max-width: 900px) {
    .org-access-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.org-access-card {
    padding: 1.5rem;
    min-width: 0;
    height: 100%;
}

.org-access-card-header {
    margin-bottom: 1rem;
}

.org-access-card-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.org-access-card-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.org-access-queue-tabs {
    margin-top: 0.5rem;
}

.org-access-tab-panel[hidden] {
    display: none !important;
}

.org-access-tab-panel:not([hidden]) {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}

.org-access-invite-form.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0;
}

.org-access-invite-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
}

.org-access-invite-form .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.org-access-invite-form .form-input,
.org-access-invite-form .form-select,
.org-access-invite-form .form-textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 15px;
    line-height: 1.4;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    box-sizing: border-box;
}

.org-access-invite-form .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}

.org-access-invite-form .form-textarea {
    min-height: 4.5rem;
    resize: vertical;
}

.org-access-invite-form .form-input:focus,
.org-access-invite-form .form-select:focus,
.org-access-invite-form .form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.org-access-form-actions {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}

.org-access-empty {
    font-size: 14px;
    color: #6b7280;
    padding: 0.75rem 0;
}

.org-access-queue-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.org-access-queue-item {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #fafafa;
}

.org-access-queue-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.org-access-queue-message {
    margin: 0 0 0.75rem;
    font-size: 14px;
    line-height: 1.5;
}

.org-access-queue-meta {
    font-size: 13px;
    margin-bottom: 0.75rem;
}

.org-access-queue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.org-access-queue-actions .form-select-sm {
    min-width: 11rem;
    padding: 0.45rem 2rem 0.45rem 0.625rem;
    font-size: 14px;
}

.org-access-feedback {
    margin-top: 0.5rem;
    font-size: 13px;
}

.org-access-feedback--success {
    color: #166534;
}

.org-access-feedback--error {
    color: #991b1b;
}

.org-access-feedback[hidden] {
    display: none !important;
}

.org-access-members-table-wrap {
    overflow-x: auto;
}

.org-access-members-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.org-access-members-table th,
.org-access-members-table td {
    padding: 0.625rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    vertical-align: middle;
}

.org-access-members-table th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted, #6b7280);
}

.org-access-members-table tbody tr:last-child td {
    border-bottom: none;
}

.org-access-members-action {
    white-space: nowrap;
}

.settings-page .settings-tab-panel[hidden] {
    display: none !important;
}

.settings-profile-list {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.5rem;
    max-width: 36rem;
}

.settings-profile-item dt {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted, #6b7280);
    margin: 0 0 0.25rem;
}

.settings-profile-item dd {
    margin: 0;
    font-size: 1rem;
}

.settings-profile-actions {
    margin-top: 0.5rem;
}

.settings-profile-logout-form {
    margin: 0;
}

.settings-profile-access-groups {
    margin: 0 0 1.5rem;
    max-width: 40rem;
}

.settings-profile-access-heading {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.settings-profile-company-list,
.settings-profile-bu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.settings-profile-company-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.75rem;
}

.settings-profile-company-name {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.settings-profile-bu-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--color-border, #e5e7eb);
}

.bu-switcher-company-heading {
    background: var(--color-surface-muted, #f3f4f6);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.65rem 0.75rem;
    color: var(--color-text, #111827);
}

.workspace-context-line {
    margin: 0.25rem 0 0.5rem;
}

.org-access-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.org-access-list-item {
    padding: 0.875rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #fff;
}

.org-access-list-title {
    margin-bottom: 0.35rem;
}

.org-access-list-message {
    margin: 0.25rem 0 0.5rem;
}

.org-access-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.org-access-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 720px) {
    .org-access-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Dashboard welcome modal (post organisation creation) */
.exloop-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.45);
}

.exloop-modal-overlay[hidden] {
    display: none !important;
}

.exloop-modal-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exloop-modal-card h2 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 500;
    color: #1a1a1a;
}

.exloop-modal-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

.exloop-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .auth-page .auth-card.auth-card--single .auth-main {
        padding: 32px 24px;
    }
}
