/* MusicianCV V008: independent document workspace styles; original visual system untouched */
#v008-library { margin: 18px 0 28px; padding: clamp(14px,3.5vw,24px);border:1px solid #55764c;border-radius:19px;background:linear-gradient(150deg,#10271c,#081711);color:#e6f0de;box-shadow:0 8px 28px #0004; }
#v008-library .v008-head,.v008-modal .v008-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
#v008-library .v008-head small,.v008-modal .v008-head small{color:#d6ad55;letter-spacing:.12em;font-size:11px}
#v008-library h2,.v008-modal h2{font-size:clamp(18px,4vw,24px);margin:5px 0 8px;color:#eef4e6}
#v008-library p,.v008-modal p{line-height:1.5;font-size:13px;color:#b9ccb7;margin:8px 0 12px}
#v008-library .v008-actions,.v008-modal .v008-actions{display:flex;flex-wrap:wrap;gap:8px}
#v008-library button,.v008-modal button{border:1px solid #5a7655;border-radius:11px;min-height:39px;padding:8px 12px;background:linear-gradient(#2d4635,#18291e);color:#e9f2dc;font-weight:650;cursor:pointer;font-size:12px}
#v008-library button.primary,.v008-modal button.primary{color:#14200d;background:linear-gradient(#e3c36a,#bba05d);border-color:#c7af65}
#v008-library .v008-doc-head{margin:22px 0 10px;padding-top:15px;border-top:1px solid #4a6048}
#v008-library .v008-doc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#v008-library .v008-doc{min-width:0;padding:13px;border:1px solid #455c47;border-radius:14px;background:linear-gradient(125deg,#1a3323,#13251a)}
#v008-library .v008-doc h3{font-size:14px;line-height:1.35;color:#e9eccc;margin:0 0 6px}
#v008-library .v008-doc p{font-size:12px;min-height:40px;margin-bottom:9px}
#v008-library .v008-doc button{width:100%;background:#304535}
#v008-library .v008-status{min-height:18px;color:#ecd48a}
#v008-library .v008-tip{font-size:11px;color:#9db49b}
.v008-modal{border:1px solid #57764e;background:#10261b;color:#e9f2e4;border-radius:18px;max-width:min(900px,96vw);width:95%;max-height:92dvh;overflow:auto;padding:18px;box-shadow:0 20px 70px #000a}
.v008-modal::backdrop{background:rgba(0,0,0,.72)}
.v008-modal [data-x]{font-size:24px;background:#243c2a;padding:0 13px;flex-shrink:0}
.v008-modal .v008-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:14px 0}
.v008-modal label{display:block;min-width:0;font-size:12px;color:#d3e3d1}
.v008-modal label span{display:block;margin-bottom:5px}
.v008-modal input,.v008-modal textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid #5a7754;border-radius:8px;padding:9px;background:#f6f8ef;color:#112118;font:inherit;font-size:14px}
.v008-modal textarea{resize:vertical;min-height:65px}
@media(max-width:540px){#v008-library .v008-doc-grid,.v008-modal .v008-edit-grid{grid-template-columns:1fr}#v008-library{padding:12px}#v008-library .v008-doc p{min-height:0}}/* V009: scoped layout, keyboard focus and touch controls */
#v008-library,.v008-modal,.v008-modal *{box-sizing:border-box}
#v008-library button,.v008-modal button,.v008-modal summary,.v009-download{min-height:44px;touch-action:manipulation}
#v008-library button:focus-visible,.v008-modal :is(button,input,textarea,summary,a):focus-visible{outline:3px solid #f0cb70;outline-offset:3px}
.v008-modal{width:min(920px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:90dvh;padding:16px;overscroll-behavior:contain;scrollbar-gutter:stable}
.v008-modal .v008-head{position:sticky;top:-16px;padding:12px 0;background:#10261b;z-index:2;border-bottom:1px solid #496443}
.v008-modal .v008-head h2{overflow-wrap:anywhere}
.v008-modal .v008-edit-form>.v008-actions{position:sticky;bottom:-16px;background:#10261b;padding:12px 0;margin:0;z-index:2;border-top:1px solid #496443}
.v008-modal .v008-edit-grid{margin:10px 0;align-items:start;gap:12px}
.v008-modal .v008-edit-grid label{margin:0;padding:0;min-width:0;display:block}
.v008-modal input,.v008-modal textarea{font-size:16px;min-height:44px;margin:0;line-height:1.45}
.v008-modal textarea{min-height:100px}
.v009-field-group{margin:10px 0;border:1px solid #496443;border-radius:10px;padding:0 10px}
.v009-field-group summary{cursor:pointer;padding:12px 0;font-weight:700;color:#e5c978;line-height:1.4}
#v008-library .v008-doc{display:flex;flex-direction:column}
#v008-library .v008-doc button{margin-top:auto}
#v008-library .v008-actions>*{flex:1 1 170px}
#v008-library :is(p,h2,h3),.v008-modal p{overflow-wrap:anywhere}
.v009-download{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:#dfbd69;color:#14200d;padding:10px 20px;text-decoration:none;font-weight:700}
.v009-pages{display:grid;gap:14px;margin:14px 0}
.v009-pages img{display:block;max-width:100%;width:100%;height:auto;background:white;box-shadow:0 2px 12px #0005}
@media(min-width:1100px){#v008-library .v008-doc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:540px){.v008-modal{padding:12px}.v008-modal .v008-head{top:-12px}.v008-modal .v008-edit-form>.v008-actions{bottom:-12px}.v008-modal .v008-actions>*{flex:1 1 130px}}
/* Shared profile and document-specific workspace */
#v008-library .ws-workspace-heading{max-width:700px;margin-bottom:24px}#v008-library .ws-workspace-heading h2{font-size:clamp(24px,4vw,34px);line-height:1.2}#v008-library .ws-workspace-heading small{color:#dab66e;font-size:10px;letter-spacing:.13em}.ws-source-card{padding:22px;border:1px solid #688264;border-radius:14px;background:linear-gradient(120deg,#253d2c,#13291d);position:relative}.ws-step{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;background:#c9a35b;color:#162b20;font-weight:bold;border-radius:8px;font-size:12px}.ws-source-card h3,.ws-doc-heading h3{display:inline;margin-left:10px}.ws-doc-heading{margin:28px 0 16px}.ws-document-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.ws-document-card{padding:14px;border:1px solid #4a6751;border-radius:12px;background:#14291e;display:flex;flex-direction:column;min-width:0}.ws-document-card h3{font-size:16px;margin:16px 0 0}.ws-document-card>p{flex:1}.ws-document-thumbnail{height:112px;overflow:hidden;background:#eff2e8;color:#193628;padding:13px 15px;border-radius:4px;font-size:10px;box-shadow:0 5px 10px #0003;position:relative}.ws-document-thumbnail span{display:block;font-weight:bold;border-bottom:2px solid #bb984c;padding-bottom:9px;margin-bottom:10px}.ws-document-thumbnail i{display:block;height:3px;background:#bdcabe;width:85%;margin:8px 0}.ws-document-thumbnail i:nth-child(even){width:65%}.ws-thumb-epk,.ws-thumb-portfolio{background:linear-gradient(110deg,#c6ac71 0%,#c6ac71 32%,#1b4738 32%,#1b4738 100%);padding-left:40%;color:#f2eedf}.ws-thumb-budget i,.ws-thumb-payment i,.ws-thumb-setlist i,.ws-thumb-rider i{height:10px;margin:2px 0;width:100%!important;background:repeating-linear-gradient(90deg,#d3dfd3 0,#d3dfd3 26%,#f9faf3 26%,#f9faf3 28%)}.ws-thumb-letter{font-family:serif;padding:16px 25px}.ws-thumb-letter span{text-align:center;border:0}.ws-thumb-stage{background:repeating-linear-gradient(90deg,#eef3e9,#eef3e9 28px,#cedccf 29px)}.ws-thumb-stage i{display:inline-block;width:24px!important;height:18px;margin:10px;border:1px solid #637c61}.ws-legacy{margin:24px 0;border:1px solid #536a50;padding:18px;border-radius:12px}.ws-legacy>summary{cursor:pointer;font-weight:bold;min-height:32px}.ws-source-note{padding:12px;background:#263e2e;border:1px solid #536f50;border-radius:8px}.ws-profile .ws-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ws-field{display:flex;flex-direction:column;gap:6px;min-width:0}.ws-field span{font-size:13px;color:#d6e5d3}.ws-field input,.ws-field textarea{width:100%;min-width:0;font-size:16px;min-height:44px;background:#0e2317;color:#f1f4e9;border:1px solid #66805e;border-radius:8px;padding:10px}.ws-tabs,.ws-grid-tools,.ws-output-tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.ws-profile .ws-extra-group{padding:14px;border:1px solid #55714d;border-radius:10px;margin:10px 0}.ws-extra-group>summary{cursor:pointer;font-weight:bold;padding:8px 0}.ws-grid-scroll{overflow-x:auto;max-width:100%;border:1px solid #546e4d;border-radius:8px}.ws-grid{border-collapse:collapse;min-width:850px;width:100%}.ws-grid th,.ws-grid td{padding:6px;border:1px solid #39533e;text-align:left;font-size:12px;vertical-align:top}.ws-grid th{background:#273f2c;color:#e7e8ca;white-space:nowrap}.ws-grid input{width:120px;min-width:90px;height:44px;font-size:16px;border:1px solid #526c49;background:#0c2214;color:#ecf4e4;border-radius:4px;padding:6px}.ws-grid td:nth-child(2) input{width:180px}.ws-row-actions{white-space:nowrap}.ws-row-actions button{min-width:44px;min-height:44px;margin:0 3px}.ws-grid-status{font-variant-numeric:tabular-nums;font-weight:bold;line-height:1.5}.ws-error{color:#ffb4a4!important}.ws-number{white-space:nowrap;text-align:right!important}.ws-hint{font-size:12px!important}.ws-dialog{width:min(1120px,calc(100vw - 16px));max-width:calc(100vw - 16px);max-height:94dvh}.ws-output{padding:20px!important}.ws-preview{background:#a9b2a9;border-radius:8px;padding:10px 0;overflow:hidden}.ws-page-wrap{margin:12px auto;overflow:hidden;box-shadow:0 3px 14px #0003}.ws-page-wrap .ws-paper{transform-origin:top left}.ws-measure{position:fixed;left:-10000px;top:0;width:794px;z-index:-10}.ws-print-frame{position:fixed;left:-10000px;top:0;width:794px;height:1123px}.ws-profile-main .career-grid{grid-template-columns:minmax(0,1fr)}.ws-profile-main .career-preview{display:none}.ws-profile-main .career-top-tools>label{display:none}.ws-profile-main .career-form{max-height:none}.ws-profile-main{width:min(1100px,calc(100vw - 16px))}.ws-profile-main .career-thumbbar{display:none}.ws-profile button,.ws-dialog button,#v008-library button{min-height:44px}.ws-profile input,.ws-profile textarea{font-size:16px}.ws-profile .career-grid>*{min-width:0}.ws-profile .career-form{overflow-x:hidden} .ws-profile-main .career-grid{padding-bottom:0}
@media(max-width:800px){.ws-document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ws-profile .ws-fields{grid-template-columns:1fr}.ws-source-card{padding:15px}.ws-source-card h3,.ws-doc-heading h3{font-size:16px}.ws-output{padding:10px!important}}
@media(max-width:430px){.ws-document-grid{grid-template-columns:1fr 1fr;gap:8px}.ws-document-card{padding:10px}.ws-document-card h3{font-size:14px}.ws-document-thumbnail{height:92px;padding:10px}.ws-thumb-epk,.ws-thumb-portfolio{padding-left:40%}#v008-library .ws-document-card p{font-size:12px}.ws-document-card button{font-size:12px;padding:6px!important}.ws-source-card h3{display:block;margin:10px 0}.ws-profile .ws-extra-group{padding:8px}}
.ws-stage-editor{height:300px;margin:30px 45px;position:relative;border:2px solid #9ca975;background:repeating-linear-gradient(0deg,#162f20,#162f20 28px,#2d4833 29px)}.ws-stage-handle{position:absolute;transform:translate(-50%,-50%);touch-action:none;max-width:110px;font-size:12px!important;z-index:1}.ws-stage-handle:focus{outline:3px solid #e1bb67;z-index:2}.ws-sample-button{background:transparent!important;border-color:#657959!important;margin-top:7px;color:#cbd8bb!important}
.ws-real-thumbnail{height:152px;overflow:hidden;background:#b5beb2;border-radius:5px;position:relative;display:flex;justify-content:center}.ws-real-thumbnail .ws-mini-paper{position:absolute;top:9px;transform:scale(.21);transform-origin:top center;margin:0;box-shadow:0 0 25px #0003}.ws-mini-paper>*{pointer-events:none}@media(max-width:430px){.ws-real-thumbnail{height:120px}.ws-real-thumbnail .ws-mini-paper{transform:scale(.15)}}
.ws-file-ready{padding:12px;border:1px solid #d0ad67;border-radius:8px;margin:10px 0;background:#193727}.ws-file-ready a{display:block;overflow-wrap:anywhere;color:#f3e1a8;min-height:44px;line-height:1.5;padding:10px}
