.work-header,.work-actions,.work-space-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.work-header{margin-bottom:24px}.work-header h1{font-size:32px;margin:4px 0}.work-muted{color:#7b8190;font-size:13px}.work-actions{justify-content:flex-start;flex-wrap:wrap}.work-button{border:1px solid #e0e1eb;background:white;border-radius:10px;padding:10px 14px;color:#333445;font:inherit;cursor:pointer}.work-button.primary{background:#7157e8;color:white;border-color:#7157e8}.work-button:disabled{opacity:.5;cursor:wait}.work-button.active{background:#eee9ff;color:#6645da}.work-board{margin-top:18px;min-height:70vh;background:radial-gradient(#dadbe7 1px,transparent 1px) 0 0/20px 20px;border:1px solid #e3e5ec;border-radius:20px;padding:24px;display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:22px;align-items:start;overflow:auto}.work-space{border:1px solid var(--space-color,#7661e8);border-radius:16px;background:color-mix(in srgb,var(--space-color,#7661e8) 7%,white);padding:18px;resize:both;overflow:auto;min-width:300px;min-height:200px;max-width:100%}.work-space h2{font-size:19px;margin:0}.work-space-head{margin-bottom:16px}.work-grip{cursor:grab;border:0;background:transparent;color:#817a9b;font-size:22px}.work-project{background:#ffffffaa;border-radius:12px;padding:12px;margin-top:14px}.work-project h3{font-size:14px;margin:0 0 10px}.work-task{display:flex;align-items:center;gap:10px;background:white;border:1px solid #e6e6ef;padding:12px;border-radius:10px;margin:7px 0}.work-task input{width:18px;height:18px;flex-shrink:0;accent-color:#7157e8}.work-task button{flex:1;text-align:left;border:0;background:transparent;font:inherit;color:#252536;cursor:pointer}.work-task small{display:block;color:#7c8194;margin-top:4px}.work-task.done{text-decoration:line-through;opacity:.65}.work-note{background:#fff3bd;border-radius:10px;padding:12px;margin:8px 0;white-space:pre-wrap}.work-note button{display:block;margin-top:8px}.work-empty{padding:32px;color:#747989;text-align:center}.work-error{padding:12px;background:#ffebeb;color:#992b35;border-radius:10px;margin:12px 0}.work-panel{position:fixed;right:0;top:0;bottom:0;margin:0;width:min(570px,100vw);max-height:100vh;border:0;border-left:1px solid #ddd;box-shadow:-10px 0 70px #0002;padding:28px;overflow:auto;color:#202131}.work-panel::backdrop{background:#080b1833}.work-panel label{display:block;font-size:13px;margin-top:16px}.work-panel input,.work-panel textarea,.work-panel select{display:block;box-sizing:border-box;width:100%;margin-top:7px;padding:11px;border:1px solid #dedfeb;border-radius:8px;font:inherit;background:white;color:#202131}.work-panel textarea{min-height:90px}.work-panel h2{margin:0;font-size:24px}.work-panel footer{position:sticky;bottom:-28px;background:white;padding:18px 0;display:flex;justify-content:flex-end;gap:10px}.work-history{border-top:1px solid #eee;padding:12px 0;font-size:12px;white-space:pre-wrap}.work-tag{font-size:11px;border-radius:12px;padding:3px 7px;background:#eee8ff;color:#6045bd}.work-danger{color:#a22f43!important}.work-status{font-size:12px;color:#71788a}.work-panel a{color:#6950cf}@media(max-width:700px){.work-board{display:block;padding:10px}.work-space{margin-bottom:14px;width:auto!important;resize:none;min-width:0}.work-header{align-items:flex-start;flex-direction:column}.work-header h1{font-size:27px}}
.work-canvas{display:contents}.work-board.work-freeform{display:block;height:72vh;padding:0;overflow:auto}.work-freeform .work-canvas{display:block;position:relative}.work-freeform .work-space{position:absolute;max-width:none;box-sizing:border-box}.work-board.work-focused{display:block}.work-focused .work-canvas{display:block}.work-focused .work-space{width:100%!important;resize:none}.work-space[hidden]{display:none}.work-canvas-tools{margin-top:18px}.work-focus-button{font-size:12px;padding:7px 10px}.work-space-head h2{overflow-wrap:anywhere}.work-grip{touch-action:none}.work-panel input[type=checkbox]{width:auto;display:inline-block}.work-panel{box-sizing:border-box;background:#fff}.work-board{box-sizing:border-box}.work-task button{overflow-wrap:anywhere;min-width:0}
/* The shared .content container owns page gutters; do not add a second layer. */
#workspacesView .work-board.work-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:12px;align-items:start}
#workspacesView .work-grid .work-space{position:static;width:auto!important;height:auto!important;min-width:0;resize:none;margin:0}
#workspacesView .work-grid .work-grip{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;padding:4px;cursor:grab}
#workspacesView .work-canvas-tools select{max-width:210px}
/* Native dialogs center within the viewport, including Safari's top layer. */
dialog.work-panel{position:fixed;inset:0;margin:auto;width:min(570px,calc(100vw - 32px));height:fit-content;max-height:calc(100dvh - 32px);border:1px solid #e5e7eb;border-radius:16px;padding:24px;box-shadow:0 24px 80px #10132130;overflow:auto;overscroll-behavior:contain}
dialog.work-panel footer{bottom:-24px;padding:16px 0;margin-top:8px;gap:8px}
@media(max-width:600px){dialog.work-panel{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px;border-radius:14px}dialog.work-panel footer{bottom:-20px}dialog.work-panel h2{font-size:21px}}
.content:has(>#workspacesView.active){padding:20px 28px 20px;max-width:none}
#workspacesView .work-header{margin-bottom:12px;flex-direction:row;align-items:center}
#workspacesView .work-header h1{font-size:23px;line-height:1.3;margin:0}
#workspacesView .work-button{font-size:12px;line-height:18px;padding:6px 10px;border-radius:8px;min-height:32px}
.work-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.work-filters{display:flex;gap:2px;padding:3px;border:1px solid #e4e5ed;border-radius:10px;background:#eceef3}
#workspacesView .work-filters .work-button{border:0;background:transparent;min-height:28px;padding:4px 9px;white-space:nowrap}
#workspacesView .work-filters .work-button.active{background:#fff;color:#634bd0;box-shadow:0 1px 4px #171a2312}
#workSearch{width:210px;min-width:130px;flex:0 1 210px}
#workspacesView .work-canvas-tools{margin:0 0 0 auto;gap:5px;flex-wrap:wrap;max-width:100%;font-size:11px;color:#777d8b}
#workspacesView .work-canvas-tools .work-button{padding:2px 7px;min-height:28px}
.work-help{cursor:help;font-size:15px;margin-right:3px}
#workspacesView .work-status{font-size:10px}
#workspacesView .work-board{margin-top:12px;min-height:0;border-radius:12px;padding:12px}
#workspacesView .work-board.work-freeform{height:calc(100dvh - 220px);min-height:320px;padding:0}
#workspacesView .work-space{padding:12px;border-radius:12px}
#workspacesView .work-space-head{gap:8px;margin-bottom:9px}
#workspacesView .work-space-head h2{font-size:16px}
#workspacesView .work-muted{font-size:11px}
#workspacesView .work-actions{gap:6px}
#workspacesView .work-project{padding:9px;margin-top:10px;border-radius:9px}
#workspacesView .work-project h3{font-size:12px;margin-bottom:6px}
#workspacesView .work-task{padding:7px 8px;margin:5px 0;gap:7px;border-radius:8px}
#workspacesView .work-task button{font-size:12px;line-height:1.4;padding:2px}
#workspacesView .work-task small{font-size:10px;margin-top:2px}
#workspacesView .work-task input{width:16px;height:16px}
@media(max-width:700px){.content:has(>#workspacesView.active){padding:14px 14px 20px}#workspacesView .work-header h1{font-size:21px}.work-toolbar{gap:8px}.work-filters{max-width:100%;overflow-x:auto}#workSearch{flex:1;width:auto}#workspacesView .work-status{display:none}#workspacesView .work-button{min-height:36px}#workspacesView .work-filters .work-button{min-height:32px}}
#workspacesView{padding:0;box-sizing:border-box}#workspacesView .work-header>div>p:first-child{margin-top:0}#workspacesView .work-header h1{letter-spacing:-.04em}#workspacesView .work-muted{line-height:1.5}.work-nav-icon{width:18px;height:18px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7}.report-cover{flex-wrap:wrap;gap:12px}@media(max-width:700px){.work-space-head{flex-wrap:wrap}}
#workspacesView .work-delete{border:0;background:transparent;color:#858998;cursor:pointer;padding:6px;flex:0 0 auto;border-radius:6px;line-height:1}
#workspacesView .work-delete:hover{color:#bf3545;background:#fff0f0}
#workspacesView .work-project h3{display:flex;align-items:center;justify-content:space-between}
#workspacesView .work-task>button.work-delete{flex:0 0 auto;width:auto;padding:6px}
#workspacesView .work-board.work-grouped{display:block}
#workspacesView .work-group{margin:0 0 18px}
#workspacesView .work-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
#workspacesView .work-group-toggle{border:0;background:transparent;font-size:14px;font-weight:650;color:inherit;padding:8px 2px;cursor:pointer;text-align:left}
#workspacesView .work-group-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:12px;align-items:start}
#workspacesView .work-group-grid[hidden]{display:none}
#workspacesView .work-group-move{color:#7157e8;background:#f3efff}
.work-icon{width:16px;height:16px;vertical-align:middle;flex-shrink:0}.work-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.work-space-head .work-participants{display:flex;gap:4px;flex:0 1 auto!important;flex-wrap:wrap}.work-avatar{width:28px;height:28px;border-radius:50%;border:1px solid #dcd6f8;background:#eeeaff;color:#6046bd;font:600 10px system-ui;cursor:pointer;object-fit:cover}
.work-title-button{appearance:none;border:0;background:transparent;color:inherit;font:inherit;text-align:left;padding:0;cursor:pointer;overflow-wrap:anywhere}
.work-title-button:hover{color:#634bd0}.work-title-button:focus-visible,.work-avatar:focus-visible{outline:2px solid #7157e8;outline-offset:3px}
.work-menu>button{display:flex;align-items:center;gap:6px;cursor:pointer}.work-menu-items[popover]{position:fixed;inset:auto;margin:0;width:230px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:6px;background:white;border:1px solid #e4e5ef;border-radius:10px;box-shadow:0 12px 35px #20203024;box-sizing:border-box}.work-menu-items:popover-open{display:flex;flex-direction:column;gap:2px}.work-menu-items button,#workspacesView .work-menu-items .work-button,#workspacesView .work-menu-items .work-delete{display:flex;align-items:center;gap:8px;text-align:left;width:100%;font:500 12px/1.4 system-ui;padding:9px 10px;border:0;border-radius:6px;min-height:34px;background:transparent;color:#333445;white-space:normal}.work-menu-items button:hover{background:#f2efff!important}.work-menu-items svg{flex-shrink:0;width:16px;height:16px}.work-space-head .work-menu{margin-left:auto;flex-shrink:0}.work-space-head>div:not(.work-menu){min-width:0;flex:1}#workspacesView .work-drop-target{outline:2px dashed #7157e8;background:#7157e812;border-radius:10px}#workspacesView .work-drop-denied{outline:2px dashed #c64c5b}.work-moving{pointer-events:none}
#workspacesView .work-freeform .work-group{padding:8px 12px;border-bottom:1px solid #e4e5ef}#workspacesView .work-freeform .work-group-grid.work-drag-surface{display:block;position:relative;gap:0}#workspacesView .work-freeform .work-drag-surface{position:relative}#workspacesView .work-freeform .work-space{resize:none;padding-bottom:26px}#workspacesView .work-moving{z-index:5;box-shadow:0 12px 30px #2222}.work-resize{position:sticky;float:right;bottom:-20px;margin-right:-8px;border:0;background:#fff9;color:#7157e8;cursor:nwse-resize;touch-action:none;padding:4px}.work-task-option{border-top:1px solid #ececf3;padding:10px 0}.work-task-option summary{cursor:pointer;font-size:13px;font-weight:600}.work-task-option[hidden]{display:none}.work-task-panel select.work-button{margin:16px 0 10px}.work-task-panel h2{font-size:19px}.work-task-panel label{margin-top:12px}
/* Goals preserve the current cards; focus contains references, never copies. */
.work-focus,.work-goal,.work-inbox{background:rgba(255,255,255,.8);border:1px solid #e4e2ef;border-radius:10px;padding:10px;margin-top:10px;min-width:0}
.work-focus-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.work-focus h3{margin:0;font-size:14px}
.work-goal>summary,.work-inbox>summary{cursor:pointer;font-size:13px;line-height:1.5}.work-goal>summary small{margin-left:8px;color:#73788b}
#workspacesView .work-avatar{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px!important;width:28px!important;height:28px!important;min-width:28px;padding:0!important;border-radius:50%;overflow:hidden;line-height:1}
#workspacesView .work-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.work-goal-outcome{background:#f3efff;border-radius:6px;padding:8px;font-size:12px}.work-focus-title{flex:1;min-width:0}.work-focus-title .work-button{display:block;text-align:left;border:0;background:none;padding:2px;font-size:13px}.work-focus-title .work-button+button{font-size:11px;color:#706984}.work-focus-controls{display:flex;gap:3px;flex-wrap:wrap}.work-focus-controls .work-button{padding:4px 6px;font-size:11px}.work-focus-choice{display:flex!important;align-items:center;gap:8px}.work-focus-choice input{width:auto!important}.work-focus-choice small{display:block;color:#73788b}.work-inbox .work-project{margin-top:8px}.work-create{margin-top:8px}
.work-focus-controls{flex:0 0 auto;white-space:nowrap;flex-wrap:nowrap;align-items:center}.work-focus-controls .work-button{flex:none;width:auto;overflow-wrap:normal;white-space:nowrap}.work-focus .work-task.done{text-decoration:none}.work-focus .work-task.done .work-focus-title>button:first-child{text-decoration:line-through}
