/* Two compact rows in the CV form only; existing field/editor behavior stays intact. */
:is(#editorSidebar,.pg-workflow-work) #pg103-tool-section.pg106-compact{padding:9px!important;margin:0 0 10px!important;border-radius:14px!important;box-shadow:0 3px 12px #234e9608}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg103-tools-title{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact .pg103-tool-items{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;min-width:0!important}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg97-launch,:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg102-entry,:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg105-setup,:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg98-undo-bar button{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 1 0!important;width:40px!important;max-width:none!important;min-width:0!important;height:40px!important;min-height:40px!important;margin:0!important;padding:8px!important;gap:0!important;border-radius:10px!important;font-size:0!important;line-height:1!important;overflow:hidden!important;white-space:nowrap!important;text-decoration:none!important;box-shadow:none!important}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg98-undo-bar{display:flex!important;flex:2 1 0!important;align-items:center!important;gap:6px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;min-width:0!important}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg105-setup,:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg98-undo-bar button{background:var(--ui-panel,#fff)!important;color:var(--ui-text,#365477)!important;border:1px solid var(--ui-line,#dce5f2)!important}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg98-undo-bar button:disabled{opacity:.38;cursor:default}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg102-entry svg{display:block!important;width:20px!important;height:20px!important;min-width:20px!important}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg97-launch::before,:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg105-setup::before,:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg98-undo-bar button::before,:is(#editorSidebar,.pg-workflow-work) .pg106-compact .pg105-autosave button::before{content:''!important;display:block!important;width:20px!important;height:20px!important;flex:0 0 20px!important;background:currentColor!important;mask:var(--pg106-icon) center/contain no-repeat!important;-webkit-mask:var(--pg106-icon) center/contain no-repeat!important}
#pg97-launch{--pg106-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.7 6.3L21 12l-6.3 2.7L12 21l-2.7-6.3L3 12l6.3-2.7z'/%3E%3C/svg%3E")}
#pg105-setup{--pg106-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20 19 5m-5-2 1 2m5 3 2 1M5 3v4M3 5h4m10 12v4m-2-2h4M8 16l-3-3'/%3E%3C/svg%3E")}
#pg98-undo-bar button:first-child{--pg106-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 4-5 5 5 5M3 9h11a6 6 0 0 1 0 12h-3'/%3E%3C/svg%3E")}
#pg98-undo-bar button:last-child{--pg106-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 4 5 5-5 5m5-5H10a6 6 0 0 0 0 12h3'/%3E%3C/svg%3E")}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact .pg105-autosave{display:flex!important;align-items:center!important;gap:7px!important;min-height:31px!important;margin:7px 0 0!important;padding:7px 0 0!important;min-width:0!important}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact .pg105-autosave label{display:inline-flex!important;align-items:center!important;gap:0!important;margin:0!important;padding:0!important;flex:0 0 auto!important;cursor:pointer}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact .pg105-autosave label span{position:absolute!important;clip-path:inset(50%);width:1px!important;height:1px!important;overflow:hidden!important;white-space:nowrap}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact .pg105-autosave input{appearance:none!important;-webkit-appearance:none!important;display:block!important;width:32px!important;height:19px!important;border:1px solid #b6c8e2!important;border-radius:20px!important;background:#dde6f4!important;background-image:radial-gradient(circle at 8px 50%,white 0 6px,transparent 6.5px)!important;margin:0!important;cursor:pointer;flex:none!important}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact .pg105-autosave input:checked{background-color:#286ce4!important;background-image:radial-gradient(circle at 23px 50%,white 0 6px,transparent 6.5px)!important;border-color:#286ce4!important}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact .pg105-autosave p{flex:1 1 auto!important;min-width:0!important;margin:0!important;font:500 11px/1.35 Outfit,system-ui,sans-serif!important;max-height:31px;overflow:auto;overflow-wrap:anywhere}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact .pg105-autosave button{display:inline-flex!important;justify-content:center!important;align-items:center!important;flex:0 0 30px!important;width:30px!important;height:30px!important;padding:5px!important;font-size:0!important;border-radius:8px!important;--pg106-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7v5h-5M4 17v-5h5M6 7a7 7 0 0 1 12-1l2 3M4 15l2 3a7 7 0 0 0 12-1'/%3E%3C/svg%3E")}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact button:focus-visible,:is(#editorSidebar,.pg-workflow-work) .pg106-compact input:focus-visible{outline:2px solid #408bff!important;outline-offset:2px!important}
html[data-theme=dark] :is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg105-setup,html[data-theme=dark] :is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg98-undo-bar button{background:#1a2d49!important;color:#dbe9ff!important;border-color:#39516f!important}
:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg97-launch[hidden],:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg102-entry[hidden],:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg105-setup[hidden],:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg98-undo-bar[hidden],:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg98-undo-bar button[hidden],:is(#editorSidebar,.pg-workflow-work) .pg106-compact .pg105-autosave[hidden]{display:none!important}
@media(pointer:coarse){:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg97-launch,:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg102-entry,:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg105-setup,:is(#editorSidebar,.pg-workflow-work) .pg106-compact #pg98-undo-bar button{height:44px!important;min-height:44px!important}:is(#editorSidebar,.pg-workflow-work) .pg106-compact .pg105-autosave label{min-height:36px!important}:is(#editorSidebar,.pg-workflow-work) .pg106-compact .pg105-autosave button{height:36px!important}}
@media print{:is(#editorSidebar,.pg-workflow-work) .pg106-compact{display:none!important}}

/* The tool group is a fixed row above the existing step heading; fields keep their scroll area. */
html body.pg-guided-cv :is(#editorSidebar,.pg-workflow-work)>#pg103-tool-section.pg106-compact{flex:0 0 auto!important;width:auto!important;max-width:calc(100% - 36px)!important;min-width:0!important;margin:12px 18px 0!important;box-sizing:border-box!important}
.pg-workflow-work>#pg103-tool-section+.pg-workflow-heading{margin-top:10px;border-top:1px solid var(--ui-line,#dce5f2);border-bottom:0;padding-top:12px}
@media(max-width:640px){html body.pg-guided-cv :is(#editorSidebar,.pg-workflow-work)>#pg103-tool-section.pg106-compact{margin:10px 12px 0!important;max-width:calc(100% - 24px)!important}}
