/* =========================================================
   V7 legacy neutralizer: old pages keep their JS/data hooks,
   but visually join the new customer-app world.
   ========================================================= */
html[data-theme] body.fp2026-body{background:var(--fp-bg) !important;color:var(--fp-text) !important;font-family:Inter,system-ui,sans-serif !important;}
.fp-content *,.fp-public-content *{box-sizing:border-box}
.fp-content > .container,
.fp-content .container,
.fp-content .settings-container,
.fp-content .pyramid-container,
.fp-content .ranking-container,
.fp-content .dashboard-container,
.fp-content .calendar-wrapper,
.fp-content .appointment-container,
.fp-content .news-section,
.fp-content .content-container,
.fp-content .form-wrapper,
.fp-content .subscribe-v3,
.fp-content .auth-container{
  width:100% !important;max-width:100% !important;margin:0 !important;color:var(--fp-text) !important;
}
.fp-content .container,.fp-content .news-section{padding:0 !important;background:transparent !important;box-shadow:none !important;border:0 !important;}
.fp-content .settings-container,
.fp-content .pyramid-container,
.fp-content .ranking-container,
.fp-content .dashboard-container,
.fp-content .calendar-wrapper,
.fp-content .appointment-container,
.fp-content .content-container,
.fp-content .form-wrapper,
.fp-content .subscribe-v3{
  background:transparent !important;border:0 !important;box-shadow:none !important;padding:0 !important;
}
/* Remove old headline visual language without hiding content completely. */
.fp-content .header-wrapper,
.fp-content .pyramid-header,
.fp-content .calendar-header{margin:0 0 14px !important;text-align:left !important;border:0 !important;background:transparent !important;}
.fp-content .header-title,
.fp-content .pyramid-title,
.fp-content #weekLabel{width:auto !important;border:0 !important;text-align:left !important;color:var(--fp-text-strong) !important;font-size:clamp(1.55rem,3vw,2.4rem) !important;line-height:1.02 !important;letter-spacing:-.055em !important;margin:0 !important;padding:0 !important;}
/* Compact contextual header inserted by JS for legacy screens. */
.fp-context-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end;background:var(--fp-surface);border:1px solid var(--fp-line);border-radius:var(--fp-radius-lg);box-shadow:var(--fp-shadow-soft);padding:clamp(16px,2.2vw,24px);margin:0 0 16px;color:var(--fp-text)}
.fp-context-card h1{margin:5px 0 5px;color:var(--fp-text-strong);font-size:clamp(1.8rem,4vw,3.25rem);line-height:.98;letter-spacing:-.07em}.fp-context-card p{margin:0;color:var(--fp-muted);max-width:790px}.fp-context-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.fp-context-chiprow{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.fp-context-chiprow span{display:inline-flex;align-items:center;gap:6px;background:var(--fp-accent-soft);border:1px solid color-mix(in srgb,var(--fp-accent) 24%, transparent);color:var(--fp-accent);border-radius:999px;padding:8px 10px;font-weight:850;font-size:.82rem}
/* Surfaces */
.fp-content section:not(.fp-context-card):not(.fp-section):not(.news-section),
.fp-content .settings-section,
.fp-content .pyramid-upload-row,
.fp-content .admin-user-select,
.fp-content .admin-user-select-form,
.fp-content .toolbar,
.fp-content .grid-wrap,
.fp-content .dropzone,
.fp-content .receipt-card,
.fp-content .analysis-card,
.fp-content .card,
.fp-content .summary-card,
.fp-content .subscription-card,
.fp-content .price-card,
.fp-content .modal-content,
.fp-content .calendar-container,
.fp-content .news-item,
.fp-content .week-btn,
.fp-content .pyramid-aside,
.fp-content .pyramid-canvas-wrapper,
.fp-content .pyramid-level,
.fp-content .pyramid-card,
.fp-content .panel,
.fp-content .box,
.fp-content .excel-card{
  background:var(--fp-surface) !important;border:1px solid var(--fp-line) !important;color:var(--fp-text) !important;box-shadow:var(--fp-shadow-soft) !important;border-radius:var(--fp-radius) !important;
}
.fp-content section:not(.fp-context-card):not(.fp-section):not(.news-section){padding:clamp(14px,1.8vw,22px) !important;margin-bottom:14px !important;}
.fp-content h1,.fp-content h2,.fp-content h3,.fp-content h4,.fp-content h5{color:var(--fp-text-strong) !important;letter-spacing:-.04em}.fp-content p,.fp-content li,.fp-content label,.fp-content small,.fp-content .helptext,.fp-content .muted{color:var(--fp-muted) !important}.fp-content a{color:var(--fp-accent) !important;font-weight:800}.fp-content a.fp-btn,.fp-content .fp-btn{color:inherit !important}
/* Forms + buttons */
.fp-content form{max-width:none !important;background:transparent !important;border:0 !important;box-shadow:none !important;padding:0 !important;margin:0 !important;color:var(--fp-text) !important}.fp-content input:not([type="checkbox"]):not([type="radio"]),.fp-content select,.fp-content textarea{background:var(--fp-surface-2) !important;color:var(--fp-text) !important;border:1px solid var(--fp-line) !important;border-radius:14px !important;box-shadow:none !important}.fp-content input[type="checkbox"],.fp-content input[type="radio"]{accent-color:var(--fp-accent)}
.fp-content button:not(.fp-nav-toggle):not(.fp-user-pill):not(#chatbot-close):not(#chatbot-reset),
.fp-content .btn,
.fp-content input[type="submit"],
.fp-content input[type="button"]{
  border-radius:999px !important;border:1px solid transparent !important;background:var(--fp-text-strong) !important;color:var(--fp-bg) !important;font-weight:900 !important;box-shadow:var(--fp-shadow-soft) !important;padding:10px 15px !important;min-height:40px !important;
}
.fp-content .btn.secondary,.fp-content button.secondary,.fp-content .btn-upload,.fp-content .week-btn{background:var(--fp-surface-2) !important;color:var(--fp-text-strong) !important;border-color:var(--fp-line) !important;box-shadow:none !important}
/* Tables */
.fp-table-scroll{width:100%;overflow:auto;border-radius:20px;border:1px solid var(--fp-line);background:var(--fp-surface);box-shadow:var(--fp-shadow-soft);margin:12px 0}.fp-content table{width:100% !important;border-collapse:separate !important;border-spacing:0 !important;background:transparent !important}.fp-content th{position:sticky;top:0;z-index:2;background:var(--fp-surface-2) !important;color:var(--fp-text-strong) !important;text-align:left}.fp-content td,.fp-content th{border-color:var(--fp-line) !important;color:var(--fp-text) !important;padding:10px 12px !important}.fp-content tr:hover td{background:var(--fp-accent-soft) !important}
/* Excel sheet exceptions keep cell signal colors but softer. */
.fp-content table.sheet td.td-gray{background:color-mix(in srgb,var(--fp-line) 36%, transparent) !important}.fp-content table.sheet td.td-yellow{background:color-mix(in srgb,var(--fp-accent) 18%, var(--fp-surface)) !important}.fp-content table.sheet td.td-red{background:var(--fp-bad-soft) !important}.fp-content table.sheet td.td-green{background:var(--fp-good-soft) !important}.fp-content table.sheet td.td-blue{background:var(--fp-info-soft) !important}
/* Calendar */
.fp-content .calendar-container{overflow:auto;padding:14px !important}.fp-content .calendar-grid{min-width:760px}.fp-content .day-column,.fp-content .time-slot{border-color:var(--fp-line) !important}.fp-content .appointment,.fp-content .appointment-card{border-radius:12px !important;border:1px solid var(--fp-line) !important;background:var(--fp-info-soft) !important;color:var(--fp-text) !important}
/* News */
.fp-content .news-list{display:grid !important;grid-template-columns:repeat(auto-fit,minmax(260px,1fr)) !important;gap:14px !important}.fp-content .news-item{overflow:hidden !important}.fp-content .news-link{display:grid !important;color:var(--fp-text) !important}.fp-content .news-content{padding:14px !important}.fp-content .news-title{font-size:1.05rem !important;line-height:1.2 !important}.fp-content .news-description{font-size:.92rem !important}
/* Analyse page soft reset */
.fp-content .fp{background:transparent !important;color:var(--fp-text) !important;padding:0 !important}.fp-content .shell,.fp-content .wrap{max-width:100% !important}.fp-content .upgrade,.fp-content .hero,.fp-content .panel,.fp-content .chart-card{border-color:var(--fp-line) !important;background:var(--fp-surface) !important;color:var(--fp-text) !important;box-shadow:var(--fp-shadow-soft) !important;border-radius:var(--fp-radius) !important}
/* Prevent common old overlap problems */
.fp-content .header-title{max-width:100% !important}.fp-content [style*="width: 200vh"],.fp-content [style*="width:200vh"]{width:100% !important}.fp-content img{height:auto}.fp-content .modal{z-index:150}
@media(max-width:900px){.fp-context-card{grid-template-columns:1fr}.fp-context-actions{justify-content:flex-start}.fp-content .admin-user-select-form,.fp-content .toolbar{display:grid !important;grid-template-columns:1fr !important}.fp-content .pyramid-upload-row{display:grid !important;grid-template-columns:1fr !important}.fp-content .settings-section{padding:16px !important}.fp-content .calendar-grid{min-width:680px}}
@media(max-width:640px){.fp-context-card{border-radius:22px;padding:16px}.fp-context-card h1{font-size:2rem}.fp-content section:not(.fp-context-card):not(.fp-section):not(.news-section){padding:14px !important}.fp-content .fp-table-scroll{border-radius:16px}.fp-content td,.fp-content th{padding:9px !important;font-size:.88rem !important}}
