

/* V14.0 TEST — impaginazione approvata e tema chiaro selezionabile */
.byd-v14-topbar{display:grid!important;grid-template-columns:minmax(100px,1fr) minmax(0,auto) minmax(100px,1fr)!important;align-items:center!important;gap:clamp(10px,2vw,26px)!important;min-height:150px!important;padding:12px clamp(14px,2vw,32px)!important}
.byd-v14-topbar .byd-theme-control{grid-column:1;grid-row:1;justify-self:start;display:flex;align-items:center;gap:7px;white-space:nowrap}
.byd-theme-symbol{font-size:20px;color:var(--bydi-ui-residual-d7edff)}
.byd-theme-toggle{display:flex;align-items:center;width:65px;height:34px;border:1px solid var(--bydi-ui-residual-a6d5f1);border-radius:999px;background:var(--bydi-ui-residual-194e7e);padding:3px;cursor:pointer;transition:background .2s}
.byd-theme-knob{width:26px;height:26px;background:var(--bydi-ui-residual-f4fbff);border-radius:50%;box-shadow:0 1px 4px var(--bydi-appearance-0005);transition:transform .2s}
.byd-theme-toggle:focus-visible{outline:3px solid var(--bydi-ui-residual-64dbff);outline-offset:3px}
.byd-v14-topbar .brand{grid-column:2!important;grid-row:1!important;min-width:0!important;justify-content:center!important;text-align:center!important}
.byd-v14-topbar .brand-copy{margin:0!important;min-width:0!important}
.byd-brand-name{display:block;color:var(--bydi-component-surface-light-blue, var(--bydi-component-surface-light-blue));text-decoration:none;font-size:clamp(22px,3vw,47px);font-weight:850;letter-spacing:-.045em;line-height:1.12;white-space:nowrap}
.byd-brand-name:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.byd-v14-topbar .brand .flag{font-size:.8em!important;margin-left:.06em!important}
.byd-v14-topbar .byd-brand-sub{display:flex;align-items:center;justify-content:center;gap:.35em;margin-top:9px;color:var(--bydi-ui-residual-e2f1ff);font-size:clamp(13px,1.38vw,21px);font-weight:800;letter-spacing:.105em;white-space:nowrap}
.byd-fb-mark{display:inline-flex;align-items:center;justify-content:center;background:var(--bydi-ui-residual-1778f2);color:white;width:1.38em;height:1.38em;line-height:1;border-radius:50%;font-family:Arial,sans-serif;font-size:1.05em;font-weight:900;letter-spacing:0;padding-top:.12em}
.byd-v14-topbar .byd-brand-logo{grid-column:3!important;grid-row:1!important;justify-self:end!important;align-self:center!important;display:flex;width:clamp(82px,10.3vw,148px)!important;height:clamp(82px,10.3vw,148px)!important;max-width:none!important;max-height:none!important;flex-basis:auto!important;margin:0!important}
.chatbot{margin-top:0!important}
.chat-head{padding:clamp(14px,2vw,26px) clamp(15px,2vw,32px) 12px!important;gap:clamp(13px,2vw,28px)!important}
.chat-head .byd-chat-intro{flex:1;min-width:0;text-align:center}
.chat-head h2{margin:0!important}
.chat-head .byd-version{display:block!important;margin-top:12px!important;font-size:clamp(15px,1.5vw,22px)!important}
.chat-head .byd-chat-welcome{max-width:none;margin:14px 0 0!important;font-size:clamp(14px,1.4vw,19px);line-height:1.35}
.chat-head .byd-chat-description{max-width:none;margin:5px 0 0!important;font-size:clamp(13px,1.25vw,17px);line-height:1.4}
.chat-body{padding-top:8px!important;padding-bottom:20px!important}
.chat-tip{order:-3!important;text-align:center!important;font-size:clamp(12px,1vw,14px)!important;font-weight:400!important;margin:0 0 10px!important;color:var(--bydi-ui-residual-c7edff)}
.chat-form{order:-2!important;margin:0 0 8px!important}
.messages{order:0!important;min-height:0!important;margin:0!important;gap:12px}
.messages:empty{display:none!important}
.byd-discover{order:1!important;margin-top:12px!important}
.disclaimer{order:2!important}
.byd-v14-topbar .fb{display:none!important}
@media(max-width:950px){
 .byd-v14-topbar{grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;min-height:0!important;padding:12px!important;row-gap:8px!important}
 .byd-v14-topbar .byd-theme-control{grid-column:1!important;grid-row:1!important}
 .byd-v14-topbar .brand{grid-column:1!important;grid-row:2!important;justify-self:center!important;max-width:100%!important}
 .byd-v14-topbar .byd-brand-logo{grid-column:2!important;grid-row:1 / 3!important;justify-self:center!important;width:clamp(72px,17vw,112px)!important;height:clamp(72px,17vw,112px)!important}
 .byd-brand-name{font-size:clamp(17px,3.6vw,31px)!important}
 .byd-v14-topbar .byd-brand-sub{font-size:clamp(10px,1.95vw,17px)!important;letter-spacing:.055em!important}
 .chat-head{flex-direction:row!important;text-align:center!important;align-items:center!important;gap:12px!important}
 .bot-avatar{width:clamp(64px,13vw,104px)!important;height:clamp(64px,13vw,104px)!important;flex:0 0 clamp(64px,13vw,104px)!important}
 .chat-head h2{font-size:clamp(21px,3.8vw,32px)!important}
}
@media(max-width:560px){
 .byd-v14-topbar{grid-template-columns:minmax(0,1fr) minmax(64px,24vw)!important;column-gap:6px!important}
 .byd-v14-topbar .byd-brand-logo{width:min(100%,96px)!important;height:auto!important;aspect-ratio:1/1}
 .byd-brand-name{font-size:clamp(15px,4.25vw,22px)!important;white-space:normal!important;line-height:1.12!important}
 .byd-v14-topbar .byd-brand-sub{font-size:clamp(9px,2.5vw,12px)!important;white-space:normal!important;letter-spacing:0!important}
 .byd-theme-toggle{width:56px;height:30px}.byd-theme-knob{width:22px;height:22px}
 .chat-head{padding:13px 10px 7px!important;flex-direction:column!important}
 .chat-head h2{font-size:clamp(21px,5.5vw,29px)!important}
 .chat-head .byd-chat-welcome{margin-top:9px!important}
 .chat-head .byd-chat-description{font-size:13px}
 .chat-tip{font-size:12px!important}
 .chat-form input{min-width:0}
}
/* Tema Silver Blue: attivo solo se scelto dall'utente. */
html[data-byd-theme="light"]{color-scheme:light;--bg:var(--bydi-ui-residual-edf5fa);--panel:var(--bydi-ui-browser-choice-light-bg);--border:var(--bydi-ui-residual-c0d8e9);--muted:var(--bydi-ui-residual-4d657c);--cyan:var(--bydi-ui-residual-087ab1);--blue:var(--bydi-ui-residual-d7eaf8);--text:var(--bydi-component-text-navy, var(--bydi-ui-group-text-light))}
html[data-byd-theme="light"] body{background:linear-gradient(180deg,var(--bydi-ui-residual-e3f2fb),var(--bydi-ui-residual-f3f8fc) 40%,var(--bydi-ui-residual-e8f3f9))!important;color:var(--bydi-component-text-navy, var(--bydi-ui-group-text-light))!important}
html[data-byd-theme="light"] .topbar{background:linear-gradient(105deg,var(--bydi-ui-residual-d9effc),var(--bydi-ui-residual-f4faff) 60%,var(--bydi-ui-residual-d9effc))!important;border-color:var(--bydi-ui-residual-b6d8eb)!important;box-shadow:0 4px 20px var(--bydi-ui-residual-8aaec52e)!important}
html[data-byd-theme="light"] .byd-brand-name{color:var(--bydi-ui-residual-0c325c)!important}
html[data-byd-theme="light"] .byd-brand-sub{color:var(--bydi-ui-residual-16426d)!important}
html[data-byd-theme="light"] .byd-theme-symbol{color:var(--bydi-ui-residual-355d7b)}
html[data-byd-theme="light"] .byd-theme-toggle{background:var(--bydi-ui-residual-0a91e2)}
html[data-byd-theme="light"] .byd-theme-knob{transform:translateX(0)}
html[data-byd-theme="light"] .chatbot{background:linear-gradient(145deg,var(--bydi-ui-residual-ffffff),var(--bydi-ui-residual-edf7fd))!important;border-color:var(--bydi-ui-residual-a7d4ed)!important;box-shadow:0 7px 25px var(--bydi-ui-residual-9dbbd03b)!important}
html[data-byd-theme="light"] .chat-head{background:transparent!important;border-color:var(--bydi-ui-residual-d4e5f1)!important}
html[data-byd-theme="light"] .chat-head h2{color:var(--bydi-ui-residual-0b335d)!important;text-shadow:none!important}
html[data-byd-theme="light"] .cyan-word{color:var(--bydi-ui-residual-00a9d8)!important}
html[data-byd-theme="light"] .chat-head p{color:var(--bydi-ui-residual-173d61)!important}
html[data-byd-theme="light"] .chat-tip{color:var(--bydi-ui-residual-416587)!important}
html[data-byd-theme="light"] .chat-form{box-shadow:0 0 14px var(--bydi-ui-residual-73bfe62b)!important}
html[data-byd-theme="light"] .chat-form input{background:var(--bydi-ui-browser-choice-light-bg)!important;color:var(--bydi-component-text-navy, var(--bydi-ui-group-text-light))!important;border-color:var(--bydi-ui-residual-a7d9f3)!important}
html[data-byd-theme="light"] .chat-form input::placeholder{color:var(--bydi-ui-residual-526f8a)}
html[data-byd-theme="light"] .bubble{background:var(--bydi-component-surface-ice, var(--bydi-component-surface-ice))!important;color:var(--bydi-ui-residual-193c5b)!important;border-color:var(--bydi-ui-residual-c6dcea)!important}
html[data-byd-theme="light"] .bubble strong{color:var(--bydi-ui-residual-143c61)!important}
html[data-byd-theme="light"] .bubble a{color:var(--bydi-ui-residual-006fae)!important}
html[data-byd-theme="light"] .msg.user .bubble{background:var(--bydi-ui-residual-d8ecfb)!important;border-color:var(--bydi-ui-residual-9bc5e4)!important}
html[data-byd-theme="light"] .result{background:var(--bydi-ui-browser-choice-light-bg)!important;border-color:var(--bydi-ui-residual-c6dcea)!important}
html[data-byd-theme="light"] .result-title{color:var(--bydi-ui-residual-143e65)!important}
html[data-byd-theme="light"] .answer-number{color:var(--bydi-ui-residual-166a9a)!important}
html[data-byd-theme="light"] .byd-discover{background:var(--bydi-component-surface-ice, var(--bydi-component-surface-ice))!important;color:var(--bydi-ui-residual-153a5a)!important;border-color:var(--bydi-ui-residual-b0d6ed)!important}
html[data-byd-theme="light"] .byd-discover>summary{color:var(--bydi-ui-residual-12395e)!important}
html[data-byd-theme="light"] .byd-discover-intro{color:var(--bydi-ui-residual-45667e)!important}
html[data-byd-theme="light"] .byd-discover-group{background:var(--bydi-ui-browser-choice-light-bg)!important;border-color:var(--bydi-ui-residual-bfd9e9)!important}
html[data-byd-theme="light"] .byd-discover-group>summary{color:var(--bydi-ui-residual-173d5b)!important}
html[data-byd-theme="light"] .byd-discover-questions button{background:var(--bydi-ui-residual-e7f4fc)!important;color:var(--bydi-ui-residual-173c5b)!important;border-color:var(--bydi-ui-residual-b0d2e6)!important}
html[data-byd-theme="light"] .byd-back-questions,html[data-byd-theme="light"] .more-results{background:var(--bydi-component-surface-sky, var(--bydi-component-surface-sky))!important;color:var(--bydi-component-accent-ocean, var(--bydi-component-accent-ocean))!important;border-color:var(--bydi-component-border-sky, var(--bydi-component-border-sky))!important}
html[data-byd-theme="light"] .disclaimer{color:var(--bydi-ui-disclaimer-light)!important}
html[data-byd-theme="light"] .v9-cards.byd-three-cards .tile-model{background:linear-gradient(155deg,var(--bydi-ui-feature-model-start),var(--bydi-ui-feature-model-end))!important;border-color:var(--bydi-ui-feature-model-border)!important}
html[data-byd-theme="light"] .v9-cards.byd-three-cards .tile-guide{background:linear-gradient(155deg,var(--bydi-ui-feature-guide-start),var(--bydi-ui-feature-guide-end))!important;border-color:var(--bydi-ui-feature-guide-border)!important}
html[data-byd-theme="light"] .v9-cards.byd-three-cards .tile-diagnosi{background:linear-gradient(155deg,var(--bydi-ui-feature-diagnosis-start),var(--bydi-ui-feature-diagnosis-end))!important;border-color:var(--bydi-ui-feature-diagnosis-border)!important}
html[data-byd-theme="light"] .v9-cards.byd-three-cards .v9-tile{box-shadow:0 6px 18px var(--bydi-ui-feature-shadow)!important}
html[data-byd-theme="light"] .v9-cards.byd-three-cards .tile-heading h3{color:var(--bydi-ui-feature-heading)!important}
html[data-byd-theme="light"] .v9-cards.byd-three-cards .tile-heading p{color:var(--bydi-ui-feature-description)!important}
html[data-byd-theme="light"] .v9-cards.byd-three-cards .tile-art{text-shadow:none!important}
html[data-byd-theme="light"] .v9-cards.byd-three-cards .v9-tile a{background:var(--bydi-ui-feature-link-bg)!important;color:var(--bydi-ui-feature-link-text)!important;border-color:var(--bydi-ui-feature-link-border)!important}
html[data-byd-theme="light"] .panel,html[data-byd-theme="light"] .model-v6,html[data-byd-theme="light"] .v10panel{background:var(--bydi-ui-browser-choice-light-bg)!important;color:var(--bydi-component-text-navy, var(--bydi-ui-group-text-light))!important;border-color:var(--bydi-ui-residual-c0d9e9)!important}
html[data-byd-theme="light"] .panel .title,html[data-byd-theme="light"] .model-top h2,html[data-byd-theme="light"] .docs h3{color:var(--bydi-ui-residual-17466b)!important}
html[data-byd-theme="light"] .byd-fold>summary{background:linear-gradient(130deg,var(--bydi-ui-residual-e7f4fd),var(--bydi-ui-residual-d7eaf8))!important;color:var(--bydi-ui-group-heading-ink)!important;border-color:var(--bydi-ui-residual-a9cfe4)!important}
html[data-byd-theme="light"] .byd-fold-action{color:var(--bydi-ui-residual-276a95)!important}
html[data-byd-theme="light"] .faq,html[data-byd-theme="light"] .model-details details,html[data-byd-theme="light"] .model-summary,html[data-byd-theme="light"] .manual,html[data-byd-theme="light"] .note{background:var(--bydi-ui-residual-f0f7fc)!important;color:var(--bydi-ui-residual-214761)!important;border-color:var(--bydi-ui-residual-c4ddec)!important}
html[data-byd-theme="light"] .faq p,html[data-byd-theme="light"] .model-top p,html[data-byd-theme="light"] .model-details ul,html[data-byd-theme="light"] .manual p{color:var(--bydi-ui-residual-41647e)!important}
html[data-byd-theme="light"] .model-details summary{color:var(--bydi-ui-residual-17466b)!important}
html[data-byd-theme="light"] .search,html[data-byd-theme="light"] .model-controls select{background:var(--bydi-ui-browser-choice-light-bg)!important;color:var(--bydi-component-text-navy, var(--bydi-ui-group-text-light))!important;border-color:var(--bydi-ui-residual-a8cfe4)!important}
html[data-byd-theme="light"] .resource{background:var(--bydi-ui-residual-f0f7fc)!important;color:var(--bydi-ui-residual-214b70)!important;border-color:var(--bydi-ui-residual-c4ddec)!important}
html[data-byd-theme="light"] .resource b{color:var(--bydi-ui-residual-127caf)!important}
html[data-byd-theme="light"] .model-controls label{color:var(--bydi-ui-residual-254f6f)!important}
html[data-byd-theme="light"] .byd-pwa-settings{background:var(--bydi-ui-residual-d7edfa)!important;color:var(--bydi-ui-residual-155078)!important;border-color:var(--bydi-ui-residual-8cc5e5)!important}
/* Dialoghi di installazione e sicurezza restano scuri per garantire contrasto e visibilità. */

