.gfv-cal{--gfc-green:#126c54;--gfc-bg:#f1f4f5;--gfc-ink:#26343c;--gfc-border:#d5dde0;font:14px/1.45 Arial,sans-serif;color:var(--gfc-ink);background:var(--gfc-bg);border:1px solid var(--gfc-border);border-radius:10px;width:100%;max-width:none;min-width:0;box-sizing:border-box;margin:16px auto;isolation:isolate}.gfv-cal *{box-sizing:border-box}.gfv-cal [hidden]{display:none!important}.gfv-cal h2{font:500 23px/1.2 Arial,sans-serif;margin:0;color:var(--gfc-ink)}.gfv-cal p{margin:0}.gfv-cal .gfc-heading{padding:24px;background:#fff;border-radius:10px 10px 0 0;display:flex;justify-content:space-between;gap:15px;align-items:center;border-bottom:1px solid var(--gfc-border)}.gfv-cal .gfc-heading p{margin-top:7px;color:#65747d;font-size:13px}.gfv-cal .gfc-brand{font-size:24px;letter-spacing:2px;color:var(--gfc-green)}.gfv-cal .gfc-layout{display:grid;grid-template-columns:clamp(280px,21vw,370px) minmax(0,1fr)}.gfv-cal .gfc-form{margin:0;padding:12px;background:#fff;border-right:1px solid var(--gfc-border)}.gfv-cal details{border-bottom:1px solid var(--gfc-border);padding:3px 0}.gfv-cal summary{padding:12px 8px;font-weight:600;cursor:pointer;list-style-position:inside}.gfv-cal .gfc-fields{padding:6px 8px 16px;display:grid;gap:13px}.gfv-cal label{font:400 13px/1.4 Arial,sans-serif;display:grid;gap:5px;min-width:0;color:var(--gfc-ink)}.gfv-cal input:not([type=checkbox]),.gfv-cal select,.gfv-cal textarea{font:400 14px/1.35 Arial,sans-serif;background:#fff;color:var(--gfc-ink);border:1px solid #bfcbd1;border-radius:5px;padding:8px;width:100%;min-width:0;max-width:100%;height:auto;box-shadow:none;margin:0}.gfv-cal input[type=color]{height:36px;padding:4px}.gfv-cal input[type=file]{font-size:12px}.gfv-cal textarea{resize:vertical}.gfv-cal .gfc-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.gfv-cal .gfc-check{display:flex;align-items:flex-start;gap:9px}.gfv-cal input[type=checkbox]{appearance:auto;-webkit-appearance:auto;position:static!important;width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;flex:0 0 16px;transform:none!important;margin:1px 0 0!important;padding:0!important;box-shadow:none;border-radius:3px}.gfv-cal input[type=checkbox]::before,.gfv-cal input[type=checkbox]::after{display:none!important}.gfv-cal .gfc-help{font-size:12px;color:#66747c}.gfv-cal button,.gfv-cal .gfc-import{display:inline-flex;align-items:center;justify-content:center;gap:6px;font:400 13px/1.35 Arial,sans-serif;background:#fff;color:#34474f;border:1px solid #bdcbd1;border-radius:5px;padding:9px 11px;min-height:36px;text-transform:none;letter-spacing:normal;cursor:pointer;box-shadow:none;text-decoration:none}.gfv-cal button:hover{background:#e9f0ed}.gfv-cal button[aria-pressed=true],.gfv-cal .gfc-primary{background:var(--gfc-green);color:#fff;border-color:var(--gfc-green)}.gfv-cal button:focus-visible,.gfv-cal input:focus-visible,.gfv-cal select:focus-visible,.gfv-cal textarea:focus-visible,.gfv-cal summary:focus-visible{outline:2px solid #c46426;outline-offset:2px}.gfv-cal button:disabled{cursor:wait;opacity:.65}.gfv-cal .gfc-project{padding:16px 8px;display:flex;gap:8px;flex-wrap:wrap}.gfv-cal .gfc-import{position:relative;overflow:hidden}.gfv-cal .gfc-import input{position:absolute;inset:0;opacity:0;cursor:pointer}.gfv-cal .gfc-preview{padding:18px;min-width:0}.gfv-cal .gfc-sticky{position:sticky;top:40px}.gfv-cal .gfc-views{display:flex;flex-wrap:wrap;gap:7px}.gfv-cal .gfc-preview-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 0}.gfv-cal .gfc-preview-tools label{display:flex;align-items:center;margin-left:auto}.gfv-cal .gfc-preview-tools select{width:95px}.gfv-cal .gfc-stage{background:#dce3e5;padding:20px;display:flex;align-items:flex-start;overflow:auto;max-height:75vh;min-height:220px;border-radius:5px}.gfv-cal canvas{display:block;flex:none;margin:0 auto;max-width:none;box-shadow:0 5px 18px #0002;background:#fff}.gfv-cal .gfc-dimensions{text-align:center;color:#607078;font-size:12px;margin:12px 0}.gfv-cal .gfc-export{background:#fff;border:1px solid var(--gfc-border);border-radius:6px;padding:14px;display:flex;align-items:end;gap:12px;flex-wrap:wrap}.gfv-cal .gfc-export label{flex:1;min-width:180px}.gfv-cal .gfc-status{font-size:12px;margin-top:8px;min-height:18px}.gfv-cal .gfc-error,.gfv-cal .gfc-warning{padding:9px 12px;border-radius:5px;margin-bottom:8px;font-size:12px}.gfv-cal .gfc-error{background:#ffeded;color:#8c2020}.gfv-cal .gfc-warning{background:#fff3dc;color:#694c13}.gfv-cal footer{padding:13px 24px;background:#fff;border-top:1px solid var(--gfc-border);border-radius:0 0 10px 10px;color:#64737c;font-size:12px}.gfv-cal .gfc-sticky:fullscreen{background:var(--gfc-bg);padding:20px;overflow:auto}.gfv-cal .gfc-sticky:fullscreen .gfc-stage{max-height:75vh}@media(max-width:850px){.gfv-cal .gfc-layout{grid-template-columns:280px minmax(0,1fr)}.gfv-cal .gfc-preview{padding:12px}}@media(max-width:680px){.gfv-cal .gfc-layout{grid-template-columns:1fr}.gfv-cal .gfc-form{border-right:0;border-bottom:1px solid var(--gfc-border)}.gfv-cal .gfc-sticky{position:static}.gfv-cal .gfc-heading{padding:18px}.gfv-cal .gfc-stage{padding:10px}.gfv-cal input:not([type=checkbox]),.gfv-cal select,.gfv-cal textarea{font-size:16px}.gfv-cal button{min-height:42px}.gfv-cal .gfc-preview-tools label{margin-left:0}}@media print{.gfv-cal .gfc-form,.gfv-cal .gfc-export,.gfv-cal .gfc-views,.gfv-cal .gfc-preview-tools{display:none}.gfv-cal .gfc-layout{display:block}}
.gfv-cal .gfc-editbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:10px 0}.gfv-cal .gfc-editbar>span{font-size:12px;flex:1;min-width:140px;color:#61717b}.gfv-cal .gfc-edit-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}.gfv-cal .gfc-edit-layout.gfc-editing{grid-template-columns:minmax(180px,1fr) 240px}.gfv-cal .gfc-artwork{min-width:0}.gfv-cal .gfc-inspector{background:#fff;border:1px solid #bdcbc5;border-radius:6px;padding:12px;display:grid;gap:12px;max-height:70vh;overflow:auto;min-width:0}.gfv-cal .gfc-inspector-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.gfv-cal .gfc-inspector-head strong{font-size:14px;color:#126c54}.gfv-cal .gfc-inspector-fields{display:grid;gap:12px}.gfv-cal .gfc-inspector summary{font-size:13px;padding:8px 0}.gfv-cal .gfc-inspector .gfc-fields{padding:6px 0 12px}.gfv-cal .gfc-inspector input:not([type=checkbox]),.gfv-cal .gfc-inspector select{padding:6px;font-size:13px}.gfv-cal .gfc-align{display:flex;flex-wrap:wrap;gap:4px}.gfv-cal .gfc-align button{padding:7px;flex:1;font-size:12px}.gfv-cal canvas{cursor:crosshair}.gfv-cal .gfc-inspector input[type=file]{font-size:11px!important}.gfv-cal .gfc-editing .gfc-stage{min-height:180px}@media(min-width:1400px){.gfv-cal .gfc-edit-layout.gfc-editing{grid-template-columns:minmax(250px,1fr) clamp(250px,18vw,320px)}}@media(max-width:1100px){.gfv-cal .gfc-edit-layout.gfc-editing{grid-template-columns:minmax(0,1fr)}.gfv-cal .gfc-inspector{max-height:none;overflow:visible}.gfv-cal .gfc-inspector-fields{grid-template-columns:1fr 1fr;align-items:start}.gfv-cal .gfc-inspector-fields>details,.gfv-cal .gfc-inspector-fields>.gfc-help{grid-column:1/-1}}@media(max-width:440px){.gfv-cal .gfc-inspector-fields{grid-template-columns:1fr}.gfv-cal .gfc-inspector input:not([type=checkbox]),.gfv-cal .gfc-inspector select{font-size:16px}}@media print{.gfv-cal .gfc-inspector,.gfv-cal .gfc-editbar{display:none!important}}
.gfv-cal:fullscreen{margin:0;border:0;border-radius:0;width:100vw;max-width:none;height:100dvh;background:var(--gfc-bg);display:flex;flex-direction:column;overflow:hidden}.gfv-cal:fullscreen>.gfc-heading{flex:none;padding:12px 20px;border-radius:0}.gfv-cal:fullscreen>.gfc-layout{flex:1;min-height:0;overflow:hidden;grid-template-columns:300px minmax(0,1fr)}.gfv-cal:fullscreen .gfc-form{overflow:auto;min-height:0}.gfv-cal:fullscreen .gfc-preview{overflow:auto;min-height:0}.gfv-cal:fullscreen .gfc-sticky{position:static}.gfv-cal:fullscreen .gfc-stage{max-height:60vh}.gfv-cal:fullscreen .gfc-inspector{max-height:66vh}.gfv-cal:fullscreen>footer{flex:none;padding:7px 20px;border-radius:0}.gfv-cal [data-role=scopeInfo]{padding:8px;background:#edf5f1;border-radius:4px;color:#285b46}@media(max-width:680px){.gfv-cal:fullscreen{overflow:auto;display:block}.gfv-cal:fullscreen>.gfc-layout{display:grid;grid-template-columns:1fr;overflow:visible}.gfv-cal:fullscreen .gfc-form,.gfv-cal:fullscreen .gfc-preview{overflow:visible}.gfv-cal:fullscreen .gfc-inspector{max-height:none}}
.gfv-cal .gfc-corners{border:1px solid var(--gfc-border);border-radius:5px;margin:0;padding:10px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.gfv-cal .gfc-corners legend{font-size:12px;padding:0 4px}.gfv-cal .gfc-corners label{font-size:12px}.gfv-cal .gfc-stage{overscroll-behavior:contain}
.gfv-cal .gfc-local,.gfv-cal .gfc-recovery{padding:10px 20px;display:flex;align-items:center;flex-wrap:wrap;gap:10px;border-bottom:1px solid var(--gfc-border);background:#fff}.gfv-cal .gfc-recovery{background:#e7f2ec}.gfv-cal .gfc-local>span{font-size:12px;color:#52666e;flex:1;min-width:160px}.gfv-cal .gfc-local>label{font-size:12px}.gfv-cal .gfc-preflight{background:#fff;border:1px solid var(--gfc-border);padding:8px 12px;border-radius:5px;margin-top:10px}.gfv-cal .gfc-preflight summary{padding:8px 0}.gfv-cal .gfc-issue{display:block;width:100%;text-align:left;justify-content:flex-start;white-space:normal;margin:6px 0;font-size:12px}.gfv-cal .gfc-issue-error{border-left:4px solid #a12b2b}.gfv-cal .gfc-issue-warning{border-left:4px solid #b37d1a}.gfv-cal input:disabled,.gfv-cal select:disabled{opacity:.65;background:#eaf0ed;cursor:not-allowed}.gfv-cal:fullscreen>.gfc-local,.gfv-cal:fullscreen>.gfc-recovery{flex:none;padding:7px 20px}@media print{.gfv-cal .gfc-local,.gfv-cal .gfc-recovery,.gfv-cal .gfc-preflight{display:none!important}}
.gfv-cal .gfc-status,.gfv-cal .gfc-messages,.gfv-cal .gfc-issue,.gfv-cal .gfc-local>span{overflow-wrap:anywhere}
/* Padrão GFV: interface neutra; as cores da arte são independentes. */
.gfv-cal{--gfc-green:#333;--gfc-bg:#f0f0f0;--gfc-ink:#242424;--gfc-border:#ccc;--gfc-panel:#fff;--gfc-field:#fff;--gfc-muted:#626262;--gfc-hover:#e5e5e5;--gfc-stage:#d8d8d8;color-scheme:light}
.gfv-cal[data-theme=dark]{--gfc-green:#ddd;--gfc-bg:#202020;--gfc-ink:#eee;--gfc-border:#555;--gfc-panel:#292929;--gfc-field:#363636;--gfc-muted:#c0c0c0;--gfc-hover:#484848;--gfc-stage:#151515;color-scheme:dark}
.gfv-cal .gfc-heading,.gfv-cal .gfc-form,.gfv-cal footer,.gfv-cal .gfc-inspector,.gfv-cal .gfc-export,.gfv-cal .gfc-preflight,.gfv-cal .gfc-local,.gfv-cal .gfc-recovery{background:var(--gfc-panel);border-color:var(--gfc-border)}
.gfv-cal input:not([type=checkbox]),.gfv-cal select,.gfv-cal textarea,.gfv-cal button,.gfv-cal .gfc-import{background:var(--gfc-field);color:var(--gfc-ink);border-color:var(--gfc-border)}
.gfv-cal button:hover{background:var(--gfc-hover)}
.gfv-cal button[aria-pressed=true],.gfv-cal .gfc-primary{background:#333;color:#fff;border-color:#333}
.gfv-cal[data-theme=dark] button[aria-pressed=true],.gfv-cal[data-theme=dark] .gfc-primary{background:#ddd;color:#171717;border-color:#ddd}
.gfv-cal .gfc-help,.gfv-cal .gfc-heading p,.gfv-cal footer,.gfv-cal .gfc-dimensions,.gfv-cal .gfc-editbar>span,.gfv-cal .gfc-local>span{color:var(--gfc-muted)}
.gfv-cal .gfc-brand,.gfv-cal .gfc-inspector-head strong{color:var(--gfc-ink)}
.gfv-cal .gfc-stage{background:var(--gfc-stage)}
.gfv-cal [data-role=scopeInfo]{background:var(--gfc-hover);color:var(--gfc-ink)}
.gfv-cal input:disabled,.gfv-cal select:disabled{background:var(--gfc-hover)}
.gfv-cal .gfc-inspector{border-color:var(--gfc-border)}
.gfv-cal .gfc-editbar label{display:flex;align-items:center;gap:6px}.gfv-cal .gfc-editbar select{width:auto;max-width:180px}
.gfv-cal canvas:focus-visible{outline:2px solid #777;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.gfv-cal *{scroll-behavior:auto}}
.gfv-cal .gfc-error,.gfv-cal .gfc-warning{background:var(--gfc-hover);color:var(--gfc-ink);border-left:4px solid var(--gfc-ink)}
.gfv-cal .gfc-warning{border-left-style:dashed}.gfv-cal .gfc-issue-error,.gfv-cal .gfc-issue-warning{border-left-color:var(--gfc-ink)}.gfv-cal .gfc-issue-warning{border-left-style:dashed}
.gfv-cal button:focus-visible,.gfv-cal input:focus-visible,.gfv-cal select:focus-visible,.gfv-cal textarea:focus-visible,.gfv-cal summary:focus-visible{outline-color:#888}
.gfv-cal [data-edit=target]{min-height:180px;max-height:260px;overflow:auto}.gfv-cal [data-edit=target] optgroup{font-weight:700}.gfv-cal [data-edit=target] option{font-weight:400;padding:4px}
.gfv-cal .gfc-scope-banner{border-left:4px solid var(--gfc-ink);font-weight:600}
.gfv-cal .gfc-overview{padding:12px;background:var(--gfc-panel);border:1px solid var(--gfc-border);margin:10px 0;border-radius:6px;max-height:70vh;overflow:auto}
.gfv-cal [data-role=thumbnails]{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-top:10px}
.gfv-cal .gfc-thumbnail{display:flex;flex-direction:column;gap:8px;padding:10px;min-width:0}.gfv-cal .gfc-thumbnail canvas{width:100%!important;height:auto!important;max-width:180px;box-shadow:0 2px 5px #0003;cursor:pointer}
@media print{.gfv-cal .gfc-overview,.gfv-cal [data-action=overview]{display:none!important}}
/* Área de trabalho: controles compactos e prévia usando a altura restante. */
.gfv-cal .gfc-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding-bottom:7px;flex:none}
.gfv-cal .gfc-toolbar .gfc-preview-tools,.gfv-cal .gfc-toolbar .gfc-editbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0}
.gfv-cal .gfc-toolbar .gfc-editbar>span{display:none}.gfv-cal .gfc-toolbar .gfc-preview-tools label{margin-left:0}.gfv-cal .gfc-toolbar .gfc-views{gap:4px}
.gfv-cal .gfc-toolbar button,.gfv-cal .gfc-toolbar select{font-size:12px;padding:6px 8px;min-height:30px}.gfv-cal .gfc-toolbar label{font-size:12px;display:flex;align-items:center;gap:5px}.gfv-cal .gfc-preview-tools select{width:auto;max-width:155px}
.gfv-cal .gfc-local-box{padding:0;flex:none;background:var(--gfc-panel)}.gfv-cal .gfc-local-box>summary{padding:5px 12px;font-size:12px}.gfv-cal .gfc-local{padding:7px 12px}.gfv-cal .gfc-recovery{padding:5px 12px;flex:none;font-size:12px}
.gfv-cal .gfc-notices{flex:none;padding:0;margin-bottom:5px;background:var(--gfc-hover);border-radius:4px}.gfv-cal .gfc-notices>summary{padding:5px 8px;font-size:12px}.gfv-cal .gfc-notices .gfc-messages{max-height:125px;overflow:auto}.gfv-cal .gfc-notices .gfc-warning,.gfv-cal .gfc-notices .gfc-error{margin:0;padding:6px 8px}
.gfv-cal .gfc-overview{position:absolute;inset:45px 8px 8px;z-index:5;max-height:none;box-shadow:0 4px 20px #0004}
@media(min-width:981px){
.gfv-cal{height:max(650px,calc(100dvh - 48px));display:flex;flex-direction:column;overflow:hidden}
.gfv-cal>.gfc-heading{padding:9px 14px;flex:none}.gfv-cal .gfc-heading h2{font-size:18px}.gfv-cal .gfc-heading p{display:none}.gfv-cal .gfc-brand{font-size:18px}
.gfv-cal>.gfc-layout,.gfv-cal:fullscreen>.gfc-layout{flex:1;min-height:0;overflow:hidden;grid-template-columns:clamp(240px,18vw,310px) minmax(0,1fr)}
.gfv-cal .gfc-form{overflow:auto;min-height:0;padding:6px}.gfv-cal .gfc-preview,.gfv-cal:fullscreen .gfc-preview{min-height:0;overflow:hidden;padding:8px;position:relative}
.gfv-cal .gfc-sticky,.gfv-cal:fullscreen .gfc-sticky{position:static;height:100%;min-height:0;display:flex;flex-direction:column}
.gfv-cal .gfc-edit-layout,.gfv-cal .gfc-edit-layout.gfc-editing{flex:1;min-height:0;grid-template-rows:minmax(0,1fr);align-items:stretch}
.gfv-cal .gfc-edit-layout.gfc-editing{grid-template-columns:minmax(0,1fr) clamp(240px,18vw,310px)}
.gfv-cal .gfc-artwork{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.gfv-cal .gfc-stage,.gfv-cal:fullscreen .gfc-stage{flex:1;min-height:0;max-height:none;height:100%;padding:12px;align-items:flex-start}
.gfv-cal .gfc-inspector,.gfv-cal:fullscreen .gfc-inspector{height:100%;max-height:none;overflow:auto;padding:10px}
.gfv-cal .gfc-inspector-fields{grid-template-columns:1fr}.gfv-cal .gfc-dimensions{margin:4px 0;font-size:11px}
.gfv-cal .gfc-export{padding:6px 8px;gap:8px;flex:none}.gfv-cal .gfc-export label{display:flex;align-items:center;gap:8px;min-width:180px}.gfv-cal .gfc-export select{padding:5px;max-width:350px}.gfv-cal .gfc-export button{padding:6px 8px;min-height:30px}
.gfv-cal .gfc-preflight{flex:none;max-height:150px;overflow:auto;margin-top:5px}.gfv-cal .gfc-status{flex:none;margin-top:4px;max-height:42px;overflow:auto}.gfv-cal>footer,.gfv-cal:fullscreen>footer{flex:none;padding:5px 14px}
.gfv-cal.gfc-left-collapsed>.gfc-layout,.gfv-cal.gfc-left-collapsed:fullscreen>.gfc-layout{grid-template-columns:minmax(0,1fr)}
}
.gfv-cal.gfc-left-collapsed .gfc-form{display:none}
@media(max-width:980px){.gfv-cal .gfc-stage{height:65dvh;max-height:65dvh}.gfv-cal .gfc-overview{position:fixed;inset:10vh 12px;max-height:80vh}.gfv-cal:fullscreen{overflow:auto}.gfv-cal:fullscreen>.gfc-layout{overflow:visible}.gfv-cal:fullscreen .gfc-preview{overflow:visible}}
@media print{.gfv-cal{height:auto;overflow:visible;display:block}.gfv-cal .gfc-toolbar,.gfv-cal .gfc-local-box,.gfv-cal .gfc-notices{display:none!important}}
.gfv-cal .gfc-dialog{color:var(--gfc-ink);background:var(--gfc-panel);border:1px solid var(--gfc-border);border-radius:8px;width:min(720px,94vw);max-height:85dvh;overflow:auto;padding:20px;box-shadow:0 12px 50px #0005}.gfv-cal .gfc-dialog::backdrop{background:#0007}.gfv-cal .gfc-dialog h3{margin:0 0 12px;color:var(--gfc-ink)}.gfv-cal .gfc-dialog p{margin:12px 0}.gfv-cal .gfc-dialog button{margin:4px}.gfv-cal .gfc-tutorial svg{display:block;width:100%;max-height:250px;margin:10px auto;background:var(--gfc-bg);border-radius:5px}.gfv-cal .gfc-tutorial svg text{fill:currentColor;stroke:none;font:13px Arial,sans-serif}
.gfv-cal .gfc-help-button{width:20px;height:20px;min-height:20px;padding:0;border-radius:50%;font-size:11px;align-self:start}.gfv-cal .gfc-progress{flex:none;padding:4px 8px;background:var(--gfc-panel);font-size:11px}.gfv-cal .gfc-progress label{display:flex;align-items:center;gap:8px}.gfv-cal progress{flex:1;width:100%;height:12px;accent-color:#666}.gfv-cal [data-ui=exportMonths]{width:105px!important}.gfv-cal .gfc-thumbnail:focus-visible{outline:3px solid #888}
.gfv-cal label:has(>.gfc-help-button){position:relative;padding-right:23px}.gfv-cal label>.gfc-help-button{position:absolute;right:0;top:0;margin:0}.gfv-cal .gfc-toolbar .gfc-check{font-size:11px}
.gfv-cal .gfc-stage-shell{position:relative;flex:1;min-width:0;min-height:0;overflow:hidden}.gfv-cal .gfc-stage-shell>.gfc-stage{height:100%;width:100%}.gfv-cal .gfc-stage-shell>[data-role=rulerX],.gfv-cal .gfc-stage-shell>[data-role=rulerY],.gfv-cal .gfc-ruler-corner{display:none;pointer-events:none;position:absolute;margin:0;box-shadow:none;z-index:2;background:var(--gfc-hover)}
.gfv-cal .gfc-show-rulers{padding:20px 0 0 20px}.gfv-cal .gfc-show-rulers>[data-role=rulerX]{display:block;left:20px;top:0;width:calc(100% - 20px);height:20px}.gfv-cal .gfc-show-rulers>[data-role=rulerY]{display:block;left:0;top:20px;width:20px;height:calc(100% - 20px)}.gfv-cal .gfc-show-rulers>.gfc-ruler-corner{display:block;left:0;top:0;width:20px;height:20px;font-size:9px;text-align:center;padding-top:3px}
.gfv-cal .gfc-artwork{position:relative}.gfv-cal .gfc-coordinates{font:10px Arial;color:var(--gfc-muted);text-align:right;display:block;min-height:12px}.gfv-cal.gfc-hand .gfc-stage,.gfv-cal.gfc-hand .gfc-stage canvas,.gfv-cal.gfc-space-pan .gfc-stage canvas,.gfv-cal.gfc-clean-preview .gfc-stage canvas{cursor:grab}.gfv-cal.gfc-panning .gfc-stage,.gfv-cal.gfc-panning .gfc-stage canvas{cursor:grabbing}
.gfv-cal .gfc-model-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}.gfv-cal .gfc-model-grid article{border:1px solid var(--gfc-border);border-radius:5px;padding:12px;display:flex;flex-direction:column;align-items:center}.gfv-cal .gfc-model-grid h4{margin:10px 0 4px;color:var(--gfc-ink)}.gfv-cal .gfc-model-grid p{font-size:12px;flex:1}.gfv-cal .gfc-model-grid canvas{max-width:100%;height:auto!important}.gfv-cal .gfc-catalog{width:min(940px,94vw)}.gfv-cal .gfc-sheet-preview{width:min(820px,94vw)}.gfv-cal .gfc-sheet-preview>canvas{width:100%;height:auto;max-width:720px;margin:8px auto}
.gfv-cal [data-role=batchClients] fieldset{border:1px solid var(--gfc-border);border-radius:5px;margin:0 0 12px;padding:10px;display:grid;gap:8px;min-width:0}.gfv-cal [data-role=batchClients] legend{padding:0 4px;font-size:12px}.gfv-cal [data-role=batchClients] .gfc-help{overflow-wrap:anywhere}
@media(max-width:980px){.gfv-cal .gfc-stage-shell{height:65dvh;flex:none}.gfv-cal .gfc-stage-shell>.gfc-stage{height:100%;max-height:none}.gfv-cal .gfc-edit-layout{min-width:0}}
@media print{.gfv-cal .gfc-coordinates,.gfv-cal .gfc-ruler-corner,.gfv-cal [data-role=rulerX],.gfv-cal [data-role=rulerY]{display:none!important}}
.gfv-cal.gfc-clean-preview .gfc-coordinates{visibility:hidden}
.gfv-cal .gfc-comparison{width:min(1000px,95vw)}.gfv-cal .gfc-compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.gfv-cal .gfc-compare-grid>section{min-width:0;background:var(--gfc-bg);border:1px solid var(--gfc-border);border-radius:5px;padding:12px}.gfv-cal .gfc-compare-grid h4{margin:0 0 8px;color:var(--gfc-ink)}.gfv-cal .gfc-compare-grid canvas{max-width:100%;height:auto!important;cursor:default}.gfv-cal .gfc-dialog>label{margin:10px 0}.gfv-cal .gfc-progress>[data-action=cancelGeneration]{font-size:12px;margin:4px 0}
@media(max-width:600px){.gfv-cal .gfc-compare-grid{grid-template-columns:1fr}}

.gfc-desk{width:min(1250px,96vw);max-width:96vw}.gfc-desk-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px}.gfc-desk [data-desk-controls]{max-height:65vh;overflow:auto}.gfc-desk label{display:block;margin:8px 0}.gfc-desk label input,.gfc-desk label select{display:block;width:100%}.gfc-desk-stage{overflow:auto;max-height:60vh;background:#ddd;padding:12px}.gfc-desk button{margin:3px}.gfc-desk small{display:block;text-align:right;margin-top:12px}@media(max-width:700px){.gfc-desk-layout{grid-template-columns:1fr}.gfc-desk [data-desk-controls]{max-height:30vh}.gfc-desk-stage{max-height:40vh}}

.gfv-cal .gfc-dialog.gfc-desk{width:min(1250px,96vw);max-width:96vw;box-sizing:border-box}
/* v1.12: barra compacta, ferramentas secundárias e mesa integrada */
.gfv-cal .gfc-mainbar{display:flex;align-items:center;gap:6px;padding:8px 12px;border-bottom:1px solid var(--gfc-border);position:relative;z-index:12;background:var(--gfc-panel);flex:none}.gfv-cal .gfc-mainbar>select{width:auto;max-width:180px}.gfv-cal .gfc-mainbar>[data-role=monthLabel]{font-size:12px;min-width:94px;text-align:center}.gfv-cal .gfc-toolbar-menu{position:relative;padding:0;border:0;flex:none}.gfv-cal .gfc-toolbar-menu>summary{padding:7px 12px;border:1px solid var(--gfc-border);border-radius:5px;font-size:12px;list-style:none}.gfv-cal .gfc-toolbar-menu.gfc-export-menu{margin-left:auto}.gfv-cal .gfc-menu-body{position:absolute;right:0;top:100%;width:min(440px,calc(100vw - 40px));max-height:65vh;overflow:auto;background:var(--gfc-panel);border:1px solid var(--gfc-border);border-radius:6px;padding:14px;box-shadow:0 8px 24px #0003;display:grid;gap:12px;z-index:30}.gfv-cal .gfc-toolbar-menu:not([open])>.gfc-menu-body{display:none}.gfv-cal .gfc-menu-body section{display:flex;flex-wrap:wrap;gap:7px;padding-bottom:10px;border-bottom:1px solid var(--gfc-border)}.gfv-cal .gfc-menu-body section>strong{width:100%;font-size:12px}.gfv-cal .gfc-menu-body label{display:flex;align-items:center;gap:6px}.gfv-cal .gfc-menu-body .gfc-export{border:0;padding:0}.gfv-cal .gfc-zoom-dock{display:flex;justify-content:center;align-items:center;gap:6px;padding:6px}.gfv-cal .gfc-zoom-dock label{display:flex;align-items:center;gap:6px}.gfv-cal .gfc-zoom-dock select{width:auto}.gfv-cal .gfc-heading{padding:12px 16px}.gfv-cal .gfc-heading h2{font-size:20px}.gfv-cal .gfc-heading p{display:none}
.gfv-cal.gfc-desk-mode>.gfc-layout{grid-template-columns:minmax(0,1fr)}.gfv-cal.gfc-desk-mode .gfc-layout>.gfc-form,.gfv-cal.gfc-desk-mode .gfc-layout>.gfc-preview{display:none}.gfv-cal .gfc-desk-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);gap:12px;min-height:0;height:100%;overflow:hidden;padding:10px}.gfv-cal .gfc-desk-workspace.gfc-desk-editing{grid-template-columns:250px minmax(220px,1fr) 260px}.gfv-cal .gfc-desk-options,.gfv-cal .gfc-desk-inspector{overflow:auto;min-height:0;background:var(--gfc-panel);border:1px solid var(--gfc-border);border-radius:6px;padding:12px}.gfv-cal .gfc-desk-options label,.gfv-cal .gfc-desk-inspector label{margin:10px 0}.gfv-cal .gfc-desk-options button,.gfv-cal .gfc-desk-inspector button{margin:4px 0}.gfv-cal .gfc-segment{display:flex;gap:5px}.gfv-cal .gfc-desk-artwork{min-width:0;min-height:0;display:flex;flex-direction:column;gap:7px}.gfv-cal .gfc-desk-navigation,.gfv-cal .gfc-desk-zoom{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.gfv-cal .gfc-desk-navigation select{width:auto;max-width:220px}.gfv-cal .gfc-desk-navigation label{display:flex;align-items:center}.gfv-cal .gfc-desk-stage{flex:1;min-height:220px;max-height:none;height:100%;padding:12px;overflow:auto;background:var(--gfc-stage);display:flex;align-items:flex-start}.gfv-cal .gfc-desk-stage canvas{cursor:crosshair;flex:none}.gfv-cal .gfc-desk-zoom{justify-content:center}.gfv-cal .gfc-desk-zoom select{width:auto}.gfv-cal [data-desk-info],.gfv-cal [data-desk-status]{font-size:12px}.gfv-cal .gfc-photo-grid,.gfv-cal .gfc-face-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.gfv-cal .gfc-photo-grid article,.gfv-cal .gfc-face-grid article{padding:10px;border:1px solid var(--gfc-border);border-radius:5px;display:grid;gap:7px;min-width:0}.gfv-cal .gfc-photo-grid img{width:100%;height:100px;object-fit:contain;background:var(--gfc-bg)}.gfv-cal .gfc-dialog.gfc-photo-manager,.gfv-cal .gfc-dialog.gfc-face-map{width:min(1100px,94vw)}.gfv-cal .gfc-face-grid canvas{max-width:100%;height:auto!important}.gfv-cal .gfc-export-summary{margin:12px 0;padding:12px;border:1px solid var(--gfc-border)}.gfv-cal .gfc-locked{opacity:.65;cursor:not-allowed!important}
@media(max-width:1000px){.gfv-cal .gfc-desk-workspace.gfc-desk-editing{grid-template-columns:220px minmax(0,1fr)}.gfv-cal .gfc-desk-inspector{grid-column:1/-1;max-height:32vh}.gfv-cal .gfc-desk-workspace{grid-template-columns:220px minmax(0,1fr)}}@media(max-width:680px){.gfv-cal .gfc-mainbar{gap:4px;padding:6px;flex-wrap:wrap}.gfv-cal .gfc-mainbar>[data-role=monthLabel]{min-width:70px}.gfv-cal .gfc-mainbar>button[data-action=toggleOptions]{display:none}.gfv-cal .gfc-toolbar-menu{position:static}.gfv-cal .gfc-menu-body{right:6px;top:100%;max-width:calc(100vw - 28px)}.gfv-cal .gfc-desk-workspace,.gfv-cal .gfc-desk-workspace.gfc-desk-editing{display:flex;flex-direction:column;height:auto;overflow:visible}.gfv-cal .gfc-desk-options{max-height:30vh}.gfv-cal .gfc-desk-stage{height:55vh;flex:none;max-height:none}.gfv-cal .gfc-desk-artwork{overflow:visible}.gfv-cal .gfc-desk-inspector{max-height:50vh}.gfv-cal.gfc-desk-mode>.gfc-layout{overflow:auto}.gfv-cal .gfc-mainbar>select{max-width:140px}}.gfv-cal:fullscreen.gfc-desk-mode>.gfc-layout{grid-template-columns:minmax(0,1fr)}
.gfv-cal.gfc-desk-mode.gfc-left-collapsed .gfc-desk-options{display:none}.gfv-cal.gfc-desk-mode.gfc-left-collapsed .gfc-desk-workspace{grid-template-columns:minmax(0,1fr)}.gfv-cal.gfc-desk-mode.gfc-left-collapsed .gfc-desk-editing{grid-template-columns:minmax(220px,1fr) 260px}.gfv-cal .gfc-access-banner{padding:24px}.gfv-cal .gfc-desk-workspace input[type=range]{padding:0}
@media(max-width:680px){.gfv-cal .gfc-mainbar>button[data-action=toggleOptions]{display:inline-flex!important}}
.gfv-cal .gfc-object-align{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:8px 0}.gfv-cal .gfc-object-align button{min-width:0;padding:7px 3px;margin:0;font-size:12px}.gfv-cal [data-desk-custom]{padding:8px;border:1px solid var(--gfc-border);border-radius:5px}.gfv-cal .gfc-align{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.gfv-cal .gfc-bg-editor label{margin:10px 0}.gfv-cal .gfc-background-swatch{height:120px;max-width:240px;border:1px solid var(--gfc-border);margin:8px 0}.gfv-cal .gfc-background-swatch img{width:100%;height:100%;display:block}.gfv-cal .gfc-bg-editor [data-bg-actions]{display:flex;flex-wrap:wrap;gap:5px}.gfv-cal .gfc-bg-editor input[type=range]{padding:0}
.gfc-studio-dialog{width:min(880px,94vw);max-height:88vh;overflow:auto}.gfc-studio-dialog>button{margin:4px}.gfc-studio-dialog label{display:block;margin:8px 0}.gfc-studio-dialog textarea{width:100%;box-sizing:border-box}.gfc-selection-list{max-height:280px;overflow:auto;border:1px solid #888;padding:8px}.gfc-date-table input{max-width:100%;min-width:0}.gfc-date-table{width:100%;table-layout:fixed}.gfc-date-table td:last-child{width:85px}
