.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.workspace-heading h2{margin:0}.workspace-heading p{margin:6px 0;color:#53667a}.workspace-actions,.workspace-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.workspace-status{display:block;min-height:24px;margin:8px 0;color:#365571;font-size:14px}.workspace-status[data-error=true]{color:#a52525}.workspace-subnav{display:flex;gap:8px;margin:0 0 18px}.workspace-subnav button[aria-selected=true]{background:#075f9e;color:white}.workspace-board{display:grid;grid-template-columns:repeat(5,minmax(210px,1fr));gap:12px;overflow:auto;padding:4px 2px 16px}.workspace-column{background:#edf3f9;border:1px solid #d9e5ee;border-radius:14px;padding:12px}.workspace-column h3{font-size:15px;margin:0 0 12px}.workspace-proposal{background:#fff;border:1px solid #d6e3ee;border-radius:12px;padding:14px;margin-bottom:12px;overflow-wrap:anywhere}.workspace-proposal h4{margin:0 0 8px}.workspace-proposal p{margin:6px 0;font-size:13px}.workspace-proposal button{margin-top:8px}.workspace-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.workspace-form label,.workspace-editor label{display:block;font-weight:600;font-size:14px}.workspace-form input,.workspace-form select,.workspace-form textarea,.workspace-editor input,.workspace-editor select,.workspace-editor textarea{box-sizing:border-box;width:100%;margin-top:5px}.workspace-form .workspace-wide{grid-column:1/-1}.workspace-dialog{border:none;border-radius:18px;box-shadow:0 18px 80px #09254455;width:min(640px,calc(100vw - 40px));max-height:85vh;padding:24px;overflow:auto}.workspace-dialog::backdrop{background:#08233b88}.workspace-dialog h2{margin-top:0}.workspace-note-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start}.workspace-sidebar{padding:16px!important}.workspace-sidebar select{width:100%;margin:8px 0}.workspace-pages{display:flex;flex-direction:column;gap:8px;margin:16px 0;max-height:55vh;overflow:auto}.workspace-page{width:100%;text-align:left!important;white-space:normal!important}.workspace-page[aria-current=true]{background:#075f9e;color:#fff}.workspace-editor{min-width:0;padding:18px!important}.workspace-editor textarea{min-height:180px;resize:vertical;line-height:1.6}.workspace-editor-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,250px);gap:12px;margin-bottom:12px}.workspace-tools{padding:12px 0}.workspace-tools label{display:flex;align-items:center;gap:6px;font-weight:400}.workspace-tools input[type=color]{width:40px;height:34px;padding:2px;margin:0}.workspace-tools input[type=checkbox]{width:auto;margin:0}.workspace-tools select{width:auto;max-width:150px;margin:0}.workspace-tools button[aria-pressed=true]{background:#075f9e;color:#fff}.workspace-canvas-wrap{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border:1px solid #c9d9e7;border-radius:8px;overflow:hidden;background:#fff;max-width:100%;position:relative}.workspace-canvas{-webkit-touch-callout:none;display:block;width:100%;height:auto;touch-action:none;user-select:none;-webkit-user-select:none}.workspace-canvas-wrap[data-mode=type] .workspace-canvas{touch-action:pan-y;cursor:default}.workspace-empty{text-align:center;padding:28px;color:#53667a}.workspace-note-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}.workspace-hint{font-size:13px;color:#53667a}.workspace-search{width:min(400px,100%);margin-bottom:14px}.nav button[data-view=notebook]:before{content:"▤"!important}
#pipelineBoard[hidden],#workspaceProposals[hidden],#workspaceNoteEditor[hidden],#workspaceNoteEmpty[hidden],#workspaceProposalDelete[hidden]{display:none!important}
.workspace-attachments{margin-top:24px;padding-top:16px;border-top:1px solid #d5e2ed}.workspace-attachments input{display:block;width:100%;margin:8px 0}.workspace-attachment{border:1px solid #d5e2ed;border-radius:10px;margin-top:10px;padding:12px;overflow-wrap:anywhere}.workspace-dialog textarea{width:100%;box-sizing:border-box}.workspace-attachment .workspace-actions{margin-top:8px}
@media(max-width:1000px){.workspace-note-layout{grid-template-columns:190px minmax(0,1fr)}.workspace-editor-header{grid-template-columns:1fr}.workspace-board{grid-template-columns:repeat(5,220px)}}
@media(max-width:700px){.workspace-note-layout{grid-template-columns:1fr}.workspace-pages{max-height:180px}.workspace-form{grid-template-columns:1fr}.workspace-editor{padding:12px!important}.workspace-dialog{padding:16px}.workspace-board{grid-template-columns:1fr}.workspace-tools{gap:6px}.workspace-tools button{min-height:40px}.workspace-note-footer{flex-direction:column}}

#notebook.workspace-expanded{display:block!important;position:fixed!important;inset:0!important;z-index:2147483000;background:#f4f8fc;padding:18px;overflow:auto;box-sizing:border-box;margin:0!important;width:100%!important;max-width:none!important;height:100dvh}#notebook.workspace-expanded .workspace-heading{position:sticky;top:-18px;z-index:2;background:#f4f8fc;padding:12px 0}#notebook.workspace-expanded .workspace-note-layout{grid-template-columns:minmax(0,1fr)}#notebook.workspace-expanded .workspace-sidebar{display:none}#notebook.workspace-expanded .workspace-editor{width:100%;box-sizing:border-box}#notebook.workspace-expanded .workspace-canvas-wrap{width:100%}

/* Handwriting conversion deferred for this release. */
#workspaceConvert, #workspaceTranscriptDialog { display:none !important; }

/* 6 proposal stages always remain in one horizontally scrollable row */
.workspace-board{display:grid!important;grid-template-columns:repeat(6,minmax(230px,1fr))!important;overflow-x:auto!important;overflow-y:visible!important;align-items:start!important;max-width:100%!important;gap:12px!important;-webkit-overflow-scrolling:touch!important}.workspace-board>.workspace-column{min-width:0!important}
@media(max-width:1000px){.workspace-board{grid-template-columns:repeat(6,230px)!important}}

/* Keep typed notes visible and comfortably editable in expanded iPad/desktop notebook. */
#notebook.workspace-expanded #workspaceTypedNotes{display:block!important;width:100%!important}
#notebook.workspace-expanded #crmTypedPanel:not([hidden]){display:block!important}
#notebook.workspace-expanded #workspacePageBody{display:block!important;width:100%!important;min-height:55vh!important;height:65vh;max-height:none;resize:vertical;box-sizing:border-box}
#notebook.workspace-expanded .workspace-editor{max-width:none!important}

.workspace-contact-actions .comm-links,.workspace-proposal .comm-links{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.workspace-contact-actions .comm-links a,.workspace-proposal .comm-links a{padding:7px 10px;background:#e8f0f8;border-radius:8px}
