/* v327: use available column space; preserve native editor actions. */
html body :is(.p229-panel,.pg313-mobile-menu) :is(a,a:hover,a:focus,a:visited,a span),html body :is(.pg319-cv-action,.pg319-cv-action span){text-decoration:none!important}
html body.pg316-design main :is(.w302-tool-card,.d-card,.b299-editor,.b299-preview,.pg287-card){min-width:0;max-width:100%}
@media(min-width:901px){
html[data-pg139] body.pg306-cv #previewArea .pg310-preview-host{container-type:inline-size;container-name:pg327-preview;min-width:0!important}
html[data-pg139] body.pg306-cv #previewArea #pg308-formatbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:'design design' 'tabs scores'!important;align-items:center!important;gap:10px!important;padding:10px!important;height:auto!important;min-height:0!important;border-radius:14px!important}
html[data-pg139] body.pg306-cv #previewArea #pg308-formatbar #designToolsPanel{grid-area:design!important;min-width:0!important;width:100%!important;max-width:100%!important;flex:none!important}
html[data-pg139] body.pg306-cv #previewArea #pg308-formatbar .pg128-tabs{grid-area:tabs!important;min-width:0!important;width:auto!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;justify-content:flex-start!important;flex:none!important}
html[data-pg139] body.pg306-cv #previewArea #pg308-formatbar .pg25-readiness{grid-area:scores!important;min-width:0!important;width:auto!important;max-width:100%!important;justify-content:flex-end!important;margin:0!important;gap:6px!important;flex:none!important}
html[data-pg139] body.pg306-cv #previewArea #pg308-formatbar .pg25-readiness button{min-width:0!important;height:auto!important;min-height:34px!important;padding:4px 7px 4px 10px!important;gap:7px!important}
html[data-pg139] body.pg306-cv #previewArea #pg308-formatbar .pg25-readiness button:before{font-size:11px!important}
@container pg327-preview (min-width:1150px){html[data-pg139] body.pg306-cv #previewArea #pg308-formatbar{grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-areas:'design tabs scores'!important}}
@container pg327-preview (max-width:660px){
html[data-pg139] body.pg306-cv #previewArea #pg308-formatbar{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'design' 'tabs' 'scores'!important;gap:8px!important}
html[data-pg139] body.pg306-cv #previewArea #pg308-formatbar .pg25-readiness{justify-content:flex-start!important;padding-top:7px!important;border-top:1px solid var(--ui-line)!important}
html[data-pg139] body.pg306-cv #previewArea #pg308-formatbar #designToolsPanel .pg130-inline{gap:5px!important}
html[data-pg139] body.pg306-cv #previewArea #pg308-formatbar #fontSelector{width:100px!important}
}
html[data-pg139] body.pg141-cv :is(.editor-sidebar,.pg-workflow-content,#previewArea,.pg141-preview-top),html[data-pg139] body.pg141-letter :is(.pg139-letter-fields,.preview-panel,.pg141-letter-designs){min-width:0!important;max-width:100%!important}
}
@media(min-width:901px) and (max-width:1200px){html[data-pg139] body.pg141-cv .editor-body{grid-template-columns:140px clamp(300px,33vw,400px) minmax(0,1fr)!important}}
html body dialog.pg138-samples{font-family:inherit!important}
html body dialog.pg138-samples:not([open]){display:none!important}
html body dialog.pg138-samples :is(h2,input,button){font-family:inherit!important}
@media(max-width:600px){html body dialog.pg138-samples[open]{display:flex!important}html body dialog.pg138-samples .pg138-content{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:auto!important}html body dialog.pg138-samples .pg138-preview{display:block!important;visibility:visible!important;position:static!important;width:100%!important;box-sizing:border-box!important;flex:none!important}}
html body #pg327-cover-confirm{position:fixed;inset:0;margin:auto;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;padding:24px;border:1px solid var(--ui-line,#dce4ee);border-radius:20px;background:var(--ui-panel,#fff);color:var(--ui-text,#17233d);font-family:inherit}
#pg327-cover-confirm::backdrop{background:#09152a99}
#pg327-cover-confirm h2{font-size:22px;color:inherit;margin:0 0 12px}
#pg327-cover-confirm p{font-size:14px;line-height:1.6;color:inherit}
#pg327-cover-confirm>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
#pg327-cover-confirm button{min-height:42px;padding:9px 16px;border-radius:10px;border:1px solid var(--ui-line,#dce4ee);background:var(--ui-panel2,#f1f5f9);color:inherit;font:inherit}
#pg327-cover-confirm [data-apply]{background:#245bff;color:white;border-color:#245bff}
/* My Projects follows the narrow My CVs drawer: fixed header/footer, scrolling list. */
html body dialog#projects-dialog{--lib-bg:#fff;--lib-soft:#f5f8fe;--lib-text:#172842;--lib-muted:#6b7e99;--lib-line:#e0e7f2;position:fixed!important;inset:0 0 0 auto!important;margin:0!important;transform:none!important;box-sizing:border-box!important;width:min(440px,100vw)!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;padding:0!important;border:0!important;border-inline-start:1px solid var(--lib-line)!important;border-radius:0!important;background:var(--lib-bg)!important;color:var(--lib-text)!important;box-shadow:-20px 0 70px #081b3a26!important;overflow:hidden!important;font-family:inherit!important}
html[data-theme=dark] body dialog#projects-dialog{--lib-bg:#101f35;--lib-soft:#15273f;--lib-text:#edf4ff;--lib-muted:#b0bfd4;--lib-line:#30425e}
html body dialog#projects-dialog:not([open]){display:none!important}
html body dialog#projects-dialog[open]{display:flex!important;flex-direction:column!important;gap:0!important}
html body dialog#projects-dialog::backdrop{background:#09162999;backdrop-filter:blur(4px)}
html body dialog#projects-dialog .dialog-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex:none!important;height:auto!important;min-height:0!important;padding:20px!important;margin:0!important;border-bottom:1px solid var(--lib-line)!important;background:var(--lib-bg)!important;box-sizing:border-box!important}
html body dialog#projects-dialog h2{display:flex;align-items:center;gap:9px;font-size:20px!important;color:inherit!important;margin:0!important;line-height:1.3}
html body dialog#projects-dialog svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7}
html body dialog#projects-dialog .dialog-head button{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border:1px solid var(--lib-line)!important;border-radius:10px!important;background:var(--lib-soft)!important;color:inherit!important;font-size:24px!important}
html body dialog#projects-dialog #project-list{display:flex!important;flex-direction:column!important;gap:11px!important;flex:1 1 0!important;min-height:0!important;padding:16px!important;margin:0!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain;background:var(--lib-soft)!important}
html body dialog#projects-dialog .project-card{display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;flex:none!important;min-width:0!important;min-height:0!important;margin:0!important;padding:12px!important;border:1px solid var(--lib-line)!important;border-radius:16px!important;background:var(--lib-bg)!important;box-shadow:0 3px 12px #0f172a08!important}
html body dialog#projects-dialog .project-card.current{border-color:#5f96f5!important;box-shadow:0 0 0 2px #2563eb12!important}
html body dialog#projects-dialog .project-open-card{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;flex:1!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;text-align:start!important}
html body dialog#projects-dialog .project-open-card img{display:block!important;flex:0 0 40px!important;width:40px!important;height:48px!important;object-fit:contain!important;background:#2563eb10!important;border:0!important;border-radius:10px!important}
html body dialog#projects-dialog .project-info{display:block!important;padding:0!important;min-width:0!important}
html body dialog#projects-dialog .project-info strong{display:block!important;color:inherit!important;font-size:14px!important;overflow-wrap:anywhere;white-space:normal!important;line-height:1.4!important}
html body dialog#projects-dialog .project-info small{display:block!important;white-space:normal!important;color:var(--lib-muted)!important;font-size:11px!important;line-height:1.6!important;margin-top:4px!important}
html body dialog#projects-dialog .project-card-actions{display:flex!important;flex:none!important;gap:4px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
html body dialog#projects-dialog .project-card-actions button{display:grid!important;place-items:center!important;width:30px!important;min-width:30px!important;height:33px!important;min-height:33px!important;padding:7px!important;border:1px solid var(--lib-line)!important;border-radius:9px!important;background:var(--lib-soft)!important;color:inherit!important}
html body dialog#projects-dialog .project-card-actions svg{width:16px!important;height:16px!important}
html body dialog#projects-dialog .project-card-actions .project-delete{color:#d14259!important}
html body dialog#projects-dialog .projects-empty{margin:0!important;padding:28px 15px!important;font-size:13px!important;line-height:1.6!important;color:var(--lib-muted)!important;text-align:center!important;border:1px dashed var(--lib-line)!important;border-radius:16px!important;background:var(--lib-bg)!important}
html body dialog#projects-dialog .project-drawer-footer{display:flex!important;flex-direction:column!important;gap:12px!important;flex:none!important;width:100%!important;max-height:48dvh!important;overflow:auto!important;box-sizing:border-box!important;padding:16px!important;border-top:1px solid var(--lib-line)!important;background:var(--lib-bg)!important;position:static!important}
html body dialog#projects-dialog #project-save-options{width:100%!important;min-width:0!important;max-height:none!important;margin:0!important;overflow:visible!important}
html body dialog#projects-dialog summary{padding:0!important;min-height:28px!important;font-size:13px!important;color:var(--lib-text)!important;font-weight:600!important;cursor:pointer}
html body dialog#projects-dialog .project-save-area{padding:0!important;border:0!important;background:transparent!important}
html body dialog#projects-dialog .project-save-area label{display:block!important;font-size:12px!important;margin:8px 0!important}
html body dialog#projects-dialog #project-name{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:44px!important;border:1px solid var(--lib-line)!important;border-radius:11px!important;padding:10px 12px!important;background:var(--lib-bg)!important;color:inherit!important;font:inherit!important;font-size:16px!important}
html body dialog#projects-dialog .project-drawer-footer .button-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;margin:10px 0!important}
html body dialog#projects-dialog .project-drawer-footer button{min-height:42px!important;padding:10px 12px!important;border:1px solid var(--lib-line)!important;border-radius:11px!important;font:inherit!important;font-size:13px!important;background:var(--lib-bg)!important;color:inherit!important;white-space:normal!important}
html body dialog#projects-dialog .project-drawer-footer button.primary{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important}
html body dialog#projects-dialog #project-create{width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}
html body dialog#projects-dialog .note{font-size:11px!important;line-height:1.6!important;color:var(--lib-muted)!important;margin:0!important}
html body dialog#projects-dialog :is(a,button,input,summary):focus-visible{outline:3px solid #8fb1ff!important;outline-offset:2px!important}
@media(max-width:700px){html body dialog#projects-dialog{width:100vw!important}}
@media(max-width:360px){html body dialog#projects-dialog .project-card{flex-wrap:wrap!important}html body dialog#projects-dialog .project-card-actions{margin-inline-start:auto!important}}
/* Visible selected-text palette control; hidden state wins legacy button rules. */
html body #pg255-item-tools #pg329-colors-button{display:flex!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;border:1px solid var(--pg254-border,#dce4ee)!important;border-radius:9px!important;background:var(--pg254-surface,#fff)!important;color:var(--pg254-text,#172842)!important}
html body #pg255-item-tools #pg329-colors-button[hidden]{display:none!important}
html body #pg329-colors{position:fixed;inset:auto;margin:0;padding:16px;box-sizing:border-box;overflow:auto;z-index:2147483640;border:1px solid var(--pg254-border,#dce4ee);border-radius:16px;background:var(--pg254-surface,#fff);color:var(--pg254-text,#172842);box-shadow:0 12px 40px #081b3a30;font-family:inherit}
html body #pg329-colors[hidden],html body #pg329-colors [hidden]{display:none!important}
html body #pg329-colors .pg329-color-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
html body #pg329-colors strong{font-size:15px;color:inherit}
html body #pg329-colors button{display:grid;place-items:center;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;border:1px solid var(--pg254-border,#dce4ee);border-radius:9px;background:transparent;color:inherit;font-size:23px;cursor:pointer}
html body #pg329-colors label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:8px 0;font-size:13px;line-height:1.4;color:inherit}
html body #pg329-colors input[type=color]{display:block;width:52px;min-width:52px;height:38px;min-height:38px;padding:3px;border:1px solid var(--pg254-border,#dce4ee);border-radius:9px;background:transparent;cursor:pointer}
html body #pg329-colors p{font-size:12px;line-height:1.5;color:var(--pg254-muted,#64748b);margin:10px 0 4px;border-top:1px solid var(--pg254-border,#dce4ee);padding-top:12px}
html body #pg329-colors :is(button,input):focus-visible{outline:3px solid #8fb1ff;outline-offset:2px}
@media print{html body :is(#pg308-formatbar,#projects-dialog,#pg327-cover-confirm,#pg329-colors,.p229-header,.p229-panel){display:none!important}}
