@font-face{font-family:Plex;src:url('/assets/IBMPlexSans-Light.woff2');font-weight:300;font-display:swap}
@font-face{font-family:Plex;src:url('/assets/IBMPlexSans-LightItalic.ttf');font-weight:300;font-style:italic;font-display:swap}
@font-face{font-family:Plex;src:url('/assets/IBMPlexSans-Regular.woff2');font-weight:400;font-display:swap}
@font-face{font-family:Plex;src:url('/assets/IBMPlexSans-Medium.woff2');font-weight:500;font-display:swap}
@font-face{font-family:Plex;src:url('/assets/IBMPlexSans-Bold.woff2');font-weight:700;font-display:swap}
:root{--turquoise:#33cccc;--dark:#333;--muted:#626d70;--border:#dfe4e5;--font:Plex,'IBM Plex Sans',Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:#f2f3f4;color:var(--dark);font:14px var(--font)}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:1px solid var(--border);border-radius:5px;background:white;padding:9px 13px}button:hover{background:#eaf7f6;border-color:#86cdca}button:disabled{opacity:.4;cursor:default}.primary{background:#333;color:white;border-color:#333}.primary:hover{background:#455052}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #148c8c;outline-offset:3px}[hidden]{display:none!important}
.topbar{height:74px;display:flex;align-items:center;gap:23px;padding:0 26px;background:white;border-bottom:1px solid var(--border)}.topbar a{display:flex}.topbar img{object-fit:contain}.brand-divider{height:26px;width:1px;background:var(--border)}.top-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.local-mode{font-size:12px;color:var(--muted);margin-right:12px}
.workspace{display:grid;grid-template-columns:280px minmax(400px,1fr) 330px;height:calc(100dvh - 74px)}.library{padding:24px 18px;background:#fafbfb;border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0}.section-heading{display:flex;gap:10px;align-items:center;justify-content:space-between}.section-heading h1,.section-heading h2,.section-heading h3{margin:0;font-size:17px;font-weight:500}.library input{margin:20px 0 12px}.library-toolbar{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;margin-bottom:18px}.library-toolbar button{font-size:11px;padding:6px 8px}#library-list{overflow:auto;flex:1}.cv-card{display:flex;text-align:left;gap:12px;width:100%;padding:14px 10px;margin-bottom:9px;background:white}.cv-card.selected{border-color:#148c8c;background:#eefafa}.card-copy{min-width:0;display:grid;gap:5px}.card-copy strong{font-weight:500;overflow-wrap:anywhere}.card-copy span,.card-copy small{color:var(--muted);font-size:11px}.mini-document{flex-shrink:0;width:39px;height:52px;background:#f1f5f5;border:1px solid #cfd9d9;position:relative}.mini-document:before{content:'';position:absolute;top:9px;left:6px;right:6px;height:3px;background:#33cccc}.mini-document span{position:absolute;top:20px;left:6px;right:6px;height:2px;background:#b3bfc0;box-shadow:0 7px #b3bfc0,0 14px #b3bfc0}.compact .mini-document{display:none}.compact .cv-card{padding:10px}.library-foot{font-size:11px;line-height:1.6;color:var(--muted);border-top:1px solid var(--border);padding-top:18px;margin-bottom:0}
main{padding:28px 32px;overflow:auto;min-width:0}.stage-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:var(--muted);margin:0 0 9px}.stage-heading h2{font-size:21px;font-weight:400;margin:0}#save-status{font-size:11px;color:var(--muted);text-align:right}.empty{margin:70px auto;max-width:460px;padding:45px 30px;background:white;border:1px solid var(--border)}.empty h2{font-weight:500;font-size:30px;margin-top:30px}.empty p{line-height:1.8;color:var(--muted);margin-bottom:28px}.empty-line{width:90px;border-top:2px solid #33cccc;position:relative}.empty-line:after{content:'';position:absolute;right:0;top:-5px;width:8px;height:8px;border-radius:50%;background:#33cccc}.print-hint{font-size:11px;color:var(--muted);line-height:1.6;max-width:720px;margin:18px auto}.error{padding:13px;background:#fff0f6;border:1px solid #d7a6bc;color:#822452;line-height:1.6}
.inspector{background:white;border-left:1px solid var(--border);overflow:auto}.inspector-heading{padding:23px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.inspector-heading h2{font-size:15px;font-weight:500;margin:0}.inspector-heading button{font-size:11px}#editor,#editor-empty{padding:22px 20px}#editor-empty{color:var(--muted);line-height:1.6}label{display:block;font-size:12px;font-weight:500;margin:0 0 7px}input,textarea,select{width:100%;border:1px solid #cfd8d9;border-radius:4px;padding:9px;background:white}input,textarea{margin-bottom:18px}textarea{resize:vertical;line-height:1.5;font-size:12px}.field-hint{font-size:11px;line-height:1.6;color:var(--muted);margin:10px 0 24px}fieldset{margin:22px 0;padding:16px 12px;border:1px solid var(--border);min-width:0}legend{font-size:12px;font-weight:500;padding:0 6px}.muted{font-size:12px;line-height:1.7;color:var(--muted)}dialog{border:1px solid var(--border);border-radius:8px;max-width:680px;width:calc(100% - 40px);padding:28px}dialog::backdrop{background:#25383866}dialog>p{color:var(--muted)}#template-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:25px}#template-cards button{display:grid;text-align:left;gap:12px;padding:20px}#template-cards button>span:last-child{font-size:12px;line-height:1.5;color:var(--muted)}.template-thumbnail{display:block;width:110px;height:145px;border:1px solid #d9e0e1;padding:20px 12px;background:white}.template-thumbnail>span{display:block;width:45px;height:5px;background:#33cccc;margin-bottom:22px}.template-thumbnail i{display:block;height:16px;border-top:3px solid #bdcaca;margin-bottom:8px}.template-thumbnail.compact{padding:16px 10px}.template-thumbnail.compact i{height:12px;margin-bottom:4px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:1200px){.workspace{grid-template-columns:220px minmax(340px,1fr) 290px}main{padding:24px 18px}.local-mode{display:none}}
@media(max-width:900px){.workspace{height:auto;grid-template-columns:1fr}.library{max-height:320px}.inspector{border-top:1px solid var(--border)}main{min-height:400px}.topbar{padding:0 14px;gap:12px}.topbar>span:not(.brand-divider){display:none}}
/* Gemensamt faktaunderlag och upphandlingsanpassning. */
#mode-select{margin-bottom:20px;width:100%}
#profile-tools{padding-bottom:16px;border-bottom:1px solid #ddd;margin-bottom:16px}
#load-profile{margin-top:10px}
input[readonly]{background:#edf5f5}
#ai-edit{margin:16px 20px 0;max-width:calc(100% - 40px)}
.customer-selection{margin-bottom:20px}
#archive-cv{margin:16px 20px;max-width:calc(100% - 40px)}
button.danger{border-color:#b85b65;color:#852735}
#customer-dropdown{border:1px solid #cfd8d9;border-radius:4px;padding:10px}
#customer-dropdown summary{cursor:pointer;font-size:14px;font-weight:500;line-height:1.4}
#customer-dropdown[open] summary{margin-bottom:16px}
#customer-dropdown summary:focus-visible{outline:3px solid #148c8c;outline-offset:3px}
#customer-search{margin-bottom:10px}
#customer-options{max-height:280px;overflow:auto}
.customer-option{display:flex;align-items:flex-start;gap:9px;padding:10px 2px;font-size:14px;line-height:1.4;font-weight:400;border-top:1px solid #edf0f0;cursor:pointer}
.customer-option input{width:18px;height:18px;flex:none;margin:2px 0;accent-color:#168080}
.customer-option small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.assignment-ongoing{display:flex;align-items:center;gap:8px;font-size:14px}
.assignment-ongoing input{width:18px;height:18px;margin:0;accent-color:#168080}
.workspace{--library-width:280px;grid-template-columns:var(--library-width) 10px minmax(340px,1fr) 10px var(--inspector-width,330px)}
.workspace-resizer{position:relative;cursor:col-resize;background:#edf0f0;touch-action:none}
.workspace-resizer:before{content:'';position:absolute;top:calc(50% - 24px);left:3px;width:4px;height:48px;border-radius:4px;background:#a7b9b9}
.workspace-resizer:hover,.workspace-resizer:focus-visible{background:#bfecec}
.workspace-resizer:focus-visible{outline:2px solid #148c8c;outline-offset:-2px}
.inspector{min-width:0}
body.resizing-panels{cursor:col-resize;user-select:none}
@media(max-width:1200px){.workspace{--library-width:220px}}
@media(max-width:900px){.workspace{grid-template-columns:1fr}.workspace-resizer{display:none}}
@media print{.workspace-resizer{display:none!important}}
.delete-cv-dialog{max-width:620px}.delete-cv-dialog p{line-height:1.5}.delete-cv-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.inspector-danger-actions{border-top:1px solid var(--border);padding:20px;margin-top:8px}.inspector-danger-actions:has(#delete-cv[hidden]){display:none}
.tag-picker{margin:10px 0 18px;min-width:0}
.tag-picker details{border:1px solid #cfd8d9;border-radius:5px;padding:10px}
.tag-picker summary{cursor:pointer;font-size:14px;line-height:1.4;font-weight:500}
.tag-picker summary:focus-visible{outline:3px solid #148c8c;outline-offset:3px}
.tag-count{font-size:12px;color:var(--muted);font-weight:400;margin-left:5px}
.tag-picker [data-tag-search]{margin:14px 0 8px}
.tag-selected{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.selected-tag{border:1px solid #abd4d4;background:#effafa;border-radius:16px;padding:5px 9px;font-size:13px;text-align:left;overflow-wrap:anywhere;max-width:100%}
.selected-tag span{margin-left:7px;color:#4e7272}
.tag-options{max-height:220px;overflow:auto}
.tag-choice{display:flex;gap:8px;align-items:flex-start;padding:8px 2px;font-size:14px;font-weight:400;line-height:1.4;border-top:1px solid #edf0f0;cursor:pointer;overflow-wrap:anywhere}
.tag-choice input{width:17px;height:17px;margin:2px 0;flex:none;accent-color:#168080}
[data-tag-add]{margin-top:10px;font-size:14px}
.assignment-date-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:start;margin-bottom:18px}
.assignment-date-controls input,.assignment-date-controls select{min-width:0;margin-bottom:0;height:40px;padding:8px}
.assignment-date-controls input{flex:1 1 140px;width:auto}
.assignment-date-controls select{flex:0 0 95px;width:95px}
.assignment-date-controls input::-webkit-calendar-picker-indicator{cursor:pointer;padding:3px}
.assignment-date .date-note{margin-top:-8px;margin-bottom:16px}
.editor-section{margin:0 0 12px;border:1px solid var(--border);border-radius:6px;background:#fff}
.editor-section>summary{padding:14px 12px;font-size:15px;line-height:1.4;font-weight:500;cursor:pointer;background:#f5f8f8;border-radius:6px}
.editor-section>summary::marker{color:#167d7d}
.editor-section>summary:focus-visible{outline:3px solid #148c8c;outline-offset:-3px}
.editor-section[open]>summary{border-bottom:1px solid var(--border);border-radius:6px 6px 0 0}
.editor-section-body{padding:16px 12px;min-width:0}
.editor-section-body>:last-child{margin-bottom:0}
.history-editor-list{margin-bottom:24px}
.history-editor-list ul{list-style:none;margin:0;padding:0}
.history-editor-list li{padding:12px;margin-bottom:12px;border:1px solid var(--border);border-radius:6px}
.history-editor-list textarea{margin-bottom:8px}
.history-visibility{display:flex;align-items:center;gap:8px;line-height:1.5}
.history-visibility input{width:auto;margin:0;flex:none;accent-color:#167d7d}
.history-editor-list>.history-visibility{margin:10px 0 4px}.history-hidden,.assignment-hidden{background:#f7f9f9}.assignment-hidden{border-style:dashed}.assignment-hidden legend:after{content:' · dolt';font-size:12px;color:#637272}.assignment-visibility{margin:4px 0}
#user-form>#user-role{margin-bottom:0}#user-form>.history-visibility{margin:20px 0 24px}#user-form .history-visibility input{width:18px;height:18px}.user-form-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.user-form-actions>button{margin:0}
.portrait-editor{margin:0 0 24px}
.portrait-editor h3{margin:0 0 12px;font-size:15px}
#portrait-preview{display:block;width:96px;height:96px;border-radius:50%;object-fit:cover;object-position:50% 0%;margin-bottom:12px}
.portrait-actions{display:flex;flex-wrap:wrap;gap:8px}
.image-library-dialog{max-width:820px;max-height:90dvh;overflow:auto}
.image-library-dialog>.section-heading{margin-bottom:24px}
.image-library-dialog .field-hint{margin-top:0;margin-bottom:16px}
.image-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:12px}
.image-choice{display:flex;flex-direction:column;gap:10px;width:100%;height:100%;padding:10px;text-align:left}
.image-choice img{display:block;width:100%;aspect-ratio:1;object-fit:cover;object-position:50% 0%;background:#f2f5f5;border-radius:4px}
.image-choice span{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.image-choice.selected{border:2px solid #167d7d;background:#edfafa;padding:9px}
@media screen{#cv-preview [data-edit-target]{cursor:pointer}#cv-preview [data-edit-target]:hover{outline:1px dashed #168383;outline-offset:2px}}
.auth-panel{max-width:460px;margin:7vh auto;padding:36px;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 12px 50px #2538380d}
.auth-panel h1{font-size:25px;font-weight:500;margin:28px 0 24px}.auth-panel p{line-height:1.6}.auth-panel form>button{margin:4px 8px 4px 0}
.topbar #account-name{font-size:12px;white-space:nowrap}.top-actions button{font-size:12px;padding:8px 10px}
.workflow-panel{display:flex;justify-content:space-between;align-items:center;gap:18px;border:1px solid #b6d5d5;border-left:4px solid #197a7a;padding:14px 16px;margin-bottom:20px;background:#f1fafa}
.workflow-panel p{font-size:12px;line-height:1.5;margin:6px 0 0}.workflow-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}
.status-badge,.change-marker{display:inline-block;width:fit-content;border:1px solid #d4c285;background:#fff8de;color:#69530e;border-radius:4px;padding:3px 6px;font-size:11px;font-weight:500}
.change-marker{margin-left:10px}.review-changed{outline:2px solid #b79430;outline-offset:2px}
.cv-pending-change{outline:1px dashed #ac861f;outline-offset:2px}
.wide-dialog{max-width:1000px;max-height:90dvh;overflow:auto}.wide-dialog>.section-heading,dialog>.section-heading{margin-bottom:22px}
.admin-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:14px 0;border-bottom:1px solid var(--border);margin-bottom:24px}.admin-tabs [aria-pressed=true]{background:#edfafa;border-color:#167d7d}
.admin-card{border:1px solid var(--border);background:#fafcfc;border-radius:6px;padding:18px;margin:12px 0}.admin-card h3{font-size:17px;margin:0 0 8px}.admin-card>.status-badge{margin-left:12px}.admin-card>button{margin:4px 8px 4px 0}.admin-card p{line-height:1.6}.admin-card details{margin-top:12px}.admin-card summary{cursor:pointer}
.message-body,.review-comparison p{white-space:pre-wrap;overflow-wrap:anywhere}.request-closed{background:#f5f5f5}.user-row{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;text-align:left;margin:8px 0}.user-row span{font-size:12px;color:var(--muted)}
#user-form{border-top:1px solid var(--border);margin-top:24px;padding-top:18px}.profile-choice{display:flex;align-items:flex-start;gap:8px;line-height:1.5;font-weight:400;padding:5px 0}.profile-choice input{width:18px;flex:none;margin:1px 0}.profile-choice small{color:var(--muted)}
.review-change{border-bottom:1px solid var(--border);padding-bottom:18px;margin-bottom:20px}.review-change h3{font-size:16px;font-weight:500}.review-comparison{display:grid;grid-template-columns:1fr 1fr;gap:16px}.review-comparison>div{padding:14px;background:#f3f5f5;min-width:0}.review-comparison>div:last-child{background:#edf9f6}.review-comparison h4{margin:0;font-size:12px}.review-comparison p{font-size:13px;line-height:1.6;margin-bottom:0}.review-decision>label{margin-top:24px}
.search-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.search-tag{font-size:12px;border:1px solid #a7cece;border-radius:14px;background:#edfafa;padding:4px 9px}
@media(max-width:1100px){.topbar{gap:12px;padding:0 16px}.top-actions{gap:6px}.top-actions button{font-size:11px;padding:8px}.topbar #account-name{max-width:150px;white-space:normal}}
@media(max-width:900px){.topbar{height:auto;min-height:74px;padding:12px;flex-wrap:wrap}.top-actions{flex-wrap:wrap}.workflow-panel{display:block}.workflow-actions{margin-top:12px}.review-comparison{grid-template-columns:1fr}.auth-panel{margin:30px 16px}.user-row{display:block}.user-row span{display:block;margin-top:6px}}
@media print{#auth-panel,.workflow-panel{display:none!important}.cv-pending-change{outline:none!important}#application[hidden]{display:none!important}}
body.auth-page{min-height:100dvh;display:grid;place-items:center;padding:28px;background:#edf3f3;font-size:15px}
.auth-panel{box-sizing:border-box;width:min(460px,100%);max-width:460px;margin:0;padding:44px;border:1px solid #dce4e4;border-radius:12px;box-shadow:0 18px 70px #193e3e0b}
.auth-panel>img{object-fit:contain}.auth-panel .login-eyebrow{font-size:10px;letter-spacing:2px;color:#6b8383;margin:12px 0 32px}.auth-panel h1{font-size:27px;font-weight:500;line-height:1.2;margin:18px 0}.auth-panel p{font-size:13px;line-height:1.6;color:#637272}.auth-panel label{font-size:12px;font-weight:500;margin:18px 0 8px}.auth-panel input{padding:11px;margin:0 0 12px}.auth-panel form>button.primary{width:100%;padding:13px;margin-top:12px;background:#237e7e;border-color:#237e7e;color:#fff}.auth-panel .login-footnote{font-size:11px;margin:28px 0 0}.auth-panel .error{color:#a23454}
#account-open{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;border:0;border-left:1px solid #dfe6e6;border-radius:0;padding:5px 0 5px 16px;max-width:165px;flex-shrink:0;background:transparent}#account-open #account-name{font-size:12px;max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#account-role{font-size:10px;color:#718484}.topbar .app-name{font-size:12px;color:var(--muted)}
.account-dialog{max-width:500px;padding:28px}.account-dialog h3{font-size:16px;font-weight:500;margin-top:30px}.account-dialog form{margin-top:24px}.account-dialog p{line-height:1.5}.account-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.form-error{color:#a23454;font-size:12px;line-height:1.5}
body.account-window-open::before{content:'';position:fixed;inset:0;background:#15232c88;z-index:3000}
dialog.account-window{position:fixed;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;z-index:3001;max-height:calc(100dvh - 40px);overflow:auto}
@media(max-width:600px){.auth-panel{padding:26px}#account-open{margin-left:auto}.top-actions{order:3;width:100%;justify-content:flex-end}}
@media print{body.account-window-open::before{display:none!important}}
.share-dialog{width:min(620px,calc(100vw - 40px));padding:28px}.share-dialog p{font-size:13px;line-height:1.5}.share-dialog .share-actions{display:flex;align-items:center;gap:16px;margin-top:10px}.share-link{border-top:1px solid #dce4e4;padding:14px 0}.share-link p{margin:0 0 6px}#share-result{margin-top:20px;padding:16px;background:#effafa;border-radius:8px}#share-url{font-size:12px}#share-create{margin-top:16px}
.auth-panel .microsoft-login{width:100%;padding:13px;margin:12px 0 20px;background:#fff;border:1px solid #798787;font-weight:500}.auth-panel .microsoft-login:hover{background:#eefafa;border-color:#237e7e}#account-microsoft{border-top:1px solid #dce4e4;margin-top:24px;padding-top:4px}#account-microsoft h3{margin-top:18px}
.ai-dialog{max-width:820px}.ai-dialog h2{font-size:20px}.ai-dialog .section-heading{gap:20px;align-items:flex-start}.ai-dialog #ai-source-form{margin-top:20px}.ai-dialog #ai-result-form{border-top:1px solid var(--border);margin-top:28px;padding-top:20px}.ai-dialog fieldset{margin:16px 0}.ai-dialog #ai-warnings{padding-left:20px;line-height:1.6;color:#77501b}.ai-dialog .ai-evidence{margin:20px 0;padding:12px;border:1px solid var(--border);border-radius:4px}.ai-dialog blockquote{margin:8px 0 18px;padding-left:12px;border-left:3px solid var(--border);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.ai-import{width:100%;margin:0 0 16px}.ai-assignment{margin:8px 0 16px}.ai-dialog input,.ai-dialog textarea{max-width:100%}

.ai-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#edfaf9;border-color:#83c9c6;color:#285151;font-weight:500}.ai-button::before{content:"";width:18px;height:18px;flex-shrink:0;background:currentColor;mask:url("/assets/ai-sparkles.svg") center/contain no-repeat}.ai-button:hover{background:#d7f4f3;border-color:#148c8c}.ai-button.primary{background:#285f60;border-color:#285f60;color:white}.ai-button.primary:hover{background:#1c4e4f;border-color:#1c4e4f}
.cv-preview-stage{position:fixed;left:-20000px;top:0;visibility:hidden;pointer-events:none;contain:layout style paint}
@media screen{#cv-preview.cv-preview-windowed>.cv-sheet{content-visibility:auto;contain-intrinsic-size:auto 297mm}}
@media print{#cv-preview.cv-preview-windowed>.cv-sheet{content-visibility:visible}}

.library-create-actions{display:flex;gap:8px;margin-top:14px}.library-create-button{flex:1;min-width:0;padding:9px 7px;background:#edfaf9;border-color:#83c9c6;color:#285151;font-size:12px;font-weight:500;line-height:1.4}.library-create-button:hover{background:#d7f4f3;border-color:#148c8c}

.assignment-editor{border:1px solid var(--border);border-radius:5px;margin:10px 0;min-width:0}.assignment-editor>summary{padding:12px;cursor:pointer;font-size:13px;font-weight:500;overflow-wrap:anywhere}.assignment-editor>summary:focus-visible{outline:3px solid #148c8c;outline-offset:2px}.assignment-editor>fieldset{margin:0;border:0;border-top:1px solid var(--border)}.assignment-editor:has(.assignment-hidden)>summary::after{content:" \00b7 dolt";font-size:12px;color:#637272}

.auth-panel .entra-login-hint{font-size:12px;margin:10px 0 20px}.auth-panel .login-local-divider{text-align:center;font-size:12px;margin:20px 0}

.content-transfer-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}.content-transfer-items{max-height:260px;overflow:auto;padding-left:24px;line-height:1.6}.content-transfer-items li{margin:6px 0;overflow-wrap:anywhere}

.content-export-options{max-height:260px;overflow:auto;margin-top:14px}.content-export-choice{display:flex;align-items:flex-start;gap:10px;padding:9px 2px;border-bottom:1px solid var(--border);cursor:pointer}.content-export-choice input{width:18px;flex:none;margin:2px 0}.content-export-choice span{min-width:0;display:grid;gap:4px;overflow-wrap:anywhere}.content-export-choice small{font-weight:400;color:var(--muted)}

.top-create-actions{display:flex;gap:8px;margin-left:12px}.top-create-actions .library-create-button{flex:none;white-space:nowrap;padding:9px 13px}.top-create-actions:not(:has(button:not([hidden]))){display:none}#manage-users{display:block;width:100%;text-align:left;margin:18px 0 10px;padding:12px 16px}.cv-actions{position:relative}.cv-actions-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;padding:6px;background:#fff;border:1px solid var(--border);border-radius:6px;box-shadow:0 8px 28px #25383826;z-index:100}.cv-actions-menu button{display:block;width:100%;border:0;text-align:left;padding:11px 12px}.cv-actions-menu button:focus-visible{outline-offset:-3px}@media(max-width:1100px){.topbar{height:auto;min-height:74px;flex-wrap:wrap;gap:12px;padding:12px 18px}.top-create-actions{margin-left:0}.top-actions{flex-wrap:wrap;gap:8px}.topbar .app-name,.topbar .brand-divider{display:none}}

.top-actions #save-status{font-size:11px;color:var(--muted);margin-right:4px;max-width:190px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.cv-readonly-badge{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:400;color:var(--muted)}.cv-readonly-badge svg{width:12px;height:12px;flex-shrink:0}
#search-dialog[open]{display:flex;flex-direction:column;width:min(1000px,calc(100vw - 40px));height:min(720px,calc(100dvh - 40px));overflow:hidden}
#search-dialog>.section-heading,#search-dialog>label,#search-dialog>input,#search-dialog>.field-hint{flex-shrink:0}
#competence-results{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable}
@media(max-height:600px){#search-dialog{padding:16px}#search-dialog>.section-heading{margin-bottom:12px}#search-dialog>.field-hint{margin:6px 0 12px}}
/* Listor, flikar och laddningsstatus får inte flytta dialogens ram. */
#admin-dialog[open],#review-dialog[open],#inbox-dialog[open],.image-library-dialog[open],.ai-dialog[open],.share-dialog[open]{height:min(var(--dialog-height,760px),calc(100dvh - 40px));max-height:calc(100dvh - 40px);overflow:auto;scrollbar-gutter:stable}
#inbox-dialog,.share-dialog{--dialog-height:660px}
.cv-origin-dialog #cv-origin-status{min-height:1.5em}
