.work-paper-scroll{overflow:auto;background:#edf0f6;padding:20px;border-radius:12px}
.work-paper{box-sizing:border-box;width:760px;min-height:970px;margin:auto;padding:26px;background:white;color:#17213c;font:12px/1.5 'Segoe UI',Arial,sans-serif;display:flex;flex-direction:column;box-shadow:0 8px 30px #17213c12}
.work-paper *{box-sizing:border-box}
.work-paper .wo-head{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#010822;border-bottom:5px solid #00b0f0;margin:-26px -26px 0;padding:24px 26px;color:white}
.work-paper .wo-head img{width:90px;height:auto;object-fit:contain}
.work-paper .wo-head div{text-align:right}
.work-paper .wo-head h2{font-size:27px;color:white;margin:4px 0}
.work-paper .wo-head small{color:#b9c7df;font-size:10px;letter-spacing:1.7px;font-weight:700}
.work-paper p{margin:4px 0;overflow-wrap:anywhere}
.work-paper .wo-head p{color:#b9c7df}
.work-paper .wo-info{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:22px 0}
.work-paper .wo-info div:last-child{text-align:right}
.work-paper .wo-info small{display:block;letter-spacing:1.7px;color:#64748b;font-weight:700;font-size:10px}
.work-paper .wo-info b{font-size:15px;display:block}
.work-paper .wo-event{background:linear-gradient(110deg,#e8f8fe,#f8e9f4);border-left:4px solid #c90087;border-radius:8px;padding:12px 16px;margin-bottom:15px}
.work-paper .wo-event h3{font-size:17px;margin:0 0 4px;color:#17213c}
.work-paper .wo-event p{font-size:11px;color:#52617a}
.work-paper .wo-intro{margin:0 0 12px}
.work-paper table{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0 6px;font-size:11px}
.work-paper th{background:#17213c;color:white;font-size:10px;text-align:left;padding:10px 8px;border:0}
.work-paper td{padding:10px 8px;background:#f1f5fa;border:0;text-align:left;vertical-align:middle;overflow-wrap:anywhere}
.work-paper tr:nth-child(even) td{background:#e9eff6}
.work-paper th:first-child,.work-paper td:first-child{width:7%;text-align:center;border-radius:8px 0 0 8px}
.work-paper th:nth-child(2){width:34%}
.work-paper th:nth-child(3),.work-paper td:nth-child(3){width:7%;text-align:center}
.work-paper th:last-child,.work-paper td:last-child{border-radius:0 8px 8px 0}
.work-paper td b,.work-paper td small{display:block}
.work-paper td small{font-size:10px;color:#64748b;margin-top:3px}
.work-paper .wo-close{margin-top:auto;padding-top:22px}
.work-paper .wo-close>p:first-child{border-top:2px solid #c90087;padding-top:14px}
.work-paper .wo-close footer{position:static;display:flex;justify-content:space-between;border-top:2px solid #00b0f0;padding:12px 0 0;margin-top:18px;color:#64748b;font-size:10px;background:white}
dialog.catalog-dialog:has(.work-paper-scroll){width:min(960px,96vw);max-width:96vw}
.work-paper .wo-head{position:static;height:auto;min-height:130px;flex-shrink:0;overflow:visible}.work-paper .wo-head small{display:block}.work-paper .wo-head p{margin:4px 0;line-height:1.5}.work-paper section{flex-shrink:0}
/* Full workspace: familiar editing on the left, shared document on the right. */
dialog.catalog-dialog:has(.wo-workspace){width:100vw!important;max-width:100vw!important;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#edf0f6;overflow:auto}
dialog:has(.wo-workspace)>.panel-head{position:sticky;top:0;z-index:3;margin:0;padding:12px 24px;background:#010822;color:#65d8ff;border-bottom:3px solid #00b0f0;display:flex;justify-content:space-between;align-items:center;gap:12px}
dialog:has(.wo-workspace)>.panel-head h2{color:#65d8ff;font-size:22px;margin:0}
dialog:has(.wo-workspace)>.panel-head button{min-height:44px;background:#17213c;color:white}
.wo-workspace{max-width:1600px;margin:auto;padding:20px 24px;color:#17213c}
.wo-workspace-heading{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.wo-workspace-heading img{width:56px;background:#010822;border-radius:8px;padding:4px}
.wo-workspace-heading h2{font-size:21px;margin:0}.wo-workspace-heading p{margin:4px 0;color:#64748b}
.wo-workspace-columns{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:24px;align-items:start}
.wo-edit-panel{background:white;border-radius:16px;padding:20px;min-width:0}.wo-edit-panel h3{margin:0 0 8px}.wo-edit-panel small{color:#64748b}
.wo-edit-panel [data-work-row]{border:1px solid #d8e2f0;border-left:4px solid #00b0f0;border-radius:12px;background:#f3f7fc;margin-top:14px;padding:12px}

.wo-edit-panel summary{min-height:44px;font-weight:700;cursor:pointer;overflow-wrap:anywhere}
.wo-edit-panel label{display:block;margin:12px 0;font-size:14px}.wo-edit-panel label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px;min-height:44px;margin:4px 0}
.wo-edit-panel input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;margin:0;accent-color:#c90087}.wo-edit-panel input:not([type=checkbox]){width:100%;min-width:0;min-height:44px;margin-top:6px}
.wo-edit-panel [hidden]{display:none!important}.wo-edit-panel .creation-fields{display:grid;grid-template-columns:1fr;gap:0}
.wo-editor-actions{display:flex;flex-wrap:wrap;gap:8px}.wo-editor-actions button{min-height:44px}.wo-live-panel{min-width:0}.wo-live-panel>.eyebrow{margin:0 0 12px}.wo-live-document{width:100%;min-width:0}.wo-live-document .work-paper{margin:0 auto}
.wo-view-switch{display:none}
@media(max-width:850px){.wo-workspace{padding:16px}.wo-workspace-columns{grid-template-columns:minmax(0,1fr)}.wo-view-switch{display:flex;gap:8px;margin-bottom:16px}.wo-view-switch button{flex:1;min-height:44px;background:white;border:1px solid #cdd9e9;color:#17213c;border-radius:8px}.wo-view-switch button[aria-pressed=true]{background:#007fa8;color:white}.wo-workspace[data-view=edit] .wo-live-panel{display:none}.wo-workspace[data-view=preview] .wo-edit-panel{display:none}.wo-edit-panel{padding:16px}dialog:has(.wo-workspace)>.panel-head{padding:10px 16px}.wo-workspace-heading h2{font-size:19px}.wo-workspace-heading p{overflow-wrap:anywhere}}
dialog:has(.wo-workspace)>.panel-head{flex-wrap:wrap}dialog:has(.wo-workspace)>.panel-head h2{margin-right:auto}dialog:has(.wo-workspace)>.panel-head [data-return-event]{order:1}dialog:has(.wo-workspace)>.panel-head [data-close]{order:2}
@media(max-width:500px){dialog:has(.wo-workspace)>.panel-head h2{flex-basis:100%;font-size:20px}}
