:root { --step-inactive: #e5e7eb; --step-active: var(--transcend-blue); --step-complete: var(--metric-green); }
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.auth-copy { margin: 16px 0 24px; }
.auth-copy-tight { margin-bottom: 16px; }
.auth-copy-muted { color: var(--text-secondary); }
.initially-hidden { display: none; }
.page-contract,
.source-freshness { margin: 0 0 18px; padding: 18px 20px; border: 1px solid var(--border-color); border-radius: 8px; background: #f8fafc; }
.page-contract { border-left: 4px solid #1e3a8a; }
.page-contract h2 { font-size: 1.15rem; color: var(--text-primary); margin: 0 0 8px; }
.page-contract p,
.source-freshness p { margin: 0; color: var(--text-primary); line-height: 1.6; }
.access-summary { margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.access-summary > div { border: 1px solid var(--border-color); border-radius: 8px; background: #ffffff; padding: 14px; }
.access-label,
.source-label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.access-summary span:last-child { color: var(--text-primary); font-size: 0.9rem; line-height: 1.5; }
.source-freshness { border-left: 4px solid #0f766e; background: #f0fdfa; }
.header { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; margin-bottom: 24px; border-bottom: 2px solid var(--border-color); }
.logo-section { display: flex; align-items: center; gap: 16px; }
.logo-section a { display: flex; align-items: center; }
.logo { height: 32px; width: auto; }
.logo-divider { width: 1px; height: 24px; background: var(--border-color); }
.logo-subtitle { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.step-indicator { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 24px 0; margin-bottom: 32px; background: white; border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s ease; min-width: 100px; }
.step:hover { background: var(--bg-primary); }
.step.disabled { cursor: not-allowed; opacity: 0.5; }
.step-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem; background: var(--step-inactive); color: white; }
.step.active .step-circle { background: var(--step-active); box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.2); }
.step.complete .step-circle { background: var(--step-complete); }
.step-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.step.active .step-label { color: var(--transcend-blue); }
.step.complete .step-label { color: var(--metric-green); }
.step-connector { width: 40px; height: 2px; background: var(--step-inactive); }
.step-connector.complete { background: var(--step-complete); }
.content-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border-color); padding: 32px; margin-bottom: 24px; }
.step-content { display: none; }
.step-content.active { display: block; }
.step-title { font-size: 1.5rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.step-description { font-size: 1rem; color: var(--text-secondary); margin-bottom: 24px; }

/* Configure */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.form-section-label { margin-bottom: 8px; }
.form-input { padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit; }
.form-input:focus { outline: none; border-color: var(--transcend-blue); box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1); }
.stage-select { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.stage-option { padding: 12px 20px; border: 2px solid var(--border-color); border-radius: var(--radius-md); cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.stage-option:hover { border-color: var(--transcend-blue); }
.stage-option.selected { border-color: var(--transcend-blue); background: var(--transcend-light); color: var(--transcend-blue); }

/* Checklist */
.category-section { margin-bottom: 32px; }
.category-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--transcend-blue); color: white; border-radius: var(--radius-sm); margin-bottom: 12px; cursor: pointer; }
.category-name { font-size: 0.95rem; font-weight: 600; }
.category-progress { font-size: 0.85rem; opacity: 0.9; }
.checklist-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); margin-bottom: 8px; transition: all 0.2s; }
.checklist-item:hover { background: var(--bg-primary); }
.checklist-item.done { background: #f0fdf4; border-color: #bbf7d0; }
.checklist-item.in-progress { background: #fffbeb; border-color: #fde68a; }
.checklist-item.na { background: var(--bg-primary); opacity: 0.6; text-decoration: line-through; }
.item-status { display: flex; gap: 4px; }
.status-btn { width: 28px; height: 28px; border: 1px solid var(--border-color); border-radius: 4px; cursor: pointer; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; background: white; transition: all 0.15s; }
.status-btn:hover { background: var(--bg-primary); }
.status-btn.active-done { background: var(--metric-green); color: white; border-color: var(--metric-green); }
.status-btn.active-ip { background: #f59e0b; color: white; border-color: #f59e0b; }
.status-btn.active-na { background: #9ca3af; color: white; border-color: #9ca3af; }
.item-text { flex: 1; font-size: 0.9rem; color: var(--text-primary); }
.item-stage-tag { font-size: 0.65rem; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: var(--bg-primary); color: var(--text-secondary); }

/* Overall Progress */
.overall-progress { padding: 20px; background: var(--bg-primary); border-radius: var(--radius-md); margin-bottom: 24px; }
.overall-progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.overall-progress-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.overall-progress-pct { font-size: 1.5rem; font-weight: 700; color: var(--transcend-blue); }
.progress-bar-lg { height: 12px; background: var(--border-color); border-radius: 6px; overflow: hidden; }
.progress-bar-lg .fill { height: 100%; background: var(--metric-green); transition: width 0.3s; border-radius: 6px; }
.progress-fill-empty { width: 0%; }

/* Report */
.report-section { margin-bottom: 24px; }
.report-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.report-stat { text-align: center; padding: 16px; background: var(--bg-primary); border-radius: var(--radius-sm); }
.report-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.report-stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--text-secondary); margin-top: 4px; }
.priority-list { list-style: none; padding: 0; }
.priority-list li { padding: 8px 12px; border-left: 3px solid #dc2626; margin-bottom: 8px; background: #fef2f2; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.9rem; }
.priority-heading { font-size: 1rem; font-weight: 600; margin-bottom: 12px; color: #dc2626; }
.report-recipient-heading { font-size: 1rem; margin-bottom: 12px; margin-top: 24px; }

.btn { padding: 12px 24px; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 500; cursor: pointer; border: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--transcend-blue); color: white; }
.btn-primary:hover { background: var(--transcend-blue-dark); }
.btn-primary:disabled { background: var(--border-color); cursor: not-allowed; }
.btn-secondary { background: white; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-primary); }
.btn-success { background: var(--metric-green); color: white; }
.nav-buttons { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border-color); }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; }
.spinner-lg { width: 48px; height: 48px; border: 3px solid var(--border-color); border-top-color: var(--transcend-blue); margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
#loadingState, #authRequired, #accessDenied { text-align: center; padding: 80px 20px; }
#appContent.hidden { display: none; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; margin-bottom: 24px; }
.back-link:hover { color: var(--transcend-blue); }
.footer { text-align: center; padding: 40px 20px; color: var(--text-secondary); font-size: 0.85rem; border-top: 1px solid var(--border-color); margin-top: 40px; }
.footer p { margin: 4px 0; }
.recipients-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.recipient-tag { font-size: 0.85rem; padding: 6px 12px; background: var(--transcend-light); color: var(--transcend-blue); border-radius: 20px; }
.lock-confirmation { background: #fef3c7; border: 1px solid #f59e0b; border-radius: var(--radius-md); padding: 16px; margin-bottom: 24px; }
.lock-confirmation p { font-size: 0.9rem; color: #92400e; margin: 0; }
.success-state { text-align: center; padding: 40px; }
.success-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; min-height: 40px; padding: 10px 18px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.document-id { font-size: 0.85rem; color: var(--text-secondary); }
.success-actions { margin-top: 24px; }

@media (max-width: 768px) {
    .step-indicator { flex-wrap: wrap; gap: 12px; }
    .step-connector { display: none; }
    .report-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .access-summary { grid-template-columns: 1fr; }
}
