.ocv-editor-switch,.ocv-editor-preview{display:none}
@media screen{
    body.ocv-premium-editor .control-bar{flex-wrap:wrap}
    body.ocv-premium-editor .nav-group,body.ocv-premium-editor .action-group{flex-wrap:wrap;max-width:100%;min-width:0}
}
@media screen and (max-width:900px){
    body.ocv-direct-editor #page-wrapper{width:100%!important;zoom:1!important;transform:none!important;padding:12px!important;gap:16px}
    body.ocv-direct-editor .controls{width:100%;max-width:794px;padding:14px;box-sizing:border-box}
    body.ocv-direct-editor .controls input,body.ocv-direct-editor .controls select{font-size:16px!important;min-height:44px;max-width:100%}
    body.ocv-direct-editor .ctrl-btn{min-height:44px;font-size:13px;flex:1 1 130px}
    body.ocv-direct-editor .btn-row{flex-wrap:wrap;gap:8px}
    body.ocv-direct-editor .controls select{min-width:0;flex:1 1 180px;width:100%}
    body.ocv-direct-editor .controls>div{min-width:0;flex-wrap:wrap}
    body.ocv-direct-editor .theme-dot{flex-shrink:0}
    body.ocv-direct-editor .hints span{font-size:12px;line-height:1.5;flex-wrap:wrap}
    body.ocv-direct-editor .cv-page{width:100%!important;min-height:0;height:auto!important;transform:none!important;box-sizing:border-box}
    body.ocv-direct-editor #cvContainer{--ocv-editor-scale:1}
    body.ocv-direct-editor #cvContainer.cv-scale-1{--ocv-editor-scale:.8}
    body.ocv-direct-editor #cvContainer.cv-scale-2{--ocv-editor-scale:.9}
    body.ocv-direct-editor #cvContainer.cv-scale-4{--ocv-editor-scale:1.1}
    body.ocv-direct-editor #cvContainer.cv-scale-5{--ocv-editor-scale:1.2}
    body.ocv-premium-editor #cvContainer{--ocv-editor-scale:var(--scale-val,1)}
    body.ocv-direct-editor [contenteditable=true]{font-size:calc(16px * var(--ocv-editor-scale,1))!important;line-height:1.55;min-height:28px;overflow-wrap:anywhere;word-break:normal}
    body.ocv-direct-editor .cv-name,body.ocv-direct-editor .h-name{font-size:calc(27px * var(--ocv-editor-scale,1))!important;line-height:1.25!important}
    body.ocv-direct-editor .cv-job{font-size:calc(16px * var(--ocv-editor-scale,1))!important}
    body.ocv-direct-editor .del-btn{opacity:1!important;width:28px!important;height:28px!important;font-size:12px!important}
    body.ocv-direct-editor .add-btn{min-height:36px;font-size:13px!important}
    body.ocv-direct-editor .hide-section-btn{opacity:1;left:auto;right:0;top:-18px;width:28px;height:28px}
    body.ocv-direct-editor .ocv-editor-switch{display:flex;flex-wrap:wrap;align-items:center;gap:10px;width:100%;max-width:794px;padding:12px;background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-sizing:border-box;font:14px/1.5 Arial,sans-serif}
    .ocv-editor-switch span{flex:1 1 160px;color:#475569}
    .ocv-editor-switch button{border:1px solid #c7d2fe;background:#eef2ff;color:#3730a3;border-radius:8px;min-height:44px;padding:10px 14px;font-size:14px;font-weight:700;cursor:pointer}
    body.ocv-direct-editor .ocv-editor-preview.is-open{display:block;width:100%;max-width:794px;overflow:hidden;background:white;box-shadow:0 4px 20px #0f172a1a}
    .ocv-editor-preview iframe{display:block;width:794px;border:0;transform-origin:top left;pointer-events:none;background:white}
    body.ocv-direct-editor #cvContainer.ocv-editing-hidden{display:none!important}
    body.ocv-classic-editor #cvContainer{flex-direction:column}
    body.ocv-classic-editor .sidebar,body.ocv-classic-editor .main-content{width:100%;padding:24px;gap:24px}
    body.ocv-classic-editor .sidebar{border-right:0;border-bottom:1px solid var(--border)}
    body.ocv-classic-editor .photo-ring{width:132px;height:132px}
    body.ocv-classic-editor .ref-grid{grid-template-columns:1fr}
    body.ocv-classic-editor .c-item{align-items:flex-start;padding-right:22px}
    body.ocv-classic-editor .skill-item,body.ocv-classic-editor .tl-item,body.ocv-classic-editor .ref-card{padding-right:30px}
    body.ocv-classic-editor .del-btn{left:auto!important;right:-4px!important;top:0!important}
    body.ocv-harvard-editor #cvContainer{padding:24px}
    body.ocv-harvard-editor .h-item,body.ocv-harvard-editor .h-skill{padding-right:28px}
    body.ocv-harvard-editor .del-btn{left:auto!important;right:-6px!important;top:0!important}
    body.ocv-premium-editor .page-wrapper{padding:12px}
    body.ocv-premium-editor .cv-page{margin-bottom:0!important}
    body.ocv-premium-editor .ocv-editor-switch,body.ocv-premium-editor .ocv-editor-preview{margin:12px auto;max-width:calc(100% - 24px)}
    body.ocv-premium-editor #cvContentWrapper{display:flex!important;flex-direction:column!important;width:100%!important;height:auto!important;transform:none!important;padding:22px;gap:22px;box-sizing:border-box}
    body.ocv-premium-editor #cvContentWrapper>.sidebar,body.ocv-premium-editor #cvContentWrapper>.main-content{display:contents!important}
    body.ocv-premium-editor #cvContentWrapper>.sidebar>*,body.ocv-premium-editor #cvContentWrapper>.main-content>*{order:10;min-width:0;margin:0}
    body.ocv-premium-editor #cvContentWrapper .header-block{order:0}
    body.ocv-premium-editor #cvContentWrapper .profile-container{order:1}
    body.ocv-premium-editor #cvContentWrapper .sidebar>.s-section:nth-child(2){order:2}
    body.ocv-premium-editor #cvContentWrapper .sidebar>.s-section:nth-child(3){order:3}
    body.ocv-premium-editor #cvContentWrapper .main-content>.m-section{order:4}
    body.ocv-premium-editor .m-title,body.ocv-premium-editor .m-title>div,body.ocv-premium-editor .time-row{flex-wrap:wrap;gap:8px}
    body.ocv-premium-editor .m-title .add-btn{flex-shrink:0}
    body.ocv-premium-editor .del-section-btn{min-height:32px;padding:6px 8px!important}
    body.ocv-premium-editor .c-item,body.ocv-premium-editor .skill-progress-item,body.ocv-premium-editor .timeline-item,body.ocv-premium-editor .ref-box{padding-right:32px}
    body.ocv-premium-editor .del-btn{left:auto!important;right:0!important;top:0!important}
    body.ocv-premium-editor .control-bar{position:static;flex-direction:column;align-items:stretch;padding:12px!important;gap:8px!important}
    body.ocv-premium-editor .nav-group,body.ocv-premium-editor .action-group{width:100%;flex-wrap:wrap;gap:8px!important}
    body.ocv-premium-editor .control-bar select{font-size:16px!important;min-height:44px;max-width:100%!important}
    body.ocv-premium-editor .control-bar .btn,body.ocv-premium-editor .scale-btn{min-width:40px;min-height:40px}
    body.ocv-premium-editor .mobile-action-row{width:100%}
    body.ocv-premium-editor .pdf-btn{flex:1;min-height:44px!important}
    body.ocv-premium-editor .scale-controls-wrapper{flex-wrap:wrap}
    body.ocv-direct-editor #guideModal{overflow:auto;max-height:100dvh}
    body.ocv-direct-editor #guideModal>div{max-height:calc(100dvh - 32px);overflow:auto}
}
@media print{.ocv-editor-switch,.ocv-editor-preview{display:none!important}#cvContainer.ocv-editing-hidden{display:flex!important}}
