/* Mobile's approved blue palette is scoped; the desktop theme remains independent. */
.workspace-header .nm-qr-launch{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;min-width:44px;height:40px;min-height:40px;padding:8px;border:1px solid var(--nuvile-border,#dce4ee);border-radius:6px;background:var(--nuvile-paper,#fff);color:var(--nuvile-primary,#164ba2)}
.mobile-qr-section>[data-action=reopen]{display:block;margin:12px auto}
.attachment-mobile-tools{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}.attachment-mobile-tools [data-mobile-request]{flex-basis:100%;padding:12px;background:#eaf1ff;border-radius:10px}.attachment-mobile-tools [data-mobile-request]:empty{display:none}.attachment-capture-qr{display:block;width:150px;height:150px;background:white;margin:12px auto}#mobile-capture-notice{margin:16px 18px 0}#mobile-capture-notice .mobile-item+button{margin-top:8px}
.nuvile-mobile-body{--nuvile-primary:#164ba2;--nuvile-primary-hover:#103c85;--nuvile-soft:#eaf1ff;--nuvile-border:#dce4ee;--nuvile-paper:#fff;--nuvile-muted:#54647a;margin:0;background:#f3f6fa;color:#182b45;font:15px/1.5 system-ui,sans-serif}
.nuvile-mobile-body *{box-sizing:border-box}.nuvile-mobile-body [hidden]{display:none!important}.nuvile-mobile-body button,.nuvile-mobile-body input,.nuvile-mobile-body select{font:inherit}.nuvile-mobile-body button{cursor:pointer}.nuvile-mobile-body button:disabled{cursor:default;opacity:.6}.nuvile-mobile-body button:focus-visible,.nuvile-mobile-body input:focus-visible,.nuvile-mobile-body select:focus-visible{outline:3px solid #164ba2;outline-offset:2px}
.mobile-app{max-width:540px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column;background:#f3f6fa}.mobile-header{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:14px 20px;border-bottom:1px solid #dce4ee;gap:12px}.mobile-header>div{display:flex;align-items:center;gap:12px}.mobile-header img{object-fit:contain}.mobile-header span{font-size:11px;letter-spacing:1.5px;color:#54647a}.mobile-company{margin:16px 18px 0;display:grid;grid-template-columns:1fr auto;gap:0 12px;text-align:left;background:#fff;border:1px solid #dce4ee;border-radius:12px;padding:12px 16px;color:#182b45;min-height:60px}.mobile-company>span:first-child{font-size:12px;color:#54647a}.mobile-company strong{grid-column:1;overflow-wrap:anywhere}.mobile-company>span:last-child{grid-column:2;grid-row:1/3;align-self:center}.mobile-app main{padding:24px 18px;flex:1;min-width:0}.mobile-app h1{font-size:25px;line-height:1.2;letter-spacing:-.5px;margin:0 0 10px}.mobile-app h2{font-size:18px;margin:0 0 8px}.mobile-app p{color:#54647a;margin:8px 0 20px}.mobile-badge{display:inline-block;border-radius:30px;padding:4px 10px;color:#164ba2;background:#eaf1ff;font-size:12px;margin-bottom:18px}.mobile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0}.mobile-action{padding:18px;text-align:left;border:1px solid #dce4ee;border-radius:14px;background:#fff;color:#182b45;min-height:116px;display:flex;flex-direction:column;gap:6px}.mobile-action strong{font-size:16px}.mobile-action span,.mobile-action small{font-size:12px;color:#54647a}.mobile-action[data-future]{opacity:1;background:#f3f6fa;border-style:dashed;min-height:98px}.mobile-main,.mobile-secondary{border:1px solid #dce4ee;border-radius:10px;padding:12px 16px;min-height:44px;font:inherit;background:#fff;color:#182b45}.mobile-main{background:#164ba2;border-color:#164ba2;color:#fff}.mobile-app .mobile-main{width:100%}.mobile-note{background:#eaf1ff;border-radius:12px;padding:16px;margin:16px 0;color:#182b45}.mobile-note p{margin:4px 0;color:inherit}.mobile-list{display:flex;flex-direction:column;gap:10px;margin:20px 0}.mobile-item{display:block;text-align:left;width:100%;border:1px solid #dce4ee;border-radius:12px;background:#fff;color:#182b45;padding:16px;min-height:60px;overflow-wrap:anywhere}.mobile-item span,.mobile-item small{display:block;color:#54647a;font-size:13px}.mobile-list article{padding:16px;background:#fff;border:1px solid #dce4ee;border-radius:12px}.mobile-list article button{margin-top:12px}.mobile-bottom{position:sticky;bottom:0;display:flex;background:#fff;border-top:1px solid #dce4ee;padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:8px}.mobile-bottom button{flex:1;border:0;border-radius:10px;background:#fff;padding:12px 4px;min-height:44px;font:inherit;color:#54647a}.mobile-bottom button[aria-current=page]{background:#eaf1ff;color:#164ba2}#mobile-status{padding:0 18px;overflow-wrap:anywhere}.mobile-paging{display:flex;justify-content:space-between;gap:8px}.mobile-app ol{padding-left:22px}.mobile-app li{margin-bottom:12px}.mobile-error{background:#fff1ee;padding:14px;border-radius:10px;color:#a52d22!important}
/* Shared Attachments owns camera, preview and upload on both platforms. */
.attachment-modal{box-sizing:border-box;display:flex;flex-direction:column;padding:0;max-width:min(900px,calc(100vw - 24px));max-height:calc(100dvh - 24px);width:780px;border:1px solid #dce4ee;border-radius:14px;background:#fff;color:#182b45}.attachment-modal:not([open]){display:none}.attachment-modal>.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;min-height:52px;flex-shrink:0;height:auto;background:#164ba2;color:#fff}.attachment-modal .dialog-head strong{overflow-wrap:anywhere}.attachment-modal .confirmation-content{padding:18px;overflow:auto;min-height:0;flex:1}.attachment-modal .attachment-footer{border-top:1px solid #dce4ee;display:flex;justify-content:flex-end;padding:12px 18px;flex-shrink:0;background:#fff}.attachment-modal .attachment-footer .primary{margin:0;width:auto;padding:10px 16px;min-height:44px;background:#164ba2;color:#fff;border:0;border-radius:8px;font:inherit}.attachment-modal label{display:block;margin:12px 0;font-size:14px;color:#182b45}.attachment-modal input,.attachment-modal select{display:block;max-width:100%;width:100%;min-height:44px;padding:9px;border:1px solid #dce4ee;border-radius:8px;font:inherit;box-sizing:border-box;color:#182b45;background:#fff}.attachment-modal .attachment-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #dce4ee}.attachment-modal .attachment-row>div{flex:1;min-width:130px;overflow-wrap:anywhere}.attachment-modal .attachment-row small{display:block}.attachment-modal button.outline,.attachment-modal a.outline{border:1px solid #dce4ee;border-radius:8px;background:#fff;padding:10px 12px;color:#164ba2;min-height:44px;text-decoration:none;font:inherit}.attachment-modal [data-preview]{margin-top:18px;overflow-wrap:anywhere}.attachment-modal [data-preview]>strong{display:block;margin-bottom:10px}.attachment-modal [data-preview] img{display:block;width:auto;max-width:100%;max-height:480px;object-fit:contain;margin:auto}.attachment-modal [data-preview] iframe{display:block;width:100%;height:420px;border:1px solid #dce4ee}.attachment-modal .error{background:#fff1ee;color:#a52d22;padding:12px;border-radius:8px}.attachment-modal .dialog-head>button{background:transparent;color:inherit;border:1px solid #ffffff70;border-radius:8px;min-width:44px;min-height:44px;font:inherit}.attachment-modal .attachment-camera{background:#eaf1ff;padding:12px;border-radius:10px}.attachment-modal .nv-window-help{flex-shrink:0}
.mobile-desktop-window{position:fixed;left:min(270px,10vw);top:100px;width:900px;height:650px;max-width:calc(100% - min(270px,10vw) - 16px);max-height:calc(100% - 80px);min-width:300px;min-height:300px;display:flex;flex-direction:column;resize:both;overflow:hidden;background:#fff;border:1px solid var(--nuvile-border,#dce4ee);border-radius:12px;box-shadow:0 15px 45px #0002}.mobile-desktop-window>header{height:44px;min-height:44px;padding:0 16px;gap:10px;flex-shrink:0;cursor:move}.mobile-desktop-window>header>strong{flex:1}.mobile-desktop-window>main{padding:18px;min-height:0;overflow:auto;flex:1}.mobile-desktop-window>footer{padding:12px 18px;border-top:1px solid #dce4ee;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;gap:8px;background:#fff}.mobile-desktop-window .mobile-tabs{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}.mobile-desktop-window .mobile-qr{display:block;width:220px;max-width:100%;height:auto;margin:14px auto;background:#fff}.mobile-desktop-window .mobile-qr-section{max-width:420px;margin:auto;text-align:center}.mobile-desktop-window h2{font-size:22px;margin:0 0 8px}.mobile-desktop-window .mobile-list{margin:16px 0}.mobile-desktop-window .mobile-item{font:inherit}.mobile-desktop-window .mobile-item:hover{background:#eaf1ff}.mobile-desktop-window .mobile-tabs button[aria-pressed=true]{background:#eaf1ff;border-color:#164ba2;color:#164ba2}.mobile-desktop-window [data-message]{font-size:13px;margin:0;overflow-wrap:anywhere}.mobile-confirm{padding:0;border:1px solid #dce4ee;border-radius:12px;max-width:min(440px,calc(100vw - 24px));background:#fff;color:#182b45}.mobile-confirm>header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#164ba2;color:#fff;gap:12px}.mobile-confirm>p{padding:18px;margin:0}.mobile-confirm>footer{display:flex;gap:8px;justify-content:flex-end;padding:12px 16px;border-top:1px solid #dce4ee}
.mobile-header>div{flex:1}.mobile-header .nv-window-help{order:3;margin-left:auto;flex-shrink:0;border:1px solid #dce4ee;border-radius:9px;background:#fff;color:#164ba2;min-height:44px;padding:8px 10px;display:flex;align-items:center;gap:5px;letter-spacing:normal}.mobile-header .nv-window-help span{letter-spacing:normal;color:inherit;font-size:13px}#mobile-status:empty{display:none}
.mobile-desktop-window{font:14px/1.5 "Segoe UI",sans-serif;box-sizing:border-box}.mobile-desktop-window>header{display:flex;align-items:center;gap:6px}.mobile-desktop-window>header>strong{min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mobile-desktop-window>header button{flex-shrink:0;min-height:28px;min-width:28px;width:auto;margin:0;padding:4px 7px;border:1px solid #dce4ee;border-radius:6px;background:#fff;color:#182b45;font:inherit}.mobile-desktop-window>header .nv-window-help{display:flex;align-items:center;gap:4px}.mobile-desktop-window>header .nv-window-help span{font-size:12px}
@media(max-width:700px){.mobile-desktop-window{left:8px;top:16px;width:calc(100% - 16px);height:calc(100dvh - 80px)}.attachment-modal{width:calc(100vw - 16px);max-width:calc(100vw - 16px)}.attachment-modal>.dialog-head{flex-wrap:wrap}.attachment-modal>.dialog-head strong{flex:1;min-width:150px}.attachment-modal [data-preview] iframe{height:330px}.mobile-desktop-window>footer{align-items:flex-start}.mobile-app .nv-window-help{min-height:44px}}

.nuvile-mobile-body [data-mobile-login] { display: grid; gap: 12px; margin-bottom: 12px; }
.nuvile-mobile-body [data-mobile-login] label { display: grid; gap: 5px; }
.nuvile-mobile-body [data-mobile-login] input {
  width: 100%; min-height: 44px; padding: 10px 12px; box-sizing: border-box;
  border: 1px solid #dce4ee; border-radius: 10px; font: inherit;
}
.nuvile-mobile-body [data-action="account-login"] { width: 100%; margin: 8px 0; }

.mobile-header .mobile-company { width:auto; min-width:44px; min-height:44px; margin:0; padding:6px 8px; display:flex; align-items:center; gap:5px; font-size:12px; }
.mobile-header .mobile-company span:first-child { display:none; }
.mobile-header .mobile-company strong { display:block; max-width:88px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mobile-header > div { flex:1; min-width:0; }
.mobile-header .nv-window-help { margin-left:0; }

.mobile-bottom button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font-size:12px; padding:7px 4px; }
.mobile-bottom button svg { width:23px; height:23px; }
