/* App layout and reader controls only; no exported CV typography changes. */
html:root body.v40-builder .app-shell.workspace-20261011 .builder-layout {
 display:grid!important;grid-template-columns:minmax(360px,.9fr) minmax(0,1.2fr)!important;
 align-items:start!important;gap:20px!important;padding:20px!important;
}
html:root body.v40-builder .app-shell.workspace-20261011 .editor {
 display:flex!important;flex-direction:column!important;gap:12px!important;
 min-width:0!important;max-height:calc(100dvh - 120px)!important;overflow:auto!important;
 position:sticky!important;top:104px!important;padding:0!important;
}
html:root body.v40-builder .app-shell.workspace-20261011 .editor > * {order:4; flex-shrink:0}
html:root body.v40-builder .app-shell.workspace-20261011 .editor > .section-journey {order:0!important;margin:0!important;position:static!important}
html:root body.v40-builder .app-shell.workspace-20261011 .editor > .form-panel {order:1!important;margin:0!important;padding:18px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .form-panel{display:flex!important;flex-direction:column!important;gap:12px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .form-panel>*{order:3}
html:root body.v40-builder .app-shell.workspace-20261011 .form-panel>.workspace-step-status{order:0!important;margin-bottom:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .form-panel>.panel-heading{order:1!important;margin-bottom:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .form-panel>.field-grid{order:2!important}
html:root body.v40-builder .app-shell.workspace-20261011 .form-panel>.form-step-actions{order:9!important}
html:root body.v40-builder .app-shell.workspace-20261011 .panel-heading>span{color:var(--ma-muted)!important;font-size:13px!important;letter-spacing:normal!important}
html:root body.v40-builder .app-shell.workspace-20261011 .editor > #workspace-mobile-setup-toggle {order:2!important}
html:root body.v40-builder .app-shell.workspace-20261011 .editor > .sample-data-alert {order:3!important}
html:root body.v40-builder .app-shell.workspace-20261011 .workspace-dashboard {padding:14px!important;margin:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-stage {
 display:flex!important;flex-direction:column!important;gap:14px!important;padding:0 0 20px!important;
 min-width:0!important;max-height:none!important;overflow:visible!important;
}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-stage > * {order:4;min-width:0}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-toolbar {order:0!important;position:static!important;padding:12px!important;margin:0!important;gap:10px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-reader {order:1!important;min-width:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-design-studio {order:2!important;margin:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-save-card {order:3!important;margin:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions {position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:0!important;min-width:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions > button {min-height:44px!important;min-width:0!important;padding:9px 12px!important;font-size:14px!important;flex:1 1 auto!important}
.preview-reader {border:1px solid var(--ma-line);border-radius:14px;background:var(--ma-soft);overflow:hidden}
.preview-reader-controls {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:var(--ma-surface);border-bottom:1px solid var(--ma-line);color:var(--ma-ink);font:14px MotazInterface,Arial,sans-serif}
.preview-reader-controls>div{display:flex;align-items:center;gap:6px}
.preview-reader-controls button{height:44px;min-width:44px;background:var(--ma-surface);color:var(--ma-ink);border:1px solid var(--ma-line);border-radius:8px;padding:6px 10px;font-size:15px}
.preview-reader-controls small{color:var(--ma-muted);flex-basis:100%;font-size:12px;line-height:1.65}
.preview-reader-viewport{width:100%;overflow:auto;max-height:calc(100dvh - 240px);touch-action:pan-x pan-y;overscroll-behavior:contain;direction:ltr;padding:0}
.preview-reader .preview-canvas{margin:0!important;max-width:none!important;overflow:visible!important;position:relative}
.preview-reader .preview-scale{transform-origin:top left!important;left:0!important;right:auto!important;margin:0!important}
.ma-field-error{display:block;color:#ad2929!important;font-size:13px!important;line-height:1.7!important;letter-spacing:normal!important;overflow-wrap:anywhere}
html.v30-dark .ma-field-error{color:#ffb1b1!important}
.ui-en .ma-error-ar,.ui-ar .ma-error-en{display:none!important}
.field input[aria-invalid=true]{border-color:#b34242!important}
.field>span{text-align:start!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-design-tabs{display:flex!important;overflow-x:auto!important;gap:12px!important;padding:8px!important;scroll-snap-type:x proximity;min-width:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-design-tabs>button{flex:0 0 210px!important;min-width:210px!important;max-width:210px!important;height:auto!important;min-height:70px!important;scroll-snap-align:start;white-space:normal!important;overflow:visible!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-design-tabs>button :is(b,small){white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%!important;text-overflow:clip!important}
html:root body.v40-builder .app-shell.workspace-20261011 .custom-panel-tab{min-width:0!important;max-width:100%!important;white-space:normal!important;gap:6px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .custom-panel-tab span{flex-shrink:0}
html:root body.v40-builder .app-shell.workspace-20261011 .custom-panel-tab b{white-space:normal!important;overflow-wrap:anywhere!important;min-width:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .reorderable-item-row{grid-template-columns:minmax(0,1fr) auto 44px!important;padding:8px!important;gap:8px!important;align-items:center!important}
html:root body.v40-builder .app-shell.workspace-20261011 .reorderable-item-row .list-item-reorder{display:flex!important;flex-direction:row!important;gap:4px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .reorderable-item-row.certificate-item-row{align-items:start!important}
html:root body.v40-builder .app-shell.workspace-20261011 .toast,
html:root body.v40-builder :is(.v415-export-toast,.v40-swipe-toast,.v4163-review-card){font-family:MotazInterface,Arial,sans-serif!important;letter-spacing:normal!important;word-spacing:normal!important;line-height:1.8!important;unicode-bidi:plaintext}
html:root body.v40-builder .v4163-review-card{background:var(--ma-surface)!important;color:var(--ma-ink)!important;border-color:var(--ma-line)!important;max-width:640px!important}
html:root body.v40-builder .v4163-review-card :is(header,footer){background:var(--ma-soft)!important;border-color:var(--ma-line)!important}
html:root body.v40-builder .v4163-review-card :is(b,small){color:var(--ma-ink)!important;font-size:15px!important;letter-spacing:normal!important;line-height:1.8!important;opacity:1!important}
html:root body.v40-builder .v4163-review-card :is(button,.v4163-review-list li){font-size:15px!important;line-height:1.8!important;letter-spacing:normal!important;border-color:var(--ma-line)!important}
html:root body.v40-builder .v4163-review-continue{color:#fff!important;background:#3150d9!important}
html:root body.v40-builder .v4163-review-back{background:var(--ma-surface)!important;color:var(--ma-ink)!important}
html:root body.v40-builder .v4163-review-close{background:var(--ma-surface)!important;color:var(--ma-ink)!important}
html:root body.v40-builder .v4163-review-mark,
html:root body.v40-builder .v4163-review-list li>span{background:var(--ma-blue-soft)!important;color:var(--ma-blue-ink)!important}
html:root body.v40-builder :is(.v26-import-card,.v26-import-body,.v26-import-head,.v26-import-actions){background:var(--ma-surface)!important;border-color:var(--ma-line)!important;color:var(--ma-ink)!important}
html:root body.v40-builder .v26-import-card :is(h2,h3,b,label){color:var(--ma-ink)!important;letter-spacing:normal!important}
html:root body.v40-builder .v26-import-card :is(p,small){color:var(--ma-muted)!important}
html:root body.v40-builder .v26-import-card :is(textarea,input,select,.v26-import-close){background:var(--ma-soft)!important;color:var(--ma-ink)!important;border-color:var(--ma-line)!important}
html:root body.v40-builder .v26-import-card button.primary{background:#3150d9!important;color:#fff!important}
html:root body.v40-builder .app-shell.workspace-20261011 .demo-data-chip {display:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .sample-data-alert{background:var(--ma-blue-soft)!important;border-color:var(--ma-line)!important;color:var(--ma-ink)!important;box-shadow:none!important}
@media(max-width:1023px){html:root body.v40-builder .app-shell.workspace-20261011 .builder-layout{grid-template-columns:minmax(0,1fr)!important}html:root body.v40-builder .app-shell.workspace-20261011 .editor{position:static!important;max-height:none!important;overflow:visible!important}}
@media(max-width:767px){
 html:root body.v40-builder .app-shell.workspace-20261011 .builder-layout{padding:12px!important;gap:12px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .editor{position:static!important;max-height:none!important;overflow:visible!important;gap:10px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .editor:not(.mobile-active){display:none!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-stage:not(.mobile-active){display:none!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .form-panel{padding:14px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .section-journey{padding:8px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .section-journey .panel-tabs{gap:6px!important;padding:6px 0!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .section-journey .panel-tabs>button{display:flex!important;flex-direction:row!important;align-items:center!important;gap:5px!important;height:48px!important;min-height:48px!important;padding:6px 9px!important;min-width:90px!important;font-size:14px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .section-journey .panel-tabs>button>span{height:22px!important;width:22px!important;min-width:22px!important;font-size:12px!important;margin:0!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .section-journey .panel-tabs>button>b{font-size:14px!important;line-height:1.5!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .section-journey>.journey-current{min-height:38px!important;padding:7px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-toolbar{padding:10px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:6px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>button{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;height:44px!important;padding:8px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>button svg{width:18px!important;height:18px!important;flex-shrink:0!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>:is(.premium-download-launch,.premium-ats-open){grid-column:1/-1!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-toolbar>div:first-child small{display:none!important}
 .preview-reader-viewport{max-height:calc(100dvh - 260px);min-height:280px}
 html:root body.v40-builder .app-shell.workspace-20261011 .reorderable-item-row{grid-template-columns:minmax(0,1fr) auto 40px!important;padding:8px!important;gap:6px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .reorderable-item-row .list-item-fields{grid-column:auto!important;width:100%!important;min-width:0!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .reorderable-item-row .list-item-reorder{grid-column:auto!important;grid-row:auto!important;justify-self:auto!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .reorderable-item-row>button{grid-column:auto!important;grid-row:auto!important;width:40px!important;min-width:40px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .reorderable-item-row .list-item-reorder button{width:40px!important;min-width:40px!important;height:44px!important;min-height:44px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .certificate-item-row{grid-template-columns:minmax(0,1fr) auto 40px!important}
}
@media(max-width:359px){html:root body.v40-builder .app-shell.workspace-20261011 .reorderable-item-row{grid-template-columns:minmax(0,1fr) auto!important}.reorderable-item-row>button{grid-column:2!important}.reorderable-item-row .list-item-reorder{grid-column:1!important;grid-row:2!important}}

/* Compact, rounded navigation and one clear download entry point. */
html:root body.v40-builder .app-shell.workspace-20261011 .journey-current{border-radius:28px!important;background:var(--ma-blue-soft)!important;color:var(--ma-blue-ink)!important;padding:10px 16px!important;min-height:68px!important;border:1px solid var(--ma-line)!important;box-shadow:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .journey-current :is(b,small){color:var(--ma-blue-ink)!important;letter-spacing:normal!important;opacity:1!important}
html:root body.v40-builder .app-shell.workspace-20261011 .journey-current b{font-size:18px!important;line-height:1.5!important}
html:root body.v40-builder .app-shell.workspace-20261011 .journey-current small{font-size:12px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .journey-arrow{border-radius:24px!important;background:var(--ma-surface)!important;color:var(--ma-blue-ink)!important;border-color:var(--ma-line)!important;min-height:48px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .section-journey-head{padding-bottom:10px!important;border-bottom:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .panel-tabs button{border-radius:24px!important;border-color:var(--ma-line)!important;box-shadow:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .panel-tabs button>span{border-radius:50%!important;background:var(--ma-soft)!important;color:var(--ma-ink)!important}
html:root body.v40-builder .app-shell.workspace-20261011 .panel-tabs button.active>span{background:#fff!important;color:#3150d9!important}
html:root body.v40-builder .app-shell.workspace-20261011 .workspace-step-status{display:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .form-panel>.panel-heading{margin-bottom:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .form-panel>.panel-heading>span{display:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .form-panel>.panel-heading :is(h2,p){margin-block:4px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .form-panel>.panel-heading h2{font-size:23px!important;line-height:1.6!important}
html:root body.v40-builder .app-shell.workspace-20261011 .form-panel>.panel-heading p{font-size:14px!important;line-height:1.8!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>[data-premium-image],
html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>[data-v4134-pdf]{display:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions button :is(b,span){font-size:14px!important;line-height:1.4!important;letter-spacing:normal!important}
html:root body.v40-builder .app-shell.workspace-20261011 .premium-ats-open{font-size:13px!important;padding:6px 10px!important;min-height:44px!important;background:var(--ma-soft)!important;color:var(--ma-blue-ink)!important;border-color:var(--ma-line)!important}
html:root body.v40-builder .app-shell.workspace-20261011 .workspace-dashboard{background:var(--ma-surface)!important;border-color:var(--ma-line)!important;border-radius:20px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .workspace-dashboard :is(h2,h3,b){color:var(--ma-ink)!important}
html:root body.v40-builder .app-shell.workspace-20261011 .workspace-dashboard :is(small,p,span){color:var(--ma-muted)!important}
html:root body.v40-builder .app-shell.workspace-20261011 .workspace-dashboard :is(.workspace-start-step,.workspace-journey-step){background:var(--ma-soft)!important;border-color:var(--ma-line)!important;border-radius:18px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .workspace-dashboard button{background:var(--ma-surface)!important;color:var(--ma-blue-ink)!important;border-color:var(--ma-line)!important;border-radius:14px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .workspace-dashboard .dashboard-import{background:#3150d9!important;color:#fff!important}
html:root body.v40-builder .app-shell.workspace-20261011 .v40-inline-progress{border-radius:24px!important;background:var(--ma-blue-soft)!important;color:var(--ma-blue-ink)!important;box-shadow:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .v40-inline-progress :is(b,small){color:var(--ma-blue-ink)!important}
html:root body.v40-builder .app-shell.workspace-20261011 .v40-inline-progress>span{border-radius:50%!important;background:#3150d9!important;color:#fff!important;min-width:44px!important;width:44px!important;height:44px!important}
.ma-guidance-overlay{position:fixed;inset:0;z-index:20000;background:#101a2d99;display:flex;align-items:center;justify-content:center;padding:16px}
.ma-guidance-card{background:var(--ma-surface);color:var(--ma-ink);border:1px solid var(--ma-line);border-radius:22px;width:min(100%,680px);max-height:calc(100dvh - 32px);overflow:auto;padding:22px;font:15px/1.8 MotazInterface,Arial,sans-serif;box-shadow:0 20px 70px #101a2d33}
.ma-guidance-card header{display:flex;align-items:center;justify-content:space-between;gap:12px}.ma-guidance-card h2{font-size:22px;line-height:1.5;margin:0;color:var(--ma-ink)}
.ma-guidance-card header button{flex-shrink:0;width:44px;height:44px;border:1px solid var(--ma-line);border-radius:50%;background:var(--ma-soft);color:var(--ma-ink);font-size:24px}
.ma-guidance-card ol{padding-inline-start:24px}.ma-guidance-card li{margin-bottom:12px}.ma-guidance-card p{color:var(--ma-muted)}
.ma-guidance-card textarea{box-sizing:border-box;width:100%;resize:vertical;border:1px solid var(--ma-line);border-radius:14px;background:var(--ma-soft);color:var(--ma-ink);font:14px/1.8 MotazInterface,Arial,sans-serif;padding:14px}
.ma-guidance-actions,.ma-missing-fields{display:flex;flex-wrap:wrap;gap:10px;margin-block:16px}
.ma-guidance-actions :is(button,a),.ma-missing-fields button,.ma-review-chat button{display:flex;align-items:center;justify-content:center;min-height:48px;border:1px solid var(--ma-line);border-radius:14px;background:var(--ma-surface);color:var(--ma-blue-ink);font:700 15px/1.6 MotazInterface,Arial,sans-serif;padding:10px 16px;text-decoration:none;cursor:pointer}
.ma-guidance-actions .ma-guidance-primary{background:#3150d9;color:#fff}.ma-missing-fields button{width:100%;justify-content:space-between;text-align:start}
.ma-guidance-card>small{display:block;color:var(--ma-muted);font-size:13px}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-save-card{flex-wrap:wrap!important}
.ma-review-chat{flex-basis:100%;border-top:1px solid var(--ma-line);padding-top:16px;margin-top:4px;color:var(--ma-ink)}
.ma-review-chat p{color:var(--ma-muted);font-size:14px;line-height:1.8;margin-block:6px 12px}.ma-review-chat button{width:100%;background:var(--ma-blue-soft);border-color:var(--ma-line)}
/* Essential setup precedes writing; document controls precede the paper. */
html:root body.v40-builder .app-shell.workspace-20261011 .editor>.display-text-controls{order:-5!important;margin:0!important;padding:8px 12px!important;min-height:44px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .editor>#workspace-mobile-setup-toggle{order:-4!important;border-radius:16px!important;margin:0!important;min-height:48px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .editor>:is(.format-switcher,.template-switcher,.german-layout-picker){order:-3!important;margin:0!important;padding:12px!important;border-radius:16px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .workspace-dashboard{display:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-stage>.cv-font-controls{order:1!important;margin:0!important;padding:10px 12px!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:6px!important;border-radius:14px!important;min-height:44px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .cv-font-controls>b{font-size:14px!important;margin-inline-end:auto!important}
html:root body.v40-builder .app-shell.workspace-20261011 .cv-font-controls>small{display:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .cv-font-controls>button{min-width:48px!important;min-height:44px!important;padding:6px 10px!important;font-size:13px!important;border-radius:10px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-stage>.preview-design-studio{order:2!important;padding:12px!important;border-radius:16px!important;gap:10px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-stage>.preview-reader{order:3!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-stage>.preview-save-card{order:4!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:start!important;padding:16px!important;border-radius:16px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-save-card>.preview-status-symbol{display:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-save-card>.ma-review-chat{grid-column:1/-1!important;width:auto!important;min-width:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-save-copy :is(b,span,small){font-size:13px!important;line-height:1.7!important;letter-spacing:normal!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-save-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-save-actions button{background:var(--ma-surface)!important;border-color:var(--ma-line)!important;color:var(--ma-blue-ink)!important;font-size:14px!important;padding:10px!important;border-radius:12px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-save-actions .preview-save-primary{background:#3150d9!important;color:#fff!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-studio-head{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:0!important;margin:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-studio-head>div:first-child{flex:1 1 190px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-studio-head>div:first-child>span{display:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-studio-head>div:first-child>b{font-size:16px!important;line-height:1.6!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-studio-head>div:first-child>small{font-size:12px!important;line-height:1.7!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-studio-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important}
html:root body.v40-builder .app-shell.workspace-20261011 .template-language-toggle{display:flex!important;flex-wrap:wrap!important;padding:4px!important;gap:4px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .template-language-toggle>button{min-width:72px!important;min-height:44px!important;flex:1 1 auto!important;padding:7px 8px!important;font-size:13px!important;border-radius:10px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-studio-actions>.inline-title-toggle{min-height:44px!important;padding:8px 10px!important;font-size:13px!important;border-radius:10px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-design-selector{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-design-selector>.design-cycle{position:static!important;flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;background:var(--ma-blue-soft)!important;color:var(--ma-blue-ink)!important;border-color:var(--ma-line)!important;border-radius:50%!important;transform:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-design-selector>.preview-design-tabs{flex:1 1 0!important;width:0!important;min-width:0!important;padding:4px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-design-tabs>button{flex-basis:175px!important;min-width:175px!important;max-width:175px!important;min-height:60px!important;padding:8px 10px!important;border-radius:12px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-design-tabs>button :is(b,small){font-size:13px!important;line-height:1.6!important}
html:root body.v40-builder .app-shell.workspace-20261011 .compare-toggle{font-size:13px!important;min-height:44px!important;padding:8px 12px!important;border-radius:12px!important;margin:0!important;align-self:flex-start!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>.ma-preview-save{background:#3150d9!important;color:#fff!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>.ma-preview-review{background:var(--ma-blue-soft)!important;color:var(--ma-blue-ink)!important;font-size:13px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .editor>#workspace-mobile-setup-toggle{display:flex!important;align-items:center!important;justify-content:center!important;font-size:14px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .editor.workspace-setup-collapsed>:is(.format-switcher,.template-switcher,.german-layout-picker){display:none!important}
@media(max-width:767px){
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-save-card{grid-template-columns:minmax(0,1fr)!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-save-actions button{flex:1 1 130px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>.ma-preview-review{grid-column:1/-1!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-stage>.preview-reader{order:2!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-stage>.preview-design-studio{order:3!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>.ma-preview-review{display:none!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>button{order:1!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>.premium-download-launch{grid-column:span 2!important;order:0!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>.ma-preview-save{order:0!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .cv-font-controls>b{font-size:12px!important;margin:0!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .cv-font-controls>button{min-width:44px!important;padding:6px!important;font-size:12px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-studio-head>div:first-child>small{display:none!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-studio-actions{gap:6px!important;width:100%!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .template-language-toggle{flex:1 1 100%!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .template-buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .template-buttons button{min-height:44px!important;min-width:0!important;font-size:13px!important;padding:8px!important}
}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-design-selector{min-width:0!important;max-width:100%!important;overflow:hidden!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-design-tabs{width:100%!important;box-sizing:border-box!important;touch-action:pan-x!important;overscroll-behavior-x:contain!important}
.cv-sheet[lang=ar]{font-family:MotazInterface,Arial,sans-serif!important;direction:rtl!important;text-align:right!important}
.cv-sheet[lang=ar] .contact-row{direction:rtl;unicode-bidi:plaintext}
.cv-sheet[lang=ar] :is(ul,ol){padding-inline-start:22px;padding-inline-end:0}
.cv-sheet[lang=ar] :is(.cv-summary,.cv-section,.cv-record){text-align:right!important;line-height:1.6!important}
.cv-sheet[lang=ar] .skills-block{padding-right:0;padding-left:18px}
.cv-sheet[lang=ar] .languages-block{border-left:0;border-right:1px solid #777;padding-left:0;padding-right:18px}
.cv-sheet[lang=ar] .classic-photo{float:right;margin:0 0 8px 18px}
@media(max-width:767px){
 html:root body.v40-builder .app-shell.workspace-20261011 .reorderable-item-row{grid-template-columns:minmax(0,1fr) auto 44px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .reorderable-item-row>button{width:44px!important;min-width:44px!important;min-height:44px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .reorderable-item-row .list-item-reorder button{width:44px!important;min-width:44px!important}
}
@media(max-width:359px){
 html:root body.v40-builder .app-shell.workspace-20261011 .reorderable-item-row{grid-template-columns:minmax(0,1fr) 44px 44px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .reorderable-item-row .list-item-reorder{flex-direction:column!important;grid-column:2!important;grid-row:auto!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .reorderable-item-row>button{grid-column:3!important;grid-row:auto!important}
}
html:root body.v40-builder .app-shell.workspace-20261011 .journey-progress{height:4px!important;border-radius:8px!important;background:var(--ma-line)!important}
html:root body.v40-builder .app-shell.workspace-20261011 .journey-progress i{background:#3150d9!important;border-radius:8px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .v4163-swipe-hint{display:none!important}
html:root body.v40-builder .ma-ats-dialog{width:min(560px,calc(100vw - 24px))!important;border-radius:22px!important}
html:root body.v40-builder .ma-ats-dialog .premium-check{padding:10px!important;gap:8px!important}
html:root body.v40-builder .ma-ats-dialog .premium-check :is(b,p,small){font-size:13px!important;line-height:1.7!important}
/* One readable size selector; advanced template choices stay available on demand. */
html:root body.v40-builder .app-shell.workspace-20261011 .preview-design-tabs>button{flex-basis:min(175px,100%)!important;min-width:0!important;max-width:100%!important}
html:root body.v40-builder .app-shell.workspace-20261011.ui-en .form-panel>.panel-heading h2{font-size:22px!important;line-height:1.4!important}
html:root body.v40-builder .app-shell.workspace-20261011.ui-en .form-panel>.panel-heading p{font-size:13px!important;line-height:1.5!important}
html:root body.v40-builder .app-shell.workspace-20261011 .form-panel>.panel-heading{padding-bottom:8px!important;margin-bottom:8px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .form-panel>.panel-heading p{line-height:1.6!important}
html:root body.v40-builder .app-shell.workspace-20261011 .display-text-controls{display:grid!important;grid-template-columns:minmax(0,1fr) repeat(3,minmax(64px,auto))!important;align-items:center!important;gap:0!important;padding:4px!important;background:var(--ma-soft)!important;border-radius:24px!important;box-shadow:none!important;min-height:52px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .editor>.display-text-controls{padding:4px!important;min-height:52px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .display-text-controls>span{font-size:12px!important;padding-inline:8px!important;line-height:1.5!important}
html:root body.v40-builder .app-shell.workspace-20261011 .display-text-controls>button{height:44px!important;min-height:44px!important;border-radius:20px!important;border:0!important;padding:6px 10px!important;font-size:13px!important;background:transparent!important;color:var(--ma-ink)!important;white-space:nowrap!important}
html:root body.v40-builder .app-shell.workspace-20261011 .display-text-controls>button[aria-pressed=true]{background:#3150d9!important;color:#fff!important;box-shadow:0 2px 8px #3150d926!important}
html:root body.v40-builder .app-shell.workspace-20261011 .v26-extra-templates:not(.ma-gallery-open){display:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .ma-more-templates{background:var(--ma-soft)!important;color:var(--ma-blue-ink)!important;border:1px solid var(--ma-line)!important;border-radius:12px!important;font:700 13px/1.5 MotazInterface,Arial,sans-serif!important;min-height:44px!important;padding:8px 12px!important;cursor:pointer!important}
html:root body.v40-builder .app-shell.workspace-20261011 .selected-design-bar{display:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-studio-head>div:first-child>small{display:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-design-tabs>button{min-height:60px!important}
@media(max-width:767px){html:root body.v40-builder .app-shell.workspace-20261011 .display-text-controls{grid-template-columns:minmax(0,1fr) repeat(3,minmax(60px,auto))!important}html:root body.v40-builder .app-shell.workspace-20261011 .display-text-controls>button{font-size:12px!important;padding:6px!important}html:root body.v40-builder .app-shell.workspace-20261011 .section-journey-head{padding-bottom:4px!important}}
@media(max-width:767px){
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>.premium-ats-open{grid-column:auto!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>button:nth-child(4){grid-column:auto!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .section-journey{border-radius:20px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .v4163-swipe-hint{padding:8px 10px!important;margin:8px 12px!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .v4163-swipe-hint p{font-size:12px!important;line-height:1.6!important}
 .ma-guidance-card{padding:16px}.ma-guidance-card h2{font-size:20px}.ma-guidance-actions>*{flex:1 1 180px}
}

/* R14: natural page scrolling, compact mobile studio and balanced desktop tools. */
.preview-reader .preview-canvas{overflow:hidden!important}
html:root body.v40-builder .app-shell.workspace-20261011 .template-language-toggle>.v4163-cv-language-label{flex:1 1 100%!important;width:100%!important}
html:root body.v40-builder .app-shell.workspace-20261011 .template-language-toggle>button{flex:1 1 0!important;min-width:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .panel-route-tip{display:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-stage>.display-text-controls{display:none!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-stage>:is(.preview-toolbar,.cv-font-controls,.preview-design-studio,.preview-save-card){width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-save-card>*{min-width:0!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-toolbar{display:flex!important;flex-direction:column!important;align-items:stretch!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions{width:100%!important;max-width:none!important;align-self:stretch!important;overflow:visible!important}
html:root body.v40-builder .app-shell.workspace-20261011 .cv-font-controls{flex-direction:row!important;justify-content:center!important;min-height:66px!important}
html:root body.v40-builder .app-shell.workspace-20261011 .cv-font-controls>b{margin:0!important;flex:0 1 auto!important}
html:root body.v40-builder .app-shell.workspace-20261011 .preview-design-studio{display:flex!important;flex-direction:column!important}
html:root body.v40-builder .app-shell.workspace-20261011 :is(.preview-studio-head,.preview-studio-actions,.template-language-toggle){flex-direction:row!important}
.preview-reader-viewport{overscroll-behavior:auto!important}
@media(min-width:768px){
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>button{grid-column:auto!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-actions>:is(.ma-preview-save,.ma-preview-review){grid-column:span 2!important}
}
@media(max-width:767px){
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-studio-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-studio-actions>.template-language-toggle{grid-column:1/-1!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-studio-actions>button{width:100%!important;min-width:0!important;grid-column:auto!important;font-size:12px!important;line-height:1.6!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-studio-head>div:first-child{flex:1 1 100%!important;min-height:0!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .preview-studio-actions{flex:1 1 100%!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .template-language-toggle{flex:1 1 100%!important}
 html:root body.v40-builder .app-shell.workspace-20261011 .cv-font-controls{padding:8px!important;gap:4px!important;justify-content:center!important}
 .preview-reader[data-preview-zoomed=false] .preview-reader-viewport{max-height:none!important;min-height:0!important;overflow:clip!important;touch-action:pan-y pinch-zoom!important}
 .preview-reader[data-preview-zoomed=true] .preview-reader-viewport{max-height:calc(100dvh - 260px)!important;min-height:0!important;overflow:auto!important;touch-action:pan-x pan-y!important}
}
