/* Fiction Maestro V953 — shared Narrative Director / Prompt Studio visual system.
   Prompt Studio is the reference: compact hierarchy, warm greys, precise spacing,
   subtle borders, consistent icons and restrained elevation. */
:root{
  --fm-bg:#f4f1ec;
  --fm-surface:#ffffff;
  --fm-surface-soft:#faf8f4;
  --fm-surface-side:#f8f5f0;
  --fm-line:#ded7ce;
  --fm-line-soft:#eee8df;
  --fm-line-strong:#d1c9bf;
  --fm-ink:#2d2925;
  --fm-muted:#777067;
  --fm-muted-2:#8a8279;
  --fm-dark:#302d29;
  --fm-dark-hover:#24211e;
  --fm-green:#398456;
  --fm-green-soft:#edf8f0;
  --fm-green-line:#9bc8a7;
  --fm-danger:#8a3427;
  --fm-danger-soft:#fff7f4;
  --fm-danger-line:#d9ada4;
  --fm-shadow:0 4px 14px rgba(30,25,20,.035);
  --fm-focus:0 0 0 3px rgba(48,45,41,.10);
}

body[data-native-builder="1"],body[data-native-desk="1"]{
  margin:0;
  min-height:100%;
  background:var(--fm-bg);
  color:var(--fm-ink);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:12px;
  line-height:1.48;
  text-rendering:optimizeLegibility;
}
body[data-native-builder="1"] a,body[data-native-desk="1"] a{color:inherit;text-decoration:none}
body[data-native-builder="1"] .icoSvg,body[data-native-desk="1"] .icoSvg{width:14px;height:14px;stroke-width:1.75;flex:0 0 auto}
body[data-native-builder="1"] .withIconButton,body[data-native-desk="1"] .withIconButton{display:inline-flex;align-items:center;gap:7px}

/* Header and global context */
body[data-native-builder="1"] .generatorHeaderClean,
body[data-native-desk="1"] .readerHeaderClean{
  min-height:67px!important;
  padding:10px 20px!important;
  background:#fff!important;
  border:0!important;
  border-bottom:1px solid var(--fm-line)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  position:sticky!important;
  top:0!important;
  z-index:30!important;
  box-shadow:none!important;
}
body[data-native-builder="1"] .generatorLogoContext,
body[data-native-desk="1"] .readerLogoContext{display:flex!important;align-items:center!important;gap:13px!important;min-width:0!important}
body[data-native-builder="1"] .generatorLogoHome,
body[data-native-desk="1"] .readerLogoHome{font-weight:900!important;font-size:18px!important;letter-spacing:-.025em!important;white-space:nowrap!important;color:var(--fm-ink)!important;padding:2px 4px!important;margin-left:-4px!important;border-radius:8px!important}
body[data-native-builder="1"] .generatorLogoHome:hover,
body[data-native-desk="1"] .readerLogoHome:hover{background:#f3efe9!important}
body[data-native-builder="1"] .professionalProductBadge,
body[data-native-desk="1"] .readerProductBadge{display:inline-flex!important;font-size:9px!important;text-transform:uppercase!important;letter-spacing:.08em!important;font-weight:850!important;border:1px solid #d7d0c7!important;border-radius:999px!important;padding:5px 8px!important;color:#675f57!important;background:#fff!important;white-space:nowrap!important}
body[data-native-builder="1"] .activeProjectBar,
body[data-native-desk="1"] .readerActiveProject{display:block!important;min-width:0!important;padding:0 0 0 13px!important;margin:0!important;border:0!important;border-left:1px solid #e8e1d8!important;background:transparent!important;box-shadow:none!important}
body[data-native-builder="1"] .activeProjectBar label,
body[data-native-desk="1"] .readerActiveProject label{display:block!important;margin:0!important;font-size:9px!important;text-transform:uppercase!important;letter-spacing:.035em!important;color:var(--fm-muted)!important;font-weight:800!important}
body[data-native-builder="1"] .activeProjectBar .contextValue,
body[data-native-desk="1"] .readerActiveProject strong{display:block!important;max-width:380px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:12px!important;color:var(--fm-ink)!important}
body[data-native-builder="1"] .generatorHeaderActions,
body[data-native-desk="1"] .readerHeaderActions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important}
body[data-native-builder="1"] .generatorHeaderActions a,
body[data-native-desk="1"] .readerHeaderActions a,
body[data-native-desk="1"] .readerBiMenu>summary{border:1px solid #d8d1c8!important;border-radius:10px!important;padding:8px 11px!important;background:#fff!important;color:var(--fm-ink)!important;font-size:11px!important;font-weight:800!important;line-height:1.15!important;white-space:nowrap!important;box-shadow:none!important;cursor:pointer!important}
body[data-native-builder="1"] .generatorHeaderActions a:hover,
body[data-native-desk="1"] .readerHeaderActions a:hover,
body[data-native-desk="1"] .readerBiMenu>summary:hover{background:#f4f0ea!important;border-color:#c9c0b6!important}
body[data-native-builder="1"] .generatorHeaderActions .headerFictionDeskBtn,
body[data-native-desk="1"] .readerHeaderActions .workspaceSwitchButton,
body[data-native-desk="1"] .readerHeaderActions .headerFictionBibleBtn{background:#fff!important;color:var(--fm-ink)!important;-webkit-text-fill-color:var(--fm-ink)!important;border-color:#d8d1c8!important}
body[data-native-builder="1"] .generatorHeaderActions .headerFictionDeskBtn:hover,
body[data-native-desk="1"] .readerHeaderActions .workspaceSwitchButton:hover,
body[data-native-desk="1"] .readerHeaderActions .headerFictionBibleBtn:hover{background:#f4f0ea!important;border-color:#c9c0b6!important}

/* Primary horizontal navigation */
body[data-native-builder="1"] .generatorTopmenuWrap,
body[data-native-desk="1"] .readerTopmenuWrap{display:block!important;background:#fff!important;border:0!important;border-bottom:1px solid var(--fm-line)!important;padding:0!important;margin:0!important;overflow:auto!important;box-shadow:none!important}
body[data-native-builder="1"] .generatorTopMenu,
body[data-native-desk="1"] .readerTopMenu{display:flex!important;gap:2px!important;min-width:max-content!important;padding:6px 14px!important;margin:0!important}
body[data-native-builder="1"] .generatorTopMenu a,
body[data-native-desk="1"] .readerTopMenu a{display:inline-flex!important;align-items:center!important;gap:7px!important;padding:8px 11px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#5d5750!important;font-size:11px!important;font-weight:750!important;line-height:1.1!important;box-shadow:none!important}
body[data-native-builder="1"] .generatorTopMenu a.active,
body[data-native-builder="1"] .generatorTopMenu a:hover,
body[data-native-desk="1"] .readerTopMenu a.active,
body[data-native-desk="1"] .readerTopMenu a:hover{background:#eee9e2!important;color:#24211e!important}

/* KPI strip */
body[data-native-builder="1"] .premiumDashboard,
body[data-native-desk="1"] .readerPremiumDashboard{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:1px!important;background:var(--fm-line)!important;border:0!important;border-bottom:1px solid var(--fm-line)!important;margin:0!important;padding:0!important;max-width:none!important;overflow:visible!important}
body[data-native-builder="1"] .premiumKpi,
body[data-native-desk="1"] .readerPremiumKpi{display:block!important;min-width:0!important;min-height:66px!important;padding:9px 14px!important;margin:0!important;border:0!important;border-radius:0!important;background:#fff!important;color:var(--fm-ink)!important;box-shadow:none!important}
body[data-native-builder="1"] .builderVisualKpi,
body[data-native-desk="1"] .readerVisualKpi{height:100%!important;min-height:46px!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;align-items:center!important;column-gap:10px!important;padding:0!important;background:#fff!important;color:var(--fm-ink)!important}
body[data-native-builder="1"] .builderKpiDonut,
body[data-native-desk="1"] .readerKpiDonut{grid-row:1/4!important;width:48px!important;height:48px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:conic-gradient(var(--fm-green) calc(var(--value)*1%),#e5ebe7 0)!important;position:relative!important}
body[data-native-builder="1"] .builderKpiDonut:before,
body[data-native-desk="1"] .readerKpiDonut:before{content:"";position:absolute;inset:6px;border-radius:50%;background:#fff}
body[data-native-builder="1"] .builderKpiDonut span,
body[data-native-desk="1"] .readerKpiDonut span{position:relative!important;font-size:11px!important;font-weight:900!important;color:#28563a!important;line-height:1!important}
body[data-native-builder="1"] .builderKpiValueRow,
body[data-native-desk="1"] .readerKpiValueRow{grid-column:1/3!important;display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important}
body[data-native-builder="1"] .builderKpiValueRow b,
body[data-native-desk="1"] .readerKpiValueRow b{display:block!important;font-size:16px!important;line-height:1.05!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body[data-native-builder="1"] .builderKpiTrack,
body[data-native-desk="1"] .readerKpiTrack{grid-column:1/3!important;display:block!important;height:5px!important;background:#e9e4dc!important;border-radius:999px!important;overflow:hidden!important;margin:2px 0!important;padding:0!important}
body[data-native-builder="1"] .builderKpiTrack i,
body[data-native-desk="1"] .readerKpiTrack i{display:block!important;height:100%!important;border-radius:inherit!important;background:#72ad84!important}
body[data-native-builder="1"] .builderVisualKpi>span,
body[data-native-desk="1"] .readerPremiumKpi>span,
body[data-native-desk="1"] .readerVisualKpi>span{grid-column:2!important;display:block!important;height:auto!important;padding:0!important;background:transparent!important;border-radius:0!important;font-size:9px!important;line-height:1.1!important;text-transform:uppercase!important;letter-spacing:.055em!important;color:var(--fm-muted)!important;font-weight:800!important}
body[data-native-builder="1"] .builderVisualKpi>small,
body[data-native-desk="1"] .readerPremiumKpi>small,
body[data-native-desk="1"] .readerVisualKpi>small{grid-column:2!important;display:block!important;height:auto!important;padding:0!important;background:transparent!important;border-radius:0!important;color:var(--fm-muted-2)!important;font-size:8.5px!important;line-height:1.25!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}

/* Main workspace layout */
body[data-native-builder="1"] .builderWorkspaceMain,
body[data-native-desk="1"] .readerMain{display:grid!important;grid-template-columns:260px minmax(0,1fr)!important;gap:0!important;width:100%!important;max-width:none!important;min-height:calc(100vh - 150px)!important;padding:0!important;margin:0!important;background:var(--fm-bg)!important}
body[data-native-builder="1"] .side.generatorSide,
body[data-native-desk="1"] .readerSide{display:block!important;min-width:0!important;border:0!important;border-right:1px solid var(--fm-line)!important;border-radius:0!important;background:var(--fm-surface-side)!important;padding:15px!important;box-shadow:none!important;position:sticky!important;top:118px!important;height:calc(100vh - 118px)!important;overflow:auto!important}
body[data-native-builder="1"] .work,
body[data-native-desk="1"] .readerWork{display:block!important;min-width:0!important;min-height:calc(100vh - 150px)!important;border:0!important;border-radius:0!important;background:transparent!important;padding:18px 22px 50px!important;box-shadow:none!important}
body[data-native-builder="1"] .page.activePage{display:block!important}

/* Side navigation */
body[data-native-builder="1"] .sideNav{display:block!important}
body[data-native-builder="1"] .navgroup,
body[data-native-desk="1"] .readerSideGroup{margin:14px 0 6px!important;padding:0!important;font-size:9px!important;line-height:1.1!important;text-transform:uppercase!important;letter-spacing:.09em!important;font-weight:900!important;color:#8b837a!important}
body[data-native-builder="1"] .navbtn,
body[data-native-desk="1"] .readerSideLink{display:grid!important;grid-template-columns:16px minmax(0,1fr) auto!important;align-items:start!important;gap:7px!important;width:100%!important;border:1px solid transparent!important;border-radius:10px!important;padding:9px 10px!important;margin:2px 0!important;background:transparent!important;color:#554f48!important;font-size:11px!important;font-weight:750!important;line-height:1.25!important;box-shadow:none!important;text-align:left!important}
body[data-native-builder="1"] .navbtn>span,
body[data-native-desk="1"] .readerSideLink>span{min-width:0!important}
body[data-native-builder="1"] .navbtn b,
body[data-native-desk="1"] .readerSideLink b{display:block!important;font-size:11px!important;color:inherit!important}
body[data-native-builder="1"] .navbtn small,
body[data-native-desk="1"] .readerSideLink small{display:block!important;margin-top:2px!important;color:#8a8279!important;font-size:9px!important;font-weight:600!important;line-height:1.3!important}
body[data-native-builder="1"] .navbtn.active,
body[data-native-builder="1"] .navbtn.primary,
body[data-native-desk="1"] .readerSideLink.active{background:#fff!important;border-color:var(--fm-line)!important;color:#24211e!important;-webkit-text-fill-color:#24211e!important;box-shadow:var(--fm-shadow)!important}
body[data-native-builder="1"] .navbtn.active *,body[data-native-builder="1"] .navbtn.primary *{color:inherit!important;-webkit-text-fill-color:inherit!important}
body[data-native-builder="1"] .navbtn:hover,
body[data-native-desk="1"] .readerSideLink:hover{background:#f0ebe4!important;color:#24211e!important}
body[data-native-builder="1"] .sideUtility{display:grid!important;gap:3px!important;border-top:1px solid var(--fm-line)!important;margin-top:12px!important;padding-top:10px!important}
body[data-native-builder="1"] .sideUtility a{display:flex!important;align-items:center!important;gap:7px!important;border:1px solid #ddd5cb!important;border-radius:9px!important;padding:8px 10px!important;margin:0!important;background:#fff!important;color:#514b44!important;font-size:10px!important;font-weight:800!important;box-shadow:none!important}
body[data-native-builder="1"] .sideUtility a.primary{background:var(--fm-dark)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:var(--fm-dark)!important}
body[data-native-builder="1"] .quietTech{display:none!important}
body[data-native-builder="1"] .builderFictionHealth{margin-top:10px!important}
body[data-native-builder="1"] .fmBuilderHealth{border:1px solid var(--fm-line)!important;border-radius:12px!important;background:#fff!important;padding:10px!important;box-shadow:none!important}

/* Page titles and actions */
body[data-native-builder="1"] .generatorProductPage,
body[data-native-desk="1"] .readerWork>*{min-width:0;max-width:100%}
body[data-native-builder="1"] .productPageHeader,
body[data-native-desk="1"] .readerPageHead{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:18px!important;margin:0 0 14px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body[data-native-builder="1"] .productPageHeader>div:first-child{min-width:0}
body[data-native-builder="1"] .productPageHeader h2,
body[data-native-desk="1"] .readerPageHead h1{font-size:25px!important;line-height:1.1!important;letter-spacing:-.035em!important;margin:0!important;color:var(--fm-ink)!important}
body[data-native-builder="1"] .productPageHeader p,
body[data-native-desk="1"] .readerPageHead p{max-width:760px!important;color:#706960!important;font-size:12px!important;line-height:1.5!important;margin:7px 0 0!important}
body[data-native-builder="1"] .smallCaps,
body[data-native-builder="1"] .premiumKicker,
body[data-native-desk="1"] .readerEyebrow{display:block!important;font-size:9px!important;line-height:1.1!important;text-transform:uppercase!important;letter-spacing:.09em!important;color:#7e766d!important;font-weight:900!important;margin:0 0 4px!important}
body[data-native-builder="1"] .primaryActionBar,
body[data-native-builder="1"] .editActionBar,
body[data-native-builder="1"] .resultActions,
body[data-native-desk="1"] .readerActions{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important;margin:0!important}

/* Buttons */
body[data-native-builder="1"] button,
body[data-native-builder="1"] a.btn,
body[data-native-builder="1"] .primaryActionBar>a,
body[data-native-builder="1"] .editActionBar>a,
body[data-native-desk="1"] .readerButton{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:auto!important;min-height:34px!important;border:1px solid #d9d1c8!important;border-radius:9px!important;padding:8px 11px!important;margin:0!important;background:#fff!important;color:var(--fm-ink)!important;-webkit-text-fill-color:var(--fm-ink)!important;font:inherit!important;font-size:10px!important;font-weight:800!important;line-height:1.1!important;box-shadow:none!important;cursor:pointer!important;text-align:center!important;transition:background .12s ease,border-color .12s ease,transform .12s ease!important}
body[data-native-builder="1"] button:hover,
body[data-native-builder="1"] a.btn:hover,
body[data-native-builder="1"] .primaryActionBar>a:hover,
body[data-native-builder="1"] .editActionBar>a:hover,
body[data-native-desk="1"] .readerButton:hover{background:#f3efe9!important;border-color:#c8c0b6!important;transform:none!important}
body[data-native-builder="1"] button.primary,
body[data-native-builder="1"] a.btn.primary,
body[data-native-builder="1"] .primaryActionBar>a.primary,
body[data-native-builder="1"] .editActionBar>a.primary,
body[data-native-desk="1"] .readerButton.primary{background:var(--fm-dark)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:var(--fm-dark)!important}
body[data-native-builder="1"] button.primary:hover,
body[data-native-builder="1"] a.btn.primary:hover,
body[data-native-builder="1"] .primaryActionBar>a.primary:hover{background:var(--fm-dark-hover)!important;border-color:var(--fm-dark-hover)!important}
body[data-native-builder="1"] button[disabled],body[data-native-builder="1"] a[aria-disabled="true"]{opacity:.5!important;cursor:not-allowed!important}
body[data-native-builder="1"] .btn.danger,body[data-native-builder="1"] button.dangerBtn{background:var(--fm-danger-soft)!important;border-color:var(--fm-danger-line)!important;color:var(--fm-danger)!important;-webkit-text-fill-color:var(--fm-danger)!important}

/* Panels, cards and restrained hero surfaces */
body[data-native-builder="1"] .operationalPanel,
body[data-native-builder="1"] .card,
body[data-native-builder="1"] .previewCard,
body[data-native-builder="1"] .editorialResult,
body[data-native-builder="1"] .nativeWizardSection,
body[data-native-builder="1"] .refineCompactPanel,
body[data-native-builder="1"] .guideDocSection,
body[data-native-builder="1"] .repairPlanCard,
body[data-native-builder="1"] .entityListCard,
body[data-native-desk="1"] .readerCard,
body[data-native-desk="1"] .readerPanel{min-width:0!important;border:1px solid #e3dcd2!important;border-radius:14px!important;background:#fff!important;padding:13px!important;margin:0 0 12px!important;box-shadow:var(--fm-shadow)!important;overflow:hidden!important}
body[data-native-builder="1"] .professionalHero,
body[data-native-builder="1"] .hero,
body[data-native-builder="1"] .editorialHero,
body[data-native-builder="1"] .previewHero,
body[data-native-builder="1"] .generationArchiveHero,
body[data-native-builder="1"] .refineCompactIntro,
body[data-native-builder="1"] .guideDocHero,
body[data-native-builder="1"] .rightHero,
body[data-native-builder="1"] .homeLibraryShelf,
body[data-native-builder="1"] .manualFastHero{display:block!important;border:1px solid #e3dcd2!important;border-radius:14px!important;background:linear-gradient(180deg,#fff,#faf8f4)!important;color:var(--fm-ink)!important;-webkit-text-fill-color:var(--fm-ink)!important;padding:14px!important;margin:0 0 12px!important;box-shadow:var(--fm-shadow)!important}
body[data-native-builder="1"] .professionalHero *,
body[data-native-builder="1"] .hero *,
body[data-native-builder="1"] .editorialHero *,
body[data-native-builder="1"] .previewHero *,
body[data-native-builder="1"] .generationArchiveHero *,
body[data-native-builder="1"] .refineCompactIntro *,
body[data-native-builder="1"] .guideDocHero *{color:inherit!important;-webkit-text-fill-color:inherit!important}
body[data-native-builder="1"] .professionalHero h2{font-size:22px!important;line-height:1.12!important;letter-spacing:-.035em!important;margin:4px 0 8px!important;max-width:900px!important}
body[data-native-builder="1"] .professionalHero p,
body[data-native-builder="1"] .hero p,
body[data-native-builder="1"] .editorialHero p,
body[data-native-builder="1"] .guideDocHero p{color:#706960!important;font-size:11px!important;line-height:1.5!important;margin:4px 0!important}
body[data-native-builder="1"] .nativeWizardSectionHead{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:14px!important;margin-bottom:10px!important;padding-bottom:9px!important;border-bottom:1px solid var(--fm-line-soft)!important}
body[data-native-builder="1"] .nativeWizardSectionHead h3,
body[data-native-builder="1"] .operationalPanel>h3,
body[data-native-builder="1"] .card h3{font-size:13px!important;line-height:1.25!important;margin:0 0 5px!important;color:var(--fm-ink)!important}
body[data-native-builder="1"] .nativeWizardSectionHead p,
body[data-native-builder="1"] .operationalPanel p,
body[data-native-builder="1"] .card p{font-size:11px!important;line-height:1.5!important;color:#6d665e!important;margin:4px 0!important}
body[data-native-builder="1"] .sectionTitle{font-size:13px!important;line-height:1.2!important;letter-spacing:0!important;text-transform:none!important;color:var(--fm-ink)!important;font-weight:850!important;border-bottom:1px solid var(--fm-line-soft)!important;padding-bottom:7px!important;margin:15px 0 9px!important}
body[data-native-builder="1"] .editorialMetric,
body[data-native-builder="1"] .previewKpiCard,
body[data-native-builder="1"] .previewQualityItem,
body[data-native-builder="1"] .pivotCard{border:1px solid var(--fm-line-soft)!important;border-radius:12px!important;background:var(--fm-surface-soft)!important;color:var(--fm-ink)!important;-webkit-text-fill-color:var(--fm-ink)!important;padding:10px!important;box-shadow:none!important}
body[data-native-builder="1"] .pivotCard *{color:inherit!important;-webkit-text-fill-color:inherit!important}

/* Forms */
body[data-native-builder="1"] label,
body[data-native-desk="1"] label{font-size:10px!important;font-weight:850!important;color:#5f5850!important;line-height:1.2!important;margin:0 0 5px!important}
body[data-native-builder="1"] input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),
body[data-native-builder="1"] select,
body[data-native-builder="1"] textarea,
body[data-native-desk="1"] input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),
body[data-native-desk="1"] select,
body[data-native-desk="1"] textarea{width:100%!important;border:1px solid #d9d1c8!important;border-radius:9px!important;background-color:#fff!important;color:var(--fm-ink)!important;-webkit-text-fill-color:var(--fm-ink)!important;padding:9px 34px 9px 10px!important;margin:0!important;font:inherit!important;font-size:11px!important;line-height:1.3!important;box-shadow:none!important;transition:border-color .12s ease,box-shadow .12s ease!important}
body[data-native-builder="1"] textarea,body[data-native-desk="1"] textarea{min-height:90px!important;padding-right:10px!important;resize:vertical!important}
body[data-native-builder="1"] select,body[data-native-desk="1"] select{appearance:none!important;-webkit-appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23675f57' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 10px center!important;background-size:14px!important}
body[data-native-builder="1"] input:focus,
body[data-native-builder="1"] select:focus,
body[data-native-builder="1"] textarea:focus,
body[data-native-desk="1"] input:focus,
body[data-native-desk="1"] select:focus,
body[data-native-desk="1"] textarea:focus{outline:0!important;border-color:#6b6259!important;box-shadow:var(--fm-focus)!important}
body[data-native-builder="1"] .field,
body[data-native-builder="1"] .nativeFieldCard,
body[data-native-builder="1"] .refineCompactField,
body[data-native-builder="1"] .factoryFieldCard{display:grid!important;gap:5px!important;min-width:0!important}
body[data-native-builder="1"] .nativeFormGrid,
body[data-native-builder="1"] .safeFieldGrid,
body[data-native-builder="1"] .factorySafeFieldGrid,
body[data-native-builder="1"] .refineCompactGrid{gap:10px!important}
body[data-native-builder="1"] .fieldHelp{font-size:9px!important;line-height:1.35!important;color:var(--fm-muted-2)!important;margin:1px 0 0!important}
body[data-native-builder="1"] .radioRow label,
body[data-native-builder="1"] .checkgrid label,
body[data-native-builder="1"] .generationRadioRow label,
body[data-native-builder="1"] .generationCheck{display:flex!important;align-items:center!important;gap:7px!important;border:1px solid var(--fm-line)!important;border-radius:9px!important;padding:8px 10px!important;background:#fff!important;font-size:10px!important;font-weight:750!important}
body[data-native-builder="1"] input[type="radio"],body[data-native-builder="1"] input[type="checkbox"]{width:auto!important;margin:0!important;accent-color:var(--fm-green)!important}

/* Tables */
body[data-native-builder="1"] .entityListBox,
body[data-native-builder="1"] .compactTableWrap,
body[data-native-builder="1"] .completionTableWrap,
body[data-native-builder="1"] .smartDeletionTableWrap,
body[data-native-builder="1"] .atlasWideTable,
body[data-native-builder="1"] .previewCompactTable,
body[data-native-builder="1"] .readerTableWrap{overflow:auto!important;border:1px solid #e5ded5!important;border-radius:12px!important;background:#fff!important}
body[data-native-builder="1"] table{width:100%!important;border-collapse:collapse!important;border-spacing:0!important;background:#fff!important;font-size:11px!important}
body[data-native-builder="1"] th,
body[data-native-builder="1"] td{padding:8px 9px!important;border:0!important;border-bottom:1px solid var(--fm-line-soft)!important;text-align:left!important;vertical-align:top!important;word-break:normal!important;overflow-wrap:anywhere!important}
body[data-native-builder="1"] th{background:var(--fm-surface-soft)!important;color:#655f58!important;font-size:9px!important;line-height:1.2!important;text-transform:uppercase!important;letter-spacing:.045em!important;font-weight:900!important}
body[data-native-builder="1"] tr:last-child td{border-bottom:0!important}
body[data-native-builder="1"] tbody tr:hover td{background:#fdfbf8!important}
body[data-native-builder="1"] .activeRow td{background:#f1ede7!important}

/* Chips, notices and empty states */
body[data-native-builder="1"] .pill,
body[data-native-builder="1"] .badge,
body[data-native-builder="1"] .prefillMark,
body[data-native-builder="1"] .modifiedBadge,
body[data-native-desk="1"] .readerTag{display:inline-flex!important;align-items:center!important;gap:5px!important;border:1px solid #ddd6cc!important;border-radius:999px!important;background:var(--fm-surface-soft)!important;color:#514b44!important;-webkit-text-fill-color:#514b44!important;padding:3px 7px!important;margin:0!important;font-size:9px!important;line-height:1.2!important;font-weight:800!important}
body[data-native-builder="1"] .completionPill{background:var(--fm-green-soft)!important;border-color:var(--fm-green-line)!important;color:#26593a!important;-webkit-text-fill-color:#26593a!important}
body[data-native-builder="1"] .nativeNotice,
body[data-native-builder="1"] .box,
body[data-native-builder="1"] .dataNote,
body[data-native-builder="1"] .productUxNote,
body[data-native-builder="1"] .microHelp,
body[data-native-desk="1"] .readerNotice{border:1px solid #d9d1c8!important;border-radius:12px!important;padding:10px 12px!important;background:#fff!important;color:#5f5850!important;font-size:11px!important;line-height:1.5!important}
body[data-native-builder="1"] .okbox,body[data-native-builder="1"] .notice.success{border:1px solid #bfe4cb!important;border-radius:12px!important;background:#f2fff6!important;color:#285b38!important;padding:10px 12px!important}
body[data-native-builder="1"] .warnbox{border:1px solid #e3d18b!important;border-radius:12px!important;background:#fffaf0!important;color:#5e4b16!important;padding:10px 12px!important}
body[data-native-builder="1"] .emptyState,
body[data-native-builder="1"] .editorialEmpty,
body[data-native-builder="1"] .entityEmpty,
body[data-native-desk="1"] .readerEmpty{border:1px dashed #d4ccc2!important;border-radius:14px!important;padding:20px!important;text-align:center!important;color:#7c746b!important;background:#fbfaf8!important}

/* Builder workflows: same compact rhythm, green only for completion. */
body[data-native-builder="1"] .generationWizardShell,
body[data-native-builder="1"] .refineShell,
body[data-native-builder="1"] .fictionEntityWorkspace,
body[data-native-builder="1"] .repairPlanWorkspace,
body[data-native-builder="1"] .smartDeletionWorkspace{display:grid!important;gap:12px!important}
body[data-native-builder="1"] .generationWizardRail,
body[data-native-builder="1"] .wizardStepRail{gap:8px!important}
body[data-native-builder="1"] .wizardStepItem,
body[data-native-builder="1"] .flowTile,
body[data-native-builder="1"] .refineSectionCard{border:1px solid var(--fm-line)!important;border-radius:12px!important;background:var(--fm-surface-soft)!important;color:var(--fm-ink)!important;padding:10px!important;box-shadow:none!important}
body[data-native-builder="1"] .wizardStepItem.active,
body[data-native-builder="1"] .wizardStepItem.done,
body[data-native-builder="1"] .flowTile.activeFlow,
body[data-native-builder="1"] .flowTile.doneFlow,
body[data-native-builder="1"] .refineSectionCard.isComplete{background:var(--fm-green-soft)!important;border-color:var(--fm-green-line)!important;color:#214f32!important;-webkit-text-fill-color:#214f32!important}
body[data-native-builder="1"] .wizardStepNumber,
body[data-native-builder="1"] .refineCardState{width:30px!important;height:30px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#e7e1d9!important;color:#665f57!important;font-size:11px!important;font-weight:900!important}
body[data-native-builder="1"] .wizardStepItem.active .wizardStepNumber,
body[data-native-builder="1"] .wizardStepItem.done .wizardStepNumber,
body[data-native-builder="1"] .refineSectionCard.isComplete .refineCardState{background:var(--fm-green)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body[data-native-builder="1"] .choiceGrid,
body[data-native-builder="1"] .generationOperationGrid,
body[data-native-builder="1"] .dynamicCardGrid{gap:10px!important}
body[data-native-builder="1"] .choiceCard,
body[data-native-builder="1"] .generationOperationCard,
body[data-native-builder="1"] .dynamicCard,
body[data-native-builder="1"] .guidedAreaCard,
body[data-native-builder="1"] .factoryTypeCard{border:1px solid #e3dcd2!important;border-radius:14px!important;background:#fff!important;padding:12px!important;box-shadow:var(--fm-shadow)!important;min-height:0!important}
body[data-native-builder="1"] .choiceCard.selected,
body[data-native-builder="1"] .generationOperationCard.selected,
body[data-native-builder="1"] .generationOperationCard:has(input:checked),
body[data-native-builder="1"] .dynamicCard.selectedCard{border-color:var(--fm-green-line)!important;background:var(--fm-green-soft)!important;box-shadow:inset 3px 0 0 var(--fm-green)!important}
body[data-native-builder="1"] .generationOperationCard .cardKicker{color:#3c6f4c!important}
body[data-native-builder="1"] .refineCompletionHeader{padding:13px!important;border:1px solid var(--fm-line)!important;border-radius:14px!important;background:#fff!important;margin:0 0 10px!important;box-shadow:var(--fm-shadow)!important}
body[data-native-builder="1"] .refineCompletionHeader h3{font-size:17px!important}
body[data-native-builder="1"] .refineSectionCards{gap:8px!important;margin-bottom:12px!important}
body[data-native-builder="1"] .refineSectionCard{grid-template-columns:30px minmax(0,1fr)!important;padding:10px!important;margin:0!important}
body[data-native-builder="1"] .refineProgressTrack{height:5px!important;background:#e9e4dc!important}
body[data-native-builder="1"] .refineProgressTrack span{background:#7a736b!important}
body[data-native-builder="1"] .refineSectionCard.isComplete .refineProgressTrack span{background:var(--fm-green)!important}
body[data-native-builder="1"] .stickyAction,
body[data-native-builder="1"] .wizardActionBar,
body[data-native-builder="1"] .primaryActionBar{background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important}

/* Fiction atlas and library */
body[data-native-builder="1"] .previewCharacterGrid{gap:10px!important}
body[data-native-builder="1"] .previewCharacterCard,
body[data-native-builder="1"] .characterRadarCard,
body[data-native-builder="1"] .builderLibraryCard{border:1px solid #e3dcd2!important;border-radius:14px!important;background:#fff!important;padding:12px!important;box-shadow:var(--fm-shadow)!important}
body[data-native-builder="1"] .builderLibraryLayout{gap:12px!important}
body[data-native-builder="1"] .builderCreateProjectForm{border:1px solid #e3dcd2!important;border-radius:14px!important;background:var(--fm-surface-soft)!important;padding:12px!important;gap:9px!important;box-shadow:none!important}
body[data-native-builder="1"] .builderLibraryList{gap:8px!important}
body[data-native-builder="1"] .builderLibraryCard.active{border-color:var(--fm-green-line)!important;background:var(--fm-green-soft)!important;box-shadow:inset 3px 0 0 var(--fm-green)!important}
body[data-native-builder="1"] .builderLibraryCard h4{font-size:13px!important;margin:2px 0 4px!important}
body[data-native-builder="1"] .builderLibraryCard p{font-size:9px!important;color:var(--fm-muted)!important}
body[data-native-builder="1"] .previewRadarSvg .radarData{fill:rgba(57,132,86,.18)!important;stroke:var(--fm-green)!important}

/* Guide parity */
body[data-native-builder="1"] .guideShell{grid-template-columns:280px minmax(0,1fr)!important;gap:14px!important}
body[data-native-builder="1"] .guideIndex{position:sticky!important;top:128px!important;border:1px solid #e3dcd2!important;border-radius:14px!important;background:#fff!important;padding:13px!important;box-shadow:var(--fm-shadow)!important}
body[data-native-builder="1"] .guideIndexHead{border-bottom:1px solid var(--fm-line-soft)!important;padding-bottom:9px!important;margin-bottom:8px!important}
body[data-native-builder="1"] .guidePageNav{gap:3px!important}
body[data-native-builder="1"] .guidePageNav .navbtn{margin:0!important;padding:8px 9px!important}
body[data-native-builder="1"] .guideDocHero{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;gap:10px!important;align-items:start!important}
body[data-native-builder="1"] .guideHeroIcon{width:32px!important;height:32px!important;border-radius:9px!important;background:#eee9e2!important;display:grid!important;place-items:center!important;color:#514b44!important}
body[data-native-builder="1"] .guideQuickGrid{gap:10px!important;margin:0 0 10px!important}
body[data-native-builder="1"] .guideQuickCard{border:1px solid #e3dcd2!important;border-radius:14px!important;background:#fff!important;padding:11px!important;box-shadow:var(--fm-shadow)!important;min-height:0!important}
body[data-native-builder="1"] .guideDocSection.rich header{position:static!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--fm-line-soft)!important;padding:0 0 8px!important;margin:0 0 9px!important;box-shadow:none!important}
body[data-native-builder="1"] .guideStepList li>span{background:var(--fm-dark)!important}

/* Loading parity */
body[data-native-builder="1"] .nativeLoadingOverlay,body[data-native-desk="1"] .nativeLoadingOverlay{background:rgba(244,241,236,.84)!important;backdrop-filter:blur(5px)!important}
body[data-native-builder="1"] .nativeLoadingCard,body[data-native-desk="1"] .nativeLoadingCard{width:min(590px,calc(100% - 28px))!important;border:1px solid #ddd5cb!important;border-radius:16px!important;background:#fff!important;padding:20px!important;box-shadow:0 16px 45px rgba(30,25,20,.15)!important;text-align:left!important}
body[data-native-builder="1"] .nativeLoadingHead,body[data-native-desk="1"] .nativeLoadingHead{display:flex!important;align-items:center!important;gap:13px!important;border-bottom:1px solid var(--fm-line-soft)!important;padding-bottom:13px!important;margin-bottom:13px!important}
body[data-native-builder="1"] .nativeLoadingSpinner,body[data-native-desk="1"] .nativeLoadingSpinner{width:34px!important;height:34px!important;border:3px solid #e1dbd2!important;border-top-color:var(--fm-dark)!important;border-radius:50%!important;margin:0!important}
body[data-native-builder="1"] .nativeLoadingSteps,body[data-native-desk="1"] .nativeLoadingSteps{list-style:none!important;margin:0!important;padding:0!important;display:grid!important;gap:7px!important}
body[data-native-builder="1"] .nativeLoadingSteps li,body[data-native-desk="1"] .nativeLoadingSteps li{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;align-items:center!important;gap:9px!important;border:1px solid #e3ddd4!important;border-radius:11px!important;background:var(--fm-surface-soft)!important;padding:8px 10px!important;color:#8a837a!important}
body[data-native-builder="1"] .nativeLoadingSteps li.active,body[data-native-desk="1"] .nativeLoadingSteps li.active{border-color:var(--fm-green-line)!important;background:var(--fm-green-soft)!important;color:#1f5f31!important;box-shadow:inset 3px 0 0 var(--fm-green)!important}

@media(max-width:1050px){
  body[data-native-builder="1"] .builderWorkspaceMain,body[data-native-desk="1"] .readerMain{grid-template-columns:215px minmax(0,1fr)!important}
  body[data-native-builder="1"] .generationOperationGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-native-builder="1"] .guideShell{grid-template-columns:1fr!important}
  body[data-native-builder="1"] .guideIndex{position:relative!important;top:auto!important;max-height:none!important}
}
@media(max-width:760px){
  body[data-native-builder="1"] .generatorHeaderClean,body[data-native-desk="1"] .readerHeaderClean{position:relative!important;align-items:flex-start!important}
  body[data-native-builder="1"] .professionalProductBadge,body[data-native-builder="1"] .activeProjectBar,body[data-native-desk="1"] .readerProductBadge,body[data-native-desk="1"] .readerActiveProject{display:none!important}
  body[data-native-builder="1"] .premiumDashboard,body[data-native-desk="1"] .readerPremiumDashboard{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-native-builder="1"] .builderWorkspaceMain,body[data-native-desk="1"] .readerMain{display:block!important}
  body[data-native-builder="1"] .side.generatorSide,body[data-native-desk="1"] .readerSide{position:relative!important;top:auto!important;height:auto!important;border-right:0!important;border-bottom:1px solid var(--fm-line)!important;display:flex!important;gap:4px!important;overflow:auto!important;padding:10px!important}
  body[data-native-builder="1"] .sideNav{display:flex!important;gap:4px!important;min-width:max-content!important}
  body[data-native-builder="1"] .navgroup,body[data-native-desk="1"] .readerSideGroup,body[data-native-builder="1"] .sideUtility,body[data-native-builder="1"] .builderFictionHealth{display:none!important}
  body[data-native-builder="1"] .navbtn,body[data-native-desk="1"] .readerSideLink{display:inline-flex!important;width:auto!important;min-width:max-content!important;align-items:center!important}
  body[data-native-builder="1"] .navbtn small,body[data-native-desk="1"] .readerSideLink small{display:none!important}
  body[data-native-builder="1"] .work,body[data-native-desk="1"] .readerWork{padding:14px!important}
  body[data-native-builder="1"] .productPageHeader,body[data-native-desk="1"] .readerPageHead{display:block!important}
  body[data-native-builder="1"] .primaryActionBar,body[data-native-builder="1"] .editActionBar{margin-top:10px!important}
}
@media(max-width:620px){
  body[data-native-builder="1"] .generatorHeaderClean,body[data-native-desk="1"] .readerHeaderClean{display:block!important}
  body[data-native-builder="1"] .generatorHeaderActions,body[data-native-desk="1"] .readerHeaderActions{justify-content:flex-start!important;margin-top:9px!important}
  body[data-native-builder="1"] .premiumDashboard,body[data-native-desk="1"] .readerPremiumDashboard{grid-template-columns:1fr!important}
  body[data-native-builder="1"] .generationOperationGrid,body[data-native-builder="1"] .choiceGrid,body[data-native-builder="1"] .refineSectionCards{grid-template-columns:1fr!important}
}
/* Higher-specificity reset for historical Builder active navigation rules. */
body[data-native-builder="1"] .sideNav a.navbtn.active,
body[data-native-builder="1"] .sideNav a.navbtn.primary{
  background:#fff!important;
  border-color:var(--fm-line)!important;
  color:#24211e!important;
  -webkit-text-fill-color:#24211e!important;
  box-shadow:var(--fm-shadow)!important;
}
body[data-native-builder="1"] .sideNav a.navbtn.active *,
body[data-native-builder="1"] .sideNav a.navbtn.primary *{color:inherit!important;-webkit-text-fill-color:inherit!important}
/* V953: keep active fiction cards readable over the soft-green selection state. */
body[data-native-builder="1"] .builderLibraryCard.active,
body[data-native-builder="1"] .builderLibraryCard.active h1,
body[data-native-builder="1"] .builderLibraryCard.active h2,
body[data-native-builder="1"] .builderLibraryCard.active h3,
body[data-native-builder="1"] .builderLibraryCard.active h4,
body[data-native-builder="1"] .builderLibraryCard.active h5,
body[data-native-builder="1"] .builderLibraryCard.active strong,
body[data-native-builder="1"] .builderLibraryCard.active span,
body[data-native-builder="1"] .builderLibraryCard.active small,
body[data-native-builder="1"] .builderLibraryCard.active p{
  color:#214f32!important;
  -webkit-text-fill-color:#214f32!important;
}
body[data-native-builder="1"] .builderLibraryCard.active .btn.danger,
body[data-native-builder="1"] .builderLibraryCard.active .btn.danger *{
  color:#8b2e25!important;
  -webkit-text-fill-color:#8b2e25!important;
}
@media(max-width:760px){
}

/* V953 — Guided Entity Detail Controls */
.nativeEntityFieldGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.nativeSafeField{padding:14px;border:1px solid var(--fm-border,#ddd9d1);border-radius:12px;background:var(--fm-surface,#fff)}
.nativeSafeFieldRecommended{box-shadow:0 1px 0 rgba(35,31,26,.03)}
.nativeFieldLabelRow{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}
.nativeFieldLabelRow label{margin:0;line-height:1.25}
.nativeRequiredMark{margin-left:4px;color:#9b3f34}
.nativeFieldSource{flex:0 0 auto;font-size:10px;line-height:1.2;padding:4px 7px;border-radius:999px;background:#f1efe9;color:#6a655c;text-transform:uppercase;letter-spacing:.04em}
.nativeFieldSource.source{background:#e7f3ea;color:#356344}
.nativeFieldSource.suggested{background:#fff4d8;color:#755b19}
.nativeRangeField{display:grid;gap:5px}
.nativeRangeControl{display:grid;grid-template-columns:minmax(0,1fr) 72px;align-items:center;gap:12px}
.nativeRangeControl input[type=range]{width:100%;accent-color:#356344;cursor:pointer}
.nativeRangeControl output{display:flex;align-items:center;justify-content:center;min-height:38px;border:1px solid #d8d4cc;border-radius:9px;background:#f7f6f3;font-weight:750;font-variant-numeric:tabular-nums}
.nativeRangeScale{display:flex;justify-content:space-between;font-size:11px;color:#777168}
.nativeMultiSelect{min-height:112px;padding:6px!important;background-image:none!important}
.nativeMoreDetails summary{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nativeMoreDetails summary span{font-size:11px;font-weight:500;color:#777168}
@media(max-width:820px){.nativeEntityFieldGrid{grid-template-columns:1fr}.nativeFieldLabelRow{align-items:center}}

/* V953 — Continuity Check: one dedicated page per entity family */
body[data-native-builder="1"] .entityContinuityPage{display:grid;gap:14px}
body[data-native-builder="1"] .entityContinuitySelector{
  display:grid;
  grid-template-columns:minmax(260px,1.2fr) minmax(250px,.8fr);
  gap:14px 20px;
  align-items:end;
  padding:16px;
  border:1px solid var(--fm-border,#dedbd4);
  border-radius:16px;
  background:linear-gradient(180deg,#fff 0%,#f7f6f3 100%);
  box-shadow:var(--fm-shadow,0 8px 24px rgba(30,26,20,.04));
}
body[data-native-builder="1"] .entityContinuitySelectorCopy h3{margin:3px 0 4px}
body[data-native-builder="1"] .entityContinuitySelectorCopy p{margin:0;color:var(--muted,#6e6961);max-width:720px}
body[data-native-builder="1"] .entityContinuitySelectField{display:grid;gap:6px;margin:0}
body[data-native-builder="1"] .entityContinuitySelectField>span{font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.055em;color:var(--muted,#6e6961)}
body[data-native-builder="1"] .entityContinuitySelectField select{margin:0!important;min-height:44px;font-weight:720;background-color:#fff}
body[data-native-builder="1"] .entityContinuityQuickNav{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(175px,1fr));
  gap:7px;
  padding-top:12px;
  border-top:1px solid var(--fm-border,#e4e1da);
}
body[data-native-builder="1"] .entityContinuityQuickNav a{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  padding:9px 10px;
  border:1px solid var(--fm-border,#e0ddd6);
  border-radius:11px;
  background:#fff;
  color:var(--ink,#26231f);
  text-decoration:none;
  transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
body[data-native-builder="1"] .entityContinuityQuickNav a:hover{border-color:#aaa49a;transform:translateY(-1px)}
body[data-native-builder="1"] .entityContinuityQuickNav a.active{background:#2f2d29;color:#fff;border-color:#2f2d29}
body[data-native-builder="1"] .entityContinuityQuickNav a .icoSvg{width:17px;height:17px}
body[data-native-builder="1"] .entityContinuityQuickNav a span{display:grid;min-width:0;line-height:1.15}
body[data-native-builder="1"] .entityContinuityQuickNav a b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-native-builder="1"] .entityContinuityQuickNav a small{margin-top:3px;font-size:10px;color:inherit;opacity:.68}
body[data-native-builder="1"] .continuityKpiGrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
body[data-native-builder="1"] .continuityKpiCard{
  min-height:154px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:13px;
  border:1px solid var(--fm-border,#e0ddd6);
  border-radius:14px;
  background:#fbfaf8;
}
body[data-native-builder="1"] .continuityKpiCard h4{margin:9px 0 2px;font-size:13px}
body[data-native-builder="1"] .continuityKpiCard p{margin:0;color:var(--muted,#6e6961);font-size:11px}
body[data-native-builder="1"] .continuityKpiDonut{
  --value:0;
  width:74px;
  height:74px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:conic-gradient(#34312d calc(var(--value)*1%),#e7e4de 0);
  position:relative;
}
body[data-native-builder="1"] .continuityKpiDonut:after{content:"";position:absolute;inset:8px;border-radius:50%;background:#fbfaf8}
body[data-native-builder="1"] .continuityKpiDonut span{position:relative;z-index:1;font-weight:800;font-size:16px}
body[data-native-builder="1"] .continuityKpiValue{display:flex;align-items:end;justify-content:space-between;gap:8px}
body[data-native-builder="1"] .continuityKpiValue b{font-size:27px;line-height:1;font-variant-numeric:tabular-nums}
body[data-native-builder="1"] .continuityKpiValue span{font-size:10px;text-transform:uppercase;letter-spacing:.045em;color:var(--muted,#6e6961)}
body[data-native-builder="1"] .continuityKpiTrack{height:7px;margin-top:12px;border-radius:999px;background:#e5e2dc;overflow:hidden}
body[data-native-builder="1"] .continuityKpiTrack i{display:block;height:100%;border-radius:inherit;background:#34312d}
body[data-native-builder="1"] .continuityEntityCharts .fmChartGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-native-builder="1"] .continuityPriorityGrid{grid-template-columns:repeat(auto-fit,minmax(235px,1fr))}
body[data-native-builder="1"] .continuityFieldSummaryTable{min-width:720px}
body[data-native-builder="1"] .continuityFieldSummaryTable td:not(:first-child){text-align:center;font-variant-numeric:tabular-nums}
body[data-native-builder="1"] .continuityFieldSummaryTable .completionScore{text-align:left}
body[data-native-builder="1"] .continuityLegendBar{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding:10px;
  border:1px solid var(--fm-border,#e0ddd6);
  border-radius:13px;
  background:#f8f7f4;
}
body[data-native-builder="1"] .continuityLegendBar>span{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:7px;align-items:center}
body[data-native-builder="1"] .continuityLegendBar i{grid-row:1/3;font-style:normal}
body[data-native-builder="1"] .continuityLegendBar b{font-size:12px}
body[data-native-builder="1"] .continuityLegendBar small{font-size:10px;color:var(--muted,#6e6961)}
body[data-native-builder="1"] .entityContinuityPager{display:flex;align-items:center;justify-content:space-between;gap:10px}
body[data-native-builder="1"] .entityContinuityPager .btn{margin:0}
@media(max-width:1050px){
  body[data-native-builder="1"] .continuityKpiGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-native-builder="1"] .continuityEntityCharts .fmChartGrid{grid-template-columns:1fr}
}
@media(max-width:760px){
  body[data-native-builder="1"] .entityContinuitySelector{grid-template-columns:1fr}
  body[data-native-builder="1"] .entityContinuityQuickNav{grid-column:1}
  body[data-native-builder="1"] .continuityKpiGrid,body[data-native-builder="1"] .continuityLegendBar{grid-template-columns:1fr}
  body[data-native-builder="1"] .continuityKpiCard{min-height:0}
  body[data-native-builder="1"] .entityContinuityPager{display:grid;grid-template-columns:1fr}
}

/* V953 — icon language shared by every Narrative Director page and wizard card */
.withIconTitle,.withIconButton{display:inline-flex;align-items:center;gap:8px}
.withIconTitle>.fmIcon,.withIconButton>.fmIcon{width:17px;height:17px;flex:0 0 auto}
.productPageHeader h2.withIconTitle,.nativeWizardSectionHead h3.withIconTitle,.operationalPanel h3.withIconTitle{display:flex}
.wizardCardIcon,.refineCardIcon,.guidedAreaIcon,.sectionIcon{
  width:36px;height:36px;display:grid;place-items:center;flex:0 0 auto;
  border:1px solid #dedbd4;border-radius:11px;background:#f5f3ef;color:#4d4942;
}
.wizardCardIcon .fmIcon,.refineCardIcon .fmIcon,.guidedAreaIcon .fmIcon,.sectionIcon .fmIcon{width:19px;height:19px}
.wizardSelectable.selected .wizardCardIcon,.refineSectionCard.isComplete .refineCardIcon,.guidedAreaCard:hover .guidedAreaIcon{
  background:#e8f3eb;border-color:#9ebba6;color:#285f3a;
}
.wizardStepIcon{width:30px;height:30px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;background:#f2f0eb;color:#5d5850}
.wizardStepIcon .fmIcon{width:16px;height:16px}
.wizardStepItem.done .wizardStepIcon,.wizardStepItem.active .wizardStepIcon{background:#e7f2ea;color:#285f3a}
.guidedAreaCard{position:relative}
.guidedAreaCard .guidedAreaIcon{margin-bottom:10px}
.cardHeadingWithIcon{display:flex;align-items:flex-start;gap:10px}
.cardHeadingWithIcon>div{min-width:0}
.entityListTable .fmIcon,.compactRecommendedTable .fmIcon,.previewMatrixTitle .fmIcon{width:15px;height:15px;vertical-align:-2px;margin-right:5px}
@media(max-width:720px){.wizardCardIcon,.refineCardIcon,.guidedAreaIcon,.sectionIcon{width:32px;height:32px}}

/* V953 — guided completion grammar: red = required blocker, yellow = optional/incomplete, green = complete. */
:root{
  --fm-warning:#9a6816;
  --fm-warning-soft:#fff8df;
  --fm-warning-line:#e7c66f;
  --fm-required:#a33a2d;
  --fm-required-soft:#fff1ed;
  --fm-required-line:#e1a097;
}
body[data-native-builder="1"] .fmFieldLegend,
body[data-native-desk="1"] .fmFieldLegend{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0 14px;padding:9px 11px;border:1px solid var(--fm-line);border-radius:11px;background:#fff;font-size:10px;color:var(--fm-muted)}
body[data-native-builder="1"] .fmFieldLegend>span,
body[data-native-desk="1"] .fmFieldLegend>span{display:inline-flex;align-items:center;gap:6px}
body[data-native-builder="1"] .fmStateDot,
body[data-native-desk="1"] .fmStateDot{width:9px;height:9px;border-radius:50%;display:inline-block;border:1px solid transparent}
body[data-native-builder="1"] .fmStateDot.required,
body[data-native-desk="1"] .fmStateDot.required{background:var(--fm-required-soft);border-color:var(--fm-required-line)}
body[data-native-builder="1"] .fmStateDot.optional,
body[data-native-desk="1"] .fmStateDot.optional{background:var(--fm-warning-soft);border-color:var(--fm-warning-line)}
body[data-native-builder="1"] .fmStateDot.complete,
body[data-native-desk="1"] .fmStateDot.complete{background:var(--fm-green-soft);border-color:var(--fm-green-line)}

body[data-native-builder="1"] [data-fm-field-state],
body[data-native-desk="1"] [data-fm-field-state]{position:relative;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
body[data-native-builder="1"] [data-fm-field-state].isRequiredMissing,
body[data-native-desk="1"] [data-fm-field-state].isRequiredMissing{background:var(--fm-required-soft)!important;border-color:var(--fm-required-line)!important;box-shadow:inset 3px 0 0 var(--fm-required)!important}
body[data-native-builder="1"] [data-fm-field-state].isOptionalMissing,
body[data-native-desk="1"] [data-fm-field-state].isOptionalMissing{background:var(--fm-warning-soft)!important;border-color:var(--fm-warning-line)!important;box-shadow:inset 3px 0 0 var(--fm-warning)!important}
body[data-native-builder="1"] [data-fm-field-state].isFieldComplete,
body[data-native-desk="1"] [data-fm-field-state].isFieldComplete{background:var(--fm-green-soft)!important;border-color:var(--fm-green-line)!important;box-shadow:inset 3px 0 0 var(--fm-green)!important}
body[data-native-builder="1"] [data-fm-field-state].isRequiredMissing input:not([type="radio"]):not([type="checkbox"]),
body[data-native-builder="1"] [data-fm-field-state].isRequiredMissing textarea,
body[data-native-builder="1"] [data-fm-field-state].isRequiredMissing select{border-color:var(--fm-required-line)!important;background:#fff!important}
body[data-native-builder="1"] [data-fm-field-state].isOptionalMissing input:not([type="radio"]):not([type="checkbox"]),
body[data-native-builder="1"] [data-fm-field-state].isOptionalMissing textarea,
body[data-native-builder="1"] [data-fm-field-state].isOptionalMissing select{border-color:var(--fm-warning-line)!important;background:#fff!important}
body[data-native-builder="1"] [data-fm-field-state].isFieldComplete input:not([type="radio"]):not([type="checkbox"]),
body[data-native-builder="1"] [data-fm-field-state].isFieldComplete textarea,
body[data-native-builder="1"] [data-fm-field-state].isFieldComplete select{border-color:var(--fm-green-line)!important;background:#fff!important}
body[data-native-builder="1"] .fmFieldStateBadge,
body[data-native-desk="1"] .fmFieldStateBadge{display:inline-flex;align-items:center;border:1px solid var(--fm-line);border-radius:999px;padding:3px 7px;font-size:9px;line-height:1;text-transform:uppercase;letter-spacing:.035em;font-weight:850;white-space:nowrap;background:#fff;color:var(--fm-muted);margin-left:auto}
body[data-native-builder="1"] .isRequiredMissing .fmFieldStateBadge,
body[data-native-desk="1"] .isRequiredMissing .fmFieldStateBadge{border-color:var(--fm-required-line);background:var(--fm-required-soft);color:var(--fm-required)}
body[data-native-builder="1"] .isOptionalMissing .fmFieldStateBadge,
body[data-native-desk="1"] .isOptionalMissing .fmFieldStateBadge{border-color:var(--fm-warning-line);background:var(--fm-warning-soft);color:var(--fm-warning)}
body[data-native-builder="1"] .isFieldComplete .fmFieldStateBadge,
body[data-native-desk="1"] .isFieldComplete .fmFieldStateBadge{border-color:var(--fm-green-line);background:var(--fm-green-soft);color:var(--fm-green)}

body[data-native-builder="1"] .refineSectionCard.needsCompletion,
body[data-native-builder="1"] .continuityPriorityGrid .choiceCard.needsCompletion,
body[data-native-builder="1"] .entityContinuityQuickNav a.needsCompletion{background:var(--fm-warning-soft)!important;border-color:var(--fm-warning-line)!important;box-shadow:inset 3px 0 0 var(--fm-warning)!important}
body[data-native-builder="1"] .refineSectionCard.isComplete,
body[data-native-builder="1"] .continuityPriorityGrid .choiceCard.isComplete,
body[data-native-builder="1"] .entityContinuityQuickNav a.isComplete{background:var(--fm-green-soft)!important;border-color:var(--fm-green-line)!important;box-shadow:inset 3px 0 0 var(--fm-green)!important}
body[data-native-builder="1"] .refineSectionCard.needsCompletion .refineCardState{background:var(--fm-warning-soft)!important;border-color:var(--fm-warning-line)!important;color:var(--fm-warning)!important}
body[data-native-builder="1"] .refineSectionCard.isComplete .refineCardState{background:var(--fm-green)!important;border-color:var(--fm-green)!important;color:#fff!important}
body[data-native-builder="1"] .refineCompletionHeader.needsCompletion{border-color:var(--fm-warning-line)!important;background:linear-gradient(90deg,var(--fm-warning-soft),#fff)!important}
body[data-native-builder="1"] .refineCompletionHeader.isComplete{border-color:var(--fm-green-line)!important;background:linear-gradient(90deg,var(--fm-green-soft),#fff)!important}
body[data-native-builder="1"] .wizardStepItem.active{border-color:var(--fm-required-line)!important;background:var(--fm-required-soft)!important}
body[data-native-builder="1"] .wizardStepItem.done{border-color:var(--fm-green-line)!important;background:var(--fm-green-soft)!important}
body[data-native-builder="1"] .continuityStatusPill.needsCompletion{background:var(--fm-warning-soft)!important;border-color:var(--fm-warning-line)!important;color:var(--fm-warning)!important}
body[data-native-builder="1"] .continuityStatusPill.isComplete{background:var(--fm-green-soft)!important;border-color:var(--fm-green-line)!important;color:var(--fm-green)!important}
body[data-native-builder="1"] .characterProfileField{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center;margin-top:9px;padding:9px;border:1px solid var(--fm-line);border-radius:10px}
body[data-native-builder="1"] .characterProfileField input,
body[data-native-builder="1"] .characterProfileField select,
body[data-native-builder="1"] .characterProfileField small{grid-column:1/3}
body[data-native-builder="1"] .selectedEntityTop.needsCompletion{border-color:var(--fm-warning-line)!important;background:linear-gradient(90deg,var(--fm-warning-soft),#fff)!important}
body[data-native-builder="1"] .selectedEntityTop.isFieldComplete{border-color:var(--fm-green-line)!important;background:linear-gradient(90deg,var(--fm-green-soft),#fff)!important}

/* V953 — full-width guided edit and free-author refinement choices. */
body[data-native-builder="1"] .fictionEntityWorkspace,
body[data-native-builder="1"] .fictionEntityWorkspace>.singleColumnPanel,
body[data-native-builder="1"] .fictionEntityWorkspace .guidedHome,
body[data-native-builder="1"] .fictionEntityWorkspace .entityListCard,
body[data-native-builder="1"] .fictionEntityWorkspace .entityListBox{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
body[data-native-builder="1"] .fictionEntityWorkspace>.singleColumnPanel{display:block!important}
body[data-native-builder="1"] .fictionEntityWorkspace .entityListTable{min-width:820px!important}
body[data-native-builder="1"] .refineCustomChoice{display:grid!important;gap:5px!important;margin-top:8px!important;padding:9px!important;border:1px dashed #c9b98d!important;border-radius:10px!important;background:#fffaf0!important}
body[data-native-builder="1"] .refineCustomChoice label{display:grid!important;gap:2px!important;margin:0!important}
body[data-native-builder="1"] .refineCustomChoice small{font-size:9px!important;color:#756b5f!important;font-weight:600!important}
body[data-native-builder="1"] .navbtn .navCopy{display:block!important;min-width:0!important}

/* V953 workspace cleanup */
body[data-native-builder="1"] .generatorTopmenuWrap,body[data-native-desk="1"] .readerTopmenuWrap{display:none!important}
body[data-native-desk="1"] .promptDomainStrip{display:none!important}
body[data-native-builder="1"] .generationOperationCard .generationCardSubtitle{margin:3px 0 7px;font-size:11px;font-weight:850;line-height:1.35;color:#4f5f53}
body[data-native-builder="1"] .generationOperationCard .generationCardExplanation{margin:0;font-size:12px;line-height:1.55;color:#5e5851}
body[data-native-builder="1"] .generationOperationCard .generationCardFit{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:12px;border-top:1px solid #e8e1d8;color:#4c6352;font-size:10px;text-transform:uppercase;letter-spacing:.04em}
body[data-native-builder="1"] .generationOperationCard .generationCardFit strong{font-size:17px;color:#1d6a37;letter-spacing:0}

/* V953 — Area utente shares the Narrative Director / Prompt Studio workspace system. */
body[data-native-account="1"] .readerHeaderActions .headerAccountBtn,
body[data-native-account="1"] .readerHeaderActions a.primary{background:var(--fm-dark)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:var(--fm-dark)!important}
body[data-native-account="1"] .readerWork{padding-bottom:64px!important}
body[data-native-account="1"] .publicIcon{display:inline-grid;place-items:center;width:22px;height:22px;flex:0 0 auto}
body[data-native-account="1"] .publicIcon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body[data-native-account="1"] .accountPageHead{padding:3px 0 5px!important}
body[data-native-account="1"] .accountPageHead h1{font-size:29px!important}
body[data-native-account="1"] .accountLaunchGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}
body[data-native-account="1"] .accountLaunchCard{display:grid!important;grid-template-columns:46px minmax(0,1fr) auto;gap:13px;align-items:center;margin:0!important;padding:16px!important;text-decoration:none!important;transition:border-color .12s ease,background .12s ease}
body[data-native-account="1"] .accountLaunchCard:hover{border-color:#bdb4a9!important;background:#fdfcf9!important}
body[data-native-account="1"] .accountLaunchCard>strong{font-size:10px;color:#615a52;white-space:nowrap}
body[data-native-account="1"] .accountLaunchCard h3{font-size:16px!important;margin:2px 0 4px!important}
body[data-native-account="1"] .accountLaunchCard p{margin:0!important}
body[data-native-account="1"] .accountLaunchIcon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#edf7f0;color:#2f7147}
body[data-native-account="1"] .accountLaunchCard.prompt .accountLaunchIcon{background:#f4f0fb;color:#5d4b82}
body[data-native-account="1"] .accountSectionHead{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:0 0 9px}
body[data-native-account="1"] .accountSectionHead h2{font-size:18px;letter-spacing:-.025em;margin:0}
body[data-native-account="1"] .accountSectionHead p{margin:3px 0 0;color:var(--fm-muted);font-size:10px}
body[data-native-account="1"] .accountProjectGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:9px}
body[data-native-account="1"] .accountProjectCard{margin:0!important;padding:14px!important}
body[data-native-account="1"] .accountProjectHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
body[data-native-account="1"] .accountProjectHead h3{font-size:15px!important;margin:2px 0 0!important}
body[data-native-account="1"] .accountStatus{border:1px solid #d8d1c8;border-radius:999px;background:#faf8f4;padding:4px 7px;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
body[data-native-account="1"] .accountProjectMeta{display:flex;gap:5px;flex-wrap:wrap;margin:9px 0}
body[data-native-account="1"] .accountProjectMeta span{border:1px solid #e2dbd2;border-radius:999px;background:#faf8f4;padding:4px 7px;font-size:8px;color:#6e675f}
body[data-native-account="1"] .accountNativeGrid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(300px,.88fr);gap:10px}
body[data-native-account="1"] .accountNativeGrid>.readerPanel{margin:0!important;padding:16px!important}
body[data-native-account="1"] .accountNativeGrid h2{font-size:18px;margin:2px 0 5px}
body[data-native-account="1"] .accountDetailNative{display:grid;gap:0;margin-top:12px;border-top:1px solid #eee8df}
body[data-native-account="1"] .accountDetailNative>div{display:flex;justify-content:space-between;gap:18px;padding:9px 0;border-bottom:1px solid #eee8df;font-size:10px}
body[data-native-account="1"] .accountDetailNative span{color:var(--fm-muted)}
body[data-native-account="1"] .accountDetailNative b{text-align:right}
body[data-native-account="1"] .accountActionNativeGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:13px}
body[data-native-account="1"] .accountActionNativeGrid .readerButton{width:100%!important}
body[data-native-account="1"] .readerButton.danger{background:#fff5f2!important;border-color:#d8afa7!important;color:#83382d!important;-webkit-text-fill-color:#83382d!important}
body[data-native-account="1"] .accountPreferencesPanel{padding:14px!important}
body[data-native-account="1"] .accountPreferenceGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
body[data-native-account="1"] .accountPreferenceGrid article{border:1px solid #e4ddd4;border-radius:10px;background:#faf8f4;padding:10px;min-width:0}
body[data-native-account="1"] .accountPreferenceGrid b,body[data-native-account="1"] .accountPreferenceGrid small,body[data-native-account="1"] .accountPreferenceGrid em{display:block}
body[data-native-account="1"] .accountPreferenceGrid b{font-size:10px;margin:6px 0 3px}
body[data-native-account="1"] .accountPreferenceGrid small{font-size:8px;color:#756e66;line-height:1.35}
body[data-native-account="1"] .accountPreferenceGrid em{margin-top:7px;font-size:8px;color:#8a8279;font-style:normal}
body[data-native-account="1"] .accountPreferenceState{display:inline-flex;border:1px solid #d9d1c8;border-radius:999px;padding:3px 6px;font-size:7px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
body[data-native-account="1"] .accountPreferenceState.on{background:#edf8f0;border-color:#a9d0b4;color:#2c7045}
body[data-native-account="1"] .accountPreferenceState.off{background:#f4f1ec;color:#7d756c}
body[data-native-account="1"] .accountNativeForm{display:grid;gap:10px;margin-top:11px;padding-top:11px;border-top:1px solid #eee8df}
body[data-native-account="1"] .accountToggleList{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
body[data-native-account="1"] .accountToggle{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:start;border:1px solid #e4ddd4;border-radius:9px;background:#fff;padding:9px;cursor:pointer}
body[data-native-account="1"] .accountToggle input{width:15px!important;height:15px!important;min-height:0!important;margin:1px 0 0!important;padding:0!important}
body[data-native-account="1"] .accountToggle b,body[data-native-account="1"] .accountToggle small{display:block}
body[data-native-account="1"] .accountToggle b{font-size:9px}
body[data-native-account="1"] .accountToggle small{font-size:8px;color:#817970;margin-top:2px}
body[data-native-account="1"] .accountTableNative{margin:0!important}
body[data-native-account="1"] .accountTableNative>table{min-width:720px}
body[data-native-account="1"] .accountSuccess{margin-bottom:10px;background:#edf8f0;border-color:#acd1b6}
@media(max-width:1080px){body[data-native-account="1"] .accountPreferenceGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){body[data-native-account="1"] .accountLaunchGrid,body[data-native-account="1"] .accountNativeGrid{grid-template-columns:1fr}body[data-native-account="1"] .accountToggleList{grid-template-columns:1fr}}
@media(max-width:620px){body[data-native-account="1"] .accountLaunchCard{grid-template-columns:40px minmax(0,1fr)}body[data-native-account="1"] .accountLaunchCard>strong{grid-column:2}body[data-native-account="1"] .accountSectionHead{display:block}body[data-native-account="1"] .accountSectionHead .readerButton{margin-top:8px}body[data-native-account="1"] .accountPreferenceGrid,body[data-native-account="1"] .accountActionNativeGrid{grid-template-columns:1fr}}


/* V953 — product solidity refinement: comfortable compact typography,
   stronger hierarchy and restrained depth without changing page structure. */
:root{
  --fm-shadow:0 7px 22px rgba(30,25,20,.055);
  --fm-shadow-hover:0 12px 30px rgba(30,25,20,.09);
  --fm-focus:0 0 0 3px rgba(48,45,41,.14);
}
body[data-native-builder="1"],body[data-native-desk="1"],body[data-native-account="1"]{
  font-size:14px;
  line-height:1.55;
  letter-spacing:.002em;
}
body[data-native-builder="1"] .generatorHeaderClean,
body[data-native-desk="1"] .readerHeaderClean{min-height:72px!important;padding:12px 22px!important;box-shadow:0 5px 20px rgba(30,25,20,.045)!important}
body[data-native-builder="1"] .generatorLogoHome,
body[data-native-desk="1"] .readerLogoHome{font-size:19px!important}
body[data-native-builder="1"] .professionalProductBadge,
body[data-native-desk="1"] .readerProductBadge{font-size:10px!important;padding:5px 9px!important}
body[data-native-builder="1"] .activeProjectBar label,
body[data-native-desk="1"] .readerActiveProject label{font-size:10px!important}
body[data-native-builder="1"] .activeProjectBar .contextValue,
body[data-native-desk="1"] .readerActiveProject strong{font-size:13px!important}
body[data-native-builder="1"] .generatorHeaderActions a,
body[data-native-desk="1"] .readerHeaderActions a,
body[data-native-desk="1"] .readerBiMenu>summary{font-size:12px!important;min-height:38px!important;padding:9px 12px!important;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease!important}
body[data-native-builder="1"] .generatorHeaderActions a:hover,
body[data-native-desk="1"] .readerHeaderActions a:hover,
body[data-native-desk="1"] .readerBiMenu>summary:hover{transform:translateY(-1px)!important;box-shadow:0 6px 16px rgba(30,25,20,.075)!important}
body[data-native-builder="1"] .premiumKpi,
body[data-native-desk="1"] .readerPremiumKpi{min-height:72px!important;padding:11px 15px!important}
body[data-native-builder="1"] .builderKpiValueRow b,
body[data-native-desk="1"] .readerKpiValueRow b{font-size:17px!important}
body[data-native-builder="1"] .builderVisualKpi>span,
body[data-native-desk="1"] .readerPremiumKpi>span,
body[data-native-desk="1"] .readerVisualKpi>span{font-size:10px!important}
body[data-native-builder="1"] .builderVisualKpi>small,
body[data-native-desk="1"] .readerVisualKpi>small{font-size:10px!important;line-height:1.3!important}
body[data-native-builder="1"] .builderWorkspaceMain,
body[data-native-desk="1"] .readerMain{grid-template-columns:272px minmax(0,1fr)!important}
body[data-native-builder="1"] .side.generatorSide,
body[data-native-desk="1"] .readerSide{padding:17px 15px!important}
body[data-native-builder="1"] .work,
body[data-native-desk="1"] .readerWork{padding:22px 26px 64px!important}
body[data-native-builder="1"] .navgroup,
body[data-native-desk="1"] .readerSideGroup{font-size:10.5px!important;margin:16px 0 7px!important}
body[data-native-builder="1"] .navbtn,
body[data-native-desk="1"] .readerSideLink{grid-template-columns:17px minmax(0,1fr) auto!important;gap:9px!important;padding:10px 11px!important;border-radius:11px!important;font-size:13px!important;line-height:1.3!important;transition:background .14s ease,border-color .14s ease,box-shadow .14s ease,transform .14s ease!important}
body[data-native-builder="1"] .navbtn b,
body[data-native-desk="1"] .readerSideLink b{font-size:13px!important}
body[data-native-builder="1"] .navbtn small,
body[data-native-desk="1"] .readerSideLink small{font-size:11px!important;line-height:1.35!important}
body[data-native-builder="1"] .navbtn:hover,
body[data-native-desk="1"] .readerSideLink:hover{transform:translateX(1px)!important}
body[data-native-builder="1"] .sideUtility a{font-size:12px!important;padding:9px 11px!important}
body[data-native-builder="1"] .productPageHeader h2,
body[data-native-desk="1"] .readerPageHead h1{font-size:28px!important;line-height:1.08!important}
body[data-native-builder="1"] .productPageHeader p,
body[data-native-desk="1"] .readerPageHead p{font-size:14px!important;line-height:1.58!important;max-width:840px!important}
body[data-native-builder="1"] .smallCaps,
body[data-native-builder="1"] .premiumKicker,
body[data-native-desk="1"] .readerEyebrow{font-size:10.5px!important}
body[data-native-builder="1"] button,
body[data-native-builder="1"] a.btn,
body[data-native-builder="1"] .primaryActionBar>a,
body[data-native-builder="1"] .editActionBar>a,
body[data-native-desk="1"] .readerButton{min-height:38px!important;border-radius:10px!important;padding:9px 13px!important;font-size:13px!important;line-height:1.2!important;box-shadow:0 1px 0 rgba(30,25,20,.025)!important;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease!important}
body[data-native-builder="1"] button:hover,
body[data-native-builder="1"] a.btn:hover,
body[data-native-builder="1"] .primaryActionBar>a:hover,
body[data-native-builder="1"] .editActionBar>a:hover,
body[data-native-desk="1"] .readerButton:hover{transform:translateY(-1px)!important;box-shadow:0 7px 17px rgba(30,25,20,.07)!important}
body[data-native-builder="1"] button:focus-visible,
body[data-native-builder="1"] a:focus-visible,
body[data-native-builder="1"] input:focus-visible,
body[data-native-builder="1"] select:focus-visible,
body[data-native-builder="1"] textarea:focus-visible,
body[data-native-desk="1"] button:focus-visible,
body[data-native-desk="1"] a:focus-visible,
body[data-native-desk="1"] input:focus-visible,
body[data-native-desk="1"] select:focus-visible,
body[data-native-desk="1"] textarea:focus-visible{outline:0!important;box-shadow:var(--fm-focus)!important}
body[data-native-builder="1"] .operationalPanel,
body[data-native-builder="1"] .card,
body[data-native-builder="1"] .previewCard,
body[data-native-builder="1"] .editorialResult,
body[data-native-builder="1"] .nativeWizardSection,
body[data-native-builder="1"] .refineCompactPanel,
body[data-native-builder="1"] .guideDocSection,
body[data-native-builder="1"] .repairPlanCard,
body[data-native-builder="1"] .entityListCard,
body[data-native-desk="1"] .readerCard,
body[data-native-desk="1"] .readerPanel{border-radius:16px!important;padding:16px!important;margin-bottom:14px!important;box-shadow:var(--fm-shadow)!important}
body[data-native-builder="1"] .choiceCard,
body[data-native-builder="1"] .generationOperationCard,
body[data-native-builder="1"] .dynamicCard,
body[data-native-builder="1"] .guidedAreaCard,
body[data-native-builder="1"] .factoryTypeCard{padding:15px!important;border-radius:16px!important;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease,background .15s ease!important}
body[data-native-builder="1"] .choiceCard:hover,
body[data-native-builder="1"] .generationOperationCard:hover,
body[data-native-builder="1"] .dynamicCard:hover,
body[data-native-builder="1"] .guidedAreaCard:hover,
body[data-native-builder="1"] .factoryTypeCard:hover{transform:translateY(-1px)!important;border-color:#cfc5ba!important;box-shadow:var(--fm-shadow-hover)!important}
body[data-native-builder="1"] .card p,
body[data-native-builder="1"] .guideDocHero p{font-size:13.5px!important;line-height:1.58!important}
body[data-native-builder="1"] label,
body[data-native-desk="1"] label{font-size:12px!important;line-height:1.3!important}
body[data-native-builder="1"] input,
body[data-native-builder="1"] select,
body[data-native-builder="1"] textarea,
body[data-native-desk="1"] input,
body[data-native-desk="1"] select,
body[data-native-desk="1"] textarea{min-height:40px!important;border-radius:10px!important;padding:10px 36px 10px 12px!important;font-size:13px!important;line-height:1.45!important;box-shadow:inset 0 1px 1px rgba(30,25,20,.025)!important}
body[data-native-builder="1"] textarea,body[data-native-desk="1"] textarea{padding-right:12px!important;min-height:108px!important}
body[data-native-builder="1"] .fieldHelp{font-size:11px!important;line-height:1.45!important}
body[data-native-builder="1"] .radioRow label,
body[data-native-builder="1"] .checkgrid label,
body[data-native-builder="1"] .generationRadioRow label,
body[data-native-builder="1"] .generationCheck{font-size:12px!important;padding:10px 11px!important}
body[data-native-builder="1"] table,
body[data-native-desk="1"] table{font-size:13px!important}
body[data-native-builder="1"] th,
body[data-native-desk="1"] th{font-size:10.5px!important;padding:10px 11px!important}
body[data-native-builder="1"] td,
body[data-native-desk="1"] td{padding:10px 11px!important;line-height:1.45!important}
body[data-native-builder="1"] .pill,
body[data-native-builder="1"] .badge,
body[data-native-builder="1"] .prefillMark,
body[data-native-builder="1"] .modifiedBadge,
body[data-native-desk="1"] .readerTag{font-size:10.5px!important;padding:4px 8px!important}
body[data-native-builder="1"] .nativeNotice,
body[data-native-builder="1"] .box,
body[data-native-builder="1"] .dataNote,
body[data-native-builder="1"] .productUxNote,
body[data-native-builder="1"] .microHelp,
body[data-native-desk="1"] .readerNotice{font-size:13px!important;line-height:1.58!important;padding:12px 14px!important}
body[data-native-builder="1"] .emptyState,
body[data-native-builder="1"] .editorialEmpty,
body[data-native-builder="1"] .entityEmpty,
body[data-native-desk="1"] .readerEmpty{padding:26px!important;font-size:13px!important;background:linear-gradient(180deg,#fff,#faf8f4)!important}
body[data-native-builder="1"] .nativeLoadingCard,
body[data-native-desk="1"] .nativeLoadingCard{border-radius:22px!important;box-shadow:0 28px 70px rgba(20,16,10,.22)!important}
body[data-native-builder="1"] .nativeLoadingHead p,
body[data-native-desk="1"] .nativeLoadingHead p{font-size:13px!important;line-height:1.5!important}
body[data-native-builder="1"] .nativeLoadingSteps li,
body[data-native-desk="1"] .nativeLoadingSteps li{font-size:13px!important}
.relationshipDetailHead h4{font-size:16px!important}.relationshipDetailHead p{font-size:13px!important}.relationshipDetailTable{font-size:13px!important}.relationshipDetailTable th{font-size:10.5px!important}
.fmChartHead h3{font-size:14px!important}.fmChartHead p,.fmChartNote{font-size:12px!important;line-height:1.45!important}.fmChartLegend,.fmNetworkLegend{font-size:11px!important}.fmNetwork text,.fmLineChart text,.fmSparkline text{font-size:11px!important}
body[data-native-account="1"] .accountPageHead h1{font-size:31px!important}
body[data-native-account="1"] .accountLaunchCard{padding:18px!important;gap:15px!important}
body[data-native-account="1"] .accountLaunchCard>strong{font-size:12px!important}
body[data-native-account="1"] .accountLaunchCard h3{font-size:18px!important}
body[data-native-account="1"] .accountSectionHead h2{font-size:20px!important}
body[data-native-account="1"] .accountSectionHead p{font-size:13px!important;line-height:1.5!important}
body[data-native-account="1"] .accountProjectHead h3{font-size:17px!important}
body[data-native-account="1"] .accountStatus,
body[data-native-account="1"] .accountProjectMeta span{font-size:10px!important;padding:5px 8px!important}
body[data-native-account="1"] .accountDetailNative>div{font-size:13px!important;padding:11px 0!important}
body[data-native-account="1"] .accountPreferenceGrid article{padding:13px!important;border-radius:12px!important}
body[data-native-account="1"] .accountPreferenceGrid b{font-size:13px!important}
body[data-native-account="1"] .accountPreferenceGrid small,
body[data-native-account="1"] .accountPreferenceGrid em{font-size:11px!important;line-height:1.45!important}
body[data-native-account="1"] .accountPreferenceState{font-size:9px!important;padding:4px 7px!important}
body[data-native-account="1"] .accountToggle{padding:11px!important;border-radius:11px!important}
body[data-native-account="1"] .accountToggle b{font-size:12px!important}
body[data-native-account="1"] .accountToggle small{font-size:11px!important;line-height:1.4!important}
@media(max-width:1100px){body[data-native-builder="1"] .builderWorkspaceMain,body[data-native-desk="1"] .readerMain{grid-template-columns:244px minmax(0,1fr)!important}}
@media(max-width:820px){body[data-native-builder="1"],body[data-native-desk="1"],body[data-native-account="1"]{font-size:14px}body[data-native-builder="1"] .work,body[data-native-desk="1"] .readerWork{padding:18px 16px 54px!important}}
@media(prefers-reduced-motion:reduce){body[data-native-builder="1"] *,body[data-native-desk="1"] *,body[data-native-account="1"] *{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* V953 — layout fit, readable actions and prompt contrast. */
body[data-product-ui="stable"] .readerWork>section,
body[data-product-ui="stable"] .readerWork>.readerPanel,
body[data-product-ui="stable"] .builderWorkspaceMain>section,
body[data-product-ui="stable"] .builderWorkspaceMain>.nativePanel{width:100%;max-width:none;min-width:0}
body[data-product-ui="stable"] .compactTableWrap{width:100%;max-width:none;overflow-x:auto}
body[data-product-ui="stable"] .compactRecommendedTable{width:100%;min-width:820px;table-layout:fixed}
body[data-product-ui="stable"] .compactRecommendedTable col.recIdx{width:46px}
body[data-product-ui="stable"] .compactRecommendedTable col.recElement{width:27%}
body[data-product-ui="stable"] .compactRecommendedTable col.recStatus{width:150px}
body[data-product-ui="stable"] .compactRecommendedTable col.recReason{width:auto}
body[data-product-ui="stable"] .compactRecommendedTable col.recAction{width:118px}
body[data-product-ui="stable"] .compactRecommendedTable th:last-child,
body[data-product-ui="stable"] .compactRecommendedTable td:last-child{width:118px;min-width:118px;text-align:right;padding-left:12px;padding-right:12px}
body[data-product-ui="stable"] .compactRecommendedTable td:nth-child(4){overflow-wrap:anywhere;line-height:1.45}
body[data-product-ui="stable"] .compactOpen{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:88px;min-height:38px;padding:8px 12px!important;white-space:nowrap;line-height:1.15}
body[data-product-ui="stable"] .compactOpen .fmIcon{flex:0 0 auto;margin:0}
body[data-product-ui="stable"][data-native-desk="1"] .promptTextCard.aiPromptCard{background:#202521!important;border-color:#202521!important;padding:0!important;overflow:hidden!important}
body[data-product-ui="stable"][data-native-desk="1"] .aiPromptCard .readerPromptCardHead{background:#202521!important;border-color:#394039!important}
body[data-product-ui="stable"][data-native-desk="1"] .aiPromptCard .readerPromptCardHead h3,
body[data-product-ui="stable"][data-native-desk="1"] .aiPromptCard .readerPromptCardHead p,
body[data-product-ui="stable"][data-native-desk="1"] .aiPromptCard .promptVariantBadge,
body[data-product-ui="stable"][data-native-desk="1"] .aiPromptCard .readerButton,
body[data-product-ui="stable"][data-native-desk="1"] .aiPromptCard .withIconButton{color:#fff!important;-webkit-text-fill-color:#fff!important}
body[data-product-ui="stable"][data-native-desk="1"] .aiPromptCard .promptVariantBadge.ai{background:#344038!important;border-color:#4b584e!important}
body[data-product-ui="stable"][data-native-desk="1"] .aiPromptCard .readerButton{background:#343c36!important;border-color:#4b584e!important}
body[data-product-ui="stable"][data-native-desk="1"] .humanPromptCard{padding:0!important}

/* Login uses the same workspace geometry without exposing authenticated tools. */
.loginWorkspaceBody{margin:0;background:#f5f3ee;color:#24211d;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.55}
.loginWorkspaceTop{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 22px;background:#fff;border-bottom:1px solid #e4ded5;box-shadow:0 8px 26px rgba(35,29,22,.055)}
.loginWorkspaceBrand{display:flex;align-items:center;gap:10px;color:#24211d;text-decoration:none;font-weight:900;font-size:18px}.loginWorkspaceBrand .fmIcon{width:23px;height:23px}
.loginWorkspaceTopActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.loginWorkspaceTopActions a{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:9px 12px;border:1px solid #ddd6cc;border-radius:11px;background:#fff;color:#2b2824;text-decoration:none;font-size:14px;font-weight:800}.loginWorkspaceTopActions a.primary{background:#2d2a26;color:#fff;border-color:#2d2a26}
.loginWorkspaceKpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#ded8ce;border-bottom:1px solid #ded8ce}.loginWorkspaceKpis article{background:#fff;padding:13px 18px}.loginWorkspaceKpis b{display:block;font-size:17px}.loginWorkspaceKpis span{font-size:12px;color:#746d65}
.loginWorkspaceLayout{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:calc(100vh - 132px)}.loginWorkspaceSide{background:#f0ede7;border-right:1px solid #ddd7cd;padding:22px 14px}.loginWorkspaceSideLabel{padding:12px 10px 6px;color:#8a8278;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.1em}.loginWorkspaceSide a,.loginWorkspaceSide .loginSideItem{display:flex;gap:10px;align-items:flex-start;padding:11px 12px;border-radius:12px;color:#38342f;text-decoration:none}.loginWorkspaceSide a:hover{background:#fff}.loginWorkspaceSide .fmIcon{width:18px;height:18px;flex:0 0 auto;margin-top:2px}.loginWorkspaceSide b,.loginWorkspaceSide small{display:block}.loginWorkspaceSide small{margin-top:2px;color:#777066;font-size:11px;line-height:1.35}
.loginWorkspaceMain{min-width:0;padding:36px clamp(22px,4vw,58px) 60px}.loginWorkspaceHero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.75fr);gap:24px;align-items:start;max-width:1220px;margin:0 auto}.loginWorkspaceIntro{padding:18px 0}.loginWorkspaceIntro .readerEyebrow{margin:0 0 9px}.loginWorkspaceIntro h1{margin:0;font-size:clamp(34px,4.6vw,58px);line-height:.98;letter-spacing:-.055em}.loginWorkspaceIntro>p{max-width:720px;font-size:17px;color:#686158;line-height:1.65}.loginBenefitGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:22px}.loginBenefit{background:#fff;border:1px solid #e0d9cf;border-radius:16px;padding:15px;box-shadow:0 8px 24px rgba(35,29,22,.04)}.loginBenefit b{display:block;margin-bottom:4px}.loginBenefit p{margin:0;color:#716a61;font-size:13px}
.loginAccessCard{background:#fff;border:1px solid #ddd6cc;border-radius:21px;padding:22px;box-shadow:0 18px 46px rgba(35,29,22,.09)}.loginAccessCard h2{margin:2px 0 6px;font-size:24px;letter-spacing:-.035em}.loginAccessCard>p{margin:0 0 16px;color:#6d665e}.loginAccessCard form{display:grid;gap:12px}.loginAccessCard label{display:grid;gap:6px;font-size:13px;font-weight:850}.loginAccessCard input{width:100%;min-height:45px;padding:11px 12px;border:1px solid #d7d0c6;border-radius:11px;background:#fbfaf8;font:inherit}.loginAccessCard button{min-height:44px;border:0;border-radius:11px;background:#2d2a26;color:#fff;font:inherit;font-weight:900;cursor:pointer}.loginAccessCard .notice{margin:12px 0 0}.loginAccessFoot{margin-top:14px;padding-top:14px;border-top:1px solid #ece6de;color:#766f66;font-size:12px}
@media(max-width:900px){.loginWorkspaceKpis{grid-template-columns:repeat(2,1fr)}.loginWorkspaceLayout{grid-template-columns:1fr}.loginWorkspaceSide{display:none}.loginWorkspaceHero{grid-template-columns:1fr}.loginWorkspaceMain{padding-top:26px}}
@media(max-width:560px){.loginWorkspaceTop{align-items:flex-start;flex-direction:column}.loginWorkspaceKpis{grid-template-columns:1fr}.loginBenefitGrid{grid-template-columns:1fr}.loginWorkspaceMain{padding:24px 15px 44px}}

/* V953 — compact refinement steps, disciplined spacing and denser form cards. */
body[data-product-ui="stable"]{--fm-layout-gap:14px;--fm-panel-space:16px;--fm-control-gap:8px}
body[data-product-ui="stable"] .refineSectionCards{gap:8px!important;margin:0 0 var(--fm-layout-gap)!important}
body[data-product-ui="stable"] .refineSectionCard{grid-template-columns:30px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;min-height:58px!important;padding:8px 10px!important;border-radius:12px!important}
body[data-product-ui="stable"] .refineSectionCard .refineCardState{width:28px!important;height:28px!important;min-height:28px!important;border-radius:50%!important;font-size:11px!important}
body[data-product-ui="stable"] .refineSectionCard .refineCardCopy{display:grid!important;gap:2px!important;min-width:0!important}
body[data-product-ui="stable"] .refineSectionCard .refineCardCopy strong{font-size:13px!important;line-height:1.25!important;white-space:normal!important}
body[data-product-ui="stable"] .refineSectionCard .refineCardCopy small{font-size:10.5px!important;line-height:1.25!important;margin:0!important}
body[data-product-ui="stable"] .refineSectionCard .refineProgressTrack{height:3px!important;margin-top:3px!important}
body[data-product-ui="stable"] .refineCompactPanel{padding:var(--fm-panel-space)!important}
body[data-product-ui="stable"] .refineCompactIntro{margin:0 0 12px!important;padding:0 0 11px!important;gap:10px!important}
body[data-product-ui="stable"] .refineCompactIntro h3{margin:2px 0 3px!important}.refineCompactIntro p{margin:0!important}
body[data-product-ui="stable"] .refineCompactGroups{gap:var(--fm-layout-gap)!important}.refineCompactGroup{margin:0!important;padding:14px!important}.refineGroupHead{margin:0 0 10px!important;padding:0 0 9px!important}.refineGroupHead h3{margin:0 0 2px!important}.refineGroupHead p{margin:0!important}
body[data-product-ui="stable"] .refineCompactGrid{gap:10px!important}
body[data-product-ui="stable"] .refineCompactField{padding:11px!important;gap:var(--fm-control-gap)!important;align-content:start!important}
body[data-product-ui="stable"] .refineFieldHead{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0!important;padding:0!important}
body[data-product-ui="stable"] .refineFieldHead label{display:flex!important;align-items:center;gap:4px;margin:0!important;min-width:0;font-size:13px!important}
body[data-product-ui="stable"] .fmFieldStateBadge{position:static!important;flex:0 0 auto;margin:0!important;font-size:9px!important;padding:3px 6px!important}
body[data-product-ui="stable"] .refineCompactField>select,
body[data-product-ui="stable"] .refineCompactField>input,
body[data-product-ui="stable"] .refineCompactField>textarea{margin:0!important}
body[data-product-ui="stable"] .refineCustomChoice{display:grid!important;gap:6px!important;margin:2px 0 0!important;padding:8px 9px!important;border-radius:10px!important}
body[data-product-ui="stable"] .refineCustomChoice label{margin:0!important}.refineCustomChoice label b{font-size:11px!important}.refineCustomChoice label small{margin-top:2px!important;font-size:10px!important;line-height:1.35!important}
body[data-product-ui="stable"] .refineCompactField .fieldHelp{margin:0!important;padding-top:0!important}
body[data-product-ui="stable"] .fmFieldLegend{display:none!important}
/* One spacing rhythm for direct children of the main work areas. */
body[data-product-ui="stable"] .work>*,body[data-product-ui="stable"] .readerWork>*{margin-top:0!important}
body[data-product-ui="stable"] .work>*+*,body[data-product-ui="stable"] .readerWork>*+*{margin-top:var(--fm-layout-gap)!important}
body[data-product-ui="stable"] .readerSection{margin:0!important;padding:var(--fm-panel-space)!important}
body[data-product-ui="stable"] .readerSection>.fmChartStack{gap:var(--fm-layout-gap)!important}
body[data-product-ui="stable"] .readerPanel{margin:0!important;padding:var(--fm-panel-space)!important}
body[data-product-ui="stable"] .fmChartGrid,body[data-product-ui="stable"] .fmChartStack{gap:var(--fm-layout-gap)!important}
@media(max-width:900px){body[data-product-ui="stable"] .refineSectionCards{grid-template-columns:1fr!important}}


/* V953 — account access and private redeem refinement */
body[data-product-ui="stable"][data-native-account="1"] .accountPlanSummary{display:grid;gap:16px;width:100%;max-width:none}
body[data-product-ui="stable"][data-native-account="1"] .accountPlanSummary .accountDetailNative{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;border-top:0;margin-top:0}
body[data-product-ui="stable"][data-native-account="1"] .accountPlanSummary .accountDetailNative>div{display:grid;gap:4px;align-content:start;padding:12px;border:1px solid #e6e0d8;border-radius:12px;background:#fbfaf7}
body[data-product-ui="stable"][data-native-account="1"] .accountPlanSummary .accountDetailNative b{text-align:left;font-size:15px}
body[data-product-ui="stable"][data-native-account="1"] .accountRedeemForm{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;width:100%;max-width:none;margin:0}
body[data-product-ui="stable"][data-native-account="1"] .accountRedeemForm label{margin:0}
body[data-product-ui="stable"][data-native-account="1"] .accountRedeemForm input{margin-top:6px}
@media(max-width:900px){body[data-product-ui="stable"][data-native-account="1"] .accountPlanSummary .accountDetailNative{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){body[data-product-ui="stable"][data-native-account="1"] .accountPlanSummary .accountDetailNative,body[data-product-ui="stable"][data-native-account="1"] .accountRedeemForm{grid-template-columns:1fr}}

/* V953 · user inbox and minimal mail threads */
.fmUserBell{position:relative!important;min-width:42px;justify-content:center!important;padding-inline:10px!important}.fmUserBellCount{position:absolute;right:-4px;top:-7px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#e04444;color:#fff;border:2px solid #fff;font-size:10px;font-weight:950;line-height:1}.fmUserBellCount.zero{background:#8b867e}.messageInbox{display:grid;gap:10px}.messageRow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:13px;align-items:start;padding:15px;border:1px solid var(--line,#dedbd2);border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(20,16,10,.035)}.messageRow.unread{border-color:#8d7ef2;background:linear-gradient(180deg,#fff,#faf9ff)}.messageKind{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#efedf8;font-size:18px}.messageRow h3{margin:0 0 4px;font-size:16px}.messageRow p{margin:0;color:#6f6a60}.messageMeta{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;font-size:12px;color:#777168}.messageActions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.mailThread{display:grid;gap:11px}.mailBubble{max-width:min(780px,88%);padding:14px 16px;border-radius:17px;border:1px solid #dedbd2;background:#fff}.mailBubble.admin{justify-self:start;background:#f4f1fb}.mailBubble.user{justify-self:end;background:#f0f7f2}.mailBubble small{display:block;color:#756f65;margin-bottom:5px}.mailBubble p{margin:0;white-space:pre-wrap}.ticketQuota{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:12px 0}.ticketQuota article{padding:13px;border:1px solid #dedbd2;border-radius:14px;background:#fff}.ticketQuota b{display:block;font-size:23px}.ticketQuota span{font-size:12px;color:#6f6a60}.messageComposer{display:grid;gap:10px}.messageEmpty{padding:24px;text-align:center;border:1px dashed #c9c3b8;border-radius:16px;color:#6f6a60;background:#fbfaf7}@media(max-width:720px){.messageRow{grid-template-columns:auto minmax(0,1fr)}.messageActions{grid-column:1/-1;justify-content:flex-start}.mailBubble{max-width:96%}}

/* V953.2 · quota strips: warn the author before chapter or commercial quota ends. */
body[data-native-builder="1"] .premiumKpi.quotaTone-warning,
body[data-native-desk="1"] .readerPremiumKpi.quotaTone-warning{box-shadow:inset 0 -3px 0 #c58a20!important}
body[data-native-builder="1"] .premiumKpi.quotaTone-danger,
body[data-native-desk="1"] .readerPremiumKpi.quotaTone-danger{box-shadow:inset 0 -3px 0 #b84634!important}
body[data-native-builder="1"] .premiumKpi.quotaTone-warning .builderKpiTrack i,
body[data-native-desk="1"] .readerPremiumKpi.quotaTone-warning .readerKpiTrack i{background:#c58a20!important}
body[data-native-builder="1"] .premiumKpi.quotaTone-danger .builderKpiTrack i,
body[data-native-desk="1"] .readerPremiumKpi.quotaTone-danger .readerKpiTrack i{background:#b84634!important}
body[data-native-builder="1"] .premiumKpi.quotaTone-warning .builderKpiValueRow b,
body[data-native-desk="1"] .readerPremiumKpi.quotaTone-warning .readerKpiValueRow b{color:#8a5a12!important}
body[data-native-builder="1"] .premiumKpi.quotaTone-danger .builderKpiValueRow b,
body[data-native-desk="1"] .readerPremiumKpi.quotaTone-danger .readerKpiValueRow b{color:#8d2e21!important}


/* V953 — generation wizards: compact step rail + guided context/direction cards. */
body[data-native-builder="1"] .generationWizardRailCompact{grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:6px;margin-bottom:10px}
body[data-native-builder="1"] .generationWizardRailCompact .wizardStepItem{grid-template-columns:24px minmax(0,1fr);gap:7px;padding:7px 8px;border-radius:11px;align-items:center}
body[data-native-builder="1"] .generationWizardRailCompact .wizardStepNumber{width:23px;height:23px;font-size:10px}
body[data-native-builder="1"] .generationWizardRailCompact .wizardStepItem strong{font-size:12px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-native-builder="1"] .generationWizardRailCompact .wizardStepItem small{font-size:10px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
body[data-native-builder="1"] .generationScopeCardGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body[data-native-builder="1"] .generationScopeCardGrid .generationOperationCard{min-height:155px}
body[data-native-builder="1"] .generationContextCardGrid,
body[data-native-builder="1"] .generationDirectionCardGrid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important}
body[data-native-builder="1"] .generationContextCard,
body[data-native-builder="1"] .generationDirectionCard{min-height:198px}
body[data-native-builder="1"] .generationContextCard .generationCardFit strong{font-size:13px;text-transform:uppercase}
@media(max-width:720px){body[data-native-builder="1"] .generationScopeCardGrid{grid-template-columns:1fr!important}body[data-native-builder="1"] .generationWizardRailCompact .wizardStepItem small{display:none}}

/* V953 · Premium UI final pass ------------------------------------------------ */
:root{
  --fm-v953-panel:#fff;
  --fm-v953-soft:#f7f5f1;
  --fm-v953-line:#ded8cf;
  --fm-v953-ink:#25211d;
  --fm-v953-muted:#746d65;
  --fm-v953-accent:#302d29;
  --fm-v953-purple:#6459c7;
  --fm-v953-shadow:0 12px 34px rgba(35,28,21,.07);
}
body[data-product-ui="stable"] .readerHeaderClean,
body[data-product-ui="stable"] .premiumHeader{box-shadow:0 6px 22px rgba(30,24,18,.055)!important}
body[data-product-ui="stable"] .readerButton,
body[data-product-ui="stable"] .nativeButton{min-height:38px;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}
body[data-product-ui="stable"] .readerButton:hover,
body[data-product-ui="stable"] .nativeButton:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(30,24,18,.08)}
body[data-product-ui="stable"] .readerSideLink.active{box-shadow:inset 3px 0 0 var(--fm-v953-purple),0 5px 16px rgba(30,24,18,.05)!important}
body[data-product-ui="stable"] .readerTableWrap{box-shadow:0 8px 24px rgba(30,24,18,.04)}
body[data-product-ui="stable"] .readerTableWrap thead th{position:sticky;top:0;z-index:2;background:#faf8f4!important}
body[data-product-ui="stable"] .readerTableWrap tbody tr:nth-child(even) td{background:#fdfcf9}
body[data-product-ui="stable"] button:disabled,
body[data-product-ui="stable"] .readerButton[aria-disabled="true"]{opacity:.52;cursor:not-allowed;transform:none!important;box-shadow:none!important}

/* Account: essential first, technical details on demand. */
body[data-native-account="1"] .accountNativeGrid{grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr)!important;gap:14px!important}
body[data-native-account="1"] .accountIdentityNative{background:linear-gradient(145deg,#fff,#faf8f3)!important;border-color:#d8d0c7!important}
body[data-native-account="1"] .accountActionsNative{background:#302d29!important;color:#fff!important;border-color:#302d29!important}
body[data-native-account="1"] .accountActionsNative p,body[data-native-account="1"] .accountActionsNative .readerEyebrow{color:#d8d2ca!important}
body[data-native-account="1"] .accountActionsNative .readerButton{background:#fff;color:#2c2925;border-color:#fff}
body[data-native-account="1"] .accountActionsNative .readerButton.primary{background:#ebe6ff;color:#332d74;border-color:#ebe6ff}
body[data-native-account="1"] .accountAdvancedDetails{padding:0!important;overflow:hidden}
body[data-native-account="1"] .accountAdvancedDetails>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;cursor:pointer;background:#fff}
body[data-native-account="1"] .accountAdvancedDetails>summary::-webkit-details-marker{display:none}
body[data-native-account="1"] .accountAdvancedDetails>summary span{display:grid;gap:3px}
body[data-native-account="1"] .accountAdvancedDetails>summary b{font-size:16px}
body[data-native-account="1"] .accountAdvancedDetails>summary small{color:var(--fm-v953-muted)}
body[data-native-account="1"] .accountAdvancedDetails>summary i{font-style:normal;font-size:12px;font-weight:850;border:1px solid var(--fm-v953-line);border-radius:999px;padding:7px 10px}
body[data-native-account="1"] .accountAdvancedDetails[open]>summary{border-bottom:1px solid var(--fm-v953-line);background:#faf8f4}
body[data-native-account="1"] .accountAdvancedDetails>.readerTableWrap{border:0;border-radius:0;box-shadow:none}

/* Mail client. */
.mailClientShell{display:grid;grid-template-columns:190px 330px minmax(0,1fr);min-height:650px;border:1px solid var(--fm-v953-line);border-radius:20px;overflow:hidden;background:#fff;box-shadow:var(--fm-v953-shadow)}
.mailFolders{padding:16px 12px;background:#f6f3ee;border-right:1px solid var(--fm-v953-line)}
.mailFoldersTitle{display:flex;align-items:flex-end;justify-content:space-between;padding:4px 8px 13px}.mailFoldersTitle b{font-size:15px}.mailFoldersTitle small{color:var(--fm-v953-muted);font-size:10px}
.mailFolder{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 9px;margin:3px 0;border-radius:10px;color:#5c554e;font-size:12px;font-weight:800}
.mailFolder .fmIcon{width:17px;height:17px}.mailFolder b{min-width:24px;text-align:center;border-radius:999px;padding:2px 6px;background:#e9e4dc;font-size:10px}.mailFolder:hover,.mailFolder.active{background:#fff;color:#28241f;box-shadow:0 3px 12px rgba(30,24,18,.05)}.mailFolder.active{box-shadow:inset 3px 0 0 var(--fm-v953-purple),0 3px 12px rgba(30,24,18,.05)}.mailSupportLink{margin-top:18px;border-top:1px solid #ddd6cc;border-radius:0;padding-top:16px}
.mailListPane{min-width:0;border-right:1px solid var(--fm-v953-line);background:#fff}.mailPaneHeader{min-height:66px;display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border-bottom:1px solid var(--fm-v953-line);background:#fcfbf8}.mailPaneHeader div{display:grid}.mailPaneHeader b{font-size:15px}.mailPaneHeader small{font-size:10px;color:var(--fm-v953-muted)}.mailPaneBadge{border:1px solid #d8d1c8;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:850}
.mailMessageList{display:grid;align-content:start}.mailListItem{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;padding:13px 14px;border-bottom:1px solid #eee9e2;background:#fff;transition:background .12s ease,box-shadow .12s ease}.mailListItem:hover{background:#faf8f4}.mailListItem.unread{background:#faf9ff;box-shadow:inset 3px 0 0 var(--fm-v953-purple)}.mailListItem.priority-urgent{box-shadow:inset 3px 0 0 #b54135}.mailListItem.priority-important:not(.unread){box-shadow:inset 3px 0 0 #c58a20}.mailSenderAvatar{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#ece8f8;color:#4b427f;font-size:11px;font-weight:950}.mailSenderAvatar.large{width:46px;height:46px;border-radius:14px}.mailListCopy{display:grid;min-width:0}.mailListTop{display:flex;justify-content:space-between;gap:8px}.mailListTop b{font-size:11px}.mailListTop time{font-size:9px;color:#8a837b}.mailListCopy>strong{margin-top:2px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mailListCopy>small{margin-top:3px;color:#746d65;font-size:10.5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.mailListMeta{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.mailListMeta i{font-style:normal;border:1px solid #e1dbd3;border-radius:999px;padding:2px 6px;font-size:8.5px;color:#766e66}.mailListMeta .priorityFlag{background:#fff3d8;border-color:#e8ca83;color:#7a5110}
.mailReadingPane{min-width:0;padding:20px 24px 34px;background:#fff}.mailReadingPane.empty{display:grid;place-items:center;align-content:center;text-align:center;color:#777067}.mailReadingPane.empty h2{margin:12px 0 4px}.mailReadingPane.empty p{max-width:360px}.mailEmptyIllustration{display:grid;place-items:center;width:66px;height:66px;border-radius:20px;background:#f0edf9}.mailEmptyIllustration .fmIcon{width:30px;height:30px}.mailReadingHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:17px;border-bottom:1px solid var(--fm-v953-line)}.mailSenderIdentity{display:flex;gap:12px;align-items:flex-start}.mailSenderIdentity h1,.mailSenderIdentity h3{margin:2px 0 4px}.mailSenderIdentity p,.mailSenderIdentity small{margin:0;color:#7b746c}.mailReadingActions{display:flex;gap:6px;flex-wrap:wrap}.mailReadingActions form{display:inline-flex}.mailPreheader{font-size:15px;color:#5f5851;margin:17px 0 8px}.mailStatusLine{display:flex;gap:7px;flex-wrap:wrap;margin:11px 0 18px}.mailStatusLine span,.mailCategory,.mailPriority{border:1px solid #ddd6ce;border-radius:999px;padding:4px 8px;font-size:9.5px;font-weight:800}.mailPriority.priority-important{background:#fff5df;border-color:#e9d091;color:#78500d}.mailPriority.priority-urgent{background:#fff0ee;border-color:#e9b3ad;color:#8b2f25}
.mailDocument{max-width:820px;margin:0 auto;padding:28px 30px;border:1px solid #e4ded6;border-radius:17px;background:#fff;box-shadow:0 10px 30px rgba(30,24,18,.055)}.mailDocumentBody{font-size:14px;line-height:1.7;color:#3e3934}.mailDocumentBody p{margin:0 0 14px}.mailDocumentBody h3{font-size:18px;margin:24px 0 8px}.mailDocumentBody ul{margin:8px 0 18px;padding-left:22px}.mailDocumentBody li{margin:5px 0}.mailCallout{border-left:4px solid #7468d5;border-radius:0 12px 12px 0;padding:12px 14px;margin:16px 0;background:#f6f3ff}.mailCallout.warning{border-color:#c27a22;background:#fff6e4}.mailCallout b{display:block;margin-bottom:4px}.mailCallout p{margin:0}.mailCtaRow{margin:22px 0 0!important}.mailInlineActions{display:flex;gap:7px;flex-wrap:wrap;margin-top:22px;padding-top:18px;border-top:1px solid #e6dfd7}.mailConversation{max-width:820px;margin:24px auto 0}.mailConversation h2{font-size:16px}.mailThread{display:grid;gap:10px}.mailThreadMessage{padding:15px;border:1px solid #dfd9d1;border-radius:15px;background:#fff}.mailThreadMessage.admin{background:#f8f6ff}.mailThreadMessage.user{background:#f2f8f3}.mailThreadMessage header{display:flex;gap:10px;align-items:center;margin-bottom:10px}.mailThreadMessage header div{display:grid}.mailThreadMessage header small{font-size:9px;color:#777067}.mailThreadContent .mailDocumentBody{font-size:12.5px}.mailReplyBox{max-width:820px;margin:18px auto 0;padding:18px;border:1px solid #ded8cf;border-radius:16px;background:#faf8f4}.mailReplyActions{display:flex;align-items:center;justify-content:space-between;gap:12px}.mailReplyActions span{font-size:10px;color:#777067}

/* Prompt Studio composer: controls and document preview are peers. */
body[data-native-desk="1"] .readerPromptComposerWorkspace{display:grid;grid-template-columns:minmax(420px,.9fr) minmax(420px,1.1fr);gap:14px;align-items:start}
body[data-native-desk="1"] .readerPromptControlsColumn{min-width:0;border:1px solid #e2dbd2;border-radius:17px;background:#fff;padding:16px;box-shadow:0 8px 24px rgba(30,24,18,.04)}
body[data-native-desk="1"] .readerPromptPreviewColumn{position:sticky;top:132px;min-width:0}
body[data-native-desk="1"] .readerPromptPreviewColumn .readerSection,body[data-native-desk="1"] .readerPromptPreviewColumn .readerPanel{margin:0!important}
body[data-native-desk="1"] .readerPromptGenerateBar{position:sticky;bottom:10px;z-index:4;border:1px solid #d8d0c7!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(10px);box-shadow:0 10px 26px rgba(30,24,18,.10)!important}

/* Wizard cards: consistent hierarchy and clearer states. */
body[data-native-builder="1"] .generationOperationCard,body[data-native-builder="1"] .generationContextCard,body[data-native-builder="1"] .generationDirectionCard,body[data-native-builder="1"] .wizardChoiceCard{position:relative;overflow:hidden;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}
body[data-native-builder="1"] .generationOperationCard:hover,body[data-native-builder="1"] .generationContextCard:hover,body[data-native-builder="1"] .generationDirectionCard:hover,body[data-native-builder="1"] .wizardChoiceCard:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(30,24,18,.09)!important}
body[data-native-builder="1"] .generationOperationCard.selected,body[data-native-builder="1"] .generationContextCard.selected,body[data-native-builder="1"] .generationDirectionCard.selected,body[data-native-builder="1"] .wizardChoiceCard.selected{border-color:#6459c7!important;box-shadow:inset 0 0 0 1px #6459c7,0 12px 30px rgba(76,62,160,.10)!important}
body[data-native-builder="1"] .generationOperationCard.locked,body[data-native-builder="1"] .wizardChoiceCard.locked{background:#f4f1ec!important;filter:saturate(.7)}
body[data-native-builder="1"] .generationOperationCard.locked:after,body[data-native-builder="1"] .wizardChoiceCard.locked:after{content:"Bloccata dal piano o dalla quota";position:absolute;right:9px;top:9px;border:1px solid #d5cec5;border-radius:999px;padding:4px 7px;background:#fff;font-size:8.5px;font-weight:850;color:#6f675f}
body[data-native-builder="1"] .generationWizardActions,body[data-native-builder="1"] .wizardFooterActions{position:sticky;bottom:10px;z-index:8;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(10px);border:1px solid #d8d0c7!important;border-radius:14px!important;padding:10px!important;box-shadow:0 12px 28px rgba(30,24,18,.12)!important}

@media(max-width:1180px){.mailClientShell{grid-template-columns:170px 310px minmax(0,1fr)}body[data-native-desk="1"] .readerPromptComposerWorkspace{grid-template-columns:1fr}body[data-native-desk="1"] .readerPromptPreviewColumn{position:relative;top:auto}}
@media(max-width:900px){.mailClientShell{grid-template-columns:150px minmax(0,1fr)}.mailClientShell .mailReadingPane{grid-column:1/-1;border-top:1px solid var(--fm-v953-line)}.mailClientShell.reading .mailListPane{display:none}body[data-native-account="1"] .accountNativeGrid{grid-template-columns:1fr!important}}
@media(max-width:620px){.mailClientShell{display:block}.mailFolders{display:flex;gap:4px;overflow:auto;border-right:0;border-bottom:1px solid var(--fm-v953-line)}.mailFoldersTitle{display:none}.mailFolder{min-width:max-content}.mailSupportLink{margin:3px 0;border:0;padding-top:10px}.mailListPane{border-right:0}.mailReadingPane{padding:14px}.mailReadingHeader{display:block}.mailReadingActions{margin-top:10px}.mailDocument{padding:19px 17px}.mailReplyActions{align-items:flex-start;flex-direction:column}.mailPageHead{display:block!important}}
@media(prefers-reduced-motion:reduce){body[data-product-ui="stable"] *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* P1 — skeleton contestuali e toast globali */
.fmSkeletonHost{position:relative;min-height:88px}.fmSkeletonLayer{position:absolute;inset:0;z-index:35;padding:18px;border-radius:inherit;background:rgba(250,249,246,.94);backdrop-filter:blur(2px);overflow:hidden}.fmSkeleton{display:grid;gap:12px;height:100%;align-content:start}.fmSkeleton>span,.fmSkeleton i{display:block;border-radius:999px;background:linear-gradient(90deg,#ebe7df 20%,#f8f6f1 40%,#ebe7df 60%);background-size:300% 100%;animation:fmSkeletonPulse 1.25s ease-in-out infinite}.fmSkeleton>span:nth-child(1){width:34%;height:14px}.fmSkeleton>span:nth-child(2){width:72%;height:23px}.fmSkeleton>span:nth-child(3){width:92%;height:11px}.fmSkeleton>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:8px}.fmSkeleton i{height:72px;border-radius:14px}.fmSkeletonCompact>span:nth-child(2){height:17px}.fmSkeletonCompact>div{display:none}.isSkeletonLoading>*:not(.fmSkeletonLayer){opacity:.42;pointer-events:none}.fmToastRegion{position:fixed;right:22px;top:84px;z-index:3000;display:grid;gap:10px;width:min(390px,calc(100vw - 28px));pointer-events:none}.fmToast{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:12px;align-items:start;padding:14px 14px 14px 12px;border:1px solid #ded9cf;border-radius:16px;background:rgba(255,255,255,.97);box-shadow:0 18px 48px rgba(31,27,40,.18);transform:translateY(-8px) scale(.98);opacity:0;transition:.18s ease;pointer-events:auto}.fmToast.isVisible{transform:none;opacity:1}.fmToast.isLeaving{transform:translateX(18px);opacity:0}.fmToastMark{width:8px;height:100%;min-height:38px;border-radius:999px;background:#6558d6}.fmToast-success .fmToastMark{background:#27845a}.fmToast-warning .fmToastMark{background:#c98718}.fmToast-error .fmToastMark{background:#c4453b}.fmToast b{display:block;font-size:13px;letter-spacing:-.01em}.fmToast p{margin:3px 0 0;color:#625c69;font-size:12px;line-height:1.45}.fmToast button{border:0!important;background:transparent!important;color:#817a88!important;-webkit-text-fill-color:#817a88!important;padding:0!important;margin:0!important;font-size:20px;line-height:1;cursor:pointer}.fmToast button:hover{color:#211d29!important}.adminContent .fmSkeletonLayer{background:rgba(250,249,252,.95)}
@keyframes fmSkeletonPulse{0%{background-position:100% 0}100%{background-position:0 0}}
@media(max-width:720px){.fmToastRegion{right:14px;top:72px}.fmToast{border-radius:14px}.fmSkeletonLayer{padding:13px}}
@media(prefers-reduced-motion:reduce){.fmSkeleton>span,.fmSkeleton i{animation:none}.fmToast{transition:none}}

/* Prompt Studio: controls above, Human Prompt and IA Prompt side by side; full-width native guides. */
body[data-native-desk="1"] .readerPromptComposerWorkspace.readerPromptComposerWorkspaceSingle{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:18px!important;
  width:100%!important;
  max-width:none!important;
  align-items:start!important;
}
body[data-native-desk="1"] .readerPromptComposerWorkspaceSingle .readerPromptControlsColumn,
body[data-native-desk="1"] .readerPromptPreviewFlow{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
body[data-native-desk="1"] .readerPromptPreviewFlow{
  display:grid!important;
  gap:12px!important;
  position:static!important;
}
body[data-native-desk="1"] .readerPromptPreviewFlow .promptOutputHeader{
  margin:0!important;
}
body[data-native-desk="1"] .readerPromptPreviewGrid.readerPromptPreviewGridTwo{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  width:100%!important;
  align-items:stretch!important;
}
body[data-native-desk="1"] .readerPromptPreviewGridTwo .promptTextCard{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
body[data-native-desk="1"] .readerPromptPreviewGridTwo .readerPromptPreview{
  width:100%!important;
  max-height:560px!important;
}
@media(max-width:900px){
  body[data-native-desk="1"] .readerPromptPreviewGrid.readerPromptPreviewGridTwo{
    grid-template-columns:minmax(0,1fr)!important;
  }
}

body[data-native-builder="1"] .guideShell.guideShellWide,
body[data-native-desk="1"] .readerGuideLayout.readerGuideLayoutWide{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:14px!important;
  width:100%!important;
  max-width:none!important;
  align-items:start!important;
}
body[data-native-builder="1"] .guideIndex.guideIndexWide,
body[data-native-desk="1"] .readerGuideIndex.readerGuideIndexWide{
  position:static!important;
  top:auto!important;
  width:100%!important;
  max-width:none!important;
  max-height:none!important;
  overflow:visible!important;
}
body[data-native-builder="1"] .guideIndexWide .guidePageNav{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:7px!important;
}
body[data-native-builder="1"] .guideIndexWide .guidePageNav .navbtn{
  min-height:58px!important;
  margin:0!important;
}
body[data-native-desk="1"] .readerGuideIndex.readerGuideIndexWide{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:7px!important;
}
body[data-native-desk="1"] .readerGuideIndexWide .readerGuideIndexHead{
  grid-column:1/-1!important;
  margin-bottom:2px!important;
}
body[data-native-desk="1"] .readerGuideIndexWide .readerGuideLink{
  min-height:58px!important;
  margin:0!important;
}
body[data-native-builder="1"] .guidePageContent.guidePageContentWide,
body[data-native-desk="1"] .readerGuideDocument.readerGuideDocumentWide{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
}
body[data-native-builder="1"] .richGuideProduct .productPageHeader>div:first-child,
body[data-native-desk="1"] .readerRichGuide .readerGuidePageHead>div:first-child{
  min-width:0!important;
  flex:1 1 auto!important;
}
body[data-native-builder="1"] .richGuideProduct .productPageHeader p,
body[data-native-desk="1"] .readerRichGuide .readerGuidePageHead p{
  max-width:none!important;
}
body[data-native-builder="1"] .guideQuickGrid.rich,
body[data-native-desk="1"] .readerGuideCards.rich{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}

@media(max-width:1280px){
  body[data-native-builder="1"] .guideIndexWide .guidePageNav,
  body[data-native-desk="1"] .readerGuideIndex.readerGuideIndexWide,
  body[data-native-builder="1"] .guideQuickGrid.rich,
  body[data-native-desk="1"] .readerGuideCards.rich{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:900px){
  body[data-native-builder="1"] .guideIndexWide .guidePageNav,
  body[data-native-desk="1"] .readerGuideIndex.readerGuideIndexWide,
  body[data-native-builder="1"] .guideQuickGrid.rich,
  body[data-native-desk="1"] .readerGuideCards.rich{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:620px){
  body[data-native-builder="1"] .guideIndexWide .guidePageNav,
  body[data-native-desk="1"] .readerGuideIndex.readerGuideIndexWide,
  body[data-native-builder="1"] .guideQuickGrid.rich,
  body[data-native-desk="1"] .readerGuideCards.rich{
    grid-template-columns:minmax(0,1fr)!important;
  }
}

/* Compact context and direction wizard cards. */
body[data-native-builder="1"] .generationContextCardGrid,
body[data-native-builder="1"] .generationDirectionCardGrid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
body[data-native-builder="1"] .generationChoiceCard{
  min-height:0;
  padding:15px 16px 13px;
  border-radius:15px;
  align-content:start;
}
body[data-native-builder="1"] .generationChoiceCardTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px;
}
body[data-native-builder="1"] .generationChoiceCardTop .wizardCardIcon{margin:0}
body[data-native-builder="1"] .generationChoiceCardTop .cardKicker{
  margin:0 0 0 auto;
  max-width:70%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body[data-native-builder="1"] .generationChoiceCard>h3{
  margin:0 0 4px;
  font-size:15px;
  line-height:1.22;
}
body[data-native-builder="1"] .generationChoiceCard .generationCardSubtitle{
  margin:0 0 8px;
  color:#4d6654;
  font-size:10px;
  font-weight:800;
  line-height:1.35;
  text-transform:uppercase;
  letter-spacing:.035em;
}
body[data-native-builder="1"] .generationChoiceCard .generationCardExplanation{
  margin:0;
  color:#5d5a55;
  font-size:12px;
  line-height:1.5;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  overflow:hidden;
}
body[data-native-builder="1"] .generationChoiceCard .generationCardFit{
  margin-top:13px;
  padding-top:10px;
}
@media(max-width:920px){
  body[data-native-builder="1"] .generationContextCardGrid,
  body[data-native-builder="1"] .generationDirectionCardGrid{grid-template-columns:1fr}
}

/* Responsive containment: Narrative Director must never widen the viewport. */
html:has(body[data-native-builder="1"]),
body[data-native-builder="1"]{max-width:100%;overflow-x:hidden}
body[data-native-builder="1"] *,
body[data-native-builder="1"] *::before,
body[data-native-builder="1"] *::after{min-width:0;box-sizing:border-box}
body[data-native-builder="1"] .builderWorkspaceMain,
body[data-native-builder="1"] .work,
body[data-native-builder="1"] .nativePage,
body[data-native-builder="1"] .generatorProductPage,
body[data-native-builder="1"] form,
body[data-native-builder="1"] fieldset,
body[data-native-builder="1"] .card,
body[data-native-builder="1"] .choiceCard,
body[data-native-builder="1"] .operationalPanel,
body[data-native-builder="1"] .editorialResult{width:100%;max-width:100%;min-width:0}
body[data-native-builder="1"] img,
body[data-native-builder="1"] svg,
body[data-native-builder="1"] canvas{max-width:100%;height:auto}
body[data-native-builder="1"] pre,
body[data-native-builder="1"] code,
body[data-native-builder="1"] textarea,
body[data-native-builder="1"] .promptOutput,
body[data-native-builder="1"] .editorialDetails{max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:pre-wrap}
body[data-native-builder="1"] table{max-width:100%}
body[data-native-builder="1"] .compactTableWrap,
body[data-native-builder="1"] .atlasWideTable,
body[data-native-builder="1"] .editorialHeatmapTable,
body[data-native-builder="1"] .adminTableWrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

@media(max-width:900px){
  body[data-native-builder="1"] .builderWorkspaceMain{display:block!important;grid-template-columns:minmax(0,1fr)!important;overflow:visible!important}
  body[data-native-builder="1"] .side.generatorSide{position:relative!important;top:auto!important;width:100%!important;height:auto!important;max-width:100%!important;display:block!important;overflow-x:auto!important;overflow-y:hidden!important;border-right:0!important;border-bottom:1px solid var(--fm-line)!important;padding:8px 10px!important}
  body[data-native-builder="1"] .sideNav{display:flex!important;width:max-content!important;max-width:none!important;min-width:max-content!important;gap:4px!important}
  body[data-native-builder="1"] .sideNav .navgroup,
  body[data-native-builder="1"] .sideUtility,
  body[data-native-builder="1"] .builderFictionHealth{display:none!important}
  body[data-native-builder="1"] .sideNav a.navbtn{display:inline-flex!important;width:auto!important;min-width:max-content!important;grid-template-columns:none!important;align-items:center!important;margin:0!important;padding:8px 10px!important}
  body[data-native-builder="1"] .sideNav a.navbtn small{display:none!important}
  body[data-native-builder="1"] .work{width:100%!important;max-width:100%!important;padding:16px 14px 52px!important;overflow:visible!important}
  body[data-native-builder="1"] .generatorHeaderClean{position:relative!important;display:grid!important;grid-template-columns:1fr!important;align-items:start!important;padding:10px 12px!important}
  body[data-native-builder="1"] .generatorLogoContext{width:100%!important;max-width:100%!important;flex-wrap:wrap!important}
  body[data-native-builder="1"] .generatorLogoHome{white-space:normal!important;overflow-wrap:anywhere!important}
  body[data-native-builder="1"] .generatorHeaderActions{width:100%!important;justify-content:flex-start!important;flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:3px!important}
  body[data-native-builder="1"] .generatorHeaderActions a{flex:0 0 auto!important}
  body[data-native-builder="1"] .premiumDashboard{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-native-builder="1"] .choiceGrid,
  body[data-native-builder="1"] .grid,
  body[data-native-builder="1"] .matrixGrid,
  body[data-native-builder="1"] .two,
  body[data-native-builder="1"] .generationConfirmationGrid,
  body[data-native-builder="1"] .prequelSummaryGrid,
  body[data-native-builder="1"] .refineSectionCards,
  body[data-native-builder="1"] .guideQuickGrid.rich,
  body[data-native-builder="1"] .continuityKpiGrid,
  body[data-native-builder="1"] .continuityLegendBar{grid-template-columns:minmax(0,1fr)!important}
  body[data-native-builder="1"] .productPageHeader,
  body[data-native-builder="1"] .editorialHero,
  body[data-native-builder="1"] .generationRepairHead{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  body[data-native-builder="1"] .productPageHeader>*{max-width:100%!important}
  body[data-native-builder="1"] .sliderRow,
  body[data-native-builder="1"] .nativeRangeControl{grid-template-columns:minmax(0,1fr) 64px!important;max-width:100%!important}
  body[data-native-builder="1"] .sliderRow input[type=range]{width:100%!important;max-width:100%!important}
}
@media(max-width:560px){
  body[data-native-builder="1"] .premiumDashboard{grid-template-columns:minmax(0,1fr)!important}
  body[data-native-builder="1"] .work{padding:13px 10px 48px!important}
  body[data-native-builder="1"] .generatorLogoHome{font-size:15px!important}
  body[data-native-builder="1"] .professionalProductBadge,
  body[data-native-builder="1"] .activeProjectBar{display:none!important}
  body[data-native-builder="1"] .nativeLoadingCard{width:calc(100% - 20px)!important;padding:15px!important}
}

/* Accessibility: visible keyboard focus on every application surface. */
body a:focus-visible,body button:focus-visible,body input:focus-visible,body select:focus-visible,body textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #2d6cdf!important;outline-offset:3px!important;box-shadow:0 0 0 5px rgba(45,108,223,.18)!important}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Creative progression grounded in the active fiction. */
.creativeMomentumSection{margin-top:18px}.creativeMomentumPanel{position:relative;overflow:hidden;display:grid;gap:16px;border:1px solid rgba(88,72,170,.22);border-radius:24px;padding:22px;background:radial-gradient(circle at 100% 0,rgba(118,104,255,.13),transparent 34%),linear-gradient(145deg,#fff,#fbf9ff);box-shadow:0 18px 46px rgba(41,32,83,.10)}.creativeMomentumPanel:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(91,75,180,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(91,75,180,.035) 1px,transparent 1px);background-size:28px 28px;mask-image:linear-gradient(135deg,#000,transparent 72%);pointer-events:none}.creativeMomentumPanel>*{position:relative;z-index:1}.creativeMomentumHead{display:flex;align-items:center;justify-content:space-between;gap:20px}.creativeMomentumHead h2,.creativeMomentumHead h3{margin:3px 0 6px;letter-spacing:-.035em}.creativeMomentumHead p{margin:0;color:var(--muted,#68636f);max-width:760px}.creativeMomentumScore{--creative-progress:0;position:relative;flex:0 0 auto;width:132px;aspect-ratio:1;border-radius:50%;display:grid;place-content:center;text-align:center;background:conic-gradient(#6d5df5 var(--creative-progress,0%),#ece9f7 0);box-shadow:0 12px 32px rgba(76,61,160,.18)}.creativeMomentumScore:before{content:"";position:absolute;inset:9px;border-radius:50%;background:#fff}.creativeMomentumScore>*{position:relative;z-index:1}.creativeMomentumScore strong{display:block;font-size:28px;line-height:1;letter-spacing:-.05em}.creativeMomentumScore span{display:block;margin-top:5px;font-size:11px;font-weight:900}.creativeMomentumScore small{display:block;margin-top:2px;color:var(--muted,#68636f);font-size:10px}.creativeNextMove{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:13px;align-items:center;border:1px solid rgba(58,128,88,.25);border-radius:18px;padding:15px;background:linear-gradient(135deg,#f1fbf4,#fff)}.creativeNextMove>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#1f7a45;color:#fff}.creativeNextMove small{font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.09em;color:#1f6b45}.creativeNextMove h3{margin:2px 0 3px;font-size:18px}.creativeNextMove p{margin:0;color:var(--muted,#68636f);font-size:13px}.creativeMilestoneGrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.creativeMilestone{min-width:0;display:grid;grid-template-rows:auto 1fr auto;gap:8px;border:1px solid var(--line,#ddd8e5);border-radius:15px;padding:12px;background:#fff;color:inherit;text-decoration:none;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.creativeMilestone:hover{transform:translateY(-2px);border-color:#8a7ef4;box-shadow:0 10px 24px rgba(67,52,148,.10)}.creativeMilestone>span{display:grid;place-items:center;width:29px;height:29px;border-radius:10px;background:#f0edf8;color:#5b4dcc;font-size:10px;font-weight:950}.creativeMilestone b{display:block;font-size:13px}.creativeMilestone small{display:block;margin-top:4px;color:var(--muted,#68636f);font-size:11px;line-height:1.38}.creativeMilestone em{font-style:normal;font-size:9px;font-weight:950;text-transform:uppercase;letter-spacing:.07em;color:#8a8490}.creativeMilestone.isComplete{border-color:rgba(47,143,91,.32);background:#f6fbf7}.creativeMilestone.isComplete>span{background:#1f7a45;color:#fff}.creativeMilestone.isComplete em{color:#1f6b45}.creativeBlockHead{padding-top:3px}.creativeBlockHead h3{margin:3px 0 0;font-size:18px}.creativeQuickGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.creativeQuickPath{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid var(--line,#ddd8e5);border-radius:15px;padding:13px;background:#fff;color:inherit;text-decoration:none}.creativeQuickPath>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#f2efff;color:#5b4dcc}.creativeQuickPath b{display:block;font-size:13px}.creativeQuickPath small{display:block;margin-top:3px;color:var(--muted,#68636f);font-size:11px;line-height:1.38}.creativeQuickPath>strong{font-size:11px;color:#5b4dcc;white-space:nowrap}.builderCreativeMomentum{margin-bottom:18px}.builderCreativeMomentum .creativeMomentumHead h3{font-size:24px}.builderCreativeMomentum .creativeNextMove .btn{white-space:nowrap}@media(max-width:1180px){.creativeMilestoneGrid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:820px){.creativeMomentumHead{align-items:flex-start}.creativeMilestoneGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.creativeQuickGrid{grid-template-columns:1fr}.creativeMomentumScore{width:112px}}@media(max-width:560px){.creativeMomentumPanel{padding:16px;border-radius:19px}.creativeMomentumHead{display:grid}.creativeMomentumScore{width:100%;aspect-ratio:auto;border-radius:14px;grid-template-columns:auto auto auto;gap:8px;align-items:center;justify-content:start;text-align:left;padding:13px;background:linear-gradient(90deg,#eeeaff var(--creative-progress,0%),#f8f7fb 0)}.creativeMomentumScore:before{display:none}.creativeMomentumScore strong{font-size:24px}.creativeMomentumScore span,.creativeMomentumScore small{margin:0}.creativeNextMove{grid-template-columns:38px 1fr}.creativeNextMove>a,.creativeNextMove>button{grid-column:1/-1;text-align:center}.creativeMilestoneGrid{grid-template-columns:1fr}.creativeMilestone{grid-template-columns:34px minmax(0,1fr) auto;grid-template-rows:auto;align-items:center}.creativeQuickPath{grid-template-columns:36px minmax(0,1fr)}.creativeQuickPath>strong{grid-column:2}}

/* Author session resume and unified active-fiction history. */
.sessionResumePanel{border:1px solid #d8d0ff;background:radial-gradient(circle at 92% 8%,rgba(118,104,255,.12),transparent 34%),linear-gradient(145deg,#fff,#f7f4ff);border-radius:22px;padding:20px;box-shadow:0 18px 46px rgba(46,35,92,.08)}
.sessionResumeHead,.sessionResumeNext{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.sessionResumeHead h2{margin:2px 0 5px}.sessionResumeHead p{margin:0;color:var(--muted)}.sessionResumeStatus{border:1px solid #a8d2b4;background:#edf8f0;color:#216b3d;border-radius:999px;padding:6px 9px;font-size:9px;text-transform:uppercase;letter-spacing:.06em;font-weight:950;white-space:nowrap}.sessionResumeWhere{display:grid;grid-template-columns:46px 1fr;gap:13px;align-items:center;margin:16px 0;border:1px solid #ded7f2;background:#fff;border-radius:16px;padding:15px}.sessionResumeWhere>span{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#eeebff;color:#5949c9}.sessionResumeWhere small,.sessionResumeNext small{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.07em;font-weight:900}.sessionResumeWhere h3{margin:4px 0 0;font-size:16px;line-height:1.45}.sessionResumeGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.sessionResumeGrid article{border:1px solid var(--fm-line);background:#fff;border-radius:14px;padding:13px}.sessionResumeGrid article>span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.07em;font-weight:950;color:#6f675e}.sessionResumeGrid ul{margin:8px 0 0;padding-left:18px}.sessionResumeGrid li{font-size:11px;line-height:1.48;margin:4px 0;color:#514b45}.sessionResumeNext{align-items:center;margin-top:12px;border-radius:16px;padding:14px 15px;background:#27223d;color:#fff}.sessionResumeNext h3{margin:3px 0;font-size:16px}.sessionResumeNext p{margin:0;color:rgba(255,255,255,.68);font-size:11px}.sessionResumeAlternatives{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:9px}.sessionResumeAlternative{display:grid;grid-template-columns:34px 1fr auto;gap:9px;align-items:center;border:1px solid var(--fm-line);background:#fff;border-radius:13px;padding:10px;text-decoration:none;color:inherit}.sessionResumeAlternative>span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#f0ece5}.sessionResumeAlternative b,.sessionResumeAlternative small{display:block}.sessionResumeAlternative b{font-size:11px}.sessionResumeAlternative small{font-size:9px;color:var(--muted);margin-top:2px}.sessionResumeAlternative>strong{color:#5c4cff}.projectHistoryTimeline{display:grid;gap:8px}.projectHistoryItem{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid var(--fm-line);background:#fff;border-radius:14px;padding:12px}.projectHistoryIcon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#f0ece5}.projectHistory-snapshot .projectHistoryIcon{background:#eeebff;color:#5b4aca}.projectHistoryCopy>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.projectHistoryCopy b{font-size:12px}.projectHistoryCopy time{font-size:9px;color:var(--muted);white-space:nowrap}.projectHistoryCopy p{margin:3px 0 0;color:#5f5851;font-size:10px}.projectHistoryCopy small{display:block;margin-top:4px;color:#4a694f;font-size:9px}.projectHistoryItem form{margin:0}.readerButton.compact{padding:7px 9px;font-size:9px}.projectHistoryEmpty{border:1px dashed var(--fm-line);border-radius:14px;padding:18px;background:#faf8f4}.projectHistoryEmpty b,.projectHistoryEmpty span{display:block}.projectHistoryEmpty span{margin-top:4px;color:var(--muted);font-size:10px}
@media(max-width:900px){.sessionResumeGrid,.sessionResumeAlternatives{grid-template-columns:1fr}.sessionResumeHead,.sessionResumeNext{display:grid}.projectHistoryItem{grid-template-columns:34px minmax(0,1fr)}.projectHistoryItem form{grid-column:2}.projectHistoryCopy>div{align-items:flex-start;flex-direction:column;gap:2px}.projectHistoryCopy time{white-space:normal}}

/* Final polish — keep brand, active fiction and account identity in separate layout areas. */
body[data-native-builder="1"] .generatorHeaderClean{
  display:grid!important;
  grid-template-columns:minmax(360px,560px) minmax(0,1fr)!important;
  align-items:center!important;
  gap:14px!important;
}
body[data-native-builder="1"] .generatorLogoContext{
  min-width:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,auto) auto!important;
  grid-template-areas:"brand badge" "project project"!important;
  align-items:center!important;
  justify-content:start!important;
  column-gap:10px!important;
  row-gap:4px!important;
  overflow:hidden!important;
}
body[data-native-builder="1"] .generatorLogoHome{
  grid-area:brand!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body[data-native-builder="1"] .professionalProductBadge{grid-area:badge!important}
body[data-native-builder="1"] .activeProjectBar{
  grid-area:project!important;
  min-width:0!important;
  max-width:100%!important;
  padding:3px 0 0!important;
  border-left:0!important;
  border-top:1px solid var(--fm-line-soft)!important;
}
body[data-native-builder="1"] .activeProjectBar .contextValue{max-width:100%!important}
body[data-native-builder="1"] .generatorHeaderActions{
  min-width:0!important;
  max-width:100%!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
}
body[data-native-builder="1"] .generatorHeaderActions .headerAccountBtn{
  max-width:160px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body[data-native-builder="1"] .generatorHeaderActions .headerAccountBtn span,
body[data-native-builder="1"] .generatorHeaderActions .headerAccountBtn{white-space:nowrap!important}
@media(max-width:1280px){
  body[data-native-builder="1"] .generatorHeaderClean{grid-template-columns:minmax(290px,430px) minmax(0,1fr)!important}
  body[data-native-builder="1"] .professionalProductBadge{display:none!important}
  body[data-native-builder="1"] .generatorLogoContext{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"brand" "project"!important}
  body[data-native-builder="1"] .generatorHeaderActions a{padding-inline:9px!important}
}
@media(max-width:900px){
  body[data-native-builder="1"] .generatorHeaderClean{grid-template-columns:minmax(0,1fr)!important}
  body[data-native-builder="1"] .generatorLogoContext{overflow:visible!important}
  body[data-native-builder="1"] .generatorLogoHome{max-width:100%!important}
  body[data-native-builder="1"] .generatorHeaderActions{justify-content:flex-start!important;flex-wrap:nowrap!important;overflow-x:auto!important}
}

/* Persistent automatic active-chapter context. */
body[data-native-builder="1"] .activeProjectBar,
body[data-native-desk="1"] .readerActiveProject{display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important}
body[data-native-builder="1"] .activeProjectBar .workspaceContextItem,
body[data-native-desk="1"] .readerActiveProject .workspaceContextItem{display:block!important;min-width:0!important;padding-right:12px!important}
body[data-native-builder="1"] .activeProjectBar .workspaceContextItem+ .workspaceContextItem,
body[data-native-desk="1"] .readerActiveProject .workspaceContextItem+ .workspaceContextItem{padding-left:12px!important;border-left:1px solid #e8e1d8!important}
body[data-native-builder="1"] .activeProjectBar .activeChapterContext strong,
body[data-native-desk="1"] .readerActiveProject .activeChapterContext strong{max-width:330px!important;color:#2f5b45!important}
body[data-native-builder="1"] .activeProjectBar .activeChapterContext small,
body[data-native-desk="1"] .readerActiveProject .activeChapterContext small{display:block!important;margin-top:2px!important;font-size:9px!important;color:var(--fm-muted,#777067)!important;text-transform:uppercase!important;letter-spacing:.04em!important;font-weight:800!important}
body[data-native-builder="1"] .activeProjectBar .activeChapterContext.empty strong,
body[data-native-desk="1"] .readerActiveProject .activeChapterContext.empty strong{color:var(--fm-muted,#777067)!important}
body[data-native-desk="1"] .readerTableWrap tr.activeChapterRow td{background:#f0f7f2!important;border-bottom-color:#cfe0d4!important}
.activeChapterBadge,.activeChapterCurrent{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;margin:0 6px 4px 0;background:#dcefe2;color:#28513d;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.activeChapterCurrent{margin:0}
@media(max-width:980px){body[data-native-builder="1"] .activeProjectBar .activeChapterContext,body[data-native-desk="1"] .readerActiveProject .activeChapterContext{display:none!important}}

/* Keep the active chapter visible without widening mobile workspaces. */
body[data-native-desk="1"] details.readerBiMenu:not([open]) .readerBiDropdown{display:none!important}
@media(max-width:760px){
  body[data-native-builder="1"] .generatorLogoContext,
  body[data-native-desk="1"] .readerLogoContext{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    min-width:0!important;
    gap:8px!important;
    overflow:visible!important;
  }
  body[data-native-builder="1"] .activeProjectBar,
  body[data-native-desk="1"] .readerActiveProject{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
    min-width:0!important;
    gap:8px!important;
    margin:0!important;
    padding:8px 0 0!important;
    border:0!important;
    border-top:1px solid #e8e1d8!important;
  }
  body[data-native-builder="1"] .activeProjectBar .workspaceContextItem,
  body[data-native-desk="1"] .readerActiveProject .workspaceContextItem,
  body[data-native-builder="1"] .activeProjectBar .workspaceContextItem+.workspaceContextItem,
  body[data-native-desk="1"] .readerActiveProject .workspaceContextItem+.workspaceContextItem{
    min-width:0!important;
    padding:0!important;
    border:0!important;
  }
  body[data-native-builder="1"] .activeProjectBar strong,
  body[data-native-desk="1"] .readerActiveProject strong{
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body[data-native-builder="1"] .generatorHeaderActions,
  body[data-native-desk="1"] .readerHeaderActions{
    width:100%!important;
    min-width:0!important;
  }
  body[data-native-desk="1"] .readerBiDropdown{
    left:auto!important;
    right:0!important;
    width:min(330px,calc(100vw - 28px))!important;
    max-width:calc(100vw - 28px)!important;
  }
}
@media(max-width:440px){
  body[data-native-builder="1"] .activeProjectBar,
  body[data-native-desk="1"] .readerActiveProject{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:760px){
  body[data-native-builder="1"] .activeProjectBar .activeChapterContext,
  body[data-native-desk="1"] .readerActiveProject .activeChapterContext{display:block!important}
}

/* Automatic active-scene focus and deferred heavy projections. */
body[data-native-builder="1"] .activeProjectBar .activeSceneContext strong,
body[data-native-desk="1"] .readerActiveProject .activeSceneContext strong{max-width:330px!important;color:#5a4672!important}
body[data-native-builder="1"] .activeProjectBar .activeSceneContext small,
body[data-native-desk="1"] .readerActiveProject .activeSceneContext small{display:block!important;margin-top:2px!important;font-size:9px!important;color:var(--fm-muted,#777067)!important;text-transform:uppercase!important;letter-spacing:.04em!important;font-weight:800!important}
body[data-native-builder="1"] .activeProjectBar .activeSceneContext.empty strong,
body[data-native-desk="1"] .readerActiveProject .activeSceneContext.empty strong{color:var(--fm-muted,#777067)!important}
body[data-native-desk="1"] .readerTableWrap tr.activeSceneRow td{background:#f6f2fa!important;border-bottom-color:#ddd2e8!important}
.atlasLazyGrid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-top:16px}
.atlasLazyCard{display:flex;flex-direction:column;justify-content:space-between;min-width:0;padding:16px;border:1px solid #e7e0d7;border-radius:16px;background:#fff}
.atlasLazyCard h4{margin:5px 0 8px}.atlasLazyCard p{margin:0 0 12px;color:var(--fm-muted,#777067)}
.atlasLazyCard .nativeLazyPanel{min-height:42px;display:flex;align-items:center}
.atlasDeferredSection{scroll-margin-top:96px}.deskDeferredShell .nativeLazyPanel{padding:22px;min-height:180px}
@media(max-width:980px){
  body[data-native-builder="1"] .activeProjectBar .activeChapterContext,
  body[data-native-desk="1"] .readerActiveProject .activeChapterContext,
  body[data-native-builder="1"] .activeProjectBar .activeSceneContext,
  body[data-native-desk="1"] .readerActiveProject .activeSceneContext{display:block!important}
  body[data-native-builder="1"] .activeProjectBar,
  body[data-native-desk="1"] .readerActiveProject{flex-wrap:wrap!important}
}
@media(max-width:760px){
  body[data-native-builder="1"] .activeProjectBar,
  body[data-native-desk="1"] .readerActiveProject{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .atlasLazyGrid{grid-template-columns:1fr}
}
@media(max-width:560px){
  body[data-native-builder="1"] .activeProjectBar,
  body[data-native-desk="1"] .readerActiveProject{grid-template-columns:minmax(0,1fr)!important}
}

/* Dedicated creation preflight and readable fiction atlas. */
.creationPreflightPage{display:grid;gap:18px}
.creationPreflightSummary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.creationPreflightSummary .atlasLazyCard{min-height:132px}
.creationPreflightActions{align-items:center;justify-content:space-between}
@media(max-width:980px){.creationPreflightSummary{grid-template-columns:minmax(0,1fr)}}
body[data-native-builder="1"] .wizardStepRailEight{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){body[data-native-builder="1"] .wizardStepRailEight{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body[data-native-builder="1"] .wizardStepRailEight{grid-template-columns:minmax(0,1fr)}}
