/* Struttura comune; palette e pulsanti restano quelli della skin attiva. */
#notechat_content.gb-note { width:440px !important; max-width:calc(100vw - 36px); overflow:visible; }
#notechat_content.gb-note > #notechat { box-sizing:border-box; width:100% !important; height:auto !important; padding:12px; overflow:hidden; }
#notechat_content.gb-note-esiti { width:650px !important; }
#notechat .gb-note-testata { display:flex; align-items:center; justify-content:space-between; margin-bottom:9px; }
#notechat #handle { flex:1; cursor:move; padding:4px 0; }
#notechat .gb-note-testata > a { font-size:24px; line-height:24px; padding:0 4px; color:inherit; text-decoration:none; }
#notechat .gb-note-tabs { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding-bottom:8px; border-bottom:1px solid currentColor; }
#notechat .gb-note-tabs > a { color:inherit; font-weight:bold; }
#notechat #gb_note_impostazioni { padding:10px 0; font-size:12px; line-height:1.5; }
#notechat #gb_note_invio { width:auto; height:auto; margin:0 5px 0 0; vertical-align:middle; }
#notechat .gb-note-salvataggio { padding:8px 0; font-size:11px; line-height:1.4; }
#notechat .gb-note-salvataggio > a { margin-left:5px; color:inherit; }
#notechat #gb_note_conflitto { padding:8px; margin-bottom:8px; border:1px solid currentColor; font-size:12px; }
#notechat #gb_note_conflitto a { color:inherit; }
#notechat .gb-note-corpo { max-height:65vh; overflow:auto; padding-right:3px; }
#notechat #messaggiochat2 { box-sizing:border-box; width:100%; height:310px; min-height:180px; max-height:60vh; resize:vertical; padding:10px; line-height:1.5; text-align:left; }
#notechat .gb-note-azioni { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding-top:8px; font-size:11px; }
#notechat .gb-note-azioni > a { color:inherit; }
#notechat #inviamessaggiochat2 { position:static; display:inline-block; }
#notechat #gb_note_esito_invio { padding-top:6px; font-size:12px; }
#notechat #tie_testo { box-sizing:border-box; width:100%; min-height:220px; padding:10px; line-height:1.5; }
#notechat #tie_radice select { max-width:100%; }
#notechat #tie_radice p { margin:8px 0; font-size:12px; line-height:1.4; }
#notechat #tie_riepilogo { font-size:11px; line-height:1.4; overflow-wrap:break-word; }
#notechat #tie_anteprima { padding:10px 0; overflow-wrap:break-word; }
#notechat #tie_invia:disabled { opacity:.45; cursor:default; }

/* Cornici intere: una sola immagine, adattata al pannello. I pattern delle altre skin restano invariati. */
#notechat_content[data-gb-note-skin="20years"] #notechat, #notechat_content[data-gb-note-skin="15years"] #notechat, #notechat_content[data-gb-note-skin="pirates"] #notechat { background-size:100% 100%; background-position:center; background-repeat:no-repeat; }
#notechat .gb-note-mobile-expand { display:none; }
/* Lo stesso criterio mobile usato da index, anche con viewport desktop da 980 px. */
#notechat_content[data-gb-note-mobile="1"].gb-note, #notechat_content[data-gb-note-mobile="1"].gb-note-esiti { position:fixed !important; top:auto !important; bottom:var(--gb-note-keyboard-bottom, 0px) !important; left:0 !important; right:0 !important; width:100% !important; max-width:100% !important; transform:none !important; overflow:hidden; z-index:999999; }
#notechat_content[data-gb-note-mobile="1"].gb-note > #notechat { display:flex; flex-direction:column; height:75vh !important; height:calc(var(--gb-note-viewport, 100dvh) * .75) !important; max-height:100vh; max-height:100dvh; padding:10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-radius:16px 16px 0 0; }
#notechat_content[data-gb-note-mobile="1"].gb-note > #notechat[style*="display: none"], #notechat_content[data-gb-note-mobile="1"].gb-note > #notechat[style*="display:none"] { display:none; }
#notechat_content[data-gb-note-mobile="1"].gb-note-fullscreen > #notechat { height:100vh !important; height:var(--gb-note-viewport, 100dvh) !important; border-radius:0; }
#notechat_content[data-gb-note-mobile="1"] #notechat .gb-note-testata > .gb-note-mobile-expand { display:inline-block; font-size:13px; margin-left:auto; margin-right:12px; }
#notechat_content[data-gb-note-mobile="1"] #notechat #handle { cursor:default; pointer-events:none; }
#notechat_content[data-gb-note-mobile="1"] #notechat .gb-note-testata, #notechat_content[data-gb-note-mobile="1"] #notechat .gb-note-tabs, #notechat_content[data-gb-note-mobile="1"] #notechat .gb-note-salvataggio { flex-shrink:0; }
#notechat_content[data-gb-note-mobile="1"] #notechat .gb-note-tabs { gap:14px; }
#notechat_content[data-gb-note-mobile="1"] #notechat .gb-note-corpo { flex:1; min-height:0; max-height:none; overflow:auto; overscroll-behavior:contain; }
#notechat_content[data-gb-note-mobile="1"] #notechat #gb_note_azione { height:100%; }
#notechat_content[data-gb-note-mobile="1"] #notechat #formchat2 { display:flex; flex-direction:column; height:100%; min-height:0; }
#notechat_content[data-gb-note-mobile="1"] #notechat #messaggiochat2 { flex:1; height:auto; min-height:80px; max-height:none; resize:none; }
#notechat_content[data-gb-note-mobile="1"] #notechat #messaggiochat2, #notechat_content[data-gb-note-mobile="1"] #notechat #tie_testo, #notechat_content[data-gb-note-mobile="1"] #notechat select { font-size:16px; }
#notechat_content[data-gb-note-mobile="1"] #notechat .gb-note-azioni { flex-shrink:0; padding-bottom:4px; }
#notechat_content[data-gb-note-mobile="1"] #notechat #tie_testo { min-height:180px; }
#notechat_content[data-gb-note-mobile="1"] #notechat { font-size:calc(14px * var(--gb-note-scale, 1)); line-height:1.35; }
#notechat_content[data-gb-note-mobile="1"] #notechat .gb-note-testata > a { font-size:calc(24px * var(--gb-note-scale, 1)); line-height:1.2; }
#notechat_content[data-gb-note-mobile="1"] #notechat .gb-note-testata > .gb-note-mobile-expand { font-size:calc(13px * var(--gb-note-scale, 1)); }
#notechat_content[data-gb-note-mobile="1"] #notechat #messaggiochat2, #notechat_content[data-gb-note-mobile="1"] #notechat #tie_testo, #notechat_content[data-gb-note-mobile="1"] #notechat select { font-size:calc(16px * var(--gb-note-scale, 1)); }
#notechat_content[data-gb-note-mobile="1"] #notechat .gb-note-salvataggio, #notechat_content[data-gb-note-mobile="1"] #notechat .gb-note-azioni, #notechat_content[data-gb-note-mobile="1"] #notechat #gb_note_impostazioni, #notechat_content[data-gb-note-mobile="1"] #notechat #tie_radice p, #notechat_content[data-gb-note-mobile="1"] #notechat #tie_riepilogo { font-size:calc(12px * var(--gb-note-scale, 1)); }
#notechat_content[data-gb-note-mobile="1"] #notechat .gb-note-azioni .bt_text { zoom:var(--gb-note-scale, 1); }
