/* Interactive controls across the portal, including the standalone quote editor. */
@media(hover:hover) and (pointer:fine){
 :is(#app-view.app-shell,#editor-view) :is(button,a.secondary,a.quiet,summary):not(:disabled):not([aria-disabled=true]):not(.primary):not(.danger):not(.danger-button):not([data-archive-open]):hover{
  border-color:var(--crm-hover-border,#9bdc55)!important;
  box-shadow:inset 0 0 0 1px var(--crm-hover-border,#9bdc55),0 0 0 4px rgba(168,232,47,.12)!important;
  transform:none!important;
 }
 :is(#app-view.app-shell,#editor-view) :is(button,a.secondary,a.quiet,summary):not(:disabled):not([aria-disabled=true]):not(.primary):not(.danger):not(.danger-button):not([data-archive-open]):not(.active):not(.is-selected):not([aria-pressed=true]):not([aria-selected=true]):hover{
  background:var(--crm-surface,#fff)!important;color:var(--selection-text,#173f31);
 }
 :is(#app-view.app-shell,#editor-view) .primary:not(:disabled):hover{color:var(--gt-lime,#c9ed58)!important}
}
:is(#app-view.app-shell,#editor-view) :is(button,a.secondary,a.quiet,summary):not(:disabled):focus-visible{
 outline:2px solid var(--crm-hover-border,#9bdc55)!important;outline-offset:3px;
 box-shadow:0 0 0 4px rgba(168,232,47,.12)!important;
}
#editor-view :is(button,a,[role=tab],[role=option]):is(.active,.is-selected,[aria-selected=true],[aria-pressed=true]):not(.primary):not(.danger){
 background:var(--selection-surface,#e9f5d8);color:var(--selection-text,#173f31);border-color:var(--selection-border,#cfe3b2);
 box-shadow:inset 3px 0 0 var(--selection-accent,#a0cc43);font-weight:600;
}
#editor-view :is(.commercial-channel-option,.catalog-channel-options label):has(input:checked){
 background:var(--selection-surface,#e9f5d8);color:var(--selection-text,#173f31);border-color:var(--selection-border,#cfe3b2);
 box-shadow:inset 3px 0 0 var(--selection-accent,#a0cc43);
}
/* Restore the existing welcome copy and image without an empty reserved column. */
#app-view.app-shell #commercial-home .home-hero-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:center;min-height:0;height:auto;margin:0;padding:0;gap:24px}
#app-view.app-shell #commercial-home .home-copy{min-height:0;height:auto;margin:0;padding:0}
#app-view.app-shell #commercial-home .home-copy h1{display:block;font-size:clamp(1.9rem,3.4vw,3.25rem);line-height:1.1;margin:14px 0}
#app-view.app-shell #commercial-home .home-copy .title-rule{display:block;margin:18px 0 0}
#app-view.app-shell #commercial-home .home-hero{display:block;min-height:220px;height:clamp(220px,23vw,300px);border-radius:18px;background-position:center;background-size:cover}
@media(max-width:760px){
 #app-view.app-shell #commercial-home .home-hero-grid{grid-template-columns:minmax(0,1fr);gap:18px}
 #app-view.app-shell #commercial-home .home-copy h1{font-size:2rem}
 #app-view.app-shell #commercial-home .home-hero{min-height:180px;height:180px}
}
#editor-view[data-sector]{--sector-accent:var(--crm-primary,#285c43);--sector-soft:var(--selection-surface,#e9f5d8)}
#editor-view.quote-editor-page[data-sector] .quote-sector-tabs button:is(.active,[aria-pressed=true]){
 background:var(--selection-surface,#e9f5d8)!important;color:var(--selection-text,#173f31)!important;border-color:var(--selection-border,#cfe3b2)!important;
 box-shadow:inset 3px 0 0 var(--selection-accent,#a0cc43)!important;
}
@media(hover:hover) and (pointer:fine){
 :is(#app-view.app-shell,#editor-view) :is(select,input:not([type=checkbox]):not([type=radio]),textarea):not(:disabled):hover{border-color:var(--crm-hover-border,#9bdc55);box-shadow:0 0 0 3px rgba(168,232,47,.12)}
}

/* Preventivatore GreenTech: salvia caldo senza fascia scura sui pannelli. */
#editor-view.quote-editor-page .quote-editor-main,
#editor-view.quote-editor-page .quote-live-preview{
 border:1px solid #b8cdb7;
 border-top:1px solid #b8cdb7;
 box-shadow:0 10px 28px rgba(23,75,58,.055);
 background:#fff;
}
/* La scheda intera seleziona l'offerta: nessun ovale visibile. */
#editor-view.quote-editor-page .catalog-channel-options label{
 position:relative;
 border-color:#d8e3d6;
}
#editor-view.quote-editor-page .catalog-channel-options input[type="radio"]{
 position:absolute;
 width:1px;
 height:1px;
 padding:0;
 margin:0;
 overflow:hidden;
 clip-path:inset(50%);
 white-space:nowrap;
 border:0;
 opacity:0;
}
#editor-view.quote-editor-page .catalog-channel-options label:has(input:focus-visible){
 outline:2px solid #174b3a;
 outline-offset:3px;
}
#editor-view.quote-editor-page .catalog-channel-options label:has(input:checked){
 border-color:#a8e82f;
 background:#f4fadf;
 box-shadow:none;
}
