/* NABWORK 4.1 — end-to-end visual cohesion
 * Only presentation; namespaced to established screens and markup.
 * Financial behavior, accessibility semantics, and user state remain untouched.
 */
:root{
  --nw41-ink:#0c1b35;--nw41-navy:#0e1b38;--nw41-deep:#102b47;
  --nw41-blue:#098bd5;--nw41-teal:#0d8291;--nw41-green:#087e65;
  --nw41-border:#dceaf2;--nw41-soft:#f4f9fd;
  --nw41-shadow:0 16px 42px rgba(10,37,67,.075);
  --nw41-strong-shadow:0 24px 55px rgba(9,34,71,.12);
}
#gigDetailsView,#profileView,#jobsView,#dashboardView,#ordersView{
  scroll-margin-top:125px;
}
#gigDetailsView,#profileView{padding-top:clamp(26px,4vw,46px);padding-bottom:clamp(50px,6vw,80px)}
#gigDetailsView > button:first-child,#profileView > button:first-child{
  border:1px solid var(--nw41-border);background:#fff;
  padding:10px 16px;border-radius:13px;font-weight:800;color:#21536b;
  margin-bottom:26px;box-shadow:0 6px 17px rgba(4,35,69,.035);
}
#gigDetailsView > button:first-child:hover,#profileView > button:first-child:hover{
  color:#086a83;background:#effbfc;border-color:#a9dce3;
}
#gigDetailsView :is(button,a,input,select,textarea):focus-visible,
#profileView :is(button,a,input,select,textarea):focus-visible,
#dashboardView :is(button,a,input,select,textarea):focus-visible,
#ordersView :is(button,a,input,select,textarea):focus-visible,
#jobsView :is(button,a,input,select,textarea):focus-visible,
.nab-chat-widget :is(button,input,textarea):focus-visible{
  outline:3px solid #1ba9d6!important;outline-offset:3px;
}
/* Service page: original real listing images, price, tiers, reviews and actions */
#gigDetailsView .nab22-intro h1{
  font-size:clamp(1.7rem,2.9vw,2.62rem);
  line-height:1.32;letter-spacing:-.041em;color:var(--nw41-ink);
  text-wrap:pretty;
}
#gigDetailsView .nab22-category{
  background:#e8f8fc;color:#086e85;border:1px solid #c6e9ef;
}
#gigDetailsView .nab22-seller-strip{
  border-color:#dfecf2;
  padding-block:19px;gap:15px;
}
#gigDetailsView .nab22-avatar{
  background:linear-gradient(125deg,#0b83cb,#0ba59f);
  box-shadow:0 5px 14px rgba(0,117,150,.15);
}
#gigDetailsView .nab22-gallery-main{
  border-radius:23px;overflow:hidden;border:1px solid var(--nw41-border);
  background:#eef5fa;box-shadow:var(--nw41-shadow);
}
#gigDetailsView .nab22-gallery-thumb{
  border-radius:12px;overflow:hidden;
}
#gigDetailsView .nab22-gallery-thumb.is-active{border-color:#0c9da7;box-shadow:0 0 0 2px rgba(15,170,184,.12)}
#gigDetailsView .nab22-section{
  background:linear-gradient(180deg,#fff,#fcfeff);
  border:1px solid var(--nw41-border);
  border-radius:23px;padding:clamp(19px,2.2vw,30px);
  box-shadow:var(--nw41-shadow);
}
#gigDetailsView .nab22-section h2{color:var(--nw41-ink)}
#gigDetailsView .nab22-section-icon{
  background:#eaf8fc;color:#0d8291;border:1px solid #d4f0f2;
}
#gigDetailsView .nab22-description{color:#40576f;line-height:1.95}
#gigDetailsView .nab22-pricing-card{
  background:#fff;border-color:var(--nw41-border);
  border-radius:23px;box-shadow:var(--nw41-strong-shadow);
}
#gigDetailsView .nab22-tier-tabs{background:#f5faff;border-color:#dbe8f0}
#gigDetailsView .nab22-tier-btn.is-active,
#gigDetailsView .nab22-tier-btn:hover{background:#e8f7f8;color:#086e84}
#gigDetailsView .nab22-tier-btn.is-active{border-bottom-color:#0a97b1}
#gigDetailsView .nab22-package-price,#gigDetailsView .nab22-total{color:var(--nw41-ink)}
#gigDetailsView .nab22-order-btn,
#gigDetailsView .nab22-dark-btn{
  background:linear-gradient(110deg,#08668e,#087e65);
  color:#fff;border-radius:13px;box-shadow:0 10px 24px rgba(8,109,122,.15);
}
#gigDetailsView .nab22-outlined-btn{
  border-color:#b6dce7;color:#0b7185;border-radius:12px;
}
#gigDetailsView .nab22-review,#gigDetailsView .nab22-reviews-empty{
  border-color:#e0edf4;border-radius:17px;
}
/* Public professional identity */
#profileView .nab23-profile-shell{
  background:#fff;overflow:hidden;border-radius:26px;
  border:1px solid var(--nw41-border);box-shadow:var(--nw41-shadow);
}
#profileView .nab23-profile-cover{
  background:radial-gradient(circle at 88% 10%,rgba(9,194,206,.23),transparent 48%),linear-gradient(113deg,#0c1a36,#12374b)!important;
  min-height:160px;
}
#profileView .nab23-profile-cover b{color:#66dce2}
#profileView .nab23-profile-avatar{
  background:linear-gradient(125deg,#0879b3,#10ac9e);
  border-color:#fff;box-shadow:0 8px 24px rgba(9,62,100,.13);
}
#profileView .nab23-name-row h1{font-weight:900;color:var(--nw41-ink);letter-spacing:-.035em}
#profileView .nab23-status-tags span{
  background:#f0f8fb;border-color:#dcebf1;color:#375e70;border-radius:999px;
}
#profileView .nab23-primary{
  border-radius:12px;background:linear-gradient(107deg,#086e9e,#087d68);
  box-shadow:0 8px 18px rgba(4,99,121,.15);color:#fff;
}
#profileView .nab23-secondary{border-radius:12px;border-color:#c8e3eb;color:#0d687d}
#profileView .nab23-profile-tabs{
  border-radius:15px;background:#f7fbfd;border-color:#e0edf3;
}
#profileView .nab23-profile-tabs a:hover,#profileView .nab23-profile-tabs a:focus-visible{
  background:#e8f8fa;color:#075f75;
}
#profileView .nab23-panel,#profileView .nab23-side-card{
  border-radius:23px;border:1px solid var(--nw41-border);
  background:#fff;box-shadow:var(--nw41-shadow);
}
#profileView .nab23-section-emblem{background:#e9f7fb;color:#0b849e}
#profileView .nab23-gig-card{
  border-color:#dcebf3;border-radius:19px;
  box-shadow:0 7px 20px rgba(10,40,70,.04);
  transition:transform .2s,box-shadow .2s,border-color .2s;
}
#profileView .nab23-gig-card:hover{
  transform:translateY(-3px);border-color:#9cd8e3;
  box-shadow:0 15px 35px rgba(10,46,81,.095);
}
#profileView .nab23-gig-category{color:#087c90}
#profileView .nab23-portfolio-item,#profileView .nab23-review{border-radius:17px}
#profileView .nab23-social-link:hover{background:#e6f7fa;color:#086e81}

/* Freelancer dashboard: same brand geometry without touching finance flags */
#dashboardView .nab25-hero{
  border:1px solid rgba(122,219,228,.17);
  border-radius:28px;
  box-shadow:0 22px 55px rgba(12,37,69,.12);
}
#dashboardView .nab25-btn-primary{
  background:linear-gradient(110deg,#076c95,#087e64);
  color:white;box-shadow:0 9px 22px rgba(0,107,120,.21);
}
#dashboardView .nab25-nav{
  background:#fff;border:1px solid var(--nw41-border);
  border-radius:17px;box-shadow:0 9px 26px rgba(9,43,72,.04);
}
#dashboardView .nab25-nav button:hover{background:#eaf7fa;color:#0a7692}
#dashboardView .nab25-metric{
  border:1px solid var(--nw41-border);
  border-radius:21px;background:#fff;
  box-shadow:0 8px 27px rgba(13,47,83,.043);
}
#dashboardView .nab25-panel,
#dashboardView .nab25-finance,
#dashboardView .nab25-gig,
#dashboardView .nab25-wallet-card{
  border-color:var(--nw41-border);
  border-radius:21px;
  box-shadow:0 9px 29px rgba(12,46,77,.04);
}
#dashboardView .nab25-kicker{color:#0b798e}
#dashboardView .nab25-check-icon{
  background:#e5f5f9;color:#0a7790;border-color:#d6ebef;
}
#dashboardView .nab25-gig:hover{border-color:#96d4df}
#dashboardView .nab24-profile-guide{
  background:linear-gradient(111deg,#0c1a36,#123849);border-radius:23px;
}
#dashboardView .nab24-profile-score{background:rgba(19,191,198,.17);color:#a6f4e3}

/* Order workspace — distinguish informational notice from payments. */
#ordersView .nab26-hero{border:1px solid rgba(134,216,225,.18);border-radius:28px}
#ordersView .nab26-hero-btn-main{
  background:linear-gradient(120deg,#07688c,#087d65);
  border-color:rgba(159,240,230,.24);color:white;
}
#ordersView .nab26-overview article,
#ordersView .nab26-workspace,
#ordersView .nab26-order-card{
  border-color:var(--nw41-border);border-radius:21px;
  box-shadow:0 9px 28px rgba(13,50,80,.042);
}
#ordersView .nab26-notice{
  border-radius:16px;border-color:#e6c889;
  background:#fffbeb;color:#6f4f12;
}
#ordersView .nab26-tabs{background:#f5faff;border-color:#dfecf2}
#ordersView .nab26-tab[aria-pressed="true"]{
  background:#e3f7f8;color:#075d70;border-color:#b5e6e7;
}
#ordersView .nab26-nextstep{border-radius:15px}
#ordersView .nab26-search input,
#ordersView .nab26-role-filter select{border-radius:12px}

/* Personal messages / notifications — maintain existing overlay geometry. */
.nab-chat-widget{
  border:1px solid #cadde8;
  border-radius:23px;
  box-shadow:0 30px 85px rgba(4,18,45,.25);
}
.nab-chat-topbar{
  background:radial-gradient(circle at 85% 0%,rgba(29,188,196,.22),transparent 54%),linear-gradient(110deg,#0b1b39,#11424b);
}
.nab-chat-brand small{color:#c1e1e8}
.nab-chat-sidebar{background:#f9fcff}
.nab-chat-conv{border-radius:13px}
.nab-chat-conv.active{background:#e6f6fb;border-color:#aadbe4}
.nab-chat-list-avatar,.nab-chat-avatar{
  background:linear-gradient(115deg,#0a7cad,#0b9d91);
}
.nab-chat-bubble.is-mine{background:#086e77;color:#fff}
.nab-chat-bubble.is-theirs{border-color:#dceaf2;box-shadow:0 5px 16px rgba(10,34,69,.035)}
.nab-chat-composer{background:#fff;border-color:#e0edf4}
.nab-chat-offer{border-radius:17px}
.nab28-notif-popover{
  border-color:#d4e6ef;border-radius:22px;
  box-shadow:0 26px 69px rgba(8,29,58,.2);
}
.nab28-notif-head{
  background:linear-gradient(112deg,#0c1c39,#133f4c);
}
.nab28-notif-item.is-unread{background:#eefafe}
.nab28-notif-tab.is-active{color:#087184;border-color:#0e929f}
.nab29-palette{border-color:#dceaf2;border-radius:21px}

/* Auth and editorial footer, without changing form or toggle behavior. */
#authModal > div{
  border:1px solid #dceaf2;border-radius:23px;
  box-shadow:0 32px 75px rgba(5,24,49,.25);
}
#authModal input:focus-visible,
#authModal button:focus-visible{
  outline:3px solid #169cbc;outline-offset:2px;
}
#authModal #tabSignIn,#authModal #tabSignUp{min-height:35px}
#authModal .bg-emerald-600{background:#087a67!important}
body > footer.no-print{
  background:linear-gradient(115deg,#0b1630,#132940)!important;
  border-top:1px solid rgba(20,165,172,.23);
  padding-block:38px;
}
body > footer.no-print a{color:#cbdbe7;text-decoration:none}
body > footer.no-print a:hover,body > footer.no-print a:focus-visible{color:#7bebdc}

/* Standalone informational pages: readable editorial layout and visual continuity. */
body:has(> main.doc){background:linear-gradient(180deg,#eef7fa 0,#f8fbfd 400px,#f8fbfd 100%);}
body > main.doc{
  max-width:940px;padding:clamp(24px,4vw,48px);
  margin-block:clamp(20px,4vw,60px);
  border:1px solid var(--nw41-border);
  border-radius:25px;background:#fff;
  box-shadow:0 18px 53px rgba(10,40,72,.065);
  color:#2e4158;
  line-height:1.9;
}
body > main.doc h1{
  font-size:clamp(1.65rem,3.7vw,2.75rem);
  letter-spacing:-.038em;line-height:1.32;font-weight:900;color:#0d1c37;
  padding-bottom:16px;margin-bottom:12px;
  border-bottom:3px solid #12a7ba;
}
body > main.doc h2{
  font-size:clamp(1.1rem,1.85vw,1.34rem);font-weight:850;
  color:#102b48;letter-spacing:-.025em;
  margin-top:32px;margin-bottom:12px;
}
body > main.doc .meta{color:#60778b;font-size:.84rem}
body > main.doc .note{
  background:#ecf8fc;border:1px solid #c4e7ef;
  border-left:4px solid #0b8ba2;
  color:#284b60;padding:17px 19px;border-radius:13px;
  margin-block:20px 29px;
}
body > main.doc p,body > main.doc li{overflow-wrap:anywhere}
body > main.doc li{margin-bottom:9px}
body > main.doc strong{color:#182d45}


/* Responsive documentation masthead; the very same approved logo asset. */
.nw-doc-header{
  max-width:940px;margin:30px auto 0;padding-inline:7px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.nw-doc-brand{display:inline-flex;align-items:center;border-radius:12px}
.nw-doc-brand img{width:clamp(172px,21vw,250px);height:auto;object-fit:contain}
.nw-doc-back{
  border:1px solid #c8dfea;background:#fff;color:#14687d;
  padding:11px 15px;border-radius:12px;text-decoration:none;
  font-size:13px;font-weight:800;
}
.nw-doc-back:hover,.nw-doc-back:focus-visible{background:#e8f7fb;border-color:#95cddc;color:#075f78}

/* Readable creation/edit forms, including non-financial and disabled panels. */
:is(#gigModal,#jobModal,#proposalModal,#deliveryModal,#disputeModal,#directPaymentTermsModal,#directPaymentTermsModal,#invoiceModal) > div{
  border:1px solid #d9e9f2;
  border-radius:23px;
  box-shadow:0 30px 75px rgba(8,25,57,.22);
}
:is(#gigModal,#jobModal,#proposalModal,#deliveryModal,#disputeModal,#directPaymentTermsModal,#directPaymentTermsModal) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){
  min-height:42px;max-width:100%;
}
:is(#gigModal,#jobModal,#proposalModal,#deliveryModal,#disputeModal,#directPaymentTermsModal,#directPaymentTermsModal) :is(input,select,textarea,button):focus-visible{
  outline:3px solid #169cbc;outline-offset:2px;
}
#gigModal .nab24-btn-primary{
  background:linear-gradient(110deg,#07678b,#087e64);
  border-radius:12px;box-shadow:0 9px 24px rgba(5,95,112,.16);
}
#gigModal .nab24-gig-dialog{border-radius:22px}
:is(#gigModal,#jobModal,#proposalModal,#deliveryModal,#disputeModal,#directPaymentTermsModal,#directPaymentTermsModal) button:disabled{
  opacity:.58;cursor:not-allowed;
}

/* Keep medical/payment/error status color semantics; only control visibility polish. */
@media(max-width:760px){
  #gigDetailsView,#profileView{padding-top:23px;padding-bottom:45px}
  #gigDetailsView .nab22-section,#profileView .nab23-panel,#profileView .nab23-side-card{padding:18px;border-radius:18px}
  #gigDetailsView .nab22-pricing-card{border-radius:19px}
  #profileView .nab23-profile-shell{border-radius:20px}
  #profileView .nab23-profile-cover{min-height:125px}
  #profileView .nab23-name-row h1{font-size:clamp(1.4rem,5vw,2rem)}
  #dashboardView .nab25-panel{border-radius:17px}
  #ordersView .nab26-hero{border-radius:19px}
  body > main.doc{margin-inline:12px;margin-block:15px;padding:22px 18px;border-radius:18px}
  .nw-doc-header{margin:16px 12px 0;padding-inline:0;gap:10px}
  .nw-doc-back{padding:9px 11px;font-size:12px}
}
@media(max-width:390px){
  #gigDetailsView .nab22-intro h1{font-size:1.62rem}
  #profileView .nab23-profile-cover{padding:22px 18px}
  #ordersView .nab26-hero{padding:23px 18px}
  body > main.doc{margin-inline:8px;padding:18px 14px}
}
@media(prefers-reduced-motion:reduce){
  #profileView .nab23-gig-card,#gigDetailsView .nab22-outlined-btn{transition:none}
  #profileView .nab23-gig-card:hover{transform:none}
}
@media print{
  body > main.doc{border:0;box-shadow:none;margin:0;padding:0;max-width:none}
}


/* NABWORK 5.0 — nonfinancial workspace refinement.
 * Profile, discovery, studio/navigation, informational docs and chat ONLY.
 * Explicitly excludes payment/checkout, wallet, orders and finance surfaces.
 */
#jobsView .nab-premium-job-hero{
  box-shadow:0 20px 48px rgba(9,39,81,.11);
  border-color:rgba(100,195,222,.24);
}
#jobsView .nab-premium-job-hero h2{
  text-wrap:balance;
  line-height:1.34;
}
#jobsView .nab-premium-job-hero p{
  max-width:680px;
  text-wrap:pretty;
}
#jobsView .nab-premium-alerts{
  background:linear-gradient(180deg,#fff,#fbfdff);
  border-color:#d5e6ee;
  box-shadow:0 12px 30px rgba(14,44,79,.052);
}
#jobsView .nab-premium-alerts :is(input,select){
  min-height:44px;
  background-color:#fff;
  border-color:#c9dce9;
  color:#173b58;
}
#jobsView #jobsList > *{
  border-color:#d9e8f1;
  box-shadow:0 8px 24px rgba(12,43,81,.045);
}
#profileView .nab23-profile-shell,
#profileView .nab23-panel,
#profileView .nab23-side-card{
  border-color:#d9e8f2;
  box-shadow:0 16px 45px rgba(14,43,79,.065);
}
#profileView .nab23-name-row h1{
  line-height:1.35;
  text-wrap:balance;
}
#profileView .nab23-profile-cover{
  background:
    radial-gradient(circle at 90% 8%,rgba(15,183,222,.21),transparent 47%),
    linear-gradient(115deg,#091b38,#123e57)!important;
}
#profileView .nab23-profile-tabs{
  border-color:#dceaf2;
  scrollbar-width:thin;
  overscroll-behavior-x:contain;
}
#profileView .nab23-gig-card,
#profileView .nab23-portfolio-item{
  transition:box-shadow .22s,border-color .22s,transform .22s;
}
#profileView .nab23-gig-card:hover,
#profileView .nab23-portfolio-item:hover{
  box-shadow:0 14px 30px rgba(9,42,85,.10);
  border-color:#93cade;
}
#dashboardView .nab25-hero{
  border-color:rgba(127,211,230,.20);
  box-shadow:0 18px 44px rgba(10,39,82,.10);
}
#dashboardView .nab25-greeting{
  line-height:1.4;
  text-wrap:balance;
}
#dashboardView .nab25-nav{
  gap:9px;
  border-color:#d8e8f1;
  background:#fff;
}
#dashboardView .nab25-nav button{
  line-height:1.5;
  border-radius:11px;
  min-height:43px;
}
#dashboardView .nab25-nav button:focus-visible{
  outline:3px solid #25a8dc;
  outline-offset:3px;
}
#dashboardView .nab25-services-section,
#dashboardView .nab25-next-panel,
#dashboardView .nab25-status-panel{
  border-color:#dceaf2;
  box-shadow:0 13px 35px rgba(14,43,79,.055);
}
#dashboardView .nab25-gig:hover{
  border-color:#99cedb;
  box-shadow:0 12px 30px rgba(11,46,86,.09);
}
.nab-chat-widget{
  box-shadow:0 24px 65px rgba(4,22,50,.18);
}
.nab-chat-conv:focus-visible{
  outline:3px solid #24b4dd;
  outline-offset:2px;
}
.nw-doc-header{
  border-color:#dbeaf3;
  box-shadow:0 10px 35px rgba(9,44,79,.06);
}
.nw-doc-back{
  min-height:44px;
  line-height:1.5;
}
body > main.doc{
  line-height:1.9;
}
body > main.doc h1{
  letter-spacing:-.035em;
  line-height:1.3;
  text-wrap:balance;
}
body > main.doc h2{
  letter-spacing:-.02em;
  line-height:1.43;
}
body > main.doc :is(a,button):focus-visible{
  outline:3px solid #1398d6;
  outline-offset:3px;
}
body.dark-mode #jobsView .nab-premium-alerts{
  background:#1b2c44;
  border-color:#3a536b;
}
body.dark-mode #jobsView .nab-premium-alerts :is(input,select){
  background:#13243a;
  border-color:#476076;
  color:#edf8ff;
}
body.dark-mode #dashboardView .nab25-nav{
  background:#1b2c43;
  border-color:#3a526c;
}
body.dark-mode #profileView .nab23-panel,
body.dark-mode #profileView .nab23-side-card{
  background:#192b43;
  border-color:#3c5470;
}
@media(max-width:760px){
  #jobsView .nab-premium-job-hero h2{line-height:1.38}
  #jobsView .nab-premium-alerts{padding:20px}
  #profileView .nab23-name-row h1{font-size:clamp(1.45rem,5.1vw,1.95rem)}
  #profileView .nab23-profile-tabs{scroll-snap-type:x proximity}
  #dashboardView .nab25-nav button{min-height:44px}
  .nw-doc-header{gap:12px}
}
@media(max-width:390px){
  #dashboardView .nab25-nav{gap:7px}
  #dashboardView .nab25-nav button{font-size:12px;padding:10px 12px}
  #profileView .nab23-name-row h1{font-size:1.42rem}
}
@media(prefers-reduced-motion:reduce){
  #profileView .nab23-gig-card,
  #profileView .nab23-portfolio-item{transition:none!important}
  #profileView .nab23-gig-card:hover,
  #profileView .nab23-portfolio-item:hover{transform:none!important}
}


/* Native documentation brand: HTML text with genuine inline SVG shape.
 * This stylesheet is loaded on every informational page.
 */
.nw-doc-brand .nw-native-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:max-content;
  max-width:100%;
  color:#142b44;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
}
.nw-doc-brand .nw-native-brand__mark{
  display:block;
  width:37px;
  height:37px;
  flex:0 0 37px;
}
.nw-doc-brand .nw-native-brand__type{
  display:flex;
  min-width:0;
  flex-direction:column;
  align-items:flex-start;
}
.nw-doc-brand .nw-native-brand__name{
  font-family:Inter,"Arial Black",Arial,sans-serif;
  font-size:clamp(21px,2.1vw,28px);
  font-weight:900;
  font-synthesis:none;
  letter-spacing:-.055em;
  line-height:1.05;
  color:inherit;
}
.nw-doc-brand .nw-native-brand__tagline{
  margin-top:4px;
  font-family:Inter,Arial,sans-serif;
  font-size:9px;
  font-weight:800;
  letter-spacing:.1em;
  color:#56718a;
}
.nw-doc-brand:focus-visible{outline:3px solid #219aca;outline-offset:4px}
@media(max-width:420px){
  .nw-doc-brand .nw-native-brand{gap:7px}
  .nw-doc-brand .nw-native-brand__mark{width:30px;height:30px;flex-basis:30px}
  .nw-doc-brand .nw-native-brand__name{font-size:21px}
  .nw-doc-brand .nw-native-brand__tagline{font-size:7.8px;letter-spacing:.07em}
}


/* NABWORK Design 5.3 — public freelancer profile contrast and responsive ergonomics.
 * Existing auth, real listing data, financial controls and navigation remain unchanged.
 */
#profileView .nab23-profile-identity{min-width:0}
#profileView .nab23-profile-subtitle{line-height:1.75;overflow-wrap:anywhere}
#profileView .nab23-name-row h1{overflow-wrap:anywhere;text-wrap:pretty}
#profileView .nab23-profile-actions{gap:9px}
#profileView .nab23-profile-actions button{min-height:44px;line-height:1.5}
#profileView .nab23-profile-tabs{
  scroll-snap-type:x proximity;
  scroll-padding-inline:10px;
  overscroll-behavior-x:contain;
}
#profileView .nab23-profile-tabs a{
  display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;
  min-height:44px;scroll-snap-align:start;line-height:1.5;
}
#profileView .nab23-panel-title h2{line-height:1.42;text-wrap:balance}
#profileView .nab23-biography{line-height:1.94}
#profileView .nab23-skills button{min-height:40px;line-height:1.6}
#profileView .nab23-social-link{display:inline-flex;align-items:center;min-height:44px;line-height:1.5}
#profileView .nab23-side-stat{line-height:1.6}
#profileView .nab23-side-stat b{overflow-wrap:anywhere}
#profileView :is(.nab23-profile-tabs a,.nab23-profile-actions button,.nab23-skills button,.nab23-social-link,.nab23-blank button):focus-visible{
  outline:3px solid #168fc7;outline-offset:3px;
}
body.dark-mode #profileView .nab23-profile-shell,
body.dark-mode #profileView .nab23-panel,
body.dark-mode #profileView .nab23-side-card{
  background:#192d44;border-color:#425b73;color:#eff8ff;
  box-shadow:0 13px 35px rgba(0,10,25,.18);
}
body.dark-mode #profileView .nab23-name-row h1,
body.dark-mode #profileView .nab23-panel-title h2,
body.dark-mode #profileView .nab23-side-card h2,
body.dark-mode #profileView .nab23-label,
body.dark-mode #profileView .nab23-side-stat b,
body.dark-mode #profileView .nab23-blank strong{color:#f5fbff}
body.dark-mode #profileView .nab23-profile-subtitle,
body.dark-mode #profileView .nab23-biography,
body.dark-mode #profileView .nab23-section-note,
body.dark-mode #profileView .nab23-side-card h3,
body.dark-mode #profileView .nab23-side-note{color:#c9dce9}
body.dark-mode #profileView .nab23-profile-tabs{
  background:#1b3047;border-color:#3e5971;
  box-shadow:0 7px 25px rgba(0,9,21,.15);
}
body.dark-mode #profileView .nab23-profile-tabs a{color:#deecf9}
body.dark-mode #profileView .nab23-profile-tabs a:hover,
body.dark-mode #profileView .nab23-profile-tabs a:focus-visible{background:#294a62;color:#fff}
body.dark-mode #profileView .nab23-status-tags span,
body.dark-mode #profileView .nab23-count{
  background:#29455c;border-color:#49677c;color:#e7f4fb;
}
body.dark-mode #profileView .nab23-section-emblem{background:#234b5c;color:#9eecff}
body.dark-mode #profileView .nab23-skills button,
body.dark-mode #profileView .nab23-social-link{
  background:#263f55;color:#e8f5ff;border-color:#48657d;
}
body.dark-mode #profileView .nab23-skills button:hover,
body.dark-mode #profileView .nab23-social-link:hover{background:#31566d;color:#fff}
body.dark-mode #profileView .nab23-secondary{
  background:#233e56;color:#f0f9ff;border-color:#5a7690;
}
body.dark-mode #profileView .nab23-side-stat{border-bottom-color:#3a556c;color:#cfdfeb}
body.dark-mode #profileView .nab23-review,
body.dark-mode #profileView .nab23-blank{
  background:#14273d;border-color:#3d5870;color:#e2f0f8;
}
body.dark-mode #profileView .nab23-review-head,
body.dark-mode #profileView .nab23-review-head strong{color:#f1f8ff}
body.dark-mode #profileView .nab23-review p,
body.dark-mode #profileView .nab23-review-details,
body.dark-mode #profileView .nab23-blank p{color:#c6dbe9}
body.dark-mode #profileView .nab23-review-head span{color:#ffde94}
body.dark-mode #profileView :is(.nab23-profile-tabs a,.nab23-profile-actions button,.nab23-skills button,.nab23-social-link,.nab23-blank button):focus-visible{outline-color:#73cfee}
@media(max-width:760px){
  #profileView .nab23-profile-head{gap:11px}
  #profileView .nab23-profile-actions{width:100%}
  #profileView .nab23-profile-tabs a{min-height:46px;padding-inline:12px}
  #profileView .nab23-panel-title h2{font-size:clamp(16px,4vw,19px)}
}
@media(max-width:420px){
  #profileView .nab23-profile-actions > button{flex:1 1 145px}
  #profileView .nab23-panel-title{flex-wrap:wrap}
  #profileView .nab23-skills button{min-height:44px}
}
@media(prefers-reduced-motion:reduce){
  #profileView .nab23-profile-tabs{scroll-behavior:auto}
}


/* NABWORK Design 5.4 — public project discovery (CSS-only, bank isolated).
 * Real project cards, original filters, handlers and data are preserved.
 */
#jobsView .nab-premium-job-hero{
  border-radius:clamp(20px,2.5vw,28px);
  border-color:rgba(117,205,238,.26);
  background:radial-gradient(ellipse 49% 79% at 105% -10%,rgba(29,165,218,.21),transparent 80%),
    linear-gradient(118deg,#091832,#113653)!important;
  box-shadow:0 20px 48px rgba(8,36,77,.12);
}
#jobsView .nab-premium-job-hero h2{
  line-height:1.36;letter-spacing:-.03em;text-wrap:balance;
}
#jobsView .nab-premium-job-hero p{
  max-width:650px;line-height:1.84;color:#d5e7f4;text-wrap:pretty;
}
#jobsView .nab-premium-job-cta{
  min-height:48px;border-radius:13px;
  background:linear-gradient(110deg,#0878bd,#098eaf)!important;
  border-color:rgba(136,213,245,.39);
}
#jobsView .nab-premium-job-cta:focus-visible{
  outline:3px solid #86e0ff;outline-offset:4px;
}
#jobsView .nab-premium-alerts{
  border-radius:21px;border-color:#d7e8f1;
  box-shadow:0 12px 32px rgba(15,45,82,.065);
}
#jobsView .nab-premium-alerts h3{color:#132f49;line-height:1.65}
#jobsView .nab-premium-alerts p{line-height:1.8}
#jobsView .nab-premium-alerts form{min-width:0;align-items:stretch}
#jobsView .nab-premium-alerts form :is(select,button){
  min-height:44px;line-height:1.55;max-width:100%;
}
#jobsView .nab-premium-alerts form :is(select,button):focus-visible{
  outline:3px solid #158cc7;outline-offset:3px;
}
/* The existing jobs renderer inserts the actual filter bar as child one. */
#jobsView #jobsList > div:first-child{
  min-width:0;padding:clamp(14px,1.7vw,20px);
  border-radius:18px;border-color:#d8e7f1;
  box-shadow:0 9px 26px rgba(11,44,79,.045);line-height:1.6;
}
#jobsView #jobsList > div:first-child > label{
  flex-wrap:wrap;gap:10px;
}
#jobsView #jobsList > div:first-child :is(label,select,button){
  min-width:0;line-height:1.55;
}
#jobsView #jobsList > div:first-child :is(select,button){
  min-height:44px;max-width:100%;border-radius:11px;
}
#jobsView #jobsList > div:first-child input[type="range"]{
  cursor:pointer;min-height:30px;max-width:100%;
}
#jobsView #jobsList > div:first-child :is(input,select,button):focus-visible{
  outline:3px solid #168cc7;outline-offset:3px;
}
#jobsView #jobsList > div:not(:first-child){
  min-width:0;border-radius:20px;border-color:#dbe9f3;
  box-shadow:0 13px 35px rgba(12,42,78,.065);
  transition:border-color .2s ease,box-shadow .2s ease;
}
#jobsView #jobsList > div:not(:first-child):hover{
  border-color:#a8cfe1;box-shadow:0 17px 40px rgba(9,45,81,.095);
}
#jobsView #jobsList > div:not(:first-child) h3{
  color:#122841;font-weight:850;line-height:1.5;
  letter-spacing:-.02em;overflow-wrap:anywhere;text-wrap:pretty;
}
#jobsView #jobsList > div:not(:first-child) p{
  color:#455e74;line-height:1.87;overflow-wrap:anywhere;
}
#jobsView #jobsList > div:not(:first-child) .text-slate-400{color:#617a90}
#jobsView #jobsList > div:not(:first-child) > div:first-child{
  gap:clamp(14px,2vw,25px);
}
#jobsView #jobsList > div:not(:first-child) :is(button,a):focus-visible{
  outline:3px solid #158cc7;outline-offset:3px;
}
body.dark-mode #jobsView .nab-premium-alerts{
  background:#1a2d45;border-color:#3b556e;color:#edf8ff;
}
body.dark-mode #jobsView .nab-premium-alerts h3{color:#f3faff}
body.dark-mode #jobsView .nab-premium-alerts p{color:#c3dbea}
body.dark-mode #jobsView .nab-premium-alerts form select{
  background:#142a41;color:#f0faff;border-color:#506c83;
}
body.dark-mode #jobsView #jobsList > div:first-child{
  background:#1b3047;border-color:#3d5a74;color:#e8f5ff;
}
body.dark-mode #jobsView #jobsList > div:first-child :is(label,.text-slate-700){
  color:#d8e9f5;
}
body.dark-mode #jobsView #jobsList > div:first-child select{
  background:#142940;color:#f3faff;border-color:#56738a;
}
body.dark-mode #jobsView #jobsList > div:first-child button:not(.bg-amber-500){
  background:#27435b;border-color:#54718a;color:#e9f4fc;
}
body.dark-mode #jobsView #jobsList > div:not(:first-child){
  background:#192c44;border-color:#3e5971;color:#e7f2fb;
  box-shadow:0 15px 36px rgba(0,10,24,.24);
}
body.dark-mode #jobsView #jobsList > div:not(:first-child):hover{
  border-color:#5e8bab;
}
body.dark-mode #jobsView #jobsList > div:not(:first-child) h3{color:#f3f9ff}
body.dark-mode #jobsView #jobsList > div:not(:first-child) p{color:#d3e4f1}
body.dark-mode #jobsView #jobsList > div:not(:first-child) :is(.text-slate-400,.text-slate-500,.text-slate-600){
  color:#bcd3e4;
}
body.dark-mode #jobsView #jobsList > div:not(:first-child) :is(button,a):focus-visible{
  outline-color:#80d8f5;
}
@media(max-width:760px){
  #jobsView .nab-premium-job-hero{padding:clamp(21px,5.5vw,28px);gap:20px}
  #jobsView .nab-premium-job-hero h2{font-size:clamp(1.47rem,5.2vw,1.95rem)}
  #jobsView .nab-premium-job-cta{
    min-height:48px;white-space:normal;text-align:center;line-height:1.55;
  }
  #jobsView .nab-premium-alerts{padding:20px}
  #jobsView .nab-premium-alerts form{gap:10px}
  #jobsView #jobsList > div:first-child{align-items:stretch;gap:13px}
  #jobsView #jobsList > div:first-child > label{width:100%}
  #jobsView #jobsList > div:first-child > select{width:100%}
  #jobsView #jobsList > div:first-child > label input[type="range"]{
    min-width:min(150px,100%);flex:1 1 150px;
  }
  #jobsView #jobsList > div:not(:first-child){
    padding:clamp(17px,4.8vw,24px);border-radius:17px;
  }
  #jobsView #jobsList > div:not(:first-child) h3{
    font-size:clamp(1rem,4.5vw,1.2rem);
  }
}
@media(max-width:390px){
  #jobsView .nab-premium-alerts form :is(select,button){width:100%;font-size:13px}
  #jobsView #jobsList > div:first-child{padding:15px}
  #jobsView #jobsList > div:not(:first-child){padding:17px}
}
@media(prefers-reduced-motion:reduce){
  #jobsView #jobsList > div:not(:first-child){transition:none!important}
}


/* NABWORK 5.7 — marketplace entry dialogs: responsive, legible, scroll-safe.
 * Scope ONLY public signup/login, service composer and client project composer.
 * No prices, limits, data persistence, auth providers or financial flows altered.
 */
:is(#authModal,#gigModal,#jobModal) > div{
  min-width:0;
  max-width:calc(100vw - 24px);
  box-sizing:border-box;
}
:is(#authModal,#gigModal,#jobModal) :is(input:not([type="checkbox"]),textarea,select){
  max-width:100%;
  min-width:0;
  border-radius:11px;
  line-height:1.6;
  transition:border-color .16s ease,box-shadow .16s ease;
}
:is(#authModal,#gigModal,#jobModal) :is(input:not([type="checkbox"]),textarea,select):focus-visible{
  outline:3px solid #138dc5;
  outline-offset:2px;
  border-color:#1288b7;
}
:is(#authModal,#gigModal,#jobModal) :is(button,a):focus-visible{
  outline:3px solid #168ecc;
  outline-offset:3px;
}
#authModal #tabSignIn,#authModal #tabSignUp{
  min-height:44px;
  line-height:1.5;
}
#authModal #authGoogleButton,#authModal #authAppleButton{
  min-height:48px;
  line-height:1.6;
  text-wrap:pretty;
}
#authModal :is(#signInForm,#signUpForm) :is(input,select){
  min-height:44px;
}
#authModal :is(#signInForm,#signUpForm) button[type="submit"]{
  min-height:48px;
  border-radius:12px;
}
#authModal #signInForm button[onclick^="handlePasswordReset"]{
  min-height:42px;
}
#authModal #authProviderStatus{
  line-height:1.75;
  overflow-wrap:anywhere;
}
#gigModal .nab24-gig-dialog{
  max-width:min(768px,calc(100vw - 24px));
  overscroll-behavior-y:contain;
}
#gigModal #gigModalHeading{
  line-height:1.45;
  letter-spacing:-.02em;
  text-wrap:balance;
}
#gigModal :is(#gigTitle,#gigDescription,#gigCategory,#sellerSkills,#gigVideoUrlInput){
  min-height:44px;
}
#gigModal :is(.nab24-input-hint,.nab24-modal-lead,.nab24-muted){
  line-height:1.8;
}
#gigModal .nab24-input-hint{
  flex-wrap:wrap;
  gap:5px 10px;
}
#gigModal :is(#gigImageFiles,#uploadPreviewContainer){
  min-width:0;
  max-width:100%;
}
#gigModal #gigImageFiles{
  overflow-wrap:anywhere;
}
#gigModal .nab24-form-actions{
  border-top-color:#d5e6f0;
  box-shadow:0 -12px 30px rgba(8,40,70,.055);
}
#gigModal .nab24-form-actions button{
  min-height:46px;
  line-height:1.45;
  text-wrap:balance;
}
#jobModal > div{
  max-width:min(520px,calc(100vw - 24px));
  max-height:calc(100dvh - 24px);
  overflow-y:auto;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
}
#jobModal > div > div:first-child{
  gap:12px;
}
#jobModal > div > div:first-child h3{
  min-width:0;
  line-height:1.5;
  letter-spacing:-.016em;
  text-wrap:balance;
}
#jobModal #addJobForm :is(input,textarea,select){
  min-height:44px;
}
#jobModal #addJobForm textarea{
  min-height:110px;
  resize:vertical;
}
#jobModal #addJobForm > .grid{
  min-width:0;
}
#jobModal #addJobForm > .grid > div{
  min-width:0;
}
#jobModal #addJobForm label{
  line-height:1.65;
}
#jobModal #addJobForm > .pt-2.flex{
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
#jobModal #addJobForm > .pt-2.flex button{
  min-height:46px;
  border-radius:12px;
  font-weight:800;
  line-height:1.55;
}
body.dark-mode :is(#authModal,#gigModal,#jobModal) > div{
  border-color:#496079;
  box-shadow:0 29px 80px rgba(0,7,20,.45);
}
body.dark-mode #gigModal .nab24-modal-lead,
body.dark-mode #gigModal .nab24-input-hint,
body.dark-mode #gigModal .nab24-muted{
  color:#cbdde9;
}
body.dark-mode #gigModal .nab24-form-actions{
  background:#1e293b;
  border-top-color:#42576b;
  box-shadow:0 -12px 30px rgba(0,5,14,.15);
}
body.dark-mode #gigModal .nab24-btn-light{
  background:#30445b;
  color:#f0f7fc;
}
body.dark-mode #gigModal .nab24-btn-outline{
  background:#223950;
  border-color:#44b7c1;
  color:#a9eee7;
}
body.dark-mode #jobModal > div > div:first-child{
  border-bottom-color:#43566a;
}
body.dark-mode #jobModal #addJobForm label{
  color:#e4f0f9;
}
body.dark-mode #jobModal #addJobForm > .pt-2.flex button[type="button"]{
  color:#d4e7f4;
  border:1px solid #455c72;
}
@media(max-width:560px){
  :is(#authModal,#gigModal,#jobModal){
    padding:10px;
  }
  :is(#authModal,#gigModal,#jobModal) > div{
    max-width:calc(100vw - 20px);
    border-radius:19px;
  }
  #authModal > div{
    max-height:calc(100dvh - 20px);
    overflow-y:auto;
    overscroll-behavior-y:contain;
    padding:20px;
  }
  #authModal :is(input:not([type="checkbox"]),select){
    font-size:16px;
  }
  #gigModal .nab24-gig-dialog{
    max-height:calc(100dvh - 20px);
    padding:19px;
    border-radius:19px;
  }
  #gigModal :is(input:not([type="checkbox"]):not([type="file"]),textarea,select){
    font-size:16px;
  }
  #gigModal .nab24-form-actions{
    margin:16px -19px -19px;
    padding:14px 19px;
  }
  #jobModal > div{
    padding:20px;
    max-height:calc(100dvh - 20px);
    border-radius:19px;
  }
  #jobModal #addJobForm :is(input,textarea,select){
    font-size:16px;
  }
  #jobModal #addJobForm > .grid.grid-cols-3{
    grid-template-columns:minmax(0,1fr);
    gap:12px;
  }
  #jobModal #addJobForm > .pt-2.flex button{
    flex:1 1 135px;
  }
}
@media(max-width:390px){
  #gigModal .nab24-form-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
    gap:9px;
  }
  #gigModal .nab24-form-actions #gigModalSubmitBtn{
    grid-column:1/-1;
  }
  #gigModal .nab24-form-actions button{
    width:100%;
    white-space:normal;
    padding:11px 8px;
  }
  #authModal > div,#jobModal > div{
    padding:17px;
  }
  #jobModal #addJobForm > .pt-2.flex button{
    flex-basis:100%;
  }
}
@media(prefers-reduced-motion:reduce){
  :is(#authModal,#gigModal,#jobModal) :is(input:not([type="checkbox"]),textarea,select){
    transition:none!important;
  }
}


/* Explicit close controls remain reachable at touch sizes without modifying handlers. */
#authModal > div > div:first-child > button,
#gigModal .nab24-gig-dialog > div:first-child > button,
#jobModal > div > div:first-child > button{
  flex:0 0 44px;
  min-width:44px;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
}
