/*
 * HappyHome · interfața calculatorului energetic (6.3.0)
 * Conform „Mini Brand Manual” Happy Home Corporation:
 *  - font Poppins (Bold titluri, SemiBold subtitluri, Regular text, Light secundar);
 *  - gri structural #3E3E3D, verde accent #8CC640, alb, gri deschis #EDEDED;
 *  - raport 60–70% alb, 20–30% gri, 5–10% verde: verdele doar pentru accente și butoane;
 *  - stil simplu, aerisit, curat; logo-ul nu se taie și nu se recompune.
 * Se încarcă după calculator.css / saas.css / phpp-workflow.css (care folosesc !important).
 */
#happysip-calculator-root {
  --b-ink: #3e3e3d;
  --b-ink-2: #5f5f5d;
  --b-muted: #8a8a87;
  --b-green: #8cc640;
  --b-green-ink: #4f7d1a;
  --b-green-soft: #f2f8ea;
  --b-white: #ffffff;
  --b-light: #ededed;
  --b-line: #e4e4e2;
  --b-line-2: #d3d3d0;
  --b-amber: #9a5b00;
  --b-amber-soft: #fff5e6;
  --b-danger: #b3413b;
  --c-glass: #a9c9da;
  --c-glass-edge: #557f94;
  --font-ui: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--b-ink);
}

#happysip-calculator-root,
#happysip-calculator-root button,
#happysip-calculator-root input,
#happysip-calculator-root select,
#happysip-calculator-root textarea { font-family: var(--font-ui) !important; }

/* ---------- câmpuri: albe și lizibile peste tot (anulează tema veche închisă) ---------- */
#happysip-calculator-root input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
#happysip-calculator-root select,
#happysip-calculator-root textarea {
  background: var(--b-white) !important;
  color: var(--b-ink) !important;
  -webkit-text-fill-color: var(--b-ink);
  border: 1px solid var(--b-line-2) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
#happysip-calculator-root input[readonly] { background: #f6f6f5 !important; color: var(--b-ink-2) !important; -webkit-text-fill-color: var(--b-ink-2); }
#happysip-calculator-root input:focus,
#happysip-calculator-root select:focus,
#happysip-calculator-root textarea:focus { border-color: var(--b-green-ink) !important; outline: 0 !important; box-shadow: 0 0 0 3px rgba(140, 198, 64, .28) !important; }
#happysip-calculator-root input::placeholder,
#happysip-calculator-root textarea::placeholder { color: #a3a3a0 !important; -webkit-text-fill-color: #a3a3a0; }

/* ---------- carcasa aplicației: alb, meniu lat cu sigla întreagă ---------- */
#happysip-calculator-root .hsApplicationShell { background: var(--b-white) !important; }
#happysip-calculator-root .hsSidebar { background: var(--b-white) !important; border-right: 1px solid var(--b-line) !important; }
#happysip-calculator-root .hsSidebarBrand img { width: auto !important; max-width: 170px !important; min-width: 140px; height: auto !important; object-fit: contain !important; }
#happysip-calculator-root .hsMainNavigation button.active { background: var(--b-green-soft) !important; }
#happysip-calculator-root .hsMainNavigation button.active .hsNavIcon { color: var(--b-green-ink) !important; }
#happysip-calculator-root .hsWorkspaceHeader { background: var(--b-white) !important; border-bottom: 1px solid var(--b-line) !important; }
#happysip-calculator-root .hsWorkspaceContent { background: #f7f7f6 !important; }

/* Butoane: verde doar pentru acțiunea principală, cu text gri (contrast bun). */
#happysip-calculator-root .btn { border-radius: 9px !important; font-weight: 600 !important; box-shadow: none !important; }
#happysip-calculator-root .btn.primary { background: var(--b-green) !important; border-color: var(--b-green) !important; color: #24300f !important; }
#happysip-calculator-root .btn.primary:hover { background: #7fb735 !important; }
#happysip-calculator-root .btn:not(.primary):not(.warn) { background: var(--b-white) !important; border: 1px solid var(--b-line-2) !important; color: var(--b-ink) !important; }
#happysip-calculator-root .btn.warn { background: var(--b-white) !important; border: 1px solid #ecd0ce !important; color: var(--b-danger) !important; }

/* ---------- antetul comun al paginilor ---------- */
#happysip-calculator-root .hsPageHead,
#happysip-calculator-root .hsDashboardIntro,
#happysip-calculator-root .hsReportsHero,
#happysip-calculator-root .hsAccountIntro {
  display: flex !important; align-items: flex-end !important; justify-content: space-between !important; gap: 24px !important;
  margin: 0 0 28px !important; padding: 0 0 24px !important; min-height: 0 !important;
  border: 0 !important; border-bottom: 1px solid var(--b-line) !important; border-radius: 0 !important;
  background: transparent !important; color: var(--b-ink) !important; box-shadow: none !important; overflow: visible !important;
}
#happysip-calculator-root .hsDashboardIntro::before, #happysip-calculator-root .hsDashboardIntro::after,
#happysip-calculator-root .hsReportsHero::before, #happysip-calculator-root .hsReportsHero::after { display: none !important; }
#happysip-calculator-root .hsPageHead h2,
#happysip-calculator-root .hsDashboardIntro h2,
#happysip-calculator-root .hsReportsHero h2,
#happysip-calculator-root .hsAccountIntro h2 {
  margin: 4px 0 6px !important; font-size: 30px !important; line-height: 1.2 !important; font-weight: 700 !important; letter-spacing: -.01em !important; color: var(--b-ink) !important;
}
#happysip-calculator-root .hsPageHead p,
#happysip-calculator-root .hsDashboardIntro p,
#happysip-calculator-root .hsReportsHero p { margin: 0 !important; max-width: 62ch; font-size: 14.5px !important; line-height: 1.6 !important; font-weight: 400 !important; color: var(--b-ink-2) !important; }
#happysip-calculator-root .hsEyebrow,
#happysip-calculator-root .hsDashboardIntro .hsDashboardEyebrow,
#happysip-calculator-root .hsReportsHero .hsDashboardEyebrow {
  display: inline-block !important; font-size: 11.5px !important; font-weight: 600 !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: var(--b-green-ink) !important;
}
#happysip-calculator-root .hsDashboardIntro .hsDashboardEyebrow::before,
#happysip-calculator-root .hsReportsHero .hsDashboardEyebrow::before { display: none !important; }

/* Pagini: conținut pe fundal alb, cu aer. */
#happysip-calculator-root.hsTab-dashboard .app.hsCalculatorOnly,
#happysip-calculator-root.hsTab-reports .app.hsCalculatorOnly,
#happysip-calculator-root.hsTab-account .app.hsCalculatorOnly,
#happysip-calculator-root.hsTab-structuri .app.hsCalculatorOnly {
  max-width: 1240px !important; border: 1px solid var(--b-line) !important; border-radius: 16px !important; box-shadow: none !important; background: var(--b-white) !important;
}
#happysip-calculator-root.hsTab-dashboard #app.body,
#happysip-calculator-root.hsTab-reports #app.body,
#happysip-calculator-root.hsTab-account #app.body,
#happysip-calculator-root.hsTab-structuri #app.body { padding: 36px 40px 40px !important; background: var(--b-white) !important; }

/* ---------- Panou client ---------- */
#happysip-calculator-root .hsDashboardIntro .hsNewCalculation { flex: none; min-height: 46px !important; padding: 0 22px !important; }
#happysip-calculator-root .hsDashboardIntro .hsNewCalculation span { display: none !important; }
#happysip-calculator-root .hsAccountSummary { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 0 !important; margin: 0 0 36px !important; border: 1px solid var(--b-line); border-radius: 14px; overflow: hidden; }
#happysip-calculator-root .hsAccountCard {
  min-height: 0 !important; padding: 18px 20px !important; border: 0 !important; border-right: 1px solid var(--b-line) !important; border-radius: 0 !important;
  background: var(--b-white) !important; box-shadow: none !important;
}
#happysip-calculator-root .hsAccountCard:last-child { border-right: 0 !important; }
#happysip-calculator-root .hsAccountCard.hsPlanCard { background: var(--b-white) !important; }
#happysip-calculator-root .hsAccountCard span,
#happysip-calculator-root .hsAccountCard small { font-size: 12.5px !important; font-weight: 400 !important; color: var(--b-ink-2) !important; text-transform: none !important; letter-spacing: 0 !important; }
#happysip-calculator-root .hsAccountCard strong,
#happysip-calculator-root .hsAccountCard b { display: block; margin: 6px 0 4px !important; font-size: 26px !important; line-height: 1.15 !important; font-weight: 700 !important; color: var(--b-ink) !important; }
#happysip-calculator-root .hsAccountCard.hsPlanCard strong,
#happysip-calculator-root .hsAccountCard.hsPlanCard b { font-size: 18px !important; font-weight: 600 !important; }

#happysip-calculator-root .hsDashboardToolbar { display: flex !important; align-items: flex-end !important; justify-content: space-between !important; gap: 16px !important; margin: 0 0 14px !important; }
#happysip-calculator-root .hsDashboardToolbar h3,
#happysip-calculator-root .hsDashboardToolbar h2 { margin: 2px 0 2px !important; font-size: 20px !important; font-weight: 700 !important; color: var(--b-ink) !important; }
#happysip-calculator-root .hsDashboardToolbar p { margin: 0 !important; font-size: 13px !important; color: var(--b-ink-2) !important; }
#happysip-calculator-root .hsDashboardToolbar .hsDashboardEyebrow { display: none !important; }
#happysip-calculator-root .hsPdfToolbar { margin-top: 36px !important; padding-top: 28px !important; border-top: 1px solid var(--b-line) !important; }

/* Tabele (proiecte, rapoarte): rânduri aerisite, acțiuni discrete. */
#happysip-calculator-root .hsHistoryTable,
#happysip-calculator-root .hsReportTable { border: 1px solid var(--b-line) !important; border-radius: 14px !important; overflow: hidden !important; background: var(--b-white) !important; box-shadow: none !important; }
#happysip-calculator-root .hsHistoryHead,
#happysip-calculator-root .hsReportHead { background: #f7f7f6 !important; color: var(--b-ink-2) !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; padding-top: 12px !important; padding-bottom: 12px !important; }
#happysip-calculator-root .hsHistoryRow,
#happysip-calculator-root .hsReportRow { min-height: 64px !important; border-top: 1px solid var(--b-line) !important; background: var(--b-white) !important; font-size: 13.5px !important; }
#happysip-calculator-root .hsHistoryRow:hover,
#happysip-calculator-root .hsReportRow:hover { background: #fafaf9 !important; }
#happysip-calculator-root .hsHistoryRow strong,
#happysip-calculator-root .hsReportRow strong { font-size: 14px !important; font-weight: 600 !important; color: var(--b-ink) !important; }
#happysip-calculator-root .hsHistoryRow small,
#happysip-calculator-root .hsReportRow small { font-size: 12px !important; color: var(--b-muted) !important; }
#happysip-calculator-root .hsHistoryActions,
#happysip-calculator-root .hsReportActions { gap: 6px !important; }
#happysip-calculator-root .hsHistoryActions .btn,
#happysip-calculator-root .hsReportActions .btn { min-height: 34px !important; padding: 0 12px !important; font-size: 12.5px !important; }
#happysip-calculator-root .hsHistoryActions .btn.warn,
#happysip-calculator-root .hsReportActions .btn.warn { border-color: transparent !important; background: transparent !important; }
#happysip-calculator-root .hsHistoryActions .hsPdfMiniButton { background: var(--b-white) !important; border: 1px solid var(--b-line-2) !important; color: var(--b-ink) !important; }
#happysip-calculator-root .hsPdfIcon { background: var(--b-ink) !important; color: var(--b-white) !important; border-radius: 8px !important; box-shadow: none !important; }

/* ---------- Rapoarte PDF ---------- */
#happysip-calculator-root .hsReportsHeroStat {
  flex: none; min-width: 150px; padding: 14px 18px !important; border: 1px solid var(--b-line) !important; border-radius: 12px !important;
  background: var(--b-white) !important; color: var(--b-ink) !important; box-shadow: none !important; text-align: left !important;
}
#happysip-calculator-root .hsReportsHeroStat * { color: var(--b-ink) !important; }
#happysip-calculator-root .hsReportsHeroStat span,
#happysip-calculator-root .hsReportsHeroStat small { font-size: 12px !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--b-ink-2) !important; }
#happysip-calculator-root .hsReportsHeroStat strong,
#happysip-calculator-root .hsReportsHeroStat b { font-size: 26px !important; font-weight: 700 !important; }
#happysip-calculator-root .hsReportsToolbar { display: flex !important; align-items: center !important; gap: 16px !important; margin: 0 0 14px !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
#happysip-calculator-root .hsReportsSearch { position: relative; display: block !important; flex: 1 1 auto; max-width: 460px; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
#happysip-calculator-root .hsReportsSearch > span,
#happysip-calculator-root .hsReportsSearch .hsFieldInfo { display: none !important; }
#happysip-calculator-root .hsReportsSearch input { width: 100% !important; min-height: 42px !important; padding: 0 14px !important; font-size: 14px !important; }
#happysip-calculator-root .hsReportsShown { font-size: 13px !important; color: var(--b-ink-2) !important; }

/* ---------- Contul meu ---------- */
#happysip-calculator-root .hsAcctGrid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
#happysip-calculator-root .hsAcctSide { position: sticky; top: 0; display: grid; gap: 14px; }
#happysip-calculator-root .hsAcctProfile,
#happysip-calculator-root .hsAcctCredits { padding: 22px; border: 1px solid var(--b-line); border-radius: 14px; background: var(--b-white); }
#happysip-calculator-root .hsAcctProfile { text-align: center; }
#happysip-calculator-root .hsAcctAvatar {
  display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 12px; border-radius: 50%;
  background: var(--b-ink); color: var(--b-white); font-size: 24px; font-weight: 600; letter-spacing: .02em;
}
#happysip-calculator-root .hsAcctProfile h3 { margin: 0 0 2px !important; font-size: 17px !important; font-weight: 600 !important; color: var(--b-ink) !important; }
#happysip-calculator-root .hsAcctProfile p { margin: 0; font-size: 13px; color: var(--b-ink-2); word-break: break-all; }
#happysip-calculator-root .hsAcctProfile small { display: block; margin-top: 10px; font-size: 12px; font-weight: 300; color: var(--b-muted); }
#happysip-calculator-root .hsAcctCredits span { display: block; font-size: 12.5px; color: var(--b-ink-2); }
#happysip-calculator-root .hsAcctCredits b { display: block; margin: 4px 0 2px; font-size: 34px; line-height: 1.1; font-weight: 700; color: var(--b-ink); }
#happysip-calculator-root .hsAcctCredits b::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--b-green); }
#happysip-calculator-root .hsAcctCredits p { margin: 8px 0 14px; font-size: 13px; color: var(--b-ink-2); }
#happysip-calculator-root .hsAcctCredits .btn { width: 100%; min-height: 40px !important; }
#happysip-calculator-root .hsAcctNav { display: grid; gap: 2px; padding: 8px; border: 1px solid var(--b-line); border-radius: 14px; }
#happysip-calculator-root .hsAcctNav a { padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--b-ink); text-decoration: none; }
#happysip-calculator-root .hsAcctNav a:hover { background: #f5f5f4; }
#happysip-calculator-root .hsAcctMain { display: grid; gap: 18px; }
#happysip-calculator-root .hsAcctCard { padding: 26px 28px; border: 1px solid var(--b-line); border-radius: 14px; background: var(--b-white); scroll-margin-top: 16px; }
#happysip-calculator-root .hsAcctCard header { margin-bottom: 18px; }
#happysip-calculator-root .hsAcctCard h3 { margin: 0 0 4px !important; font-size: 18px !important; font-weight: 600 !important; color: var(--b-ink) !important; }
#happysip-calculator-root .hsAcctCard header p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--b-ink-2); }
#happysip-calculator-root .hsAcctFields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
#happysip-calculator-root .hsAcctField { display: grid; gap: 6px; margin: 0; }
#happysip-calculator-root .hsAcctField > span { font-size: 13px; font-weight: 500; color: var(--b-ink); }
#happysip-calculator-root .hsAcctField input { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; min-height: 44px !important; padding: 0 14px !important; font-size: 14.5px !important; }
#happysip-calculator-root .hsAcctField small { font-size: 12px; font-weight: 300; color: var(--b-muted); }
#happysip-calculator-root .hsAcctActions { display: flex; justify-content: flex-end; }
#happysip-calculator-root .hsAcctActions .btn { min-height: 46px !important; padding: 0 26px !important; }
#happysip-calculator-root .hsAcctSession { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
#happysip-calculator-root .hsAcctSession header { margin: 0; }
#happysip-calculator-root .hsAcctSession .btn { flex: none; }
#happysip-calculator-root .hsAuthMessage:empty { display: none; }

/* ---------- Structuri și biblioteca de materiale ---------- */
#happysip-calculator-root.hsTab-structuri #appNav { display: none !important; }
#happysip-calculator-root.hsTab-structuri .hsDashboardEyebrow { display: none !important; }
#happysip-calculator-root .hsMaterialModalPanel { font-family: var(--font-ui) !important; }
#happysip-calculator-root .hsMaterialModalPanel .btn,
#happysip-calculator-root .hsMaterialModalPanel button[onclick*="Details"] { border-radius: 9px !important; }


/* ================================================================
 * 6.3 · MENIU SUS (desktop): sigla întreagă în stânga, secțiunile ca file
 * ================================================================ */
@media (min-width: 1081px) {
  #happysip-calculator-root .hsApplicationShell { position: relative; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: 68px minmax(0, 1fr); height: 100dvh; }
  #happysip-calculator-root .hsSidebar { height: 68px !important; border-right: 0 !important; border-bottom: 1px solid var(--b-line) !important; overflow: visible !important; }
  #happysip-calculator-root .hsSidebarInner { flex-direction: row !important; align-items: center; padding: 0 28px !important; gap: 0; overflow: visible !important; }
  #happysip-calculator-root .hsSidebarBrand { flex: none; align-self: stretch; align-items: center !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
  #happysip-calculator-root .hsSidebarBrand img { height: 40px !important; width: auto !important; min-width: 133px !important; max-width: none !important; }
  #happysip-calculator-root .hsMainNavigation { display: flex !important; flex: 0 1 auto; align-self: stretch; gap: 2px !important; margin-left: 44px; padding: 0 !important; overflow: visible !important; }
  #happysip-calculator-root .hsMainNavigation button { position: relative; display: flex !important; align-items: center; gap: 6px; min-height: 0 !important; height: 100%; padding: 0 15px !important; border-radius: 0 !important; background: transparent !important; color: var(--b-ink-2) !important; }
  #happysip-calculator-root .hsMainNavigation button .hsNavIcon { display: none !important; }
  #happysip-calculator-root .hsMainNavigation button b { font-size: 14.5px !important; font-weight: 400 !important; white-space: nowrap; }
  #happysip-calculator-root .hsMainNavigation button:hover { color: var(--b-ink) !important; }
  #happysip-calculator-root .hsMainNavigation button.active { color: var(--b-ink) !important; background: transparent !important; }
  #happysip-calculator-root .hsMainNavigation button.active b { font-weight: 500 !important; }
  #happysip-calculator-root .hsMainNavigation button.active::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--b-green); }
  #happysip-calculator-root .hsMainNavigation button:focus-visible { outline: 2px solid var(--b-green-ink); outline-offset: -4px; }
  #happysip-calculator-root .hsMainNavigation button em { position: static; margin-left: 2px; }
  #happysip-calculator-root .hsSidebarNote,
  #happysip-calculator-root .hsSidebarAccount { display: none !important; }
  #happysip-calculator-root .hsMainWorkspace { height: auto !important; min-height: 0; }
  #happysip-calculator-root .hsWorkspaceHeader { position: absolute !important; top: 0; right: 0; z-index: 80 !important; min-height: 68px !important; height: 68px; padding: 0 28px !important; border: 0 !important; background: transparent !important; backdrop-filter: none !important; }
  #happysip-calculator-root .hsWorkspaceTitle { display: none !important; }
  #happysip-calculator-root .hsHeaderCredits { border: 0 !important; background: transparent !important; padding: 0 !important; flex-direction: row-reverse; gap: 6px !important; }
  #happysip-calculator-root .hsHeaderCredits span { font-size: 0 !important; color: var(--b-ink-2) !important; }
  #happysip-calculator-root .hsHeaderCredits span::after { content: "calcule rămase"; font-size: 14px; }
  #happysip-calculator-root .hsHeaderCredits b { width: auto !important; min-width: 0 !important; height: auto !important; background: transparent !important; color: var(--b-ink) !important; font-size: 15px !important; font-weight: 600 !important; }
  #happysip-calculator-root .hsHeaderProfile { background: transparent !important; }
  #happysip-calculator-root .hsHeaderProfile > b { font-size: 14px !important; font-weight: 500 !important; }
  #happysip-calculator-root .hsWorkspaceContent { height: calc(100dvh - 68px); }
}

/* ================================================================
 * 6.3 · CALCULATOR: planșa cu casa 3D, panoul de lucru alături
 * ================================================================ */
#happysip-calculator-root.hsCfgActive .hsWorkspaceContent { display: flex !important; overflow: hidden !important; padding: 0 !important; background: var(--b-light) !important; }
#happysip-calculator-root .app.hsCalculatorOnly.hsCfgShell {
  flex: 1 1 auto; min-height: 0; display: flex !important; flex-direction: column;
  max-width: none !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible !important;
}
#happysip-calculator-root .app.hsCfgShell #appNav { display: none !important; }
#happysip-calculator-root .app.hsCfgShell #app.body { flex: 1 1 auto; min-height: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible !important; }
#happysip-calculator-root .cfgIcon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

#happysip-calculator-root .cfg { position: relative; height: 100%; min-height: 620px; color: var(--b-ink); }

/* Planșa: hârtie milimetrică pe tot spațiul */
#happysip-calculator-root .cfgStage {
  position: absolute; inset: 0; overflow: hidden;
  background-color: var(--b-light);
  background-image: linear-gradient(#f6f6f4 1px, transparent 1px), linear-gradient(90deg, #f6f6f4 1px, transparent 1px), linear-gradient(#fbfbfa 1px, transparent 1px), linear-gradient(90deg, #fbfbfa 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
#happysip-calculator-root .cfg3dSlot { position: absolute; left: 520px; right: 150px; top: 20px; bottom: 150px; }
#happysip-calculator-root .cfg3d { position: absolute; inset: 0; }
#happysip-calculator-root .cfg3d .hh3dCanvas { display: block; position: absolute; inset: 0; cursor: grab; touch-action: none; }
#happysip-calculator-root .cfg3d .hh3dCanvas:active { cursor: grabbing; }
#happysip-calculator-root .hh3dLabels { position: absolute; inset: 0; pointer-events: none; }
#happysip-calculator-root .hh3dLabel { position: absolute; left: 0; top: 0; translate: -50% -50%; padding: 3px 9px; border: 1px solid var(--b-ink); border-radius: 5px; background: var(--b-white); color: var(--b-ink); font-size: 12px; font-weight: 500; white-space: nowrap; }
#happysip-calculator-root .hh3dLabel.is-ins { background: var(--b-green); border-color: var(--b-green-ink); color: #22330e; font-weight: 600; }
#happysip-calculator-root .hh3dLabel.is-warm { background: #fbf1dc; }
#happysip-calculator-root .hh3dLabel.is-cold { background: #e4eaee; }
#happysip-calculator-root .hh3dLabel.is-loss { background: var(--b-ink); color: var(--b-white); font-weight: 600; }
#happysip-calculator-root .cfg3dSlot.is-fallback .cfgHouse { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

#happysip-calculator-root .cfgViewBtns { position: absolute; left: 528px; top: 20px; z-index: 3; display: flex; gap: 6px; }
#happysip-calculator-root .cfgViewBtns button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #dcdcd8; border-radius: 10px; background: var(--b-white); color: var(--b-ink); cursor: pointer; }
#happysip-calculator-root .cfgViewBtns button:hover { border-color: var(--b-ink-2); }
#happysip-calculator-root .cfgViewBtns button:focus-visible { outline: 2px solid var(--b-green-ink); outline-offset: 2px; }
#happysip-calculator-root .cfgPlaceholder,
#happysip-calculator-root .cfgShapeNote { position: absolute; left: 640px; right: 170px; top: 20px; z-index: 3; margin: 0; padding: 10px 14px; border: 1px solid var(--b-line); border-left: 3px solid var(--b-green); border-radius: 10px; background: rgba(255, 255, 255, .96); font-size: 13px; line-height: 1.5; color: var(--b-ink-2); }
#happysip-calculator-root .cfgPlaceholder + .cfgShapeNote { top: 84px; }
#happysip-calculator-root .cfgPlaceholder button { padding: 0; border: 0; background: none; color: var(--b-green-ink); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
#happysip-calculator-root .cfgLegendNote { position: absolute; left: 528px; bottom: 26px; z-index: 2; max-width: 360px; margin: 0; padding-left: 12px; border-left: 2px solid var(--b-green); font-size: 12px; line-height: 1.55; color: var(--b-ink-2); }

/* Scala energetică A–G, verticală, cu săgeata casei */
#happysip-calculator-root .cfgScaleHost { position: absolute; right: 28px; top: 24px; bottom: 170px; z-index: 2; display: flex; }
#happysip-calculator-root .cfgScale { display: flex; flex-direction: column; width: 96px; max-height: 470px; }
#happysip-calculator-root .cfgScale ol { flex: 1; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
#happysip-calculator-root .cfgScale li { position: relative; flex: 1; display: flex; align-items: center; gap: 8px; min-height: 0; margin: 0; }
#happysip-calculator-root .cfgScale li b { display: grid; place-items: center; width: 32px; height: 100%; max-height: 40px; border-radius: 5px; background: var(--band); color: var(--band-ink); font-size: 13.5px; font-weight: 600; opacity: .5; }
#happysip-calculator-root .cfgScale li small { font-size: 11px; color: var(--b-muted); white-space: nowrap; }
#happysip-calculator-root .cfgScale li.is-on b { width: 40px; opacity: 1; font-size: 17px; box-shadow: 0 0 0 2px var(--b-white), 0 0 0 3.5px var(--b-ink); }
#happysip-calculator-root .cfgScale li.is-on small { color: var(--b-ink); font-weight: 500; }
#happysip-calculator-root .cfgScaleMark { position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); padding: 4px 9px; border-radius: 6px; background: var(--b-ink); color: var(--b-white); font-size: 13px; font-weight: 600; white-space: nowrap; }
#happysip-calculator-root .cfgScaleMark::after { content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left-color: var(--b-ink); }
#happysip-calculator-root .cfgScale p { margin: 10px 0 0; font-size: 11px; line-height: 1.4; color: var(--b-muted); }

/* Cartușul planșei (ca pe un desen tehnic) */
#happysip-calculator-root .cfgTitleHost { position: absolute; right: 24px; bottom: 24px; z-index: 2; width: min(600px, calc(100% - 560px)); }
#happysip-calculator-root .cfgTitle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1.5px solid var(--b-ink); background: var(--b-white); }
#happysip-calculator-root .cfgTitle.is-report { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#happysip-calculator-root .cfgTitle > div { min-width: 0; padding: 8px 12px 9px; border-right: 1px solid var(--b-ink); border-bottom: 1px solid var(--b-ink); }
#happysip-calculator-root .cfgTitle:not(.is-report) > div:nth-child(4n),
#happysip-calculator-root .cfgTitle.is-report > div:nth-child(3n) { border-right: 0; }
#happysip-calculator-root .cfgTitle:not(.is-report) > div:nth-last-child(-n+4),
#happysip-calculator-root .cfgTitle.is-report > div:nth-last-child(-n+3) { border-bottom: 0; }
#happysip-calculator-root .cfgTitle dt { font-size: 10.5px; line-height: 1.3; color: var(--b-muted); }
#happysip-calculator-root .cfgTitle dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#happysip-calculator-root .cfgTitle .is-class dd { font-size: 19px; font-weight: 600; line-height: 1.1; color: var(--b-green-ink); }

/* Panoul de lucru, pe planșă */
#happysip-calculator-root .cfgPanel { position: absolute; left: 24px; top: 20px; bottom: 20px; z-index: 4; width: 472px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e1e1dd; border-radius: 14px; background: var(--b-white); box-shadow: 0 1px 2px rgba(62, 62, 61, .05), 0 16px 40px rgba(62, 62, 61, .08); }
#happysip-calculator-root .cfgPanelHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 24px 14px; border-bottom: 1px solid var(--b-line); }
#happysip-calculator-root .cfgPanelHead h2 { margin: 0 !important; font-size: 21px !important; font-weight: 600 !important; line-height: 1.25 !important; color: var(--b-ink) !important; }
#happysip-calculator-root .cfgPanelHead span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--b-muted); }
#happysip-calculator-root .cfgIconBtn { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 1px solid #dcdcd8; border-radius: 9px; background: var(--b-white); color: var(--b-ink-2); cursor: pointer; }
#happysip-calculator-root .cfgIconBtn:hover { color: var(--b-ink); border-color: var(--b-ink-2); }
#happysip-calculator-root .cfgAcc { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
#happysip-calculator-root .cfgAccItem { border-bottom: 1px solid var(--b-line); }
#happysip-calculator-root .cfgAccHead { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 24px; border: 0; background: var(--b-white); color: var(--b-ink); text-align: left; font: inherit; }
#happysip-calculator-root button.cfgAccHead { cursor: pointer; }
#happysip-calculator-root button.cfgAccHead:hover { background: #fafaf9; }
#happysip-calculator-root button.cfgAccHead:focus-visible { outline: 2px solid var(--b-green-ink); outline-offset: -2px; }
#happysip-calculator-root .cfgAccHead em { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1.5px solid #d6d6d2; border-radius: 50%; font-size: 12px; font-style: normal; font-weight: 600; color: var(--b-ink-2); }
#happysip-calculator-root .cfgAccHead.is-ok em { border-color: var(--b-green); color: var(--b-green-ink); }
#happysip-calculator-root .cfgAccHead.is-todo em { border-color: #e2a347; color: #9a5b00; }
#happysip-calculator-root .cfgAccText { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
#happysip-calculator-root .cfgAccText b { flex: none; font-size: 14px; font-weight: 500; }
#happysip-calculator-root .cfgAccText small { flex: 1; min-width: 0; font-size: 12.5px; color: var(--b-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#happysip-calculator-root .cfgAccHead.is-todo small { color: #9a5b00; }
#happysip-calculator-root .cfgAccOk { color: var(--b-green); stroke-width: 2.2; }
#happysip-calculator-root .cfgAccItem.is-open { background: #fcfcfb; }
#happysip-calculator-root .cfgAccItem.is-open .cfgAccHead { position: sticky; top: 0; z-index: 2; padding-top: 14px; padding-bottom: 12px; background: #fcfcfb; border-bottom: 1px solid var(--b-line); }
#happysip-calculator-root .cfgAccItem.is-open .cfgAccHead em { border-color: var(--b-ink); background: var(--b-ink); color: var(--b-white); }
#happysip-calculator-root .cfgAccItem.is-open .cfgAccText { flex-direction: column; gap: 1px; }
#happysip-calculator-root .cfgAccItem.is-open .cfgAccText b { font-size: 15.5px; font-weight: 600; }
#happysip-calculator-root .cfgPanelFoot { flex: none; display: grid; gap: 6px; padding: 16px 24px 18px; border-top: 1px solid var(--b-line); text-align: center; }
#happysip-calculator-root .cfgPanelFoot small { font-size: 12px; color: var(--b-muted); }
#happysip-calculator-root .cfgCalc { display: block; width: 100%; min-height: 50px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--b-green); color: #22330e; font-size: 15px; font-weight: 600; cursor: pointer; }
#happysip-calculator-root .cfgCalc:hover { background: #7fb735; }
#happysip-calculator-root .cfgCalc:focus-visible { outline: 3px solid var(--b-green-ink); outline-offset: 2px; }
#happysip-calculator-root .cfgCalc[disabled] { background: #ededed; color: #8a8a87; cursor: not-allowed; }
#happysip-calculator-root .cfgLink { display: block; width: 100%; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: var(--b-ink); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#happysip-calculator-root .cfgLink.is-todo { color: var(--b-amber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Formularul secțiunii deschise */
#happysip-calculator-root .cfgForm { padding: 4px 24px 24px; }
#happysip-calculator-root .cfgForm > .head:first-child h2,
#happysip-calculator-root .cfgForm .hsPhppTitle h2 { display: none !important; }
#happysip-calculator-root .cfgForm h2 { font-size: 18px !important; font-weight: 600 !important; line-height: 1.3 !important; margin: 0 0 6px !important; color: var(--b-ink) !important; }
#happysip-calculator-root .cfgForm h3 { font-size: 14.5px !important; font-weight: 600 !important; line-height: 1.35 !important; letter-spacing: 0 !important; margin: 0 0 4px !important; }
#happysip-calculator-root .cfgForm .hsStepIntro,
#happysip-calculator-root .cfgForm .head p { font-size: 13px !important; line-height: 1.55 !important; color: var(--b-ink-2) !important; }
#happysip-calculator-root .cfgForm .head { display: block !important; margin: 12px 0 8px !important; }
#happysip-calculator-root .cfgForm .head .actions,
#happysip-calculator-root .cfgForm .head > .btn { margin-top: 10px !important; }
#happysip-calculator-root .cfgForm .card,
#happysip-calculator-root .cfgForm .hsSystemSection,
#happysip-calculator-root .cfgForm .hsPhppSection,
#happysip-calculator-root .cfgForm section[class*="Section"] { border: 0 !important; border-top: 1px solid var(--b-line) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 18px 0 6px !important; margin: 0 !important; }
#happysip-calculator-root .cfgForm .card.kpi { border: 1px solid var(--b-line) !important; border-radius: 10px !important; padding: 10px 12px !important; background: var(--b-white) !important; }
#happysip-calculator-root .cfgForm .card.kpi span { font-size: 11.5px !important; line-height: 1.35 !important; color: var(--b-ink-2) !important; text-transform: none !important; letter-spacing: 0 !important; }
#happysip-calculator-root .cfgForm .card.kpi strong { display: block; margin-top: 2px; font-size: 16px !important; line-height: 1.25 !important; font-weight: 600 !important; }
#happysip-calculator-root .cfgForm .grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
#happysip-calculator-root .cfgForm .hsSectionHeading { display: block !important; padding-bottom: 10px !important; border-bottom: 0 !important; }
#happysip-calculator-root .cfgForm .hsSectionHeading > div > span,
#happysip-calculator-root .cfgForm .hsPhppEyebrow,
#happysip-calculator-root .cfgForm .hsDashboardEyebrow,
#happysip-calculator-root .cfgForm .kicker { display: none !important; }
#happysip-calculator-root .cfgForm .hsSectionHeading p { margin: 4px 0 0 !important; font-size: 12.5px !important; color: var(--b-ink-2) !important; }
#happysip-calculator-root .cfgForm .form { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px 12px !important; }
#happysip-calculator-root .cfgForm .form .field.w2,
#happysip-calculator-root .cfgForm .form .field.full,
#happysip-calculator-root .cfgForm .form .field.w4,
#happysip-calculator-root .cfgForm .form .cfgTopField { grid-column: 1 / -1 !important; }
#happysip-calculator-root .cfgForm .field label { font-size: 12.5px !important; font-weight: 500 !important; line-height: 1.35 !important; color: var(--b-ink) !important; letter-spacing: 0 !important; text-transform: none !important; margin-bottom: 5px !important; }
#happysip-calculator-root .cfgForm .field input,
#happysip-calculator-root .cfgForm .field select { min-height: 42px !important; height: 42px; padding: 8px 12px !important; font-size: 14px !important; font-weight: 400 !important; }
#happysip-calculator-root .cfgForm .field textarea { min-height: 80px !important; font-size: 14px !important; }
#happysip-calculator-root .cfgForm .field small,
#happysip-calculator-root .cfgForm .field .hint,
#happysip-calculator-root .cfgForm .field p { font-size: 12px !important; line-height: 1.45 !important; font-weight: 400 !important; color: var(--b-muted) !important; margin-top: 5px !important; }
#happysip-calculator-root .cfgForm .btn { min-height: 40px !important; font-size: 13.5px !important; }
#happysip-calculator-root .cfgForm > .actions { display: none !important; }
#happysip-calculator-root .hsUnitInput { position: relative; display: block; }
#happysip-calculator-root .cfgForm .hsUnitInput input,
#happysip-calculator-root .cfgReport .hsUnitInput input { padding-right: 58px !important; width: 100%; }
#happysip-calculator-root .hsUnit { position: absolute; right: 1px; top: 1px; bottom: 1px; display: grid; place-items: center; min-width: 46px; padding: 0 9px; border-left: 1px solid var(--b-line); border-radius: 0 7px 7px 0; background: #f7f7f6; color: var(--b-ink-2); font-size: 12px; font-weight: 500; pointer-events: none; white-space: nowrap; }
#happysip-calculator-root .cfgForm .hs-row-list { overflow: visible !important; }
#happysip-calculator-root .cfgForm .hs-row-head { display: none !important; }
#happysip-calculator-root .cfgForm .hs-data-row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; min-width: 0 !important; width: auto !important; padding: 14px !important; margin: 0 0 10px !important; border: 1px solid var(--b-line) !important; border-radius: 10px !important; box-shadow: none !important; background: var(--b-white) !important; }
#happysip-calculator-root .cfgForm .hs-data-row > * { min-width: 0 !important; }
#happysip-calculator-root .cfgForm .hs-data-row .field select,
#happysip-calculator-root .cfgForm .hs-data-row .field input { width: 100% !important; }
#happysip-calculator-root .cfgForm .hs-data-row .hs-delete-row,
#happysip-calculator-root .cfgForm .hs-data-row > button:last-child { grid-column: 1 / -1; }

/* Unde este izolația de sus */
#happysip-calculator-root .cfgTopTiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#happysip-calculator-root .cfgTopTile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border: 1px solid #dcdcd8; border-radius: 10px; background: var(--b-white); color: var(--b-ink); text-align: center; font: inherit; cursor: pointer; }
#happysip-calculator-root .cfgTopTile svg { margin-bottom: 4px; color: var(--b-ink); }
#happysip-calculator-root .cfgTopTile b { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
#happysip-calculator-root .cfgTopTile span { font-size: 11px; line-height: 1.35; color: var(--b-muted); }
#happysip-calculator-root .cfgTopTile:hover { border-color: var(--b-ink-2); }
#happysip-calculator-root .cfgTopTile:focus-visible { outline: 2px solid var(--b-green-ink); outline-offset: 2px; }
#happysip-calculator-root .cfgTopTile.is-on { border: 1.5px solid var(--b-ink); box-shadow: 0 0 0 3px rgba(140, 198, 64, .3); cursor: default; }
#happysip-calculator-root .cfgTopTile.is-on::after { content: ""; position: absolute; top: 7px; right: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--b-green); box-shadow: 0 0 0 2px var(--b-white); }
#happysip-calculator-root .cfgTopTile.is-off { opacity: .5; background: #fafaf9; cursor: not-allowed; }
#happysip-calculator-root .cfgTopTile.is-off[onclick] { cursor: pointer; }

/* Raportul: panoul cu cifrele, casa cu săgețile pierderilor */
#happysip-calculator-root .cfgPanel--report { width: 560px; }
#happysip-calculator-root .cfg--report .cfg3dSlot { left: 610px; top: 70px; }
#happysip-calculator-root .cfg--report .cfgTitleHost { width: min(560px, calc(100% - 650px)); }
#happysip-calculator-root .cfgStageHead { position: absolute; left: 610px; right: 170px; top: 22px; z-index: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
#happysip-calculator-root .cfgStageHead b { font-size: 16px; font-weight: 600; }
#happysip-calculator-root .cfgStageHead span { font-size: 13px; color: var(--b-ink-2); }
#happysip-calculator-root .cfgBack { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--b-green-ink); font-size: 14px; font-weight: 500; cursor: pointer; }
#happysip-calculator-root .cfgBack:hover { background: var(--b-green-soft); }
#happysip-calculator-root .cfgReport { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 28px; }
#happysip-calculator-root .cfgReport h2 { font-size: 20px !important; font-weight: 600 !important; }
#happysip-calculator-root .cfgReport .hsPhppReview { display: none !important; }
#happysip-calculator-root .cfgReport #hsPhppValidation { min-height: 0 !important; }
#happysip-calculator-root .cfgReport .energyButtonOnly { min-height: 0 !important; margin: 12px 0 8px !important; padding: 0 !important; justify-content: flex-start !important; text-align: left !important; }
#happysip-calculator-root .cfgReport .energyButtonOnly .btn { min-width: 200px; min-height: 44px !important; }
#happysip-calculator-root .cfgReport > .actions { display: none !important; }
#happysip-calculator-root .cfgReport .hsEnergyHero { grid-template-columns: minmax(0, 1fr) !important; }

/* ---------- raportul complet ---------- */
#happysip-calculator-root #officialEnergyResult.hsHasHero > .energyFinalOnly { display: none !important; }
#happysip-calculator-root .hsEnergyHero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; margin: 8px 0 22px; }
#happysip-calculator-root .hsLabelCard,
#happysip-calculator-root .hsKeyCard { padding: 20px; border: 1px solid var(--b-line); border-radius: 14px; background: var(--b-white); }
#happysip-calculator-root .hsEnergyHero h2 { margin: 0 0 6px !important; font-size: 18px !important; font-weight: 650 !important; }
#happysip-calculator-root .hsLabelCard header p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--b-muted); max-width: 52ch; }
#happysip-calculator-root .hsBands { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
#happysip-calculator-root .hsBands li { display: flex; align-items: center; gap: 10px; min-height: 34px; margin: 0; }
#happysip-calculator-root .hsBandBar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: var(--w); height: 34px; padding: 0 22px 0 12px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); background: var(--band); color: var(--band-ink);
}
#happysip-calculator-root .hsBandBar b { font-size: 18px; font-weight: 750; line-height: 1; }
#happysip-calculator-root .hsBandBar small { font-size: 11.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
#happysip-calculator-root .hsBands li:not(.is-active) .hsBandBar { opacity: .5; }
#happysip-calculator-root .hsBands li.is-active .hsBandBar { height: 42px; }
#happysip-calculator-root .hsBandMarker { display: flex; align-items: center; gap: 5px; height: 42px; padding: 0 14px 0 20px; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); background: var(--b-ink); color: #fff; }
#happysip-calculator-root .hsBandMarker b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
#happysip-calculator-root .hsBandMarker small { font-size: 12px; opacity: .85; white-space: nowrap; }
#happysip-calculator-root .hsBandVerdict { margin: 12px 0 0; font-size: 14px; color: var(--b-ink-2); }
#happysip-calculator-root .hsBandVerdict b { color: var(--b-ink); }
#happysip-calculator-root .hsKeyCard dl { margin: 10px 0 0; }
#happysip-calculator-root .hsKeyRow { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "gauge gauge" "note note"; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--b-line); }
#happysip-calculator-root .hsKeyRow dt { grid-area: label; font-size: 13.5px; line-height: 1.35; }
#happysip-calculator-root .hsKeyRow dd { grid-area: value; margin: 0; white-space: nowrap; }
#happysip-calculator-root .hsKeyRow dd b { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
#happysip-calculator-root .hsKeyRow dd span { font-size: 12px; color: var(--b-ink-2); }
#happysip-calculator-root .hsKeyGauge { grid-area: gauge; position: relative; height: 6px; border-radius: 3px; background: #eef0ec; }
#happysip-calculator-root .hsKeyGauge i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--b-green); }
#happysip-calculator-root .hsKeyRow.is-over .hsKeyGauge i { background: #ec9a57; }
#happysip-calculator-root .hsKeyGauge em { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--b-ink); transform: translateX(-1px); }
#happysip-calculator-root .hsKeyRow small { grid-area: note; font-size: 11.5px; color: var(--b-muted); }
#happysip-calculator-root .hsKeyTotals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
#happysip-calculator-root .hsKeyTotals div { padding: 10px 12px; border-radius: 10px; background: #f4f6f3; }
#happysip-calculator-root .hsKeyTotals span { display: block; font-size: 12px; color: var(--b-ink-2); }
#happysip-calculator-root .hsKeyTotals b { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Graficele existente din raport: grilă adaptivă, fără depășiri, fără majuscule decorative. */
#happysip-calculator-root #officialEnergyResult .hsPhppMetricGrid {
  display: grid !important; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important; gap: 0 !important;
  margin: 0 0 20px !important; border: 1px solid var(--b-line); border-radius: 14px; overflow: hidden; background: var(--b-white);
}
#happysip-calculator-root #officialEnergyResult .hsPhppMetric {
  padding: 12px 16px !important; border: 0 !important; border-right: 1px solid var(--b-line) !important; border-bottom: 1px solid var(--b-line) !important;
  margin-bottom: -1px !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 0 !important;
}
#happysip-calculator-root #officialEnergyResult .hsPhppMetric span { font-size: 12px !important; color: var(--b-ink-2) !important; text-transform: none !important; letter-spacing: 0 !important; }
#happysip-calculator-root #officialEnergyResult .hsPhppMetric strong { display: inline !important; font-size: 19px !important; font-weight: 650 !important; font-variant-numeric: tabular-nums; }
#happysip-calculator-root #officialEnergyResult .hsPhppMetric small { margin-left: 4px; font-size: 12px !important; color: var(--b-ink-2) !important; }
#happysip-calculator-root #officialEnergyResult .energyDashboard { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important; gap: 14px !important; }
#happysip-calculator-root #officialEnergyResult .energyPanel { min-width: 0 !important; overflow: hidden; padding: 18px !important; border: 1px solid var(--b-line) !important; border-radius: 14px !important; background: var(--b-white) !important; box-shadow: none !important; }
#happysip-calculator-root #officialEnergyResult .energyPanel .kicker,
#happysip-calculator-root #officialEnergyResult .energyPanel [class*="kicker"] { display: none !important; }
#happysip-calculator-root #officialEnergyResult .energyPanel h3 { font-size: 15.5px !important; font-weight: 650 !important; line-height: 1.3 !important; margin: 0 0 12px !important; }
#happysip-calculator-root #officialEnergyResult *[class*="Value"],
#happysip-calculator-root #officialEnergyResult .shareLine b,
#happysip-calculator-root #officialEnergyResult .hsEnergyBarRow b,
#happysip-calculator-root #officialEnergyResult .hsWindowBalanceRow b { font-family: var(--font-ui) !important; font-variant-numeric: tabular-nums; letter-spacing: 0 !important; }
#happysip-calculator-root #officialEnergyResult .hsEnergyBarRow { display: grid !important; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) 56px !important; align-items: center; gap: 10px !important; }
#happysip-calculator-root #officialEnergyResult .hsEnergyBarRow b { text-align: right; white-space: nowrap; }
#happysip-calculator-root #officialEnergyResult .hsWindowBalanceRow { display: grid !important; grid-template-columns: 64px minmax(0, 1fr) auto !important; align-items: center; gap: 10px !important; }
#happysip-calculator-root #officialEnergyResult .shareIcon img,
#happysip-calculator-root #officialEnergyResult img:not([src]) { display: none !important; }
#happysip-calculator-root #officialEnergyResult.hsHasHero .energyClassPanel { display: none !important; }
#happysip-calculator-root #officialEnergyResult details.hsPhppMetricDetails { margin: 0 0 8px !important; border-radius: 10px !important; }
#happysip-calculator-root #officialEnergyResult details.hsPhppMetricDetails summary { padding: 12px 16px !important; font-size: 14px !important; }


/* ---------- ecrane medii ---------- */
@media (max-width: 1440px) and (min-width: 1101px) {
  #happysip-calculator-root .cfgPanel { width: 430px; }
  #happysip-calculator-root .cfg3dSlot { left: 470px; right: 130px; }
  #happysip-calculator-root .cfgViewBtns, #happysip-calculator-root .cfgLegendNote { left: 478px; }
  #happysip-calculator-root .cfgPlaceholder, #happysip-calculator-root .cfgShapeNote { left: 580px; }
  #happysip-calculator-root .cfgTitleHost { width: min(520px, calc(100% - 500px)); }
  #happysip-calculator-root .cfgTitle:not(.is-report) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #happysip-calculator-root .cfgLegendNote { max-width: 260px; }
  #happysip-calculator-root .cfgPanel--report { width: 480px; }
  #happysip-calculator-root .cfg--report .cfg3dSlot, #happysip-calculator-root .cfgStageHead { left: 528px; }
  #happysip-calculator-root .cfg--report .cfgTitleHost { width: min(520px, calc(100% - 560px)); }
}
@media (max-width: 1100px) {
  #happysip-calculator-root.hsCfgActive .hsWorkspaceContent { display: block !important; overflow-y: auto !important; padding: 0 !important; }
  #happysip-calculator-root .app.hsCalculatorOnly.hsCfgShell { display: block !important; }
  #happysip-calculator-root .cfg { height: auto; min-height: 0; display: flex; flex-direction: column; }
  #happysip-calculator-root .cfgStage { position: relative; inset: auto; order: 1; height: 440px; flex: none; }
  #happysip-calculator-root .cfg3dSlot, #happysip-calculator-root .cfg--report .cfg3dSlot { left: 0; right: 0; top: 56px; bottom: 64px; }
  #happysip-calculator-root .cfgViewBtns { left: 14px; top: 12px; }
  #happysip-calculator-root .cfgPlaceholder, #happysip-calculator-root .cfgShapeNote { left: 120px; right: 14px; top: 10px; font-size: 12px; padding: 8px 10px; }
  #happysip-calculator-root .cfgPlaceholder + .cfgShapeNote { display: none; }
  #happysip-calculator-root .cfgLegendNote { left: 14px; right: 14px; bottom: 10px; max-width: none; font-size: 11.5px; }
  #happysip-calculator-root .cfgScaleHost { position: absolute; left: auto; right: 14px; top: 12px; bottom: auto; }
  #happysip-calculator-root .cfgScale { flex-direction: row; align-items: center; gap: 8px; width: auto; max-height: none; }
  #happysip-calculator-root .cfgScale ol { flex-direction: row; gap: 3px; }
  #happysip-calculator-root .cfgScale li { flex: none; }
  #happysip-calculator-root .cfgScale li b { width: 22px; height: 24px; font-size: 11px; }
  #happysip-calculator-root .cfgScale li.is-on b { width: 30px; height: 30px; font-size: 14px; }
  #happysip-calculator-root .cfgScale li small, #happysip-calculator-root .cfgScale p { display: none; }
  #happysip-calculator-root .cfgScaleMark { position: static; transform: none; margin-left: 6px; }
  #happysip-calculator-root .cfgScaleMark::after { display: none; }
  #happysip-calculator-root .cfgTitleHost { display: none; }
  #happysip-calculator-root .cfgPanel, #happysip-calculator-root .cfgPanel--report { position: relative; inset: auto; order: 2; width: auto; margin: -18px 0 0; border-radius: 18px 18px 0 0; border-left: 0; border-right: 0; box-shadow: 0 -8px 24px rgba(62, 62, 61, .08); overflow: visible; }
  #happysip-calculator-root .cfgAcc, #happysip-calculator-root .cfgReport { overflow: visible; }
  #happysip-calculator-root .cfgPanelFoot { position: sticky; bottom: 0; z-index: 5; background: var(--b-white); }
  #happysip-calculator-root .cfgStageHead { left: 14px; right: 14px; top: 56px; }
  #happysip-calculator-root .cfg--report .cfgPanel--report { order: 0; margin: 0; border-radius: 0; }
  #happysip-calculator-root .cfg--report .cfgStage { order: 1; }
  #happysip-calculator-root .cfg--report .cfgStage .cfgStageHead { top: 12px; right: 170px; }
  #happysip-calculator-root .hsAcctGrid { grid-template-columns: minmax(0, 1fr); }
  #happysip-calculator-root .hsAcctSide { position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  #happysip-calculator-root .hsAcctNav { display: none; }
  #happysip-calculator-root .hsAccountSummary { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #happysip-calculator-root .hsAccountCard:nth-child(2) { border-right: 0 !important; }
  #happysip-calculator-root .hsAccountCard:nth-child(-n+2) { border-bottom: 1px solid var(--b-line) !important; }
}
/* ---------- telefon ---------- */
@media (max-width: 700px) {
  #happysip-calculator-root.hsTab-dashboard #app.body,
  #happysip-calculator-root.hsTab-reports #app.body,
  #happysip-calculator-root.hsTab-account #app.body,
  #happysip-calculator-root.hsTab-structuri #app.body { padding: 22px 16px 26px !important; }
  #happysip-calculator-root .hsPageHead, #happysip-calculator-root .hsDashboardIntro, #happysip-calculator-root .hsReportsHero { flex-direction: column !important; align-items: flex-start !important; }
  #happysip-calculator-root .hsPageHead h2, #happysip-calculator-root .hsDashboardIntro h2, #happysip-calculator-root .hsReportsHero h2 { font-size: 24px !important; }
  #happysip-calculator-root .cfgStage { height: 360px; }
  #happysip-calculator-root .cfgPanelHead, #happysip-calculator-root .cfgAccHead, #happysip-calculator-root .cfgPanelFoot { padding-left: 16px; padding-right: 16px; }
  #happysip-calculator-root .cfgForm { padding: 4px 16px 20px; }
  #happysip-calculator-root .cfgForm .form { grid-template-columns: minmax(0, 1fr) !important; }
  #happysip-calculator-root .cfgForm .hs-data-row { grid-template-columns: minmax(0, 1fr) !important; }
  #happysip-calculator-root .cfgTopTiles { gap: 6px; }
  #happysip-calculator-root .cfgTopTile svg { width: 48px; height: 38px; }
  #happysip-calculator-root .cfgTopTile span { display: none; }
  #happysip-calculator-root .cfgAccText small { display: none; }
  #happysip-calculator-root .cfgAccItem.is-open .cfgAccText small { display: block; }
  #happysip-calculator-root .cfgReport { padding: 16px; }
  #happysip-calculator-root .hh3dLabel { font-size: 10.5px; padding: 2px 6px; }
  #happysip-calculator-root .hsEnergyHero { grid-template-columns: minmax(0, 1fr); }
  #happysip-calculator-root .hsKeyRow { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "value" "gauge" "note"; }
  #happysip-calculator-root .hsBandBar small, #happysip-calculator-root .hsBandMarker small { display: none; }
  #happysip-calculator-root .hsAcctFields { grid-template-columns: minmax(0, 1fr); }
  #happysip-calculator-root .hsAcctSpacer { display: none; }
  #happysip-calculator-root .hsAcctCard { padding: 20px 18px; }
  #happysip-calculator-root .hsAcctSession { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  #happysip-calculator-root * { scroll-behavior: auto !important; transition: none !important; }
}

/* ---------- reglaje: tabele aliniate, cont fără „i”, structuri în culorile brandului ---------- */
#happysip-calculator-root .hsHistoryHead,
#happysip-calculator-root .hsHistoryRow { display: grid !important; grid-template-columns: minmax(200px, 2fr) 110px 140px 110px 300px !important; align-items: center !important; column-gap: 12px !important; }
#happysip-calculator-root .hsHistoryActions { justify-content: flex-end !important; }
#happysip-calculator-root .hsReportHead,
#happysip-calculator-root .hsReportRow { display: grid !important; grid-template-columns: minmax(240px, 2.2fr) 80px 120px 100px 230px !important; align-items: center !important; column-gap: 12px !important; }
#happysip-calculator-root .hsReportActions { justify-content: flex-end !important; }
@media (max-width: 1100px) {
  #happysip-calculator-root .hsHistoryHead, #happysip-calculator-root .hsReportHead { display: none !important; }
  #happysip-calculator-root .hsHistoryRow, #happysip-calculator-root .hsReportRow { grid-template-columns: minmax(0, 1fr) auto !important; row-gap: 8px !important; padding: 14px 16px !important; }
  #happysip-calculator-root .hsHistoryActions, #happysip-calculator-root .hsReportActions { grid-column: 1 / -1; justify-content: flex-start !important; flex-wrap: wrap; }
}
#happysip-calculator-root .hsAcctField .hsFieldInfo { display: none !important; }

#happysip-calculator-root .hsStructurePageHead { margin-bottom: 24px !important; padding-bottom: 22px !important; border-bottom: 1px solid var(--b-line) !important; }
#happysip-calculator-root .hsStructurePageHead h2 { font-size: 30px !important; font-weight: 700 !important; color: var(--b-ink) !important; }
#happysip-calculator-root .hsStructureLead { font-size: 14.5px !important; color: var(--b-ink-2) !important; }
#happysip-calculator-root .hsStructureModeTabs button { border: 1px solid var(--b-line) !important; background: var(--b-white) !important; box-shadow: none !important; border-radius: 12px !important; }
#happysip-calculator-root .hsStructureModeTabs button.active { border-color: var(--b-green) !important; background: var(--b-green-soft) !important; }
#happysip-calculator-root .hsEnvelopeChooserIntro { border: 0 !important; background: transparent !important; padding: 8px 0 !important; box-shadow: none !important; }
#happysip-calculator-root .hsEnvelopeSection,
#happysip-calculator-root .hsEnvelopeSection.hsEnvelope-nzeb,
#happysip-calculator-root .hsEnvelopeSection.hsEnvelope-performance,
#happysip-calculator-root .hsEnvelopeSection.hsEnvelope-passive {
  --hs-envelope: var(--b-ink); --hs-envelope-soft: #f7f7f6;
  border: 1px solid var(--b-line) !important; border-top: 1px solid var(--b-line) !important; border-radius: 14px !important; box-shadow: none !important; background: var(--b-white) !important;
}
#happysip-calculator-root .hsEnvelopeSection.is-selected { border-color: var(--b-green) !important; box-shadow: 0 0 0 1px var(--b-green) !important; }
#happysip-calculator-root .hsEnvelopeNumber { background: #f5f5f4 !important; color: var(--b-ink) !important; border: 0 !important; }
#happysip-calculator-root .hsEnvelopeHeader small { color: var(--b-green-ink) !important; letter-spacing: .08em !important; }
#happysip-calculator-root .hsEnvelopeSelectedBadge { background: var(--b-green) !important; color: #24300f !important; }
#happysip-calculator-root .hsEnvelopeBenefit { background: #f7f7f6 !important; color: var(--b-ink) !important; border: 0 !important; }
#happysip-calculator-root .hsEnvelopeUGrid span { background: var(--b-white) !important; border: 1px solid var(--b-line) !important; }
/* Elementele anvelopei: rânduri compacte în loc de fișe înalte. */
#happysip-calculator-root .hsEnvelopeSelectedDetails .values { display: grid !important; grid-template-columns: 1fr !important; gap: 6px !important; }
#happysip-calculator-root .hsEnvelopeSelectedDetails .sticker {
  display: grid !important; grid-template-columns: 34px minmax(0, 1fr) auto !important; grid-template-areas: "icon title u" "icon hint u" !important;
  align-items: center !important; column-gap: 12px !important; min-height: 0 !important; padding: 10px 12px !important; text-align: left !important;
  border: 1px solid var(--b-line) !important; border-radius: 10px !important; background: var(--b-white) !important; box-shadow: none !important;
}
#happysip-calculator-root .hsEnvelopeSelectedDetails .stickerIcon { grid-area: icon; width: 34px !important; height: 34px !important; margin: 0 !important; background: #f5f5f4 !important; box-shadow: none !important; }
#happysip-calculator-root .hsEnvelopeSelectedDetails .stickerTitle { grid-area: title; font-size: 13.5px !important; font-weight: 600 !important; }
#happysip-calculator-root .hsEnvelopeSelectedDetails .stickerHint { grid-area: hint; justify-self: start; margin: 0 !important; padding: 0 !important; background: none !important; color: var(--b-green-ink) !important; font-size: 12px !important; text-decoration: underline; }
#happysip-calculator-root .hsEnvelopeSelectedDetails .stickerU { grid-area: u; font-size: 17px !important; font-weight: 600 !important; margin: 0 !important; }
@media (max-width: 700px) {
  #happysip-calculator-root .cfgPanelFoot { padding-top: 12px; padding-bottom: 12px; }
  #happysip-calculator-root .cfgPanelFoot small { display: none; }
  #happysip-calculator-root .cfgPanelFoot .cfgLink { padding: 2px; }
}
@media (max-width: 700px) {
  #happysip-calculator-root .cfgStage { height: 400px; }
  #happysip-calculator-root .cfg3dSlot { top: 54px; bottom: 96px; }
  #happysip-calculator-root .cfgLegendNote { bottom: 30px; }
  #happysip-calculator-root .cfg:not(.cfg--report) .hh3dLabel.is-warm,
  #happysip-calculator-root .cfg:not(.cfg--report) .hh3dLabel.is-cold { display: none; }
}
#happysip-calculator-root .cfgTopField > small { display: block !important; margin-top: 8px !important; font-size: 12px !important; line-height: 1.5 !important; color: var(--b-ink-2) !important; }
#happysip-calculator-root .cfgTopField > label { display: block; }
