/* One task per screen; original transaction handlers and form elements are retained. */
body.ns-shell.cw-active{height:var(--cw-height,100dvh)!important;min-height:0!important;max-height:var(--cw-height,100dvh)!important;overflow:hidden!important;}
body.ns-shell.cw-active #app-header .row.sub{display:none!important;}
body.ns-shell.cw-active #app-header .row.top{height:60px!important;min-height:60px!important;}
body.ns-shell.cw-active #app-content{overflow:hidden!important;min-height:0!important;display:flex!important;}
body.ns-shell.cw-active #bottom-nav{display:none!important;}
body.ns-shell.cw-active #app-content>.ns-page.cw-ready{padding:0!important;max-width:600px!important;height:100%!important;min-height:0!important;margin:0 auto!important;display:flex!important;flex:1!important;overflow:hidden!important;}
body.ns-shell.cw-active #app-content>.cw-ready> :not(.cw-frame){display:none!important;}
body.ns-shell.cw-active #app-content .cw-ready .cw-off,body.ns-shell.cw-active #app-content .cw-ready [hidden]{display:none!important;}
.cw-active .cw-frame{width:100%;height:100%;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;}
.cw-active .cw-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 22px;height:48px;flex:none;}
.cw-active .cw-counter{font-size:13px;font-weight:600;color:#587568;font-variant-numeric:tabular-nums;direction:ltr;}
.cw-active .cw-dots{display:flex;gap:6px;flex:1;max-width:170px;}
.cw-active .cw-dots i{display:block;height:4px;flex:1;border-radius:3px;background:#dce7e2;}
.cw-active .cw-dots i.cw-current{background:#15803d;}
.cw-active .cw-dots i.cw-done{background:#80c799;}
.cw-active .cw-pilot{margin:0 22px 8px;padding:5px 9px;border:1px solid #f3d5b5;border-radius:10px;background:#fff8ef;color:#924411;font-size:12px;line-height:1.3;text-align:center;}
.cw-active .cw-no-pilot{display:none;}
.cw-active .cw-stage{min-height:0;padding:20px 24px 12px;overflow:hidden;display:flex;flex-direction:column;gap:0;scrollbar-width:thin;}
.cw-active .cw-stage.cw-access-scroll{overflow-y:auto;overscroll-behavior:contain;}
body.ns-shell.cw-active #app-content .cw-ready .cw-title{margin:0 0 12px!important;line-height:1.2!important;font-size:clamp(24px,6.9vw,34px)!important;letter-spacing:-.025em!important;font-weight:750!important;color:#0f2d4d!important;flex:none;}
body.ns-shell.cw-active #app-content .cw-ready .cw-note{margin:0 0 30px!important;font-size:15px!important;line-height:1.55!important;font-weight:400!important;color:#587268!important;flex:none;}
body.ns-shell.cw-active #app-content .cw-ready .occ-form{display:flex!important;flex-direction:column!important;gap:18px!important;margin:0!important;padding:0!important;flex:none!important;}
body.ns-shell.cw-active #app-content .cw-ready .occ-field{display:flex!important;flex-direction:column!important;gap:9px!important;margin:0!important;}
body.ns-shell.cw-active #app-content .cw-ready .occ-field label{font-size:15px!important;line-height:1.4!important;font-weight:600!important;margin:0!important;color:#234737!important;}
body.ns-shell.cw-active #app-content .cw-ready .occ-field input{height:60px!important;min-height:52px!important;padding:12px 16px!important;font-size:19px!important;line-height:1.5!important;font-weight:450!important;background:#fff!important;border:1px solid #cbded2!important;border-radius:18px!important;box-shadow:0 5px 18px #0f2d1e04!important;width:100%!important;outline-offset:3px!important;}
body.ns-shell.cw-active #app-content .cw-ready .occ-field input[aria-invalid=true]{border-color:#b42318!important;}
body.ns-shell.cw-active #app-content .cw-ready .occ-field input::placeholder{font-weight:400!important;color:#82918a!important;}
.cw-active .cw-review{display:flex;flex-direction:column;gap:5px;}
body.ns-shell.cw-active #app-content .cw-ready .cw-request{display:flex;align-items:center;gap:14px;justify-content:space-between;width:100%;padding:14px 16px;border:1px solid #dce7e2;border-radius:18px;background:#fff;color:#0f2d4d;text-align:start;font-size:15px;line-height:1.4;box-shadow:none;min-height:60px;}
.cw-active .cw-request-subject{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.cw-active .cw-request-price{flex:none;white-space:nowrap;font-size:19px;font-weight:700;direction:ltr;}
body.ns-shell.cw-active #app-content .cw-ready .cw-consent{display:flex!important;gap:12px!important;align-items:flex-start!important;border:1px solid #cfe7d8!important;border-radius:18px!important;background:#edf8f1!important;padding:16px!important;margin:0!important;text-align:start!important;line-height:1.65!important;font-size:16px!important;font-weight:450!important;}
body.ns-shell.cw-active #app-content .cw-ready .cw-consent input{width:23px!important;height:23px!important;min-height:23px!important;flex:0 0 23px!important;margin:3px 0 0!important;accent-color:#15803d!important;}
body.ns-shell.cw-active #app-content .cw-ready .cw-consent span{font-size:inherit!important;line-height:inherit!important;font-weight:inherit!important;}
.cw-active .cw-legal-links{display:flex;flex-wrap:wrap;gap:0;justify-content:space-between;}
body.ns-shell.cw-active #app-content .cw-ready .cw-legal-links button{background:transparent;border:0;padding:8px 4px;font-size:12px;line-height:1.3;color:#166534;text-decoration:underline;min-height:44px;}
.cw-active .cw-footer{padding:10px 24px calc(16px + env(safe-area-inset-bottom,0px));background:#f7faf8;border-top:1px solid #e8efeb;flex:none;z-index:2;}
.cw-active .cw-actions{display:flex;gap:10px;align-items:stretch;}
body.ns-shell.cw-active #app-content .cw-ready .cw-actions button{min-height:54px!important;height:auto!important;line-height:1.35!important;margin:0!important;font:inherit!important;font-weight:650!important;font-size:16px!important;border-radius:17px!important;box-shadow:none!important;letter-spacing:0!important;padding:10px 14px!important;}
body.ns-shell.cw-active #app-content .cw-ready .cw-actions .cw-back{flex:0 0 auto!important;background:#fff!important;border:1px solid #dce7e2!important;color:#214636!important;min-width:68px!important;}
body.ns-shell.cw-active #app-content .cw-ready .cw-actions :is(.cw-next,.cw-send,.cw-verify){flex:1!important;width:auto!important;background:#15803d!important;color:#fff!important;border:1px solid #15803d!important;}
body.ns-shell.cw-active #app-content .cw-ready .cw-actions button:disabled{background:#dff3e6!important;color:#516d5b!important;border-color:#d0e6d8!important;cursor:wait!important;}
body.ns-shell.cw-active #app-content .cw-ready .cw-info{border:1px solid #dce7e2;border-radius:14px;width:44px;min-height:44px;height:44px;background:#fff;color:#315947;font-size:21px;line-height:1;padding:0;}
body.ns-shell.cw-active #app-content .cw-ready .occ-auth-panel{padding:0!important;margin:0!important;border:0!important;background:transparent!important;display:flex!important;flex-direction:column!important;gap:16px!important;}
body.ns-shell.cw-active #app-content .cw-ready .cw-email{display:block!important;direction:ltr!important;word-break:break-all;font-size:16px!important;font-weight:500!important;line-height:1.4!important;color:#355b49!important;background:transparent!important;border:0!important;padding:0!important;margin:0!important;}
body.ns-shell.cw-active #app-content .cw-ready .occ-code-input{letter-spacing:8px!important;text-align:center!important;font-size:25px!important;}
body.ns-shell.cw-active #app-content .cw-ready .occ-inline-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;}
body.ns-shell.cw-active #app-content .cw-ready .occ-small-btn{background:#fff!important;border:1px solid #dce7e2!important;border-radius:14px!important;padding:9px 12px!important;color:#166534!important;min-height:44px!important;font-size:13px!important;line-height:1.4!important;}
body.ns-shell.cw-active #app-content .cw-ready .occ-error:not([hidden]){margin:0!important;padding:8px 10px!important;font-size:14px!important;font-weight:500!important;line-height:1.5!important;color:#b42318!important;border-radius:12px!important;white-space:normal!important;}
body.ns-shell.cw-active #app-content .cw-ready .cw-off,body.ns-shell.cw-active #app-content .cw-ready [hidden]{display:none!important;}
body.ns-shell.cw-active.cw-small #app-content .cw-ready .cw-title{font-size:25px!important;margin-bottom:12px!important;}
body.ns-shell.cw-active.cw-small #app-content .cw-ready .cw-note{margin-bottom:18px!important;font-size:14px!important;}
body.ns-shell.cw-active.cw-small #app-content .cw-ready[data-cw-step="3"] .cw-note{display:none!important;}
body.ns-shell.cw-active.cw-small #app-content .cw-ready .cw-consent{font-size:15px!important;line-height:1.55!important;padding:12px!important;}
body.ns-shell.cw-active.cw-small #app-content .cw-ready .occ-form{gap:10px!important;}
body.ns-shell.cw-active.cw-small #app-content .cw-ready .cw-stage{padding:12px 20px 10px!important;}
body.ns-shell.cw-active.cw-small #app-content .cw-ready .cw-footer{padding:8px 20px calc(10px + env(safe-area-inset-bottom,0px));}
body.ns-shell.cw-active.cw-small #app-content .cw-ready .cw-request{padding:10px 12px;min-height:50px;}
@media(max-height:450px){body.ns-shell.cw-active #app-header .row.top{height:48px!important;min-height:48px!important;}body.cw-active .cw-progress{height:44px;padding-inline:18px;}body.cw-active .cw-pilot{font-size:11px;padding:2px 6px;margin-bottom:0;}body.ns-shell.cw-active #app-content .cw-ready .cw-note{display:none!important;}body.ns-shell.cw-active #app-content .cw-ready .cw-title{font-size:22px!important;margin-bottom:9px!important;}body.ns-shell.cw-active #app-content .cw-ready .occ-field label{font-size:13px!important;}body.ns-shell.cw-active #app-content .cw-ready .occ-field{gap:5px!important;}body.ns-shell.cw-active #app-content .cw-ready .occ-field input{min-height:48px!important;height:48px!important;}body.ns-shell.cw-active #app-content .cw-ready .cw-stage{padding-top:8px!important;}body.ns-shell.cw-active #app-content .cw-ready .cw-actions button{min-height:48px!important;font-size:14px!important;}}
.cw-dialog{width:min(570px,calc(100% - 20px));max-height:calc(100dvh - 20px);border:1px solid #dce7e2;border-radius:22px;padding:0;background:#fff;color:#0f2d4d;font:inherit;overflow:auto;}
.cw-dialog::backdrop{background:#10271b80;}
.cw-dialog-head{position:sticky;top:0;background:#fff;padding:14px 18px;display:flex;justify-content:space-between;gap:16px;align-items:center;border-bottom:1px solid #dce7e2;z-index:1;}
.cw-dialog-head h2{margin:0;font-size:20px;line-height:1.4;}
.cw-dialog .cw-close{font:inherit;font-size:24px;width:44px;height:44px;flex:none;border:1px solid #dce7e2;border-radius:14px;background:#fff;}
.cw-dialog-content{padding:20px;line-height:1.7;overflow-wrap:anywhere;}
.cw-dialog-content .cw-information-row{display:grid;grid-template-columns:1fr 1.5fr;gap:12px;margin:0;padding:12px 0;border-bottom:1px solid #edf3ef;}
.cw-dialog-content .cw-dialog-price{font-size:24px;font-weight:700;}
.cw-dialog-content [data-screen]{font:inherit!important;direction:inherit!important;background:#fff!important;color:#0f2d4d!important;width:100%!important;}
@media(prefers-reduced-motion:reduce){.cw-active *,.cw-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}
@media print{body.cw-active{height:auto!important;max-height:none!important;overflow:visible!important;}.cw-active .cw-stage{overflow:visible!important;height:auto!important;}}

/* Short viewports remove spacing, not consent or essential information. */
body.ns-shell.cw-active.cw-small #app-header .row.top{height:52px!important;min-height:52px!important;}
body.ns-shell.cw-active.cw-small .cw-progress{height:44px!important;}
body.ns-shell.cw-active.cw-small .cw-pilot{margin-bottom:2px!important;}
body.ns-shell.cw-active.cw-small #app-content .cw-ready .cw-stage{padding-top:8px!important;padding-bottom:6px!important;}
body.ns-shell.cw-active.cw-small #app-content .cw-ready .cw-title{margin-bottom:8px!important;}
body.ns-shell.cw-active.cw-small #app-content .cw-ready .cw-review{gap:0!important;}
body.ns-shell.cw-active.cw-small #app-content .cw-ready[data-cw-step="4"] .cw-note{display:none!important;}
body.ns-shell.cw-active #app-content .cw-ready .cw-info{display:grid;place-items:center;}
