/* dashboard.css — dashboard (dash-*), reports, preferences, about, billing. */

/* === DASHBOARD === */
/* === DASHBOARD - ELEVATED DESIGN === */
.dashboard {
    max-width: 900px;
    margin: 0 auto;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-greeting {
    margin-bottom: 1.5rem;
}

.greeting-time {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-terracotta);
    margin-bottom: 0.5rem;
}

.dashboard-greeting h1 {
    font-size: 2rem;
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Permit Pulse Section */
.permit-pulse {
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
}

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

.pulse-header h2 {
    font-size: 1.125rem;
    margin: 0;
}

.pulse-jurisdiction {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.pulse-stats {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1.5rem;
}

.pulse-stat {
    text-align: center;
    padding: 1rem 0;
}

.pulse-stat-featured {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border-left: 3px solid var(--accent-terracotta);
}

.pulse-stat-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pulse-stat-featured .pulse-stat-value {
    font-size: 3rem;
    color: var(--accent-terracotta);
}

.pulse-stat-label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.pulse-stat-trend {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.pulse-stat-trend.positive {
    color: var(--color-success);
}

.pulse-stat-trend.negative {
    color: var(--color-error);
}

/* Recent Reports Section */
.recent-reports {
    margin-bottom: 2.5rem;
}

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

.reports-header h2 {
    font-size: 1.125rem;
    margin: 0;
}

.view-all-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8125rem;
    color: var(--accent-terracotta);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.view-all-link:hover {
    color: var(--accent-gold);
}

.report-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.report-card {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.report-card:hover {
    border-color: var(--accent-terracotta);
    background: var(--bg-elevated);
}

.report-card-date {
    text-align: center;
}

.report-day {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.report-month {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.report-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.report-card-count {
    font-weight: 600;
    color: var(--text-primary);
}

.report-card-breakdown {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Account Links */
.account-links {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
}

.account-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: var(--text-body);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.account-link:hover {
    color: var(--accent-terracotta);
}

.account-link-label {
    font-size: 0.9375rem;
}

.account-link-arrow {
    font-size: 1.25rem;
    opacity: 0.5;
    transition: transform var(--transition-fast);
}

.account-link:hover .account-link-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* Legacy stat-card support */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    position: relative;
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-terracotta);
    box-shadow: var(--shadow-glow);
}

.stat-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-trend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.stat-trend.positive {
    color: var(--color-success);
}

.stat-trend.negative {
    color: var(--color-error);
}

.stat-trend .icon {
    width: 16px;
    height: 16px;
}

.quick-actions {
    margin-bottom: 3rem;
}

.quick-actions h2 {
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.empty-state .icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* === REPORTS PAGE - ELEVATED === */
.reports-page {
    max-width: 900px;
    margin: 0 auto;
}

.reports-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.reports-page-header h1 {
    margin-bottom: 0.25rem;
}

.reports-page-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

.back-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--accent-terracotta);
}

.date-filter {
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.date-filter form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-fields {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.filter-separator {
    color: var(--text-muted);
    padding-bottom: 0.75rem;
}

.date-filter .form-group {
    margin-bottom: 0;
}

.date-filter label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.date-filter input[type="date"] {
    width: auto;
    min-width: 150px;
    margin-bottom: 0;
}

/* Reports List */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.report-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

.report-row:last-child {
    border-bottom: none;
}

.report-row:hover {
    background: var(--bg-elevated);
}

.report-row-date {
    display: flex;
    flex-direction: column;
}

.report-row-day {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.report-row-full {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.report-row-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.report-row-total {
    font-weight: 600;
    color: var(--text-primary);
}

.report-row-breakdown {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.report-row-actions {
    display: flex;
    gap: 0.5rem;
}

/* Legacy table support */
.reports-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.reports-table th,
.reports-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.reports-table th {
    background: var(--bg-elevated);
    font-family: 'Crimson Pro', serif;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.reports-table td {
    color: var(--text-body);
}

.reports-table tr:hover td {
    background: var(--bg-elevated);
}

.reports-table tr:last-child td {
    border-bottom: none;
}

.no-reports {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

/* === PREFERENCES PAGE - ELEVATED === */
.preferences-page {
    max-width: 700px;
    margin: 0 auto;
}

.preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.preferences-header h1 {
    margin-bottom: 0.25rem;
}

.preferences-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

/* Subscription Status */
.subscription-status {
    display: flex;
    gap: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.status-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Preference Form */
.preferences-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pref-fieldset {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pref-fieldset-legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.pref-fieldset .pref-section + .pref-section {
    padding-top: 0;
}

.pref-fieldset .preferences-actions {
    margin-top: -0.25rem;
    padding: 0 1.5rem 1.5rem;
}

.pref-section {
    background: var(--bg-paper);
    border: none;
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.pref-fieldset .pref-section {
    margin-bottom: 0;
}

.pref-section-header {
    margin-bottom: 1.25rem;
}

.pref-section-header h2 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.pref-section-header p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Toggle switches */
.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-ink);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-item:hover {
    border-color: var(--accent-terracotta);
}

.toggle-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.toggle-item-label {
    font-weight: 500;
    color: var(--text-primary);
}

.toggle-item-description {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* CSS-only toggle switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    transition: var(--transition-fast);
    border-radius: 26px;
}

.toggle-switch .slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-muted);
    transition: var(--transition-fast);
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: var(--accent-terracotta);
    border-color: var(--accent-terracotta);
}

.toggle-switch input:checked + .slider::before {
    transform: translateX(22px);
    background-color: var(--bg-ink);
}

/* Checkbox Cards */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
}

.checkbox-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1rem;
    background: var(--bg-ink);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.checkbox-card:hover {
    border-color: var(--accent-terracotta);
}

.checkbox-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-card:has(input:checked) {
    background: rgba(193, 127, 89, 0.15);
    border-color: var(--accent-terracotta);
}

.checkbox-card-label {
    font-size: 0.9375rem;
    color: var(--text-body);
}

.checkbox-card:has(input:checked) .checkbox-card-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* Bundle Picker */
.bundle-picker {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
}

.bundle-card {
    display: flex;
    align-items: flex-start;
    justify-content: left;
    text-align: left;
    padding: 1rem 1.125rem;
}

.checkbox-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-left: 0.25rem;
}

.checkbox-card-title {
    font-family: var(--font-headline);
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.checkbox-card-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.bundle-check-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    border: 1.5px solid var(--border-subtle);
    border-radius: 0.25rem;
    background: transparent;
    transition: all var(--transition-fast);
    margin-top: 0.125rem;
    margin-right: 0.5rem;
    color: transparent;
}

.bundle-check-indicator svg {
    width: 0.75rem;
    height: 0.75rem;
}

.bundle-card:has(input:checked) .bundle-check-indicator {
    background: var(--accent-terracotta);
    border-color: var(--accent-terracotta);
    color: #fff;
}

.bundle-card:has(input:checked) .checkbox-card-title {
    color: var(--accent-terracotta-light);
}

.coverage-pricing {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.875rem 1.125rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

/* Signup pricing breakdown (scoped to avoid affecting dashboard) */
.signup-pricing-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0;
}

.pricing-highlight--cta + .signup-pricing-breakdown + .btn-large {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.pricing-breakdown-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coverage-price-label {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.coverage-price-value {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    color: var(--accent-gold);
    font-weight: 600;
}

@media (min-width: 640px) {
    .bundle-picker {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Cost Input */
.cost-input-wrapper {
    display: flex;
    align-items: center;
    max-width: 180px;
}

.cost-prefix {
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--text-muted);
    font-family: 'IBM Plex Mono', monospace;
}

.cost-input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 0;
}

/* Format Options */
.format-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.format-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-ink);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.format-option:hover {
    border-color: var(--accent-terracotta);
}

.format-option:has(input:checked) {
    background: rgba(193, 127, 89, 0.1);
    border-color: var(--accent-terracotta);
}

.format-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-terracotta);
    flex-shrink: 0;
}

.format-option-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.format-option-label {
    font-weight: 500;
    color: var(--text-primary);
}

.format-option-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Preferences Actions */
.preferences-actions {
    margin-top: 1.25rem;
}

/* === DANGER ZONE === */
.danger-zone {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(199, 91, 91, 0.3);
    border-radius: var(--radius-md);
    background: rgba(199, 91, 91, 0.05);
}

.danger-zone h3 {
    font-size: 1rem;
    color: var(--color-error);
    margin-bottom: 0.5rem;
}

.danger-zone p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Not Subscribed */
.not-subscribed {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.not-subscribed h2 {
    margin-bottom: 0.75rem;
}

.not-subscribed p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Legacy checkbox support */
.checkbox-group {
    display: grid;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-ink);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checkbox-label:hover {
    border-color: var(--accent-terracotta);
}

.checkbox-label input {
    margin: 0;
}

.checkbox-label span {
    color: var(--text-body);
}

/* Legacy preference-section support */
.preference-section {
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.preference-section h2 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

/* === ABOUT PAGE === */
/* === ABOUT PAGE - EDITORIAL LAYOUT === */
.about-page {
    max-width: 800px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeUp 0.6s ease-out both;
}

.about-eyebrow {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-terracotta);
    margin-bottom: 1rem;
}

.about-header h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-header .lead {
    font-size: 1.125rem;
    color: var(--text-body);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.about-section-number {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-terracotta);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* About Sources Section */
.about-sources {
    margin-bottom: 4rem;
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.about-sources-header {
    margin-bottom: 1rem;
}

.about-sources-header h2 {
    margin-bottom: 0;
}

.about-sources-intro {
    color: var(--text-body);
    margin-bottom: 2rem;
}

.data-sources {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.data-source-card {
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition-smooth);
}

.data-source-card:hover {
    border-color: var(--accent-terracotta);
    transform: translateY(-2px);
}

.source-jurisdiction {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.source-portal {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-terracotta);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.data-source-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.5;
}

/* About Data Section */
.about-data {
    margin-bottom: 4rem;
    animation: fadeUp 0.6s ease-out 0.2s both;
}

.about-data-header {
    margin-bottom: 1.5rem;
}

.about-data-header h2 {
    margin-bottom: 0;
}

.data-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-paper);
}

.data-field {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
}

.data-field:nth-child(even) {
    border-right: none;
}

.data-field:nth-last-child(-n+2) {
    border-bottom: none;
}

.data-field-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-terracotta);
    margin-bottom: 0.25rem;
}

.data-field-value {
    font-size: 0.9375rem;
    color: var(--text-body);
}

.data-fields-disclaimer {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
}

/* About — Two Ways In (product paths) */
.about-products {
    margin-bottom: 4rem;
    animation: fadeUp 0.6s ease-out 0.15s both;
}
.about-products-header {
    margin-bottom: 1.5rem;
}
.about-products-header h2 {
    margin-bottom: 0;
}
.about-products-intro {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 36rem;
}
.product-paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}
.product-path {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-paper);
    transition: border-color 250ms ease, transform 250ms ease;
}
.product-path:hover {
    border-color: rgba(193, 127, 89, 0.4);
    transform: translateY(-2px);
}
.product-path-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-terracotta-light);
}
.product-path-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.75rem;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}
.product-path-text {
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-body);
    margin: 0;
    max-width: 38ch;
}
.product-path-spec {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin: 0.35rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-subtle);
}
.product-path-link {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-terracotta-light);
    text-decoration: none;
    margin-top: auto;
    padding-top: 0.85rem;
    transition: color 180ms ease;
}
.product-path-link:hover {
    color: var(--accent-terracotta);
}

@media (max-width: 760px) {
    .product-paths {
        grid-template-columns: 1fr;
    }
    .product-path {
        padding: 1.5rem 1.25rem;
    }
}

/* About Process Section */
.about-process {
    margin-bottom: 4rem;
    animation: fadeUp 0.6s ease-out 0.3s both;
}

.about-process-header {
    margin-bottom: 1.5rem;
}

.about-process-header h2 {
    margin-bottom: 0;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-paper);
}

.process-step-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

.process-step-item:last-child {
    border-bottom: none;
}

.process-step-item:hover {
    background: var(--bg-elevated);
}

.process-time {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-terracotta);
}

.process-step-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.process-step-content p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* About Contact Section */
.about-contact {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    animation: fadeUp 0.6s ease-out 0.4s both;
}

.about-contact p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.contact-email {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    color: var(--accent-terracotta);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-email:hover {
    color: var(--accent-gold);
}

/* === BILLING STATUS === */
.billing-status {
    max-width: 700px;
    margin: 0 auto;
}

.billing-card {
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.billing-info h2 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.billing-info .status-badge {
    margin-top: 0.5rem;
}

.billing-price {
    text-align: right;
}

.billing-price .amount {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.billing-price .period {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.billing-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.billing-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.billing-detail-item .label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.billing-detail-item .value {
    font-weight: 500;
    color: var(--text-primary);
}

.billing-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Dashboard (index.html)
   Migrated from app/templates/dashboard/index.html <style> block.
   All selectors use the .dash-* namespace — no wrapper needed.
   ========================================================================== */

/* Dashboard greeting / masthead */
.dash-masthead {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.dash-masthead-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.dash-edition {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-terracotta);
    margin-bottom: 0.5rem;
}

.dash-username {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin: 0 0 0.75rem;
}

.dash-date-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dash-date-divider {
    color: var(--accent-terracotta);
    opacity: 0.5;
}

.dash-masthead-right {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.dash-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-body);
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: 100px;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.dash-action-pill:hover {
    color: var(--accent-terracotta);
    border-color: var(--accent-terracotta);
    background: rgba(193, 127, 89, 0.06);
}

.dash-action-pill .icon {
    width: 14px;
    height: 14px;
}

/* Dashboard container */
.dash-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Section labels */
.dash-section {
    margin-bottom: 2.5rem;
}

.dash-section-label {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.dash-section-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-terracotta);
    flex-shrink: 0;
}

.dash-section-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.dash-section-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-left: auto;
}

.dash-view-all {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-terracotta);
    text-decoration: none;
    margin-left: auto;
    transition: color var(--transition-fast);
}

.dash-view-all:hover {
    color: var(--accent-gold);
}

/* Bento grid */
.dash-bento {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1rem;
}

.dash-bento-hero {
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--accent-terracotta);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    display: flex;
    align-items: flex-end;
    min-height: 180px;
    transition: all var(--transition-fast);
}

.dash-bento-hero:hover {
    border-color: var(--border-medium);
    border-left-color: var(--accent-terracotta);
    box-shadow: var(--shadow-glow);
}

.dash-bento-value-lg {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent-terracotta);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.dash-bento-label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.dash-bento-trend {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.dash-bento-trend.positive {
    color: var(--color-success);
    background: rgba(125, 154, 125, 0.12);
}

.dash-bento-trend.negative {
    color: var(--color-error);
    background: rgba(199, 91, 91, 0.12);
}

.dash-bento-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-bento-card {
    flex: 1;
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all var(--transition-fast);
}

.dash-bento-card:hover {
    border-color: var(--border-medium);
}

.dash-bento-value {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Daily brief / carousel */
.dash-brief {
    margin-top: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent-gold);
    border-radius: var(--radius-md);
    animation: dashCardIn 0.5s ease-out 0.35s both;
    opacity: 0;
}

.dash-brief-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.dash-brief-eyebrow {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-gold);
}

.dash-brief-nav {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.dash-brief-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold);
    opacity: 0.35;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border: none;
    padding: 0;
}

.dash-brief-dot.active {
    opacity: 1;
    transform: scale(1.3);
}

.dash-brief-dot:hover {
    opacity: 0.7;
}

.dash-brief-slide {
    display: none;
}

.dash-brief-slide.active {
    display: block;
    animation: briefFadeIn 0.35s ease-out;
}

.dash-brief-bundle-label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.5625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.dash-brief-text {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.0625rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--text-body);
    margin: 0;
}

@keyframes briefFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .dash-brief-slide.active {
        animation: none;
    }
}

@media (max-width: 768px) {
    .dash-brief {
        padding: 1.25rem 1.5rem;
    }
    .dash-brief-text {
        font-size: 1rem;
    }
}

/* The Wire */
.dash-wire {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    margin-bottom: 2.5rem;
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dash-wire-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    flex-shrink: 0;
    animation: wirePulse 2s ease-in-out infinite;
}

@keyframes wirePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(125, 154, 125, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(125, 154, 125, 0); }
}

.dash-wire-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

.dash-wire-sep {
    color: var(--accent-terracotta);
    opacity: 0.4;
}

/* Report cards (dashboard variant — dash- namespaced) */
.dash-report-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-report-card {
    display: grid;
    grid-template-columns: 70px 1fr 40px;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid transparent;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

.dash-report-card:hover {
    border-left-color: var(--accent-terracotta);
    background: var(--bg-elevated);
    transform: translateX(2px);
}

.dash-report-date {
    text-align: center;
}

.dash-report-day {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.dash-report-month {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.dash-report-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dash-report-count {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.dash-report-breakdown {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.dash-report-action {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    transition: all var(--transition-fast);
}

.dash-report-action .icon {
    width: 18px;
    height: 18px;
    color: var(--accent-terracotta);
}

.dash-report-card:hover .dash-report-action {
    opacity: 1;
}

/* Empty state */
.dash-empty-block {
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.dash-empty-illustration {
    flex-shrink: 0;
    width: 200px;
    color: var(--text-faint);
}

.dash-empty-illustration .hero-building {
    width: 100%;
    height: auto;
}

.dash-empty-content {
    flex: 1;
}

.dash-empty-eyebrow {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-terracotta);
    margin-bottom: 0.75rem;
}

.dash-empty-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.dash-empty-text {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.dash-empty-schedule {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(193, 127, 89, 0.08);
    border: 1px solid rgba(193, 127, 89, 0.15);
    border-radius: var(--radius-md);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-terracotta-light);
}

.dash-empty-schedule .icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Folio bar */
.dash-folio {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.dash-folio-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dash-folio-link:hover {
    background: var(--bg-paper);
    color: var(--accent-terracotta);
}

.dash-folio-link .icon {
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.dash-folio-link:hover .icon {
    opacity: 1;
}

.dash-folio-arrow {
    margin-left: auto;
    font-size: 1.25rem;
    opacity: 0.3;
    transition: all var(--transition-fast);
}

.dash-folio-link:hover .dash-folio-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Entrance animations */
.dash-report-card {
    animation: dashCardIn 0.4s ease-out both;
    opacity: 0;
}

.dash-report-card:nth-child(1) { animation-delay: 0.05s; }
.dash-report-card:nth-child(2) { animation-delay: 0.1s; }
.dash-report-card:nth-child(3) { animation-delay: 0.15s; }
.dash-report-card:nth-child(4) { animation-delay: 0.2s; }
.dash-report-card:nth-child(5) { animation-delay: 0.25s; }

.dash-bento-hero,
.dash-bento-card {
    animation: dashCardIn 0.5s ease-out both;
    opacity: 0;
}

.dash-bento-hero { animation-delay: 0.1s; }
.dash-bento-side .dash-bento-card:nth-child(1) { animation-delay: 0.2s; }
.dash-bento-side .dash-bento-card:nth-child(2) { animation-delay: 0.3s; }

@keyframes dashCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dash-brief,
    .dash-report-card,
    .dash-bento-hero,
    .dash-bento-card,
    .animate-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .dash-wire-dot {
        animation: none;
    }
}

/* Dashboard responsive */
@media (max-width: 768px) {
    .dash-masthead-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .dash-username {
        font-size: 2rem;
    }
    .dash-masthead-right {
        width: 100%;
    }
    .dash-action-pill {
        flex: 1;
        justify-content: center;
    }
    .dash-bento {
        grid-template-columns: 1fr;
    }
    .dash-bento-hero {
        min-height: auto;
        padding: 1.5rem;
    }
    .dash-bento-value-lg {
        font-size: 3.5rem;
    }
    .dash-bento-side {
        flex-direction: row;
    }
    .dash-bento-card {
        padding: 1.25rem;
    }
    .dash-bento-value {
        font-size: 2rem;
    }
    .dash-wire {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .dash-wire-sep {
        display: none;
    }
    .dash-report-card {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    .dash-report-action {
        display: none;
    }
    .dash-report-breakdown {
        display: none;
    }
    .dash-empty-block {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 2rem;
    }
    .dash-empty-illustration {
        width: 160px;
    }
    .dash-section-meta {
        display: none;
    }
}


/* Responsive rules for this file, distributed from the pre-split combined @media block */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .dashboard-actions {
        width: 100%;
    }

    .dashboard-actions .btn {
        flex: 1;
    }

    .pulse-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pulse-stat-featured {
        border-left: none;
        border-top: 3px solid var(--accent-terracotta);
    }

    .report-card {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
    }

    .report-card .btn {
        grid-column: 1 / -1;
    }

    .report-card-breakdown {
        display: none;
    }


    .reports-page-header {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-fields {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .filter-separator {
        display: none;
    }

    .report-row {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }

    .report-row-date {
        grid-column: 1 / -1;
    }

    .report-row-breakdown {
        display: none;
    }


    .preferences-header {
        flex-direction: column;
        gap: 1rem;
    }

    .subscription-status {
        flex-direction: column;
        gap: 1rem;
    }


    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .data-sources {
        grid-template-columns: 1fr;
    }

    .data-fields {
        grid-template-columns: 1fr;
    }

    .data-field {
        border-right: none;
    }

    .data-field:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--border-subtle);
    }

    .data-field:last-child {
        border-bottom: none;
    }

    .process-step-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .billing-header {
        flex-direction: column;
        gap: 1rem;
    }

    .billing-price {
        text-align: left;
    }

    .billing-actions {
        flex-direction: column;
    }

}

/* =========================================================================
   Plan-mix-aware dashboard additions
   - Status banner stack (account-impacting alerts only)
   - Research Plan section (research-only mix)
   - Research Desk section (both mix — daily + research parity surface)
   - Cross-sell card (companion section for single-plan mixes)
   ========================================================================= */

/* ---------- Status banner stack ---------- */
.dash-alerts {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}
.dash-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}
.dash-alert-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}
.dash-alert-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 500;
}
.dash-alert-detail {
    font-family: 'Crimson Pro', serif;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.5;
}
.dash-alert-cta {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-terracotta-light);
    text-decoration: none;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(193, 127, 89, 0.35);
    border-radius: 999px;
    transition: border-color 200ms ease, color 200ms ease;
}
.dash-alert-cta:hover {
    border-color: var(--accent-terracotta);
    color: var(--accent-terracotta);
}
.dash-alert-danger {
    border-color: rgba(193, 127, 89, 0.4);
    background: linear-gradient(90deg, rgba(193, 127, 89, 0.08), rgba(193, 127, 89, 0.02));
}
.dash-alert-warning {
    border-color: rgba(212, 168, 75, 0.35);
    background: linear-gradient(90deg, rgba(212, 168, 75, 0.07), rgba(212, 168, 75, 0.02));
}
.dash-alert-warning .dash-alert-cta {
    color: var(--accent-gold);
    border-color: rgba(212, 168, 75, 0.35);
}
.dash-alert-info {
    border-color: rgba(125, 154, 125, 0.30);
    background: linear-gradient(90deg, rgba(125, 154, 125, 0.06), rgba(125, 154, 125, 0.02));
}

/* ---------- Research status pill (lives inside the section header) ---------- */
.dash-research-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-body);
    margin-left: auto;
}
.dash-research-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}
.dash-research-status-active .dash-research-status-dot {
    background: var(--color-success, #7d9a7d);
    box-shadow: 0 0 0 3px rgba(125, 154, 125, 0.18);
}
.dash-research-status-active {
    color: var(--color-success, #7d9a7d);
    border-color: rgba(125, 154, 125, 0.32);
}
.dash-research-status-pending .dash-research-status-dot {
    background: var(--accent-gold, #d4a84b);
    animation: dashResearchPulse 2s ease-in-out infinite;
}
.dash-research-status-pending {
    color: var(--accent-gold, #d4a84b);
    border-color: rgba(212, 168, 75, 0.32);
}
@keyframes dashResearchPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.dash-research-status-payment-failed .dash-research-status-dot {
    background: var(--accent-terracotta-light, #c17f59);
}
.dash-research-status-payment-failed {
    color: var(--accent-terracotta-light, #c17f59);
    border-color: rgba(193, 127, 89, 0.35);
}
.dash-research-status-canceled .dash-research-status-dot {
    background: var(--text-muted);
}

/* ---------- Research Plan (research_only mix, full-width primary) ---------- */
.dash-research-plan {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr);
    gap: 2.5rem;
    align-items: stretch;
    padding: 2rem 2.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}
.dash-research-plan::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 10%, rgba(212, 168, 75, 0.07) 0%, transparent 55%);
    pointer-events: none;
}
.dash-research-plan > * {
    position: relative;
    z-index: 1;
}
.dash-research-plan-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-right: 2rem;
    border-right: 1px solid var(--border-subtle);
}
.dash-research-plan-stat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.dash-research-plan-value {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5vw, 4.25rem);
    font-weight: 400;
    line-height: 0.95;
    color: var(--accent-terracotta);
    letter-spacing: -0.03em;
}
.dash-research-plan-value-sm {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
}
.dash-research-plan-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}
.dash-research-plan-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}
.dash-research-plan-lede {
    font-family: 'Crimson Pro', serif;
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--text-body);
    margin: 0;
    max-width: 48ch;
}
.dash-research-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

/* ---------- Research Desk (both mix — compact parity surface) ---------- */
.dash-research-desk {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: center;
    padding: 1.75rem 2rem;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-elevated);
}
.dash-research-desk-stats {
    display: flex;
    gap: 2.25rem;
    align-items: flex-end;
}
.dash-research-desk-stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.dash-research-desk-value {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.25rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 0.95;
    color: var(--accent-terracotta);
    letter-spacing: -0.025em;
}
.dash-research-desk-value-sm {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-primary);
}
.dash-research-desk-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}
.dash-research-desk-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    justify-content: flex-end;
}
.dash-research-desk-hint {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.5;
    max-width: 32ch;
}

/* ---------- Cross-sell card (companion section) ---------- */
.dash-cross-sell-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 1.75rem;
    border: 1px dashed var(--border-subtle);
    border-radius: 12px;
    background: transparent;
}
.dash-cross-sell-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}
.dash-cross-sell-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-terracotta-light);
}
.dash-cross-sell-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0;
}
.dash-cross-sell-text {
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-body);
    margin: 0;
    max-width: 48ch;
}
.dash-cross-sell-spec {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
    letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .dash-research-plan { grid-template-columns: 1fr; gap: 1.75rem; padding: 1.75rem 1.5rem; }
    .dash-research-plan-stats { flex-direction: row; padding-right: 0; padding-bottom: 1.5rem; border-right: none; border-bottom: 1px solid var(--border-subtle); gap: 2.5rem; }
    .dash-research-desk { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
    .dash-research-desk-cta { justify-content: flex-start; }
}
@media (max-width: 768px) {
    .dash-alert { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
    .dash-alert-cta { width: 100%; text-align: center; }
    .dash-cross-sell-card { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; }
    .dash-cross-sell-card .btn { width: 100%; justify-content: center; }
    .dash-research-plan { padding: 1.5rem 1.25rem; }
    .dash-research-plan-stats { gap: 1.5rem; }
    .dash-research-plan-actions .btn { width: 100%; justify-content: center; }
    .dash-research-status-pill { margin-left: 0; }
}
@media (max-width: 560px) {
    .dash-research-plan-stats { flex-direction: column; gap: 1.25rem; }
    .dash-research-desk-stats { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .dash-research-status-dot {
        animation: none;
    }
}
