/* Work surfaces use the existing tide palette; compact lists, one primary task. */
.w-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.w-toolbar .button{padding:10px 12px!important;min-height:44px!important;font-size:14px!important}.w-dialog{width:min(700px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:18px;color:var(--ink);background:#fff;overflow:hidden}.w-dialog[open]{display:flex;flex-direction:column}.w-dialog::backdrop{background:#173e4670;backdrop-filter:blur(2px)}.w-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line);flex-shrink:0}.w-head h2{font-size:22px;line-height:1.4;margin:0;overflow-wrap:anywhere}.w-head .close-button{min-width:44px;min-height:44px}.w-body{overflow:auto;padding:20px;min-height:0;overscroll-behavior:contain;flex:1}.w-form-shell{display:flex;flex-direction:column;min-height:0;flex:1}.w-fields{display:flex;flex-direction:column;gap:18px}.w-body label{display:grid;gap:7px;margin:0;font-size:14px;color:var(--ink);min-width:0}.w-body input,.w-body textarea,.w-body select{width:100%;min-width:0;margin:0;min-height:46px;font:inherit;font-size:16px;padding:11px 12px;background:#fff;border:1px solid #cfdedc;border-radius:10px;color:var(--ink);box-sizing:border-box}.w-body input[type=checkbox]{width:21px;min-height:21px;height:21px;margin:2px 0;accent-color:var(--tide)}.w-body .w-check{display:flex;align-items:flex-start;gap:10px;line-height:1.7}.w-check span{flex:1}.w-foot{display:flex;gap:10px;padding:12px 20px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff;flex-shrink:0}.w-foot .button{min-height:48px}.w-foot .primary{flex:1}.w-item{width:100%;display:flex;align-items:center;text-align:left;gap:12px;padding:17px 0;border-bottom:1px solid var(--line);background:transparent;min-width:0}.w-item>span:first-child{flex:1;min-width:0}.w-item strong{display:block;overflow-wrap:anywhere;font-size:15px}.w-item small{display:block;color:var(--muted);font-size:12px;margin-top:6px;line-height:1.7;overflow-wrap:anywhere}.w-item .button{min-height:44px;padding:8px 11px;font-size:13px}.w-card{padding:16px;border:1px solid var(--line);border-radius:12px;margin:16px 0;background:#fbfdfd}.w-card h3{margin:0 0 10px;font-size:17px;overflow-wrap:anywhere}.w-card p,.w-body p{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.w-card small{color:var(--muted);font-size:12px}.w-empty{padding:34px 4px;font-size:14px;color:var(--muted);line-height:1.9}.w-note{color:var(--muted);font-size:13px!important}.w-warning{padding:12px;border:1px solid #ecd7ad;background:#fff9ee;color:#896526;border-radius:10px}.w-two{display:grid;grid-template-columns:1fr 1fr;gap:14px;min-width:0}.w-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.w-saved-filters{flex:1 1 100%;min-width:0;margin-top:10px;padding-top:12px;border-top:1px solid var(--line)}.w-saved-filters select{font-size:16px;min-height:46px;width:100%}.w-dialog #wError{margin:0;padding:10px 20px;max-height:100px;overflow:auto;flex-shrink:0}.w-dialog #wError:empty{display:none}#wPdfCanvas{display:block;max-width:100%;height:auto;margin:12px auto;background:#fff}#wPasskeyLogin{margin:12px 0 0;font-size:15px;min-height:46px}#wWorkMenu{margin:0 0 16px;padding:0;gap:8px}#wWorkMenu .button{flex:1;white-space:normal}
@media(max-width:760px){.w-dialog{position:fixed;top:var(--m-vtop,0px);left:0;right:0;bottom:auto;margin:0;width:100%;max-width:none;height:var(--m-vh,100dvh);max-height:var(--m-vh,100dvh);border:0;border-radius:0}.w-head{padding:12px 16px}.w-head h2{font-size:20px}.w-body{padding:16px}.w-foot{padding:12px 16px max(12px,env(safe-area-inset-bottom))}.w-body .button,.w-body .text-button{min-height:44px}.w-item{flex-wrap:wrap}.w-dialog #wError{padding:10px 16px}#wWorkMenu .button{font-size:13px!important;padding:9px 8px!important}.w-card{padding:14px}.w-body details summary{min-height:44px;padding:10px 0}}
@media(prefers-reduced-motion:reduce){.w-dialog *{animation:none!important;transition:none!important}}
.w-space-home{margin:0 0 14px;padding:18px;border:1px solid #d9e6e7;border-radius:20px;background:linear-gradient(145deg,#f8fcfc,#edf7f6)}.w-space-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.w-space-head small{color:#527070}.w-space-head h2{margin:2px 0 0;font-size:22px}.w-space-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.w-space-stats>button,.w-space-stats>span{border:0;border-radius:14px;background:#fff;padding:12px;text-align:left;color:inherit}.w-space-stats b{display:block;font-size:22px}.w-space-stats span span,.w-space-stats button span{display:block;font-size:12px;color:#637878;margin-top:3px}.w-space-list{display:grid;gap:8px}.w-space-row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;border:0;border-top:1px solid #dce8e8;background:transparent;padding:12px 2px;text-align:left;color:inherit}.w-space-row strong,.w-space-row small{display:block}.w-space-row small{margin-top:4px;color:#647979}.w-flow{display:flex;gap:4px;overflow:auto;padding:4px 0 14px}.w-flow-step{white-space:nowrap;padding:7px 10px;border-radius:999px;background:#eef2f2;color:#687979;font-size:12px}.w-flow-step.current{background:#d8f1ed;color:#075e59;font-weight:700}.w-flow-step.done{background:#087f78;color:#fff}@media(max-width:600px){.w-space-home{margin:-2px -2px 12px;padding:14px;border-radius:16px}.w-space-head h2{font-size:20px}.w-space-stats{gap:6px}.w-space-stats>button,.w-space-stats>span{padding:10px 8px}.w-space-stats b{font-size:19px}.w-space-row{min-height:62px}.w-flow{margin-right:-16px;padding-right:16px}}
